|
@@ -25,7 +25,7 @@
|
|
|
placeholder="所在群组"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="(item) in imGroupIdList"
|
|
|
+ v-for="item in imGroupIdList"
|
|
|
:key="item.id"
|
|
|
:value="item.id"
|
|
|
:label="item.name"
|
|
@@ -75,7 +75,9 @@
|
|
|
<el-table-column align="center" prop="playTime" label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
- <auth auths="tempLittleArtistTrainingCamp/queryUserTrainingTime">
|
|
|
+ <auth
|
|
|
+ auths="tempLittleArtistTrainingCamp/queryUserTrainingTime"
|
|
|
+ >
|
|
|
<el-button type="text" @click="lookstudentCamp(scope.row)"
|
|
|
>打卡记录</el-button
|
|
|
>
|
|
@@ -100,16 +102,16 @@
|
|
|
|
|
|
<script>
|
|
|
import pagination from "@/components/Pagination/index";
|
|
|
-import artistClock from "./models/artistClock"
|
|
|
-import { getUserTrainingDetail,getCampImGroup } from "./api";
|
|
|
+import artistClock from "./models/artistClock";
|
|
|
+import { getUserTrainingDetail, getCampImGroup } from "./api";
|
|
|
export default {
|
|
|
- components: { pagination,artistClock },
|
|
|
+ components: { pagination, artistClock },
|
|
|
data() {
|
|
|
return {
|
|
|
searchForm: {},
|
|
|
tableList: [],
|
|
|
- imGroupIdList:[],
|
|
|
- title:this.$route.query.name || '',
|
|
|
+ imGroupIdList: [],
|
|
|
+ title: this.$route.query.name || "",
|
|
|
pageInfo: {
|
|
|
// 分页规则
|
|
|
limit: 10, // 限制显示条数
|
|
@@ -121,18 +123,23 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getList();
|
|
|
- this.getImgroupList()
|
|
|
+ this.getImgroupList();
|
|
|
},
|
|
|
methods: {
|
|
|
- async getImgroupList(){
|
|
|
- try{
|
|
|
- const res = await getCampImGroup({imGroupIds:this.$route.query.imGroupIds})
|
|
|
- this.imGroupIdList = res.data
|
|
|
- }catch(e){
|
|
|
-
|
|
|
- }
|
|
|
- },
|
|
|
- goBack() {},
|
|
|
+ async getImgroupList() {
|
|
|
+ try {
|
|
|
+ const res = await getCampImGroup({
|
|
|
+ imGroupIds: this.$route.query.imGroupIds,
|
|
|
+ });
|
|
|
+ this.imGroupIdList = res.data;
|
|
|
+ } catch (e) {}
|
|
|
+ },
|
|
|
+ goBack() {
|
|
|
+ this.$store.dispatch("delVisitedViews", this.$route);
|
|
|
+ this.$router.push({
|
|
|
+ path: "/littleArtistCamp",
|
|
|
+ });
|
|
|
+ },
|
|
|
search() {
|
|
|
this.pageInfo.page = 1;
|
|
|
this.getList();
|
|
@@ -153,7 +160,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
lookstudentCamp(row) {
|
|
|
- this.$refs.artistClock.openDioag(row)
|
|
|
+ this.$refs.artistClock.openDioag(row);
|
|
|
},
|
|
|
},
|
|
|
};
|