|
@@ -15,50 +15,50 @@ Vue.filter("joinArray", (value, type) => {
|
|
|
});
|
|
|
|
|
|
// 合作单位
|
|
|
-Vue.filter("branchType", value => {
|
|
|
+Vue.filter("branchType", (value) => {
|
|
|
let template = {
|
|
|
OWN: "自有",
|
|
|
COOPERATION: "合作",
|
|
|
- LEASE: "租赁"
|
|
|
+ LEASE: "租赁",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 商品类型
|
|
|
-Vue.filter("shopType", value => {
|
|
|
+Vue.filter("shopType", (value) => {
|
|
|
let template = {
|
|
|
INSTRUMENT: "乐器",
|
|
|
ACCESSORIES: "辅件",
|
|
|
TEACHING: "教材",
|
|
|
STAFF: "教谱",
|
|
|
- OTHER: "其它"
|
|
|
+ OTHER: "其它",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 乐团学员状态
|
|
|
-Vue.filter("musicGroupStudentType", value => {
|
|
|
+Vue.filter("musicGroupStudentType", (value) => {
|
|
|
let template = {
|
|
|
NORMAL: "在读",
|
|
|
LEAVE: "请假",
|
|
|
QUIT: "退团",
|
|
|
- APPLY: "报名"
|
|
|
+ APPLY: "报名",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 乐团学员状态
|
|
|
-Vue.filter("instrumentType", value => {
|
|
|
+Vue.filter("instrumentType", (value) => {
|
|
|
let template = {
|
|
|
GROUP: "团购",
|
|
|
OWNED: "自备",
|
|
|
- LEASE: "租赁"
|
|
|
+ LEASE: "租赁",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 课程类型
|
|
|
-Vue.filter("coursesType", value => {
|
|
|
+Vue.filter("coursesType", (value) => {
|
|
|
let template = {
|
|
|
NORMAL: "声部课",
|
|
|
SINGLE: "声部课",
|
|
@@ -77,41 +77,41 @@ Vue.filter("coursesType", value => {
|
|
|
COMM: "对外课",
|
|
|
MUSIC: "乐团课",
|
|
|
HIGH_ONLINE: "线上基础技能课",
|
|
|
- MUSIC_NETWORK: "乐团网管课"
|
|
|
+ MUSIC_NETWORK: "乐团网管课",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 课程状态
|
|
|
-Vue.filter("coursesStatus", value => {
|
|
|
+Vue.filter("coursesStatus", (value) => {
|
|
|
let template = {
|
|
|
NOT_START: "未开始",
|
|
|
UNDERWAY: "进行中",
|
|
|
- OVER: "已结束"
|
|
|
+ OVER: "已结束",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 考勤类型
|
|
|
-Vue.filter("clockingIn", value => {
|
|
|
+Vue.filter("clockingIn", (value) => {
|
|
|
let templateStatus = {
|
|
|
NORMAL: "正常",
|
|
|
TRUANT: "旷课",
|
|
|
LEAVE: "请假",
|
|
|
QUIT_SCHOOL: "休学",
|
|
|
DROP_OUT: "退学",
|
|
|
- LATE: "迟到"
|
|
|
+ LATE: "迟到",
|
|
|
};
|
|
|
return templateStatus[value];
|
|
|
});
|
|
|
|
|
|
// 学员状态
|
|
|
-Vue.filter("studentTeamStatus", value => {
|
|
|
+Vue.filter("studentTeamStatus", (value) => {
|
|
|
let templateStatus = {
|
|
|
NORMAL: "在读",
|
|
|
QUIT: "退团",
|
|
|
QUIT_SCHOOL: "休学",
|
|
|
- APPLY: "报名"
|
|
|
+ APPLY: "报名",
|
|
|
};
|
|
|
return templateStatus[value];
|
|
|
});
|
|
@@ -132,7 +132,7 @@ Vue.filter("dayjsFormatForDate", (value, format = "MM-DD") => {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
-Vue.filter("dayjsFormatWeek", value => {
|
|
|
+Vue.filter("dayjsFormatWeek", (value) => {
|
|
|
if (value) {
|
|
|
return dayjs(value).format("YYYY-MM");
|
|
|
} else {
|
|
@@ -141,7 +141,7 @@ Vue.filter("dayjsFormatWeek", value => {
|
|
|
});
|
|
|
|
|
|
// courseViewType
|
|
|
-Vue.filter("dayjsFormatMinute", value => {
|
|
|
+Vue.filter("dayjsFormatMinute", (value) => {
|
|
|
if (value) {
|
|
|
return dayjs(value).format("HH:mm");
|
|
|
} else {
|
|
@@ -149,28 +149,28 @@ Vue.filter("dayjsFormatMinute", value => {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
-Vue.filter("formatTimer", value => {
|
|
|
+Vue.filter("formatTimer", (value) => {
|
|
|
if (value) {
|
|
|
return value.split(" ")[0];
|
|
|
} else {
|
|
|
return value;
|
|
|
}
|
|
|
});
|
|
|
-Vue.filter("formatSecondTimer", value => {
|
|
|
+Vue.filter("formatSecondTimer", (value) => {
|
|
|
if (value) {
|
|
|
return dayjs(value).format("HH:mm:ss");
|
|
|
} else {
|
|
|
return value;
|
|
|
}
|
|
|
});
|
|
|
-Vue.filter("timerForMinFormat", value => {
|
|
|
+Vue.filter("timerForMinFormat", (value) => {
|
|
|
if (value) {
|
|
|
return value.substring(0, 5);
|
|
|
} else {
|
|
|
return value;
|
|
|
}
|
|
|
});
|
|
|
-Vue.filter("dateForMinFormat", value => {
|
|
|
+Vue.filter("dateForMinFormat", (value) => {
|
|
|
if (value) {
|
|
|
return value.substring(0, 16);
|
|
|
} else {
|
|
@@ -178,7 +178,7 @@ Vue.filter("dateForMinFormat", value => {
|
|
|
}
|
|
|
});
|
|
|
// 乐团状态
|
|
|
-Vue.filter("musicGroupType", value => {
|
|
|
+Vue.filter("musicGroupType", (value) => {
|
|
|
// let template = {
|
|
|
// APPLY: "报名中",
|
|
|
// PAY: "缴费中",
|
|
@@ -192,52 +192,48 @@ Vue.filter("musicGroupType", value => {
|
|
|
// }
|
|
|
return constant.musicGroupType[value];
|
|
|
});
|
|
|
-Vue.filter("paymentPatternTypeFormat", val => constant.paymentPatternType[val]);
|
|
|
+Vue.filter("paymentPatternTypeFormat", (val) => constant.paymentPatternType[val]);
|
|
|
// 支付用户类型
|
|
|
-Vue.filter("payUserTypeFormat", val => constant.payUserType[val]);
|
|
|
+Vue.filter("payUserTypeFormat", (val) => constant.payUserType[val]);
|
|
|
// 支付缴费方式
|
|
|
-Vue.filter("userPaymentTypeFormat", val => constant.userPaymentType[val]);
|
|
|
+Vue.filter("userPaymentTypeFormat", (val) => constant.userPaymentType[val]);
|
|
|
// 课程类型格式化
|
|
|
-Vue.filter("courseTypeFormat", val => constant.courseType[val]);
|
|
|
+Vue.filter("courseTypeFormat", (val) => constant.courseType[val]);
|
|
|
// 格式化签到签退记录 updateAttendanceEnum
|
|
|
-Vue.filter("updateAttendanceEnum", val => constant.updateAttendanceEnum[val]);
|
|
|
-Vue.filter("clientTypeFilter", val => constant.clientTypeFilter[val]);
|
|
|
+Vue.filter("updateAttendanceEnum", (val) => constant.updateAttendanceEnum[val]);
|
|
|
+Vue.filter("clientTypeFilter", (val) => constant.clientTypeFilter[val]);
|
|
|
// 机构状态
|
|
|
-Vue.filter("organState", val => constant.organState[val]);
|
|
|
+Vue.filter("organState", (val) => constant.organState[val]);
|
|
|
// 机构缴费状态
|
|
|
-Vue.filter("organPayState", val => constant.organPayState[val]);
|
|
|
+Vue.filter("organPayState", (val) => constant.organPayState[val]);
|
|
|
// 教学伴奏
|
|
|
-Vue.filter("clientType", val => constant.clientStatus[val]);
|
|
|
+Vue.filter("clientType", (val) => constant.clientStatus[val]);
|
|
|
// 会员周期
|
|
|
-Vue.filter("memberEnumType", val => {
|
|
|
+Vue.filter("memberEnumType", (val) => {
|
|
|
let template = {
|
|
|
DAY: "天",
|
|
|
- ...constant.memberEnum
|
|
|
+ ...constant.memberEnum,
|
|
|
};
|
|
|
// constant.memberEnum[val]
|
|
|
return template[val];
|
|
|
});
|
|
|
// 优惠券类型
|
|
|
-Vue.filter("coupontypeDetailType", val => constant.coupontypeDetail[val]);
|
|
|
+Vue.filter("coupontypeDetailType", (val) => constant.coupontypeDetail[val]);
|
|
|
|
|
|
// 学员回访状态 feedbackType
|
|
|
-Vue.filter("feedbackTypeFilter", val => constant.feedbackTypeAll[val]);
|
|
|
-Vue.filter("feedbackTypeDescFilter", val => constant.feedbackTypeDesc[val]);
|
|
|
+Vue.filter("feedbackTypeFilter", (val) => constant.feedbackTypeAll[val]);
|
|
|
+Vue.filter("feedbackTypeDescFilter", (val) => constant.feedbackTypeDesc[val]);
|
|
|
// 小小训练营状态
|
|
|
-Vue.filter("campStateListFilter", val => constant.campState[val]);
|
|
|
+Vue.filter("campStateListFilter", (val) => constant.campState[val]);
|
|
|
|
|
|
// 时间处理
|
|
|
-Vue.filter("timer", value => {
|
|
|
+Vue.filter("timer", (value) => {
|
|
|
if (value) {
|
|
|
let tempDate = new Date(value);
|
|
|
let month =
|
|
|
- tempDate.getHours() >= 10
|
|
|
- ? tempDate.getHours()
|
|
|
- : "0" + tempDate.getHours();
|
|
|
+ tempDate.getHours() >= 10 ? tempDate.getHours() : "0" + tempDate.getHours();
|
|
|
let days =
|
|
|
- tempDate.getMinutes() >= 10
|
|
|
- ? tempDate.getMinutes()
|
|
|
- : "0" + tempDate.getMinutes();
|
|
|
+ tempDate.getMinutes() >= 10 ? tempDate.getMinutes() : "0" + tempDate.getMinutes();
|
|
|
return month + ":" + days;
|
|
|
} else {
|
|
|
return value;
|
|
@@ -245,114 +241,106 @@ Vue.filter("timer", value => {
|
|
|
});
|
|
|
|
|
|
// 格式化成星期
|
|
|
-Vue.filter("formatWeek", date => {
|
|
|
+Vue.filter("formatWeek", (date) => {
|
|
|
let nd = new Date(date);
|
|
|
- let temp = [
|
|
|
- "星期天",
|
|
|
- "星期一",
|
|
|
- "星期二",
|
|
|
- "星期三",
|
|
|
- "星期四",
|
|
|
- "星期五",
|
|
|
- "星期六"
|
|
|
- ];
|
|
|
+ let temp = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
|
|
|
return temp[nd.getDay()];
|
|
|
});
|
|
|
|
|
|
// 职位
|
|
|
-Vue.filter("jobType", value => {
|
|
|
+Vue.filter("jobType", (value) => {
|
|
|
let template = {
|
|
|
ADVISER: "指导老师",
|
|
|
ACADEMIC: "乐团主管",
|
|
|
- TEACHING: "乐队指导"
|
|
|
+ TEACHING: "乐队指导",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 工作类型
|
|
|
-Vue.filter("jobNature", value => {
|
|
|
+Vue.filter("jobNature", (value) => {
|
|
|
return constant.jobNature[value];
|
|
|
});
|
|
|
// 发券方式
|
|
|
-Vue.filter("issueType", value => {
|
|
|
+Vue.filter("issueType", (value) => {
|
|
|
return constant.issue[value];
|
|
|
});
|
|
|
|
|
|
// 考勤状态
|
|
|
-Vue.filter("attendanceType", value => {
|
|
|
+Vue.filter("attendanceType", (value) => {
|
|
|
let template = {
|
|
|
0: "异常",
|
|
|
1: "正常",
|
|
|
- 3: "未签到"
|
|
|
+ 3: "未签到",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
// 考情签退
|
|
|
-Vue.filter("attendanceOutType", value => {
|
|
|
+Vue.filter("attendanceOutType", (value) => {
|
|
|
let template = {
|
|
|
0: "异常",
|
|
|
1: "正常",
|
|
|
- 3: "未签退"
|
|
|
+ 3: "未签退",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 上课类型
|
|
|
-Vue.filter("workType", value => {
|
|
|
+Vue.filter("workType", (value) => {
|
|
|
return constant.workType[value];
|
|
|
});
|
|
|
// 交易类型
|
|
|
-Vue.filter("orderType", value => constant.orderType[value]);
|
|
|
+Vue.filter("orderType", (value) => constant.orderType[value]);
|
|
|
|
|
|
//
|
|
|
-Vue.filter("paymentChannelType", value => {
|
|
|
+Vue.filter("paymentChannelType", (value) => {
|
|
|
let template = {
|
|
|
PER: "个人",
|
|
|
- COM: "公司"
|
|
|
+ COM: "公司",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 交易状态
|
|
|
-Vue.filter("dealStatus", value => {
|
|
|
+Vue.filter("dealStatus", (value) => {
|
|
|
let template = {
|
|
|
ING: "交易中",
|
|
|
SUCCESS: "成功交易",
|
|
|
FAILED: "交易失败",
|
|
|
- CLOSE: "交易关闭"
|
|
|
+ CLOSE: "交易关闭",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 交易状态
|
|
|
-Vue.filter("returnStatus", value => {
|
|
|
+Vue.filter("returnStatus", (value) => {
|
|
|
let template = {
|
|
|
ING: "审核中",
|
|
|
REJECT: "拒绝",
|
|
|
WAIT_PAYMENT: "待支付",
|
|
|
- DONE: "完成"
|
|
|
+ DONE: "完成",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 缴费状态
|
|
|
-Vue.filter("payTypeStatus", val => {
|
|
|
+Vue.filter("payTypeStatus", (val) => {
|
|
|
return constant.payStatus[val];
|
|
|
});
|
|
|
|
|
|
// 性别
|
|
|
-Vue.filter("sex", value => {
|
|
|
+Vue.filter("sex", (value) => {
|
|
|
let template = ["女", "男"];
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 服从调剂 isAllowAdjust
|
|
|
-Vue.filter("isAllowAdjust", value => {
|
|
|
+Vue.filter("isAllowAdjust", (value) => {
|
|
|
let template = ["否", "是"];
|
|
|
return template[value];
|
|
|
});
|
|
|
// 学员缴费状态 paymentStatus
|
|
|
-Vue.filter("paymentStatus", value => {
|
|
|
+Vue.filter("paymentStatus", (value) => {
|
|
|
let template = ["未开启缴费", "开启缴费", "已缴费"];
|
|
|
return template[value];
|
|
|
});
|
|
@@ -378,51 +366,51 @@ Vue.filter("paymentStatus", value => {
|
|
|
|
|
|
// 学生状态
|
|
|
/**studentStatus */
|
|
|
-Vue.filter("studentStatus", value => {
|
|
|
+Vue.filter("studentStatus", (value) => {
|
|
|
let template = ["在读", "已退课", "退课中", "休学"];
|
|
|
return template[value];
|
|
|
});
|
|
|
// 学生点名
|
|
|
-Vue.filter("studentRecord", value => {
|
|
|
+Vue.filter("studentRecord", (value) => {
|
|
|
let template = {
|
|
|
NORMAL: "正常",
|
|
|
TRUANT: "旷课",
|
|
|
LEAVE: "请假",
|
|
|
DROP_OUT: "退学",
|
|
|
LATE: "迟到",
|
|
|
- "": "未签到"
|
|
|
+ "": "未签到",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
// 是否
|
|
|
-Vue.filter("yesOrNo", value => {
|
|
|
+Vue.filter("yesOrNo", (value) => {
|
|
|
let template = ["否", "是"];
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 学员缴费状态
|
|
|
-Vue.filter("studentPay", value => {
|
|
|
+Vue.filter("studentPay", (value) => {
|
|
|
let template = {
|
|
|
PAID_COMPLETED: "完成缴费",
|
|
|
NON_PAYMENT: "未缴费",
|
|
|
- PROCESSING: "缴费中"
|
|
|
+ PROCESSING: "缴费中",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 学员点名详情
|
|
|
-Vue.filter("studentSign", value => {
|
|
|
+Vue.filter("studentSign", (value) => {
|
|
|
let template = {
|
|
|
NORMAL: "正常",
|
|
|
TRUANT: "旷课",
|
|
|
LEAVE: "请假",
|
|
|
DROP_OUT: "退学",
|
|
|
- LATE: "迟到"
|
|
|
+ LATE: "迟到",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
// 班级类型
|
|
|
-Vue.filter("classType", value => {
|
|
|
+Vue.filter("classType", (value) => {
|
|
|
let template = {
|
|
|
NORMAL: "声部班",
|
|
|
MIX: "合奏班",
|
|
@@ -432,27 +420,27 @@ Vue.filter("classType", value => {
|
|
|
SNAP: "临时班",
|
|
|
PRACTICE: "网管课",
|
|
|
HIGH_ONLINE: "线上基础技能课",
|
|
|
- MUSIC_NETWORK: "乐团网管课"
|
|
|
+ MUSIC_NETWORK: "乐团网管课",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
-Vue.filter("teachMode", value => {
|
|
|
+Vue.filter("teachMode", (value) => {
|
|
|
return constant.teachMode[value];
|
|
|
});
|
|
|
|
|
|
// 老师状态
|
|
|
-Vue.filter("teacherStatus", value => {
|
|
|
+Vue.filter("teacherStatus", (value) => {
|
|
|
let template = {
|
|
|
- "0": "正常",
|
|
|
- "1": "冻结",
|
|
|
- "9": "锁定"
|
|
|
+ 0: "正常",
|
|
|
+ 1: "冻结",
|
|
|
+ 9: "锁定",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// vip课状态
|
|
|
-Vue.filter("vipCourseStatus", value => {
|
|
|
+Vue.filter("vipCourseStatus", (value) => {
|
|
|
let template = {
|
|
|
0: "未开始",
|
|
|
1: "报名中",
|
|
@@ -460,42 +448,42 @@ Vue.filter("vipCourseStatus", value => {
|
|
|
2: "进行中",
|
|
|
4: "已结束",
|
|
|
3: "取消",
|
|
|
- 6: "暂停"
|
|
|
+ 6: "暂停",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 账号类型
|
|
|
-Vue.filter("accountTypeFormat", value => {
|
|
|
+Vue.filter("accountTypeFormat", (value) => {
|
|
|
let template = {
|
|
|
0: "对内",
|
|
|
- 1: "对外"
|
|
|
+ 1: "对外",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 扣减库存
|
|
|
-Vue.filter("stockTypeFormat", value => {
|
|
|
+Vue.filter("stockTypeFormat", (value) => {
|
|
|
let template = {
|
|
|
INTERNAL: "内部",
|
|
|
EXTERNAL: "外部",
|
|
|
- ALL: "内部,外部"
|
|
|
+ ALL: "内部,外部",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 交易状态
|
|
|
-Vue.filter("paymentChannelStatus", value => {
|
|
|
+Vue.filter("paymentChannelStatus", (value) => {
|
|
|
let template = {
|
|
|
YQPAY: "双乾",
|
|
|
BALANCE: "余额",
|
|
|
- ADAPAY: "汇付"
|
|
|
+ ADAPAY: "汇付",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// edition
|
|
|
-Vue.filter("editionFilter", value => {
|
|
|
+Vue.filter("editionFilter", (value) => {
|
|
|
let template = {
|
|
|
"ios-teacher": "苹果-老师端",
|
|
|
"ios-student": "苹果-学生端",
|
|
@@ -504,25 +492,25 @@ Vue.filter("editionFilter", value => {
|
|
|
"android-student": "安卓-学生端",
|
|
|
"android-education": "安卓-管理端",
|
|
|
"ios-electron": "苹果-桌面端",
|
|
|
- "win-electron": "win-桌面端"
|
|
|
+ "win-electron": "win-桌面端",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// payStatus 订单支付状态
|
|
|
-Vue.filter("payStatus", value => {
|
|
|
+Vue.filter("payStatus", (value) => {
|
|
|
let template = {
|
|
|
WAIT_PAY: "等待支付",
|
|
|
ING: "交易中",
|
|
|
SUCCESS: "成功交易",
|
|
|
FAILED: "交易失败",
|
|
|
- CLOSE: "交易关闭"
|
|
|
+ CLOSE: "交易关闭",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// payType 交易类型
|
|
|
-Vue.filter("payType", value => {
|
|
|
+Vue.filter("payType", (value) => {
|
|
|
let template = {
|
|
|
RECHARGE: "充值",
|
|
|
WITHDRAW: "提现",
|
|
@@ -531,146 +519,146 @@ Vue.filter("payType", value => {
|
|
|
FILL_ACCOUNT: "人工补账",
|
|
|
REFUNDS: "退费",
|
|
|
REWARDS: "奖励",
|
|
|
- WAGE: "工资"
|
|
|
+ WAGE: "工资",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 课程组状态 FINISH
|
|
|
-Vue.filter("courseGroup", value => {
|
|
|
+Vue.filter("courseGroup", (value) => {
|
|
|
let template = {
|
|
|
NORMAL: "正常",
|
|
|
LOCK: "锁定",
|
|
|
FINISH: "结束",
|
|
|
- CANCEL: "取消"
|
|
|
+ CANCEL: "取消",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
// 网管课程组
|
|
|
-Vue.filter("comCourseGroup", value => {
|
|
|
+Vue.filter("comCourseGroup", (value) => {
|
|
|
let template = {
|
|
|
NOT_START: "未开始",
|
|
|
LOCK: "锁定",
|
|
|
APPLYING: "报名中",
|
|
|
NORMAL: "进行中",
|
|
|
FINISH: "结束",
|
|
|
- CANCEL: "关闭"
|
|
|
+ CANCEL: "关闭",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
//网管课类型
|
|
|
-Vue.filter("comType", value => {
|
|
|
+Vue.filter("comType", (value) => {
|
|
|
let template = {
|
|
|
FREE: "免费",
|
|
|
CHARGE: "收费",
|
|
|
TRIAL: "试听课",
|
|
|
CARE_PACKAGE: "关心包",
|
|
|
- COME_ON_PACKAGE: "加油包"
|
|
|
+ COME_ON_PACKAGE: "加油包",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 首充续费
|
|
|
|
|
|
-Vue.filter("firstOrRenewFilter", value => {
|
|
|
+Vue.filter("firstOrRenewFilter", (value) => {
|
|
|
let template = {
|
|
|
- "0": "续费",
|
|
|
- "1": "首次"
|
|
|
+ 0: "续费",
|
|
|
+ 1: "首次",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 老师时间
|
|
|
-Vue.filter("transTypeFilter", value => {
|
|
|
+Vue.filter("transTypeFilter", (value) => {
|
|
|
let template = {
|
|
|
RECHARGE: "充值",
|
|
|
CONSUME: "建课",
|
|
|
RETURN: "退课",
|
|
|
MANUAL_ADD: "系统充值",
|
|
|
- MANUAL_SUB: "系统扣除"
|
|
|
+ MANUAL_SUB: "系统扣除",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// paymentType
|
|
|
-Vue.filter("paymentType", value => {
|
|
|
+Vue.filter("paymentType", (value) => {
|
|
|
let template = {
|
|
|
OFFLINE: "线下",
|
|
|
ONLINE: "线上",
|
|
|
- ALL: "全部"
|
|
|
+ ALL: "全部",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
-Vue.filter("paymentListStatus", value => {
|
|
|
+Vue.filter("paymentListStatus", (value) => {
|
|
|
let template = {
|
|
|
0: "未开始",
|
|
|
1: "已开启",
|
|
|
- 2: "已结束"
|
|
|
+ 2: "已结束",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// paymentStatus
|
|
|
-Vue.filter("paymentStatusDetall", value => {
|
|
|
+Vue.filter("paymentStatusDetall", (value) => {
|
|
|
let template = {
|
|
|
PAID_COMPLETED: "已缴费",
|
|
|
PROCESSING: "缴费中",
|
|
|
- NON_PAYMENT: "未缴费"
|
|
|
+ NON_PAYMENT: "未缴费",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
-Vue.filter("paymentStatusGet", value => {
|
|
|
+Vue.filter("paymentStatusGet", (value) => {
|
|
|
let template = {
|
|
|
PAID_COMPLETED: "已付款",
|
|
|
PROCESSING: "付款中",
|
|
|
- NON_PAYMENT: "未付款"
|
|
|
+ NON_PAYMENT: "未付款",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
-Vue.filter("replacementInsFilter", value => {
|
|
|
+Vue.filter("replacementInsFilter", (value) => {
|
|
|
let template = {
|
|
|
2: "已缴费",
|
|
|
1: "缴费中",
|
|
|
- 0: "未缴费"
|
|
|
+ 0: "未缴费",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 课时申诉
|
|
|
-Vue.filter("complaintsStatusEnum", value => {
|
|
|
+Vue.filter("complaintsStatusEnum", (value) => {
|
|
|
let template = {
|
|
|
0: "已拒绝",
|
|
|
1: "已通过",
|
|
|
2: "待处理",
|
|
|
- 3: "已撤销"
|
|
|
+ 3: "已撤销",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 人事状态 isProbationPeriod
|
|
|
-Vue.filter("isProbationPeriod", value => {
|
|
|
+Vue.filter("isProbationPeriod", (value) => {
|
|
|
let template = {
|
|
|
0: "正式",
|
|
|
1: "试用",
|
|
|
- 2: "离职"
|
|
|
+ 2: "离职",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
-Vue.filter("visiterType", value => {
|
|
|
+Vue.filter("visiterType", (value) => {
|
|
|
let template = {
|
|
|
TEACHER: "指导老师",
|
|
|
- EDU_TEACHER: "乐团主管"
|
|
|
+ EDU_TEACHER: "乐团主管",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 人力资源人员状态
|
|
|
|
|
|
-Vue.filter("hrStatus", value => {
|
|
|
+Vue.filter("hrStatus", (value) => {
|
|
|
let template = {
|
|
|
NOT_EMPLOYED: "未录用",
|
|
|
INTERVIEWING: "面试中",
|
|
@@ -678,44 +666,44 @@ Vue.filter("hrStatus", value => {
|
|
|
PART_TIME: "兼职",
|
|
|
FULL_TIME: "全职",
|
|
|
DIMISSION: "离职",
|
|
|
- BLACK_LIST: "黑名单"
|
|
|
+ BLACK_LIST: "黑名单",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 费用类型
|
|
|
|
|
|
-Vue.filter("feeType", value => {
|
|
|
+Vue.filter("feeType", (value) => {
|
|
|
return constant.feeType[value];
|
|
|
});
|
|
|
|
|
|
// 费用项目
|
|
|
|
|
|
-Vue.filter("feeProject", value => {
|
|
|
+Vue.filter("feeProject", (value) => {
|
|
|
return constant.feeProject[value];
|
|
|
});
|
|
|
|
|
|
// 销售类型
|
|
|
|
|
|
-Vue.filter("saleType", value => {
|
|
|
+Vue.filter("saleType", (value) => {
|
|
|
return constant.saleType[value];
|
|
|
});
|
|
|
// 退费类型 backType
|
|
|
-Vue.filter("backType", value => {
|
|
|
+Vue.filter("backType", (value) => {
|
|
|
return constant.backType[value];
|
|
|
});
|
|
|
// 缴费状态
|
|
|
|
|
|
-Vue.filter("teamPayStatus", value => {
|
|
|
+Vue.filter("teamPayStatus", (value) => {
|
|
|
const tpl = {
|
|
|
0: "按月",
|
|
|
1: "按学期",
|
|
|
- 2: "一次性"
|
|
|
+ 2: "一次性",
|
|
|
};
|
|
|
return tpl[value];
|
|
|
});
|
|
|
|
|
|
-Vue.filter("numberFormat", value => {
|
|
|
+Vue.filter("numberFormat", (value) => {
|
|
|
return numeral(value).format("0,0");
|
|
|
});
|
|
|
|
|
@@ -727,182 +715,217 @@ Vue.filter("moneyFormat", (value, unit = false) => {
|
|
|
return numeral(value).format("0,0.00");
|
|
|
}
|
|
|
});
|
|
|
-Vue.filter("hasMoneyFormat", value => {
|
|
|
+Vue.filter("hasMoneyFormat", (value) => {
|
|
|
if (value) {
|
|
|
return numeral(value).format("0,0.00") + "元";
|
|
|
} else {
|
|
|
return "--";
|
|
|
}
|
|
|
});
|
|
|
-Vue.filter("stockTypeStatus", value => {
|
|
|
+Vue.filter("stockTypeStatus", (value) => {
|
|
|
const template = {
|
|
|
INTERNAL: "内部",
|
|
|
EXTERNAL: "外部",
|
|
|
- ALL: "全部"
|
|
|
+ ALL: "全部",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
// 确认收货类型
|
|
|
-Vue.filter("receiveFormat", value => {
|
|
|
+Vue.filter("receiveFormat", (value) => {
|
|
|
let template = {
|
|
|
NO_RECEIVE: "未确认",
|
|
|
MANUAL_RECEIVE: "手动确认",
|
|
|
- AUTO_RECEIVE: "自动确认"
|
|
|
+ AUTO_RECEIVE: "自动确认",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
// 缴费方式
|
|
|
|
|
|
-Vue.filter("payOrderType", value => {
|
|
|
+Vue.filter("payOrderType", (value) => {
|
|
|
return constant.payOrderType[value];
|
|
|
});
|
|
|
|
|
|
// 审核状态 auditType
|
|
|
-Vue.filter("auditType", value => {
|
|
|
+Vue.filter("auditType", (value) => {
|
|
|
return constant.auditType[value];
|
|
|
});
|
|
|
|
|
|
// 审核申请类型 auditPaymentType
|
|
|
-Vue.filter("auditPaymentType", value => {
|
|
|
+Vue.filter("auditPaymentType", (value) => {
|
|
|
return constant.auditPaymentType[value];
|
|
|
});
|
|
|
|
|
|
// 销售收入和服务收入
|
|
|
-Vue.filter("orderServer", value => {
|
|
|
+Vue.filter("orderServer", (value) => {
|
|
|
return constant.orderServerType[value];
|
|
|
});
|
|
|
|
|
|
// 订单审核状态 orderAuditType
|
|
|
-Vue.filter("orderAuditType", value => {
|
|
|
+Vue.filter("orderAuditType", (value) => {
|
|
|
constant.orderAuditType[""] = "审核通过";
|
|
|
return constant.orderAuditType[value];
|
|
|
});
|
|
|
|
|
|
-Vue.filter("songUseTypeFormat", value => {
|
|
|
+Vue.filter("songUseTypeFormat", (value) => {
|
|
|
return constant.songUseType[value];
|
|
|
});
|
|
|
|
|
|
-Vue.filter("rewardModeTypeFormat", value => {
|
|
|
+Vue.filter("rewardModeTypeFormat", (value) => {
|
|
|
return constant.rewardModeType[value];
|
|
|
});
|
|
|
// 系统日志类型
|
|
|
-Vue.filter("journalTypeFormat", value => {
|
|
|
+Vue.filter("journalTypeFormat", (value) => {
|
|
|
return constant.journalType[value];
|
|
|
});
|
|
|
|
|
|
// 日程安排 inspectionItem
|
|
|
-Vue.filter("inspectionItemFormat", value => {
|
|
|
+Vue.filter("inspectionItemFormat", (value) => {
|
|
|
return constant.inspectionItem[value];
|
|
|
});
|
|
|
|
|
|
// 学员列表关心包,加油包
|
|
|
-Vue.filter("studentPackage", value => {
|
|
|
+Vue.filter("studentPackage", (value) => {
|
|
|
return constant.packageStatus[value];
|
|
|
});
|
|
|
|
|
|
// 分部 学年制
|
|
|
-Vue.filter("gradeTypeFormat", value => {
|
|
|
+Vue.filter("gradeTypeFormat", (value) => {
|
|
|
return constant.gradeType[value];
|
|
|
});
|
|
|
// 老师状态
|
|
|
-Vue.filter("ProbationPeriod", value => {
|
|
|
+Vue.filter("ProbationPeriod", (value) => {
|
|
|
return constant.ProbationPeriodStatus[value];
|
|
|
});
|
|
|
|
|
|
// 下载列表 类型
|
|
|
// downListType
|
|
|
-Vue.filter("downListType", value => {
|
|
|
+Vue.filter("downListType", (value) => {
|
|
|
return constant.downListType[value];
|
|
|
});
|
|
|
|
|
|
// 退团状态
|
|
|
-Vue.filter("withdrawalStatus", value => {
|
|
|
+Vue.filter("withdrawalStatus", (value) => {
|
|
|
return constant.withdrawalStatus[value];
|
|
|
});
|
|
|
//
|
|
|
-Vue.filter("conclusionStatus", value => {
|
|
|
+Vue.filter("conclusionStatus", (value) => {
|
|
|
return constant.conclusion[value];
|
|
|
});
|
|
|
-Vue.filter("courseViewType", value => {
|
|
|
+Vue.filter("courseViewType", (value) => {
|
|
|
return constant.courseViewType[value];
|
|
|
});
|
|
|
-Vue.filter("couponTypeFilter", value => {
|
|
|
+Vue.filter("couponTypeFilter", (value) => {
|
|
|
return constant.couponType[value];
|
|
|
});
|
|
|
// couponType
|
|
|
-Vue.filter("catRoleFilter", value => {
|
|
|
+Vue.filter("catRoleFilter", (value) => {
|
|
|
return constant.couponType[value];
|
|
|
});
|
|
|
|
|
|
-Vue.filter("tenantStatus", value => {
|
|
|
+Vue.filter("tenantStatus", (value) => {
|
|
|
return constant.tenantStatus[value];
|
|
|
});
|
|
|
|
|
|
-Vue.filter("cloudGroupActive", value => {
|
|
|
+Vue.filter("cloudGroupActive", (value) => {
|
|
|
let template = {
|
|
|
1: "天数",
|
|
|
2: "月度",
|
|
|
3: "季度",
|
|
|
4: "半年",
|
|
|
- 5: "年度"
|
|
|
+ 5: "年度",
|
|
|
};
|
|
|
return template[value];
|
|
|
});
|
|
|
|
|
|
-Vue.filter("chargingStatus", value => {
|
|
|
+Vue.filter("chargingStatus", (value) => {
|
|
|
return constant.chargingStatus[value];
|
|
|
});
|
|
|
|
|
|
// 群消息类型
|
|
|
-Vue.filter("catgGoupType", value => {
|
|
|
+Vue.filter("catgGoupType", (value) => {
|
|
|
return constant.catgGoupType[value];
|
|
|
});
|
|
|
// 群类型
|
|
|
|
|
|
-Vue.filter("catType", value => {
|
|
|
+Vue.filter("catType", (value) => {
|
|
|
return constant.catType[value];
|
|
|
});
|
|
|
|
|
|
-Vue.filter("catDotType", value => {
|
|
|
+Vue.filter("catDotType", (value) => {
|
|
|
return constant.catDotType[value];
|
|
|
});
|
|
|
|
|
|
-Vue.filter("quiteReasonFilter", value => {
|
|
|
+Vue.filter("quiteReasonFilter", (value) => {
|
|
|
return constant.quiteReason[value];
|
|
|
});
|
|
|
|
|
|
// 直播设备
|
|
|
-Vue.filter("osFilter", value => {
|
|
|
+Vue.filter("osFilter", (value) => {
|
|
|
return constant.osType[value];
|
|
|
});
|
|
|
|
|
|
// 直播方案
|
|
|
-Vue.filter("serviceProvider", value => {
|
|
|
+Vue.filter("serviceProvider", (value) => {
|
|
|
return constant.serviceProvider[value];
|
|
|
});
|
|
|
// 考级状态
|
|
|
-Vue.filter("levelStatus", value => {
|
|
|
+Vue.filter("levelStatus", (value) => {
|
|
|
return constant.levelStatus[value];
|
|
|
});
|
|
|
|
|
|
// palyLevel 难度
|
|
|
-Vue.filter("palyLevelFilter", value => {
|
|
|
+Vue.filter("palyLevelFilter", (value) => {
|
|
|
return constant.palyLevel[value];
|
|
|
});
|
|
|
-Vue.filter("usageStatus", value => {
|
|
|
+
|
|
|
+// schoolUserType
|
|
|
+Vue.filter("schoolUserType", (value) => {
|
|
|
+ return constant.schoolUserType[value];
|
|
|
+});
|
|
|
+// 学校巡堂综合评价
|
|
|
+Vue.filter("evaluateStatus", (value) => {
|
|
|
+ return constant.evaluateStatus[value];
|
|
|
+});
|
|
|
+// 学校巡堂问题类型
|
|
|
+Vue.filter("problemType", (value) => {
|
|
|
+ // 自定义问题类型
|
|
|
+ if (value) {
|
|
|
+ const arrList = value
|
|
|
+ .split(",")
|
|
|
+ .map((item) => {
|
|
|
+ return constant.problemType[item];
|
|
|
+ })
|
|
|
+ .join(",");
|
|
|
+ return arrList;
|
|
|
+ // constant.problemType[value];
|
|
|
+ } else {
|
|
|
+ return "--";
|
|
|
+ }
|
|
|
+});
|
|
|
+
|
|
|
+Vue.filter("schoolUserStatus", (value) => {
|
|
|
+ let obj = {
|
|
|
+ "-1": "注销",
|
|
|
+ 9: "冻结",
|
|
|
+ 1: "激活",
|
|
|
+ };
|
|
|
+ return obj[value];
|
|
|
+});
|
|
|
+
|
|
|
+Vue.filter("usageStatus", (value) => {
|
|
|
let obj = {
|
|
|
0: "未使用",
|
|
|
1: "已使用",
|
|
|
- 2: "已过期"
|
|
|
+ 2: "已过期",
|
|
|
};
|
|
|
return obj[value];
|
|
|
});
|
|
|
-Vue.filter("liveState", value => {
|
|
|
+Vue.filter("liveState", (value) => {
|
|
|
let obj = {
|
|
|
0: "未开始",
|
|
|
1: "直播中",
|
|
|
- 2: "已结束"
|
|
|
+ 2: "已结束",
|
|
|
};
|
|
|
return obj[value];
|
|
|
});
|