Forráskód Böngészése

设备档案卡兼容岗位整合后和未整合的岗位配置按钮

shenqilong 8 hónapja
szülő
commit
f093db4df5
1 módosított fájl, 15 hozzáadás és 3 törlés
  1. 15 3
      src/views/component/device/index.vue

+ 15 - 3
src/views/component/device/index.vue

@@ -6,7 +6,13 @@
           key="istree"
           ref="crud"
           :data="listData"
-          :toolbars="listConfig.toolbars"
+          :toolbars="
+            config
+              ? listConfig.toolbars.filter((obj) => {
+                  return obj.key !== 'customSetting'
+                })
+              : listConfig.toolbars
+          "
           :search-form="listConfig.searchForm"
           :pk-key="pkKey"
           :columns="listConfig.columns"
@@ -626,7 +632,12 @@ export default {
             icon: 'ibps-icon-sign-in',
             type: 'primary'
           },
-          // { key: 'customSetting', label: '岗位/分组配置', icon: 'ibps-icon-cogs', type: 'info' },
+          {
+            key: 'customSetting',
+            label: '岗位/分组配置',
+            icon: 'ibps-icon-cogs',
+            type: 'info'
+          },
           {
             key: 'customRemove',
             label: '删除',
@@ -908,7 +919,8 @@ export default {
         信息系统: '信息系统'
       },
       tagName: '',
-      tagData: {}
+      tagData: {},
+      config: setting?.postJob?.allocation || false
     }
   },
   async mounted() {