|
@@ -141,14 +141,18 @@
|
|
|
},
|
|
|
handleTask: function (row, result) {
|
|
|
this.obj.taskFlag = result
|
|
|
- doTask(this.obj).then(() => {
|
|
|
- this.$message({
|
|
|
- showClose: true,
|
|
|
- message: '提交成功',
|
|
|
- type: 'success'
|
|
|
- })
|
|
|
- this.showTask = false
|
|
|
- this.getList(this.page)
|
|
|
+ this.$refs.form.validate(valid => {
|
|
|
+ if (valid) {
|
|
|
+ doTask(this.obj).then(() => {
|
|
|
+ this.$message({
|
|
|
+ showClose: true,
|
|
|
+ message: '提交成功',
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ this.showTask = false
|
|
|
+ this.getList(this.page)
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
viewPic: function (row) {
|