|
|
|
|
@ -175,45 +175,151 @@
|
|
|
|
|
<div v-if="type=='show'">
|
|
|
|
|
<!-- <el-divider>执行情况</el-divider> -->
|
|
|
|
|
<el-tabs v-model="activeName">
|
|
|
|
|
<el-tab-pane label="子任务" name="first" v-if="showform.pid_details && showform.pid_details.length>0">
|
|
|
|
|
<!-- <el-tab-pane label="子任务" name="first" v-if="showform.pid_details && showform.pid_details.length>0">
|
|
|
|
|
<xy-table :list="showform.pid_details" stripe :table-item="pidTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
<!-- <el-table-column align='center' fixed="right" label="操作" width="100" header-align="center">
|
|
|
|
|
<el-table-column align='center' fixed="right" label="操作" width="100" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div>
|
|
|
|
|
<Button type="primary" style='margin-right:5px;margin-bottom:5px;' size="small"
|
|
|
|
|
@click="checkUnits(scope.row.id,'show')">查看任务</Button>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
</el-tab-pane> -->
|
|
|
|
|
<el-tab-pane label="执行情况" name="second">
|
|
|
|
|
<xy-table :list="inspection_log" v-if="is_what_unitType=='检查'" stripe :table-item="inspectionLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="ask_log" v-if="is_what_unitType=='答题'" stripe :table-item="askLogTable" :isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="study_log" v-if="is_what_unitType=='学习'" stripe :table-item="studyLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="uploads_log" v-if="is_what_unitType=='资料收集'" stripe :table-item="uploadsLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="uploads_log" v-if="is_what_unitType=='方案'" stripe :table-item="uploadsLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="train_log" v-if="is_what_unitType=='培训'" stripe :table-item="trainLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<div v-if="myself_list.length>0">
|
|
|
|
|
<el-divider>我办理的任务</el-divider>
|
|
|
|
|
<div>
|
|
|
|
|
<el-collapse accordion v-model="myself_id" @change="changePidLog">
|
|
|
|
|
<el-collapse-item :title="item.name" :name="item.id" v-for="item in myself_list">
|
|
|
|
|
<xy-table :list="pidLog" v-if="is_what_unitType=='检查'" stripe :table-item="inspectionLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="pidLog" v-if="is_what_unitType=='答题'" stripe :table-item="askLogTable" :isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="pidLog" v-if="is_what_unitType=='学习'" stripe :table-item="studyLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="pidLog" v-if="is_what_unitType=='资料收集'" stripe :table-item="uploadsLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="pidLog" v-if="is_what_unitType=='方案'" stripe :table-item="uploadsLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="pidLog" v-if="is_what_unitType=='培训'" stripe :table-item="trainLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
</el-collapse-item>
|
|
|
|
|
</el-collapse>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-divider>任务执行</el-divider>
|
|
|
|
|
<div>
|
|
|
|
|
<el-collapse accordion v-model="now_id">
|
|
|
|
|
<el-collapse-item :title="showform.name" :name="showform.id">
|
|
|
|
|
<xy-table :list="inspection_log" v-if="is_what_unitType=='检查'" stripe :table-item="inspectionLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="ask_log" v-if="is_what_unitType=='答题'" stripe :table-item="askLogTable" :isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="study_log" v-if="is_what_unitType=='学习'" stripe :table-item="studyLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="uploads_log" v-if="is_what_unitType=='资料收集'" stripe :table-item="uploadsLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="uploads_log" v-if="is_what_unitType=='方案'" stripe :table-item="uploadsLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="train_log" v-if="is_what_unitType=='培训'" stripe :table-item="trainLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
</el-collapse-item>
|
|
|
|
|
</el-collapse>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="pid_list.length>0">
|
|
|
|
|
<el-divider>任务分解</el-divider>
|
|
|
|
|
<div>
|
|
|
|
|
<el-collapse accordion v-model="pid_id" @change="changePidLog">
|
|
|
|
|
<el-collapse-item :title="item.name" :name="item.id" v-for="item in pid_list">
|
|
|
|
|
<xy-table :list="pidLog" v-if="is_what_unitType=='检查'" stripe :table-item="inspectionLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="pidLog" v-if="is_what_unitType=='答题'" stripe :table-item="askLogTable" :isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="pidLog" v-if="is_what_unitType=='学习'" stripe :table-item="studyLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="pidLog" v-if="is_what_unitType=='资料收集'" stripe :table-item="uploadsLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="pidLog" v-if="is_what_unitType=='方案'" stripe :table-item="uploadsLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="pidLog" v-if="is_what_unitType=='培训'" stripe :table-item="trainLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
</el-collapse-item>
|
|
|
|
|
</el-collapse>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="send_list.length>0">
|
|
|
|
|
<el-divider>任务转办</el-divider>
|
|
|
|
|
<div>
|
|
|
|
|
<el-collapse accordion v-model="send_id" @change="changePidLog">
|
|
|
|
|
<el-collapse-item :title="`${item.name}`" :name="item.id" v-for="item in send_list">
|
|
|
|
|
<xy-table :list="pidLog" v-if="is_what_unitType=='检查'" stripe :table-item="inspectionLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="pidLog" v-if="is_what_unitType=='答题'" stripe :table-item="askLogTable" :isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="pidLog" v-if="is_what_unitType=='学习'" stripe :table-item="studyLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="pidLog" v-if="is_what_unitType=='资料收集'" stripe :table-item="uploadsLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="pidLog" v-if="is_what_unitType=='方案'" stripe :table-item="uploadsLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :list="pidLog" v-if="is_what_unitType=='培训'" stripe :table-item="trainLogTable"
|
|
|
|
|
:isPage='false'>
|
|
|
|
|
<template v-slot:btns></template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
</el-collapse-item>
|
|
|
|
|
</el-collapse>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
</el-tabs>
|
|
|
|
|
|
|
|
|
|
@ -418,7 +524,15 @@
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
isShow: false,
|
|
|
|
|
activeName:'second',
|
|
|
|
|
activeName:'second',
|
|
|
|
|
now_id:'',
|
|
|
|
|
pid_list:[],
|
|
|
|
|
send_list:[],
|
|
|
|
|
myself_list:[],
|
|
|
|
|
myself_id:'',
|
|
|
|
|
send_id:'',
|
|
|
|
|
pid_id:'',
|
|
|
|
|
pidLog:[],
|
|
|
|
|
type: '',
|
|
|
|
|
id: '',
|
|
|
|
|
login_id: "",
|
|
|
|
|
@ -934,6 +1048,37 @@
|
|
|
|
|
this.$refs.showLogs.id = this.showform.id
|
|
|
|
|
this.$refs.showLogs.isShow = true
|
|
|
|
|
},
|
|
|
|
|
changePidLog(e){
|
|
|
|
|
console.log("pide",e)
|
|
|
|
|
let arr = []
|
|
|
|
|
switch (this.is_what_unitType) {
|
|
|
|
|
case '检查':
|
|
|
|
|
arr = this.inspection_log.filter(item=>item.mission_id==e)
|
|
|
|
|
this.pidLog = arr
|
|
|
|
|
break;
|
|
|
|
|
case '学习':
|
|
|
|
|
arr = this.study_log.filter(item=>item.mission_id==e)
|
|
|
|
|
this.pidLog = arr
|
|
|
|
|
break;
|
|
|
|
|
case '答题':
|
|
|
|
|
arr = this.ask_log.filter(item=>item.mission_id==e)
|
|
|
|
|
this.pidLog = arr
|
|
|
|
|
break;
|
|
|
|
|
case '培训':
|
|
|
|
|
arr = this.train_log.filter(item=>item.mission_id==e)
|
|
|
|
|
this.pidLog = arr
|
|
|
|
|
break;
|
|
|
|
|
case '资料收集':
|
|
|
|
|
case '方案':
|
|
|
|
|
arr = this.uploads_log.filter(item=>item.mission_id==e)
|
|
|
|
|
this.pidLog = arr
|
|
|
|
|
break;
|
|
|
|
|
// case '方案':
|
|
|
|
|
// this.openCases(e)
|
|
|
|
|
// break;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 我的任务中的操作
|
|
|
|
|
openMyMission(remark, e) {
|
|
|
|
|
switch (remark) {
|
|
|
|
|
@ -1035,7 +1180,31 @@
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
this.showform = res
|
|
|
|
|
this.is_what_unitType = res.unit_type_detail ? res.unit_type_detail.value : ''
|
|
|
|
|
this.is_what_unitType = res.unit_type_detail ? res.unit_type_detail.value : ''
|
|
|
|
|
if(res.mission_finished && res.mission_finished.length>0){
|
|
|
|
|
res.mission_finished.map(f=>{
|
|
|
|
|
if(f.admin_id===this.stateObj.login_id){
|
|
|
|
|
this.myself_list.push(item)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if(res.pid_details && res.pid_details.length>0){
|
|
|
|
|
this.pid_list=res.pid_details
|
|
|
|
|
res.pid_details.map(item=>{
|
|
|
|
|
if(item.do_admin_ids && item.do_admin_ids.length>0){
|
|
|
|
|
this.send_list.push(item)
|
|
|
|
|
}
|
|
|
|
|
if(item.mission_finished && item.mission_finished.length>0){
|
|
|
|
|
item.mission_finished.map(f=>{
|
|
|
|
|
if(f.admin_id===this.stateObj.login_id){
|
|
|
|
|
this.myself_list.push(item)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.type == 'show') {
|
|
|
|
|
switch (this.is_what_unitType) {
|
|
|
|
|
case '检查':
|
|
|
|
|
@ -1062,13 +1231,13 @@
|
|
|
|
|
let ids = ''
|
|
|
|
|
if(this.showform.pid_details&&this.showform.pid_details.length>0){
|
|
|
|
|
this.showform.pid_details.map((item)=>{
|
|
|
|
|
ids = item.id +','
|
|
|
|
|
ids = ids+','+item.id
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
console.log("ids",ids)
|
|
|
|
|
const res = await listasklog({
|
|
|
|
|
mission_id: ids+this.id,
|
|
|
|
|
mission_id: ids+','+this.id,
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 999
|
|
|
|
|
})
|
|
|
|
|
@ -1085,13 +1254,13 @@
|
|
|
|
|
let ids = ''
|
|
|
|
|
if(this.showform.pid_details&&this.showform.pid_details.length>0){
|
|
|
|
|
this.showform.pid_details.map((item)=>{
|
|
|
|
|
ids = item.id +','
|
|
|
|
|
ids = ids+','+item.id
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
console.log("ids",ids)
|
|
|
|
|
const res = await listpatrol({
|
|
|
|
|
mission_id: ids+this.id,
|
|
|
|
|
mission_id: ids+','+this.id,
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 999
|
|
|
|
|
})
|
|
|
|
|
@ -1138,13 +1307,13 @@
|
|
|
|
|
let ids = ''
|
|
|
|
|
if(this.showform.pid_details&&this.showform.pid_details.length>0){
|
|
|
|
|
this.showform.pid_details.map((item)=>{
|
|
|
|
|
ids = item.id +','
|
|
|
|
|
ids = ids+','+item.id
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
console.log("ids",ids)
|
|
|
|
|
const res = await listtrain({
|
|
|
|
|
mission_id: ids+this.id,
|
|
|
|
|
mission_id: ids+','+this.id,
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 999
|
|
|
|
|
})
|
|
|
|
|
@ -1154,13 +1323,13 @@
|
|
|
|
|
let ids = ''
|
|
|
|
|
if(this.showform.pid_details&&this.showform.pid_details.length>0){
|
|
|
|
|
this.showform.pid_details.map((item)=>{
|
|
|
|
|
ids = item.id +','
|
|
|
|
|
ids = ids+','+item.id
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
console.log("ids",ids)
|
|
|
|
|
const res = await listuploads({
|
|
|
|
|
mission_id: ids+this.id,
|
|
|
|
|
mission_id: ids+','+this.id,
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 999,
|
|
|
|
|
sort_name: 'created_at',
|
|
|
|
|
@ -1172,13 +1341,13 @@
|
|
|
|
|
let ids = ''
|
|
|
|
|
if(this.showform.pid_details&&this.showform.pid_details.length>0){
|
|
|
|
|
this.showform.pid_details.map((item)=>{
|
|
|
|
|
ids = item.id +','
|
|
|
|
|
ids = ids+','+item.id
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
console.log("ids",ids)
|
|
|
|
|
const res = await liststudy({
|
|
|
|
|
mission_id: ids+this.id,
|
|
|
|
|
mission_id: ids+','+this.id,
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 999
|
|
|
|
|
})
|
|
|
|
|
@ -1395,7 +1564,11 @@
|
|
|
|
|
this.getDetail()
|
|
|
|
|
} else {
|
|
|
|
|
this.id = ''
|
|
|
|
|
this.type = ''
|
|
|
|
|
this.type = ''
|
|
|
|
|
this.pid_list = []
|
|
|
|
|
this.send_list = []
|
|
|
|
|
this.pid_id = ''
|
|
|
|
|
this.send_id = ''
|
|
|
|
|
this.pictureList = []
|
|
|
|
|
this.my_uploads_list = []
|
|
|
|
|
this.uploadsForm = {}
|
|
|
|
|
@ -1431,7 +1604,9 @@
|
|
|
|
|
::v-deep .studylist {
|
|
|
|
|
flex-basis: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::v-deep .el-collapse{
|
|
|
|
|
border-top:none;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .type {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|