|
@@ -151,53 +151,59 @@
|
|
|
:data="tableList"
|
|
|
:header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
|
>
|
|
|
- <el-table-column align="center" prop="userId" label="学员编号">
|
|
|
+ <el-table-column align="center" prop="organName" label="所属分部">
|
|
|
<template slot-scope="scope">
|
|
|
- <copy-text>{{ scope.row.userId }}</copy-text>
|
|
|
+ <copy-text>{{ scope.row.organName }}</copy-text>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="username" label="学员姓名">
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ prop="userId"
|
|
|
+ label="学员信息"
|
|
|
+ width="140px"
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
- <copy-text>{{ scope.row.username }}</copy-text>
|
|
|
+ {{ scope.row.username }}
|
|
|
+ ({{ scope.row.gender ? "男" : "女" }})<br />
|
|
|
+ <copy-text>{{ scope.row.userId }}</copy-text>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" prop="organName" label="所属分部">
|
|
|
+ <!-- <el-table-column align="center" prop="username" label="学员姓名">
|
|
|
+ <template slot-scope="scope"> </template>
|
|
|
+ </el-table-column> -->
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ prop="realName"
|
|
|
+ label="家长信息"
|
|
|
+ width="140px"
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
- <copy-text>{{ scope.row.organName }}</copy-text>
|
|
|
+ {{ scope.row.realName }}
|
|
|
+ <br />
|
|
|
+ <copy-text>{{ scope.row.parentsPhone }}</copy-text>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
- prop="cooperationOrganName"
|
|
|
- label="所属学校"
|
|
|
+ prop="subjectName"
|
|
|
+ label="声部"
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
- prop="subjectName"
|
|
|
- label="声部"
|
|
|
+ prop="cooperationOrganName"
|
|
|
+ label="所属学校"
|
|
|
></el-table-column>
|
|
|
+
|
|
|
<el-table-column align="center" prop="teacherName" label="指导老师">
|
|
|
<template slot-scope="scope">
|
|
|
<copy-text>{{ scope.row.teacherName }}</copy-text>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="性别">
|
|
|
- <template slot-scope="scope">{{
|
|
|
- scope.row.gender ? "男" : "女"
|
|
|
- }}</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- align="center"
|
|
|
- prop="realName"
|
|
|
- label="家长姓名"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column
|
|
|
- align="center"
|
|
|
- width="120px"
|
|
|
- prop="parentsPhone"
|
|
|
- label="家长联系电话"
|
|
|
- ></el-table-column>
|
|
|
- <!-- <el-table-column
|
|
|
+ <!-- <el-table-column align="center" label="性别">
|
|
|
+ <template slot-scope="scope"></template>
|
|
|
+ </el-table-column> -->
|
|
|
+
|
|
|
+ <!-- <el-table-column
|
|
|
align="center"
|
|
|
prop="leaveNum"
|
|
|
label="本月请假次数"
|
|
@@ -232,7 +238,7 @@
|
|
|
scope.row.noStartPracticeCourseNum
|
|
|
}}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="vip课剩余课时">
|
|
|
+ <el-table-column align="center" label="vip课剩余课时">
|
|
|
<template slot-scope="scope">{{
|
|
|
scope.row.noStartVipCourseNum
|
|
|
}}</template>
|
|
@@ -247,6 +253,21 @@
|
|
|
scope.row.serviceTag ? "是" : "否"
|
|
|
}}</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ width="120px"
|
|
|
+ prop="parentsPhone"
|
|
|
+ label="会员截止日期"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div v-if="scope.row.membershipEndTime" :class="checkDate(scope.row.membershipEndTime)?'':'red'">
|
|
|
+ {{scope.row.membershipEndTime|dayjsFormat}}
|
|
|
+ </div>
|
|
|
+ <div v-else class="red">
|
|
|
+ 未购买会员
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="center" label="是否是新用户">
|
|
|
<template slot="header">
|
|
|
<p style="position: relative">
|
|
@@ -277,23 +298,17 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- align="center"
|
|
|
- prop="balance"
|
|
|
- label="账户余额(元)"
|
|
|
- >
|
|
|
+ <el-table-column align="center" prop="balance" label="账户余额(元)">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
{{ scope.row.balance | moneyFormat }}
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- align="center"
|
|
|
- prop="carePackage"
|
|
|
- label="关心包"
|
|
|
- >
|
|
|
- <template slot-scope="scope">{{ scope.row.carePackage | studentPackage }}</template>
|
|
|
+ <el-table-column align="center" prop="carePackage" label="关心包">
|
|
|
+ <template slot-scope="scope">{{
|
|
|
+ scope.row.carePackage | studentPackage
|
|
|
+ }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" prop="comeOnPackage" label="加油包">
|
|
|
<template slot-scope="scope">{{
|
|
@@ -422,7 +437,10 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="家长姓名" prop="parseName">
|
|
|
- <el-input v-model.trim="studentForm.parseName" :disabled="!isNew"></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model.trim="studentForm.parseName"
|
|
|
+ :disabled="!isNew"
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item
|
|
|
label="联系电话"
|
|
@@ -447,7 +465,6 @@
|
|
|
clearable
|
|
|
placeholder="请选择分部"
|
|
|
@change="changeStudentOrgan"
|
|
|
-
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item, index) in selects.branchs"
|
|
@@ -458,7 +475,13 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="school" label="所属学校">
|
|
|
- <el-select v-model.trim="studentForm.school" filterable clearable :disabled='!studentForm.organId' class="multiple">
|
|
|
+ <el-select
|
|
|
+ v-model.trim="studentForm.school"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ :disabled="!studentForm.organId"
|
|
|
+ class="multiple"
|
|
|
+ >
|
|
|
<el-option
|
|
|
v-for="(item, index) in cooperationList"
|
|
|
:key="index"
|
|
@@ -650,7 +673,9 @@
|
|
|
<el-table-column align="center" prop="studentId" label="协议名称">
|
|
|
<template slot-scope="scope">
|
|
|
<!-- {{ formatProtocol(scope.row.version) }} -->
|
|
|
- <span v-html="`产品与服务协议${formatProtocol(scope.row.version)}`"></span>
|
|
|
+ <span
|
|
|
+ v-html="`产品与服务协议${formatProtocol(scope.row.version)}`"
|
|
|
+ ></span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="签署时间" prop="createTime">
|
|
@@ -742,7 +767,7 @@ export default {
|
|
|
isNewUser: 1,
|
|
|
carePackage: 0,
|
|
|
comeOnPackage: 0,
|
|
|
- school:null
|
|
|
+ school: null,
|
|
|
},
|
|
|
studentUpdatePackage: {
|
|
|
carePackage: 0,
|
|
@@ -778,8 +803,8 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
- if(this.$route.params.search){
|
|
|
- this.searchForm.search = this.$route.params.search
|
|
|
+ if (this.$route.params.search) {
|
|
|
+ this.searchForm.search = this.$route.params.search;
|
|
|
}
|
|
|
this.$store.dispatch("setBranchs");
|
|
|
this.$store.dispatch("setTeachers");
|
|
@@ -796,15 +821,15 @@ export default {
|
|
|
this.qrcodeUrl = vaildStudentUrl() + `/#/queryStudentPer`;
|
|
|
},
|
|
|
formatProtocol(version) {
|
|
|
- let str = '(含课程)'
|
|
|
- if(version == 3) {
|
|
|
- str = '(含系统)'
|
|
|
- } else if(version == 4) {
|
|
|
- str = '(含云教练)'
|
|
|
- } else if(version == 5) {
|
|
|
- str = '(含云教练<sup>+</sup>)'
|
|
|
- }
|
|
|
- return str
|
|
|
+ let str = "(含课程)";
|
|
|
+ if (version == 3) {
|
|
|
+ str = "(含系统)";
|
|
|
+ } else if (version == 4) {
|
|
|
+ str = "(含云教练)";
|
|
|
+ } else if (version == 5) {
|
|
|
+ str = "(含云教练<sup>+</sup>)";
|
|
|
+ }
|
|
|
+ return str;
|
|
|
},
|
|
|
getList() {
|
|
|
let params = this.searchForm;
|
|
@@ -945,7 +970,7 @@ export default {
|
|
|
subjectIdList: studentForm.subjectIdList,
|
|
|
carePackage: studentForm.carePackage,
|
|
|
comeOnPackage: studentForm.comeOnPackage,
|
|
|
- cooperationOrganId:studentForm.school
|
|
|
+ cooperationOrganId: studentForm.school,
|
|
|
};
|
|
|
registerStudent(obj).then((res) => {
|
|
|
if (res.code == 200) {
|
|
@@ -977,7 +1002,7 @@ export default {
|
|
|
subjectIdList: studentForm.subjectIdList,
|
|
|
carePackage: studentForm.carePackage,
|
|
|
comeOnPackage: studentForm.comeOnPackage,
|
|
|
- cooperationOrganId:studentForm.school
|
|
|
+ cooperationOrganId: studentForm.school,
|
|
|
};
|
|
|
updateStudent(obj).then((res) => {
|
|
|
if (res.code == 200) {
|
|
@@ -1045,7 +1070,7 @@ export default {
|
|
|
subjectIdList: Number(row.subjectIdList) || null,
|
|
|
carePackage: row.carePackage,
|
|
|
comeOnPackage: row.comeOnPackage,
|
|
|
- school:row.cooperationOrganId
|
|
|
+ school: row.cooperationOrganId,
|
|
|
};
|
|
|
this.studentUpdatePackage = {
|
|
|
carePackage: row.carePackage,
|
|
@@ -1095,7 +1120,7 @@ export default {
|
|
|
},
|
|
|
async changeStudentOrgan(val) {
|
|
|
this.studentForm.teacherId = null;
|
|
|
- this.studentForm.school=null;
|
|
|
+ this.studentForm.school = null;
|
|
|
if (val) {
|
|
|
await getTeacher({ organId: val }).then((res) => {
|
|
|
if (res.code == 200) {
|
|
@@ -1124,6 +1149,11 @@ export default {
|
|
|
onDownloadProtocol(item) {
|
|
|
window.location.href = item.url;
|
|
|
},
|
|
|
+ checkDate(dateStr){
|
|
|
+ let dayjs = this.$helpers.dayjs;
|
|
|
+ let nowDate = new Date().getTime()
|
|
|
+ return nowDate - dayjs(dateStr).valueOf() <0
|
|
|
+ }
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -1146,4 +1176,7 @@ export default {
|
|
|
width: 185px !important;
|
|
|
}
|
|
|
}
|
|
|
+.red {
|
|
|
+ color: red;
|
|
|
+}
|
|
|
</style>
|