From 39f6cf663d444830a2ccefee7681e06e0e66e239 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 07 Jan 2022 14:11:22 +0800
Subject: [PATCH] 成绩修改,保安员检查,单位检查导出修改

---
 src/views/qualificationExamination/scoreInquiry.vue |  178 +++--------------------------------------------------------
 1 files changed, 9 insertions(+), 169 deletions(-)

diff --git a/src/views/qualificationExamination/scoreInquiry.vue b/src/views/qualificationExamination/scoreInquiry.vue
index 04216f4..031172d 100644
--- a/src/views/qualificationExamination/scoreInquiry.vue
+++ b/src/views/qualificationExamination/scoreInquiry.vue
@@ -51,10 +51,9 @@
 //   remove,
 // } from "@/api/regulatoryInformation/regulatoryInformation";
 import { mapGetters } from "vuex";
-import { datasing } from "./dataqualificationExamination";
-// import { getList } from "@/api/qualificationExamination/qualificationExamination";
-import { getLisperexamScore } from "@/api/qualificationExamination/scoreInquiry";
 import Qs from "qs";
+import { getToken } from "@/util/auth";
+import { getLisperexamScore } from "@/api/qualificationExamination/scoreInquiry";
 export default {
   data() {
     return {
@@ -97,8 +96,7 @@
             prop: "examName",
             search: true,
             searchSpan: 5,
-            // slot: true,
-            // display: false,
+            minWidth: 150,
           },
           {
             // label: "考试开始时间",
@@ -117,11 +115,6 @@
                 trigger: "click",
               },
             ],
-            // slot: true,
-            // display: false,
-            // formatter: function (row, value) {
-            //   return (value = value + "%");
-            // },
           },
           // {
           //   label: "考试结束时间",
@@ -145,12 +138,6 @@
           //   // formatter: function (row, value) {
           //   //   return (value = value + "万元");
           //   // },
-          // },
-          // {
-          //   label: "考试类型",
-          //   prop: "examinationaddress",
-          //   // slot: true,
-          //   // display: false,
           // },
           {
             label: "理论成绩",
@@ -217,8 +204,6 @@
                 value: 3,
               },
             ],
-            // slot: true,
-            // display: false,
           },
           {
             label: "是否发证",
@@ -226,16 +211,7 @@
           },
         ],
       },
-      data: [
-        // {
-        //   deptid: "江西众泰保安公司",
-        //   punishtype: 2,
-        //   punishreason: "非法施工",
-        //   punishresult: "没收全部非法所得财产,并罚款3W元",
-        //   punishtime: "2021-01-01",
-        //   punisnum: 110110110120,
-        // },
-      ],
+      data: [],
     };
   },
   computed: {
@@ -266,9 +242,6 @@
       })
         .then(() => {
           //获取查询条件
-          // console.log(this.userInfo, 456);
-          // console.log(this.query, 456);
-          // return;
           var data = {
             startTime: this.query.startTime,
             endTime: this.query.endTime,
@@ -278,30 +251,14 @@
             jurisdiction: this.userInfo.jurisdiction,
           };
           //导出
-          // if (
-          //   this.userInfo.role_name == "保安公司管理员" ||
-          //   this.userInfo.role_name == "保安"
-          // ) {
-          //   //如果是保安公司管理员
-          //   data["deptId"] = this.userInfo.dept_id;
-          // }
-          // if (this.userInfo.role_name == "培训公司管理员") {
-          //   //如果是培训公司管理员
-          //   data["trainUnitId"] = this.userInfo.dept_id;
-          // }
-          // data["examType"] = 2;
           //序列号url形式,用&拼接
           data = Qs.stringify(data);
-          window.open(`/api/examScore/export-examScore?` + data);
+          window.open(
+            `/api/examScore/export-examScore?${
+              this.website.tokenHeader
+            }=${getToken()}&` + data
+          );
         })
