|
@@ -1,6 +1,7 @@
|
|
|
<script>
|
|
|
import { role, auth } from "@/api/system/table-template";
|
|
|
-import { listRole } from "@/api/system/role";
|
|
|
+// import { listRole } from "@/api/system/role";
|
|
|
+import { listOptionselect } from "@/api/system/role";
|
|
|
export default {
|
|
|
name: "AuthDialog",
|
|
|
data() {
|
|
@@ -19,10 +20,15 @@ export default {
|
|
|
this.form.id = id;
|
|
|
this.loading = true;
|
|
|
this.dialogFormVisible = true;
|
|
|
- listRole({ id })
|
|
|
+ listOptionselect({ id })
|
|
|
.then((res) => {
|
|
|
- let { rows, total } = res;
|
|
|
- this.roleList = rows.map((item) => ({
|
|
|
+ // let { rows, total } = res;
|
|
|
+ // this.roleList = rows.map((item) => ({
|
|
|
+ // key: item.roleId,
|
|
|
+ // label: item.roleName,
|
|
|
+ // }));
|
|
|
+ let { data } = res;
|
|
|
+ this.roleList = data.map((item) => ({
|
|
|
key: item.roleId,
|
|
|
label: item.roleName,
|
|
|
}));
|
|
@@ -65,7 +71,7 @@ export default {
|
|
|
<el-dialog
|
|
|
width="fit-content"
|
|
|
destroy-on-close
|
|
|
- title="孙权"
|
|
|
+ title="授权"
|
|
|
:visible.sync="dialogFormVisible"
|
|
|
>
|
|
|
<el-transfer
|