Ver Fonte

安全检查获取角色从listrole改为allrole

jiawuxian há 1 ano atrás
pai
commit
a6c0510b20
1 ficheiros alterados com 3 adições e 6 exclusões
  1. 3 6
      src/views/safetycheck/plan/index.vue

+ 3 - 6
src/views/safetycheck/plan/index.vue

@@ -436,7 +436,7 @@ import DialogEdit from "./dialog.edit";
 import DialogDetail from "./dialog.detail";
 import * as api from "@/api/safetycheck/plan";
 import { statusOptions, getLabel } from "@/views/commonOption";
-import { listRole } from "@/api/system/role";
+import { allRole } from "@/api/system/role";
 import DialogThreeState from "@/components/message/threeStateMessageBox.vue";
 export default {
   name: "resumptionplan",
@@ -765,12 +765,9 @@ export default {
     //   this.$refs.dialogDistribute.show(row);
     // },
     getRolesByOrg() {
-      let params = {
-        // orgId:this.queryParams.orgId
-      };
-      listRole(params).then((res) => {
+      allRole().then((res) => {
         // console.info(res);
-        this.resumptionRoles = res.rows;
+        this.resumptionRoles = res.data;
       });
     },
     getList() {