Pārlūkot izejas kodu

fix: 权限调整

zh 2 gadi atpakaļ
vecāks
revīzija
75fae83e64

+ 26 - 22
src/views/commercialEngineering/crossDistrict/crossDistrictkList.vue

@@ -47,7 +47,30 @@ export default {
     return {
       visible: false,
       // 事件组合
-      optionsEvensGroup: [
+
+      // 表格属性
+      tableAttributes: {
+        // 启用勾选列
+        selectColumn: true
+      }, // 关闭新增弹窗
+
+      // 表格事件
+      tableEvents: {
+        'selection-change': this.selectionChange
+      },
+      recordSelected: [],
+      content: '新增',
+      detailId: '',
+      module: 'add', // ['add', 'edit', 'detail', 'examine']
+      operateVisible: false,
+      operateType: null,
+      operateTitle: null
+    }
+  },
+  computed: {
+    ...mapGetters(['isTradeExaminer']),
+    optionsEvensGroup() {
+      return [
         [
           [
             {
@@ -59,6 +82,7 @@ export default {
           ]
         ],
         ...(() => {
+          console.log(this.isTradeExaminer, 9999)
           return this.isTradeExaminer
             ? [
               [
@@ -130,29 +154,9 @@ export default {
             ]
             : []
         })()
-      ],
-      // 表格属性
-      tableAttributes: {
-        // 启用勾选列
-        selectColumn: true
-      }, // 关闭新增弹窗
-
-      // 表格事件
-      tableEvents: {
-        'selection-change': this.selectionChange
-      },
-      recordSelected: [],
-      content: '新增',
-      detailId: '',
-      module: 'add', // ['add', 'edit', 'detail', 'examine']
-      operateVisible: false,
-      operateType: null,
-      operateTitle: null
+      ]
     }
   },
-  computed: {
-    ...mapGetters(['isTradeExaminer'])
-  },
   methods: {
     // 列表请求函数
     getList(...p) {

+ 27 - 24
src/views/commercialEngineering/frock/frockList.vue

@@ -10,8 +10,7 @@
     :options-evens-group="optionsEvensGroup"
     :table-attributes="tableAttributes"
     :table-events="tableEvents"
-    :replaceOrNotMap ="false"
-
+    :replace-or-not-map="false"
   >
     <Popu v-if="visible">
       <el-page-header slot="head" :content="content" @back="handleClose" />
@@ -45,7 +44,30 @@ export default {
   data() {
     return {
       visible: false,
-      optionsEvensGroup: [
+
+      // 表格属性
+      tableAttributes: {
+        // 启用勾选列
+        selectColumn: true
+      }, // 关闭新增弹窗
+
+      // 表格事件
+      tableEvents: {
+        'selection-change': this.selectionChange
+      },
+      recordSelected: [],
+      content: '新增',
+      detailId: '',
+      module: 'add',
+      operateVisible: false,
+      operateType: null,
+      operateTitle: null
+    }
+  },
+  computed: {
+    ...mapGetters(['isTradeExaminer']),
+    optionsEvensGroup() {
+      return [
         [
           [
             {
@@ -57,6 +79,7 @@ export default {
           ]
         ],
         ...(() => {
+          console.log(this.isTradeExaminer, 9999)
           return this.isTradeExaminer
             ? [
               [
@@ -128,29 +151,9 @@ export default {
             ]
             : []
         })()
-      ],
-      // 表格属性
-      tableAttributes: {
-        // 启用勾选列
-        selectColumn: true
-      }, // 关闭新增弹窗
-
-      // 表格事件
-      tableEvents: {
-        'selection-change': this.selectionChange
-      },
-      recordSelected: [],
-      content: '新增',
-      detailId: '',
-      module: 'add',
-      operateVisible: false,
-      operateType: null,
-      operateTitle: null
+      ]
     }
   },
-  computed: {
-    ...mapGetters(['isTradeExaminer'])
-  },
   methods: {
     // 列表请求函数
     getList(...p) {

+ 26 - 22
src/views/commercialEngineering/homeDecoration/homeDecorationList.vue

@@ -55,7 +55,30 @@ export default {
     return {
       visible: false,
       // 事件组合
-      optionsEvensGroup: [
+
+      // 表格属性
+      tableAttributes: {
+        // 启用勾选列
+        selectColumn: true
+      }, // 关闭新增弹窗
+
+      // 表格事件
+      tableEvents: {
+        'selection-change': this.selectionChange
+      },
+      recordSelected: [],
+      content: '新增',
+      module: 'add',
+      detailId: '',
+      operateVisible: false,
+      operateType: null,
+      operateTitle: null
+    }
+  },
+  computed: {
+    ...mapGetters(['isTradeExaminer']),
+    optionsEvensGroup() {
+      return [
         [
           [
             {
@@ -67,6 +90,7 @@ export default {
           ]
         ],
         ...(() => {
+          console.log(this.isTradeExaminer, 9999)
           return this.isTradeExaminer
             ? [
               [
@@ -138,29 +162,9 @@ export default {
             ]
             : []
         })()
-      ],
-      // 表格属性
-      tableAttributes: {
-        // 启用勾选列
-        selectColumn: true
-      }, // 关闭新增弹窗
-
-      // 表格事件
-      tableEvents: {
-        'selection-change': this.selectionChange
-      },
-      recordSelected: [],
-      content: '新增',
-      module: 'add',
-      detailId: '',
-      operateVisible: false,
-      operateType: null,
-      operateTitle: null
+      ]
     }
   },
-  computed: {
-    ...mapGetters(['isTradeExaminer'])
-  },
   methods: {
     // 列表请求函数
     getList(...p) {