wzh 3 роки тому
батько
коміт
bdce2db10b

+ 1 - 1
src/views/accountManage/subAccountList.vue

@@ -122,7 +122,7 @@
           align="center"
         ></el-table-column>
         <el-table-column
-          v-auth="'ADDACCOUNT'"
+          v-auth="'UPDATEACCOUNT'"
           label="操作"
           min-width="120"
           align="center"

+ 2 - 6
src/views/authManage/departmentList.vue

@@ -12,11 +12,7 @@
         ></el-input>
         <div class="seach-btn" @click="getDepartmentList">查询</div>
       </div>
-      <el-button
-        v-auth="'ADDUPDATEDEPT'"
-        type="primary"
-        @click="visable = true"
-      >
+      <el-button v-auth="'ADDDEPTLIST'" type="primary" @click="visable = true">
         添加部门
       </el-button>
     </div>
@@ -76,7 +72,7 @@
           align="center"
         ></el-table-column>
         <el-table-column
-          v-auth="'ADDUPDATEDEPT'"
+          v-auth="'UPDATEDEPTLIST'"
           label="操作"
           min-width="120"
           align="center"

+ 2 - 2
src/views/authManage/roleList.vue

@@ -12,7 +12,7 @@
         ></el-input>
         <div class="seach-btn" @click="getRoleList">查询</div>
       </div>
-      <el-button v-auth="'ADDUPDATEROLE'" type="primary" @click="addRole">
+      <el-button v-auth="'ADDROLELIST'" type="primary" @click="addRole">
         添加职位
       </el-button>
     </div>
@@ -47,7 +47,7 @@
           </template>
         </el-table-column>
         <el-table-column
-          v-auth="'ADDUPDATEROLE'"
+          v-auth="'UPDATEROLELIST'"
           label="操作"
           min-width="120"
           align="center"

+ 6 - 1
src/views/voyage/billList.vue

@@ -61,7 +61,12 @@
           label="船东手机号"
           align="center"
         ></el-table-column>
-        <el-table-column label="操作" min-width="80" align="center">
+        <el-table-column
+          v-auth="'BILLLISTDISTRIBUTE'"
+          label="操作"
+          min-width="80"
+          align="center"
+        >
           <template v-slot="scope">
             <el-button
               @click="billDetail(scope.row.id, scope.row.discPorts)"

+ 6 - 1
src/views/voyage/dailyList.vue

@@ -65,7 +65,12 @@
           label="船东手机号"
           align="center"
         ></el-table-column>
-        <el-table-column label="操作" min-width="80" align="center">
+        <el-table-column
+          v-auth="'DAYREPORTAUDIT'"
+          label="操作"
+          min-width="80"
+          align="center"
+        >
           <template v-slot="scope">
             <el-button
               @click="dailyDetail(scope.row.id)"

+ 12 - 1
src/views/voyage/portDeclarationList.vue

@@ -63,11 +63,22 @@
         <el-table-column label="操作" min-width="80" align="center">
           <template v-slot="scope">
             <el-button
+              v-if="status == '已报港'"
+              v-auth="'DECLAREDETAIL'"
               @click="portDeclarationDetail(scope.row.id)"
               type="text"
               size="small"
             >
-              {{ status == "已报港" ? "查看" : "申请报港" }}
+              查看
+            </el-button>
+            <el-button
+              v-else
+              v-auth="'DODECLARE'"
+              @click="portDeclarationDetail(scope.row.id)"
+              type="text"
+              size="small"
+            >
+              申请报港
             </el-button>
           </template>
         </el-table-column>