|
@@ -17,6 +17,17 @@
|
|
|
<el-input v-model="topForm.teamName"
|
|
|
placeholder="请输入乐团名称"></el-input>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item prop='status'>
|
|
|
+ <el-select class='multiple'
|
|
|
+ v-model="topForm.orgin"
|
|
|
+ clearable
|
|
|
+ placeholder="请选择分部">
|
|
|
+ <el-option v-for="(item,index) in organList"
|
|
|
+ :key="index"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<!-- 多选 -->
|
|
|
<el-form-item prop='status'>
|
|
|
<el-select class='multiple'
|
|
@@ -172,7 +183,7 @@
|
|
|
import pagination from '@/components/Pagination/index'
|
|
|
// import { truncate } from 'fs';
|
|
|
import { getTeamList, getPayType } from '@/api/teamServer'
|
|
|
-import { getCooperation, cancelMusicGroup, startTeam } from '@/api/buildTeam'
|
|
|
+import { getCooperation, cancelMusicGroup, startTeam, getEmployeeOrgan } from '@/api/buildTeam'
|
|
|
import { musicGroupStatus } from '@/utils/searchArray'
|
|
|
export default {
|
|
|
name: "Main",
|
|
@@ -182,8 +193,10 @@ export default {
|
|
|
teamName: '',
|
|
|
status: '',
|
|
|
payType: '',
|
|
|
- word: ''
|
|
|
+ word: '',
|
|
|
+ orgin: ''
|
|
|
},
|
|
|
+ organList: [],
|
|
|
typeList: [], // 收费类型
|
|
|
nowStatus: musicGroupStatus,
|
|
|
searchLsit: [], // 存储选择后的数组
|
|
@@ -204,6 +217,11 @@ export default {
|
|
|
mounted () {
|
|
|
sessionStorage.setItem('resetCode', '1')
|
|
|
this.getList();
|
|
|
+ getEmployeeOrgan().then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.organList = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
// 获取乐团收费类型
|
|
|
getPayType().then(res => {
|
|
|
// console.log(res);
|
|
@@ -220,7 +238,7 @@ export default {
|
|
|
getTeamList({
|
|
|
rows: this.rules.limit,
|
|
|
page: this.rules.page,
|
|
|
- organId: this.$store.getters.organ,
|
|
|
+ organId: this.topForm.orgin || null,
|
|
|
chargeTypeId: this.topForm.payType || null,
|
|
|
musicGroupName: this.topForm.teamName || null,
|
|
|
musicGroupStatus: this.topForm.status || null,
|