|
@@ -157,7 +157,7 @@
|
|
|
class="multiple"
|
|
|
v-model.trim="searchForm.isRecord"
|
|
|
clearable
|
|
|
- placeholder="是否使用云教练"
|
|
|
+ placeholder="是否使用团练宝"
|
|
|
>
|
|
|
<el-option label="是" value="1"></el-option>
|
|
|
<el-option label="否" value="0"></el-option>
|
|
@@ -174,18 +174,13 @@
|
|
|
>
|
|
|
</el-form-item>
|
|
|
</save-form>
|
|
|
- <!-- <div
|
|
|
- class="newBand"
|
|
|
- v-permission="'studentManage/register'"
|
|
|
- @click="addStudent"
|
|
|
- >
|
|
|
- 新增学员
|
|
|
- </div>
|
|
|
- <div class="newBand" @click="onCreateQRCode">学员激活列表</div> -->
|
|
|
+ <el-button style="margin-bottom: 20px;" type="primary"
|
|
|
+ @click="addStudentMember" icon="el-icon-plus">添加会员</el-button>
|
|
|
<el-button
|
|
|
v-permission="'studentManage/register'"
|
|
|
@click="addStudent"
|
|
|
type="primary"
|
|
|
+ icon="el-icon-plus"
|
|
|
style="margin-bottom:20px"
|
|
|
>
|
|
|
新增学员
|
|
@@ -202,7 +197,12 @@
|
|
|
<el-table
|
|
|
:data="tableList"
|
|
|
:header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
>
|
|
|
+ <el-table-column
|
|
|
+ type="selection"
|
|
|
+ width="55"
|
|
|
+ ></el-table-column>
|
|
|
<el-table-column type="expand">
|
|
|
<template slot-scope="props">
|
|
|
<el-form label-position="left" class="demo-table-expand" :inline='true'>
|
|
@@ -382,7 +382,7 @@
|
|
|
scope.row.serviceTag ? "是" : "否"
|
|
|
}}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" label="是否使用云教练">
|
|
|
+ <el-table-column align="center" label="是否使用团练宝">
|
|
|
<template slot-scope="scope">{{
|
|
|
scope.row.recordUserId > 0 ? "是" : "否"
|
|
|
}}</template>
|
|
@@ -883,6 +883,24 @@
|
|
|
<el-button @click="protocolVisible = false">取 消</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
+ title="添加会员"
|
|
|
+ width="500px"
|
|
|
+ :visible.sync="memberVisible"
|
|
|
+ >
|
|
|
+ <createMember
|
|
|
+ ref="addMember"
|
|
|
+ v-if="memberVisible"
|
|
|
+ :multipleSelection="multipleSelection"
|
|
|
+ @close="memberVisible = false"
|
|
|
+ @submited="getList"
|
|
|
+ />
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="memberVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="submitAddMember">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -892,24 +910,21 @@ import {
|
|
|
getStudentInfoByPhone,
|
|
|
registerStudent,
|
|
|
updateStudent,
|
|
|
- studentHasCourse,
|
|
|
getLatest,
|
|
|
} from "@/api/studentManager";
|
|
|
import { queryByOrganId } from "@/api/systemManage";
|
|
|
import qrCode from "@/components/QrCode/index";
|
|
|
-import cleanDeep from "clean-deep";
|
|
|
import { vaildStudentUrl } from "@/utils/validate";
|
|
|
-import { getEmployeeOrgan, resetPassword2, getTeacher } from "@/api/buildTeam";
|
|
|
+import { resetPassword2, getTeacher } from "@/api/buildTeam";
|
|
|
import { subjectListTree } from "@/api/specialSetting";
|
|
|
import axios from "axios";
|
|
|
import qs from "qs";
|
|
|
-import { packageStatus } from "@/constant/index";
|
|
|
import { getToken, getTenantId } from "@/utils/auth";
|
|
|
import load from "@/utils/loading";
|
|
|
-import { permission } from "@/utils/directivePage";
|
|
|
+import createMember from "@/views/teamDetail/components/modals/createMember";
|
|
|
export default {
|
|
|
name: "studentManagerList",
|
|
|
- components: { pagination, qrCode },
|
|
|
+ components: { pagination, qrCode, createMember },
|
|
|
data() {
|
|
|
return {
|
|
|
studentVisible: false,
|
|
@@ -930,6 +945,8 @@ export default {
|
|
|
hasTeacher: null,
|
|
|
isRecord: null,
|
|
|
},
|
|
|
+ memberVisible: false,
|
|
|
+ multipleSelection: [],
|
|
|
searchList: [],
|
|
|
tableList: [],
|
|
|
organList: [],
|
|
@@ -1014,6 +1031,19 @@ export default {
|
|
|
this.tenantId = this.$helpers.tenantId;
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleSelectionChange(val) {
|
|
|
+ this.multipleSelection = val;
|
|
|
+ },
|
|
|
+ submitAddMember() {
|
|
|
+ this.$refs.addMember.submit();
|
|
|
+ },
|
|
|
+ addStudentMember() {
|
|
|
+ if (this.multipleSelection.length > 0) {
|
|
|
+ this.memberVisible = true;
|
|
|
+ } else {
|
|
|
+ this.$message.error("请至少选择一名学员");
|
|
|
+ }
|
|
|
+ },
|
|
|
onSearch() {
|
|
|
this.pageInfo.page = 1;
|
|
|
this.getList();
|
|
@@ -1028,9 +1058,9 @@ export default {
|
|
|
if (version == 3) {
|
|
|
str = "(含系统)";
|
|
|
} else if (version == 4) {
|
|
|
- str = "(含云教练)";
|
|
|
+ str = "(含团练宝)";
|
|
|
} else if (version == 5) {
|
|
|
- str = "(含云教练<sup>+</sup>)";
|
|
|
+ str = "(含团练宝<sup>+</sup>)";
|
|
|
}
|
|
|
return str;
|
|
|
},
|
|
@@ -1064,25 +1094,6 @@ export default {
|
|
|
downLoadStudent() {
|
|
|
let url = "/api-web/export/studentHasCourse";
|
|
|
let searchForm = this.searchForm;
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * organId: null,
|
|
|
- search: null,
|
|
|
- studentName: null,
|
|
|
- isActive: null,
|
|
|
- hasCourse: null,
|
|
|
- // isMake: null,
|
|
|
- hasPracticeCourse: null,
|
|
|
- operatingTag: null,
|
|
|
- serviceTag: null,
|
|
|
- teacherId: null,
|
|
|
- carePackage: null,
|
|
|
- comeOnPackage: null,
|
|
|
- isNewUser: null,
|
|
|
- hasTeacher: null,
|
|
|
- isRecord: null,
|
|
|
- */
|
|
|
let data = {
|
|
|
organId: searchForm.organId.join(','),
|
|
|
search: searchForm.search+'' ? searchForm.search : null,
|