lrf402788946 hace 4 años
padre
commit
f9822d89a2
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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 } });
       this.$router.push({ path: 'teacherscore/index', query: { teaid: item.teaid, lessonid: item._id } });
     },
     },
     getLocaltion(data) {
     getLocaltion(data) {
+      if (data.subname.includes('训练')) return _.get(this.classInfo, 'kzjhlocation', '');
+      if (data.subname.includes('交流')) return _.get(this.classInfo, 'jslocation', '');
       if (data.subid) {
       if (data.subid) {
         return _.get(this.classInfo, 'jslocation', '');
         return _.get(this.classInfo, 'jslocation', '');
       } else if (data.subname.includes('报到') || data.subname.includes('开班')) {
       } else if (data.subname.includes('报到') || data.subname.includes('开班')) {
         return _.get(this.classInfo, 'kbyslocation', '');
         return _.get(this.classInfo, 'kbyslocation', '');
-      } else if (data.subname.includes('拓展')) {
+      } else if (data.subname.includes('交流')) {
         return _.get(this.classInfo, 'kzjhlocation', '');
         return _.get(this.classInfo, 'kzjhlocation', '');
       } else if (data.subname.includes('午餐+休息') || data.subname.includes('晚餐')) {
       } else if (data.subname.includes('午餐+休息') || data.subname.includes('晚餐')) {
         return _.get(this.classInfo, 'yclocation', '');
         return _.get(this.classInfo, 'yclocation', '');