浏览代码

记录事项分类--维修,维保,专维分类显示 初步提交

yunxing 4 年之前
父节点
当前提交
498374d6b0

文件差异内容过多而无法显示
+ 427 - 417
src/utils/plugins/components.js


+ 10 - 8
src/views/equipment/eqDialog.vue

@@ -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) {

+ 2 - 1
src/views/equipment/table/eqDetaileDialog.vue

@@ -130,7 +130,7 @@
 /**
  * @author yunxing
  * @date 2020年08月27日
- * @description queryTableList方法中 queryAsset接口添加page :1,size 字段 
+ * @description queryTableList方法中 queryAsset接口添加page :1,size 字段
  */
 import { Select } from 'meri-design'
 import { mapGetters } from 'vuex'
@@ -313,6 +313,7 @@ export default {
             if (data.keyword == '') {
                 delete data.keyword
             }
+            // TODO: 添加条数?
             let postParams = {
                 classstructureid: this.row.classstructureid,
                 type_code: this.row.type_code,

+ 10 - 5
src/views/equipment/table/recordDialog.vue

@@ -56,9 +56,9 @@ export default {
         },
     },
     methods: {
-        open({ system_code, diff }) {
+        open({ system_code, wznw, apply }) {
             this.visible = true
-            this.getRecordList({ system_code, diff })
+            this.getRecordList({ system_code, wznw, apply })
         },
         objectSpanMethod({ row, column, rowIndex, columnIndex }) {
             if (columnIndex === 0) {
@@ -74,11 +74,16 @@ export default {
                 }
             }
         },
-        getRecordList({ system_code, diff }) {
+        /**
+         * @param { string } system_code 八大系统code
+         * @param { string } wznw   区分各系统内外(如: 慧云机房内,慧云机房外)
+         * @param { string } apply  事项类型, 含: 维修维保,专维及其他
+         */
+        getRecordList({ system_code, wznw, apply }) {
             let getParams = {
                 system_code,
-                // TODO: 添加diff字段
-                // diff,
+                // TODO: 添加 wznw, apply 字段
+                //  wznw, apply,
                 plazaId: this.$store.state.plazaId,
             }
             queryRecord({ getParams }).then((res) => {