|
@@ -36,6 +36,9 @@
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button native-type="submit" type="danger">搜索</el-button>
|
|
<el-button native-type="submit" type="danger">搜索</el-button>
|
|
<el-button native-type="reset" type="primary">重置</el-button>
|
|
<el-button native-type="reset" type="primary">重置</el-button>
|
|
|
|
+ <auth auths="tempLittleArtistTrainingCamp/exportUserTrainingDetail" style="margin-left:10px;">
|
|
|
|
+ <el-button type="primary" @click="exportCampDetail">导出</el-button>
|
|
|
|
+ </auth>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</save-form>
|
|
</save-form>
|
|
<div class="tableWrap">
|
|
<div class="tableWrap">
|
|
@@ -103,6 +106,7 @@
|
|
<script>
|
|
<script>
|
|
import pagination from "@/components/Pagination/index";
|
|
import pagination from "@/components/Pagination/index";
|
|
import artistClock from "./models/artistClock";
|
|
import artistClock from "./models/artistClock";
|
|
|
|
+import { Export } from "@/utils/downLoadFile";
|
|
import { getUserTrainingDetail, getCampImGroup } from "./api";
|
|
import { getUserTrainingDetail, getCampImGroup } from "./api";
|
|
export default {
|
|
export default {
|
|
components: { pagination, artistClock },
|
|
components: { pagination, artistClock },
|
|
@@ -150,6 +154,7 @@ export default {
|
|
...this.searchForm,
|
|
...this.searchForm,
|
|
page: this.pageInfo.page,
|
|
page: this.pageInfo.page,
|
|
rows: this.pageInfo.limit,
|
|
rows: this.pageInfo.limit,
|
|
|
|
+ campId:this.$route.query.id
|
|
};
|
|
};
|
|
try {
|
|
try {
|
|
const res = await getUserTrainingDetail({ ...params });
|
|
const res = await getUserTrainingDetail({ ...params });
|
|
@@ -162,6 +167,25 @@ export default {
|
|
lookstudentCamp(row) {
|
|
lookstudentCamp(row) {
|
|
this.$refs.artistClock.openDioag(row);
|
|
this.$refs.artistClock.openDioag(row);
|
|
},
|
|
},
|
|
|
|
+ exportCampDetail() {
|
|
|
|
+ // this.$confirm(`您确定导出"${title}"列表`, "提示", {
|
|
|
|
+ // confirmButtonText: "确定",
|
|
|
|
+ // cancelButtonText: "取消",
|
|
|
|
+ // type: "warning",
|
|
|
|
+ // }).then(async () => {
|
|
|
|
+
|
|
|
|
+ // });
|
|
|
|
+ Export(
|
|
|
|
+ this,
|
|
|
|
+ {
|
|
|
|
+ url: "/api-web/tempLittleArtistTrainingCamp/exportUserTrainingDetail",
|
|
|
|
+ params: { ...this.searchForm,campId:this.$route.query.id },
|
|
|
|
+ fileName: `${this.title}.xls`,
|
|
|
|
+ method: "post",
|
|
|
|
+ },
|
|
|
|
+ `您确定导出"${this.title}"列表`
|
|
|
|
+ );
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|