瀏覽代碼

Fix: 我的工作台,非当前用户只读权限问题

chris 3 年之前
父節點
當前提交
734b54d4e9

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

@@ -1,4 +1,3 @@
-<!-- 订单 -->
 <template>
   <div class="order">
     <template v-if="!addOrUpdateVisible">

+ 1 - 0
src/views/modules/order/order-add-or-update.vue

@@ -1,3 +1,4 @@
+<!--  订单新增或修改 -->
 <template>
   <div>
     <!-- <el-dialog

+ 9 - 1
src/views/modules/works/work.vue

@@ -99,7 +99,8 @@
         width="180"
         label="操作">
         <template slot-scope="scope">
-          <el-button v-if="isAuth('work:clt:start') && ((scope.row.state) < 2)" :disabled="Number(scope.row.state) === 0" type="text" size="small" @click="startTask(scope.row.taskId)">开始</el-button>
+          <el-button v-if="isAuth('work:clt:start') && Number(scope.row.state) < 2" :disabled="Number(scope.row.state) === 0" type="text" size="small" @click="startTask(scope.row.taskId)">开始</el-button>
+<!--          <el-button v-if="isAuth('work:clt:start')" type="text" size="small" @click="startTask(scope.row.taskId)">开始</el-button>-->
           <el-button v-if="isAuth('work:clt:transfer') && Number(scope.row.state) !== 3" type="text" size="small" @click="transferTask(scope.row.taskId, scope.row.workTypeId)">移交</el-button>
           <el-button v-if="isAuth('work:clt:complete') && Number(scope.row.state) === 2 && (scope.row.nodeType == null || scope.row.nodeType === 'start' || scope.row.nodeType === 'produce')" type="text" size="small" @click="completeTask(scope.row.taskId)">完成</el-button>
           <el-button v-if="isAuth('work:clt:check') && Number(scope.row.state) === 2 && (scope.row.nodeType === 'check' || scope.row.nodeType === 't-check')" type="text" size="small" @click="checkTask(scope.row.taskId, 1)">通过</el-button>
@@ -217,6 +218,13 @@ export default {
   watch: {
     'dataForm.userId' (value) {
       this.opColVisible = (Number(this.dataForm.state) !== 3 && value === this.userId)
+    },
+    'dataForm.state' (value) {
+      if (this.dataForm.userId) {
+        this.opColVisible = (Number(value) !== 3 && this.dataForm.userId === this.userId)
+      } else {
+        this.opColVisible = (Number(value) !== 3)
+      }
     }
   },
   data () {