From ec3c0e8012bb8ffcfed43bf4dc552e1e6214c771 Mon Sep 17 00:00:00 2001
From: shj <1790240199@qq.com>
Date: Tue, 02 Aug 2022 15:06:07 +0800
Subject: [PATCH] 对接
---
src/components/DailogSearchUser/index.vue | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/components/DailogSearchUser/index.vue b/src/components/DailogSearchUser/index.vue
index 8b01c27..0db0657 100644
--- a/src/components/DailogSearchUser/index.vue
+++ b/src/components/DailogSearchUser/index.vue
@@ -119,7 +119,6 @@
//左边树形部分点击获取回调
const names = ref<any>();
const handleNodeClick = (data: Tree) => {
- console.log(data);
goalManagementApi()
.getManName(data.depId)
.then((res) => {
@@ -150,7 +149,7 @@
};
// 右方点击添加后显示标签
const dynamicTags = ref(['']);
- const handleClose = (tag: string) => {
+ const handleClose = (tag: any) => {
dynamicTags.value.splice(dynamicTags.value.indexOf(tag), 1);
radio1.value = '';
};
@@ -158,9 +157,12 @@
const radio = (event: any) => {
dynamicTags.value[0] = event;
};
+ const types=ref()
// 开启弹窗
const dialogVisible = ref(false);
- const openDailog = () => {
+ const openDailog = (type:any) => {
+ console.log(type)
+ types.value=type
dialogVisible.value = true;
};
//全屏
@@ -174,10 +176,11 @@
};
const submitForm = () => {
let obj = JSON.parse(JSON.stringify(dynamicTags.value));
- emit('SearchUser', obj[0]);
+ emit('SearchUser', obj[0],types.value);
dialogVisible.value = false;
};
return {
+ types,
filterText,
treeRef,
filterNode,
--
Gitblit v1.9.2