فهرست منبع

解决 缺陷

zhulu 1 سال پیش
والد
کامیت
a3c034574b
2فایلهای تغییر یافته به همراه11 افزوده شده و 8 حذف شده
  1. 2 2
      src/components/orgSelect/index.vue
  2. 9 6
      src/components/orgSelect/zl.orgSelect.vue

+ 2 - 2
src/components/orgSelect/index.vue

@@ -458,8 +458,8 @@ export default {
 
 
     },
-    getAllOrgs() {
-      selectOrgList({}).then((result) => {
+    getAllOrgs() {      
+      selectOrgList({orgId:this.$store.getters.orgId,checkSub:true}).then((result) => {
         this.orgs = result;
       });
     },

+ 9 - 6
src/components/orgSelect/zl.orgSelect.vue

@@ -86,7 +86,7 @@
             </el-row>
             <el-table
               style="width: 100%"
-              height="calc(100% - 100px)"
+              height="calc(100% - 160px)"
               :data="left.data"
               @selection-change="handleLeftSelectionChange"
             >
@@ -167,7 +167,7 @@
               >
             </el-row>
             <el-table
-              height="calc(100% - 100px)"
+              height="calc(100% - 160px)"
               :data="right.data"
               @selection-change="handleRightSelectionChange"
             >
@@ -277,6 +277,9 @@ export default {
       this.orgTree();
     },
   },
+  // computed: {
+  //   ...mapGetters(["orgId"]),
+  // },
   data() {
     return {
       orgs: [],
@@ -355,7 +358,7 @@ export default {
     orgTree() {
       console.log("orgTree",22,this.left)
       //获取所有机构列表
-      if(!this.orgs || this.orgs.length==0){
+      if(!this.orgs || this.orgs.length==0){        
         this.getAllOrgs();
       }
       this.initHistorySelectOrg();
@@ -524,10 +527,10 @@ export default {
 
 
     },
-    getAllOrgs() {
-      selectOrgList({}).then((result) => {
+    getAllOrgs() {      
+      selectOrgList({orgId:this.$store.getters.orgId,checkSub:true,time:new Date()}).then((result) => {
         this.orgs = result;   
-        this.initHistorySelectOrg();    
+        this.initHistorySelectOrg();         
       });
     },
     leftSearch() {