luojun 1 vuosi sitten
vanhempi
commit
9ee89160f1
2 muutettua tiedostoa jossa 20 lisäystä ja 1 poistoa
  1. 1 0
      src/views/check/index.vue
  2. 19 1
      src/views/check/task/index.vue

+ 1 - 0
src/views/check/index.vue

@@ -174,6 +174,7 @@
                   >新增任务</el-button
                 >
               </el-col>
+             
               <right-toolbar
                 :showSearch.sync="showSearch"
                 @queryTable="getList"

+ 19 - 1
src/views/check/task/index.vue

@@ -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) {