|
@@ -4,7 +4,11 @@
|
|
|
<p>当前选择声部数(个):{{ chioseSoundNum }}</p>
|
|
|
<p style="margin-left: 30px">计划招生人数(个):{{ PlannedCount }}</p>
|
|
|
</div>
|
|
|
- <soundSetCore ref="soundSetCore" @chiosetab="chiosetab" @getNumber='getNumber'/>
|
|
|
+ <soundSetCore
|
|
|
+ ref="soundSetCore"
|
|
|
+ @chiosetab="chiosetab"
|
|
|
+ @getNumber="getNumber"
|
|
|
+ />
|
|
|
<div class="btnWrap">
|
|
|
<div class="PrevBtn" @click="goback">上一步</div>
|
|
|
<!-- v-if="teamStatus != 'teamAudit'" -->
|
|
@@ -18,6 +22,16 @@
|
|
|
>
|
|
|
下一步
|
|
|
</div>
|
|
|
+ <div
|
|
|
+ class="submitBtn"
|
|
|
+ @click="submitAudit(1)"
|
|
|
+ v-if="teamStatus != 'teamAudit'"
|
|
|
+ >
|
|
|
+ 提交审核
|
|
|
+ </div>
|
|
|
+ <div class="submitBtn" @click="approval" v-if="teamStatus == 'teamAudit'">
|
|
|
+ 审核通过
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -48,12 +62,20 @@ export default {
|
|
|
Fsearch: null,
|
|
|
Frules: null,
|
|
|
activeSoundList: [],
|
|
|
- chioseSoundNum:0,
|
|
|
- PlannedCount:0
|
|
|
+ chioseSoundNum: 0,
|
|
|
+ PlannedCount: 0,
|
|
|
+ teamStatus: null,
|
|
|
+ teamid:null
|
|
|
};
|
|
|
},
|
|
|
- mounted() {},
|
|
|
- activated() {},
|
|
|
+ mounted() {
|
|
|
+ this.teamid = this.$route.query.id;
|
|
|
+ this.teamStatus = this.$route.query.type;
|
|
|
+ },
|
|
|
+ activated() {
|
|
|
+ this.teamid = this.$route.query.id;
|
|
|
+ this.teamStatus = this.$route.query.type;
|
|
|
+ },
|
|
|
methods: {
|
|
|
goback() {
|
|
|
this.$emit("chiosetab", 0);
|
|
@@ -64,16 +86,35 @@ export default {
|
|
|
chiosetab(val) {
|
|
|
this.$emit("chiosetab", val);
|
|
|
},
|
|
|
- getNumber(chioseSoundNum,PlannedCount){
|
|
|
- this.chioseSoundNum = chioseSoundNum
|
|
|
- this.PlannedCount = PlannedCount
|
|
|
- },
|
|
|
+ submitAudit(val) {
|
|
|
+ this.$refs.soundSetCore.submitInfo(val);
|
|
|
+ },
|
|
|
+ getNumber(chioseSoundNum, PlannedCount) {
|
|
|
+ this.chioseSoundNum = chioseSoundNum;
|
|
|
+ this.PlannedCount = PlannedCount;
|
|
|
+ },
|
|
|
+ approval() {
|
|
|
+ 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",
|
|
|
+ query: { search: this.Fsearch, rules: this.Frules },
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
-
|
|
|
- computed: {
|
|
|
-
|
|
|
- },
|
|
|
+ computed: {},
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|