|
@ -67,7 +67,6 @@ import { |
|
|
createAuthority |
|
|
createAuthority |
|
|
} from '@/api/authority' |
|
|
} from '@/api/authority' |
|
|
import { getBaseMenuTree, addMenuAuthority, getMenuAuthority } from '@/api/menu' |
|
|
import { getBaseMenuTree, addMenuAuthority, getMenuAuthority } from '@/api/menu' |
|
|
import { mapActions } from 'vuex' |
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'Authority', |
|
|
name: 'Authority', |
|
|
data() { |
|
|
data() { |
|
@ -92,8 +91,6 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
...mapActions('router', ['SetAsyncRouter']), |
|
|
|
|
|
|
|
|
|
|
|
// 条数 |
|
|
// 条数 |
|
|
handleSizeChange(val) { |
|
|
handleSizeChange(val) { |
|
|
this.pageSize = val |
|
|
this.pageSize = val |
|
@ -113,11 +110,13 @@ export default { |
|
|
}) |
|
|
}) |
|
|
.then(async () => { |
|
|
.then(async () => { |
|
|
const res = await deleteAuthority({ authorityId: row.authorityId }) |
|
|
const res = await deleteAuthority({ authorityId: row.authorityId }) |
|
|
this.$message({ |
|
|
|
|
|
type: 'success', |
|
|
|
|
|
message: '删除成功!' |
|
|
|
|
|
}) |
|
|
|
|
|
this.getAuthList() |
|
|
|
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
type: 'success', |
|
|
|
|
|
message: '删除成功!' |
|
|
|
|
|
}) |
|
|
|
|
|
this.getAuthList() |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
.catch(() => { |
|
|
.catch(() => { |
|
|
this.$message({ |
|
|
this.$message({ |
|
@ -189,7 +188,6 @@ export default { |
|
|
type: 'success', |
|
|
type: 'success', |
|
|
message: '添加成功!' |
|
|
message: '添加成功!' |
|
|
}) |
|
|
}) |
|
|
this.SetAsyncRouter() |
|
|
|
|
|
} |
|
|
} |
|
|
this.closeDialog() |
|
|
this.closeDialog() |
|
|
} |
|
|
} |
|
|