Browse Source

权限对照

chris 2 years ago
parent
commit
86561327b3

+ 1 - 0
src/views/modules/cus/communicate.vue

@@ -1,3 +1,4 @@
+<!-- 沟通列表 -->
 <template>
   <div class="stock">
     <template v-if="!addOrUpdateVisible && !detailVisible">

+ 1 - 0
src/views/modules/cus/customer.vue

@@ -1,3 +1,4 @@
+<!-- 客户列表 -->
 <template>
   <div class="stock">
     <template v-if="!addOrUpdateVisible && !detailVisible">

+ 1 - 1
src/views/modules/msg-center/announcement.vue

@@ -106,7 +106,7 @@
           width="150"
           label="操作">
           <template slot-scope="scope">
-            <el-button type="text" size="small" @click="detailHandle(scope.row)">查看</el-button>
+            <el-button v-if="isAuth('business:announcement:info')" type="text" size="small" @click="detailHandle(scope.row)">查看</el-button>
           </template>
         </el-table-column>
       </el-table>

+ 2 - 2
src/views/modules/msg-center/approve.vue

@@ -105,8 +105,8 @@
           width="80"
           label="操作">
           <template slot-scope="scope">
-            <el-button v-if="Number(scope.row.state) !== 3 && checkUser(scope.row)" type="text" size="small" @click="addOrUpdateHandle(scope.row)">处理</el-button>
-            <el-button v-else type="text" size="small" @click="detailHandle(scope.row)">查看</el-button>
+            <el-button v-if="isAuth('business:approval:approval') && Number(scope.row.state) !== 3 && checkUser(scope.row)" type="text" size="small" @click="addOrUpdateHandle(scope.row)">处理</el-button>
+            <el-button v-if="isAuth('business:approval:info') && (Number(scope.row.state) === 3 || !checkUser(scope.row))" type="text" size="small" @click="detailHandle(scope.row)">查看</el-button>
           </template>
         </el-table-column>
       </el-table>

+ 3 - 3
src/views/modules/sys/menu.vue

@@ -60,7 +60,7 @@
         <el-table-column
           prop="url"
           header-align="center"
-          align="center"
+          align="left"
           width="150"
           :show-overflow-tooltip="true"
           label="菜单URL">
@@ -68,7 +68,7 @@
         <el-table-column
           prop="perms"
           header-align="center"
-          align="center"
+          align="left"
           width="150"
           :show-overflow-tooltip="true"
           label="授权标识">
@@ -119,7 +119,7 @@
         }).then(({data}) => {
           if (data.code === '200') {
             this.dataList = JSON.parse(JSON.stringify(data.data).replace(/"list":/g, '"children":').replace(/"children":null/g, '"children":[]'))
-            console.log(this.dataList)
+            // console.log(this.dataList)
           }
           this.dataListLoading = false
         })

+ 1 - 1
src/views/modules/works/handover-records.vue

@@ -95,7 +95,7 @@
             width="140"
             label="操作">
             <template slot-scope="scope">
-              <el-button type="text" size="small" @click="detailHandle(scope.row.recordId)">查看</el-button>
+              <el-button v-if="isAuth('prod:transfer:info')" type="text" size="small" @click="detailHandle(scope.row.recordId)">查看</el-button>
             </template>
           </el-table-column>
         </el-table>