From 7df64634d3d7b292713eebfa008c40b3f5f9f65f Mon Sep 17 00:00:00 2001 From: shj <1790240199@qq.com> Date: 星期二, 20 九月 2022 15:57:03 +0800 Subject: [PATCH] 修改 --- src/views/accidentManagementSystem/workInjuryDeclaration/component/openEdit.vue | 23 +++++++++++++++++++---- 1 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/views/accidentManagementSystem/workInjuryDeclaration/component/openEdit.vue b/src/views/accidentManagementSystem/workInjuryDeclaration/component/openEdit.vue index 4ea7017..70d0fc8 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, }; }, }); @@ -382,4 +397,4 @@ .el-select{ width: 100%; } -</style> \ No newline at end of file +</style> -- Gitblit v1.9.2