rev:堆叠机双向点位平均分配原则

This commit is contained in:
2024-01-11 19:39:40 +08:00
parent db4d0db124
commit 486cea7de8
8 changed files with 209 additions and 54 deletions

View File

@@ -116,10 +116,10 @@
<!-- <el-table-column type="selection" width="55" />-->
<el-table-column type="selection" width="55" />
<el-table-column v-if="false" prop="assigned_id" label="任务标识" />
<el-table-column prop="device_code" :label="$t('config.table.device_code')" />
<el-table-column prop="task_nextDevice_code" :label="$t('config.table.destination_device')" />
<el-table-column prop="inst_nextDevice_code" :label="$t('config.table.inst_nextdevice_code')" />
<el-table-column prop="param" :label="$t('config.table.destination_configuration')" :formatter="paramFormate" />
<el-table-column prop="device_code" :label="$t('config.table.device_code')" show-overflow-tooltip />
<el-table-column prop="task_nextDevice_code" :label="$t('config.table.destination_device')" show-overflow-tooltip />
<el-table-column prop="inst_nextDevice_code" :label="$t('config.table.inst_nextdevice_code')" show-overflow-tooltip />
<el-table-column prop="param" :label="$t('config.table.destination_configuration')" :formatter="paramFormate" min-width show-overflow-tooltip />
<el-table-column
v-permission="['admin','AcsDeviceAssigned:edit','AcsDeviceAssigned:del']"
:label="$t('config.table.operation')"
@@ -227,7 +227,7 @@ export default {
return true
},
paramFormate(row, index) {
return JSON.stringify(row.param)
return JSON.parse(JSON.stringify(row.param))
},
getStatus() {
if (this.crud.status.edit === 0) {