|
@@ -521,6 +521,12 @@
|
|
|
<el-button
|
|
|
type="text"
|
|
|
style="padding-left: 10px"
|
|
|
+ @click="setStudent(scope.row)"
|
|
|
+ >设置扩展分部</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ style="padding-left: 10px"
|
|
|
v-permission="'studentManage/studentUpdate'"
|
|
|
@click="resetStudent(scope.row)"
|
|
|
>修改</el-button
|
|
@@ -848,6 +854,10 @@
|
|
|
<protocol-model v-if="protocolVisible" @close="protocolVisible = false" :protocolVersions="protocolVersions" />
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <el-dialog title="设置扩展分部" :visible.sync="extVisible" width="500px">
|
|
|
+ <student-ext v-if="extVisible" :subjectList="subjectList" :detail="extDetail" @getList="getList" @close="extVisible = false" />
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
<el-dialog
|
|
|
title="创建团练宝缴费"
|
|
|
width="500px"
|
|
@@ -887,11 +897,14 @@ import qs from "qs";
|
|
|
import { getToken, getTenantId } from "@/utils/auth";
|
|
|
import load from "@/utils/loading";
|
|
|
import createMember from "./modals/createMember";
|
|
|
+import studentExt from './modals/studentExt'
|
|
|
export default {
|
|
|
name: "studentManagerList",
|
|
|
- components: { pagination, qrCode, createMember, protocolModel },
|
|
|
+ components: { pagination, qrCode, createMember, protocolModel, studentExt },
|
|
|
data() {
|
|
|
return {
|
|
|
+ extVisible: false,
|
|
|
+ extDetail: {},
|
|
|
studentVisible: false,
|
|
|
searchForm: {
|
|
|
organId: [],
|
|
@@ -1303,6 +1316,28 @@ export default {
|
|
|
};
|
|
|
});
|
|
|
},
|
|
|
+ async setStudent(row) { // 设置扩展分部
|
|
|
+ await this.getSubjectList();
|
|
|
+ this.extDetail = {
|
|
|
+ id: row.userId,
|
|
|
+ phone: row.parentsPhone || null,
|
|
|
+ name: row.username || null,
|
|
|
+ sex: row.gender,
|
|
|
+ parseName: row.realName || null,
|
|
|
+ date: row.birthdate || null,
|
|
|
+ organId: row.organId || null,
|
|
|
+ serviceTag: row.serviceTag,
|
|
|
+ operatingTag: row.operatingTag,
|
|
|
+ teacherId: row.teacherId || null,
|
|
|
+ isNewUser: row.isNewUser,
|
|
|
+ subjectIdList: Number(row.subjectIdList) || null,
|
|
|
+ carePackage: row.carePackage,
|
|
|
+ comeOnPackage: row.comeOnPackage,
|
|
|
+ cooperationOrganId: row.cooperationOrganId || null,
|
|
|
+ }
|
|
|
+ console.log(row, 'show')
|
|
|
+ this.extVisible = true
|
|
|
+ },
|
|
|
onMaskClose(formName) {
|
|
|
this.$refs[formName].resetFields();
|
|
|
},
|