yusheng 1 год назад
Родитель
Сommit
ee0d737b3c

+ 157 - 152
src/views/codeManagement/businessCode/codeList.vue

@@ -20,7 +20,10 @@
       </span>
     </template>
     <template v-slot:toolbar>
-      <el-dropdown trigger="click">
+      <el-dropdown
+        trigger="click"
+        v-if="$hasPermission('mian:businessCode:save')"
+      >
         <el-button type="primary">
           新建<i class="el-icon-arrow-down el-icon--right"></i>
         </el-button>
@@ -39,6 +42,7 @@
         type="primary"
         @click.native="openEdit('edit')"
         :disabled="selection.length != 1"
+        v-if="$hasPermission('mian:businessCode:update')"
       >
         编辑
       </el-button>
@@ -46,6 +50,7 @@
         class="ele-action"
         title="确定要删除吗?"
         @confirm="remove()"
+        v-if="$hasPermission('mian:businessCode:delete')"
       >
         <template v-slot:reference>
           <el-button type="danger" :disabled="selection.length == 0">
@@ -68,168 +73,168 @@
     ></codeEdit>
   </ele-pro-table>
 </template>
-   
-  <script>
-import tabMixins from '@/mixins/tableColumnsMixin';
-import codeEdit from './components/codeEdit.vue';
-import TypeEdit from './components/typeEdit.vue';
 
