|
@@ -8,7 +8,7 @@
|
|
|
class="newBand"
|
|
|
v-permission="'export/practiceGroup'"
|
|
|
@click="onStudentExport"
|
|
|
- style="width: 150px; max-width:150px"
|
|
|
+ style="width: 150px; max-width: 150px"
|
|
|
>
|
|
|
续费提醒导出
|
|
|
</div>
|
|
@@ -20,6 +20,14 @@
|
|
|
>
|
|
|
网管课导出
|
|
|
</div>
|
|
|
+ <div
|
|
|
+ class="newBand"
|
|
|
+ v-permission="'/buildVip'"
|
|
|
+ @click="newPractice"
|
|
|
+ style="width: 120px"
|
|
|
+ >
|
|
|
+ 新建网管课
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="m-core">
|
|
|
<save-form
|
|
@@ -265,7 +273,10 @@
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<!-- v-permission="'courseSchedule/classStartDateAdjust'" v-if="!scope.row.isSettlement" -->
|
|
|
- <el-button type="text" @click="lookCrouse(scope.row)" v-if="permission('/accompanys')"
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="lookCrouse(scope.row)"
|
|
|
+ v-if="permission('/accompanys')"
|
|
|
>查看</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -288,7 +299,7 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<pagination
|
|
|
- save-key="accompanyList"
|
|
|
+ save-key="accompanyList"
|
|
|
sync
|
|
|
:total.sync="rules.total"
|
|
|
:page.sync="rules.page"
|
|
@@ -340,6 +351,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import pagination from "@/components/Pagination/index";
|
|
|
+
|
|
|
import { permission } from "@/utils/directivePage";
|
|
|
import cleanDeep from "clean-deep";
|
|
|
import { commGroupStatus, practiceGroupType } from "@/utils/searchArray";
|
|
@@ -392,9 +404,9 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
- const { query } = this.$route;
|
|
|
- if(query.search){
|
|
|
- this.searchForm.search = query.search
|
|
|
+ const { query } = this.$route;
|
|
|
+ if (query.search) {
|
|
|
+ this.searchForm.search = query.search;
|
|
|
}
|
|
|
this.init();
|
|
|
},
|
|
@@ -470,7 +482,7 @@ export default {
|
|
|
} else {
|
|
|
let objectUrl = URL.createObjectURL(blob);
|
|
|
let link = document.createElement("a");
|
|
|
- let fname = "网管课续费提醒" + new Date().getTime() + '.xls'; //下载文件的名字
|
|
|
+ let fname = "网管课续费提醒" + new Date().getTime() + ".xls"; //下载文件的名字
|
|
|
link.href = objectUrl;
|
|
|
link.setAttribute("download", fname);
|
|
|
document.body.appendChild(link);
|
|
@@ -532,7 +544,7 @@ export default {
|
|
|
} else {
|
|
|
let objectUrl = URL.createObjectURL(blob);
|
|
|
let link = document.createElement("a");
|
|
|
- let fname = "网管课" + new Date().getTime() + '.xls'; //下载文件的名字
|
|
|
+ let fname = "网管课" + new Date().getTime() + ".xls"; //下载文件的名字
|
|
|
link.href = objectUrl;
|
|
|
link.setAttribute("download", fname);
|
|
|
document.body.appendChild(link);
|
|
@@ -569,11 +581,20 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
lookCrouse(row) {
|
|
|
- let coursesStartDate = this.$helpers.dayjs(row.coursesStartDate).format('YYYY-MM-DD')
|
|
|
- let coursesExpireDate = this.$helpers.dayjs(row.coursesExpireDate).format('YYYY-MM-DD')
|
|
|
+ let coursesStartDate = this.$helpers
|
|
|
+ .dayjs(row.coursesStartDate)
|
|
|
+ .format("YYYY-MM-DD");
|
|
|
+ let coursesExpireDate = this.$helpers
|
|
|
+ .dayjs(row.coursesExpireDate)
|
|
|
+ .format("YYYY-MM-DD");
|
|
|
this.$router.push({
|
|
|
path: "/business/accompanys",
|
|
|
- query: { id: row.id, type: row.type,coursesStartDate,coursesExpireDate },
|
|
|
+ query: {
|
|
|
+ id: row.id,
|
|
|
+ type: row.type,
|
|
|
+ coursesStartDate,
|
|
|
+ coursesExpireDate,
|
|
|
+ },
|
|
|
});
|
|
|
},
|
|
|
closeCrouse(row) {
|
|
@@ -620,6 +641,12 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ newPractice() {
|
|
|
+ this.$router.push({
|
|
|
+ path: "/business/buildVip",
|
|
|
+ query:{courseType:'PRACTICE'}
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
watch: {
|
|
|
closeVisible(val) {
|