guhongwei 4 年之前
父節點
當前提交
caf704ab2c
共有 1 個文件被更改,包括 20 次插入12 次删除
  1. 20 12
      src/views/hall/direct.vue

+ 20 - 12
src/views/hall/direct.vue

@@ -483,18 +483,26 @@ export default {
       // 专家
       let exportdata = await this.expertQuery({ role: 6, limit: 200 });
       if (this.$checkRes(exportdata)) {
-        console.log(exportdata.data);
-        let newRes = exportdata.data.filter(
-          i =>
-            i.company == '中科院长春分院' ||
-            i.company == '中国科学院东北地理与农业生态研究所' ||
-            i.company == '中国科学院长春应用化学研究所' ||
-            i.company == '中科院长春光学精密机械与物理研究所'
-        );
-        if (newRes) {
-          this.$set(this, `expertList`, newRes);
-          // 特邀嘉宾
-          this.$set(this.statNum, `tyjb`, newRes.length);
+        if (this.dockInfo.room_id == '1001') {
+          let newRes = exportdata.data.filter(
+            i =>
+              i.company == '中科院长春分院' ||
+              i.company == '中国科学院东北地理与农业生态研究所' ||
+              i.company == '中国科学院长春应用化学研究所' ||
+              i.company == '中科院长春光学精密机械与物理研究所'
+          );
+          if (newRes) {
+            this.$set(this, `expertList`, newRes);
+            // 特邀嘉宾
+            this.$set(this.statNum, `tyjb`, newRes.length);
+          }
+        } else if (this.dockInfo.room_id == '1002') {
+          let newRes = exportdata.data.filter(f => f.company.includes('吉林大学'));
+          if (newRes) {
+            this.$set(this, `expertList`, newRes);
+            // 特邀嘉宾
+            this.$set(this.statNum, `tyjb`, newRes.length);
+          }
         }
       }
       // 正在洽谈