|
|
|
|
@ -264,7 +264,7 @@ export default {
|
|
|
|
|
// key: 'index'
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
title: "点位",
|
|
|
|
|
title: "工程名称",
|
|
|
|
|
width: 240,
|
|
|
|
|
key: "equipment_id",
|
|
|
|
|
align: "center",
|
|
|
|
|
@ -504,6 +504,48 @@ export default {
|
|
|
|
|
]);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "闸门数量",
|
|
|
|
|
key: "kaiqishuliang",
|
|
|
|
|
width: 200,
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (h, { row, index }) => this.$createElement('CheckboxGroup',{
|
|
|
|
|
class: "equip-number",
|
|
|
|
|
ref: `bengzhashuliang${index}`,
|
|
|
|
|
props: {
|
|
|
|
|
value: Array.from({ length: Number(row.kaiqishuliang || 0) },(_,i) => i),
|
|
|
|
|
},
|
|
|
|
|
on: {
|
|
|
|
|
["on-change"]:e => {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.data[index].kaiqishuliang = this.$refs[`bengzhashuliang${index}`].$children.reduce((pre, cur) => (pre + (cur.currentValue ? 1 : 0)),0)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, Array.from({ length: Number(row.equipment.bengzhashuliang || 0)},
|
|
|
|
|
(_,i) => this.$createElement("Checkbox",{ props: { label: i } })))
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "水泵数量",
|
|
|
|
|
key: "kaiqishuliang1",
|
|
|
|
|
width: 200,
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (h, { row, index }) => this.$createElement('CheckboxGroup',{
|
|
|
|
|
class: "equip-number",
|
|
|
|
|
ref: `shuibengtaishu${index}`,
|
|
|
|
|
props: {
|
|
|
|
|
value: Array.from({ length: Number(row.kaiqishuliang1 || 0) },(_,i) => i),
|
|
|
|
|
},
|
|
|
|
|
on: {
|
|
|
|
|
["on-change"]:e => {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.data[index].kaiqishuliang1 = this.$refs[`shuibengtaishu${index}`].$children.reduce((pre, cur) => (pre + (cur.currentValue ? 1 : 0)),0)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, Array.from({ length: Number(row.equipment.shuibengtaishu || 0)},
|
|
|
|
|
(_,i) => this.$createElement("Checkbox",{ props: { label: i } })))
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "机组运行状态",
|
|
|
|
|
width: 200,
|
|
|
|
|
@ -559,27 +601,6 @@ export default {
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "机组数量",
|
|
|
|
|
key: "kaiqishuliang",
|
|
|
|
|
width: 200,
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (h, { row, index }) => this.$createElement('CheckboxGroup',{
|
|
|
|
|
class: "equip-number",
|
|
|
|
|
ref: `bengzhashuliang${index}`,
|
|
|
|
|
props: {
|
|
|
|
|
value: Array.from({ length: Number(row.kaiqishuliang || 0) },(_,i) => i),
|
|
|
|
|
},
|
|
|
|
|
on: {
|
|
|
|
|
["on-change"]:e => {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.data[index].kaiqishuliang = this.$refs[`bengzhashuliang${index}`].$children.reduce((pre, cur) => (pre + (cur.currentValue ? 1 : 0)),0)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, Array.from({ length: Number(row.equipment.bengzhashuliang || 0)},
|
|
|
|
|
(_,i) => this.$createElement("Checkbox",{ props: { label: i } })))
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "类别",
|
|
|
|
|
key: "yinpaishui",
|
|
|
|
|
@ -886,6 +907,7 @@ export default {
|
|
|
|
|
content: i.content,
|
|
|
|
|
level: i.level,
|
|
|
|
|
kaiqishuliang: i.kaiqishuliang,
|
|
|
|
|
kaiqishuliang1: i.kaiqishuliang1,
|
|
|
|
|
diaolingleixing: i.diaolingleixing,
|
|
|
|
|
leibie: i.leibie,
|
|
|
|
|
situations: this.equipmentList.find((j) => j.id === i.equipment_id)?.id_equip_situation_relations_equipment_id_relation
|
|
|
|
|
@ -903,6 +925,7 @@ export default {
|
|
|
|
|
level: 1,
|
|
|
|
|
kaiqishuliang: 0,
|
|
|
|
|
diaolingleixing: "",
|
|
|
|
|
kaiqishuliang1: 0,
|
|
|
|
|
leibie: "",
|
|
|
|
|
situations: i.id_equip_situation_relations_equipment_id_relation
|
|
|
|
|
})) || [];
|
|
|
|
|
@ -980,6 +1003,7 @@ export default {
|
|
|
|
|
content: i.content,
|
|
|
|
|
level: i.level,
|
|
|
|
|
kaiqishuliang: i.kaiqishuliang,
|
|
|
|
|
kaiqishuliang1: i.kaiqishuliang1,
|
|
|
|
|
diaolingleixing: i.diaolingleixing,
|
|
|
|
|
leibie: i.leibie
|
|
|
|
|
}))
|
|
|
|
|
@ -1018,6 +1042,7 @@ export default {
|
|
|
|
|
content: "",
|
|
|
|
|
level: 1,
|
|
|
|
|
kaiqishuliang: 0,
|
|
|
|
|
kaiqishuliang1: 0,
|
|
|
|
|
leibie: "",
|
|
|
|
|
situations: i.id_equip_situation_relations_equipment_id_relation
|
|
|
|
|
})) || [];
|
|
|
|
|
@ -1027,6 +1052,9 @@ export default {
|
|
|
|
|
if (/bengzhashuliang/g.test(key)) {
|
|
|
|
|
this.$refs[key].$children.forEach(i => i.currentValue = false)
|
|
|
|
|
}
|
|
|
|
|
if (/shuibengtaishu/g.test(key)) {
|
|
|
|
|
this.$refs[key].$children.forEach(i => i.currentValue = false)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
@ -1289,6 +1317,7 @@ export default {
|
|
|
|
|
content: "",
|
|
|
|
|
level: 1,
|
|
|
|
|
kaiqishuliang: 0,
|
|
|
|
|
kaiqishuliang1: 0,
|
|
|
|
|
leibie: "",
|
|
|
|
|
situations: i.id_equip_situation_relations_equipment_id_relation
|
|
|
|
|
})) || [];
|
|
|
|
|
@ -1326,6 +1355,7 @@ export default {
|
|
|
|
|
content: "",
|
|
|
|
|
level: 1,
|
|
|
|
|
kaiqishuliang: 0,
|
|
|
|
|
kaiqishuliang1: 0,
|
|
|
|
|
leibie: "",
|
|
|
|
|
situations: i.id_equip_situation_relations_equipment_id_relation
|
|
|
|
|
})) || [];
|
|
|
|
|
@ -1339,6 +1369,7 @@ export default {
|
|
|
|
|
content: "",
|
|
|
|
|
level: 1,
|
|
|
|
|
kaiqishuliang: 0,
|
|
|
|
|
kaiqishuliang1: 0,
|
|
|
|
|
leibie: "",
|
|
|
|
|
situations: i.id_equip_situation_relations_equipment_id_relation
|
|
|
|
|
})) || [];
|
|
|
|
|
|