浏览代码

feat: 修改列表权限

aXin-0810 2 年之前
父节点
当前提交
4bc7eed0a4
共有 2 个文件被更改,包括 13 次插入7 次删除
  1. 0 6
      src/components/template/template-page-1.vue
  2. 13 1
      src/views/supply/apply/apply_list.vue

+ 0 - 6
src/components/template/template-page-1.vue

@@ -195,12 +195,6 @@ export default {
         },
         },
         {
         {
           columnAttributes: {
           columnAttributes: {
-            label: '万能id',
-            prop: 'objId'
-          }
-        },
-        {
-          columnAttributes: {
             label: '模块名称',
             label: '模块名称',
             prop: 'moduleName'
             prop: 'moduleName'
           }
           }

+ 13 - 1
src/views/supply/apply/apply_list.vue

@@ -12,6 +12,7 @@
       :columnParsing="columnParsing"
       :columnParsing="columnParsing"
       :optionsEvensGroup="optionsEvensGroup"
       :optionsEvensGroup="optionsEvensGroup"
       :replaceOrNotMap="false"
       :replaceOrNotMap="false"
+      :fieldBeansHook="fieldBeansHook"
     >
     >
     </template-page>
     </template-page>
     <ExamineDialog
     <ExamineDialog
@@ -236,6 +237,18 @@ export default {
     selectionChange(data) {
     selectionChange(data) {
       this.multipleSelection = data
       this.multipleSelection = data
     },
     },
+    fieldBeansHook(list) {
+      var listcp = [...list]
+      if (!~['100093', '600023', ''].indexOf(this.$store.state?.user?.userInfo?.customerId)) {
+        for (var i = 0; i < listcp.length; i++) {
+          if (~['是否同步到格匠采购入库单', '同步格匠失败原因'].indexOf(listcp[i].label)) {
+            listcp.splice(i, 1)
+            i--
+          }
+        }
+      }
+      return listcp
+    },
     operation() {
     operation() {
       return (h, { row, index, column }) => {
       return (h, { row, index, column }) => {
         return (
         return (
@@ -485,7 +498,6 @@ export default {
       this.isShowForm = false
       this.isShowForm = false
       this.isShowReturnForm = false
       this.isShowReturnForm = false
       this.$refs.pageRef.refreshList()
       this.$refs.pageRef.refreshList()
-
     },
     },
 
 
     handleDelete(id) {
     handleDelete(id) {