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', '');