|
@@ -215,7 +215,7 @@
|
|
</el-col>
|
|
</el-col>
|
|
<!-- 左侧end -->
|
|
<!-- 左侧end -->
|
|
<!-- 右侧 -->
|
|
<!-- 右侧 -->
|
|
- <el-col :span="6" class="dia-right" >
|
|
|
|
|
|
+ <el-col :span="6" class="dia-right">
|
|
<div class="e-right" style="height: 75vh;!important;">
|
|
<div class="e-right" style="height: 75vh;!important;">
|
|
<div class="forthis" style="height: 75vh;!important;">
|
|
<div class="forthis" style="height: 75vh;!important;">
|
|
<dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']"
|
|
<dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']"
|
|
@@ -223,7 +223,7 @@
|
|
<div class="i-list-con" style="height: 75vh;!important;">
|
|
<div class="i-list-con" style="height: 75vh;!important;">
|
|
<div class="this-con" style="height: 75vh;!important;">
|
|
<div class="this-con" style="height: 75vh;!important;">
|
|
<div class="z-info-list" style="margin-top: 0;height: 75vh;!important;">
|
|
<div class="z-info-list" style="margin-top: 0;height: 75vh;!important;">
|
|
- <el-timeline style="height: 75vh;!important;">
|
|
|
|
|
|
+ <el-timeline style="height: 75vh;!important;">
|
|
<el-timeline-item color="#2bacf7" :timestamp="item.createTime"
|
|
<el-timeline-item color="#2bacf7" :timestamp="item.createTime"
|
|
placement="top" v-for="(item,index) in eventLogList">
|
|
placement="top" v-for="(item,index) in eventLogList">
|
|
<el-card style="width: 40vh">
|
|
<el-card style="width: 40vh">
|
|
@@ -258,32 +258,32 @@
|
|
</div>
|
|
</div>
|
|
</dv-border-box-7>
|
|
</dv-border-box-7>
|
|
</div>
|
|
</div>
|
|
-<!-- <div class="forthis">-->
|
|
|
|
-<!-- <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']">-->
|
|
|
|
-<!-- <div class="i-list-con">-->
|
|
|
|
-<!-- <div class="this-con h-25 no-padding">-->
|
|
|
|
-<!-- <div class="z-info-list" style="margin-top: 0;">-->
|
|
|
|
-<!-- <div class="z-info-btm-grp">-->
|
|
|
|
-<!-- <div class="z-info-btm-grp-top">-->
|
|
|
|
-<!-- <div class="z-info-btm-grp-left">-->
|
|
|
|
-<!-- <!– <el-button size="small" icon="el-icon-s-flag">责任制–>-->
|
|
|
|
-<!-- <!– </el-button>–>-->
|
|
|
|
-<!-- <el-button size="small" icon="el-icon-upload" @click="showEventLogUpload()">上传-->
|
|
|
|
-<!-- </el-button>-->
|
|
|
|
-<!-- <el-button size="small" icon="el-icon-download" @click="toImage()">保存-->
|
|
|
|
-<!-- </el-button>-->
|
|
|
|
-<!-- </div>-->
|
|
|
|
-<!-- <div class="z-info-btm-grp-right">-->
|
|
|
|
-<!-- <el-button size="small" icon="el-icon-mic">会议-->
|
|
|
|
-<!-- </el-button>-->
|
|
|
|
-<!-- </div>-->
|
|
|
|
-<!-- </div>-->
|
|
|
|
-<!-- </div>-->
|
|
|
|
-<!-- </div>-->
|
|
|
|
-<!-- </div>-->
|
|
|
|
-<!-- </div>-->
|
|
|
|
-<!-- </dv-border-box-7>-->
|
|
|
|
-<!-- </div>-->
|
|
|
|
|
|
+ <!-- <div class="forthis">-->
|
|
|
|
+ <!-- <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']">-->
|
|
|
|
+ <!-- <div class="i-list-con">-->
|
|
|
|
+ <!-- <div class="this-con h-25 no-padding">-->
|
|
|
|
+ <!-- <div class="z-info-list" style="margin-top: 0;">-->
|
|
|
|
+ <!-- <div class="z-info-btm-grp">-->
|
|
|
|
+ <!-- <div class="z-info-btm-grp-top">-->
|
|
|
|
+ <!-- <div class="z-info-btm-grp-left">-->
|
|
|
|
+ <!-- <!– <el-button size="small" icon="el-icon-s-flag">责任制–>-->
|
|
|
|
+ <!-- <!– </el-button>–>-->
|
|
|
|
+ <!-- <el-button size="small" icon="el-icon-upload" @click="showEventLogUpload()">上传-->
|
|
|
|
+ <!-- </el-button>-->
|
|
|
|
+ <!-- <el-button size="small" icon="el-icon-download" @click="toImage()">保存-->
|
|
|
|
+ <!-- </el-button>-->
|
|
|
|
+ <!-- </div>-->
|
|
|
|
+ <!-- <div class="z-info-btm-grp-right">-->
|
|
|
|
+ <!-- <el-button size="small" icon="el-icon-mic">会议-->
|
|
|
|
+ <!-- </el-button>-->
|
|
|
|
+ <!-- </div>-->
|
|
|
|
+ <!-- </div>-->
|
|
|
|
+ <!-- </div>-->
|
|
|
|
+ <!-- </div>-->
|
|
|
|
+ <!-- </div>-->
|
|
|
|
+ <!-- </div>-->
|
|
|
|
+ <!-- </dv-border-box-7>-->
|
|
|
|
+ <!-- </div>-->
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -292,24 +292,25 @@
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<!-- 任务选择领取部门弹层 -->
|
|
<!-- 任务选择领取部门弹层 -->
|
|
- <el-dialog title="选择部门" :visible.sync="showDeptConfirm" v-if="showDeptConfirm" width="80%" append-to-body
|
|
|
|
|
|
+ <el-dialog title="选择部门" :visible.sync="showDeptConfirm" v-if="showDeptConfirm" width="30%" append-to-body
|
|
@close="cancelEventConfirm()">
|
|
@close="cancelEventConfirm()">
|
|
<el-form label-width="80px">
|
|
<el-form label-width="80px">
|
|
<el-form-item label="选择部门">
|
|
<el-form-item label="选择部门">
|
|
- <el-select v-model="sendDeptName" clearable placeholder="请选择部门" class="m-r-1rem" @change="setValue">
|
|
|
|
|
|
+ <el-select v-model="deptName" multiple placeholder="请选择部门" class="m-r-1rem" @change="setValue">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in deptOptions"
|
|
v-for="item in deptOptions"
|
|
- :key="item.deptId"
|
|
|
|
- :label="item.deptName"
|
|
|
|
- :value="{value:item.deptId,label:item.deptName}"><!--:disabled="item.eventStatus=='未处理' ? false:true"-->
|
|
|
|
|
|
+ :key="item.taskDeptId"
|
|
|
|
+ :label="item.taskDeptName"
|
|
|
|
+ :value="{value:item.taskDeptId,label:item.taskDeptName}">
|
|
|
|
+ <!--:disabled="item.eventStatus=='未处理' ? false:true"-->
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-button size="mini" type="primary" v-if="taskStatusButton=='lq'"
|
|
<el-button size="mini" type="primary" v-if="taskStatusButton=='lq'"
|
|
- @click="updateCentereventTEventcatalogueStatus('ld',true)">领取
|
|
|
|
|
|
+ @click="receiveTask(taskId)">领取
|
|
</el-button>
|
|
</el-button>
|
|
<el-button size="mini" type="primary" v-if="taskStatusButton=='jj'"
|
|
<el-button size="mini" type="primary" v-if="taskStatusButton=='jj'"
|
|
- @click="updateCentereventTEventcatalogueStatus('ld',true)">拒绝
|
|
|
|
|
|
+ @click="refusedTask(taskId)">拒绝
|
|
</el-button>
|
|
</el-button>
|
|
</el-form>
|
|
</el-form>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -318,7 +319,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import {
|
|
import {
|
|
- selectTaskBO,getEventDetail,selectTaskDtpts
|
|
|
|
|
|
+ selectTaskBO, getEventDetail, selectTaskDtpts, receiveTask, refusedTask
|
|
} from '@/api/forest'
|
|
} from '@/api/forest'
|
|
import supermapTaskDialog from '@/components/supermap' //超图
|
|
import supermapTaskDialog from '@/components/supermap' //超图
|
|
|
|
|
|
@@ -336,11 +337,11 @@ export default {
|
|
eventDialog: false,//事件详情弹层
|
|
eventDialog: false,//事件详情弹层
|
|
taskStatusButton: null,//任务按钮
|
|
taskStatusButton: null,//任务按钮
|
|
|
|
|
|
- showDeptConfirm:false,//任务领取选择部门弹窗
|
|
|
|
- deptOptions: [],//任务领取部门
|
|
|
|
- sendDeptId: null,//任务领取部门
|
|
|
|
- sendDeptName: null,//任务领取部门
|
|
|
|
-
|
|
|
|
|
|
+ taskId: null,//任务ID
|
|
|
|
+ showDeptConfirm: false,//任务领取选择部门弹窗
|
|
|
|
+ deptOptions: [],//任务领取部门列表
|
|
|
|
+ centerTaskTaskDepts: [],//任务领取部门
|
|
|
|
+ deptName: [],//任务领取部门
|
|
|
|
|
|
taskCount: 0,//任务数量
|
|
taskCount: 0,//任务数量
|
|
taskList: 0,//任务列表
|
|
taskList: 0,//任务列表
|
|
@@ -432,17 +433,54 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
setValue(event) {
|
|
setValue(event) {
|
|
|
|
+ this.centerTaskTaskDepts = []
|
|
//签收选择部门
|
|
//签收选择部门
|
|
- this.sendDeptName = event.label
|
|
|
|
- this.sendDeptId = event.value
|
|
|
|
|
|
+ if (event != null && event.length > 0) {
|
|
|
|
+ for (let i = 0; i < event.length; i++) {
|
|
|
|
+ if (event[i].label != undefined && event[i].value != undefined) {
|
|
|
|
+ this.centerTaskTaskDepts.push({ taskDeptId: event[i].value, taskDeptName: event[i].label })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ receiveTask(taskId) {
|
|
|
|
+ let param = { taskId: taskId, centerTaskTaskDepts: this.centerTaskTaskDepts }
|
|
|
|
+ receiveTask(param).then(res => {
|
|
|
|
+ //任务领取
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.$message.success(`任务领取成功!`)
|
|
|
|
+ this.deptOptions = []
|
|
|
|
+ this.deptName = []
|
|
|
|
+ this.centerTaskTaskDepts = []
|
|
|
|
+ //刷新任务列表
|
|
|
|
+ this.selectTaskList()
|
|
|
|
+ this.showDeptConfirm = false
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ refusedTask(taskId) {
|
|
|
|
+ let param = { taskId: taskId, centerTaskTaskDepts: this.centerTaskTaskDepts }
|
|
|
|
+ refusedTask(param).then(res => {
|
|
|
|
+ //任务拒绝
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.$message.success(`任务拒绝成功!`)
|
|
|
|
+ this.deptOptions = []
|
|
|
|
+ this.deptName = []
|
|
|
|
+ this.centerTaskTaskDepts = []
|
|
|
|
+ //刷新任务列表
|
|
|
|
+ this.selectTaskList()
|
|
|
|
+ this.showDeptConfirm = false
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
- selectTaskDtpts(taskId,state){
|
|
|
|
- selectTaskDtpts({taskId: taskId}).then(res => {
|
|
|
|
- //任务领取部门
|
|
|
|
|
|
+ selectTaskDtpts(taskId, state) {
|
|
|
|
+ this.taskId = taskId
|
|
|
|
+ selectTaskDtpts({ taskId: taskId }).then(res => {
|
|
|
|
+ //任务领取部门列表
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.deptOptions = res.data
|
|
this.deptOptions = res.data
|
|
- this.taskStatusButton=state
|
|
|
|
- this.showDeptConfirm=true
|
|
|
|
|
|
+ this.taskStatusButton = state
|
|
|
|
+ this.showDeptConfirm = true
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -453,8 +491,8 @@ export default {
|
|
cancelEventConfirm() {
|
|
cancelEventConfirm() {
|
|
console.log('关闭任务选择部门')
|
|
console.log('关闭任务选择部门')
|
|
this.deptOptions = []
|
|
this.deptOptions = []
|
|
- this.sendDeptId = null
|
|
|
|
- this.sendDeptName = null
|
|
|
|
|
|
+ this.deptName = []
|
|
|
|
+ this.centerTaskTaskDepts = []
|
|
},
|
|
},
|
|
showEventDialog(eventCode) {
|
|
showEventDialog(eventCode) {
|
|
this.eventCode = eventCode
|
|
this.eventCode = eventCode
|