|
@@ -34,6 +34,7 @@
|
|
|
prop="school"
|
|
|
:rules="[{ required: true, message: '合作单位不能为空'},]">
|
|
|
<el-select v-model="topFrom.school"
|
|
|
+ :disabled="!topFrom.section"
|
|
|
@change="chioseSchool"
|
|
|
clearable>
|
|
|
<el-option v-for="(item,index) in cooperationList"
|
|
@@ -45,7 +46,8 @@
|
|
|
<el-form-item label="教学地点"
|
|
|
prop="address"
|
|
|
:rules="[{ required: true, message: '教学地点不能为空'},]">
|
|
|
- <el-select v-model="topFrom.address">
|
|
|
+ <el-select v-model="topFrom.address"
|
|
|
+ :disabled="!topFrom.section">
|
|
|
<el-option v-for="(item,index) in addList"
|
|
|
:key='index'
|
|
|
:label="item.name"
|
|
@@ -328,7 +330,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="btnWrap">
|
|
|
- <div class="nextBtn" v-permission="{child: 'musicGroup/update', parent: '/resetTeaming/teamBaseInfo'}"
|
|
|
+ <div class="nextBtn"
|
|
|
+ v-permission="{child: 'musicGroup/update', parent: '/resetTeaming/teamBaseInfo'}"
|
|
|
v-if="teamStatus=='resetTeam'"
|
|
|
@click="resetSubmit">
|
|
|
修改
|
|
@@ -394,7 +397,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import { getSection, getType, getCooperation, getTeacher, getAddress, getPayMaster, getPayStatus, getTeamBaseInfo, resetTeamBaseInfo, getEmployeeOrgan } from '@/api/buildTeam'
|
|
|
-import { queryEmployByOrganId } from '@/api/systemManage'
|
|
|
+import { queryEmployByOrganId, queryByOrganId, getSchool } from '@/api/systemManage'
|
|
|
import { scrollTo } from '@/utils/scroll-to'
|
|
|
import axios from 'axios'
|
|
|
import store from '@/store'
|
|
@@ -485,10 +488,10 @@ export default {
|
|
|
// 2. newTeam 新建乐团
|
|
|
// 3.teamList 跨团修改
|
|
|
// 4.teamDraft 乐团草稿
|
|
|
- let year = new Date().getFullYear();
|
|
|
- axios.post('/jiari/', qs.stringify({ d: year })).then(res => {
|
|
|
- // this.holidayList = Object.keys(res.data[year])
|
|
|
- })
|
|
|
+ // let year = new Date().getFullYear();
|
|
|
+ // axios.post('/jiari/', qs.stringify({ d: year })).then(res => {
|
|
|
+ // // this.holidayList = Object.keys(res.data[year])
|
|
|
+ // })
|
|
|
this.teamStatus = this.$route.query.type;
|
|
|
// 传过来的乐团信息
|
|
|
this.activeTeam = this.getTeamList;
|
|
@@ -542,11 +545,24 @@ export default {
|
|
|
// 循环缴费月
|
|
|
this.payList.chioseMonth = res.data.months;
|
|
|
if (this.topFrom.section) {
|
|
|
+ // 获取员工
|
|
|
queryEmployByOrganId({ organId: this.topFrom.section, rows: 1000 }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.orgianList = res.data.rows;
|
|
|
}
|
|
|
})
|
|
|
+ // 获取合作单位
|
|
|
+ queryByOrganId({ organId: this.topFrom.section }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.cooperationList = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // 获取教学点
|
|
|
+ getSchool({ organId: this.topFrom.section }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.addList = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -572,11 +588,11 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
// 3.获取合作单位选项卡
|
|
|
- getCooperation({ 'rows': 1000, search: this.organId }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.cooperationList = res.data.rows;
|
|
|
- }
|
|
|
- })
|
|
|
+ // getCooperation({ 'rows': 1000, search: this.organId }).then(res => {
|
|
|
+ // if (res.code == 200) {
|
|
|
+ // this.cooperationList = res.data.rows;
|
|
|
+ // }
|
|
|
+ // })
|
|
|
// 4.获取老师选项卡
|
|
|
// getTeacher({ 'rows': 1000, organId: this.organId }).then(res => {
|
|
|
// if (res.code == 200) {
|
|
@@ -584,11 +600,11 @@ export default {
|
|
|
// }
|
|
|
// })
|
|
|
// 5.获取教学地点选项卡
|
|
|
- getAddress({ 'rows': 1000, }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.addList = res.data.rows;
|
|
|
- }
|
|
|
- })
|
|
|
+ // getAddress({ 'rows': 1000, }).then(res => {
|
|
|
+ // if (res.code == 200) {
|
|
|
+ // this.addList = res.data.rows;
|
|
|
+ // }
|
|
|
+ // })
|
|
|
// 6.默认支付主体
|
|
|
// getPayMaster({ 'rows': 1000 }).then(res => {
|
|
|
// console.log(res);
|
|
@@ -608,16 +624,30 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
changeSection (val) {
|
|
|
- // 修改分部的时候 重置运营主管 重置教务老师 重置乐队指导
|
|
|
+ // 修改分部的时候 重置运营主管 重置教务老师 重置乐队指导 合作单位 教学点
|
|
|
this.topFrom.teacher = '';
|
|
|
this.topFrom.boss = '';
|
|
|
this.topFrom.head = '';
|
|
|
+ this.topFrom.school = '';
|
|
|
+ this.topFrom.address = '';
|
|
|
// 发请求 根据分部id 查询所有员工
|
|
|
queryEmployByOrganId({ organId: val, rows: 1000 }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.orgianList = res.data.rows;
|
|
|
}
|
|
|
})
|
|
|
+ // 合作单位
|
|
|
+ queryByOrganId({ organId: val }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.cooperationList = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // 教学点=>学校
|
|
|
+ getSchool({ organId: val }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.addList = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
chioseSchool (val) {
|
|
|
|