|
@@ -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 () {
|