|
@@ -86,6 +86,19 @@
|
|
|
<el-form-item label="领取人数" prop="contactPhone" v-if="isModifyMode&&task.resource !== '0' && currType.type===1">
|
|
|
<el-input-number v-model="task.participantCount" :min="2" :max="1000" label="领取人数"></el-input-number>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="Go平台" prop="goPlatform">
|
|
|
+ <div v-if="!isModifyMode">
|
|
|
+ <!--<div v-if="task.resource=='1'">{{updateLocation(task.location)}}</div>-->
|
|
|
+ <div v-if="task.goPlatform">使用</div>
|
|
|
+ <div v-else>不使用</div>
|
|
|
+ </div>
|
|
|
+ <div v-else>
|
|
|
+ <el-radio-group v-model="task.goPlatform">
|
|
|
+ <el-radio :label="0">不使用</el-radio>
|
|
|
+ <el-radio :label="1">使用</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </div>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="领取人数" prop="quotePrice" v-if="!isModifyMode">
|
|
|
{{task.acceptedCount }}/{{ task.participantCount}}
|
|
|
</el-form-item>
|
|
@@ -154,10 +167,11 @@
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item v-if="!isModifyMode">
|
|
|
+ <el-button size="mini" @click="toProject()">项目详情</el-button>
|
|
|
<el-button v-if="taskOperationControl.update||taskOperationControl.taskRecommend" @click="manageVirtualMachine()" type="primary" size="mini">管理虚拟机</el-button>
|
|
|
<el-button v-if="taskOperationControl.writeReport||taskOperationControl.uploadReport" @click="connectVirtualMachine()" type="primary" size="mini">连接虚拟机</el-button>
|
|
|
- <el-button size="mini" @click="toProject()">项目详情</el-button>
|
|
|
- <el-button size="mini" @click="toGo()">go语言测试在线测试平台</el-button>
|
|
|
+
|
|
|
+ <el-button v-if="(taskOperationControl.writeReport||taskOperationControl.uploadReport||taskOperationControl.update||taskOperationControl.taskRecommend)&&task.goPlatform" type="primary" size="mini" @click="toGo()">go语言测试在线测试平台</el-button>
|
|
|
|
|
|
<el-popover
|
|
|
placement="top-start"
|
|
@@ -338,6 +352,7 @@ export default {
|
|
|
doc: [],
|
|
|
requireDocUrl: '',
|
|
|
participantCount: 1,
|
|
|
+ goPlatform: 0,
|
|
|
title: '',
|
|
|
description: '',
|
|
|
endPoint: {
|
|
@@ -536,6 +551,7 @@ export default {
|
|
|
this.task.institution = ''
|
|
|
this.task.datetime = ''
|
|
|
this.task.participantCount = 1
|
|
|
+ this.task.goPlatform = 0
|
|
|
// this.task.endPointVO.caseId = ''
|
|
|
// this.task.endPointVO.examId = ''
|
|
|
},
|
|
@@ -646,6 +662,7 @@ export default {
|
|
|
this.task.quotePrice = res.crowdTaskVO.quotePrice
|
|
|
this.task.acceptedCount = res.crowdTaskVO.acceptedCount
|
|
|
this.task.participantCount = res.crowdTaskVO.participantCount
|
|
|
+ this.task.goPlatform = res.crowdTaskVO.goPlatform
|
|
|
this.task.fixedPrice = res.crowdTaskVO.fixedPrice
|
|
|
this.task.doc = []
|
|
|
this.task.requireDocUrl = res.crowdTaskVO.requirementFile
|
|
@@ -731,6 +748,7 @@ export default {
|
|
|
fixedPrice: this.task.fixedPrice,
|
|
|
requirementFile: this.task.requireDocUrl,
|
|
|
participantCount: this.task.participantCount,
|
|
|
+ goPlatform: this.task.goPlatform,
|
|
|
endPoint: this.task.endPoint
|
|
|
}
|
|
|
//console.log(newTask)
|
|
@@ -762,6 +780,7 @@ export default {
|
|
|
this.task.doc = []
|
|
|
this.task.requireDocUrl = res.crowdTaskVO.requirementFile,
|
|
|
this.task.participantCount = res.crowdTaskVO.participantCount
|
|
|
+ this.task.goPlatform = res.crowdTaskVO.goPlatform
|
|
|
this.task.endPoint = res.crowdTaskVO.endPointVO ? res.crowdTaskVO.endPointVO : {
|
|
|
serverCode: '',
|
|
|
}
|