Переглянути джерело

fix: 修改监审目录操作按钮显示

shiyanyu 3 днів тому
батько
коміт
5ce9a40b11
1 змінених файлів з 36 додано та 14 видалено
  1. 36 14
      src/views/costAudit/baseInfo/catalogManage/index.vue

+ 36 - 14
src/views/costAudit/baseInfo/catalogManage/index.vue

@@ -194,17 +194,15 @@
             </span>
           </template>
         </el-table-column>
-        <el-table-column
-          v-if="$permission.isAdminOrProvince()"
-          label="操作"
-          width="360"
-          fixed="right"
-          align="center"
-        >
+        <el-table-column label="操作" width="360" fixed="right" align="center">
           <template slot-scope="scope">
             <div>
               <el-button
-                v-if="scope.row.status != 0 && scope.row.nodeType !== 'nr'"
+                v-if="
+                  $permission.getUserInfo().dataScope === 0 &&
+                  scope.row.status != 0 &&
+                  scope.row.nodeType !== 'nr'
+                "
                 v-region-permission="{
                   category: 'catalogManage',
                   action: 'edit',
@@ -216,7 +214,11 @@
                 修改类别
               </el-button>
               <el-button
-                v-if="scope.row.status != 0 && scope.row.nodeType !== 'nr'"
+                v-if="
+                  $permission.getUserInfo().dataScope === 0 &&
+                  scope.row.status != 0 &&
+                  scope.row.nodeType !== 'nr'
+                "
                 v-region-permission="{
                   category: 'catalogManage',
                   action: 'add',
@@ -229,6 +231,7 @@
               </el-button>
               <el-button
                 v-if="
+                  $permission.getUserInfo().dataScope === 0 &&
                   !scope.row.auditType &&
                   scope.row.status != 0 &&
                   scope.row.nodeType !== 'nr'
@@ -244,7 +247,11 @@
                 添加内容
               </el-button>
               <el-button
-                v-if="scope.row.nodeType == 'nr' && scope.row.status != 0"
+                v-if="
+                  $permission.getUserInfo().dataScope === 0 &&
+                  scope.row.nodeType == 'nr' &&
+                  scope.row.status != 0
+                "
                 v-region-permission="{
                   category: 'catalogManage',
                   action: 'edit',
@@ -268,7 +275,11 @@
                 信息维护
               </el-button>
               <el-button
-                v-if="scope.row.nodeType == 'nr' && scope.row.status == 0"
+                v-if="
+                  $permission.getUserInfo().dataScope === 0 &&
+                  scope.row.nodeType == 'nr' &&
+                  scope.row.status == 0
+                "
                 v-region-permission="{
                   category: 'catalogManage',
                   action: 'edit',
@@ -279,7 +290,11 @@
                 {{ scope.row.status === 1 ? '停用' : '启用' }}
               </el-button>
               <el-button
-                v-if="scope.row.nodeType == 'lx' && scope.row.status == 0"
+                v-if="
+                  $permission.getUserInfo().dataScope === 0 &&
+                  scope.row.nodeType == 'lx' &&
+                  scope.row.status == 0
+                "
                 v-region-permission="{
                   category: 'catalogManage',
                   action: 'edit',
@@ -290,7 +305,10 @@
                 {{ scope.row.status === 1 ? '停用' : '启用' }}
               </el-button>
               <el-button
-                v-if="scope.row.nodeType == 'nr'"
+                v-if="
+                  $permission.getUserInfo().dataScope === 0 &&
+                  scope.row.nodeType == 'nr'
+                "
                 v-region-permission="{
                   category: 'catalogManage',
                   action: 'delete',
@@ -303,7 +321,11 @@
               </el-button>
               <!-- 第四个以后的按钮放入更多下拉菜单 -->
               <el-dropdown
-                v-if="scope.row.status != 0 && scope.row.nodeType !== 'nr'"
+                v-if="
+                  $permission.getUserInfo().dataScope === 0 &&
+                  scope.row.status != 0 &&
+                  scope.row.nodeType !== 'nr'
+                "
                 v-region-permission="{
                   category: 'catalogManage',
                   action: 'edit',