|
|
|
|
@ -35,6 +35,7 @@
|
|
|
|
|
<div class="select-item">
|
|
|
|
|
<div class="select-item__title">选择范围</div>
|
|
|
|
|
<el-checkbox-group size="small" v-model="select.area">
|
|
|
|
|
<el-checkbox-button v-model="isSelectAllArea" @change="e => select.area = e ? areas.map(i => i.value) : []">全选</el-checkbox-button>
|
|
|
|
|
<el-checkbox-button v-for="item in areas" :label="item.value">{{
|
|
|
|
|
item.key
|
|
|
|
|
}}</el-checkbox-button>
|
|
|
|
|
@ -44,6 +45,7 @@
|
|
|
|
|
<div class="select-item">
|
|
|
|
|
<div class="select-item__title">选择泵闸</div>
|
|
|
|
|
<el-checkbox-group size="small" v-model="select.type">
|
|
|
|
|
<el-checkbox-button v-model="isSelectAllType" @change="e => select.type = e ? types.map(i => i.value) : []">全选</el-checkbox-button>
|
|
|
|
|
<el-checkbox-button v-for="item in types" :label="item.value">{{
|
|
|
|
|
item.key
|
|
|
|
|
}}</el-checkbox-button>
|
|
|
|
|
@ -133,6 +135,8 @@ export default {
|
|
|
|
|
props: {},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
isSelectAllType: false,
|
|
|
|
|
isSelectAllArea: false,
|
|
|
|
|
equipmentInfos: { shuniu: [], waiwei: [], zhazhan: [] },
|
|
|
|
|
templateLoading: false,
|
|
|
|
|
templates: [],
|
|
|
|
|
@ -565,13 +569,48 @@ export default {
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "机组数量",
|
|
|
|
|
key: "bengzhashuliang",
|
|
|
|
|
width: 200,
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (h, { row, index }) => this.$createElement('CheckboxGroup',{
|
|
|
|
|
class: "equip-number",
|
|
|
|
|
ref: `bengzhashuliang${index}`,
|
|
|
|
|
on: {
|
|
|
|
|
["on-change"]:e => {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.data[index].bengzhashuliang = 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",
|
|
|
|
|
width: 100,
|
|
|
|
|
width: 160,
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (h, { row }) =>
|
|
|
|
|
h("span", this.abilities.find((i) => i.value === row.leibie)?.key),
|
|
|
|
|
render: (h, { row, index }) =>
|
|
|
|
|
h("Select", {
|
|
|
|
|
props: {
|
|
|
|
|
value: this.data[index].leibie,
|
|
|
|
|
size: "small"
|
|
|
|
|
},
|
|
|
|
|
on: {
|
|
|
|
|
['on-change']:e => {
|
|
|
|
|
this.data[index].leibie = e
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
this.abilities.map(i => h("Option",{
|
|
|
|
|
props: {
|
|
|
|
|
value: i.value
|
|
|
|
|
}
|
|
|
|
|
},i.key))),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "开启时间",
|
|
|
|
|
@ -586,6 +625,7 @@ export default {
|
|
|
|
|
size: "small",
|
|
|
|
|
transfer: true,
|
|
|
|
|
format: "HH:mm",
|
|
|
|
|
steps: [1,5]
|
|
|
|
|
},
|
|
|
|
|
on: {
|
|
|
|
|
["on-change"]: (e) => {
|
|
|
|
|
@ -676,6 +716,7 @@ export default {
|
|
|
|
|
size: "small",
|
|
|
|
|
transfer: true,
|
|
|
|
|
format: "HH:mm",
|
|
|
|
|
steps: [1,5]
|
|
|
|
|
},
|
|
|
|
|
on: {
|
|
|
|
|
["on-change"]: (e) => (this.data[index].end_time = e),
|
|
|
|
|
@ -799,6 +840,7 @@ export default {
|
|
|
|
|
end_time: "",
|
|
|
|
|
content: "",
|
|
|
|
|
level: 1,
|
|
|
|
|
kaiqishuliang: 0,
|
|
|
|
|
leibie: this.ability,
|
|
|
|
|
situations: i.id_equip_situation_relations_equipment_id_relation
|
|
|
|
|
})) || [];
|
|
|
|
|
@ -870,6 +912,7 @@ export default {
|
|
|
|
|
end_time: i.end_time,
|
|
|
|
|
content: i.content,
|
|
|
|
|
level: i.level,
|
|
|
|
|
kaiqishuliang: i.kaiqishuliang,
|
|
|
|
|
}))
|
|
|
|
|
),
|
|
|
|
|
}).then((_) => {
|
|
|
|
|
@ -905,6 +948,7 @@ export default {
|
|
|
|
|
end_time: "",
|
|
|
|
|
content: "",
|
|
|
|
|
level: 1,
|
|
|
|
|
kaiqishuliang: 0,
|
|
|
|
|
leibie: this.ability,
|
|
|
|
|
situations: i.id_equip_situation_relations_equipment_id_relation
|
|
|
|
|
})) || [];
|
|
|
|
|
@ -1139,6 +1183,7 @@ export default {
|
|
|
|
|
end_time: "",
|
|
|
|
|
content: "",
|
|
|
|
|
level: 1,
|
|
|
|
|
kaiqishuliang: 0,
|
|
|
|
|
leibie: this.ability,
|
|
|
|
|
situations: i.id_equip_situation_relations_equipment_id_relation
|
|
|
|
|
})) || [];
|
|
|
|
|
@ -1175,6 +1220,7 @@ export default {
|
|
|
|
|
end_time: "",
|
|
|
|
|
content: "",
|
|
|
|
|
level: 1,
|
|
|
|
|
kaiqishuliang: 0,
|
|
|
|
|
leibie: this.ability,
|
|
|
|
|
situations: i.id_equip_situation_relations_equipment_id_relation
|
|
|
|
|
})) || [];
|
|
|
|
|
@ -1187,6 +1233,7 @@ export default {
|
|
|
|
|
end_time: "",
|
|
|
|
|
content: "",
|
|
|
|
|
level: 1,
|
|
|
|
|
kaiqishuliang: 0,
|
|
|
|
|
leibie: this.ability,
|
|
|
|
|
situations: i.id_equip_situation_relations_equipment_id_relation
|
|
|
|
|
})) || [];
|
|
|
|
|
@ -1213,6 +1260,12 @@ export default {
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
::v-deep .equip-number .ivu-checkbox-inner {
|
|
|
|
|
border-radius: 100%;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .equip-number .ivu-checkbox ~ span {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
.flex-center {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|