|
@@ -4,27 +4,51 @@
|
|
|
<p>当前选择声部数(个):{{ chioseSoundNum }}</p>
|
|
|
<p style="margin-left: 30px">计划招生人数(个):{{ PlannedCount }}</p>
|
|
|
</div>
|
|
|
- <soundSetCore ref="soundSetCore"
|
|
|
- @chiosetab="chiosetab"
|
|
|
- @getBaseInfo="getBaseInfo"
|
|
|
- @getNumber="getNumber" />
|
|
|
+ <soundSetCore
|
|
|
+ ref="soundSetCore"
|
|
|
+ @chiosetab="chiosetab"
|
|
|
+ @getBaseInfo="getBaseInfo"
|
|
|
+ @getNumber="getNumber"
|
|
|
+ />
|
|
|
<div class="btnWrap">
|
|
|
<el-button type="primary" @click="goback">上一步</el-button>
|
|
|
|
|
|
- <el-button type="primary"
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
v-if="teamStatus == 'newTeam'"
|
|
|
@click="submitInfo()"
|
|
|
v-permission="{
|
|
|
child: 'musicGroup/createGroup',
|
|
|
parent: '/teamBuild/soundMoney',
|
|
|
- }">提交</el-button>
|
|
|
- <el-button type="primary" @click="submitAudit(1)" v-if="teamStatus == 'teamDraft'">提交审核</el-button>
|
|
|
- <el-button type="primary" @click="approval"
|
|
|
- v-if="teamStatus == 'teamAudit'"
|
|
|
- v-permission="{child: 'musicGroup/auditSuccess', parent: '/teamBuild/teamAudit/soundMoney'}">审核通过</el-button>
|
|
|
- <el-button type="danger" @click="refuse"
|
|
|
- v-if="teamStatus == 'teamAudit'"
|
|
|
- v-permission="{child: 'musicGroup/auditFailed', parent: '/teamBuild/teamAudit/soundMoney'}">驳回</el-button>
|
|
|
+ }"
|
|
|
+ >提交</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="submitAudit(1)"
|
|
|
+ v-if="teamStatus == 'teamDraft'"
|
|
|
+ >提交审核</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="approval"
|
|
|
+ v-if="teamStatus == 'teamAudit'"
|
|
|
+ v-permission="{
|
|
|
+ child: 'musicGroup/auditSuccess',
|
|
|
+ parent: '/teamBuild/teamAudit/soundMoney',
|
|
|
+ }"
|
|
|
+ >审核通过</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="danger"
|
|
|
+ @click="refuse"
|
|
|
+ v-if="teamStatus == 'teamAudit'"
|
|
|
+ v-permission="{
|
|
|
+ child: 'musicGroup/auditFailed',
|
|
|
+ parent: '/teamBuild/teamAudit/soundMoney',
|
|
|
+ }"
|
|
|
+ >驳回</el-button
|
|
|
+ >
|
|
|
<!-- v-if="teamStatus != 'teamAudit'" -->
|
|
|
<!-- <div
|
|
|
class="submitBtn"
|
|
@@ -60,16 +84,13 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import {
|
|
|
- auditSuccess,
|
|
|
- auditFailed,
|
|
|
-} from "@/api/buildTeam";
|
|
|
+import { auditSuccess, auditFailed } from "@/api/buildTeam";
|
|
|
import dayjs from "dayjs";
|
|
|
import soundSetCore from "./soundSetComponents/soundSetCore";
|
|
|
|
|
|
export default {
|
|
|
components: { soundSetCore },
|
|
|
- data () {
|
|
|
+ data() {
|
|
|
return {
|
|
|
topfor: null, // 第一页的数据
|
|
|
Fsearch: null,
|
|
@@ -78,39 +99,43 @@ export default {
|
|
|
chioseSoundNum: 0,
|
|
|
PlannedCount: 0,
|
|
|
teamStatus: null,
|
|
|
- teamid: null
|
|
|
+ teamid: null,
|
|
|
};
|
|
|
},
|
|
|
- mounted () {
|
|
|
+ mounted() {
|
|
|
this.teamid = this.$route.query.id;
|
|
|
this.teamStatus = this.$route.query.type;
|
|
|
+ if (this.teamStatus == "newTeam") {
|
|
|
+ this.$store.dispatch("buildIndex", 1);
|
|
|
+ }
|
|
|
+ if (this.teamStatus != "newTeam") {
|
|
|
+ this.$store.dispatch("draftIndex", 1);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ activated() {
|
|
|
if (this.teamStatus == "newTeam") {
|
|
|
- this.$store.dispatch('buildIndex',1)
|
|
|
+ this.$store.dispatch("buildIndex", 1);
|
|
|
}
|
|
|
- if(this.teamStatus != "newTeam"){
|
|
|
- this.$store.dispatch('draftIndex',1)
|
|
|
+ if (this.teamStatus != "newTeam") {
|
|
|
+ this.$store.dispatch("draftIndex", 1);
|
|
|
}
|
|
|
-
|
|
|
- },
|
|
|
- activated () {
|
|
|
-
|
|
|
this.teamid = this.$route.query.id;
|
|
|
this.teamStatus = this.$route.query.type;
|
|
|
+
|
|
|
+ console.log("激活第二页");
|
|
|
},
|
|
|
methods: {
|
|
|
- handleClick(evt) {
|
|
|
- },
|
|
|
- goback () {
|
|
|
-
|
|
|
+ handleClick(evt) {},
|
|
|
+ goback() {
|
|
|
this.$emit("chiosetab", 0);
|
|
|
},
|
|
|
- submitInfo () {
|
|
|
+ submitInfo() {
|
|
|
this.$refs.soundSetCore.submitInfo();
|
|
|
},
|
|
|
- chiosetab (val) {
|
|
|
+ chiosetab(val) {
|
|
|
this.$emit("chiosetab", val);
|
|
|
},
|
|
|
- submitAudit (val) {
|
|
|
+ submitAudit(val) {
|
|
|
this.$confirm(`是否提交审核?`, "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
@@ -119,20 +144,20 @@ export default {
|
|
|
.then(() => {
|
|
|
this.$refs.soundSetCore.submitInfo(val);
|
|
|
})
|
|
|
- .catch(() => { });
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
|
selectMusic() {
|
|
|
- this.$refs.soundSetCore.submitInfo()
|
|
|
- this.$emit('chiosetab', 3)
|
|
|
+ this.$refs.soundSetCore.submitInfo();
|
|
|
+ this.$emit("chiosetab", 3);
|
|
|
},
|
|
|
- getNumber (chioseSoundNum, PlannedCount) {
|
|
|
+ getNumber(chioseSoundNum, PlannedCount) {
|
|
|
this.chioseSoundNum = chioseSoundNum;
|
|
|
this.PlannedCount = PlannedCount;
|
|
|
},
|
|
|
- getBaseInfo (baseInfo) {
|
|
|
- this.$emit('getBaseInfo', baseInfo)
|
|
|
+ getBaseInfo(baseInfo) {
|
|
|
+ this.$emit("getBaseInfo", baseInfo);
|
|
|
},
|
|
|
- approval () {
|
|
|
+ approval() {
|
|
|
this.$confirm(`是否审核通过?`, "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
@@ -142,7 +167,7 @@ export default {
|
|
|
auditSuccess({ musicGroupId: this.teamid }).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success("审核通过");
|
|
|
- this.$store.dispatch('delVisitedViews', this.$route)
|
|
|
+ this.$store.dispatch("delVisitedViews", this.$route);
|
|
|
this.$router.push({
|
|
|
path: "/business/teamDetail",
|
|
|
query: { search: this.Fsearch, rules: this.Frules },
|
|
@@ -150,29 +175,31 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
})
|
|
|
- .catch(() => { });
|
|
|
+ .catch(() => {});
|
|
|
},
|
|
|
- refuse () {
|
|
|
+ refuse() {
|
|
|
// auditFailed
|
|
|
this.$prompt("请输入拒绝原因", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消"
|
|
|
+ cancelButtonText: "取消",
|
|
|
}).then(({ value }) => {
|
|
|
// 点击确认 值是value
|
|
|
if (!value) {
|
|
|
this.$message.error("请输入驳回原因");
|
|
|
return;
|
|
|
} else {
|
|
|
- auditFailed({ musicGroupId: this.teamid, memo: value }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.$message.success("已拒绝");
|
|
|
- this.$store.dispatch('delVisitedViews', this.$route)
|
|
|
- this.$router.push({
|
|
|
- path: "/business/teamDetail",
|
|
|
- query: { search: this.Fsearch, rules: this.Frules }
|
|
|
- });
|
|
|
+ auditFailed({ musicGroupId: this.teamid, memo: value }).then(
|
|
|
+ (res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("已拒绝");
|
|
|
+ this.$store.dispatch("delVisitedViews", this.$route);
|
|
|
+ this.$router.push({
|
|
|
+ path: "/business/teamDetail",
|
|
|
+ query: { search: this.Fsearch, rules: this.Frules },
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
- });
|
|
|
+ );
|
|
|
}
|
|
|
});
|
|
|
},
|