xiatian před 3 roky
rodič
revize
217c78a73f
1 změnil soubory, kde provedl 17 přidání a 18 odebrání
  1. 17 18
      src/modules/oe/component/commonForm.vue

+ 17 - 18
src/modules/oe/component/commonForm.vue

@@ -50,7 +50,6 @@
     <el-col :span="6">
       <el-form-item label="学习中心">
         <el-select
-          v-if="currentPagePrivileges.ORG_FIND_ALL"
           v-model="form.orgId"
           class="form_search_width"
           filterable
@@ -69,14 +68,14 @@
             :value="item.id"
           ></el-option>
         </el-select>
-        <el-input
+        <!-- <el-input
           v-if="!currentPagePrivileges.ORG_FIND_ALL"
           v-model="orgName"
           class="form_search_width"
           size="small"
           :disabled="true"
         ></el-input>
-        <el-radio v-show="false" v-model="form.ORG_FIND_ALL"></el-radio>
+        <el-radio v-show="false" v-model="form.ORG_FIND_ALL"></el-radio> -->
       </el-form-item>
     </el-col>
     <el-col :span="6">
@@ -186,21 +185,21 @@ export default {
       "privilegeCodes",
       Object.keys(this.currentPagePrivileges).toString()
     );
-    this.$http
-      .post("/api/ecs_core/rolePrivilege/checkPrivileges?" + params)
-      .then((response) => {
-        this.currentPagePrivileges = response.data;
-        this.form.ORG_FIND_ALL = this.currentPagePrivileges.ORG_FIND_ALL;
-        if (!this.currentPagePrivileges.ORG_FIND_ALL) {
-          var userId = this.user.userId;
-          this.$http.get("/api/ecs_core/user/" + userId).then((response) => {
-            this.form.orgId = response.data.orgId;
-            this.orgName = response.data.orgName;
-          });
-        } else {
-          this.getOrgs("");
-        }
-      });
+    // this.$http
+    //   .post("/api/ecs_core/rolePrivilege/checkPrivileges?" + params)
+    //   .then((response) => {
+    //     this.currentPagePrivileges = response.data;
+    //     this.form.ORG_FIND_ALL = this.currentPagePrivileges.ORG_FIND_ALL;
+    //     if (!this.currentPagePrivileges.ORG_FIND_ALL) {
+    //       var userId = this.user.userId;
+    //       this.$http.get("/api/ecs_core/user/" + userId).then((response) => {
+    //         this.form.orgId = response.data.orgId;
+    //         this.orgName = response.data.orgName;
+    //       });
+    //     } else {
+    this.getOrgs("");
+    //     }
+    //   });
   },
   methods: {
     getExams(examName) {