|
@@ -393,7 +393,7 @@ export default {
|
|
|
computed: {
|
|
|
showImg: function () {
|
|
|
let arr = ['QD', 'YL', 'GJSP']
|
|
|
- // 供电,暖通,消防,弱电,给排水系统的 记录表格中的 日常维保/维修事项 页签, 不显示icon
|
|
|
+ // 供电,暖通,消防,弱电,给排水系统的 记录表格中的 日常维保/维修事项 tab页, 不显示icon
|
|
|
let flag = true
|
|
|
let system = ['1001', '1002', '1003', '1004', '1005']
|
|
|
let labelArr = ['日常维保事项', '日常维修事项']
|
|
@@ -403,7 +403,7 @@ export default {
|
|
|
flag = true
|
|
|
}
|
|
|
// TODO: title右侧 icon入口
|
|
|
- return arr.indexOf(this.dialogInfo.id.slice(2, 4)) === -1 && this.dialogInfo.label !== '查看图纸' //&& flag
|
|
|
+ return arr.indexOf(this.dialogInfo.id.slice(2, 4)) === -1 && this.dialogInfo.label !== '查看图纸' && flag
|
|
|
},
|
|
|
},
|
|
|
mounted() {},
|
|
@@ -502,20 +502,22 @@ export default {
|
|
|
this.tabLabel = this.dialogInfo.children[0].label
|
|
|
}
|
|
|
const system_code = this.smsxt
|
|
|
- // 主要设备维修事项 XFWX 1003
|
|
|
- // 中控室/消防泵房内重要维修
|
|
|
// 子系统
|
|
|
let system = systemData.filter((v) => v.smsxt === this.smsxt)[0]
|
|
|
// 子系统tab --> 维修 维保,专维
|
|
|
let tabData = system.children.filter((v) => v.label === this.dialogInfo.label)[0]
|
|
|
- // 获取到diff
|
|
|
- const diff = tabData.children.filter((v) => v.label === this.tabLabel)[0].param.diff
|
|
|
+ // 获取到子系统的param
|
|
|
+ let param = tabData.children.filter((v) => v.label === this.tabLabel)[0].param
|
|
|
+ console.log(`%c${JSON.stringify(param, null, 2)}`, 'color:blue')
|
|
|
+ // 获取到 wznw,apply
|
|
|
+ const { wznw, apply } = param
|
|
|
// 打开记录表格
|
|
|
/**
|
|
|
* @param { string } system_code 八大系统code
|
|
|
- * @param { string } diff 记录表格,筛选使用
|
|
|
+ * @param { string } wznw 区分各系统内外(如: 慧云机房内,慧云机房外)
|
|
|
+ * @param { string } apply 事项类型, 含: 维修维保,专维及其他
|
|
|
*/
|
|
|
- this.$refs.Dialog.open({ system_code, diff })
|
|
|
+ this.$refs.Dialog.open({ system_code, wznw, apply })
|
|
|
},
|
|
|
//系统原理图接口
|
|
|
initImage(typecode) {
|