From f6eca9013ca15cd5419a8ddb4f06e5caed8324a3 Mon Sep 17 00:00:00 2001 From: guoyue Date: Mon, 24 Oct 2022 14:29:56 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=90=8E=E5=8F=B0-=E6=9D=83?= =?UTF-8?q?=E9=99=90=E7=AE=A1=E7=90=86-=E7=94=A8=E6=88=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86--=E5=A4=96=E9=9D=A2=E7=9A=84=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=A1=86=E7=82=B9=E9=87=8D=E7=BD=AE=E5=90=8E=EF=BC=8C=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=A1=86=E5=86=85=E5=86=85=E5=AE=B9=E8=BF=98=E5=AD=98?= =?UTF-8?q?=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/views/modules/sys/user.vue | 246 ++++++++-------------------- 1 file changed, 66 insertions(+), 180 deletions(-) diff --git a/back/src/views/modules/sys/user.vue b/back/src/views/modules/sys/user.vue index 5fbacc01..c77ab078 100644 --- a/back/src/views/modules/sys/user.vue +++ b/back/src/views/modules/sys/user.vue @@ -1,209 +1,92 @@ @@ -214,7 +97,7 @@ import AddOrUpdate from './user-add-or-update' import qs from 'qs' export default { mixins: [mixinViewModule], - data () { + data() { return { mixinViewModuleOptions: { getDataListURL: '/sys/user/page', @@ -235,30 +118,33 @@ export default { components: { AddOrUpdate }, - created () { + created() { this.getPostList() }, methods: { - reset () { + reset() { + this.dataForm.username = '' + this.dataForm.real_name = '' + this.dataForm.deptId = '' + this.dataForm.postId = '' + this.dataForm.gender = '' + if (this.$refs.renDeptTree) { + this.$refs.renDeptTree.showDeptName = ''; + } this.$http .get( this.mixinViewModuleOptions.getDataListURL + - '?' + - qs.stringify({ - page: 1, - limit: 10, - username: '', - deptId: '', - postId: '', - gender: '' - }) + '?' + + qs.stringify({ + page: 1, + limit: 10, + username: '', + deptId: '', + postId: '', + gender: '' + }) ) .then(({ data: res }) => { - this.dataForm.username = '' - this.dataForm.real_name = '' - this.dataForm.deptId = '' - this.dataForm.postId = '' - this.dataForm.gender = '' if (res.code !== 0) { this.dataList = [] this.total = 0 @@ -279,7 +165,7 @@ export default { this.dataListLoading = false }) }, - getPostList () { + getPostList() { this.$http .get('/sys/post/list') .then(({ data: res }) => { @@ -288,7 +174,7 @@ export default { } this.postList = res.data }) - .catch(() => {}) + .catch(() => { }) } } }