diff --git a/src/views/modules/group/topic-list.vue b/src/views/modules/group/topic-list.vue index 9dc25349..90d7f44e 100644 --- a/src/views/modules/group/topic-list.vue +++ b/src/views/modules/group/topic-list.vue @@ -149,14 +149,22 @@ export default { }, watch: { 'ids': function (val) { - if (val.length === 1){ + if (val.length === 0) { + this.dataForm.streetId = '' + this.dataForm.communityId = '' + this.dataForm.gridId = '' + } + if (val.length === 1) { this.dataForm.streetId = this.ids[0] + this.dataForm.communityId = '' + this.dataForm.gridId = '' } - if (val.length === 2){ + if (val.length === 2) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] + this.dataForm.gridId = '' } - if (val.length === 3){ + if (val.length === 3) { this.dataForm.streetId = this.ids[0] this.dataForm.communityId = this.ids[1] this.dataForm.gridId = this.ids[2] diff --git a/src/views/modules/sys/deptmacode.vue b/src/views/modules/sys/deptmacode.vue index e71bbe17..d4ce31b1 100644 --- a/src/views/modules/sys/deptmacode.vue +++ b/src/views/modules/sys/deptmacode.vue @@ -196,12 +196,20 @@ export default { }, watch: { 'deptIdList': function (val) { + if (val.length === 0) { + this.dataForm.streetId = '' + this.dataForm.communityId = '' + this.dataForm.gridId = '' + } if (val.length === 1) { this.dataForm.streetId = this.deptIdList[0] + this.dataForm.communityId = '' + this.dataForm.gridId = '' } if (val.length === 2) { this.dataForm.streetId = this.deptIdList[0] this.dataForm.communityId = this.deptIdList[1] + this.dataForm.gridId = '' } if (val.length === 3) { this.dataForm.streetId = this.deptIdList[0] diff --git a/src/views/modules/user/fail-authentication.vue b/src/views/modules/user/fail-authentication.vue index 9751e2eb..ccfc515c 100644 --- a/src/views/modules/user/fail-authentication.vue +++ b/src/views/modules/user/fail-authentication.vue @@ -4,7 +4,7 @@ @@ -67,7 +67,7 @@ export default { data () { return { mixinViewModuleOptions: { - getDataListURL: 'app-user/user/query', + getDataListURL: 'app-user/user/page', getDataListIsPage: true, deleteURL: '/app-use/user', deleteIsBatch: true, @@ -84,11 +84,9 @@ export default { startTime: '', endTime: '', partyFlag: '', - state: '2', - page: 1, - limit: 10, - deptIdList: [] + state: '2' }, + deptIdList: [], options: [], userDetailVisible: false, streetOptions: [], @@ -112,6 +110,30 @@ export default { }) .catch(() => {}) }, + watch: { + 'deptIdList': function (val) { + if (val.length === 0) { + this.dataForm.streetId = '' + this.dataForm.communityId = '' + this.dataForm.gridId = '' + } + if (val.length === 1) { + this.dataForm.streetId = this.deptIdList[0] + this.dataForm.communityId = '' + this.dataForm.gridId = '' + } + if (val.length === 2) { + this.dataForm.streetId = this.deptIdList[0] + this.dataForm.communityId = this.deptIdList[1] + this.dataForm.gridId = '' + } + if (val.length === 3) { + this.dataForm.streetId = this.deptIdList[0] + this.dataForm.communityId = this.deptIdList[1] + this.dataForm.gridId = this.deptIdList[2] + } + } + }, methods: { getStreetList () { this.$http.get(`/sys/dept/sublist/` + (localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street'))).then(({ data: res }) => { @@ -171,10 +193,17 @@ export default { this.dataForm.endTime = '' } this.dataListLoading = true - this.dataForm.page = this.mixinViewModuleOptions.getDataListIsPage ? this.page : null - this.dataForm.limit = this.mixinViewModuleOptions.getDataListIsPage ? this.limit : null - this.$http.post( - this.mixinViewModuleOptions.getDataListURL, this.dataForm + this.$http.get( + this.mixinViewModuleOptions.getDataListURL, + { + params: { + order: this.order, + orderField: this.orderField, + page: this.mixinViewModuleOptions.getDataListIsPage ? this.page : null, + limit: this.mixinViewModuleOptions.getDataListIsPage ? this.limit : null, + ...this.dataForm + } + } ).then(({ data: res }) => { this.dataListLoading = false if (res.code !== 0) { diff --git a/src/views/modules/user/pass-authentication.vue b/src/views/modules/user/pass-authentication.vue index 5e26a1d4..ab82b20b 100644 --- a/src/views/modules/user/pass-authentication.vue +++ b/src/views/modules/user/pass-authentication.vue @@ -4,7 +4,7 @@ @@ -76,7 +76,7 @@ export default { data () { return { mixinViewModuleOptions: { - getDataListURL: 'app-user/user/query', + getDataListURL: 'app-user/user/page', getDataListIsPage: true, deleteURL: '/app-use/user', deleteIsBatch: true, @@ -93,11 +93,9 @@ export default { startTime: '', endTime: '', partyFlag: '', - state: '3', - page: 1, - limit: 10, - deptIdList: [] + state: '3' }, + deptIdList: [], options: [], userDetailVisible: false, userGridVisible: false, @@ -122,6 +120,30 @@ export default { }) .catch(() => {}) }, + watch: { + 'deptIdList': function (val) { + if (val.length === 0) { + this.dataForm.streetId = '' + this.dataForm.communityId = '' + this.dataForm.gridId = '' + } + if (val.length === 1) { + this.dataForm.streetId = this.deptIdList[0] + this.dataForm.communityId = '' + this.dataForm.gridId = '' + } + if (val.length === 2) { + this.dataForm.streetId = this.deptIdList[0] + this.dataForm.communityId = this.deptIdList[1] + this.dataForm.gridId = '' + } + if (val.length === 3) { + this.dataForm.streetId = this.deptIdList[0] + this.dataForm.communityId = this.deptIdList[1] + this.dataForm.gridId = this.deptIdList[2] + } + } + }, methods: { getStreetList () { this.$http.get(`/sys/dept/sublist/` + (localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street'))).then(({ data: res }) => { @@ -181,10 +203,17 @@ export default { this.dataForm.endTime = '' } this.dataListLoading = true - this.dataForm.page = this.mixinViewModuleOptions.getDataListIsPage ? this.page : null - this.dataForm.limit = this.mixinViewModuleOptions.getDataListIsPage ? this.limit : null - this.$http.post( - this.mixinViewModuleOptions.getDataListURL, this.dataForm + this.$http.get( + this.mixinViewModuleOptions.getDataListURL, + { + params: { + order: this.order, + orderField: this.orderField, + page: this.mixinViewModuleOptions.getDataListIsPage ? this.page : null, + limit: this.mixinViewModuleOptions.getDataListIsPage ? this.limit : null, + ...this.dataForm + } + } ).then(({ data: res }) => { this.dataListLoading = false if (res.code !== 0) { diff --git a/src/views/modules/user/unauthorized.vue b/src/views/modules/user/unauthorized.vue index b94596f3..31a5a7f7 100644 --- a/src/views/modules/user/unauthorized.vue +++ b/src/views/modules/user/unauthorized.vue @@ -4,7 +4,7 @@ @@ -67,7 +67,7 @@ export default { data () { return { mixinViewModuleOptions: { - getDataListURL: 'app-user/user/query', + getDataListURL: 'app-user/user/page', getDataListIsPage: true, deleteURL: '/app-use/user', deleteIsBatch: true, @@ -84,11 +84,9 @@ export default { startTime: '', endTime: '', partyFlag: '', - state: '0', - page: 1, - limit: 10, - deptIdList: [] + state: '0' }, + deptIdList: [], options: [], userDetailVisible: false, streetOptions: [], @@ -112,6 +110,30 @@ export default { }) .catch(() => {}) }, + watch: { + 'deptIdList': function (val) { + if (val.length === 0) { + this.dataForm.streetId = '' + this.dataForm.communityId = '' + this.dataForm.gridId = '' + } + if (val.length === 1) { + this.dataForm.streetId = this.deptIdList[0] + this.dataForm.communityId = '' + this.dataForm.gridId = '' + } + if (val.length === 2) { + this.dataForm.streetId = this.deptIdList[0] + this.dataForm.communityId = this.deptIdList[1] + this.dataForm.gridId = '' + } + if (val.length === 3) { + this.dataForm.streetId = this.deptIdList[0] + this.dataForm.communityId = this.deptIdList[1] + this.dataForm.gridId = this.deptIdList[2] + } + } + }, methods: { getStreetList () { this.$http.get(`/sys/dept/sublist/` + (localStorage.getItem('street') === null ? '1169154711480528897' : localStorage.getItem('street'))).then(({ data: res }) => { @@ -171,11 +193,17 @@ export default { this.dataForm.endTime = '' } this.dataListLoading = true - this.dataForm.page = this.mixinViewModuleOptions.getDataListIsPage ? this.page : null - this.dataForm.limit = this.mixinViewModuleOptions.getDataListIsPage ? this.limit : null - this.$http.post( - this.mixinViewModuleOptions.getDataListURL, this.dataForm - ).then(({ data: res }) => { + this.$http.get( + this.mixinViewModuleOptions.getDataListURL, + { + params: { + order: this.order, + orderField: this.orderField, + page: this.mixinViewModuleOptions.getDataListIsPage ? this.page : null, + limit: this.mixinViewModuleOptions.getDataListIsPage ? this.limit : null, + ...this.dataForm + } + }).then(({ data: res }) => { this.dataListLoading = false if (res.code !== 0) { this.dataList = [] diff --git a/src/views/modules/user/user-add-or-update.vue b/src/views/modules/user/user-add-or-update.vue index e24dd05e..bf594ec8 100644 --- a/src/views/modules/user/user-add-or-update.vue +++ b/src/views/modules/user/user-add-or-update.vue @@ -73,16 +73,22 @@ - + width="180" + v-if="false"> + width="180" + v-if="false"> + label="网格" + v-if="false"> + --> + diff --git a/src/views/modules/user/user-detail.vue b/src/views/modules/user/user-detail.vue index 07c94adb..71427ecd 100644 --- a/src/views/modules/user/user-detail.vue +++ b/src/views/modules/user/user-detail.vue @@ -53,7 +53,7 @@ - + --> + - - - + +