diff --git a/src/api/user/userCustomer.js b/src/api/user/userCustomer.js index e86e244..d70e96d 100644 --- a/src/api/user/userCustomer.js +++ b/src/api/user/userCustomer.js @@ -35,6 +35,19 @@ export function updateUserCustomer(data) { }) } +// 用户状态修改 +export function changeUserStatus(userId, status) { + const data = { + userId, + status + } + return request({ + url: '/user/userCustomer/changeStatus', + method: 'put', + data: data + }) +} + // 删除个人用户 export function delUserCustomer(userId) { return request({ diff --git a/src/main.js b/src/main.js index 13c6cf2..248a305 100644 --- a/src/main.js +++ b/src/main.js @@ -48,7 +48,13 @@ Vue.prototype.selectDictLabel = selectDictLabel Vue.prototype.selectDictLabels = selectDictLabels Vue.prototype.download = download Vue.prototype.handleTree = handleTree - +Vue.prototype.msgSuccess = function (msg) { + this.$message({ + showClose: true, + message: msg, + type: "success" + }); +} // 全局组件挂载 Vue.component('DictTag', DictTag) Vue.component('Pagination', Pagination) diff --git a/src/views/monitor/job/index.vue b/src/views/monitor/job/index.vue index 37c8fc1..685fd43 100644 --- a/src/views/monitor/job/index.vue +++ b/src/views/monitor/job/index.vue @@ -357,7 +357,7 @@ export default { this.loading = true; listJob(this.queryParams).then(response => { this.jobList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; }); }, diff --git a/src/views/monitor/job/log.vue b/src/views/monitor/job/log.vue index 60bee1d..15604b2 100644 --- a/src/views/monitor/job/log.vue +++ b/src/views/monitor/job/log.vue @@ -234,7 +234,7 @@ export default { this.loading = true; listJobLog(this.addDateRange(this.queryParams, this.dateRange)).then(response => { this.jobLogList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; } ); diff --git a/src/views/monitor/logininfor/index.vue b/src/views/monitor/logininfor/index.vue index d6af834..0252db4 100644 --- a/src/views/monitor/logininfor/index.vue +++ b/src/views/monitor/logininfor/index.vue @@ -176,7 +176,7 @@ export default { this.loading = true; list(this.addDateRange(this.queryParams, this.dateRange)).then(response => { this.list = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; } ); diff --git a/src/views/monitor/online/index.vue b/src/views/monitor/online/index.vue index ad613c9..2c8b724 100644 --- a/src/views/monitor/online/index.vue +++ b/src/views/monitor/online/index.vue @@ -93,7 +93,7 @@ export default { this.loading = true; list(this.queryParams).then(response => { this.list = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; }); }, diff --git a/src/views/monitor/operlog/index.vue b/src/views/monitor/operlog/index.vue index 34a3ce3..d8f4620 100644 --- a/src/views/monitor/operlog/index.vue +++ b/src/views/monitor/operlog/index.vue @@ -245,7 +245,7 @@ export default { this.loading = true; list(this.addDateRange(this.queryParams, this.dateRange)).then( response => { this.list = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; } ); diff --git a/src/views/otc/otcAppealConfig/index.vue b/src/views/otc/otcAppealConfig/index.vue index 832e044..18bc3f3 100644 --- a/src/views/otc/otcAppealConfig/index.vue +++ b/src/views/otc/otcAppealConfig/index.vue @@ -204,7 +204,7 @@ export default { this.loading = true; listOtcAppealConfig(this.queryParams).then(response => { this.otcAppealConfigList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; }); }, diff --git a/src/views/otc/otcAppealOrder/index.vue b/src/views/otc/otcAppealOrder/index.vue index 42757f7..f0f3f0d 100644 --- a/src/views/otc/otcAppealOrder/index.vue +++ b/src/views/otc/otcAppealOrder/index.vue @@ -313,7 +313,7 @@ export default { this.loading = true; listOtcAppealOrder(this.queryParams).then(response => { this.otcAppealOrderList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; }); }, diff --git a/src/views/otc/otcCoin/index.vue b/src/views/otc/otcCoin/index.vue index f1111c3..674a6c7 100644 --- a/src/views/otc/otcCoin/index.vue +++ b/src/views/otc/otcCoin/index.vue @@ -260,7 +260,7 @@ export default { this.loading = true; listOtcCoin(this.queryParams).then(response => { this.otcCoinList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; }); }, diff --git a/src/views/otc/otcOrder/index.vue b/src/views/otc/otcOrder/index.vue index 4ec9fd0..7c4ac3c 100644 --- a/src/views/otc/otcOrder/index.vue +++ b/src/views/otc/otcOrder/index.vue @@ -443,7 +443,7 @@ export default { this.loading = true; listOtcOrder(this.queryParams).then(response => { this.otcOrderList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; }); }, diff --git a/src/views/otc/otcPaymentLegalCurrency/index.vue b/src/views/otc/otcPaymentLegalCurrency/index.vue index c25011b..6dcc121 100644 --- a/src/views/otc/otcPaymentLegalCurrency/index.vue +++ b/src/views/otc/otcPaymentLegalCurrency/index.vue @@ -180,7 +180,7 @@ export default { this.loading = true; listOtcPaymentLegalCurrency(this.queryParams).then(response => { this.otcPaymentLegalCurrencyList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; }); }, diff --git a/src/views/otc/otcPaymentTemplate/index.vue b/src/views/otc/otcPaymentTemplate/index.vue index 02881a7..93377af 100644 --- a/src/views/otc/otcPaymentTemplate/index.vue +++ b/src/views/otc/otcPaymentTemplate/index.vue @@ -253,7 +253,7 @@ export default { this.loading = true; listOtcPaymentTemplate(this.queryParams).then(response => { this.otcPaymentTemplateList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; }); }, diff --git a/src/views/otc/otcPaymentType/index.vue b/src/views/otc/otcPaymentType/index.vue index ae010ca..c0c8c8a 100644 --- a/src/views/otc/otcPaymentType/index.vue +++ b/src/views/otc/otcPaymentType/index.vue @@ -225,7 +225,7 @@ export default { this.loading = true; listOtcPaymentType(this.queryParams).then(response => { this.otcPaymentTypeList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; }); }, diff --git a/src/views/otc/otcStoreOrder/index.vue b/src/views/otc/otcStoreOrder/index.vue index 112671f..90262f2 100644 --- a/src/views/otc/otcStoreOrder/index.vue +++ b/src/views/otc/otcStoreOrder/index.vue @@ -375,7 +375,7 @@ export default { this.loading = true; listOtcStoreOrder(this.queryParams).then(response => { this.otcStoreOrderList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; }); }, diff --git a/src/views/otc/otcStorePledge/index.vue b/src/views/otc/otcStorePledge/index.vue index 786b9ff..2939b0d 100644 --- a/src/views/otc/otcStorePledge/index.vue +++ b/src/views/otc/otcStorePledge/index.vue @@ -223,7 +223,7 @@ export default { this.loading = true; listOtcStorePledge(this.queryParams).then(response => { this.otcStorePledgeList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; }); }, diff --git a/src/views/otc/otcSysDict/index.vue b/src/views/otc/otcSysDict/index.vue index 6655847..757235d 100644 --- a/src/views/otc/otcSysDict/index.vue +++ b/src/views/otc/otcSysDict/index.vue @@ -214,7 +214,7 @@ export default { this.loading = true; listOtcSysDict(this.queryParams).then(response => { this.otcSysDictList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; }); }, diff --git a/src/views/system/config/index.vue b/src/views/system/config/index.vue index 3ab81fc..455d740 100644 --- a/src/views/system/config/index.vue +++ b/src/views/system/config/index.vue @@ -241,7 +241,7 @@ export default { this.loading = true; listConfig(this.addDateRange(this.queryParams, this.dateRange)).then(response => { this.configList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; } ); diff --git a/src/views/system/dict/data.vue b/src/views/system/dict/data.vue index 324bb64..ccf98bd 100644 --- a/src/views/system/dict/data.vue +++ b/src/views/system/dict/data.vue @@ -296,7 +296,7 @@ export default { this.loading = true; listData(this.queryParams).then(response => { this.dataList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; }); }, diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index 6ca5457..e37be9b 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -245,7 +245,7 @@ export default { this.loading = true; listType(this.addDateRange(this.queryParams, this.dateRange)).then(response => { this.typeList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; } ); diff --git a/src/views/system/notice/index.vue b/src/views/system/notice/index.vue index 7982b54..066caa5 100644 --- a/src/views/system/notice/index.vue +++ b/src/views/system/notice/index.vue @@ -225,7 +225,7 @@ export default { this.loading = true; listNotice(this.queryParams).then(response => { this.noticeList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; }); }, diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue index 444bf63..db95543 100644 --- a/src/views/system/post/index.vue +++ b/src/views/system/post/index.vue @@ -215,7 +215,7 @@ export default { this.loading = true; listPost(this.queryParams).then(response => { this.postList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; }); }, diff --git a/src/views/system/role/authUser.vue b/src/views/system/role/authUser.vue index 147aa33..8336a51 100644 --- a/src/views/system/role/authUser.vue +++ b/src/views/system/role/authUser.vue @@ -144,7 +144,7 @@ export default { this.loading = true; allocatedUserList(this.queryParams).then(response => { this.userList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; } ); diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index 796743b..bdb133c 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -350,7 +350,7 @@ export default { this.loading = true; listRole(this.addDateRange(this.queryParams, this.dateRange)).then(response => { this.roleList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; } ); diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 782d3e2..a66c8ac 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -471,7 +471,7 @@ export default { this.loading = true; listUser(this.addDateRange(this.queryParams, this.dateRange)).then(response => { this.userList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; } ); diff --git a/src/views/tool/gen/index.vue b/src/views/tool/gen/index.vue index 3f1f930..dd024cb 100644 --- a/src/views/tool/gen/index.vue +++ b/src/views/tool/gen/index.vue @@ -245,7 +245,7 @@ export default { this.loading = true; listTable(this.addDateRange(this.queryParams, this.dateRange)).then(response => { this.tableList = response.rows; - this.total = response.total; + this.total = Number(response.total); this.loading = false; } ); diff --git a/src/views/user/UserCertification/index.vue b/src/views/user/UserCertification/index.vue index e2edd61..ee23651 100644 --- a/src/views/user/UserCertification/index.vue +++ b/src/views/user/UserCertification/index.vue @@ -193,20 +193,13 @@ @@ -222,65 +215,18 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 请选择字典生成 - - - - - - + + + 审核通过 + 驳回 + + + - - - - - - - - - + +