| | |
| | | { |
| | | label: "部门", |
| | | prop: "deptName", |
| | | type: "input", |
| | | search: true |
| | | type: "tree", |
| | | search: true, |
| | | dicUrl: `/blade-system/dept/tree?tenantId=${this.website.tenantId}`, |
| | | dicFormatter: (res) => { |
| | | this.selectGroup.depts = res.data |
| | | return res.data |
| | | }, |
| | | props: { |
| | | label: 'title', |
| | | values: 'id' |
| | | } |
| | | }, |
| | | { |
| | | label: "职务", |
| | | prop: "postName", |
| | | type: "input", |
| | | search: true |
| | | type: "select", |
| | | search: true, |
| | | dicUrl: `/blade-system/post/select?tenantId=${this.website.tenantId}`, |
| | | dicFormatter: (res) => { |
| | | this.selectGroup.posts = res.data |
| | | return res.data |
| | | }, |
| | | props: { |
| | | label: 'postName', |
| | | value: 'id' |
| | | } |
| | | }, |
| | | { |
| | | label: "人员类型", |
| | |
| | | currentPage: 1, |
| | | total: 0, |
| | | }, |
| | | selectGroup: { |
| | | depts: [], |
| | | posts: [] |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | changeIs(is) { |
| | | this.isWeight = is |
| | | }, |
| | | searchChange() { }, |
| | | searchChange(params, done) { |
| | | params.deptId = params.deptName || '' |
| | | params.postId = params.postName || '' |
| | | delete params.deptName |
| | | delete params.postName |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | searchReset() { }, |
| | | currentChange() { }, |
| | | sizeChange() { }, |
| | |
| | | const { |
| | | } = this.query; |
| | | let values = { |
| | | ...this.query, |
| | | ...params |
| | | }; |
| | | |
| | | getList(page.currentPage, page.pageSize, values).then(res => { |