|
@@ -66,6 +66,12 @@
|
|
|
<el-tab-pane :label="resourceType[2]" name="2"></el-tab-pane>
|
|
<el-tab-pane :label="resourceType[2]" name="2"></el-tab-pane>
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <el-form-item label="领取人数" prop="quotePrice" v-if="isModifyMode">
|
|
|
|
|
+ <el-input-number v-model="task.participantCount" :min="1" :max="100" label="领取人数"></el-input-number>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="领取人数" prop="quotePrice" v-if="!isModifyMode">
|
|
|
|
|
+ {{task.acceptedCount }}/{{ task.participantCount}}
|
|
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="需求文档" prop="doc">
|
|
<el-form-item label="需求文档" prop="doc">
|
|
|
<el-upload
|
|
<el-upload
|
|
|
style="width: 400px"
|
|
style="width: 400px"
|
|
@@ -98,12 +104,6 @@
|
|
|
</span>
|
|
</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- <el-form-item label="领取人数" prop="quotePrice">
|
|
|
|
|
- {{task.acceptedCount }}/{{ task.participantCount}}
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
<el-form-item label="任务截止时间" prop="datetime">
|
|
<el-form-item label="任务截止时间" prop="datetime">
|
|
|
<div class="block" v-if="isModifyMode">
|
|
<div class="block" v-if="isModifyMode">
|
|
|
<el-date-picker
|
|
<el-date-picker
|
|
@@ -256,7 +256,8 @@
|
|
|
quotePrice: '',
|
|
quotePrice: '',
|
|
|
fixedPrice: '',
|
|
fixedPrice: '',
|
|
|
doc: [],
|
|
doc: [],
|
|
|
- requireDocUrl: '123.doc'
|
|
|
|
|
|
|
+ requireDocUrl: '123.doc',
|
|
|
|
|
+ participantCount:1
|
|
|
},
|
|
},
|
|
|
reportList: [],
|
|
reportList: [],
|
|
|
pickerOptions: {
|
|
pickerOptions: {
|
|
@@ -393,6 +394,7 @@
|
|
|
this.task.location = {provinceCode: '', cityCode: ''}
|
|
this.task.location = {provinceCode: '', cityCode: ''}
|
|
|
this.task.institution = ''
|
|
this.task.institution = ''
|
|
|
this.task.datetime = ''
|
|
this.task.datetime = ''
|
|
|
|
|
+ this.task.participantCount = 1
|
|
|
},
|
|
},
|
|
|
//显示页面加载画面
|
|
//显示页面加载画面
|
|
|
showLoading() {
|
|
showLoading() {
|
|
@@ -438,7 +440,7 @@
|
|
|
this.task.title = res.crowdTaskVO.title
|
|
this.task.title = res.crowdTaskVO.title
|
|
|
this.task.description = res.crowdTaskVO.description
|
|
this.task.description = res.crowdTaskVO.description
|
|
|
this.task.serviceType = res.crowdTaskVO.serviceType
|
|
this.task.serviceType = res.crowdTaskVO.serviceType
|
|
|
- this.task.resource = res.crowdTaskVO.resource
|
|
|
|
|
|
|
+ this.task.resource = res.crowdTaskVO.resource.toString()
|
|
|
this.task.location = getProvinceCodeByProvinceName(res.crowdTaskVO.location.provinceCode, res.crowdTaskVO.location.cityCode)
|
|
this.task.location = getProvinceCodeByProvinceName(res.crowdTaskVO.location.provinceCode, res.crowdTaskVO.location.cityCode)
|
|
|
this.task.institution = res.crowdTaskVO.institution
|
|
this.task.institution = res.crowdTaskVO.institution
|
|
|
this.task.datetime = new Date(res.crowdTaskVO.datetime)
|
|
this.task.datetime = new Date(res.crowdTaskVO.datetime)
|
|
@@ -451,8 +453,6 @@
|
|
|
this.task.agencyId = res.crowdTaskVO.agencyId
|
|
this.task.agencyId = res.crowdTaskVO.agencyId
|
|
|
this.task.status = res.crowdTaskVO.status
|
|
this.task.status = res.crowdTaskVO.status
|
|
|
this.taskOperationControl = res.taskOperationControl
|
|
this.taskOperationControl = res.taskOperationControl
|
|
|
- // this.reportList = res.crowdReportVOList
|
|
|
|
|
- res.acceptedUserList;
|
|
|
|
|
this.acceptedUserList = res.acceptedUserList;
|
|
this.acceptedUserList = res.acceptedUserList;
|
|
|
this.handleFormatReport(this.acceptedUserList);
|
|
this.handleFormatReport(this.acceptedUserList);
|
|
|
},
|
|
},
|
|
@@ -487,7 +487,8 @@
|
|
|
datetime: this.task.datetime,
|
|
datetime: this.task.datetime,
|
|
|
quotePrice: this.task.quotePrice,
|
|
quotePrice: this.task.quotePrice,
|
|
|
fixedPrice: this.task.fixedPrice,
|
|
fixedPrice: this.task.fixedPrice,
|
|
|
- requirementFile: this.task.requireDocUrl
|
|
|
|
|
|
|
+ requirementFile: this.task.requireDocUrl,
|
|
|
|
|
+ participantCount: this.task.participantCount
|
|
|
}
|
|
}
|
|
|
//console.log(newTask)
|
|
//console.log(newTask)
|
|
|
updateTask(this.projectId, this.taskId, newTask, this.updateTaskSuccess, this.updateTaskFail)
|
|
updateTask(this.projectId, this.taskId, newTask, this.updateTaskSuccess, this.updateTaskFail)
|
|
@@ -515,7 +516,8 @@
|
|
|
this.task.quotePrice = res.crowdTaskVO.quotePrice
|
|
this.task.quotePrice = res.crowdTaskVO.quotePrice
|
|
|
this.task.fixedPrice = res.crowdTaskVO.fixedPrice
|
|
this.task.fixedPrice = res.crowdTaskVO.fixedPrice
|
|
|
this.task.doc = []
|
|
this.task.doc = []
|
|
|
- this.task.requireDocUrl = res.crowdTaskVO.requirementFile
|
|
|
|
|
|
|
+ this.task.requireDocUrl = res.crowdTaskVO.requirementFile,
|
|
|
|
|
+ this.task.participantCount = res.crowdTaskVO.participantCount
|
|
|
this.reportList = res.crowdReportVOList
|
|
this.reportList = res.crowdReportVOList
|
|
|
this.hideLoading()
|
|
this.hideLoading()
|
|
|
notify('success', '修改成功')
|
|
notify('success', '修改成功')
|