...
|
...
|
@@ -267,7 +267,7 @@ |
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
<el-dialog title="任务表单" :visible.sync="dialogTaskFormVisible" v-loading="dialogloading">
|
|
|
<el-dialog title="任务表单" :visible.sync="dialogTaskFormVisible" :loading="dialogloading1">
|
|
|
<el-divider content-position="left">已提交表单</el-divider>
|
|
|
<el-row>
|
|
|
<el-col :span="12" v-for="(item,index) in AllTaskFormInfoData" :key="item.id">
|
...
|
...
|
@@ -338,6 +338,7 @@ |
|
|
dialogFormVisible: false,
|
|
|
dialogTaskFormVisible: false,
|
|
|
dialogloading: false,
|
|
|
dialogloading1: false,
|
|
|
sysUserName:'',
|
|
|
total:0,
|
|
|
tableData: [],
|
...
|
...
|
@@ -439,43 +440,46 @@ |
|
|
this.dialogloading = false;
|
|
|
});
|
|
|
},
|
|
|
//获取工单中已完成任务的表单数据的promise
|
|
|
getProcessFormInfoPromise(index,row){
|
|
|
// this.dialogloading1 = true;
|
|
|
this.dialogTaskFormVisible = true
|
|
|
let _this = this;
|
|
|
this.getProcessFormInfo(index,row).then(data =>{
|
|
|
_this.getFormDefine(index,row)
|
|
|
_this.dialogloading1 = false;
|
|
|
}).catch(err => {
|
|
|
_this.$message.error(err)
|
|
|
_this.dialogloading1 = false;
|
|
|
})
|
|
|
},
|
|
|
// 提交任务
|
|
|
handleTask(paras){
|
|
|
this.dialogloading = true;
|
|
|
this.dialogloading1 = true;
|
|
|
let _this=this
|
|
|
this.submitTaskParm.variables = paras
|
|
|
handleTask(this.submitTaskParm).then(response =>{
|
|
|
const res = response.data
|
|
|
if (res.code != '200') {
|
|
|
this.dialogloading1 = false;
|
|
|
this.dialogTaskFormVisible = false
|
|
|
return _this.$message.error('获取记录失败!')
|
|
|
}
|
|
|
_this.$message.success("任务完成"+res.msg);
|
|
|
_this.dialogTaskFormVisible = false
|
|
|
this.$message.success("任务完成"+res.msg);
|
|
|
this.dialogTaskFormVisible = false
|
|
|
this.dialogloading1 = false;
|
|
|
_this.geMyTask()
|
|
|
this.dialogloading = false;
|
|
|
}).catch(err=>{
|
|
|
_this.$message.error("失败"+err);
|
|
|
this.dialogTaskFormVisible = false
|
|
|
this.dialogloading = false;
|
|
|
_this.dialogTaskFormVisible = false
|
|
|
_this.dialogloading1 = false;
|
|
|
})
|
|
|
},
|
|
|
//我发起的任务
|
|
|
getMyList(){
|
|
|
|
|
|
},
|
|
|
//获取工单中已完成任务的表单数据的promise
|
|
|
getProcessFormInfoPromise(index,row){
|
|
|
this.dialogloading = true;
|
|
|
this.dialogTaskFormVisible = true
|
|
|
let _this = this;
|
|
|
this.getProcessFormInfo(index,row).then(data =>{
|
|
|
_this.getFormDefine(index,row)
|
|
|
_this.dialogloading = false;
|
|
|
}).catch(err => {
|
|
|
_this.$message.error(err)
|
|
|
_this.dialogloading = false;
|
|
|
})
|
|
|
},
|
|
|
|
|
|
//获取工单中已完成任务的表单数据
|
|
|
getProcessFormInfo(index,row){
|
|
|
let _this = this;
|
...
|
...
|
|