From b4b7a612c07334bfd92eb1a5aa475890e738dfc7 Mon Sep 17 00:00:00 2001 From: shj <1790240199@qq.com> Date: 星期二, 19 七月 2022 10:18:08 +0800 Subject: [PATCH] css --- src/views/accidentManagementSystem/accidentExpress/component/openAdd.vue | 40 ++++++++++++++++++++++++++++++++++++++-- 1 files changed, 38 insertions(+), 2 deletions(-) diff --git a/src/views/accidentManagementSystem/accidentExpress/component/openAdd.vue b/src/views/accidentManagementSystem/accidentExpress/component/openAdd.vue index 0b8a6b2..ea0c2f7 100644 --- a/src/views/accidentManagementSystem/accidentExpress/component/openAdd.vue +++ b/src/views/accidentManagementSystem/accidentExpress/component/openAdd.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" @@ -51,12 +53,19 @@ </el-col> <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20"> <el-form-item label="是否有伤亡"> - <el-radio-group v-model="ruleForm.resource"> + <el-radio-group v-model="ruleForm.resource" @change="typeChang"> <el-radio label="是" /> <el-radio label="否" /> </el-radio-group> </el-form-item> + <el-form-item v-if="ruleForm.resource" prop="delivery"> +<!-- <el-input v-model="ruleForm.delivery" placeholder="">--> +<!-- <template #append> <el-button :icon="Search" @click="openDai" /> </template--> +<!-- ></el-input>--> + <el-button :icon="Search" @click="openDai" /> + </el-form-item> </el-col> + <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20"> <el-form-item label="事故简要经过"> <el-input v-model="ruleForm.describe" type="textarea" placeholder="请填写事故简要经过" maxlength="150"></el-input> @@ -86,6 +95,7 @@ </span> </template> </el-dialog> + <NumberOfCasualties ref="ShowUser"></NumberOfCasualties> <CheckTemplate ref="Shows"/> <userSelections ref="userRef"/> <RegionsDialog ref="openRef"/> @@ -106,8 +116,10 @@ } from 'element-plus' import { - Search + Search, + FullScreen } from '@element-plus/icons-vue' +import NumberOfCasualties from '/@/views/accidentManagementSystem/accidentExpress/component/numberOfCasualties.vue' import UserSelections from "/@/components/userSelections/index.vue" import CheckTemplate from '/@/components/checkTemplate/index.vue' import RegionsDialog from '/@/components/regionsDialog/index.vue' @@ -118,6 +130,7 @@ CheckTemplate, UserSelections, RegionsDialog, + NumberOfCasualties, }, setup() { const isShowDialog = ref(false) @@ -323,6 +336,14 @@ } }) } + // 是否有伤亡弹窗 + const typeChang=()=>{ + console.log('tag',ruleForm) + } + const ShowUser = ref(); + const openDai =()=>{ + ShowUser.value.openDialog() + } // 应急队伍弹窗 const Shows=ref() const daiInpt=()=>{ @@ -338,7 +359,18 @@ const openUser = () => { userRef.value.openDialog(); }; + //全屏 + const full = ref(false); + const toggleFullscreen = () => { + if (full.value == false) { + full.value = true; + } else { + full.value = false; + } + }; return { + ShowUser, + typeChang, openDialog, closeDialog, isShowDialog, @@ -359,7 +391,11 @@ openUser, userRef, regionsDialog, + openDai, openRef, + toggleFullscreen, + FullScreen, + full, }; }, }); -- Gitblit v1.9.2