hookehuyr

✨ feat: 老汪需要调用外部选择组织结构组件,重新调整样式

1 <!-- 1 <!--
2 * @Date: 2024-06-21 16:41:18 2 * @Date: 2024-06-21 16:41:18
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-06-21 16:59:12 4 + * @LastEditTime: 2024-10-08 14:42:15
5 * @FilePath: /vue-flow-editor/doc/selectUserPage.vue 5 * @FilePath: /vue-flow-editor/doc/selectUserPage.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
9 <div class="select-user-page"> 9 <div class="select-user-page">
10 <select-user-view 10 <select-user-view
11 :visible="dialogUserFormVisible" 11 :visible="dialogUserFormVisible"
12 + :fullscreen="true"
12 :list="dialogUserTags" 13 :list="dialogUserTags"
13 @close="onCloseUserView" 14 @close="onCloseUserView"
14 @confirm="onConfirmUserView" 15 @confirm="onConfirmUserView"
...@@ -42,11 +43,23 @@ const openUserForm = () => { ...@@ -42,11 +43,23 @@ const openUserForm = () => {
42 } 43 }
43 44
44 const onCloseUserView = (status) => { 45 const onCloseUserView = (status) => {
45 - dialogUserFormVisible.value = status 46 + // dialogUserFormVisible.value = status
47 + //在 iframe 中调用父页面中定义的变量 - 老汪控制
48 + let fn = parent.parent.onCancelOrgPricker;
49 + if (fn) {
50 + fn();
51 + return false;
52 + }
46 } 53 }
47 54
48 const onConfirmUserView = async (data) => { // 负责人弹框确认回调 55 const onConfirmUserView = async (data) => { // 负责人弹框确认回调
49 - console.warn(data); 56 + // console.warn(data);
57 + //在 iframe 中调用父页面中定义的变量 - 老汪控制
58 + let fn = parent.parent.onConfirmOrgPicker;
59 + if (fn) {
60 + fn(data);
61 + return false;
62 + }
50 } 63 }
51 </script> 64 </script>
52 65
......
1 <!-- 1 <!--
2 * @Date: 2023-11-01 10:18:53 2 * @Date: 2023-11-01 10:18:53
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-07-30 16:28:12 4 + * @LastEditTime: 2024-10-08 14:38:37
5 * @FilePath: /vue-flow-editor/doc/selectUserView.vue 5 * @FilePath: /vue-flow-editor/doc/selectUserView.vue
6 * @Description: 成员列表选择控件 6 * @Description: 成员列表选择控件
7 --> 7 -->
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
9 <el-dialog 9 <el-dialog
10 v-model="dialogUserFormVisible" 10 v-model="dialogUserFormVisible"
11 title="成员列表" 11 title="成员列表"
12 - @close="closeUserForm" 12 + :fullscreen="fullscreen"
13 + :show-close="false"
13 > 14 >
14 <div class="flow-tag__wrapper" style="max-height: 150px; overflow: auto;"> 15 <div class="flow-tag__wrapper" style="max-height: 150px; overflow: auto;">
15 <el-tag 16 <el-tag
...@@ -300,6 +301,7 @@ import { ElNotification, ElMessage, ElMessageBox } from 'element-plus' ...@@ -300,6 +301,7 @@ import { ElNotification, ElMessage, ElMessageBox } from 'element-plus'
300 301
301 const props = defineProps({ 302 const props = defineProps({
302 visible: Boolean, 303 visible: Boolean,
304 + fullscreen: Boolean,
303 list: Array, 305 list: Array,
304 }); 306 });
305 const emit = defineEmits(["close", "confirm"]); 307 const emit = defineEmits(["close", "confirm"]);
...@@ -1004,4 +1006,5 @@ const onSearchInput = (val) => { ...@@ -1004,4 +1006,5 @@ const onSearchInput = (val) => {
1004 overflow: hidden; /* 超出部分隐藏 */ 1006 overflow: hidden; /* 超出部分隐藏 */
1005 text-overflow: ellipsis; /* 用省略号表示被隐藏的部分 */ 1007 text-overflow: ellipsis; /* 用省略号表示被隐藏的部分 */
1006 } 1008 }
1009 +
1007 </style> 1010 </style>
......