|
|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
<template> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="5"> |
|
|
|
|
<!-- <el-col :span="5"> |
|
|
|
|
<div class="box"> |
|
|
|
|
<el-scrollbar> |
|
|
|
|
<basic-container> |
|
|
|
|
@ -8,8 +8,8 @@ |
|
|
|
|
</basic-container> |
|
|
|
|
</el-scrollbar> |
|
|
|
|
</div> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="19"> |
|
|
|
|
</el-col> --> |
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<basic-container> |
|
|
|
|
<avue-crud :option="option" :search.sync="search" :table-loading="loading" :data="data" ref="crud" |
|
|
|
|
v-model="form" :permission="permissionList" @row-del="rowDel" @row-update="rowUpdate" @row-save="rowSave" |
|
|
|
|
@ -78,16 +78,16 @@ import { |
|
|
|
|
grant, |
|
|
|
|
resetPassword, unlock |
|
|
|
|
} from "@/api/system/user"; |
|
|
|
|
import { exportBlob } from "@/api/common"; |
|
|
|
|
// import { exportBlob } from "@/api/common"; |
|
|
|
|
import { getDeptTree, getDeptLazyTree } from "@/api/system/dept"; |
|
|
|
|
import { getRoleTree } from "@/api/system/role"; |
|
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
|
import website from '@/config/website'; |
|
|
|
|
import { getToken } from '@/util/auth'; |
|
|
|
|
import { dateNow } from "@/util/date"; |
|
|
|
|
import NProgress from 'nprogress'; |
|
|
|
|
// import { getToken } from '@/util/auth'; |
|
|
|
|
// import { dateNow } from "@/util/date"; |
|
|
|
|
// import NProgress from 'nprogress'; |
|
|
|
|
import 'nprogress/nprogress.css'; |
|
|
|
|
import func from "@/util/func"; |
|
|
|
|
// import func from "@/util/func"; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
@ -169,6 +169,22 @@ export default { |
|
|
|
|
dialogType: 'drawer', |
|
|
|
|
dialogClickModal: false, |
|
|
|
|
column: [ |
|
|
|
|
{ |
|
|
|
|
label: '机构名称', |
|
|
|
|
prop: 'treeDeptId', |
|
|
|
|
type: 'select', |
|
|
|
|
hide: true, |
|
|
|
|
viewDisplay: false, |
|
|
|
|
editDisplay: false, |
|
|
|
|
addDisplay: false, |
|
|
|
|
props: { |
|
|
|
|
label: 'title', |
|
|
|
|
value: 'value' |
|
|
|
|
}, |
|
|
|
|
slot: true, |
|
|
|
|
dicData: [], |
|
|
|
|
search: true |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "机构名称", |
|
|
|
|
prop: "deptName", |
|
|
|
|
@ -506,7 +522,9 @@ export default { |
|
|
|
|
}); |
|
|
|
|
getDeptTree(tenantId).then(res => { |
|
|
|
|
const column = this.findObject(this.option.column, "deptId"); |
|
|
|
|
const columnSearch = this.findObject(this.option.column, "treeDeptId");//搜索机构列表下来选项使用 |
|
|
|
|
column.dicData = res.data.data; |
|
|
|
|
columnSearch.dicData = res.data.data; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
submitRole() { |
|
|
|
|
@ -695,7 +713,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
onLoad(page, params = {}) { |
|
|
|
|
this.loading = true; |
|
|
|
|
getList(page.currentPage, page.pageSize, Object.assign(params, this.query), this.treeDeptId).then(res => { |
|
|
|
|
getList(page.currentPage, page.pageSize, Object.assign(params, this.query), this.query.treeDeptId).then(res => { |
|
|
|
|
const data = res.data.data; |
|
|
|
|
this.page.total = data.total; |
|
|
|
|
this.data = data.records; |
|
|
|
|
|