|
|
@@ -56,7 +56,7 @@
|
|
|
</el-button>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
<el-dropdown-item :command="GetCommand('History', scope.row)">审批流程</el-dropdown-item>
|
|
|
- <el-dropdown-item :command="GetCommand('Delete', scope.row)" :disabled="scope.row.Status != 0"
|
|
|
+ <el-dropdown-item :command="GetCommand('Delete', scope.row)" :disabled="(parseInt(scope.row.Status) || 0) > 0"
|
|
|
divided>
|
|
|
删除数据</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
@@ -239,7 +239,7 @@ import WfHistory from '@/components/workflow/wfmultihistory.vue'
|
|
|
data () {
|
|
|
return {
|
|
|
tableLoading: false,
|
|
|
- addLoading : false,
|
|
|
+ addLoading: false,
|
|
|
chooseAuditorVisible: false,
|
|
|
orgtreelist: [],
|
|
|
orgtreeprops: {
|
|
|
@@ -463,10 +463,10 @@ import WfHistory from '@/components/workflow/wfmultihistory.vue'
|
|
|
this.initDatas()
|
|
|
this.addshow = false
|
|
|
this.$message({
|
|
|
- duration: 10000,
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
+ duration: 10000,
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
} else if (res.data.code === -3) {
|
|
|
this.$confirm(res.data.message)
|
|
|
.then(_ => {
|
|
|
@@ -476,10 +476,10 @@ import WfHistory from '@/components/workflow/wfmultihistory.vue'
|
|
|
.catch(_ => {})
|
|
|
} else {
|
|
|
this.$message({
|
|
|
- duration: 10000,
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
+ duration: 10000,
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
@@ -495,16 +495,16 @@ import WfHistory from '@/components/workflow/wfmultihistory.vue'
|
|
|
this.initDatas()
|
|
|
this.addshow = false
|
|
|
this.$message({
|
|
|
- duration: 10000,
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
+ duration: 10000,
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
} else {
|
|
|
this.$message({
|
|
|
- duration: 10000,
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
+ duration: 10000,
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
@@ -539,10 +539,10 @@ import WfHistory from '@/components/workflow/wfmultihistory.vue'
|
|
|
})
|
|
|
this.addLoading = false
|
|
|
this.$message({
|
|
|
- duration: 10000,
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
+ duration: 10000,
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
} else if (res.data.code === -3) {
|
|
|
this.addLoading = false
|
|
|
this.$confirm(res.data.message)
|
|
|
@@ -554,10 +554,10 @@ import WfHistory from '@/components/workflow/wfmultihistory.vue'
|
|
|
} else {
|
|
|
this.addLoading = false
|
|
|
this.$message({
|
|
|
- duration: 10000,
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
+ duration: 10000,
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
@@ -642,17 +642,17 @@ import WfHistory from '@/components/workflow/wfmultihistory.vue'
|
|
|
if (res.data.code === 0) {
|
|
|
this.initDatas()
|
|
|
this.$message({
|
|
|
- duration: 10000,
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
+ duration: 10000,
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
this.tableLoading = false
|
|
|
} else {
|
|
|
this.$message({
|
|
|
- duration: 10000,
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
+ duration: 10000,
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
this.tableLoading = false
|
|
|
}
|
|
|
}).catch(err => {
|