From 73060fdd635fbc46a67cd2b4ab9561d5116ba2a1 Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Thu, 4 Nov 2021 09:35:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BB=E5=BD=95=E6=97=B6?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E6=8A=A530001=E6=9C=AA=E5=BC=B9=E5=87=BA?= =?UTF-8?q?=E7=AA=97=E5=8F=A3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/system/list/role.vue | 5 +++-- src/pages/system/list/staff.vue | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pages/system/list/role.vue b/src/pages/system/list/role.vue index 946fef0..815e994 100644 --- a/src/pages/system/list/role.vue +++ b/src/pages/system/list/role.vue @@ -108,7 +108,7 @@ export default { }, methods: { getData() { - this.$get(`${this.api.roleList}?page=${this.page}&size=${this.pageSize}&name=${util.encodeStr(this.keyword)}`).then(res => { + this.$get(`${this.api.roleList}?page=${this.page}&size=${this.pageSize}&name=${util.encodeStr(this.keyword)}&platformId=1`).then(res => { this.listData = res.rolePage.records; this.total = res.rolePage.total; }).catch(res => {}); @@ -234,7 +234,8 @@ export default { let permissionId = [...this.$refs.per.getHalfCheckedKeys(), ...this.$refs.per.getCheckedKeys()]; let data = { ...this.form, - permissionId + permissionId, + platformId:1, }; if (this.form.id) { this.$post(this.api.saveOrUpdate, data).then(res => { diff --git a/src/pages/system/list/staff.vue b/src/pages/system/list/staff.vue index 115a8ec..704cad2 100644 --- a/src/pages/system/list/staff.vue +++ b/src/pages/system/list/staff.vue @@ -290,7 +290,7 @@ export default { }).catch(res => {}); }, getRoleData() { // 获取角色数据 - this.$get(`${this.api.roleList}?page=1&size=100&name=`).then(res => { + this.$get(`${this.api.roleList}?page=1&size=100&name=''&platformId=1`).then(res => { this.roleList = res.rolePage.records; }).catch(res => {}); },