|
|
@@ -53,6 +53,14 @@
|
|
|
<span v-if="!isModifyMode">{{ task.endPoint.collaborativeType ? '非协同' : '协同' }}</span>
|
|
|
</el-form-item>
|
|
|
|
|
|
+ <el-form-item label="用例生成" prop="needTestcase" style="width:700px;">
|
|
|
+ <el-radio-group v-model="task.needTestcase" v-if="isModifyMode" @change="$forceUpdate()">
|
|
|
+ <el-radio :label="0">否</el-radio>
|
|
|
+ <el-radio :label="1">是</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ <span v-if="!isModifyMode">{{ task.needTestcase ? '是' : '否' }}</span>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
<el-form-item label="任务可见性" prop="resource">
|
|
|
<div v-if="!isModifyMode">
|
|
|
<!--<div v-if="task.resource=='1'">{{updateLocation(task.location)}}</div>-->
|
|
|
@@ -382,6 +390,7 @@ export default {
|
|
|
desc: '',
|
|
|
serviceType: '',
|
|
|
resource: '',
|
|
|
+ needTestcase: '',
|
|
|
location: {},
|
|
|
institution: 0,
|
|
|
datetime: '',
|
|
|
@@ -451,6 +460,7 @@ export default {
|
|
|
}, trigger: 'blur'
|
|
|
},
|
|
|
],
|
|
|
+ needTestcase: [{required: true, message: '请选择是否需要自动生成测试用例', trigger: 'blur'}],
|
|
|
|
|
|
'endPoint.threePageUrl': [
|
|
|
{
|
|
|
@@ -698,6 +708,7 @@ export default {
|
|
|
this.task.institution = res.crowdTaskVO.institution
|
|
|
this.task.datetime = new Date(res.crowdTaskVO.datetime)
|
|
|
this.task.quotePrice = res.crowdTaskVO.quotePrice
|
|
|
+ this.task.needTestcase = res.crowdTaskVO.needTestcase
|
|
|
this.task.agencyName = res.crowdTaskVO.agencyName
|
|
|
this.task.acceptedPassword = res.crowdTaskVO.acceptedPassword
|
|
|
this.task.acceptedCount = res.crowdTaskVO.acceptedCount
|
|
|
@@ -782,13 +793,14 @@ export default {
|
|
|
location: this.task.location == null ? {} : getProvinceNameByProvinceCode(this.task.location.provinceCode, this.task.location.cityCode),
|
|
|
institution: this.task.institution ? this.task.institution : null,
|
|
|
datetime: this.task.datetime,
|
|
|
+ needTestcase: this.task.needTestcase,
|
|
|
quotePrice: this.task.quotePrice,
|
|
|
fixedPrice: this.task.fixedPrice,
|
|
|
requirementFile: this.task.requireDocUrl,
|
|
|
participantCount: this.task.participantCount,
|
|
|
endPoint: this.task.endPoint
|
|
|
}
|
|
|
- //console.log(newTask)
|
|
|
+ console.log(newTask)
|
|
|
updateTask(this.projectId, this.taskId, newTask, this.updateTaskSuccess, this.updateTaskFail)
|
|
|
} else {
|
|
|
notify('error', '表单填写有误!')
|
|
|
@@ -807,6 +819,7 @@ export default {
|
|
|
this.task.title = res.crowdTaskVO.title
|
|
|
this.task.description = res.crowdTaskVO.description
|
|
|
this.task.serviceType = res.crowdTaskVO.serviceType
|
|
|
+ this.task.needTestcase = res.crowdTaskVO.needTestcase
|
|
|
this.task.resource = res.crowdTaskVO.resource.toString()
|
|
|
this.task.location = res.crowdTaskVO.location == null ? {
|
|
|
provinceCode: 3200,
|