|
|
|
@ -1,6 +1,7 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<basic-container> |
|
|
|
<basic-container> |
|
|
|
<avue-crud :option="option" |
|
|
|
<avue-crud :option="option" |
|
|
|
|
|
|
|
:table-loading="loading" |
|
|
|
:data="data" |
|
|
|
:data="data" |
|
|
|
ref="crud" |
|
|
|
ref="crud" |
|
|
|
v-model="form" |
|
|
|
v-model="form" |
|
|
|
@ -80,6 +81,7 @@ |
|
|
|
form: {}, |
|
|
|
form: {}, |
|
|
|
selectionList: [], |
|
|
|
selectionList: [], |
|
|
|
query: {}, |
|
|
|
query: {}, |
|
|
|
|
|
|
|
loading: true, |
|
|
|
page: { |
|
|
|
page: { |
|
|
|
pageSize: 10, |
|
|
|
pageSize: 10, |
|
|
|
currentPage: 1, |
|
|
|
currentPage: 1, |
|
|
|
@ -406,10 +408,12 @@ |
|
|
|
this.page.pageSize = pageSize; |
|
|
|
this.page.pageSize = pageSize; |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(page, params = {}) { |
|
|
|
onLoad(page, params = {}) { |
|
|
|
|
|
|
|
this.loading = true; |
|
|
|
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
|
|
|
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
|
|
|
const data = res.data.data; |
|
|
|
const data = res.data.data; |
|
|
|
this.page.total = data.total; |
|
|
|
this.page.total = data.total; |
|
|
|
this.data = data.records; |
|
|
|
this.data = data.records; |
|
|
|
|
|
|
|
this.loading = false; |
|
|
|
}); |
|
|
|
}); |
|
|
|
getDeptTree(this.form.tenantId).then(res => { |
|
|
|
getDeptTree(this.form.tenantId).then(res => { |
|
|
|
const index = this.$refs.crud.findColumnIndex("deptId"); |
|
|
|
const index = this.$refs.crud.findColumnIndex("deptId"); |
|
|
|
|