|
@@ -13,22 +13,22 @@
|
|
>预报名详情</el-button
|
|
>预报名详情</el-button
|
|
> -->
|
|
> -->
|
|
|
|
|
|
- <auth :auths="['musicGroup/sendParentMeetingNotice']" v-if="isedit">
|
|
|
|
|
|
+ <auth :auths="['musicEnlightenmentQuestionnaire/sendParentMeetingNotice']" v-if="isedit">
|
|
<el-button type="primary" @click="extendPaymentStatus = true"
|
|
<el-button type="primary" @click="extendPaymentStatus = true"
|
|
>启蒙课家长会通知</el-button
|
|
>启蒙课家长会通知</el-button
|
|
>
|
|
>
|
|
</auth>
|
|
</auth>
|
|
- <auth :auths="['forecastName/forecastLink']" v-if="isedit">
|
|
|
|
|
|
+ <auth :auths="['initiationList/forecastLink']" v-if="isedit">
|
|
<el-button type="primary" @click="codeStatus = true"
|
|
<el-button type="primary" @click="codeStatus = true"
|
|
>启蒙课问卷</el-button
|
|
>启蒙课问卷</el-button
|
|
>
|
|
>
|
|
</auth>
|
|
</auth>
|
|
- <auth :auths="['studentRegistration/preRegisterExport']">
|
|
|
|
|
|
+ <auth :auths="['export/musicEnlightenmentQuestionnaires']">
|
|
<el-button type="primary" @click="downloadFile"
|
|
<el-button type="primary" @click="downloadFile"
|
|
>启蒙课问卷导出</el-button
|
|
>启蒙课问卷导出</el-button
|
|
>
|
|
>
|
|
</auth>
|
|
</auth>
|
|
- <auth :auths="['studentRegistration/queryPreApplySubjectList']">
|
|
|
|
|
|
+ <auth :auths="['musicEnlightenmentQuestionnaire/musicEnlightenmentQuestionnaireStat']">
|
|
<el-button type="primary" @click="subjectVisible = true"
|
|
<el-button type="primary" @click="subjectVisible = true"
|
|
>启蒙课问卷统计</el-button
|
|
>启蒙课问卷统计</el-button
|
|
>
|
|
>
|
|
@@ -43,22 +43,22 @@
|
|
:model="searchForm"
|
|
:model="searchForm"
|
|
ref="searchForm"
|
|
ref="searchForm"
|
|
>
|
|
>
|
|
- <el-form-item prop="name">
|
|
|
|
|
|
+ <el-form-item prop="search">
|
|
<el-input
|
|
<el-input
|
|
- v-model.trim="searchForm.name"
|
|
|
|
|
|
+ v-model.trim="searchForm.search"
|
|
clearable
|
|
clearable
|
|
@keyup.enter.native="search"
|
|
@keyup.enter.native="search"
|
|
placeholder="学生编号/姓名/手机号"
|
|
placeholder="学生编号/姓名/手机号"
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item prop="currentGrade">
|
|
|
|
|
|
+ <el-form-item prop="currentGradeNum">
|
|
<!-- <el-input
|
|
<!-- <el-input
|
|
v-model.trim="searchForm.currentGrade"
|
|
v-model.trim="searchForm.currentGrade"
|
|
clearable
|
|
clearable
|
|
placeholder="学员年级"
|
|
placeholder="学员年级"
|
|
></el-input> -->
|
|
></el-input> -->
|
|
<el-select
|
|
<el-select
|
|
- v-model.trim="searchForm.currentGrade"
|
|
|
|
|
|
+ v-model.trim="searchForm.currentGradeNum"
|
|
filterable
|
|
filterable
|
|
clearable
|
|
clearable
|
|
placeholder="请选择年级"
|
|
placeholder="请选择年级"
|
|
@@ -67,7 +67,7 @@
|
|
v-for="(item, index) in gradeList"
|
|
v-for="(item, index) in gradeList"
|
|
:key="index"
|
|
:key="index"
|
|
:label="item.label"
|
|
:label="item.label"
|
|
- :value="item.label"
|
|
|
|
|
|
+ :value="item.value"
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -75,6 +75,7 @@
|
|
<el-select
|
|
<el-select
|
|
clearable
|
|
clearable
|
|
v-model="searchForm.teacherRecommandSubjectId"
|
|
v-model="searchForm.teacherRecommandSubjectId"
|
|
|
|
+ filterable
|
|
placeholder="老师推荐声部"
|
|
placeholder="老师推荐声部"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
@@ -85,6 +86,16 @@
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item prop="musicalInstrumentsLearning">
|
|
|
|
+ <el-select
|
|
|
|
+ clearable
|
|
|
|
+ v-model="searchForm.musicalInstrumentsLearning"
|
|
|
|
+ placeholder="是否正在学习某乐器"
|
|
|
|
+ >
|
|
|
|
+ <el-option value="true" label="是"></el-option>
|
|
|
|
+ <el-option value="false" label="否"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button type="danger" native-type="seach">搜索</el-button>
|
|
<el-button type="danger" native-type="seach">搜索</el-button>
|
|
<el-button native-type="reset" type="primary">重置</el-button>
|
|
<el-button native-type="reset" type="primary">重置</el-button>
|
|
@@ -106,11 +117,11 @@
|
|
prop="userName"
|
|
prop="userName"
|
|
label="学员姓名"
|
|
label="学员姓名"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
- <el-table-column align="center" prop="gender" label="性别">
|
|
|
|
|
|
+ <!-- <el-table-column align="center" prop="gender" label="性别">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{ scope.row.gender ? "男" : "女" }}
|
|
{{ scope.row.gender ? "男" : "女" }}
|
|
</template>
|
|
</template>
|
|
- </el-table-column>
|
|
|
|
|
|
+ </el-table-column> -->
|
|
<el-table-column align="center" prop="phone" label="联系电话">
|
|
<el-table-column align="center" prop="phone" label="联系电话">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<copy-text>{{ scope.row.phone }}</copy-text>
|
|
<copy-text>{{ scope.row.phone }}</copy-text>
|
|
@@ -127,45 +138,58 @@
|
|
label="老师推荐声部"
|
|
label="老师推荐声部"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- {{
|
|
|
|
- scope.row.teacherRecommandSubjectId
|
|
|
|
- ? scope.row.teacherRecommandSubjectName
|
|
|
|
- : null
|
|
|
|
- }}
|
|
|
|
- {{
|
|
|
|
- !scope.row.teacherRecommandSubjectName &&
|
|
|
|
- scope.row.teacherRecommandSubjectId == 999
|
|
|
|
- ? "听从老师安排"
|
|
|
|
- : null
|
|
|
|
- }}
|
|
|
|
- {{
|
|
|
|
- !scope.row.teacherRecommandSubjectId &&
|
|
|
|
- !scope.row.teacherRecommandSubjectName
|
|
|
|
- ? "无"
|
|
|
|
- : null
|
|
|
|
- }}
|
|
|
|
|
|
+ <div>
|
|
|
|
+ {{
|
|
|
|
+ scope.row.teacherRecommandSubjectId
|
|
|
|
+ ? scope.row.subjectName
|
|
|
|
+ : "--"
|
|
|
|
+ }}
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
align="center"
|
|
align="center"
|
|
- prop="userName"
|
|
|
|
|
|
+ prop="musicalInstrumentsLearning"
|
|
label="是否在学习某件乐器"
|
|
label="是否在学习某件乐器"
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- align="center"
|
|
|
|
- prop="userName"
|
|
|
|
- label="目前所学乐器"
|
|
|
|
- ></el-table-column>
|
|
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ {{ scope.row.musicalInstrumentsLearning ? "是" : "否" }}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column align="center" prop="userName" label="目前所学乐器">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ {{
|
|
|
|
+ scope.row.musicalInstrumentsLearning
|
|
|
|
+ ? scope.row.musicalInstrumentsName
|
|
|
|
+ : "否"
|
|
|
|
+ }}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
align="center"
|
|
align="center"
|
|
prop="userName"
|
|
prop="userName"
|
|
label="报名参加管乐团家长会了解相关情况"
|
|
label="报名参加管乐团家长会了解相关情况"
|
|
- ></el-table-column>
|
|
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ {{ scope.row.joinParentMeeting ? "是" : "否" }}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
align="center"
|
|
align="center"
|
|
- prop="userName"
|
|
|
|
|
|
+ prop="remark"
|
|
label="备注"
|
|
label="备注"
|
|
- ></el-table-column>
|
|
|
|
|
|
+ width="200px"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <overflow-text width="200px" :text="scope.row.remark" />
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
<pagination
|
|
<pagination
|
|
sync
|
|
sync
|
|
@@ -179,7 +203,13 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 预报名链接 -->
|
|
<!-- 预报名链接 -->
|
|
- <qr-code v-model="codeStatus" title="预报名链接" :codeUrl="codeUrl" />
|
|
|
|
|
|
+ <qr-code
|
|
|
|
+ v-model="codeStatus"
|
|
|
|
+ title="启蒙课问卷"
|
|
|
|
+ :codeUrl="codeUrl"
|
|
|
|
+ @preLook="preLook"
|
|
|
|
+ :ispreLook="true"
|
|
|
|
+ />
|
|
<!-- 预报名详情 -->
|
|
<!-- 预报名详情 -->
|
|
<qr-code
|
|
<qr-code
|
|
v-model="codedetailStatus"
|
|
v-model="codedetailStatus"
|
|
@@ -216,7 +246,11 @@
|
|
placeholder="请输入家长会地址"
|
|
placeholder="请输入家长会地址"
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="短信内容" >
|
|
|
|
+ <p class="msgP" v-html="sysMsgStr"></p> </el-form-item>
|
|
|
|
+ <p style="color:red">确认后该短信将发送给已填写启蒙课问卷学员</p>
|
|
</el-form>
|
|
</el-form>
|
|
|
|
+
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button @click="extendPaymentStatus = false">取 消</el-button>
|
|
<el-button @click="extendPaymentStatus = false">取 消</el-button>
|
|
<el-button type="primary" @click="onExtendPayment('extendForm')"
|
|
<el-button type="primary" @click="onExtendPayment('extendForm')"
|
|
@@ -224,31 +258,28 @@
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
- <!-- 回访记录 -->
|
|
|
|
<el-dialog
|
|
<el-dialog
|
|
- title="新增回访"
|
|
|
|
|
|
+ title="启蒙课统计"
|
|
width="600px"
|
|
width="600px"
|
|
destroy-on-close
|
|
destroy-on-close
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
- :visible.sync="visitVisible"
|
|
|
|
|
|
+ :visible.sync="subjectVisible"
|
|
>
|
|
>
|
|
- <visit-model
|
|
|
|
- v-if="visitVisible"
|
|
|
|
- @close="visitVisible = false"
|
|
|
|
- :detail="visitDetail"
|
|
|
|
- @submited="getList"
|
|
|
|
- />
|
|
|
|
|
|
+ <intention-model v-if="subjectVisible" @close="subjectVisible = false" />
|
|
</el-dialog>
|
|
</el-dialog>
|
|
-
|
|
|
|
- <!-- 回访记录 -->
|
|
|
|
<el-dialog
|
|
<el-dialog
|
|
- title="意向列表"
|
|
|
|
- width="600px"
|
|
|
|
- destroy-on-close
|
|
|
|
|
|
+ title="预览"
|
|
|
|
+ width="500px"
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
- :visible.sync="subjectVisible"
|
|
|
|
|
|
+ append-to-body
|
|
|
|
+ :visible.sync="preLookVisible"
|
|
>
|
|
>
|
|
- <intention-model v-if="subjectVisible" @close="subjectVisible = false" />
|
|
|
|
|
|
+ <iframe
|
|
|
|
+ width="100%"
|
|
|
|
+ height="600px"
|
|
|
|
+ :src="codeUrl + '&look=true'"
|
|
|
|
+ frameborder="0"
|
|
|
|
+ ></iframe>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -260,12 +291,13 @@ import { permission } from "@/utils/directivePage";
|
|
import { vaildStudentUrl, vaildTeachingUrl } from "@/utils/validate";
|
|
import { vaildStudentUrl, vaildTeachingUrl } from "@/utils/validate";
|
|
import { Export } from "@/utils/downLoadFile";
|
|
import { Export } from "@/utils/downLoadFile";
|
|
import visitModel from "@/views/withdrawal-application/modals/visit";
|
|
import visitModel from "@/views/withdrawal-application/modals/visit";
|
|
-import intentionModel from "./modals/intention";
|
|
|
|
|
|
+import intentionModel from "./modals/initiationStatistics";
|
|
import { getMusicGroupGradeList } from "@/api/buildTeam";
|
|
import { getMusicGroupGradeList } from "@/api/buildTeam";
|
|
import {
|
|
import {
|
|
- queryPreApplyList,
|
|
|
|
|
|
+ getSysMessageConfig,
|
|
finishPreApply,
|
|
finishPreApply,
|
|
- sendParentMeetingNotice,
|
|
|
|
|
|
+ sendEnlighParentMeetingNotice,
|
|
|
|
+ getMusicEnlighList,
|
|
} from "./api";
|
|
} from "./api";
|
|
export default {
|
|
export default {
|
|
name: "forecastName",
|
|
name: "forecastName",
|
|
@@ -280,18 +312,17 @@ export default {
|
|
musicGroupId: query.id,
|
|
musicGroupId: query.id,
|
|
codeUrl:
|
|
codeUrl:
|
|
vaildStudentUrl() +
|
|
vaildStudentUrl() +
|
|
- "/project/forecastName/index.html?musicGroupId=" +
|
|
|
|
|
|
+ "/project/forecastName/initiation.html?musicGroupId=" +
|
|
query.id,
|
|
query.id,
|
|
detailUrl:
|
|
detailUrl:
|
|
vaildTeachingUrl() + "/#/preApplySubject?musicGroupId=" + query.id,
|
|
vaildTeachingUrl() + "/#/preApplySubject?musicGroupId=" + query.id,
|
|
searchForm: {
|
|
searchForm: {
|
|
- name: null,
|
|
|
|
|
|
+ search: null,
|
|
|
|
+ currentGradeNum: null,
|
|
subjectId: null,
|
|
subjectId: null,
|
|
teacherRecommandSubjectId: null,
|
|
teacherRecommandSubjectId: null,
|
|
selectionSubjectId: null,
|
|
selectionSubjectId: null,
|
|
- isAllowAdjust: null,
|
|
|
|
- cloudTeacherMethod: null,
|
|
|
|
- kitPurchaseMethod: null,
|
|
|
|
|
|
+ musicalInstrumentsLearning: null,
|
|
},
|
|
},
|
|
tableList: [],
|
|
tableList: [],
|
|
pageInfo: {
|
|
pageInfo: {
|
|
@@ -318,6 +349,8 @@ export default {
|
|
],
|
|
],
|
|
},
|
|
},
|
|
gradeList: [],
|
|
gradeList: [],
|
|
|
|
+ preLookVisible: false,
|
|
|
|
+ sysMsg: "",
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -325,12 +358,13 @@ export default {
|
|
this.init();
|
|
this.init();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- init() {
|
|
|
|
|
|
+ async init() {
|
|
this.teamid = this.$route.query.id;
|
|
this.teamid = this.$route.query.id;
|
|
getMusicGroupGradeList({ musicGroupId: this.teamid }).then((res) => {
|
|
getMusicGroupGradeList({ musicGroupId: this.teamid }).then((res) => {
|
|
let result = res.data;
|
|
let result = res.data;
|
|
this.gradeListObj = res.data;
|
|
this.gradeListObj = res.data;
|
|
if (res.code == 200 && result) {
|
|
if (res.code == 200 && result) {
|
|
|
|
+ this.gradeList = [];
|
|
for (let i in result) {
|
|
for (let i in result) {
|
|
this.gradeList.push({
|
|
this.gradeList.push({
|
|
value: i,
|
|
value: i,
|
|
@@ -339,6 +373,11 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ // 获取短信推送模板
|
|
|
|
+ const rus = await getSysMessageConfig({
|
|
|
|
+ type: "STUDENT_SMS_IM_MUSIC_GROUP_PARENT_MEETING_NOTICE",
|
|
|
|
+ });
|
|
|
|
+ this.sysMsg = rus.data.content;
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
permission,
|
|
permission,
|
|
@@ -359,19 +398,19 @@ export default {
|
|
Export(
|
|
Export(
|
|
this,
|
|
this,
|
|
{
|
|
{
|
|
- url: "/api-web/studentRegistration/preRegisterExport",
|
|
|
|
|
|
+ url: "/api-web/export/musicEnlightenmentQuestionnaires",
|
|
params: {
|
|
params: {
|
|
...params,
|
|
...params,
|
|
musicGroupId: this.musicGroupId,
|
|
musicGroupId: this.musicGroupId,
|
|
},
|
|
},
|
|
- fileName: "预报名列表.xls",
|
|
|
|
|
|
+ fileName: "启蒙课问卷.xls",
|
|
},
|
|
},
|
|
"是否确认导出报表?"
|
|
"是否确认导出报表?"
|
|
);
|
|
);
|
|
},
|
|
},
|
|
async getList() {
|
|
async getList() {
|
|
try {
|
|
try {
|
|
- const result = await queryPreApplyList({
|
|
|
|
|
|
+ const result = await getMusicEnlighList({
|
|
...this.searchForm,
|
|
...this.searchForm,
|
|
musicGroupId: this.musicGroupId,
|
|
musicGroupId: this.musicGroupId,
|
|
page: this.pageInfo.page,
|
|
page: this.pageInfo.page,
|
|
@@ -427,7 +466,7 @@ export default {
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
type: "warning",
|
|
type: "warning",
|
|
});
|
|
});
|
|
- await sendParentMeetingNotice({
|
|
|
|
|
|
+ await sendEnlighParentMeetingNotice({
|
|
...this.extendForm,
|
|
...this.extendForm,
|
|
musicGroupId: this.musicGroupId,
|
|
musicGroupId: this.musicGroupId,
|
|
});
|
|
});
|
|
@@ -450,9 +489,29 @@ export default {
|
|
},
|
|
},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ preLook(val) {
|
|
|
|
+ this.preLookVisible = true;
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ computed: {
|
|
|
|
+ sysMsgStr() {
|
|
|
|
+ let strArr = this.sysMsg.split("{}");
|
|
|
|
+ if (strArr.length == 3) {
|
|
|
|
+ return `${strArr[0]}<span style="color:red">"${
|
|
|
|
+ this.extendForm.meetingDate ? this.extendForm.meetingDate : "--"
|
|
|
|
+ }"</span>${strArr[1]}<span style="color:red">"${this.extendForm.address ? this.extendForm.address:"--"}"</span>
|
|
|
|
+ ${strArr[2]}`;
|
|
|
|
+ } else {
|
|
|
|
+ return ``;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
|
|
+.msgP {
|
|
|
|
+ line-height: 24px;
|
|
|
|
+ margin-top: 10px;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|