lrf402788946 4 年之前
父節點
當前提交
f9822d89a2
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/layout/index/mainData.vue

+ 3 - 1
src/layout/index/mainData.vue

@@ -67,11 +67,13 @@ export default {
       this.$router.push({ path: 'teacherscore/index', query: { teaid: item.teaid, lessonid: item._id } });
     },
     getLocaltion(data) {
+      if (data.subname.includes('训练')) return _.get(this.classInfo, 'kzjhlocation', '');
+      if (data.subname.includes('交流')) return _.get(this.classInfo, 'jslocation', '');
       if (data.subid) {
         return _.get(this.classInfo, 'jslocation', '');
       } else if (data.subname.includes('报到') || data.subname.includes('开班')) {
         return _.get(this.classInfo, 'kbyslocation', '');
-      } else if (data.subname.includes('拓展')) {
+      } else if (data.subname.includes('交流')) {
         return _.get(this.classInfo, 'kzjhlocation', '');
       } else if (data.subname.includes('午餐+休息') || data.subname.includes('晚餐')) {
         return _.get(this.classInfo, 'yclocation', '');