From d57a6d8cca922c9a701887c0403c10d663a258cb Mon Sep 17 00:00:00 2001
From: 13937891274 <kxc0822>
Date: 星期一, 18 七月 2022 17:47:56 +0800
Subject: [PATCH] 全屏功能

---
 src/views/contingencyManagement/emergencyPlanStartRecord/component/openSee.vue |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/src/views/contingencyManagement/emergencyPlanStartRecord/component/openSee.vue b/src/views/contingencyManagement/emergencyPlanStartRecord/component/openSee.vue
index a73b224..da7030d 100644
--- a/src/views/contingencyManagement/emergencyPlanStartRecord/component/openSee.vue
+++ b/src/views/contingencyManagement/emergencyPlanStartRecord/component/openSee.vue
@@ -1,6 +1,13 @@
 <template>
   <div class="system-edit-user-container">
-    <el-dialog title="查看应急预案启动记录" v-model="isShowDialog" width="769px">
+    <el-dialog
+        title="查看应急预案启动记录"
+        v-model="isShowDialog"
+        width="769px"
+        draggable
+        :fullscreen="full"
+    >
+      <el-button @click="toggleFullscreen" size="small" class="pot" :icon="FullScreen"></el-button>
       <el-form
           ref="ruleFormRef"
           :rules="rules"
@@ -58,7 +65,8 @@
   FormInstance,
 } from 'element-plus'
 import {
-  Search
+  Search,
+  FullScreen
 } from '@element-plus/icons-vue'
 import UserSelections from "/@/components/userSelections/index.vue"
 import AddEmergencyPersonnel from "/@/views/contingencyManagement/contingency/component/addEmergencyPersonnel.vue";
@@ -141,6 +149,15 @@
       state.ruleForm = row;
       state.isShowDialog = true;
     };
+    //全屏
+    const full = ref(false);
+    const toggleFullscreen = () => {
+      if (full.value == false) {
+        full.value = true;
+      } else {
+        full.value = false;
+      }
+    };
     return {
       openDialog,
       closeDialog,
@@ -150,6 +167,9 @@
       openUser,
       userRef,
       ...toRefs(state),
+      toggleFullscreen,
+      FullScreen,
+      full,
     };
   },
 });

--
Gitblit v1.9.2