root 1 mēnesi atpakaļ
vecāks
revīzija
b5398e45b7
1 mainītis faili ar 16 papildinājumiem un 4 dzēšanām
  1. 16 4
      src/components/ComparePlanProfession.vue

+ 16 - 4
src/components/ComparePlanProfession.vue

@@ -276,6 +276,15 @@ export default {
       });
     },
 
+    // 查询当前组织所在测试计划
+    getPlanByOrg() {
+      this.$http.get(`plan/findPlanByOrg?orgNo=${this.orgInfo1.orgNo}`, {}, res => {
+        if (res && res.code == 200) {
+          this.planList = res.data;
+        }
+      })
+    },
+
     // 查询计划下组织
     getPlanOrganization(id) {
       return new Promise((reslove, reject) => {
@@ -349,7 +358,9 @@ export default {
 
     // 首选项组织切换
     orgSelectHandle(item) {
-      this.queryCompletePople(this.selectPlan1.id, [item.orgNo], 0);
+      this.compareOptions.planInfo1 = null;
+      this.compareOptions.planInfo2 = null;
+      this.getPlanByOrg();
     },
 
     compareHandle() {
@@ -397,13 +408,13 @@ export default {
 
 .c_main1 {
   box-sizing: border-box;
-  width: 60%;
+  width: 70%;
   padding: 0 50px;
 }
 
 .c_main2 {
   box-sizing: border-box;
-  width: 40%;
+  width: 30%;
   padding: 0 50px;
 
   table {
@@ -448,7 +459,7 @@ export default {
 }
 
 .demo-form-inline {
-  margin-left: 40px;
+  margin: 0 0 40px 40px;
 }
 
 .c_name {
@@ -463,5 +474,6 @@ export default {
   color: #222222;
   font-weight: 800;
   text-align: center;
+  margin-bottom: 40px;
 }
 </style>