mo 3 سال پیش
والد
کامیت
243645bf9b
3فایلهای تغییر یافته به همراه14 افزوده شده و 2 حذف شده
  1. 9 1
      src/constant/index.js
  2. 4 0
      src/utils/vueFilter.js
  3. 1 1
      src/views/liveClassManager/modals/groupChat.vue

+ 9 - 1
src/constant/index.js

@@ -484,7 +484,15 @@ export const catType = {
   MUSIC:'乐团群',
   CLASS:'班级群',
   REPERTOIRE_PLAY:'曲目演奏课',
-  TRAINING:'训练营'
+  TRAINING:'训练营',
+  VIP:'VIP课群'
+}
+export const catDotType = {
+  MUSIC:'乐团',
+  CLASS:'班级',
+  REPERTOIRE_PLAY:'演奏',
+  TRAINING:'训练',
+  VIP:'VIP'
 }
 
 

+ 4 - 0
src/utils/vueFilter.js

@@ -853,6 +853,10 @@ Vue.filter("catType", value => {
   return constant.catType[value];
 });
 
+Vue.filter("catDotType", value => {
+  return constant.catDotType[value];
+});
+
 Vue.filter("usageStatus", value => {
   let obj = {
     0: "未使用",

+ 1 - 1
src/views/liveClassManager/modals/groupChat.vue

@@ -36,7 +36,7 @@
             @change="resectCheck(item.id)"
             ><br
           /></el-checkbox>
-          <div class="dotle">{{ item.type == "MUSIC" ? "乐团" : "VIP" }}</div>
+          <div class="dotle">{{ item.type | catDotType }}</div>
           <div class="teamInfo">
             <p class="title">{{ item.name }}</p>
             <p class="subInfo">{{ item.memo }}(共{{ item.memberNum }}人)</p>