|
|
|
|
@ -109,18 +109,42 @@
|
|
|
|
|
">
|
|
|
|
|
<el-tooltip placement="left" effect="light" v-if="!(scope.row.audit_status==3||scope.row.audit_status==5)">
|
|
|
|
|
<div slot="content">
|
|
|
|
|
<div style="margin-bottom:5px;">
|
|
|
|
|
<Button type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'send')">任务转办</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="margin-bottom:5px;">
|
|
|
|
|
<Button type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'pid')">任务分解</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-for="item in unitTypeList">
|
|
|
|
|
<Button v-if="scope.row.unit_type==item.id&&scope.row.audit_status==1" type="primary" size="small"
|
|
|
|
|
@click="openMyMission(item.value,scope.row)">任务执行</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-popover
|
|
|
|
|
|
|
|
|
|
placement="right"
|
|
|
|
|
title=""
|
|
|
|
|
width="200"
|
|
|
|
|
trigger="hover"
|
|
|
|
|
content="您可以按照任务要求完成任务">
|
|
|
|
|
<template v-for="item in unitTypeList">
|
|
|
|
|
<Button style="margin-bottom:5px;" slot="reference" v-if="scope.row.unit_type==item.id&&scope.row.audit_status==1" type="primary" size="small"
|
|
|
|
|
@click="openMyMission(item.value,scope.row)">任务执行</Button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-popover>
|
|
|
|
|
|
|
|
|
|
<el-popover
|
|
|
|
|
placement="right"
|
|
|
|
|
title=""
|
|
|
|
|
width="200"
|
|
|
|
|
trigger="hover"
|
|
|
|
|
content="您可以按照任务要求分解给到其他科室或人员">
|
|
|
|
|
<div style="margin-bottom:5px;" slot="reference" >
|
|
|
|
|
<Button type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'pid')">任务分解</Button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-popover>
|
|
|
|
|
<el-popover
|
|
|
|
|
placement="right"
|
|
|
|
|
title=""
|
|
|
|
|
width="200"
|
|
|
|
|
trigger="hover"
|
|
|
|
|
content="您可以按照任务要求转办给其他人员">
|
|
|
|
|
<div style="margin-bottom:5px;" slot="reference" >
|
|
|
|
|
<Button type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'send')">任务转办</Button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-popover>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<Button style="margin-right:5px;margin-bottom:5px;" type="primary" size="small">
|
|
|
|
|
执行任务
|
|
|
|
|
@ -134,18 +158,41 @@
|
|
|
|
|
<!-- 组长权限 -->
|
|
|
|
|
<el-tooltip placement="left" effect="light" v-if="scope.row.grounp_admin_detail.includes(stateObj.login_id) && !(scope.row.audit_status==3||scope.row.audit_status==5)">
|
|
|
|
|
<div slot="content">
|
|
|
|
|
<div style="margin-bottom:5px;">
|
|
|
|
|
<Button type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'send')">任务转办</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="margin-bottom:5px;">
|
|
|
|
|
<Button type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'pid')">任务分解</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-for="item in unitTypeList">
|
|
|
|
|
<Button v-if="scope.row.unit_type==item.id&&scope.row.audit_status==1" type="primary" size="small"
|
|
|
|
|
@click="openMyMission(item.value,scope.row)">任务执行</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-popover
|
|
|
|
|
|
|
|
|
|
placement="right"
|
|
|
|
|
title=""
|
|
|
|
|
width="200"
|
|
|
|
|
trigger="hover"
|
|
|
|
|
content="您可以按照任务要求完成任务">
|
|
|
|
|
<template v-for="item in unitTypeList">
|
|
|
|
|
<Button style="margin-bottom:5px;" slot="reference" v-if="scope.row.unit_type==item.id&&scope.row.audit_status==1" type="primary" size="small"
|
|
|
|
|
@click="openMyMission(item.value,scope.row)">任务执行</Button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-popover>
|
|
|
|
|
|
|
|
|
|
<el-popover
|
|
|
|
|
placement="right"
|
|
|
|
|
title=""
|
|
|
|
|
width="200"
|
|
|
|
|
trigger="hover"
|
|
|
|
|
content="您可以按照任务要求分解给到其他科室或人员">
|
|
|
|
|
<div style="margin-bottom:5px;" slot="reference" >
|
|
|
|
|
<Button type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'pid')">任务分解</Button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-popover>
|
|
|
|
|
<el-popover
|
|
|
|
|
placement="right"
|
|
|
|
|
title=""
|
|
|
|
|
width="200"
|
|
|
|
|
trigger="hover"
|
|
|
|
|
content="您可以按照任务要求转办给其他人员">
|
|
|
|
|
<div style="margin-bottom:5px;" slot="reference" >
|
|
|
|
|
<Button type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'send')">任务转办</Button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-popover>
|
|
|
|
|
</div>
|
|
|
|
|
<Button style="margin-right:5px;margin-bottom:5px;" type="primary" size="small">
|
|
|
|
|
执行任务
|
|
|
|
|
@ -153,25 +200,47 @@
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
<!-- 除组长外 组里面所有人都能执行任务 -->
|
|
|
|
|
<div v-else>
|
|
|
|
|
<div v-for="item in unitTypeList">
|
|
|
|
|
<Button v-if="scope.row.unit_type==item.id&&scope.row.audit_status==1" type="primary" size="small"
|
|
|
|
|
style="margin-right:5px;margin-bottom:5px;"
|
|
|
|
|
@click="openMyMission(item.value,scope.row)">执行任务</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-popover
|
|
|
|
|
placement="right"
|
|
|
|
|
title=""
|
|
|
|
|
width="200"
|
|
|
|
|
trigger="hover"
|
|
|
|
|
content="您可以按照任务要求完成任务">
|
|
|
|
|
<template v-for="item in unitTypeList">
|
|
|
|
|
<Button style="margin-bottom:5px;" slot="reference" v-if="scope.row.unit_type==item.id&&scope.row.audit_status==1" type="primary" size="small"
|
|
|
|
|
@click="openMyMission(item.value,scope.row)">任务执行</Button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-popover>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- doadmins 转办的人员 任务分解,任务执行 -->
|
|
|
|
|
<div v-else-if="scope.row.do_admin_ids && scope.row.do_admin_ids.length>0">
|
|
|
|
|
<el-tooltip placement="left" effect="light" v-if="scope.row.do_admin_ids.includes(stateObj.login_id) && !(scope.row.audit_status==3||scope.row.audit_status==5)">
|
|
|
|
|
<div slot="content">
|
|
|
|
|
<div style="margin-bottom:5px;">
|
|
|
|
|
<Button type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'pid')">任务分解</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-for="item in unitTypeList">
|
|
|
|
|
<Button v-if="scope.row.unit_type==item.id&&scope.row.audit_status==1" type="primary" size="small"
|
|
|
|
|
@click="openMyMission(item.value,scope.row)">任务执行</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-popover
|
|
|
|
|
|
|
|
|
|
placement="right"
|
|
|
|
|
title=""
|
|
|
|
|
width="200"
|
|
|
|
|
trigger="hover"
|
|
|
|
|
content="您可以按照任务要求完成任务">
|
|
|
|
|
<template v-for="item in unitTypeList">
|
|
|
|
|
<Button style="margin-bottom:5px;" slot="reference" v-if="scope.row.unit_type==item.id&&scope.row.audit_status==1" type="primary" size="small"
|
|
|
|
|
@click="openMyMission(item.value,scope.row)">任务执行</Button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-popover>
|
|
|
|
|
|
|
|
|
|
<el-popover
|
|
|
|
|
placement="right"
|
|
|
|
|
title=""
|
|
|
|
|
width="200"
|
|
|
|
|
trigger="hover"
|
|
|
|
|
content="您可以按照任务要求分解给到其他科室或人员">
|
|
|
|
|
<div style="margin-bottom:5px;" slot="reference" >
|
|
|
|
|
<Button type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'pid')">任务分解</Button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-popover>
|
|
|
|
|
</div>
|
|
|
|
|
<Button style="margin-right:5px;margin-bottom:5px;" type="primary" size="small">
|
|
|
|
|
执行任务
|
|
|
|
|
@ -180,11 +249,17 @@
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 直接 执行任务 -->
|
|
|
|
|
<div v-else>
|
|
|
|
|
<div v-for="item in unitTypeList">
|
|
|
|
|
<Button v-if="scope.row.unit_type==item.id &&scope.row.audit_status==1" type="primary" size="small"
|
|
|
|
|
style="margin-right:5px;margin-bottom:5px;"
|
|
|
|
|
@click="openMyMission(item.value,scope.row)">执行任务</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-popover
|
|
|
|
|
placement="right"
|
|
|
|
|
title=""
|
|
|
|
|
width="200"
|
|
|
|
|
trigger="hover"
|
|
|
|
|
content="您可以按照任务要求完成任务">
|
|
|
|
|
<template v-for="item in unitTypeList">
|
|
|
|
|
<Button style="margin-bottom:5px;" slot="reference" v-if="scope.row.unit_type==item.id&&scope.row.audit_status==1" type="primary" size="small"
|
|
|
|
|
@click="openMyMission(item.value,scope.row)">任务执行</Button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-popover>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<Button style='margin-right:5px;margin-bottom:5px;' type="primary" size="small"
|
|
|
|
|
@ -262,7 +337,7 @@
|
|
|
|
|
name: '专项专题任务'
|
|
|
|
|
}, {
|
|
|
|
|
type: 5,
|
|
|
|
|
name: '我的任务'
|
|
|
|
|
name: '我的待办任务'
|
|
|
|
|
}],
|
|
|
|
|
myMonth:'',
|
|
|
|
|
isMyPage:true,
|
|
|
|
|
@ -315,11 +390,11 @@
|
|
|
|
|
},
|
|
|
|
|
selectAuditStatusList: [{
|
|
|
|
|
id: 4,
|
|
|
|
|
value: '待开展',
|
|
|
|
|
value: '待办',
|
|
|
|
|
type: 'info'
|
|
|
|
|
}, {
|
|
|
|
|
id: 1,
|
|
|
|
|
value: '未完成',
|
|
|
|
|
value: '办理中',
|
|
|
|
|
type: ''
|
|
|
|
|
}, {
|
|
|
|
|
id: 5,
|
|
|
|
|
@ -327,16 +402,16 @@
|
|
|
|
|
type: 'success'
|
|
|
|
|
}, {
|
|
|
|
|
id: 3,
|
|
|
|
|
value: '待归档',
|
|
|
|
|
value: '已完成',
|
|
|
|
|
type: 'danger'
|
|
|
|
|
}],
|
|
|
|
|
auditStatusList: [{
|
|
|
|
|
id: 4,
|
|
|
|
|
value: '待开展',
|
|
|
|
|
value: '待办',
|
|
|
|
|
type: 'info'
|
|
|
|
|
}, {
|
|
|
|
|
id: 1,
|
|
|
|
|
value: '未完成',
|
|
|
|
|
value: '办理中',
|
|
|
|
|
type: ''
|
|
|
|
|
}, {
|
|
|
|
|
id: 5,
|
|
|
|
|
@ -344,7 +419,7 @@
|
|
|
|
|
type: 'success'
|
|
|
|
|
}, {
|
|
|
|
|
id: 3,
|
|
|
|
|
value: '待归档',
|
|
|
|
|
value: '已完成',
|
|
|
|
|
type: 'danger'
|
|
|
|
|
}],
|
|
|
|
|
unitTypeList: [],
|
|
|
|
|
@ -487,7 +562,7 @@
|
|
|
|
|
this.select.pid = ''
|
|
|
|
|
// this.treeProps = {children: 'mychildren', hasChildren: 'hasChildren' }
|
|
|
|
|
// }
|
|
|
|
|
this.type_name = '我的任务'
|
|
|
|
|
this.type_name = '我的待办任务'
|
|
|
|
|
this.path_type = path[1]
|
|
|
|
|
this.select.month = ''
|
|
|
|
|
this.table.splice(this.table.length-1,1)
|
|
|
|
|
|