|
@@ -102,6 +102,7 @@
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button native-type="submit" type="primary">搜索</el-button>
|
|
<el-button native-type="submit" type="primary">搜索</el-button>
|
|
<el-button native-type="reset" type="danger">重置</el-button>
|
|
<el-button native-type="reset" type="danger">重置</el-button>
|
|
|
|
+ <el-button @click="onExport" type="primary" v-permission="'export/teacherServeInfo'">导出</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</save-form>
|
|
</save-form>
|
|
<div class="btnWraps" style="margin-bottom: 20px">
|
|
<div class="btnWraps" style="margin-bottom: 20px">
|
|
@@ -241,6 +242,8 @@ import { getTeacherServeInfo, teacherServeRemindPush } from "./api";
|
|
import { getTimes } from "@/utils";
|
|
import { getTimes } from "@/utils";
|
|
import { getNowDateAndSunday, getNowDateAndMonday } from "@/utils/date";
|
|
import { getNowDateAndSunday, getNowDateAndMonday } from "@/utils/date";
|
|
import { jobNature } from "@/utils/searchArray";
|
|
import { jobNature } from "@/utils/searchArray";
|
|
|
|
+import { Export } from '@/utils/downLoadFile'
|
|
|
|
+import qs from 'qs'
|
|
export default {
|
|
export default {
|
|
components: { pagination, serverMask },
|
|
components: { pagination, serverMask },
|
|
data() {
|
|
data() {
|
|
@@ -393,6 +396,15 @@ export default {
|
|
return time.getTime() >= Date.now();
|
|
return time.getTime() >= Date.now();
|
|
},
|
|
},
|
|
};
|
|
};
|
|
|
|
+ },
|
|
|
|
+ onExport() {
|
|
|
|
+ const {orderDate, ...rest} = this.searchForm;
|
|
|
|
+ Export(this, {
|
|
|
|
+ url: '/api-web/export/teacherServeInfo',
|
|
|
|
+ fileName: '退团申请.xlsx',
|
|
|
|
+ method: 'post',
|
|
|
|
+ params: qs.stringify({ ...rest, ...getTimes(this.orderDate, ["monday", "sunday"]) })
|
|
|
|
+ }, '您确定导出退团申请列表?')
|
|
}
|
|
}
|
|
},
|
|
},
|
|
};
|
|
};
|