From dc1a337bae00425ce6b1f68a96d3a7418d4a0926 Mon Sep 17 00:00:00 2001 From: 13937891274 <kxc0822> Date: 星期四, 07 七月 2022 17:57:09 +0800 Subject: [PATCH] 应急预案弹窗 --- src/views/contingencyManagement/contingency/component/openAdd.vue | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/views/contingencyManagement/contingency/component/openAdd.vue b/src/views/contingencyManagement/contingency/component/openAdd.vue index f09ff4c..16c05f2 100644 --- a/src/views/contingencyManagement/contingency/component/openAdd.vue +++ b/src/views/contingencyManagement/contingency/component/openAdd.vue @@ -36,7 +36,7 @@ class="input-with-select" > <template #append> - <el-button :icon="Search"/> + <el-button :icon="Search" @click="openUser"/> </template> </el-input> </el-form-item> @@ -126,6 +126,7 @@ </template> </el-dialog> <AddEmergencyPersonnel ref="addRef" /> + <UserSelections ref="userRef"/> </div> </template> @@ -146,6 +147,7 @@ Search } from '@element-plus/icons-vue' import AddEmergencyPersonnel from "/@/views/contingencyManagement/contingency/component/addEmergencyPersonnel.vue"; +import UserSelections from "/@/components/userSelections/index.vue" // 定义表格数据类型 interface User { personnelName: string @@ -156,7 +158,8 @@ export default defineComponent({ name: 'openAdd', components: { - AddEmergencyPersonnel + AddEmergencyPersonnel, + UserSelections, }, setup() { const isShowDialog = ref(false) @@ -234,6 +237,11 @@ ], }, ] + // 打开用户选择弹窗 + const userRef = ref(); + const openUser = () => { + userRef.value.openDialog(); + }; //定义tabs切换 const activeName = ref('first') @@ -324,6 +332,8 @@ submitForm, rules, addRef, + userRef, + openUser, onAddEmergencyPersonnel, }; }, -- Gitblit v1.9.2