Pārlūkot izejas kodu

去除授权按钮权限

jiawuxian 1 gadu atpakaļ
vecāks
revīzija
4ff5e601ca

+ 2 - 2
src/views/check/task/index.vue

@@ -296,7 +296,7 @@
               label="操作"
               fixed="right"
               header-align="center"
-              width="200px"
+              width="240px"
             >
               <template slot-scope="r">
                 <!-- <el-button v-if="
@@ -325,6 +325,7 @@
                 >
                 <el-button
                   type="text"
+                  icon="el-icon-s-check"
                   @click="showRegister(r.row)"
                   v-if="showRegisterBtn(r.row)"
                   >任务登记</el-button
@@ -492,7 +493,6 @@ export default {
           userRoleId.find((ur) => taskRoleId.includes(ur)) &&
           checkPermi([
             "core:safetycheck:register",
-            "core:safetycheck:grant",
           ])) ||
           row.grantUserId === this.userId)
       );

+ 6 - 1
src/views/safetycheck/taskManager/components/register.vue

@@ -169,7 +169,6 @@
       <el-button
         @click="onGrant"
         v-if="showGrantBtn"
-        v-hasPermi="['core:safetycheck:grant']"
         >授权</el-button
       >
       <el-button @click="onClose">关闭</el-button>
@@ -535,4 +534,10 @@ export default {
   margin-bottom: 3px;
   margin-top: 6px;
 }
+.el-descriptions{
+  ::v-deep .el-descriptions__body{
+  background-color:transparent !important;
+}
+}
+
 </style>