|
@@ -1,14 +1,147 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
+ <div class="sound-container">
|
|
|
+ <div class="topMsg">
|
|
|
+ <p>当前选择声部数(个):{{chioseSoundNum}}</p>
|
|
|
+ <p style="margin-left:30px;">计划招生人数(个):{{PlannedCount}}</p>
|
|
|
+ </div>
|
|
|
+ <div class="soundBtnWrap">
|
|
|
+ <el-button type="primary">全选</el-button>
|
|
|
+ <el-button type="danger">删除</el-button>
|
|
|
+ <el-button type="primary"
|
|
|
+ @click="soundVisible = true">添加</el-button>
|
|
|
+ </div>
|
|
|
+ <div class="coreWrap">
|
|
|
+ <el-checkbox-group v-model="checkList"
|
|
|
+ @change='lookCheck'>
|
|
|
+ <el-collapse>
|
|
|
+ <el-collapse-item>
|
|
|
+ <template slot="title">
|
|
|
+ <div class="coreItemTitle">
|
|
|
+ <el-checkbox label="单簧管"
|
|
|
+ value='1'></el-checkbox>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <div class="coreItem">
|
|
|
+ <div class="coreItemRow">
|
|
|
+ <p class="title">计划招生人数:</p>
|
|
|
+ <el-input style="width:180px"></el-input>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <chioseMusic />
|
|
|
+ <el-divider></el-divider>
|
|
|
+ <chioseAccessory />
|
|
|
+ </el-collapse-item>
|
|
|
|
|
|
+ </el-collapse>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </div>
|
|
|
+ <el-dialog title="声部选择"
|
|
|
+ :visible.sync="soundVisible"
|
|
|
+ :modal-append-to-body="false">
|
|
|
+ <chioseSoundList :soundList="soundList"
|
|
|
+ @chioseSound="chioseSound" />
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import store from "@/store";
|
|
|
+import { formatData } from '@/utils/utils'
|
|
|
+import {
|
|
|
+ getSubject,
|
|
|
+ getDefaultSubject,
|
|
|
+ getGoods,
|
|
|
+ createTeam,
|
|
|
+ getSoundTree,
|
|
|
+ findMusicGroupSubjectInfo,
|
|
|
+ updateSubjectInfo,
|
|
|
+ auditSuccess,
|
|
|
+ auditFailed,
|
|
|
+ getSubjectGoods
|
|
|
+} from "@/api/buildTeam";
|
|
|
+import dayjs from 'dayjs'
|
|
|
+import chioseMusic from './soundSetComponents/chioseMusic'
|
|
|
+import chioseAccessory from './soundSetComponents/chioseAccessory'
|
|
|
+import chioseSoundList from './soundSetComponents/chioseSoundList'
|
|
|
export default {
|
|
|
+ components: { chioseMusic, chioseAccessory, chioseSoundList },
|
|
|
data () {
|
|
|
- return {}
|
|
|
+ return {
|
|
|
+ chioseSoundNum: 0,
|
|
|
+ PlannedCount: 0,
|
|
|
+ checkList: [],
|
|
|
+ Fsearch: null,
|
|
|
+ Frules: null,
|
|
|
+ soundList: [], // 接口返回的一级二级声部
|
|
|
+ soundVisible: false, // 设置声部弹窗
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted () {
|
|
|
+ this.init()
|
|
|
+ },
|
|
|
+ activated () { },
|
|
|
+ methods: {
|
|
|
+ init () {
|
|
|
+ if (this.$route.query.search) {
|
|
|
+ this.Fsearch = this.$route.query.search;
|
|
|
+ }
|
|
|
+ if (this.$route.query.rules) {
|
|
|
+ this.Frules = this.$route.query.rules;
|
|
|
+ }
|
|
|
+ getSoundTree({ tenantId: 1 }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.soundList = res.data.rows
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ lookCheck (val) {
|
|
|
+ console.log(val)
|
|
|
+ },
|
|
|
+ chioseSound (activeSound) {
|
|
|
+ console.log(activeSound)
|
|
|
+ this.soundVisible = false
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
+.topMsg {
|
|
|
+ padding: 0 25px;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ justify-content: flex-start;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #444;
|
|
|
+ margin-bottom: 20px;
|
|
|
+}
|
|
|
+.soundBtnWrap {
|
|
|
+ margin-bottom: 20px;
|
|
|
+}
|
|
|
+/deep/.el-collapse-item__header {
|
|
|
+ background-color: #edeef0;
|
|
|
+}
|
|
|
+.coreItemTitle {
|
|
|
+ background-color: #edeef0;
|
|
|
+ height: 48px;
|
|
|
+ line-height: 48px;
|
|
|
+ padding: 0 20px;
|
|
|
+}
|
|
|
+.coreItem {
|
|
|
+ padding: 25px 20px 0;
|
|
|
+}
|
|
|
+.coreItemRow {
|
|
|
+ line-height: 50px;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ align-items: center;
|
|
|
+ p {
|
|
|
+ margin-right: 10px;
|
|
|
+ }
|
|
|
+ .title {
|
|
|
+ width: 100px;
|
|
|
+ text-align: right;
|
|
|
+ }
|
|
|
+}
|
|
|
+.marginLeft10 {
|
|
|
+ margin-left: 10px;
|
|
|
+}
|
|
|
</style>
|