zhangjie 2 yıl önce
ebeveyn
işleme
e27f78edfb

+ 3 - 0
src/modules/admin/api.js

@@ -16,6 +16,9 @@ export const resetPwd = id => {
 export const userRoleListPage = () => {
   return $postParam("/api/admin/sys/role/list_to_user", {});
 };
+export const adminRoleListPage = () => {
+  return $postParam("/api/admin/sys/role/list_to_admin", {});
+};
 export const setRoleDefault = ({ id, defaultRole }) => {
   return $postParam("/api/admin/sys/role/builtin", { id, defaultRole });
 };

+ 2 - 2
src/modules/admin/views/SystemRoleManage.vue

@@ -55,7 +55,7 @@
 
 <script>
 import { ABLE_TYPE } from "@/constants/enumerate";
-import { userRoleListPage, setRoleDefault } from "../api";
+import { adminRoleListPage, setRoleDefault } from "../api";
 import { deleteRole } from "../../base/api";
 import ModifySystemRole from "../components/ModifySystemRole";
 
@@ -77,7 +77,7 @@ export default {
   },
   methods: {
     async getList() {
-      const data = await userRoleListPage();
+      const data = await adminRoleListPage();
       this.roles = data || [];
       this.roles = this.roles.filter(item => item.type !== "ADMIN");
     },

+ 2 - 1
src/modules/exam/components/ModifyTaskPaper.vue

@@ -323,7 +323,8 @@ export default {
       if (!this.curTaskApply.courseCode || !this.curTaskApply.examId) return;
       const data = await cardForSelectList({
         courseCode: this.curTaskApply.courseCode,
-        examId: this.curTaskApply.examId
+        examId: this.curTaskApply.examId,
+        paperNumber: this.instance.paperNumber
       });
       this.cards = data || [];
     },