|
|
|
|
@ -32,8 +32,11 @@
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<Button type="primary" style='margin-right:5px;margin-bottom:5px;' size="small" @click="showPatrol(scope.row.id,'show')">查看</Button>
|
|
|
|
|
<Button v-if='scope.row.status==0&&(is_guiji||is_chuzhang||login_id==scope.row.admin_id)' type="primary" style='margin-right:5px;margin-bottom:5px;' size="small" @click="editorPatrol(scope.row.id,'editor')">编辑</Button>
|
|
|
|
|
<Button v-if="scope.row.status==1&&((scope.row.check_leader==1&&is_leader&&scope.row.leader_status===null)||(scope.row.check_main==1&&is_main_leader&&scope.row.main_status===null))" type="primary" style='margin-right:5px;margin-bottom:5px;' size="small" @click="showPatrol(scope.row.id,'leader')">领导确认</Button>
|
|
|
|
|
<Button v-if="scope.row.status==9&&((scope.row.re_check_leader==1&&is_leader&&scope.row.re_leader_status===null)||(scope.row.re_check_main==1&&is_main_leader&&scope.row.re_main_status===null))" type="primary" style='margin-right:5px;margin-bottom:5px;' size="small" @click="showPatrol(scope.row.id,'leaderconfirm')">领导确认整改</Button>
|
|
|
|
|
<Button v-if="scope.row.status==1&&((scope.row.check_leader==1&&is_leader&&scope.row.leader_status===null)||(scope.row.check_main==1&&is_main_leader&&scope.row.main_status===null))" type="primary" style='margin-right:5px;margin-bottom:5px;' size="small" @click="showPatrol(scope.row.id,'leader')">确认</Button>
|
|
|
|
|
<Button v-if="scope.row.status==9&&((scope.row.re_check_leader==1&&is_leader&&scope.row.re_leader_status===null)||(scope.row.re_check_main==1&&is_main_leader&&scope.row.re_main_status===null))" type="primary" style='margin-right:5px;margin-bottom:5px;' size="small" @click="showPatrol(scope.row.id,'leaderconfirm')">审核</Button>
|
|
|
|
|
<Poptip v-if='is_guiji||is_chuzhang' transfer confirm title="确认要删除吗?" @on-ok="deleteList(scope.row.id)">
|
|
|
|
|
<Button type="primary" size='small' style="margin-left:5px;margin-bottom:5px;" ghost>删除</Button>
|
|
|
|
|
</Poptip>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
@ -77,7 +80,7 @@ import {getInfo} from "@/api/user.js";
|
|
|
|
|
value:'已撤回'
|
|
|
|
|
},{
|
|
|
|
|
id:0,
|
|
|
|
|
value:'待审核'
|
|
|
|
|
value:'待确认'
|
|
|
|
|
},{
|
|
|
|
|
id:1,
|
|
|
|
|
value:'待领导确认'
|
|
|
|
|
@ -104,7 +107,7 @@ import {getInfo} from "@/api/user.js";
|
|
|
|
|
value:'部门退回'
|
|
|
|
|
},{
|
|
|
|
|
id:9,
|
|
|
|
|
value:'待领导确认整改'
|
|
|
|
|
value:'待领导审核'
|
|
|
|
|
}],
|
|
|
|
|
table:[{
|
|
|
|
|
label:"任务专题",
|
|
|
|
|
@ -333,21 +336,13 @@ import {getInfo} from "@/api/user.js";
|
|
|
|
|
deleteList(id){
|
|
|
|
|
var that = this;
|
|
|
|
|
if (id) {
|
|
|
|
|
this.$Modal.confirm({
|
|
|
|
|
title: '确认要删除数据?',
|
|
|
|
|
onOk: () => {
|
|
|
|
|
del(id).then(response => {
|
|
|
|
|
this.$Message.success('操作成功');
|
|
|
|
|
that.getList();
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
reject(error)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
onCancel: () => {
|
|
|
|
|
//this.$Message.info('Clicked cancel');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
del(id).then(response => {
|
|
|
|
|
this.$Message.success('操作成功');
|
|
|
|
|
that.getList();
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
reject(error)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|