|
|
|
|
@ -223,7 +223,7 @@
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
<el-table-column align='center'label="操作" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="scope.row.carry_status===1 && showform.main_admin_id===stateObj.login_id">
|
|
|
|
|
<div v-if="scope.row.carry_status==1 && showform.main_admin_id==stateObj.login_id">
|
|
|
|
|
<Button v-if="scope.row.keep_status===1" @click="startLoad(scope.row,'check')" type="primary" size="small"
|
|
|
|
|
>审核进展</Button>
|
|
|
|
|
</div>
|
|
|
|
|
@ -282,21 +282,21 @@
|
|
|
|
|
<el-table-column align='center'label="操作" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="scope.row.carry_status===0">
|
|
|
|
|
<Button @click="startLoad(scope.row,'add')" type="primary" size="small"
|
|
|
|
|
<Button style="margin-bottom: 5px;" @click="startLoad(scope.row,'add')" type="primary" size="small"
|
|
|
|
|
>开始任务</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else-if="scope.row.carry_status===1">
|
|
|
|
|
<Button v-if="scope.row.carry_type===0" @click="openMyMission" type="primary" size="small"
|
|
|
|
|
<Button style="margin-bottom: 5px;" v-if="scope.row.carry_type===0" @click="openMyMission" type="primary" size="small"
|
|
|
|
|
>任务执行</Button>
|
|
|
|
|
<Button v-if="scope.row.carry_type===1 && scope.row.admin_type==1" @click="editorUnit('pid')" type="primary" size="small"
|
|
|
|
|
<Button style="margin-bottom: 5px;" v-if="scope.row.carry_type===1 && scope.row.admin_type==1" @click="editorUnit('pid')" type="primary" size="small"
|
|
|
|
|
>任务分解</Button>
|
|
|
|
|
<Button v-if="scope.row.carry_type===2 && scope.row.admin_type==1" @click="editorUnit('send')" type="primary" size="small"
|
|
|
|
|
<Button style="margin-bottom: 5px;" v-if="scope.row.carry_type===2 && scope.row.admin_type==1" @click="editorUnit('send')" type="primary" size="small"
|
|
|
|
|
>任务转办</Button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Button v-if="scope.row.keep_status===-1" @click="startLoad(scope.row,'editor')" type="primary" size="small"
|
|
|
|
|
<Button style="margin-bottom: 5px;" v-if="scope.row.keep_status===-1" @click="startLoad(scope.row,'editor')" type="primary" size="small"
|
|
|
|
|
>提交进展</Button>
|
|
|
|
|
<Button v-if="scope.row.keep_status===0 || scope.row.keep_status===3 " @click="startLoad(scope.row,'editor')" type="primary" size="small"
|
|
|
|
|
<Button style="margin-bottom: 5px;" v-if="scope.row.keep_status===0 || scope.row.keep_status===3 " @click="startLoad(scope.row,'editor')" type="primary" size="small"
|
|
|
|
|
>编辑进展</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else></div>
|
|
|
|
|
@ -451,7 +451,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
</xy-dialog>
|
|
|
|
|
|
|
|
|
|
<openLoad ref="openLoad" @refresh="carryTypeWhat" @reload="getDetail"></openLoad>
|
|
|
|
|
<openLoad ref="openLoad" @refresh="carryTypeWhat" @reload="getDetail" @reloadList="reloadList"></openLoad>
|
|
|
|
|
<addUnit ref="addUnit" @refresh="carryFinish"></addUnit>
|
|
|
|
|
<!-- <checkUnit ref="checkUnit"></checkUnit> -->
|
|
|
|
|
<showLogs ref="showLogs"></showLogs>
|
|
|
|
|
@ -1173,9 +1173,12 @@
|
|
|
|
|
this.$refs.openLoad.pid = this.showform.pid
|
|
|
|
|
this.$refs.openLoad.type = type
|
|
|
|
|
this.$refs.openLoad.setForm(row,this.showform.start_date,this.showform.end_date)
|
|
|
|
|
|
|
|
|
|
this.$refs.openLoad.id = this.id
|
|
|
|
|
this.$refs.openLoad.isShow = true
|
|
|
|
|
},
|
|
|
|
|
reloadList(){
|
|
|
|
|
this.$emit("refresh")
|
|
|
|
|
},
|
|
|
|
|
// 提交完 执行状态之后
|
|
|
|
|
carryTypeWhat(e){
|
|
|
|
|
console.log("carryTypeWhat",e)
|
|
|
|
|
@ -1219,9 +1222,9 @@
|
|
|
|
|
// 我的任务中的操作
|
|
|
|
|
openMyMission(remark, e) {
|
|
|
|
|
switch (this.is_what_unitType) {
|
|
|
|
|
case '检查':
|
|
|
|
|
this.addPatrol(e)
|
|
|
|
|
break;
|
|
|
|
|
// case '检查':
|
|
|
|
|
// this.addPatrol(e)
|
|
|
|
|
// break;
|
|
|
|
|
case '学习':
|
|
|
|
|
this.type = 'study'
|
|
|
|
|
break;
|
|
|
|
|
@ -1234,6 +1237,7 @@
|
|
|
|
|
case '资料收集':
|
|
|
|
|
case '方案':
|
|
|
|
|
case '会议':
|
|
|
|
|
case '检查':
|
|
|
|
|
this.type = 'uploads'
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|