-        .catch((action) => {
-          // this.$message({
-          //   type: 'info',
-          //   message: action === 'cancel'
-          //     ? '放弃保存并离开页面'
-          //     : '停留在当前页面'
-          // })
-        });
     },
     getStartTime() {
       if (
@@ -323,65 +280,6 @@
       }
       return "";
     },
-
-    rowSave(row, done, loading) {
-      adddata(row).then(
-        () => {
-          this.onLoad(this.page);
-          this.$message({
-            type: "success",
-            message: "操作成功!",
-          });
-          done();
-        },
-        (error) => {
-          window.console.log(error);
-          loading();
-        }
-      );
-    },
-    rowUpdates(row, index, done, loading) {
-      // console.log(42342);
-      update(row).then(
-        () => {
-          this.onLoad(this.page);
-          this.$message({
-            type: "success",
-            message: "操作成功!",
-          });
-          done();
-        },
-        (error) => {
-          window.console.log(error);
-          loading();
-        }
-      );
-    },
-    rowDel(row) {
-      this.$confirm("确定将选择数据删除?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(() => {
-          return remove(row.id);
-        })
-        .then(() => {
-          this.onLoad(this.page);
-          this.$message({
-            type: "success",
-            message: "操作成功!",
-          });
-        });
-    },
-    // beforeOpen(done, type) {
-    //   if (["edit", "view"].includes(type)) {
-    //     getDetail(this.form.id).then((res) => {
-    //       this.form = res.data.data;
-    //     });
-    //   }
-    //   done();
-    // },
     searchReset() {
       this.query = {};
       this.onLoad(this.page);
@@ -411,7 +309,6 @@
       this.onLoad(this.page, this.query);
     },
     onLoad(page, params = {}) {
-      // this.loading = false;
       this.loading = true;
       getLisperexamScore(
         page.currentPage,
@@ -434,65 +331,8 @@
           }
         }
         this.loading = false;
-        // for (var k in d) {
-        //   if (d[k].qualified == 0) {
-        //     d[k].qualified = "通过";
-        //   } else if (d[k].qualified == 1) {
-        //     d[k].qualified = "不通过";
-        //   } else if (d[k].qualified == 2) {
-        //     d[k].qualified = "暂未录入实操成绩";
-        //   }
-        // }
-        // this.data = d;
-        // console.log(this.data);
-
-        // this.selectionClear();
       });
     },
-    // onLoad(page, params = {}) {
-    //   // this.loading = false;
-    //   this.loading = true;
-    //   //   getListJSON().then((res) => {
-    //   //   axios
-    //   //     .get(
-    //   //       "../../api/qualificationExamination/signQualificationExamination.json"
-    //   //     )
-    //   //     .then((res) => {
-    //   // page.currentPage,
-    //   // page.pageSize,
-    //   // Object.assign(params, this.query)
-    //   if (datasing) {
-    //     var res = datasing;
-    //     console.log(res, "signQualificationExamination");
-    //     const data = res.data;
-    //     // this.page.total = data.total;
-    //     var d = data.records;
-    //     for (var k in d) {
-    //       d[k].examination_mx = "正常";
-    //       d[k].examination_type = "正常";
-    //       d[k]["carid"] = "370111198807051124";
-    //       d[k]["certificate"] = "拥有";
-    //       d[k]["reviewTime"] = "2021-02-21";
-    //       d[k]["results"] = "通过";
-    //       d[k]["onjob"] = "是";
-    //     }
-    //     this.data = d;
-    //     this.loading = false;
-    //   }
-    //   // this.selectionClear();
-    //   // });
-    // },
-
-    // 行单击
-    // handleRowClick(row) {
-    //   // delete (row["name"]);
-    //   var obj = row;
-    //   obj["name"] = "保安公司详细资料";
-    //   this.$router.push({
-    //     path: `/securityCompany/index`,
-    //     query: obj,
-    //   });
-    // },
   },
 };
 </script>

--
Gitblit v1.9.3