|
@@ -316,22 +316,29 @@ export default {
|
|
|
this.dialogTableVisible = false;
|
|
|
},
|
|
|
removeListItem () {
|
|
|
- for (let i = 0; i < this.activeSoundList.length; i++) {
|
|
|
- for (let j = 0; j < this.multipleSelection.length; j++) {
|
|
|
+ this.$confirm(`是否删除该声部?`, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ for (let i = 0; i < this.activeSoundList.length; i++) {
|
|
|
+ for (let j = 0; j < this.multipleSelection.length; j++) {
|
|
|
|
|
|
- if (this.activeSoundList[i].id == this.multipleSelection[j].id) {
|
|
|
- this.activeSoundList.splice(i, 1);
|
|
|
- // 遍历循环所有的group 删除所选id
|
|
|
- for (let key in this.soundLists) {
|
|
|
- if (this.soundLists[key].indexOf(this.multipleSelection[j].id) != -1) {
|
|
|
+ if (this.activeSoundList[i].id == this.multipleSelection[j].id) {
|
|
|
+ this.activeSoundList.splice(i, 1);
|
|
|
+ // 遍历循环所有的group 删除所选id
|
|
|
+ for (let key in this.soundLists) {
|
|
|
+ if (this.soundLists[key].indexOf(this.multipleSelection[j].id) != -1) {
|
|
|
|
|
|
- this.soundLists[key].splice(this.soundLists[key].indexOf(this.multipleSelection[j].id), 1)
|
|
|
+ this.soundLists[key].splice(this.soundLists[key].indexOf(this.multipleSelection[j].id), 1)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
+ }).catch(() => {})
|
|
|
+
|
|
|
},
|
|
|
// 勾选选中框处理数据,存储勾选过的checkbox值
|
|
|
checkinlist (obj) {
|
|
@@ -506,12 +513,19 @@ export default {
|
|
|
}
|
|
|
obj.musicGroupSubjectPlans.push(item);
|
|
|
})
|
|
|
- createTeam(obj).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- // 成功 跳转到乐团报名详情
|
|
|
- this.$router.push({ path: '/business/teamDetail' })
|
|
|
- }
|
|
|
- })
|
|
|
+ this.$confirm(`确定提交?`, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ createTeam(obj).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ // 成功 跳转到乐团报名详情
|
|
|
+ this.$router.push({ path: '/business/teamDetail' })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }).catch(() => {})
|
|
|
+
|
|
|
} else {
|
|
|
// 只提交第二页的数据
|
|
|
let obj = {};
|
|
@@ -570,24 +584,36 @@ export default {
|
|
|
}
|
|
|
obj.musicGroupSubjectPlans.push(item);
|
|
|
})
|
|
|
- // 发请求修改声部信息
|
|
|
- updateSubjectInfo(obj).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.$message.success('提交成功')
|
|
|
- this.$router.push({ path: '/business/teamDetail' })
|
|
|
- }
|
|
|
- })
|
|
|
+ this.$confirm(`确定提交?`, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ // 发请求修改声部信息
|
|
|
+ updateSubjectInfo(obj).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success('提交成功')
|
|
|
+ this.$router.push({ path: '/business/teamDetail' })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }).catch(() => {})
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
// 同意
|
|
|
approval () {
|
|
|
- auditSuccess({ musicGroupId: this.teamid }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.$message.success('审批通过')
|
|
|
- this.$router.push({ path: '/business/teamDetail' })
|
|
|
- }
|
|
|
- })
|
|
|
+ this.$confirm(`是否审核通过?`, '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ auditSuccess({ musicGroupId: this.teamid }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success('审核通过')
|
|
|
+ this.$router.push({ path: '/business/teamDetail' })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }).catch(() => {})
|
|
|
+
|
|
|
},
|
|
|
// 拒绝
|
|
|
refuse () {
|