|
|
|
|
@ -88,57 +88,104 @@
|
|
|
|
|
<Button style='margin-right:5px;margin-bottom:5px;' size="small"
|
|
|
|
|
@click="backPlan(scope.row)">归档</Button>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
<!-- 我的任务 -->
|
|
|
|
|
<template v-else>
|
|
|
|
|
|
|
|
|
|
<!-- 任务是发给部门的,只有指定部门科长能看见,需要再次分发人员 -->
|
|
|
|
|
<!-- 任务发给部门的科长,责任人,都能进行创建任务,派发任务,执行任务的操作 -->
|
|
|
|
|
<!-- 任务发给部门的科长,责任人,都能进行任务分解,任务转办,执行任务的操作 -->
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
v-if="(scope.row.accept_department_ids && scope.row.accept_department_ids.length>0 && stateObj.is_manger
|
|
|
|
|
&& !(scope.row.audit_status==3||scope.row.audit_status==5)) || scope.row.main_admin_id==stateObj.login_id
|
|
|
|
|
">
|
|
|
|
|
<Button style="margin-right:5px;margin-bottom:5px;" type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'send')">派发任务</Button>
|
|
|
|
|
<Button style="margin-right:5px;margin-bottom:5px;" type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'pid')">创建任务</Button>
|
|
|
|
|
<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>
|
|
|
|
|
">
|
|
|
|
|
<Dropdown trigger="click">
|
|
|
|
|
<Button style="margin-right:5px;margin-bottom:5px;" type="primary" size="small">
|
|
|
|
|
执行任务
|
|
|
|
|
<!-- <Icon type="ios-arrow-down"></Icon> -->
|
|
|
|
|
</Button>
|
|
|
|
|
<template #list>
|
|
|
|
|
<DropdownMenu>
|
|
|
|
|
<DropdownItem>
|
|
|
|
|
<Button type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'send')">任务转办</Button>
|
|
|
|
|
</DropdownItem>
|
|
|
|
|
<DropdownItem>
|
|
|
|
|
<Button type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'pid')">任务分解</Button>
|
|
|
|
|
</DropdownItem>
|
|
|
|
|
<DropdownItem>
|
|
|
|
|
<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>
|
|
|
|
|
</DropdownItem>
|
|
|
|
|
</DropdownMenu>
|
|
|
|
|
</template>
|
|
|
|
|
</Dropdown>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 小组的带头人 和小组组长 -->
|
|
|
|
|
<div v-else-if="(scope.row.groups && scope.row.groups.length>0 && !(scope.row.audit_status==3||scope.row.audit_status==5))
|
|
|
|
|
|| scope.row.main_admin_id==stateObj.login_id">
|
|
|
|
|
<!-- 组长权限 -->
|
|
|
|
|
<div v-for="item in scope.row.grounp_admin_detail">
|
|
|
|
|
<div v-if="item.admin.id===stateObj.login_id">
|
|
|
|
|
<Button style="margin-right:5px;margin-bottom:5px;" type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'send')">派发任务</Button>
|
|
|
|
|
<Button style="margin-right:5px;margin-bottom:5px;" type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'pid')">创建任务</Button>
|
|
|
|
|
<Dropdown trigger="click" v-if="scope.row.grounp_admin_detail.includes(stateObj.login_id)">
|
|
|
|
|
<Button style="margin-right:5px;margin-bottom:5px;" type="primary" size="small">
|
|
|
|
|
执行任务
|
|
|
|
|
<!-- <Icon type="ios-arrow-down"></Icon> -->
|
|
|
|
|
</Button>
|
|
|
|
|
<template #list>
|
|
|
|
|
<DropdownMenu>
|
|
|
|
|
<DropdownItem>
|
|
|
|
|
<Button type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'send')">任务转办</Button>
|
|
|
|
|
</DropdownItem>
|
|
|
|
|
<DropdownItem>
|
|
|
|
|
<Button type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'pid')">任务分解</Button>
|
|
|
|
|
</DropdownItem>
|
|
|
|
|
<DropdownItem>
|
|
|
|
|
<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>
|
|
|
|
|
</DropdownItem>
|
|
|
|
|
</DropdownMenu>
|
|
|
|
|
</template>
|
|
|
|
|
</Dropdown>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</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 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>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</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"
|
|
|
|
|
<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)">执行任务</Button>
|
|
|
|
|
</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"
|
|
|
|
|
@click="checkUnits(scope.row.id,'show')">查看任务</Button>
|
|
|
|
|
</div>
|
|
|
|
|
|