|
@@ -26,6 +26,18 @@
|
|
|
</span>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
+
|
|
|
+
|
|
|
+ <el-form-item label="examID" prop="endpoint.examID" v-if="task.type=='BDSPT'"
|
|
|
+ :rules="[{ required: true, type: 'number',message: 'examID必须是数字类型'}]">
|
|
|
+ <el-input v-model.number="task.endpoint.examID" label="examID"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="caseID" prop="endpoint.caseID" v-if="task.type=='BDSPT'"
|
|
|
+ :rules="[{ required: true, type: 'number',message: 'caseID必须是数字类型'}]">
|
|
|
+ <el-input v-model.number="task.endpoint.caseID" label="caseID"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+
|
|
|
<el-form-item label="任务可见性" prop="resource">
|
|
|
<el-tabs :tab-position="tabPosition" v-model="task.resource" style="width: 800px">
|
|
|
<el-tab-pane :label="resourceType[0]" name="0">
|
|
@@ -130,7 +142,11 @@ export default {
|
|
|
fixedPrice: '',
|
|
|
doc: [],
|
|
|
requireDocUrl: '',
|
|
|
- participantCount: 1
|
|
|
+ participantCount: 1,
|
|
|
+ endpoint:{
|
|
|
+ caseID:'',
|
|
|
+ examID:''
|
|
|
+ }
|
|
|
},
|
|
|
pickerOptions: {
|
|
|
shortcuts: [
|
|
@@ -192,6 +208,19 @@ export default {
|
|
|
}, trigger: 'change'
|
|
|
},
|
|
|
],
|
|
|
+ endpoint:[
|
|
|
+ {
|
|
|
+ validator: (rule, value, callback) => {
|
|
|
+ if (this.task.type=== 'BDSPT' && this.task.endpoint.caseID === '') {
|
|
|
+ callback(new Error('请填写对应得caseID'))
|
|
|
+ } else if (this.task.type=== 'BDSPT' && this.task.endpoint.examID === ''){
|
|
|
+ callback(new Error('请填写对应得examID'))
|
|
|
+ } else {
|
|
|
+ callback()
|
|
|
+ }
|
|
|
+ }, trigger: 'change'
|
|
|
+ },
|
|
|
+ ],
|
|
|
datetime: [{required: true, message: '截止时间不可为空', trigger: 'blur'}],
|
|
|
}
|
|
|
}
|