|
@@ -127,8 +127,8 @@
|
|
|
<div class="btm-r-pop-info-btm">
|
|
|
<el-link type="success" @click="showEventDialog( item.eventCode )">查看详情</el-link>
|
|
|
<div class="btm-r-pop-info-btm-btn">
|
|
|
- <el-button type="danger" @click="selectTaskDtpts(item.taskId,'jj')">拒绝</el-button>
|
|
|
- <el-button type="primary" @click="selectTaskDtpts(item.taskId,'lq')">领取</el-button>
|
|
|
+ <el-button type="danger" @click="selectTaskDtpts(item.taskId,item.eventCode,'jj')">拒绝</el-button>
|
|
|
+ <el-button type="primary" @click="selectTaskDtpts(item.taskId,item.eventCode,'lq')">领取</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -307,10 +307,10 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-button size="mini" type="primary" v-if="taskStatusButton=='lq'"
|
|
|
- @click="receiveTask(taskId)">领取
|
|
|
+ @click="receiveTask(taskId,eventCode)">领取
|
|
|
</el-button>
|
|
|
<el-button size="mini" type="primary" v-if="taskStatusButton=='jj'"
|
|
|
- @click="refusedTask(taskId)">拒绝
|
|
|
+ @click="refusedTask(taskId,eventCode)">拒绝
|
|
|
</el-button>
|
|
|
</el-form>
|
|
|
</el-dialog>
|
|
@@ -443,8 +443,8 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- receiveTask(taskId) {
|
|
|
- let param = { taskId: taskId, centerTaskTaskDepts: this.centerTaskTaskDepts }
|
|
|
+ receiveTask(taskId,eventCode) {
|
|
|
+ let param = { taskId: taskId,eventCode: eventCode, centerTaskTaskDepts: this.centerTaskTaskDepts }
|
|
|
receiveTask(param).then(res => {
|
|
|
//任务领取
|
|
|
if (res.code == 200) {
|
|
@@ -458,8 +458,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- refusedTask(taskId) {
|
|
|
- let param = { taskId: taskId, centerTaskTaskDepts: this.centerTaskTaskDepts }
|
|
|
+ refusedTask(taskId,eventCode) {
|
|
|
+ let param = { taskId: taskId,eventCode: eventCode, centerTaskTaskDepts: this.centerTaskTaskDepts }
|
|
|
refusedTask(param).then(res => {
|
|
|
//任务拒绝
|
|
|
if (res.code == 200) {
|
|
@@ -473,8 +473,9 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- selectTaskDtpts(taskId, state) {
|
|
|
+ selectTaskDtpts(taskId,eventCode, state) {
|
|
|
this.taskId = taskId
|
|
|
+ this.eventCode = eventCode
|
|
|
selectTaskDtpts({ taskId: taskId }).then(res => {
|
|
|
//任务领取部门列表
|
|
|
if (res.code == 200) {
|
|
@@ -486,10 +487,12 @@ export default {
|
|
|
},
|
|
|
cancelEventShow() {
|
|
|
console.log('关闭事件弹窗')
|
|
|
+ this.eventCode=null
|
|
|
this.eventLogList = []
|
|
|
},
|
|
|
cancelEventConfirm() {
|
|
|
console.log('关闭任务选择部门')
|
|
|
+ this.eventCode=null
|
|
|
this.deptOptions = []
|
|
|
this.deptName = []
|
|
|
this.centerTaskTaskDepts = []
|