|
@@ -0,0 +1,312 @@
|
|
|
|
+
|
|
|
|
+<!-- -->
|
|
|
|
+<template>
|
|
|
|
+ <div class="m-container">
|
|
|
|
+ <h2>
|
|
|
|
+ <div class="squrt"></div>
|
|
|
|
+ 21暑期考级
|
|
|
|
+ </h2>
|
|
|
|
+ <div class="m-core">
|
|
|
|
+ <save-form
|
|
|
|
+ :inline="true"
|
|
|
|
+ :model="searchForm"
|
|
|
|
+ ref='searchForm'
|
|
|
|
+ @submit="search"
|
|
|
|
+ @reset="onReSet"
|
|
|
|
+ >
|
|
|
|
+ <el-form-item prop="organId">
|
|
|
|
+ <el-select
|
|
|
|
+ class="multiple"
|
|
|
|
+ filterable
|
|
|
|
+ v-model.trim="searchForm.organId"
|
|
|
|
+ clearable
|
|
|
|
+ placeholder="请选择分部"
|
|
|
|
+ @change="changeOrgan"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="(item, index) in selects.branchs"
|
|
|
|
+ :key="index"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item prop="cooperationId">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model.trim="searchForm.cooperationId"
|
|
|
|
+ :disabled="!searchForm.organId"
|
|
|
|
+ filterable
|
|
|
|
+ clearable
|
|
|
|
+ placeholder="请选择合作单位"
|
|
|
|
+ @change="changeCooper"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="(item, index) in cooperationList"
|
|
|
|
+ :key="index"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item prop="musicGroupId">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model.trim="searchForm.musicGroupId"
|
|
|
|
+ clearable
|
|
|
|
+ filterable
|
|
|
|
+ placeholder="请选择乐团"
|
|
|
|
+ :disabled="!searchForm.cooperationId"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="(item, index) in musicList"
|
|
|
|
+ :key="index"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-button native-type="submit" type="primary">搜索</el-button>
|
|
|
|
+ <el-button native-type="reset" type="danger">重置</el-button>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </save-form>
|
|
|
|
+ <div class="btnList">
|
|
|
|
+ <el-button type="primary" @click="onCreateQRCode('placeholder')"
|
|
|
|
+ >占位链接</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button type="primary">器乐考级链接</el-button>
|
|
|
|
+ <el-button type="primary">VIP课程链接</el-button>
|
|
|
|
+ <el-button type="primary">乐理考级链接</el-button>
|
|
|
|
+ <el-button type="primary">导出</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ <statistic :col="6" class="statistic" :cols="0">
|
|
|
|
+ <statistic-item>
|
|
|
|
+ <span><count-to :endVal="3000" /></span>
|
|
|
|
+ <span>器乐考级人次</span>
|
|
|
|
+ </statistic-item>
|
|
|
|
+ <statistic-item>
|
|
|
|
+ <span><count-to :endVal="3000" /></span>
|
|
|
|
+ <span>器乐考级人次</span>
|
|
|
|
+ </statistic-item>
|
|
|
|
+ <statistic-item>
|
|
|
|
+ <span><count-to :endVal="3000" /></span>
|
|
|
|
+ <span>器乐考级人次</span>
|
|
|
|
+ </statistic-item>
|
|
|
|
+ <statistic-item>
|
|
|
|
+ <span><count-to :endVal="3000" /></span>
|
|
|
|
+ <span>器乐考级人次</span>
|
|
|
|
+ </statistic-item>
|
|
|
|
+ <statistic-item>
|
|
|
|
+ <span><count-to :endVal="3000" /></span>
|
|
|
|
+ <span>器乐考级人次</span>
|
|
|
|
+ </statistic-item>
|
|
|
|
+ <statistic-item>
|
|
|
|
+ <span><count-to :endVal="3000" /></span>
|
|
|
|
+ <span>器乐考级人次</span>
|
|
|
|
+ </statistic-item>
|
|
|
|
+ </statistic>
|
|
|
|
+ <div class="tableWrap">
|
|
|
|
+ <el-table
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
|
|
+ :data="tableList"
|
|
|
|
+ >
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="organName"
|
|
|
|
+ label="分部"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="cooperationOrganName"
|
|
|
|
+ label="合作单位"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="musicGroupName"
|
|
|
|
+ label="乐团名称"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="normalNum"
|
|
|
|
+ label="在读人数"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="reserveNum"
|
|
|
|
+ label="预约人数"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="noReserveNum"
|
|
|
|
+ label="未预约人数"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="instrumentalMusicNum"
|
|
|
|
+ label="器乐考级人次"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="musicTheoryNum"
|
|
|
|
+ label="乐理考级人次"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="buyVipNum"
|
|
|
|
+ label="vip课购买人数"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="buyVipAmount"
|
|
|
|
+ label="vip课成交金额"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="buyMusicTheoryNum"
|
|
|
|
+ label="乐理课购买人数"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="buyMusicTheoryAmount"
|
|
|
|
+ label="乐理课成交金额"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column align="center" prop="studentId" label="操作">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ <el-button type="text" @click="gotoDetail(scope.row)"
|
|
|
|
+ >详情</el-button
|
|
|
|
+ >
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ <pagination
|
|
|
|
+ sync
|
|
|
|
+ :total.sync="rules.total"
|
|
|
|
+ :page.sync="rules.page"
|
|
|
|
+ :limit.sync="rules.limit"
|
|
|
|
+ :page-sizes="rules.page_size"
|
|
|
|
+ @pagination="getList"
|
|
|
|
+ />
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <qr-code v-model="codeStatus" :title="codeTitle" :codeUrl="qrCodeUrl" />
|
|
|
|
+ </div>
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+import axios from "axios";
|
|
|
|
+import { getToken } from "@/utils/auth";
|
|
|
|
+import pagination from "@/components/Pagination/index";
|
|
|
|
+import qrCode from "@/components/QrCode/index";
|
|
|
|
+import { vaildStudentUrl } from "@/utils/validate";
|
|
|
|
+import load from "@/utils/loading";
|
|
|
|
+import { queryByOrganId, getSchool, getMusicGroup } from "@/api/systemManage";
|
|
|
|
+import { getMusicGroupGradeList } from "./api";
|
|
|
|
+import countTo from "vue-count-to";
|
|
|
|
+export default {
|
|
|
|
+ components: { pagination, "count-to": countTo, qrCode },
|
|
|
|
+
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ searchForm: {
|
|
|
|
+ search: null,
|
|
|
|
+ organId: null,
|
|
|
|
+ cooperationId: null,
|
|
|
|
+ musicGroupId: null,
|
|
|
|
+ },
|
|
|
|
+ codeStatus: false,
|
|
|
|
+ codeTitle: null,
|
|
|
|
+ qrCodeUrl: null,
|
|
|
|
+ tableList: [],
|
|
|
|
+ cooperationList: [],
|
|
|
|
+ musicList: [],
|
|
|
|
+ rules: {
|
|
|
|
+ // 分页规则
|
|
|
|
+ limit: 10, // 限制显示条数
|
|
|
|
+ page: 1, // 当前页
|
|
|
|
+ total: 0, // 总条数
|
|
|
|
+ page_size: [10, 20, 40, 50], // 选择限制显示条数
|
|
|
|
+ },
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ //生命周期 - 创建完成(可以访问当前this实例)
|
|
|
|
+ created() {},
|
|
|
|
+ //生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
|
+ mounted() {
|
|
|
|
+ // 获取分部
|
|
|
|
+ this.$store.dispatch("setBranchs");
|
|
|
|
+ this.init();
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ init() {
|
|
|
|
+ this.getList();
|
|
|
|
+ },
|
|
|
|
+ async getList() {
|
|
|
|
+ try {
|
|
|
|
+ const res = await getMusicGroupGradeList({
|
|
|
|
+ page: this.rules.page,
|
|
|
|
+ rows: this.rules.limit,
|
|
|
|
+ ...this.searchForm,
|
|
|
|
+ });
|
|
|
|
+ this.tableList = res.data.rows;
|
|
|
|
+ this.rules.total = res.data.total;
|
|
|
|
+ } catch (e) {}
|
|
|
|
+ },
|
|
|
|
+ search() {
|
|
|
|
+ this.rules.page = 1;
|
|
|
|
+ this.getList();
|
|
|
|
+ },
|
|
|
|
+ onReSet() {
|
|
|
|
+ this.rules = {
|
|
|
|
+ ...this.rules,
|
|
|
|
+ page: 1,
|
|
|
|
+ };
|
|
|
|
+ this.$refs.searchForm.resetFields();
|
|
|
|
+ this.search();
|
|
|
|
+ },
|
|
|
|
+ onCreateQRCode(status) {
|
|
|
|
+ if (status == "placeholder") {
|
|
|
|
+ this.codeTitle = "占位链接";
|
|
|
|
+ this.qrCodeUrl = vaildStudentUrl() + "/#/childrenSeat";
|
|
|
|
+ }
|
|
|
|
+ this.codeStatus = true;
|
|
|
|
+ },
|
|
|
|
+ changeOrgan(val) {
|
|
|
|
+ this.searchForm.cooperationId = null;
|
|
|
|
+ this.searchForm.musicGroupId = null;
|
|
|
|
+ if (val) {
|
|
|
|
+ queryByOrganId({ organId: val }).then((res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.cooperationList = res.data;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ changeCooper(val) {
|
|
|
|
+ this.searchForm.musicGroupId = null;
|
|
|
|
+ if (val) {
|
|
|
|
+ getMusicGroup({ cooperationId: val }).then((res) => {
|
|
|
|
+ this.musicList = res.data;
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ gotoDetail(row) {
|
|
|
|
+ // query:{'musicGroupId':}
|
|
|
|
+ this.$router.push({ path: "/business/childrensdayDetail",query:{'musicGroupId':row.musicGroupId,'musicGroupName':row.musicGroupName} });
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+</script>
|
|
|
|
+<style lang='scss' scoped>
|
|
|
|
+.statistic {
|
|
|
|
+ .statistic-content > span {
|
|
|
|
+ font-size: 20px !important;
|
|
|
|
+ &:first-child {
|
|
|
|
+ font-size: 24px !important;
|
|
|
|
+ color: rgba(0, 0, 0, 0.85);
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+</style>
|