xiatian 3 tahun lalu
induk
melakukan
4eea0ad4d5

+ 1 - 1
src/modules/questions/routes/routes.js

@@ -59,7 +59,7 @@ export default [
         component: user,
       },
       {
-        path: "user/data_previllege/:userId", //用户管理
+        path: "user/data_previllege/:rootOrgId/:userId", //用户管理
         meta: { privilegeCodes: "index_user" },
         component: data_previllege,
       },

+ 3 - 0
src/modules/questions/views/data_previllege.vue

@@ -126,6 +126,7 @@
     <DataPrevillegeAddCourseDialog
       ref="addCourseDialog"
       :user-id="form.userId"
+      :root-org-id="form.rootOrgId"
       @reload="init"
     />
   </div>
@@ -160,6 +161,7 @@ export default {
       toActiveName: null,
       form: {
         userId: "",
+        rootOrgId: null,
         defaultStatusCourse: false,
         auditAuthority: "",
       },
@@ -188,6 +190,7 @@ export default {
     }
 
     this.form.userId = this.$route.params.userId;
+    this.form.rootOrgId = this.$route.params.rootOrgId;
     await this.init();
     this.$nextTick(function () {
       this.paginationShow = true;

+ 4 - 1
src/modules/questions/views/data_previllege_add_course.vue

@@ -91,6 +91,7 @@ export default {
   name: "DataPrevillegeAddCourseDialog",
   props: {
     userId: { type: String, default: "" },
+    rootOrgId: { type: Number, default: null },
   },
   data() {
     return {
@@ -121,7 +122,9 @@ export default {
         "?" +
         param +
         "&userId=" +
-        this.userId;
+        this.userId +
+        "&rootOrgId=" +
+        this.rootOrgId;
       this.loading = true;
       return this.$httpWithMsg.get(url).then((response) => {
         this.tableData = response.data.content;

+ 1 - 1
src/modules/questions/views/user.vue

@@ -512,7 +512,7 @@
                         @click="
                           () =>
                             $router.push(
-                              `./user/data_previllege/${scope.row.id}`
+                              `./user/data_previllege/${scope.row.rootOrgId}/${scope.row.id}`
                             )
                         "
                         >权限设置