首页我的任务

master
lion 1 year ago
parent 5da64f0259
commit 517385eab3

@ -52,85 +52,57 @@
<template v-slot:btns> <template v-slot:btns>
<el-table-column align='center' label="操作" width="100" header-align="center"> <el-table-column align='center' label="操作" width="100" header-align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <div v-for="item in unitTypeList">
<Button v-if="scope.row.unit_type==item.id" type="primary" size="small"
style="margin-right:5px;margin-bottom:5px;"
@click="openMyMission(item.value,scope.row)">{{item.remark}}</Button>
</div> -->
<!-- <div>
<Button style='margin-right:5px;margin-bottom:5px;' type="primary" size="small"
@click="checkUnits(scope.row.id,'show',5)">查看任务</Button>
</div> -->
<!-- 任务是发给部门的只有指定部门科长能看见需要再次分发人员 --> <!-- 任务是发给部门的只有指定部门科长能看见需要再次分发人员 -->
<!-- 任务发给部门的科长责任人都能进行任务分解任务转办执行任务的操作 --> <!-- 任务发给部门的科长责任人都能进行任务分解任务转办执行任务的操作 -->
<div <div
v-if="(scope.row.accept_department_ids && scope.row.accept_department_ids.length>0 && stateObj.is_manger v-if="(scope.row.accept_department_ids && scope.row.accept_department_ids.length>0 && stateObj.is_manger
) || scope.row.main_admin_id==stateObj.login_id ) || scope.row.main_admin_id==stateObj.login_id
"> ">
<Dropdown trigger="click" v-if="!(scope.row.audit_status==3||scope.row.audit_status==5)"> <el-tooltip placement="left" effect="light" v-if="!(scope.row.audit_status==3||scope.row.audit_status==5)">
<Button style="margin-right:5px;margin-bottom:5px;" type="primary" size="small"> <div slot="content">
执行任务 <div style="margin-bottom:5px;">
<!-- <Icon type="ios-arrow-down"></Icon> --> <Button type="primary" size="small"
</Button> @click="editorUnit(scope.row.id,'send')">任务转办</Button>
<template #list> </div>
<DropdownMenu> <div style="margin-bottom:5px;">
<DropdownItem> <Button type="primary" size="small"
<Button type="primary" size="small" @click="editorUnit(scope.row.id,'pid')">任务分解</Button>
@click="editorUnit(scope.row.id,'send')">任务转办</Button> </div>
</DropdownItem> <div v-for="item in unitTypeList">
<DropdownItem> <Button v-if="scope.row.unit_type==item.id&&scope.row.audit_status==1" type="primary" size="small"
<Button type="primary" size="small" @click="openMyMission(item.value,scope.row)">任务执行</Button>
@click="editorUnit(scope.row.id,'pid')">任务分解</Button> </div>
</DropdownItem> </div>
<DropdownItem> <Button style="margin-right:5px;margin-bottom:5px;" type="primary" size="small">
<div v-for="item in unitTypeList"> 执行任务
<Button v-if="scope.row.unit_type==item.id&&scope.row.audit_status==1" type="primary" size="small" </Button>
</el-tooltip>
@click="openMyMission(item.value,scope.row)">任务执行</Button>
</div>
</DropdownItem>
</DropdownMenu>
</template>
</Dropdown>
</div> </div>
<!-- 小组的带头人 和小组组长 --> <!-- 小组的带头人 -->
<div v-else-if="(scope.row.groups && scope.row.groups.length>0 ) <div v-else-if="(scope.row.groups && scope.row.groups.length>0 )
|| scope.row.main_admin_id==stateObj.login_id"> || scope.row.main_admin_id==stateObj.login_id">
<!-- 组长权限 --> <!-- 组长权限 -->
<Dropdown trigger="click" v-if="scope.row.grounp_admin_detail.includes(stateObj.login_id) && !(scope.row.audit_status==3||scope.row.audit_status==5)"> <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)">
<Button style="margin-right:5px;margin-bottom:5px;" type="primary" size="small"> <div slot="content">
执行任务 <div style="margin-bottom:5px;">
<!-- <Icon type="ios-arrow-down"></Icon> --> <Button type="primary" size="small"
</Button> @click="editorUnit(scope.row.id,'send')">任务转办</Button>
<template #list> </div>
<DropdownMenu> <div style="margin-bottom:5px;">
<DropdownItem> <Button type="primary" size="small"
<Button type="primary" size="small" @click="editorUnit(scope.row.id,'pid')">任务分解</Button>
@click="editorUnit(scope.row.id,'send')">任务转办</Button> </div>
</DropdownItem> <div v-for="item in unitTypeList">
<DropdownItem> <Button v-if="scope.row.unit_type==item.id&&scope.row.audit_status==1" type="primary" size="small"
<Button type="primary" size="small" @click="openMyMission(item.value,scope.row)">任务执行</Button>
@click="editorUnit(scope.row.id,'pid')">任务分解</Button> </div>
</DropdownItem> </div>
<DropdownItem> <Button style="margin-right:5px;margin-bottom:5px;" type="primary" size="small">
<div v-for="item in unitTypeList"> 执行任务
<Button v-if="scope.row.unit_type==item.id&&scope.row.audit_status==1" type="primary" size="small" </Button>
</el-tooltip>
@click="openMyMission(item.value,scope.row)">任务执行</Button> <!-- 除组长外 组里面所有人都能执行任务 -->
</div>
</DropdownItem>
</DropdownMenu>
</template>
</Dropdown>
<!-- 组里面所有人都能执行任务 -->
<div v-else> <div v-else>
<div v-for="item in unitTypeList"> <div v-for="item in unitTypeList">
<Button v-if="scope.row.unit_type==item.id&&scope.row.audit_status==1" type="primary" size="small" <Button v-if="scope.row.unit_type==item.id&&scope.row.audit_status==1" type="primary" size="small"
@ -138,8 +110,24 @@
@click="openMyMission(item.value,scope.row)">执行任务</Button> @click="openMyMission(item.value,scope.row)">执行任务</Button>
</div> </div>
</div> </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>
</div>
<Button style="margin-right:5px;margin-bottom:5px;" type="primary" size="small">
执行任务
</Button>
</el-tooltip>
</div> </div>
<!-- 直接 执行任务 --> <!-- 直接 执行任务 -->
<div v-else> <div v-else>
@ -149,17 +137,10 @@
@click="openMyMission(item.value,scope.row)">执行任务</Button> @click="openMyMission(item.value,scope.row)">执行任务</Button>
</div> </div>
</div> </div>
<div> <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"
style="margin-right:5px;margin-bottom:5px;"
@click="openMyMission(item.value,scope.row)">执行任务</Button>
</div> -->
<Button style='margin-right:5px;margin-bottom:5px;' type="primary" size="small" <Button style='margin-right:5px;margin-bottom:5px;' type="primary" size="small"
@click="checkUnits(scope.row.id,'show')">查看任务</Button> @click="checkUnits(scope.row.id,'show')">查看任务</Button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
@ -493,7 +474,11 @@ export default {
width: 120, width: 120,
align: 'center', align: 'center',
customFn: (row) => { customFn: (row) => {
return ( <div> { return ( <div> {
//
row.do_admin_ids.length>0 && !row.do_admin_ids.includes(this.stateObj.login_id) && !(row.audit_status==3||row.audit_status==5)?
<el-tag type ='info'>已转办</el-tag>
:
this.auditStatusList.map(item => { this.auditStatusList.map(item => {
if (item.id == row.audit_status) { if (item.id == row.audit_status) {
return ( <el-tag type = { return ( <el-tag type = {

Loading…
Cancel
Save