From 111689135f165ecb2ea5ce0881784dfc89b58d87 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 05 Nov 2021 17:33:45 +0800
Subject: [PATCH] +增加查看信息 以及修改掐他字段

---
 src/components/Approval/Approval.vue |   95 ++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 92 insertions(+), 3 deletions(-)

diff --git a/src/components/Approval/Approval.vue b/src/components/Approval/Approval.vue
index 3b76958..b41e0a8 100644
--- a/src/components/Approval/Approval.vue
+++ b/src/components/Approval/Approval.vue
@@ -33,8 +33,29 @@
             <i class="zc" v-if="row.type == '2'"></i>
           </el-tag>
         </template>
+        <template slot-scope="{ type, size, row }" slot="menu">
+          <el-button
+            icon="icon-zhengjian"
+            :size="size"
+            :type="type"
+            class="zhengJian-icon"
+            @click.stop="handleCredentials(row)"
+            >查看</el-button
+          >
+        </template>
       </avue-crud>
     </basic-container>
+    <div class="seeOnces" v-if="openOnceShow">
+      <i
+        class="el-icon-close openOnceCLoce"
+        style="color: #000 !important"
+        @click="openClose"
+      >
+      </i>
+      <div class="seeOncesMain">
+        <cardPopuponce class="openOnce" :paredData="paredData"></cardPopuponce>
+      </div>
+    </div>
   </div>
 </template>
 
@@ -47,7 +68,11 @@
   getListrev,
 } from "@/api/permit/permit";
 import { mapGetters } from "vuex";
+import cardPopuponce from "../cardPopup/cardPopuponce.vue";
 export default {
+  components: {
+    cardPopuponce,
+  },
   props: {
     visible: {
       type: Boolean,
@@ -78,6 +103,10 @@
   },
   data() {
     return {
+      useWhere: "",
+      paredData: "",
+      openOnceShow: false,
+
       data: [],
       query: {},
       loading: false,
@@ -96,11 +125,12 @@
         searchShow: true,
         searchMenuSpan: 8,
         labelWidth: 130,
+        menuWidth: 100,
         headerAlign: "center",
         align: "center",
         border: true,
         index: true,
-        viewBtn: true,
+        viewBtn: false,
         selection: true,
         dialogClickModal: false,
         column: [
@@ -136,12 +166,32 @@
             valueFormat: "yyyy-MM-dd HH:mm:ss",
           },
           {
-            label: "预计审核时间",
+            label: "截止受理时间",
             prop: "overtime",
             addDisplay: false,
             type: "date",
             format: "yyyy-MM-dd",
             valueFormat: "yyyy-MM-dd",
+          },
+          {
+            label: "所属辖区",
+            prop: "jurisdiction",
+            type: "tree",
+            dicUrl: "/api/jurisdiction/lazy-trees",
+            // hide: true,
+            props: {
+              label: "title",
+              value: "id",
+            },
+            labelWidth: 160,
+            span: 12,
+            rules: [
+              {
+                required: true,
+                message: "请输入发证时间",
+                trigger: "blur",
+              },
+            ],
           },
           {
             label: "审核状态",
@@ -178,6 +228,15 @@
         });
       }
       done();
+    },
+    handleCredentials(val) {
+      this.openOnceShow = true;
+      this.paredData = val;
+      // console.log(val);
+    },
+    openClose() {
+      this.paredData = "";
+      this.openOnceShow = false;
     },
     onLoad(page, params = {}) {
       this.loading = true;
@@ -223,5 +282,35 @@
 };
 </script>
 
-<style>
+<style lang="scss">
+.seeOnces {
+  position: absolute;
+  top: -50px;
+  left: 6px;
+  width: 1251px;
+  height: 850px;
+  background-color: #fff;
+  z-index: 10;
+  border-radius: 4px;
+}
+.openOnce {
+  width: 100%;
+  height: 100%;
+}
+.seeOncesMain {
+  width: 100%;
+  height: 100%;
+  overflow: scroll;
+}
+.openOnceCLoce {
+  position: absolute;
+  top: 17px;
+  font-size: 20px;
+  right: 11px;
+  z-index: 10;
+  color: #fff;
+}
+.openOnceCLoce:hover {
+  color: red;
+}
 </style>
\ No newline at end of file

--
Gitblit v1.9.3