|
|
|
|
@ -49,13 +49,13 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="tablewrap">
|
|
|
|
|
<div class="tablemonth" v-if="showSelectMonth">
|
|
|
|
|
<!-- <div class="tablemonth" v-if="showSelectMonth">
|
|
|
|
|
<el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox>
|
|
|
|
|
<div style="margin: 15px 0;"></div>
|
|
|
|
|
<el-checkbox-group v-model="selectMonth" @change="changeMonth">
|
|
|
|
|
<el-checkbox v-for="item in allMonths" :label="item.id">{{item.value}}</el-checkbox>
|
|
|
|
|
</el-checkbox-group>
|
|
|
|
|
</div>
|
|
|
|
|
</div> -->
|
|
|
|
|
|
|
|
|
|
<div class="tablecontent" :style="{'width':showSelectMonth?'89%':'100%'}">
|
|
|
|
|
<div>
|
|
|
|
|
@ -99,66 +99,50 @@
|
|
|
|
|
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
|
|
|
|
|
">
|
|
|
|
|
<Dropdown trigger="click" v-if="!(scope.row.audit_status==3||scope.row.audit_status==5)">
|
|
|
|
|
<Button style="margin-right:5px;margin-bottom:5px;" type="primary" size="small">
|
|
|
|
|
执行任务
|
|
|
|
|
<!-- <Icon type="ios-arrow-down"></Icon> -->
|
|
|
|
|
</Button>
|
|
|
|
|
<template #list>
|
|
|
|
|
<DropdownMenu>
|
|
|
|
|
<DropdownItem>
|
|
|
|
|
<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>
|
|
|
|
|
</DropdownItem>
|
|
|
|
|
<DropdownItem>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="margin-bottom:5px;">
|
|
|
|
|
<Button type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'pid')">任务分解</Button>
|
|
|
|
|
</DropdownItem>
|
|
|
|
|
<DropdownItem>
|
|
|
|
|
</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>
|
|
|
|
|
</DropdownItem>
|
|
|
|
|
</DropdownMenu>
|
|
|
|
|
</template>
|
|
|
|
|
</Dropdown>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<Button style="margin-right:5px;margin-bottom:5px;" type="primary" size="small">
|
|
|
|
|
执行任务
|
|
|
|
|
</Button>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 小组的带头人 和小组组长 -->
|
|
|
|
|
<div v-else-if="(scope.row.groups && scope.row.groups.length>0 )
|
|
|
|
|
|| 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)">
|
|
|
|
|
<Button style="margin-right:5px;margin-bottom:5px;" type="primary" size="small">
|
|
|
|
|
执行任务
|
|
|
|
|
<!-- <Icon type="ios-arrow-down"></Icon> -->
|
|
|
|
|
</Button>
|
|
|
|
|
<template #list>
|
|
|
|
|
<DropdownMenu>
|
|
|
|
|
<DropdownItem>
|
|
|
|
|
<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>
|
|
|
|
|
</DropdownItem>
|
|
|
|
|
<DropdownItem>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="margin-bottom:5px;">
|
|
|
|
|
<Button type="primary" size="small"
|
|
|
|
|
@click="editorUnit(scope.row.id,'pid')">任务分解</Button>
|
|
|
|
|
</DropdownItem>
|
|
|
|
|
<DropdownItem>
|
|
|
|
|
</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>
|
|
|
|
|
</DropdownItem>
|
|
|
|
|
</DropdownMenu>
|
|
|
|
|
</template>
|
|
|
|
|
</Dropdown>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<Button style="margin-right:5px;margin-bottom:5px;" type="primary" size="small">
|
|
|
|
|
执行任务
|
|
|
|
|
</Button>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
|
|
|
|
<!-- 组里面所有人都能执行任务 -->
|
|
|
|
|
<div v-else>
|
|
|
|
|
@ -168,8 +152,6 @@
|
|
|
|
|
@click="openMyMission(item.value,scope.row)">执行任务</Button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 直接 执行任务 -->
|
|
|
|
|
<div v-else>
|
|
|
|
|
@ -464,8 +446,8 @@
|
|
|
|
|
let currentMonth = (new Date()).getMonth() + 1 < 10 ? "0" + ((new Date()).getMonth() + 1) : (new Date())
|
|
|
|
|
.getMonth() + 1
|
|
|
|
|
// this.selectMonth.push(currentMonth)
|
|
|
|
|
this.selectMonth.push(currentMonth)
|
|
|
|
|
this.select.month = currentMonth
|
|
|
|
|
// this.selectMonth.push(currentMonth)
|
|
|
|
|
// this.select.month = currentMonth
|
|
|
|
|
if (this.$route.path) {
|
|
|
|
|
let path = this.$route.path.split("_")
|
|
|
|
|
this.select.type = path[1]
|
|
|
|
|
@ -489,10 +471,10 @@
|
|
|
|
|
}
|
|
|
|
|
if (path[1] == 4) {
|
|
|
|
|
this.selectMonth = []
|
|
|
|
|
this.allMonths.map(item=>{
|
|
|
|
|
this.selectMonth.push(item.id)
|
|
|
|
|
})
|
|
|
|
|
this.select.month = this.selectMonth.join(',')
|
|
|
|
|
// this.allMonths.map(item=>{
|
|
|
|
|
// this.selectMonth.push(item.id)
|
|
|
|
|
// })
|
|
|
|
|
// this.select.month = this.selectMonth.join(',')
|
|
|
|
|
this.select.type = 4
|
|
|
|
|
this.type_name = '专项专题任务'
|
|
|
|
|
this.path_type = path[1]
|
|
|
|
|
@ -505,7 +487,7 @@
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (path[1] == 1) {
|
|
|
|
|
this.showSelectMonth = true
|
|
|
|
|
this.showSelectMonth = false
|
|
|
|
|
this.select.type = 1
|
|
|
|
|
// this.select.pid = ''
|
|
|
|
|
// this.treeProps = {children: 'nochildren', hasChildren: 'hasChildren' }
|
|
|
|
|
|