From f6363877ff1105d692ffe31bb79cd936a0ba9307 Mon Sep 17 00:00:00 2001 From: 13937891274 <kxc0822> Date: 星期五, 05 八月 2022 10:00:22 +0800 Subject: [PATCH] 数据对接 --- src/components/DailogSearchUser/index.vue | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/DailogSearchUser/index.vue b/src/components/DailogSearchUser/index.vue index 7bfe7f2..1632e6a 100644 --- a/src/components/DailogSearchUser/index.vue +++ b/src/components/DailogSearchUser/index.vue @@ -149,7 +149,7 @@ }; // 右方点击添加后显示标签 const dynamicTags = ref(['']); - const handleClose = (tag: string) => { + const handleClose = (tag: any) => { dynamicTags.value.splice(dynamicTags.value.indexOf(tag), 1); radio1.value = ''; }; @@ -161,6 +161,7 @@ // 开启弹窗 const dialogVisible = ref(false); const openDailog = (type:any) => { + console.log(type) types.value=type dialogVisible.value = true; }; @@ -174,8 +175,7 @@ } }; const submitForm = () => { - let obj = JSON.parse(JSON.stringify(dynamicTags.value)); - emit('SearchUser', obj[0],types.value); + emit('SearchUser', dynamicTags.value); dialogVisible.value = false; }; return { -- Gitblit v1.9.2