|
|
|
|
@ -6,6 +6,20 @@
|
|
|
|
|
<vxe-toolbar ref="toolbar" custom print export>
|
|
|
|
|
<template #buttons>
|
|
|
|
|
<div class="selects">
|
|
|
|
|
<el-select
|
|
|
|
|
v-if="$route.params.type === 'all'"
|
|
|
|
|
style="width: 100px"
|
|
|
|
|
size="small"
|
|
|
|
|
v-model="select.department_id"
|
|
|
|
|
placeholder="部门..."
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in departments"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-select
|
|
|
|
|
style="width: 180px"
|
|
|
|
|
filterable
|
|
|
|
|
@ -372,6 +386,7 @@ import moment from "moment/moment";
|
|
|
|
|
import ListPopover from "./components/ListPopover.vue";
|
|
|
|
|
import MultiDeal from "./components/MultiDeal.vue"
|
|
|
|
|
import share from "./components/share.vue";
|
|
|
|
|
import {index as departmentIndex} from "@/api/department";
|
|
|
|
|
export default {
|
|
|
|
|
name: "flowList",
|
|
|
|
|
components: {
|
|
|
|
|
@ -489,11 +504,23 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
departments: [],
|
|
|
|
|
isShowShare: false,
|
|
|
|
|
pickedFlow: {},
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
async getDepartments() {
|
|
|
|
|
try {
|
|
|
|
|
this.departments = await departmentIndex({
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 9999
|
|
|
|
|
})
|
|
|
|
|
} catch (err) {
|
|
|
|
|
console.error(err)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
contextMenuClickEvent({ menu, row, column }) {
|
|
|
|
|
switch (menu.code) {
|
|
|
|
|
case 'edit':
|
|
|
|
|
@ -676,6 +703,7 @@ export default {
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getDepartments();
|
|
|
|
|
this.getTodoTotal();
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
|