|
|
@@ -7,7 +7,7 @@
|
|
|
<el-form-item label="任务名称" prop="title">
|
|
|
<el-input size="small" v-if="isModifyMode" v-model="task.title"></el-input>
|
|
|
<span v-if="!isModifyMode">{{task.title}}</span>
|
|
|
- <el-tag v-if="!isModifyMode" :type="task.statusVO&&task.statusVO.style">{{task.statusVO?task.statusVO.text:''}}</el-tag>
|
|
|
+ <el-tag v-if="!isModifyMode" :type="task.statusVO&&task.statusVO.style">{{task.statusVO ? task.statusVO.text:''}}</el-tag>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="任务描述" prop="desc">
|
|
|
<el-input autosize v-if="isModifyMode" type="textarea" v-model="task.description"></el-input>
|
|
|
@@ -655,7 +655,7 @@
|
|
|
}).then(() => {
|
|
|
this.showLoading()
|
|
|
submitTaskRequest(this.projectId, this.taskId, this.submitTaskRequestSuccess, this.submitTaskRequestFail)
|
|
|
- this.getTaskDetail();
|
|
|
+
|
|
|
}).catch(() => {
|
|
|
|
|
|
})
|
|
|
@@ -668,6 +668,7 @@
|
|
|
this.task.status = res.crowdTaskVO.status
|
|
|
this.task.institution = res.crowdTaskVO.institution
|
|
|
notify('success', '提交任务成功,等待区域管理员审核')
|
|
|
+ this.getTaskDetail();
|
|
|
},
|
|
|
//提交结束任务申请失败时的回调函数
|
|
|
submitTaskRequestFail(error) {
|
|
|
@@ -681,6 +682,7 @@
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'success'
|
|
|
}).then(() => {
|
|
|
+ this.getTaskDetail()
|
|
|
this.showLoading()
|
|
|
ensureEndTask(this.projectId, this.taskId, this.endTaskSuccess, this.endTaskFail)
|
|
|
}).catch(() => {
|
|
|
@@ -694,6 +696,7 @@
|
|
|
this.task.status = res.crowdTaskVO.status
|
|
|
this.task.institution = res.crowdTaskVO.institution
|
|
|
notify('success', '结束任务成功!')
|
|
|
+ this.getTaskDetail();
|
|
|
},
|
|
|
//结束任务失败时的回调函数
|
|
|
endTaskFail(error) {
|