修改登录时后台报30001未弹出窗口bug

dev_2022-05-11
e 3 years ago
parent aea6b44fbe
commit 73060fdd63
  1. 5
      src/pages/system/list/role.vue
  2. 2
      src/pages/system/list/staff.vue

@ -108,7 +108,7 @@ export default {
}, },
methods: { methods: {
getData() { 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.listData = res.rolePage.records;
this.total = res.rolePage.total; this.total = res.rolePage.total;
}).catch(res => {}); }).catch(res => {});
@ -234,7 +234,8 @@ export default {
let permissionId = [...this.$refs.per.getHalfCheckedKeys(), ...this.$refs.per.getCheckedKeys()]; let permissionId = [...this.$refs.per.getHalfCheckedKeys(), ...this.$refs.per.getCheckedKeys()];
let data = { let data = {
...this.form, ...this.form,
permissionId permissionId,
platformId:1,
}; };
if (this.form.id) { if (this.form.id) {
this.$post(this.api.saveOrUpdate, data).then(res => { this.$post(this.api.saveOrUpdate, data).then(res => {

@ -290,7 +290,7 @@ export default {
}).catch(res => {}); }).catch(res => {});
}, },
getRoleData() { // 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; this.roleList = res.rolePage.records;
}).catch(res => {}); }).catch(res => {});
}, },

Loading…
Cancel
Save