diff --git a/src/views/modules/user/partymembers.vue b/src/views/modules/user/partymembers.vue index 2642c032..954f5238 100755 --- a/src/views/modules/user/partymembers.vue +++ b/src/views/modules/user/partymembers.vue @@ -305,6 +305,37 @@ export default { return row.registFlag === '1' ? '是' : row.registFlag === '0' ? '否' : '未知' }, importData () { + }, + // 获取数据列表 + getDataList () { + if (this.timeRange === null) { + this.dataForm.startTime = '' + this.dataForm.endTime = '' + } + this.dataListLoading = true + 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 = [] + this.total = 0 + return this.$message.error(res.msg) + } + this.dataList = this.mixinViewModuleOptions.getDataListIsPage ? res.data.list : res.data + this.total = this.mixinViewModuleOptions.getDataListIsPage ? res.data.total : 0 + }).catch(() => { + this.dataListLoading = false + }) } } } diff --git a/src/views/modules/user/user-add-or-update.vue b/src/views/modules/user/user-add-or-update.vue index ee829444..3e6755f1 100644 --- a/src/views/modules/user/user-add-or-update.vue +++ b/src/views/modules/user/user-add-or-update.vue @@ -186,7 +186,7 @@ export default { return this.$message.error(res.msg) } // 审核通过之后触发发短信 - this.registerResult(this.dataForm.id, this.dataForm.pass) + this.registerResult(this.dataForm.id) this.$message({ message: this.$t('prompt.success'), type: 'success', @@ -199,8 +199,8 @@ export default { }).catch(() => { }) }) }, 1000, { 'leading': true, 'trailing': false }), - registerResult (userId, state) { - this.$http.get(`api/message/sms/registerResult?userId=` + userId + '&state=' + state).then(({ data: res }) => { + registerResult (userId) { + this.$http.get(`api/message/sms/registerResult?userId=` + userId).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } diff --git a/src/views/modules/user/user.vue b/src/views/modules/user/user.vue index 47c529ac..54a59d78 100644 --- a/src/views/modules/user/user.vue +++ b/src/views/modules/user/user.vue @@ -431,6 +431,37 @@ export default { this.dataForm.isParty = '' } this.getDataList() + }, + // 获取数据列表 + getDataList () { + if (this.time === null) { + this.dataForm.startTime = '' + this.dataForm.endTime = '' + } + this.dataListLoading = true + 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 = [] + this.total = 0 + return this.$message.error(res.msg) + } + this.dataList = this.mixinViewModuleOptions.getDataListIsPage ? res.data.list : res.data + this.total = this.mixinViewModuleOptions.getDataListIsPage ? res.data.total : 0 + }).catch(() => { + this.dataListLoading = false + }) } }, components: { diff --git a/src/views/modules/user/usertag-add-or-update.vue b/src/views/modules/user/usertag-add-or-update.vue index 32098fa8..6e5ec21d 100755 --- a/src/views/modules/user/usertag-add-or-update.vue +++ b/src/views/modules/user/usertag-add-or-update.vue @@ -1,16 +1,32 @@ @@ -60,7 +76,7 @@ export default { ...this.dataForm, ...res.data } - }).catch(() => {}) + }).catch(() => { }) }, // 表单提交 dataFormSubmitHandle: debounce(function () { @@ -81,7 +97,7 @@ export default { this.$emit('refreshDataList') } }) - }).catch(() => {}) + }).catch(() => { }) }) }, 1000, { 'leading': true, 'trailing': false }) }