|
|
@@ -150,6 +150,14 @@
|
|
|
v-hasPermi="['core:safetycheck:tempregister']"
|
|
|
>临时登记</el-button
|
|
|
>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-download"
|
|
|
+ size="mini"
|
|
|
+ @click="handleExport"
|
|
|
+ v-hasPermi="['system:user:export']"
|
|
|
+ >导出</el-button
|
|
|
+ >
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
@@ -380,6 +388,7 @@ import { getLabel } from "@/views/commonOption.js";
|
|
|
import OrgTreeSelect from "@/components/orgTreeSelect";
|
|
|
import { checkPermi } from "@/utils/permission.js";
|
|
|
import dayjs from "dayjs";
|
|
|
+import request from "@/utils/request";
|
|
|
export default {
|
|
|
name: "checkTaskList",
|
|
|
dicts: ["resumption_plan_cycle", "resumption_status", "safety_check_status"],
|
|
|
@@ -601,7 +610,16 @@ export default {
|
|
|
// this.planList = r.data;
|
|
|
// });
|
|
|
// },
|
|
|
-
|
|
|
+ /** 导出按钮操作 */
|
|
|
+ handleExport() {
|
|
|
+ this.download(
|
|
|
+ "core/safetyTask/export",
|
|
|
+ {
|
|
|
+ ...this.queryParams,
|
|
|
+ },
|
|
|
+ `${this.orgName+'-检查登记跟踪-'+this.formatTime(new Date(),'YYYYMMDD')}.xlsx`
|
|
|
+ );
|
|
|
+ },
|
|
|
statusColor(status, isBackground) {
|
|
|
let color = "";
|
|
|
switch (status) {
|