From dc1a337bae00425ce6b1f68a96d3a7418d4a0926 Mon Sep 17 00:00:00 2001 From: 13937891274 <kxc0822> Date: 星期四, 07 七月 2022 17:57:09 +0800 Subject: [PATCH] 应急预案弹窗 --- src/views/contingencyManagement/panManagement/component/openAdd.vue | 39 ++++++++++++++++++++++++++++++++++----- 1 files changed, 34 insertions(+), 5 deletions(-) diff --git a/src/views/contingencyManagement/panManagement/component/openAdd.vue b/src/views/contingencyManagement/panManagement/component/openAdd.vue index 629340b..580eba3 100644 --- a/src/views/contingencyManagement/panManagement/component/openAdd.vue +++ b/src/views/contingencyManagement/panManagement/component/openAdd.vue @@ -58,14 +58,14 @@ </el-form-item> </el-col> <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20"> - <el-form-item label="编写人" prop="telephone"> + <el-form-item label="编写人" prop="telephone" > <el-input v-model="ruleForm.teamLeader" placeholder="请选择" class="input-with-select" > <template #append> - <el-button :icon="Search"/> + <el-button :icon="Search" @click="openUser"/> </template> </el-input> </el-form-item> @@ -92,7 +92,7 @@ </el-form-item> </el-col> <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20"> - <el-form-item label="应急队伍" prop="telephone"> + <el-form-item label="应急队伍" prop="telephone" @click="daiInpt" > <el-input v-model="ruleForm.teamLeader" placeholder="请选择" @@ -130,7 +130,7 @@ class="input-with-select" > <template #append> - <el-button :icon="Search"/> + <el-button :icon="Search" @click="regionsDialog"/> </template> </el-input> </el-form-item> @@ -144,6 +144,9 @@ </span> </template> </el-dialog> + <DailogSearch ref="Shows"/> + <userSelections ref="userRef"/> + <RegionsDialog ref="openRef"/> </div> </template> @@ -162,11 +165,16 @@ import { Search } from '@element-plus/icons-vue' +import UserSelections from "/@/components/userSelections/index.vue" +import DailogSearch from '/@/views/contingencyManagement/panManagement/component/DailogSearch.vue' +import RegionsDialog from '/@/views/contingencyManagement/panManagement/component/regionsDialog.vue' export default defineComponent({ name: 'openAdd', components: { - + DailogSearch, + UserSelections, + RegionsDialog, }, setup() { const isShowDialog = ref(false) @@ -372,6 +380,21 @@ } }) } + // 应急队伍弹窗 + const Shows=ref() + const daiInpt=()=>{ + Shows.value.openDailog() + } + // 选择区域弹窗 + const openRef=ref() + const regionsDialog=()=>{ + openRef.value.openDailog() + } + // 打开用户选择弹窗 + const userRef = ref(); + const openUser = () => { + userRef.value.openDialog(); + }; return { openDialog, closeDialog, @@ -385,9 +408,15 @@ value1, treeSelect, tree, + daiInpt, + Shows, ruleFormRef, submitForm, // rules, + openUser, + userRef, + regionsDialog, + openRef, }; }, }); -- Gitblit v1.9.2