|
@@ -26,6 +26,9 @@
|
|
|
</span>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="领取人数" prop="contactPhone" v-if="task.resource !== '0'">
|
|
|
+ <el-input-number v-model="task.participantCount" :min="1" :max="10" label="领取人数"></el-input-number>
|
|
|
+ </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">
|
|
@@ -126,7 +129,8 @@ export default {
|
|
|
quotePrice: '',
|
|
|
fixedPrice: '',
|
|
|
doc: [],
|
|
|
- requireDocUrl: '123.doc'
|
|
|
+ requireDocUrl: '123.doc',
|
|
|
+ participantCount: 1
|
|
|
},
|
|
|
pickerOptions: {
|
|
|
shortcuts: [
|
|
@@ -261,7 +265,8 @@ export default {
|
|
|
datetime: this.task.datetime,
|
|
|
quotePrice: this.task.quotePrice,
|
|
|
fixedPrice: this.task.fixedPrice,
|
|
|
- requirementFile: this.task.requireDocUrl
|
|
|
+ requirementFile: this.task.requireDocUrl,
|
|
|
+ participantCount: this.task.participantCount
|
|
|
}
|
|
|
Http.post(Apis.TASK.CREATE_TASK.replace('{projectId}', this.projectId), newTask).then((res) => {
|
|
|
console.log(res)
|
|
@@ -287,7 +292,8 @@ export default {
|
|
|
this.task.resource = '广场'; //如果是广场不用管Location和institution ,定向看institution,区域看location
|
|
|
(this.task.location = {provinceCode: '', cityCode: ''}),
|
|
|
(this.task.institution = '')
|
|
|
- this.task.datetime = ''
|
|
|
+ this.task.datetime = '',
|
|
|
+ this.task.participantCount = 1
|
|
|
},
|
|
|
locationChange (provinceId, cityId) {
|
|
|
if (provinceId || cityId) {
|