From cc03d2d54e4cd3991930a7bbcaa67691a79e1304 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 06 Aug 2021 17:09:09 +0800
Subject: [PATCH] 派遣时间范围搜索,单位附件上传 ++

---
 src/views/securityUnit/index.vue |   27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

diff --git a/src/views/securityUnit/index.vue b/src/views/securityUnit/index.vue
index 23fb637..840671b 100644
--- a/src/views/securityUnit/index.vue
+++ b/src/views/securityUnit/index.vue
@@ -16,6 +16,15 @@
       @refresh-change="refreshChange"
       @row-click="rowClick"
     >
+      <template slot-scope="{ type, size, row }" slot="menu">
+        <el-button
+          :size="size"
+          :type="type"
+          @click="handleUploadPage(row)"
+          icon="el-icon-circle-check"
+          >单位装备清单附件上传
+        </el-button>
+      </template>
       <template slot="menuLeft">
         <el-button
           type="primary"
@@ -103,6 +112,7 @@
   adddata2,
   getDeptLazyTree,
 } from "@/api/securityUnit/securityUnit";
+import { mapGetters } from "vuex";
 export default {
   data() {
     var w = 160,
@@ -219,7 +229,7 @@
         searchSize: "mini",
         searchMenuSpan: 6,
         height: 693,
-        menuWidth: 160,
+        menuWidth: 290,
         align: "center",
         selection: true,
         column: column,
@@ -227,6 +237,7 @@
     };
   },
   computed: {
+    ...mapGetters(["userInfo"]),
     ids() {
       let ids = [];
       this.selectionList.forEach((ele) => {
@@ -382,7 +393,21 @@
         // params: { row: row.identificationnumber },
       });
     },
+    //跳转到附近列表页面
+    handleUploadPage(row) {
+      this.$router.push({
+        path: `/resource/attachCopy`,
+        query: {
+          deptId: row.departmentid,
+          enterprisename: row.enterprisename,
+        },
+      });
+    },
     onLoad(page, params = {}) {
+      if (this.userInfo.role_id == "1414840172333842433") {
+        console.log("是公安add jurisdiction");
+        params["jurisdiction"] = this.userInfo.jurisdiction;
+      }
       this.loading = true;
       getdata(
         page.currentPage,

--
Gitblit v1.9.3