|
@@ -230,6 +230,7 @@ import pagination from '@/components/Pagination/index'
|
|
|
import { getTeamList, getPayType } from '@/api/teamServer'
|
|
|
import { getCooperation, cancelMusicGroup, startTeam, getEmployeeOrgan, pauseMusicGroup, resumeMusicGroup } from '@/api/buildTeam'
|
|
|
import { musicGroupStatus } from '@/utils/searchArray'
|
|
|
+import { isObject } from 'util'
|
|
|
export default {
|
|
|
name: "Main",
|
|
|
data () {
|
|
@@ -260,6 +261,12 @@ export default {
|
|
|
pagination
|
|
|
},
|
|
|
mounted () {
|
|
|
+ if (this.$route.query.search) {
|
|
|
+ this.$route.query.search instanceof Object ? this.topForm = this.$route.query.search : this.topForm = JSON.parse(this.$route.query.search);
|
|
|
+ }
|
|
|
+ if (this.$route.query.rules) {
|
|
|
+ this.$route.query.rules instanceof Object ? this.rules = this.$route.query.rules : this.rules = JSON.parse(this.$route.query.rules);
|
|
|
+ }
|
|
|
sessionStorage.setItem('resetCode', '1')
|
|
|
this.getList();
|
|
|
getEmployeeOrgan().then(res => {
|
|
@@ -299,7 +306,9 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
createNewTeam () {
|
|
|
- this.$router.push({ path: '/business/teamBuild', query: { type: 'newTeam', search: this.topForm, rules: this.rules } })
|
|
|
+ let search = JSON.stringify(this.topForm)
|
|
|
+ let rules = JSON.stringify(this.rules)
|
|
|
+ this.$router.push({ path: '/business/teamBuild', query: { type: 'newTeam', search, rules } })
|
|
|
},
|
|
|
resetTeam () {
|
|
|
// 这里还有勾选的乐团信息
|
|
@@ -307,11 +316,15 @@ export default {
|
|
|
this.$message.error('请至少选择一个乐团进行调整')
|
|
|
return
|
|
|
}
|
|
|
- this.$router.push({ path: '/business/teamBuild', query: { type: 'teamList', teamList: this.passed, search: this.topForm, rules: this.rules } })
|
|
|
+ let search = JSON.stringify(this.topForm)
|
|
|
+ let rules = JSON.stringify(this.rules)
|
|
|
+ this.$router.push({ path: '/business/teamBuild', query: { type: 'teamList', teamList: this.passed, search, rules } })
|
|
|
},
|
|
|
resetTeaming (row) {
|
|
|
// 修改进行中的乐团
|
|
|
- this.$router.push({ path: '/business/resetTeaming', query: { type: 'resetTeam', id: row.id, search: this.topForm, rules: this.rules } })
|
|
|
+ let search = JSON.stringify(this.topForm)
|
|
|
+ let rules = JSON.stringify(this.rules)
|
|
|
+ this.$router.push({ path: '/business/resetTeaming', query: { type: 'resetTeam', id: row.id, search, rules } })
|
|
|
},
|
|
|
setSearchList (obj) {
|
|
|
//
|
|
@@ -398,41 +411,43 @@ export default {
|
|
|
this.searchLsit = [];
|
|
|
},
|
|
|
lookTeamDetail (row) {
|
|
|
+ let search = JSON.stringify(this.topForm)
|
|
|
+ let rules = JSON.stringify(this.rules)
|
|
|
switch (row.status) {
|
|
|
case 'DRAFT': {
|
|
|
// 编辑中
|
|
|
- this.$router.push({ path: '/business/teamBuild', query: { type: 'teamDraft', id: row.id, search: this.topForm, rules: this.rules } })
|
|
|
+ this.$router.push({ path: '/business/teamBuild', query: { type: 'teamDraft', id: row.id, search, rules } })
|
|
|
break;
|
|
|
}
|
|
|
case 'AUDIT': {
|
|
|
// 审核中
|
|
|
- this.$router.push({ path: '/business/teamBuild', query: { type: 'teamAudit', id: row.id, search: this.topForm, rules: this.rules } })
|
|
|
+ this.$router.push({ path: '/business/teamBuild', query: { type: 'teamAudit', id: row.id, search, rules } })
|
|
|
break;
|
|
|
}
|
|
|
case 'AUDIT_FAILED': {
|
|
|
// 审核失败
|
|
|
- this.$router.push({ path: '/business/teamBuild', query: { type: 'teamDraft', id: row.id, search: this.topForm, rules: this.rules } })
|
|
|
+ this.$router.push({ path: '/business/teamBuild', query: { type: 'teamDraft', id: row.id, search, rules } })
|
|
|
break;
|
|
|
}
|
|
|
case 'APPLY': {
|
|
|
// 报名中
|
|
|
- this.$router.push({ path: `/business/signupList`, query: { status: row.status, id: row.id, name: row.name, search: this.topForm, rules: this.rules } })
|
|
|
+ this.$router.push({ path: `/business/signupList`, query: { status: row.status, id: row.id, name: row.name, search, rules } })
|
|
|
break;
|
|
|
}
|
|
|
case 'PAY': {
|
|
|
// 缴费中
|
|
|
- this.$router.push({ path: `/business/signupList`, query: { status: row.status, id: row.id, name: row.name, search: this.topForm, rules: this.rules } })
|
|
|
+ this.$router.push({ path: `/business/signupList`, query: { status: row.status, id: row.id, name: row.name, search, rules } })
|
|
|
break;
|
|
|
}
|
|
|
case 'PREPARE': {
|
|
|
// 筹备中 跳转到乐团设置界面
|
|
|
- this.$router.push({ path: `/business/teamSeting`, query: { status: row.status, id: row.id, name: row.name, search: this.topForm, rules: this.rules } })
|
|
|
+ this.$router.push({ path: `/business/teamSeting`, query: { status: row.status, id: row.id, name: row.name, search, rules } })
|
|
|
break;
|
|
|
}
|
|
|
case 'PROGRESS': {
|
|
|
// 进行中
|
|
|
// 调到乐团详情 teamDetails
|
|
|
- this.$router.push({ path: `/business/teamDetails`, query: { status: row.status, id: row.id, name: row.name, search: this.topForm, rules: this.rules } })
|
|
|
+ this.$router.push({ path: `/business/teamDetails`, query: { status: row.status, id: row.id, name: row.name, search, rules } })
|
|
|
break
|
|
|
}
|
|
|
case 'CANCELED': {
|
|
@@ -441,7 +456,7 @@ export default {
|
|
|
}
|
|
|
case 'PAUSE': {
|
|
|
// 暂停
|
|
|
- this.$router.push({ path: `/business/teamDetails`, query: { status: row.status, id: row.id, name: row.name, search: this.topForm, rules: this.rules } })
|
|
|
+ this.$router.push({ path: `/business/teamDetails`, query: { status: row.status, id: row.id, name: row.name, search, rules } })
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -459,12 +474,15 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
gotodetailList (row) {
|
|
|
- // row.id
|
|
|
- this.$router.push({ path: '/business/teamDetailedList', query: { id: row.id, search: this.topForm, rules: this.rules } })
|
|
|
+ let search = JSON.stringify(this.topForm)
|
|
|
+ let rules = JSON.stringify(this.rules)
|
|
|
+ this.$router.push({ path: '/business/teamDetailedList', query: { id: row.id, search, rules } })
|
|
|
},
|
|
|
// setImprovement 设置基础技能班
|
|
|
gotoImprovement (row) {
|
|
|
- this.$router.push({ path: '/business/setImprovement', query: { id: row.id, search: this.topForm, rules: this.rules } })
|
|
|
+ let search = JSON.stringify(this.topForm)
|
|
|
+ let rules = JSON.stringify(this.rules)
|
|
|
+ this.$router.push({ path: '/business/setImprovement', query: { id: row.id, search, rules } })
|
|
|
},
|
|
|
// 停止乐团
|
|
|
stopTeam (row) {
|