Преглед на файлове

Merge branch '07/06musicArchives' into test

mo преди 4 години
родител
ревизия
fb9cb47351
променени са 2 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 2 2
      src/views/resetTeaming/components/archicesComponents/trainPlan.vue
  2. 4 4
      src/views/resetTeaming/index.vue

+ 2 - 2
src/views/resetTeaming/components/archicesComponents/trainPlan.vue

@@ -260,7 +260,7 @@ export default {
         const res = await getCourseType(obj);
         if (!res.data || res.data.length <= 0) {
                 this.planList=[]
-          this.$message.error("当前学期暂无课程类型");
+          this.$message.error("当前班级暂无课程");
         } else {
           this.courseTypeList = [];
           res.data.forEach((course) => {
@@ -315,7 +315,7 @@ export default {
         this.planVisible = true;
         this.currentIndex = this.addIndex;
       } else {
-        this.$message.error("已添加所有课时规划");
+        this.$message.error("所有课程已规划");
       }
     },
     submitPlan() {

+ 4 - 4
src/views/resetTeaming/index.vue

@@ -3,17 +3,17 @@
     <h2>
       <el-page-header @back="onCancel">
         <template slot="content">
-          <div class="hearConcat" @click="gotoArchices">
+          <div class="hearConcat" @click="gotoArchices"  v-if="permission('/musicArchices')">
             <p>{{ teamName }}</p>
-
-            <auth :auths="'/musicArchices'">
               <el-tooltip placement="top" popper-class="mTooltip">
                 <div slot="content">
                   乐团档案
                 </div>
                 <img :src="archices" alt="" class="archices" />
               </el-tooltip>
-            </auth>
+          </div>
+          <div v-else>
+             <p>{{ teamName }}</p>
           </div>
         </template>
       </el-page-header>