|
|
|
@ -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 => { |
|
|
|
|