-import { listParentId,removeCode } from '@/api/businessCode';
-export default {
-  mixins: [tabMixins],
-  components: {
-    codeEdit,
-    TypeEdit
-  },
-  props: {
-    // 上级
-    parentData: {
-      type: Object,
-      default: () => {}
-    }
-  },
+<script>
+  import tabMixins from '@/mixins/tableColumnsMixin';
+  import codeEdit from './components/codeEdit.vue';
+  import TypeEdit from './components/typeEdit.vue';
 
-  data() {
-    return {
-      selection: [],
-      // 表格列配置
-      columns: [
-        {
-          width: 45,
-          type: 'selection',
-          columnKey: 'selection',
-          align: 'center'
-          // selectable: (row, index) => {
-          //   return !this.disabledTableList
-          //     .map((item) => item.id)
-          //     .includes(row.id);
-          // }
-        },
-        {
-          label: '名称',
-          prop: 'name',
-          align: 'center',
-          showOverflowTooltip: true,
-          fixed: 'left',
-          slot: 'name'
-        },
-        {
-          prop: 'remark',
-          label: '描述',
-          align: 'center',
-          showOverflowTooltip: true
-        },
+  import { listParentId, removeCode } from '@/api/businessCode';
+  export default {
+    mixins: [tabMixins],
+    components: {
+      codeEdit,
+      TypeEdit
+    },
+    props: {
+      // 上级
+      parentData: {
+        type: Object,
+        default: () => {}
+      }
+    },
 
-        {
-          prop: 'createUserName',
-          label: '创建人',
-          align: 'center',
-          showOverflowTooltip: true
-        },
-        {
-          prop: 'createTime',
-          label: '创建时间',
-          align: 'center',
-          showOverflowTooltip: true
-        },
-        {
-          prop: 'updateUserName',
-          label: '修改人',
-          align: 'center',
-          showOverflowTooltip: true
-        },
-        {
-          prop: 'updateTime',
-          label: '修改时间',
-          align: 'center',
-          showOverflowTooltip: true
-        },
+    data() {
+      return {
+        selection: [],
+        // 表格列配置
+        columns: [
+          {
+            width: 45,
+            type: 'selection',
+            columnKey: 'selection',
+            align: 'center'
+            // selectable: (row, index) => {
+            //   return !this.disabledTableList
+            //     .map((item) => item.id)
+            //     .includes(row.id);
+            // }
+          },
+          {
+            label: '名称',
+            prop: 'name',
+            align: 'center',
+            showOverflowTooltip: true,
+            fixed: 'left',
+            slot: 'name'
+          },
+          {
+            prop: 'remark',
+            label: '描述',
+            align: 'center',
+            showOverflowTooltip: true
+          },
 
-        {
-          prop: '',
-          label: '状态',
-          align: 'center',
-          showOverflowTooltip: true,
-          minWidth: 100,
-          formatter: (_row, _column, cellValue) => {
-            return this.$util.toDateString(cellValue);
-          }
-        }
-      ],
-      // 是否显示编辑弹窗
-      showEditFlag: false,
-      pageSize: this.$store.state.tablePageSize,
-      cacheKeyUrl: 'ad4181af-codeManagement-businessCode'
-    };
-  },
-  created() {},
+          {
+            prop: 'createUserName',
+            label: '创建人',
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'createTime',
+            label: '创建时间',
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'updateUserName',
+            label: '修改人',
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'updateTime',
+            label: '修改时间',
+            align: 'center',
+            showOverflowTooltip: true
+          },
 
-  methods: {
-    /* 表格数据源 */
-    datasource({ page, limit, where, order }) {
-      return listParentId({
-        ...where,
-        pageNum: page,
-        size: limit,
-        parentId: this.parentData?.id
-      });
-    },
-    /* 刷新表格 */
-    reload(where) {
-      this.$nextTick(() => {
-        this.$refs.table.reload({ pageNum: 1, where: where });
-      });
+          {
+            prop: '',
+            label: '状态',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 100,
+            formatter: (_row, _column, cellValue) => {
+              return this.$util.toDateString(cellValue);
+            }
+          }
+        ],
+        // 是否显示编辑弹窗
+        showEditFlag: false,
+        pageSize: this.$store.state.tablePageSize,
+        cacheKeyUrl: 'ad4181af-codeManagement-businessCode'
+      };
     },
+    created() {},
 
-    /* 显示编辑 */
-    openEdit(type, row = '') {
-      if (type == 'edit' && this.selection[0].type == 1) {
-        this.openType(type, this.selection[0]);
-        return;
-      }
-      this.$refs.codeEditRef.open(type, this.selection[0]);
-    },
-    openType(type, row = '') {
-      this.$refs.typeEditRef.open(type, row);
-    },
+    methods: {
+      /* 表格数据源 */
+      datasource({ page, limit, where, order }) {
+        return listParentId({
+          ...where,
+          pageNum: page,
+          size: limit,
+          parentId: this.parentData?.id
+        });
+      },
+      /* 刷新表格 */
+      reload(where) {
+        this.$nextTick(() => {
+          this.$refs.table.reload({ pageNum: 1, where: where });
+        });
+      },
 
-    // async success(current) {
-    //   await this.reload();
-    //   this.current = current;
-    //   this.$nextTick(() => {
-    //     this.$refs.PowerRef &&
-    //       this.$refs.PowerRef.setTableList(this.current.userAuthority);
-    //   });
-    // },
+      /* 显示编辑 */
+      openEdit(type, row = '') {
+        if (type == 'edit' && this.selection[0].type == 1) {
+          this.openType(type, this.selection[0]);
+          return;
+        }
+        this.$refs.codeEditRef.open(type, this.selection[0]);
+      },
+      openType(type, row = '') {
+        this.$refs.typeEditRef.open(type, row);
+      },
 
-    /* 删除 */
-    remove(row) {
-      removeCode(this.selection.map((item) => item.id))
-        .then((msg) => {
-          this.$message.success('操作成功');
-          this.$emit('done', this.parentData);
-        })
-        .catch((e) => {
-          // this.$message.error(e.message);
-        });
-    },
-    done() {
-      this.$emit('done', this.parentData);
-    },
-    getTableList() {
-      return JSON.parse(JSON.stringify(this.selection));
+      // async success(current) {
+      //   await this.reload();
+      //   this.current = current;
+      //   this.$nextTick(() => {
+      //     this.$refs.PowerRef &&
+      //       this.$refs.PowerRef.setTableList(this.current.userAuthority);
+      //   });
+      // },
+
+      /* 删除 */
+      remove(row) {
+        removeCode(this.selection.map((item) => item.id))
+          .then((msg) => {
+            this.$message.success('操作成功');
+            this.$emit('done', this.parentData);
+          })
+          .catch((e) => {
+            // this.$message.error(e.message);
+          });
+      },
+      done() {
+        this.$emit('done', this.parentData);
+      },
+      getTableList() {
+        return JSON.parse(JSON.stringify(this.selection));
+      }
     }
-  }
-};
+  };
 </script>
 
 <style lang="scss" scoped>
-.listName {
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  img {
-    margin-right: 3px;
+  .listName {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    img {
+      margin-right: 3px;
+    }
   }
-}
-</style>
+</style>

+ 129 - 127
src/views/codeManagement/businessCode/codeSegmentList.vue

@@ -20,28 +20,23 @@
             <el-form-item label="状态" prop="status"> </el-form-item>
           </el-col>
           <el-col :span="13">
-            <el-form-item label="创建人" prop="createUserName"> 
-              <el-input v-model="parentData.createUserName" ></el-input>
-
+            <el-form-item label="创建人" prop="createUserName">
+              <el-input v-model="parentData.createUserName"></el-input>
             </el-form-item>
           </el-col>
           <el-col :span="13">
             <el-form-item label="创建时间" prop="createTime">
-              <el-input v-model="parentData.createTime" ></el-input>
-              
+              <el-input v-model="parentData.createTime"></el-input>
             </el-form-item>
           </el-col>
           <el-col :span="13">
             <el-form-item label="修改人" prop="updateUserName">
-              <el-input v-model="parentData.updateUserName" ></el-input>
-              
+              <el-input v-model="parentData.updateUserName"></el-input>
             </el-form-item>
           </el-col>
           <el-col :span="13">
-            <el-form-item label="修改时间" prop="updateTime"> 
-              <el-input v-model="parentData.updateTime" ></el-input>
-
-
+            <el-form-item label="修改时间" prop="updateTime">
+              <el-input v-model="parentData.updateTime"></el-input>
             </el-form-item>
           </el-col>
         </el-row>
@@ -60,7 +55,11 @@
         :needPage="false"
       >
         <template v-slot:toolbar>
-          <el-button type="primary" @click.native="openEdit('add')">
+          <el-button
+            type="primary"
+            @click.native="openEdit('add')"
+            v-if="$hasPermission('mian:businessCode:save')"
+          >
             新建
           </el-button>
 
@@ -68,6 +67,7 @@
             type="primary"
             :disabled="selection.length != 1"
             @click.native="openEdit('edit')"
+            v-if="$hasPermission('mian:businessCode:update')"
           >
             编辑
           </el-button>
@@ -75,6 +75,7 @@
             class="ele-action"
             title="确定要删除此码段吗?"
             @confirm="remove()"
+            v-if="$hasPermission('mian:businessCode:delete')"
           >
             <template v-slot:reference>
               <el-button type="danger" :disabled="selection.length == 0">
@@ -97,127 +98,128 @@
   </el-tabs>
   <!-- 数据表格 -->
 </template>
-   
-  <script>
-import codeSegmentEdit from './components/codeSegmentEdit.vue';
-import { roughRule, fineRule } from '@/enum/dict.js';
-import { pageSegment, removeSegment } from '@/api/businessCode';
-export default {
-  components: {
-    codeSegmentEdit
-  },
-  props: {
-    // 上级
-    parentData: {
-      type: Object,
-      default: () => {}
-    }
-  },
 
-  data() {
-    return {
-      form: {},
-      selection: [],
-      // 表格列配置
-      columns: [
-        {
-          width: 45,
-          type: 'selection',
-          columnKey: 'selection',
-          align: 'center'
-        },
-        {
-          label: '名称',
-          prop: 'name',
-          align: 'center',
-          showOverflowTooltip: true,
-          fixed: 'left'
-        },
-        {
-          prop: 'remark',
-          label: '描述',
-          align: 'center',
-          showOverflowTooltip: true
-        },
-        {
-          prop: 'length',
-          label: '长度',
-          align: 'center',
-          showOverflowTooltip: true
-        },
-        {
-          prop: 'roughRule',
-          label: '粗规则',
-          align: 'center',
-          showOverflowTooltip: true,
-          formatter: (_row, _column, cellValue) => {
-            return roughRule.find((item) => item.value == cellValue)?.label;
-          }
-        },
-        {
-          prop: 'fineRule',
-          label: '细规则',
-          align: 'center',
-          showOverflowTooltip: true,
-          formatter: (_row, _column, cellValue) => {
-            let _fineRule=fineRule.filter(item=>item.pid==_row.roughRule)
-            return _fineRule.find((item) => item.value == cellValue)?.label;
-          }
-        },
-        {
-          prop: 'createUserName',
-          label: '创建人',
-          align: 'center',
-          showOverflowTooltip: true
-        },
-        {
-          prop: 'createTime',
-          label: '创建时间',
-          align: 'center',
-          showOverflowTooltip: true
-        }
-      ]
-    };
-  },
-  created() {},
-
-  methods: {
-    /* 表格数据源 */
-    datasource({ page, limit, where, order }) {
-      return pageSegment({
-        ...where,
-        pageNum: page,
-        size: limit,
-        businessCodeCategoryId: this.parentData?.id
-      });
+<script>
+  import codeSegmentEdit from './components/codeSegmentEdit.vue';
+  import { roughRule, fineRule } from '@/enum/dict.js';
+  import { pageSegment, removeSegment } from '@/api/businessCode';
+  export default {
+    components: {
+      codeSegmentEdit
     },
-    /* 刷新表格 */
-    reload(where) {
-      this.$nextTick(() => {
-        this.$refs.table.reload({ pageNum: 1, where: where });
-      });
+    props: {
+      // 上级
+      parentData: {
+        type: Object,
+        default: () => {}
+      }
     },
 
-    /* 显示编辑 */
-    openEdit(type, row = '') {
-      this.$refs.codeSegmentEditRef.open(type, this.selection[0]);
+    data() {
+      return {
+        form: {},
+        selection: [],
+        // 表格列配置
+        columns: [
+          {
+            width: 45,
+            type: 'selection',
+            columnKey: 'selection',
+            align: 'center'
+          },
+          {
+            label: '名称',
+            prop: 'name',
+            align: 'center',
+            showOverflowTooltip: true,
+            fixed: 'left'
+          },
+          {
+            prop: 'remark',
+            label: '描述',
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'length',
+            label: '长度',
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'roughRule',
+            label: '粗规则',
+            align: 'center',
+            showOverflowTooltip: true,
+            formatter: (_row, _column, cellValue) => {
+              return roughRule.find((item) => item.value == cellValue)?.label;
+            }
+          },
+          {
+            prop: 'fineRule',
+            label: '细规则',
+            align: 'center',
+            showOverflowTooltip: true,
+            formatter: (_row, _column, cellValue) => {
+              let _fineRule = fineRule.filter(
+                (item) => item.pid == _row.roughRule
+              );
+              return _fineRule.find((item) => item.value == cellValue)?.label;
+            }
+          },
+          {
+            prop: 'createUserName',
+            label: '创建人',
+            align: 'center',
+            showOverflowTooltip: true
+          },
+          {
+            prop: 'createTime',
+            label: '创建时间',
+            align: 'center',
+            showOverflowTooltip: true
+          }
+        ]
+      };
     },
+    created() {},
 
-    /* 删除 */
-    remove() {
-      removeSegment(this.selection.map((item) => item.id))
-        .then((msg) => {
-          this.$message.success('操作成功');
-          this.$emit('done', this.parentData);
-        })
-        .catch((e) => {
-          // this.$message.error(e.message);
+    methods: {
+      /* 表格数据源 */
+      datasource({ page, limit, where, order }) {
+        return pageSegment({
+          ...where,
+          pageNum: page,
+          size: limit,
+          businessCodeCategoryId: this.parentData?.id
         });
-    },
-    done() {
-      this.$emit('done', this.parentData);
+      },
+      /* 刷新表格 */
+      reload(where) {
+        this.$nextTick(() => {
+          this.$refs.table.reload({ pageNum: 1, where: where });
+        });
+      },
+
+      /* 显示编辑 */
+      openEdit(type, row = '') {
+        this.$refs.codeSegmentEditRef.open(type, this.selection[0]);
+      },
+
+      /* 删除 */
+      remove() {
+        removeSegment(this.selection.map((item) => item.id))
+          .then((msg) => {
+            this.$message.success('操作成功');
+            this.$emit('done', this.parentData);
+          })
+          .catch((e) => {
+            // this.$message.error(e.message);
+          });
+      },
+      done() {
+        this.$emit('done', this.parentData);
+      }
     }
-  }
-};
+  };
 </script>
-  

+ 3 - 1
src/views/codeManagement/businessCode/codeValueList.vue

@@ -72,6 +72,8 @@
             class="ele-action"
             title="确定要删除此码值吗?"
             @confirm="remove(scoped.$index)"
+            v-if="$hasPermission('mian:businessCode:delete')"
+
           >
             <template v-slot:reference>
               <el-button type="danger"> 删除 </el-button>
@@ -88,7 +90,7 @@
         <template v-slot:remark="{ row }">
           <el-input v-model="row.remark" @change="valueChange(row)"></el-input>
         </template>
-        <template v-slot:toolbar v-if="form.roughRule != 4">
+        <template v-slot:toolbar v-if="form.roughRule != 4&&$hasPermission('mian:businessCode:save')">
           <el-button type="primary" @click.native="openEdit('add')">
             增加
           </el-button>

+ 4 - 0
src/views/codeManagement/components/code-list.vue

@@ -21,6 +21,7 @@
             icon="el-icon-plus"
             class="ele-btn-icon"
             @click="openEdit()"
+            v-if="$hasPermission('mian:codeManage:save')"
           >
             添加
           </el-button>
@@ -33,6 +34,7 @@
           :underline="false"
           icon="el-icon-edit"
           @click="openEdit(row)"
+          v-if="$hasPermission('mian:codeManage:update')"
         >
           编辑
         </el-link>
@@ -40,6 +42,8 @@
           class="ele-action"
           title="确定要删除此用户吗?"
           @confirm="remove(row)"
+          v-if="$hasPermission('mian:codeManage:delete')"
+
         >
           <template v-slot:reference>
             <el-link type="danger" :underline="false" icon="el-icon-delete">

+ 5 - 0
src/views/notifyManage/templateManage/index.vue

@@ -10,6 +10,8 @@
             type="primary"
             icon="el-icon-plus"
             class="ele-btn-icon"
+            v-if="$hasPermission('sys:notifytemplate:save')"
+
             @click="handleAddOrEdit('add','')">
             新建
           </el-button>
@@ -21,12 +23,15 @@
             type="primary"
             :underline="false"
             icon="el-icon-edit"
+            v-if="$hasPermission('sys:notifytemplate:update')"
+
             @click="handleAddOrEdit('update',row)">
             编辑
           </el-link>
           <el-popconfirm
             class="ele-action"
             title="确定要删除此数据吗?"
+            v-if="$hasPermission('sys:notifytemplate:delete')"
             @confirm="deleteCategory(row)">
             <template v-slot:reference>
               <el-link type="danger" :underline="false" icon="el-icon-delete">删除</el-link>

+ 6 - 1
src/views/rulesManagement/barCodeManagement/index.vue

@@ -68,6 +68,7 @@
                 size="mini"
                 type="primary"
                 @click="jumpAdd"
+                v-if="$hasPermission('main:barCode:save')"
                 >新增</el-button
               >
               <el-button size="mini" type="primary" @click="handleExport"
@@ -100,7 +101,10 @@
                   >编辑</el-button
                 > -->
                     <el-button
-                      v-if="scope.row.dictBarName == '包装条码'"
+                      v-if="
+                        scope.row.dictBarName == '包装条码' &&
+                        $hasPermission('main:barCode:print')
+                      "
                       @click="print(scope.row)"
                       type="text"
                       size="mini"
@@ -116,6 +120,7 @@
                       @click="handleDelete(scope.row.id)"
                       type="text"
                       size="mini"
+                      v-if="$hasPermission('main:barCode:delete')"
                       >删除</el-button
                     >
                   </div>

+ 7 - 0
src/views/rulesManagement/earlyWarningRules/index.vue

@@ -20,6 +20,7 @@
             icon="el-icon-plus"
             class="ele-btn-icon"
             @click="openEdit('add')"
+            v-if="$hasPermission('main:warnrule:save')"
           >
             新建
           </el-button>
@@ -45,6 +46,8 @@
             :underline="false"
             icon="el-icon-finished"
             @click="openEdit('clone', row)"
+            v-if="$hasPermission('main:warnrule:update')"
+
           >
             克隆
           </el-link>
@@ -53,6 +56,8 @@
             :underline="false"
             icon="el-icon-edit"
             @click="openEdit('edit', row)"
+            v-if="$hasPermission('main:warnrule:update')"
+
           >
             修改
           </el-link>
@@ -60,6 +65,8 @@
             class="ele-action"
             title="确定要删除此角色吗?"
             @confirm="remove(row)"
+            v-if="$hasPermission('main:warnrule:delete')"
+
           >
             <template v-slot:reference>
               <el-link type="danger" :underline="false" icon="el-icon-delete">

+ 3 - 0
src/views/rulesManagement/inspectionPoint/index.vue

@@ -20,6 +20,7 @@
             icon="el-icon-plus"
             class="ele-btn-icon"
             @click="openEdit()"
+            v-if="$hasPermission('eam:planconfig:save')"
           >
             新建
           </el-button>
@@ -42,6 +43,7 @@
             :underline="false"
             icon="el-icon-edit"
             @click="openEdit(row)"
+            v-if="$hasPermission('eam:planconfig:update')"
           >
             修改
           </el-link>
@@ -49,6 +51,7 @@
             class="ele-action"
             title="确定要删除此巡检点配置吗?"
             @confirm="remove(row)"
+            v-if="$hasPermission('eam:planconfig:delete')"
           >
             <template v-slot:reference>
               <el-link type="danger" :underline="false" icon="el-icon-delete">

+ 5 - 0
src/views/rulesManagement/maintenance/index.vue

@@ -20,6 +20,7 @@
             icon="el-icon-plus"
             class="ele-btn-icon"
             @click="openEdit()"
+            v-if="$hasPermission('eam:planconfig:save')"
           >
             新建
           </el-button>
@@ -36,6 +37,8 @@
             :underline="false"
             icon="el-icon-edit"
             @click="openEdit(row)"
+            v-if="$hasPermission('eam:planconfig:update')"
+
           >
             修改
           </el-link>
@@ -43,6 +46,8 @@
             class="ele-action"
             title="确定要删除此保养配置吗?"
             @confirm="remove(row)"
+            v-if="$hasPermission('eam:planconfig:delete')"
+
           >
             <template v-slot:reference>
               <el-link type="danger" :underline="false" icon="el-icon-delete">

+ 7 - 0
src/views/rulesManagement/matterRules/index.vue

@@ -19,6 +19,7 @@
             icon="el-icon-plus"
             class="ele-btn-icon"
             @click="openEdit('add')"
+            v-if="$hasPermission('main:ruleinfo:saveOrEdit')"
           >
             新建
           </el-button>
@@ -36,6 +37,8 @@
             :underline="false"
             icon="el-icon-finished"
             @click="openEdit('clone', row)"
+            v-if="$hasPermission('main:ruleinfo:saveOrEdit')"
+
           >
             克隆
           </el-link>
@@ -44,6 +47,8 @@
             :underline="false"
             icon="el-icon-edit"
             @click="openEdit('edit', row)"
+            v-if="$hasPermission('main:ruleinfo:saveOrEdit')"
+
           >
             修改
           </el-link>
@@ -51,6 +56,8 @@
             class="ele-action"
             title="确定要删除此条数据吗?"
             @confirm="remove(row)"
+            v-if="$hasPermission('main:ruleinfo:delete')"
+
           >
             <template v-slot:reference>
               <el-link type="danger" :underline="false" icon="el-icon-delete">

+ 4 - 0
src/views/rulesManagement/measuringSubmit/index.vue

@@ -20,6 +20,7 @@
             icon="el-icon-plus"
             class="ele-btn-icon"
             @click="openEdit()"
+            v-if="$hasPermission('eam:planconfig:save')"
           >
             新建
           </el-button>
@@ -36,6 +37,7 @@
             :underline="false"
             icon="el-icon-edit"
             @click="openEdit(row)"
+            v-if="$hasPermission('eam:planconfig:update')"
           >
             修改
           </el-link>
@@ -43,6 +45,8 @@
             class="ele-action"
             title="确定要删除此巡检点配置吗?"
             @confirm="remove(row)"
+            v-if="$hasPermission('eam:planconfig:delete')"
+
           >
             <template v-slot:reference>
               <el-link type="danger" :underline="false" icon="el-icon-delete">

+ 4 - 2
src/views/rulesManagement/meteringManagement/index.vue

@@ -4,10 +4,11 @@
       <div class="tree_box">
         <div class="control">
           <el-button icon="el-icon-plus" type="primary" @click="addType('新增')"
+          v-if="$hasPermission('main:categorymeasure:save')"
             >新增</el-button
           >
           <el-button
-            v-if="currentObj.id"
+            v-if="currentObj.id&&$hasPermission('main:categorymeasure:update')"
             icon="el-icon-edit"
             type="success"
             @click="addType('修改')"
@@ -53,7 +54,7 @@
             <!-- 表头工具栏 -->
             <template v-slot:toolbar>
               <el-button
-                v-if="currentObj.id"
+                v-if="currentObj.id&&$hasPermission('main:categorymeasure:save')"
                 size="small"
                 type="primary"
                 icon="el-icon-plus"
@@ -69,6 +70,7 @@
                 :underline="false"
                 icon="el-icon-edit"
                 @click="openEdit('修改', row)"
+                v-if="$hasPermission('main:categorymeasure:update')"
               >
                 修改
               </el-link>

+ 6 - 0
src/views/rulesManagement/warehouseInventory/index.vue

@@ -20,6 +20,8 @@
             icon="el-icon-plus"
             class="ele-btn-icon"
             @click="openEdit()"
+            v-if="$hasPermission('wms:planconfig:save')"
+
           >
             新建
           </el-button>
@@ -31,6 +33,8 @@
             :underline="false"
             icon="el-icon-edit"
             @click="openEdit(row)"
+            v-if="$hasPermission('wms:planconfig:update')"
+
           >
             修改
           </el-link>
@@ -41,6 +45,8 @@
             class="ele-action"
             title="确定要删除此角色吗?"
             @confirm="remove(row)"
+            v-if="$hasPermission('wms:planconfig:delete')"
+
           >
             <template v-slot:reference>
               <el-link type="danger" :underline="false" icon="el-icon-delete">

+ 2 - 0
src/views/system/dictionary/components/dict-data.vue

@@ -48,12 +48,14 @@
           :underline="false"
           icon="el-icon-edit"
           @click="openEdit(row)"
+          v-if="$hasPermission('main:dictionary:update')"
         >
           修改
         </el-link>
         <el-popconfirm
           class="ele-action"
           title="确定要删除此字典项吗?"
+          v-if="$hasPermission('main:dictionary:delete')"
           @confirm="remove(row)"
         >
           <template v-slot:reference>

+ 4 - 0
src/views/system/dictionary/index.vue

@@ -8,6 +8,8 @@
           type="primary"
           icon="el-icon-plus"
           class="ele-btn-icon"
+          v-if="$hasPermission('main:dictionary:save')"
+
           @click="openEdit()"
         >
           添加
@@ -29,6 +31,8 @@
           class="ele-btn-icon"
           :disabled="!current"
           @click="remove"
+          v-if="$hasPermission('main:dictionary:delete')"
+
         >
           删除
         </el-button>

+ 7 - 1
src/views/system/menu/index.vue

@@ -24,6 +24,8 @@
             icon="el-icon-plus"
             class="ele-btn-icon"
             @click="openEdit()"
+          v-if="$hasPermission('sys:resources:save')"
+
           >
             添加
           </el-button>
@@ -69,6 +71,8 @@
             :underline="false"
             icon="el-icon-plus"
             @click="openEdit(null, row.id)"
+          v-if="$hasPermission('sys:resources:save')"
+
           >
             添加
           </el-link>
@@ -77,6 +81,8 @@
             :underline="false"
             icon="el-icon-edit"
             @click="openEdit(row)"
+          v-if="$hasPermission('sys:resources:save')"
+
           >
             修改
           </el-link>
@@ -84,7 +90,7 @@
             class="ele-action"
             title="确定要删除吗?"
             @confirm="remove(row)"
-            v-if="row.id != 99999"
+            v-if="row.id != 99999&&$hasPermission('sys:resources:delete')"
           >
             <template v-slot:reference>
               <el-link type="danger" :underline="false" icon="el-icon-delete">

+ 4 - 0
src/views/system/parmasManage/index.vue

@@ -85,6 +85,8 @@
             :underline="false"
             icon="el-icon-edit"
             @click="openEdit('edit',row.id)"
+            v-if="$hasPermission('sys:parameter:update')"
+
           >
             修改
           </el-link>
@@ -100,6 +102,8 @@
             class="ele-action"
             title="确定要删除吗?"
             @confirm="remove(row)"
+            v-if="$hasPermission('sys:parameter:delete')"
+
           >
             <template v-slot:reference>
               <el-link

+ 2 - 1
src/views/system/role/index.vue

@@ -93,11 +93,12 @@
             class="ele-action"
             title="确定要删除此角色吗?"
             @confirm="remove(row)"
+            v-if="$hasPermission('sys:role:delete')"
           >
             <template v-slot:reference>
               <el-link
                 type="danger"
-                v-if="$hasPermission('sys:role:delete')"
+           
                 :underline="false"
                 icon="el-icon-delete"
               >

+ 15 - 3
src/views/system/unifiedPortal/index.vue

@@ -3,7 +3,11 @@
     <div class="content_box">
       <el-card class="box-card">
         <div class="control_bar">
-          <el-button type="primary" icon="el-icon-plus" @click="add"
+          <el-button
+            type="primary"
+            icon="el-icon-plus"
+            @click="add"
+            v-if="$hasPermission('sys:system:save')"
             >新增</el-button
           >
         </div>
@@ -18,8 +22,16 @@
                 <el-card>
                   <div slot="header" class="clearfix">
                     <span>{{ item.name }}</span>
-                    <i class="el-icon-delete" @click="deleted(item)"></i>
-                    <i class="el-icon-edit" @click="edit(item)"></i>
+                    <i
+                      class="el-icon-delete"
+                      @click="deleted(item)"
+                      v-if="$hasPermission('mian:codeManage:delete')"
+                    ></i>
+                    <i
+                      class="el-icon-edit"
+                      @click="edit(item)"
+                      v-if="$hasPermission('mian:codeManage:update')"
+                    ></i>
                   </div>
                   <div class="card-content">
                     <el-image

+ 4 - 2
src/views/versionManage/index.vue

@@ -21,6 +21,7 @@
             icon="el-icon-plus"
             class="ele-btn-icon"
             @click="openEdit('','add')"
+            v-if="$hasPermission('main:version:save')"
           >
             新建
           </el-button>
@@ -29,6 +30,7 @@
             type="danger"
             icon="el-icon-delete"
             class="ele-btn-icon"
+            v-if="$hasPermission('main:version:delete')"
             @click="removeBatch"
             plain
           >
@@ -57,7 +59,7 @@
         <!-- 操作列 -->
         <template v-slot:action="{ row }">
           <el-link
-            v-if="row.status!=1"
+            v-if="row.status!=1&&$hasPermission('main:version:update')"
             type="primary"
             :underline="false"
             icon="el-icon-edit"
@@ -74,7 +76,7 @@
             详情
           </el-link>
           <el-popconfirm
-            v-if="row.status!=1"
+            v-if="row.status!=1&&$hasPermission('main:version:delete')"
             class="ele-action"
             title="确定要删除当前资质吗?"
             @confirm="remove(row)"