|
@@ -71,7 +71,7 @@
|
|
</save-form>
|
|
</save-form>
|
|
|
|
|
|
<div class="buttunWtap">
|
|
<div class="buttunWtap">
|
|
- <auth auths="sysCoupon/add">
|
|
|
|
|
|
+ <auth auths="tempLittleArtistTrainingCamp/add">
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
style="margin-bottom: 30px; margian-right: 10px"
|
|
style="margin-bottom: 30px; margian-right: 10px"
|
|
@@ -79,8 +79,8 @@
|
|
>新建训练营</el-button
|
|
>新建训练营</el-button
|
|
>
|
|
>
|
|
</auth>
|
|
</auth>
|
|
- <auth auths="sysCoupon/add">
|
|
|
|
- <el-button type="primary" style="margin-bottom: 30px"
|
|
|
|
|
|
+ <auth auths="tempLittleArtistTrainingCamp/queryPageTrainingCampUser">
|
|
|
|
+ <el-button type="primary" style="margin-bottom: 30px" @click="getRosterList"
|
|
>参与名单</el-button
|
|
>参与名单</el-button
|
|
>
|
|
>
|
|
</auth>
|
|
</auth>
|
|
@@ -93,49 +93,60 @@
|
|
>
|
|
>
|
|
<el-table-column
|
|
<el-table-column
|
|
align="center"
|
|
align="center"
|
|
- prop="studentId"
|
|
|
|
|
|
+ prop="id"
|
|
label="训练营编号"
|
|
label="训练营编号"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
align="center"
|
|
align="center"
|
|
- prop="studentId"
|
|
|
|
|
|
+ prop="name"
|
|
label="训练营标题"
|
|
label="训练营标题"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
- <el-table-column
|
|
|
|
- align="center"
|
|
|
|
- prop="studentId"
|
|
|
|
- label="状态"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- align="center"
|
|
|
|
- prop="studentId"
|
|
|
|
- label="报名时间段"
|
|
|
|
- ></el-table-column>
|
|
|
|
- <el-table-column
|
|
|
|
- align="center"
|
|
|
|
- prop="studentId"
|
|
|
|
- label="训练时间段"
|
|
|
|
- ></el-table-column>
|
|
|
|
|
|
+ <el-table-column align="center" prop="studentId" label="状态">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ {{ scope.row.state | campStateListFilter }}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column align="center" prop="studentId" label="报名时间段">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ <p>{{ scope.row.applyStartDate | dayjsFormat }}</p>
|
|
|
|
+ <p>{{ scope.row.applyEndDate | dayjsFormat }}</p>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column align="center" prop="studentId" label="训练时间段">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ <p>{{ scope.row.trainStartDate | dayjsFormat }}</p>
|
|
|
|
+ <p>{{ scope.row.trainEndDate | dayjsFormat }}</p>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column align="center" prop="studentId" label="操作">
|
|
<el-table-column align="center" prop="studentId" label="操作">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
- <auth auths="musicGroupQuestionnaire/get">
|
|
|
|
|
|
+ <auth auths="tempLittleArtistTrainingCamp/queryUserTrainingDetail">
|
|
<el-button type="text" @click="lookCamp(scope.row)"
|
|
<el-button type="text" @click="lookCamp(scope.row)"
|
|
>详情</el-button
|
|
>详情</el-button
|
|
>
|
|
>
|
|
</auth>
|
|
</auth>
|
|
<auth
|
|
<auth
|
|
- :auths="[
|
|
|
|
- 'musicGroupQuestionnaire/get',
|
|
|
|
- 'musicGroupQuestionnaire/update',
|
|
|
|
- ]"
|
|
|
|
- mulit
|
|
|
|
|
|
+ :auths="'tempLittleArtistTrainingCamp/update'"
|
|
|
|
+
|
|
>
|
|
>
|
|
- <el-button type="text" @click="resetCamp(scope.row)"
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ type="text"
|
|
|
|
+ @click="resetCamp(scope.row)"
|
|
|
|
+ v-if="scope.row.state != 'ING' && scope.row.state != 'END'"
|
|
>修改</el-button
|
|
>修改</el-button
|
|
>
|
|
>
|
|
</auth>
|
|
</auth>
|
|
- <auth auths="musicGroupQuestionnaire/del">
|
|
|
|
|
|
+ <auth
|
|
|
|
+ auths="tempLittleArtistTrainingCamp/delete"
|
|
|
|
+ v-if="scope.row.state == 'READY'"
|
|
|
|
+ >
|
|
<el-button type="text" @click="deleteCamp(scope.row)"
|
|
<el-button type="text" @click="deleteCamp(scope.row)"
|
|
>删除</el-button
|
|
>删除</el-button
|
|
>
|
|
>
|
|
@@ -154,7 +165,8 @@
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <eidtCamp @getList="getList" ref='eidtCamp'/>
|
|
|
|
|
|
+ <eidtCamp @getList="getList" ref="eidtCamp" />
|
|
|
|
+ <campRosterList ref="campRosterList"/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -165,11 +177,13 @@ import pagination from "@/components/Pagination/index";
|
|
import load from "@/utils/loading";
|
|
import load from "@/utils/loading";
|
|
import { getTimes } from "@/utils";
|
|
import { getTimes } from "@/utils";
|
|
import { campStateList } from "@/utils/searchArray";
|
|
import { campStateList } from "@/utils/searchArray";
|
|
-import { getTrainingCampList } from "./api";
|
|
|
|
-import eidtCamp from './models/eidtCamp'
|
|
|
|
-// campStateListFilter
|
|
|
|
|
|
+import { getTrainingCampList,delTrainingCamp } from "./api";
|
|
|
|
+
|
|
|
|
+ import campRosterList from "./models/campRosterList";
|
|
|
|
+import eidtCamp from "./models/eidtCamp";
|
|
|
|
+//
|
|
export default {
|
|
export default {
|
|
- components: { pagination,eidtCamp },
|
|
|
|
|
|
+ components: { pagination, eidtCamp,campRosterList },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
searchForm: {
|
|
searchForm: {
|
|
@@ -198,7 +212,9 @@ export default {
|
|
this.init();
|
|
this.init();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- init() {},
|
|
|
|
|
|
+ init() {
|
|
|
|
+ this.getList();
|
|
|
|
+ },
|
|
async getList() {
|
|
async getList() {
|
|
let { applyTime, trainTime, ...rest } = this.searchForm;
|
|
let { applyTime, trainTime, ...rest } = this.searchForm;
|
|
let params = {
|
|
let params = {
|
|
@@ -221,12 +237,36 @@ export default {
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
onReSet() {},
|
|
onReSet() {},
|
|
- lookCamp(row) {},
|
|
|
|
- resetCamp(row) {},
|
|
|
|
- deleteCamp(row) {},
|
|
|
|
- addCamp(){
|
|
|
|
- this.$refs.eidtCamp.openDioag()
|
|
|
|
|
|
+ lookCamp(row) {
|
|
|
|
+ console.log(row)
|
|
|
|
+ this.$router.push({path:'/operateManager/aristCampDetail',query:{id:row.id,imGroupIds:row.imGroupIds,name:row.name}})
|
|
|
|
+ },
|
|
|
|
+ resetCamp(row) {
|
|
|
|
+ this.$refs.eidtCamp.openDioag(row);
|
|
|
|
+ },
|
|
|
|
+ deleteCamp(row) {
|
|
|
|
+ this.$confirm("确定删除?", "提示", {
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
+ type: "warning",
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ delTrainingCamp(row.id).then((res) => {
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
+ this.$message.success("删除成功");
|
|
|
|
+ this.getList();
|
|
|
|
+ // this.routeOrderStatus = false;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ })
|
|
|
|
+ .catch();
|
|
|
|
+ },
|
|
|
|
+ addCamp() {
|
|
|
|
+ this.$refs.eidtCamp.openDioag();
|
|
},
|
|
},
|
|
|
|
+ getRosterList(){
|
|
|
|
+ this.$refs.campRosterList.openDioag();
|
|
|
|
+ }
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|