From 1be21989c76f0eb9a43b9ebcab322d7171dbccd6 Mon Sep 17 00:00:00 2001 From: zhaojiale <631455805@qq.com> Date: 星期四, 08 九月 2022 17:08:57 +0800 Subject: [PATCH] json转换取消 --- src/views/accidentManagementSystem/workInjuryDeclaration/component/openEdit.vue | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/views/accidentManagementSystem/workInjuryDeclaration/component/openEdit.vue b/src/views/accidentManagementSystem/workInjuryDeclaration/component/openEdit.vue index 4ea7017..302da1e 100644 --- a/src/views/accidentManagementSystem/workInjuryDeclaration/component/openEdit.vue +++ b/src/views/accidentManagementSystem/workInjuryDeclaration/component/openEdit.vue @@ -5,7 +5,9 @@ v-model="isShowDialog" width="769px" draggable + :fullscreen="full" > + <el-button @click="toggleFullscreen" size="small" class="pot" :icon="FullScreen"></el-button> <el-form ref="ruleFormRef" :model="ruleForm" @@ -44,8 +46,8 @@ <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20"> <el-form-item label="事故原因" prop="teamLevel"> <el-select v-model="ruleForm.teamLevel" class="w100" placeholder="请选择"> - <el-option label="人的不安全行为" value="admin"></el-option> - <el-option label="物的不安全状态" value="common"></el-option> + <el-option label="人的不安全行为" value="1"></el-option> + <el-option label="物的不安全状态" value="2"></el-option> </el-select> </el-form-item> </el-col> @@ -106,7 +108,8 @@ } from 'element-plus' import { - Search + Search, + FullScreen } from '@element-plus/icons-vue' import UserSelections from "/@/components/userSelections/index.vue" import CheckTemplate from '/@/components/checkTemplate/index.vue' @@ -338,6 +341,15 @@ const openUser = () => { userRef.value.openDialog(); }; + //全屏 + const full = ref(false); + const toggleFullscreen = () => { + if (full.value == false) { + full.value = true; + } else { + full.value = false; + } + }; return { openDialog, closeDialog, @@ -360,6 +372,9 @@ userRef, regionsDialog, openRef, + toggleFullscreen, + FullScreen, + full, }; }, }); -- Gitblit v1.9.2