egova-urbanpro-web 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/README.md +134 -0
  2. package/es/_plugin-vue_export-helper-BwmSBgGG.js +9 -0
  3. package/es/act-menu-refresh-3YeQne1X.js +77 -0
  4. package/es/async-select-modal-lRKCEMBM.js +316 -0
  5. package/es/bulletin-add-Dt1Xi_oL.js +1251 -0
  6. package/es/bulletin-config-Ber1L1T2.js +297 -0
  7. package/es/bulletin-detail-Ce7riX6X.js +1430 -0
  8. package/es/bulletin-detail-file-2Ij39UlM.js +187 -0
  9. package/es/bulletin-drawer-DmwW23ng.js +461 -0
  10. package/es/bulletin-level-Cz_6Mg2x.js +501 -0
  11. package/es/bulletin-manage-JMjvzUhg.js +1526 -0
  12. package/es/bulletin-notify-info-drawer-vR3KSaRS.js +487 -0
  13. package/es/bulletin-property-CvohCK8q.js +656 -0
  14. package/es/bulletin-type-CQS6_MYv.js +675 -0
  15. package/es/bulletin-view-DcdZrV19.js +870 -0
  16. package/es/business-collection-and-repair-B2DfBAsx.js +109 -0
  17. package/es/cascader-filter-DOg-iNnE.js +68 -0
  18. package/es/cascader-multiple-filter-C-cKxmkk.js +103 -0
  19. package/es/chat-BB8_LIT6.js +4634 -0
  20. package/es/checkbox-filter-DC1VaGo9.js +39 -0
  21. package/es/chunk-CHb_fpD5.js +29 -0
  22. package/es/condition-search-criteria-B_HnHQBy.js +190 -0
  23. package/es/constant-CYnp-Cj8.js +4925 -0
  24. package/es/constants-BijBPSuc.js +480 -0
  25. package/es/constants-DQ6XzzDS.js +137 -0
  26. package/es/contact-DxLrJ_f_.js +339 -0
  27. package/es/contact-unit-BvCPmyNK.js +708 -0
  28. package/es/department-radio-filter-BbrntEcc.js +72 -0
  29. package/es/downtime-timer-repair-D_SuN4fE.js +255 -0
  30. package/es/dynamic-form-input-10ce5824-Cju2XHEl.js +60 -0
  31. package/es/dynamic-form-input-number-c60b4ff5-gYvoAgss.js +61 -0
  32. package/es/dynamic-form-login-type-6c9d78bf-CxtLGfA6.js +175 -0
  33. package/es/dynamic-form-multiple-select-3e2bd885-CrD_ALk8.js +77 -0
  34. package/es/dynamic-form-password-57dc81c4-CcmoNfq0.js +84 -0
  35. package/es/dynamic-form-region-tree-b2c57d1c-BRm2M8Er.js +133 -0
  36. package/es/dynamic-form-select-cdbf49ad-C0eLS2zd.js +76 -0
  37. package/es/dynamic-form-upload-768a0d32-ClHw2ZkO.js +116 -0
  38. package/es/egova-urbanpro-web.css +10907 -0
  39. package/es/egova-urbanpro-web.d.ts +79 -0
  40. package/es/egova-urbanpro-web.js +9223 -0
  41. package/es/field-cell-PNcIBk8w.js +93 -0
  42. package/es/field-icon-cell-BQvkUM-O.js +65 -0
  43. package/es/file-cell-ClyA9XoC.js +147 -0
  44. package/es/hooks-CuXq9j8q.js +324 -0
  45. package/es/icon-cell-BF-Nf-QP.js +78 -0
  46. package/es/im-conversation-06-TFmZZ.js +158 -0
  47. package/es/image-cell-cu9ezfsV.js +92 -0
  48. package/es/image-gray-surS1IZ2.js +5 -0
  49. package/es/index-15d85366-BVTMMFAV.js +97 -0
  50. package/es/index-lib-23bd328c-DtcJvHvJ.js +42122 -0
  51. package/es/info-card-DgYedeWN.js +30 -0
  52. package/es/localforage-B_66fZyP.js +1798 -0
  53. package/es/number-filter-SyfJaaIG.js +55 -0
  54. package/es/operation-selector-TEcr5s2w.js +157 -0
  55. package/es/option-style-BTFl4VQj.js +32 -0
  56. package/es/package.json +46 -0
  57. package/es/query-CiRQQsE1.js +11 -0
  58. package/es/radio-filter-t5QSYiRY.js +68 -0
  59. package/es/rec-delete-DBvqRiKp.js +74 -0
  60. package/es/rec-timer-refresh-Dfd6hH2t.js +74 -0
  61. package/es/region-radio-filter-CoybNPaj.js +271 -0
  62. package/es/render-cell-BI9mUiTe.js +45 -0
  63. package/es/select-checkbox-filter-B89vKdLG.js +60 -0
  64. package/es/select-multiple-tree-filter-BEYUKg7q.js +298 -0
  65. package/es/select-radio-filter-BW2P3uwp.js +58 -0
  66. package/es/select-single-tree-filter-CKYo3kV1.js +94 -0
  67. package/es/service-BabEdPB2.js +100 -0
  68. package/es/service-fs3hJh7w.js +126 -0
  69. package/es/text-filter-B80UB8KG.js +66 -0
  70. package/es/time-filter-Nc-cflut.js +211 -0
  71. package/es/types-DjDPFQk1.js +44 -0
  72. package/es/use-file-D_9JbApO.js +58 -0
  73. package/es/user-radio-filter-T79Kp2jW.js +72 -0
  74. package/es/utils-4fqWDxwG.js +2643 -0
  75. package/es/utils-BlJtAQle.js +161 -0
  76. package/es/utils-Cn_7yZzr.js +355 -0
  77. package/es/utils-D-E5UJPP.js +14 -0
  78. package/es/version.json +33 -0
  79. package/package.json +165 -0
@@ -0,0 +1,487 @@
1
+ /*! egova-urbanpro-web v0.0.1 */
2
+ import { b as Enabled, j as http, s as I18NextKey } from "./utils-4fqWDxwG.js";
3
+ import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwmSBgGG.js";
4
+ import { E as BulletinService, x as BulletinNoticeInfoType } from "./constants-BijBPSuc.js";
5
+ import { c as getBulletinNoticeInfoIcon, d as getUnifyNoticeInfoItem, t as assignBulletinNoticeType } from "./utils-BlJtAQle.js";
6
+ import { useUserStore } from "@kyjian/libs/hooks";
7
+ import { handleTreeData, isEmptyText } from "@kyjian/libs/utils";
8
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, normalizeClass, onActivated, onMounted, openBlock, popScopeId, pushScopeId, reactive, ref, renderList, resolveDirective, toDisplayString, toRefs, watch, withCtx, withDirectives, withModifiers } from "vue";
9
+ import { t } from "i18next";
10
+ import { storeToRefs } from "pinia";
11
+ import { Avatar, Button, Drawer, Pagination, Popconfirm, Space } from "ant-design-vue/es";
12
+ import { ZtEmpty, ZtTypoText, ZtUnitHumanTree } from "zartd-biz/es/index";
13
+ //#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-manage/hooks/use-bulletin-form-options.ts
14
+ /**
15
+ * @description: 通知公告创建时的一些选项数据
16
+ */
17
+ function useBulletinFormOptions(options) {
18
+ const { noAuth } = options ?? {};
19
+ const service = new BulletinService(http);
20
+ const bulletinTypeAllNodes = reactive(/* @__PURE__ */ new Map());
21
+ const bulletinTypeTree = ref([]);
22
+ const bulletinLevelList = ref([]);
23
+ async function initBulletinType() {
24
+ try {
25
+ let res;
26
+ if (noAuth) res = await service.getBulletinTypeTreeNoAuth({ enableFlag: Enabled.ENABLE });
27
+ else res = await service.getBulletinTypeTree({ enableFlag: Enabled.ENABLE });
28
+ if (!res.hasError) {
29
+ bulletinTypeAllNodes.clear();
30
+ bulletinTypeTree.value = handleTreeData({
31
+ treeNodes: res.result?.resultList || [],
32
+ allNodes: bulletinTypeAllNodes,
33
+ handleNodeData(node) {
34
+ node.label = node.data.name;
35
+ node.value = node.data.id;
36
+ node.icon = "ega-core-iconfont ega-core-icon-sub-type-sound bulletin-type-icon-color-primary";
37
+ if (!node.data.seniorId) {
38
+ node.selectable = false;
39
+ node.icon = "zt-color-iconfont zt-icon-color-folder";
40
+ }
41
+ }
42
+ });
43
+ }
44
+ } catch (error) {
45
+ console.log("error: ", error);
46
+ }
47
+ }
48
+ async function initBulletinLevel() {
49
+ try {
50
+ let res;
51
+ if (noAuth) res = await service.getBulletinLevelListNoAuth({ enableFlag: Enabled.ENABLE });
52
+ else res = await service.getBulletinLevelList({ enableFlag: Enabled.ENABLE });
53
+ if (!res.hasError) bulletinLevelList.value = res.result?.resultList ?? [];
54
+ } catch (error) {
55
+ console.log("error: ", error);
56
+ }
57
+ }
58
+ function init() {
59
+ initBulletinType();
60
+ initBulletinLevel();
61
+ }
62
+ onMounted(() => {
63
+ init();
64
+ });
65
+ onActivated(() => {
66
+ init();
67
+ });
68
+ return {
69
+ bulletinTypeTree,
70
+ bulletinLevelList,
71
+ bulletinTypeAllNodes
72
+ };
73
+ }
74
+ //#endregion
75
+ //#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-manage/hooks/use-unit-human-tree-display-order.ts
76
+ /**
77
+ * @description: 通告范围里面选择人员与岗位后的节点展示顺序,手动维护
78
+ */
79
+ function useUnitHumanTreeDisplayOrder(options) {
80
+ const { checkedHumans, checkedRoles, checkedUnit, checkedGroups } = options;
81
+ const bulletinNoticeInfoDisplayOrder = ref(1);
82
+ function setBulletinNoticeInfoDisplayOrder(item) {
83
+ if (!item.bulletinNoticeInfoDisplayOrder) item.bulletinNoticeInfoDisplayOrder = bulletinNoticeInfoDisplayOrder.value++;
84
+ }
85
+ /**
86
+ * 维护排序值为当前最大排序值+1
87
+ * @param list
88
+ */
89
+ function updateBulletinNoticeInfoDisplayOrder(list) {
90
+ if (!list.length) return;
91
+ bulletinNoticeInfoDisplayOrder.value = Math.max(...list.map((item) => item.bulletinNoticeInfoDisplayOrder || 0)) + 1;
92
+ }
93
+ watch(() => checkedHumans.value, () => {
94
+ checkedHumans.value.forEach((item) => {
95
+ if (isEmptyText(item.bulletinNoticeInfoRelationType)) item.bulletinNoticeInfoRelationType = BulletinNoticeInfoType.HUMAN;
96
+ setBulletinNoticeInfoDisplayOrder(item);
97
+ });
98
+ }, {
99
+ immediate: true,
100
+ deep: true
101
+ });
102
+ watch(() => checkedRoles.value, () => {
103
+ checkedRoles.value.forEach((item) => {
104
+ if (isEmptyText(item.bulletinNoticeInfoRelationType)) item.bulletinNoticeInfoRelationType = BulletinNoticeInfoType.ROLE;
105
+ setBulletinNoticeInfoDisplayOrder(item);
106
+ });
107
+ }, {
108
+ immediate: true,
109
+ deep: true
110
+ });
111
+ watch(() => checkedUnit.value, () => {
112
+ checkedUnit.value.forEach((item) => {
113
+ if (isEmptyText(item.bulletinNoticeInfoRelationType)) item.bulletinNoticeInfoRelationType = BulletinNoticeInfoType.UNIT;
114
+ setBulletinNoticeInfoDisplayOrder(item);
115
+ });
116
+ }, {
117
+ immediate: true,
118
+ deep: true
119
+ });
120
+ watch(() => checkedGroups.value, () => {
121
+ checkedGroups.value.forEach((item) => {
122
+ if (isEmptyText(item.bulletinNoticeInfoRelationType)) item.bulletinNoticeInfoRelationType = BulletinNoticeInfoType.GROUP;
123
+ setBulletinNoticeInfoDisplayOrder(item);
124
+ });
125
+ }, {
126
+ immediate: true,
127
+ deep: true
128
+ });
129
+ const getDisPlayOrder = (item) => {
130
+ return item.bulletinNoticeInfoDisplayOrder ?? 0;
131
+ };
132
+ return { checkedList: computed(() => {
133
+ const list = [
134
+ ...checkedHumans.value,
135
+ ...checkedRoles.value,
136
+ ...checkedUnit.value,
137
+ ...checkedGroups.value
138
+ ];
139
+ updateBulletinNoticeInfoDisplayOrder(list);
140
+ return list.sort((a, b) => getDisPlayOrder(b) - getDisPlayOrder(a));
141
+ }) };
142
+ }
143
+ //#endregion
144
+ //#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-manage/components/bulletin-notify-info-drawer/index.ts?vue&type=script&src=true&lang.ts
145
+ var index_ts_vue_type_script_src_true_lang_default = defineComponent({
146
+ name: "CBulletinNotifyInfoDrawer",
147
+ props: {
148
+ visible: {
149
+ type: Boolean,
150
+ default: false
151
+ },
152
+ multiple: {
153
+ type: Boolean,
154
+ default: true
155
+ },
156
+ width: {
157
+ type: Number,
158
+ default: 1100
159
+ },
160
+ noticeInfoList: {
161
+ type: Array,
162
+ default: () => []
163
+ },
164
+ disabledHumanIdList: {
165
+ type: Array,
166
+ default: () => []
167
+ },
168
+ disabledRoleIdList: {
169
+ type: Array,
170
+ default: () => []
171
+ },
172
+ disabledUnitIdList: {
173
+ type: Array,
174
+ default: () => []
175
+ },
176
+ disabledGroupIdList: {
177
+ type: Array,
178
+ default: () => []
179
+ },
180
+ disableSelf: {
181
+ type: Boolean,
182
+ default: true
183
+ },
184
+ showClear: {
185
+ type: Boolean,
186
+ default: true
187
+ },
188
+ showPost: {
189
+ type: Boolean,
190
+ default: true
191
+ }
192
+ },
193
+ emits: ["update:visible", "save"],
194
+ setup(props, { emit }) {
195
+ const title = ref(`${t(I18NextKey.NOTICE_SHORT)}范围`);
196
+ const drawerWidth = computed(() => (window.pageZoomRef.value || 1) * (props.width || 1100));
197
+ const allNodes = reactive(/* @__PURE__ */ new Map());
198
+ const { human } = storeToRefs(useUserStore());
199
+ const pageSize = 10;
200
+ const treeType = ref("human");
201
+ const state = reactive({
202
+ currentUnits: [],
203
+ currentSelectPage: 1
204
+ });
205
+ const checkedHumans = ref([]);
206
+ const checkedRoles = ref([]);
207
+ const checkedUnit = ref([]);
208
+ const checkedGroups = ref([]);
209
+ const searchValue = ref();
210
+ const { checkedList } = useUnitHumanTreeDisplayOrder({
211
+ checkedHumans,
212
+ checkedRoles,
213
+ checkedUnit,
214
+ checkedGroups
215
+ });
216
+ const checkedFilterList = computed(() => checkedList.value.slice(state.currentSelectPage * pageSize - pageSize, state.currentSelectPage * pageSize).map(getUnifyNoticeInfoItem));
217
+ const disabledHumanKeys = computed(() => {
218
+ let keys = props.disabledHumanIdList ?? [];
219
+ if (human.value?.uid && props.disableSelf) keys = [...keys, human.value.uid.toString()];
220
+ return keys;
221
+ });
222
+ const noticHumanScope = computed(() => window.commonSetting.NOTICE_HUMAN_SCOPE);
223
+ watch(() => [props.visible, props.noticeInfoList], () => {
224
+ if (!props.visible) return;
225
+ handleClear();
226
+ props.noticeInfoList.forEach((item) => {
227
+ if (assignBulletinNoticeType(item, BulletinNoticeInfoType.HUMAN)) checkedHumans.value.push(item);
228
+ else if (assignBulletinNoticeType(item, BulletinNoticeInfoType.ROLE)) checkedRoles.value.push(item);
229
+ else if (assignBulletinNoticeType(item, BulletinNoticeInfoType.UNIT)) checkedUnit.value.push(item);
230
+ else if (assignBulletinNoticeType(item, BulletinNoticeInfoType.GROUP)) checkedGroups.value.push(item);
231
+ });
232
+ });
233
+ const handleContainer = () => document.body;
234
+ const handleClear = () => {
235
+ checkedHumans.value = [];
236
+ checkedRoles.value = [];
237
+ checkedUnit.value = [];
238
+ checkedGroups.value = [];
239
+ };
240
+ function handleClose() {
241
+ handleClear();
242
+ emit("update:visible", false);
243
+ }
244
+ async function handleOk() {
245
+ try {
246
+ emit("update:visible", false);
247
+ emit("save", checkedList.value);
248
+ } catch (error) {
249
+ console.log(error);
250
+ }
251
+ }
252
+ const handleDelete = (delItem) => {
253
+ if (delItem.relationType === BulletinNoticeInfoType.HUMAN) checkedHumans.value = checkedHumans.value.filter((item) => item?.mainInfo?.uid !== delItem?.uid);
254
+ else if (delItem.relationType === BulletinNoticeInfoType.ROLE) checkedRoles.value = checkedRoles.value.filter((item) => item?.uid !== delItem.uid);
255
+ else if (delItem.relationType === BulletinNoticeInfoType.UNIT) checkedUnit.value = checkedUnit.value.filter((item) => item?.uid !== delItem.uid);
256
+ else if (delItem.relationType === BulletinNoticeInfoType.GROUP) checkedGroups.value = checkedGroups.value.filter((item) => item?.id !== delItem.uid);
257
+ };
258
+ function handleChangeSearchValue(value) {
259
+ searchValue.value = value;
260
+ }
261
+ watch(() => checkedList.value, () => {
262
+ const pageNumber = (state.currentSelectPage - 1) * pageSize;
263
+ if (checkedList.value.length <= pageNumber && pageNumber !== 0) state.currentSelectPage = state.currentSelectPage - 1;
264
+ }, { deep: true });
265
+ return {
266
+ ...toRefs(state),
267
+ tenantId: human.value?.tenantId,
268
+ human,
269
+ drawerWidth,
270
+ allNodes,
271
+ checkedFilterList,
272
+ searchValue,
273
+ disabledHumanKeys,
274
+ handleClose,
275
+ handleOk,
276
+ handleDelete,
277
+ handleClear,
278
+ handleContainer,
279
+ handleChangeSearchValue,
280
+ treeType,
281
+ checkedList,
282
+ checkedHumans,
283
+ checkedRoles,
284
+ checkedUnit,
285
+ BulletinNoticeInfoType,
286
+ checkedGroups,
287
+ getBulletinNoticeInfoIcon,
288
+ noticHumanScope,
289
+ title
290
+ };
291
+ }
292
+ });
293
+ //#endregion
294
+ //#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-manage/components/bulletin-notify-info-drawer/index.vue
295
+ var _withScopeId = (n) => (pushScopeId("data-v-09e9ee87"), n = n(), popScopeId(), n);
296
+ var _hoisted_1 = { class: "v-bulletin-notify-info-drawer" };
297
+ var _hoisted_2 = { class: "v-bulletin-notify-info-drawer-left" };
298
+ var _hoisted_3 = ["onClick"];
299
+ var _hoisted_4 = ["onClick"];
300
+ var _hoisted_5 = { class: "v-bulletin-notify-info-drawer-right" };
301
+ var _hoisted_6 = { class: "v-bulletin-notify-info-drawer-right-header" };
302
+ var _hoisted_7 = { class: "v-bulletin-notify-info-drawer-right-header-title" };
303
+ var _hoisted_8 = {
304
+ key: 0,
305
+ class: "v-bulletin-notify-info-drawer-right-header-delete"
306
+ };
307
+ var _hoisted_11 = [/* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-delete" }, null, -1)), /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, "清空", -1))];
308
+ var _hoisted_12 = {
309
+ key: 0,
310
+ class: "v-bulletin-notify-info-drawer-right-content"
311
+ };
312
+ var _hoisted_13 = { class: "v-bulletin-notify-info-drawer-right-content-scrollbar" };
313
+ var _hoisted_14 = { class: "v-bulletin-notify-info-drawer-right-user-content" };
314
+ var _hoisted_15 = {
315
+ key: 0,
316
+ class: "v-bulletin-notify-info-drawer-right-user-content-unit-icon"
317
+ };
318
+ var _hoisted_16 = { class: "v-bulletin-notify-info-drawer-right-user-info" };
319
+ var _hoisted_17 = ["onClick"];
320
+ var _hoisted_19 = [/* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-delete" }, null, -1))];
321
+ var _hoisted_20 = {
322
+ key: 0,
323
+ class: "v-bulletin-notify-info-drawer-right-content-footer"
324
+ };
325
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
326
+ const _component_a_button = Button;
327
+ const _component_a_space = Space;
328
+ const _component_zt_unit_human_tree = ZtUnitHumanTree;
329
+ const _component_a_popconfirm = Popconfirm;
330
+ const _component_a_avatar = Avatar;
331
+ const _component_zt_typo_text = ZtTypoText;
332
+ const _component_a_pagination = Pagination;
333
+ const _component_zt_empty = ZtEmpty;
334
+ const _component_a_drawer = Drawer;
335
+ const _directive_zt_overlay_scrollbars = resolveDirective("zt-overlay-scrollbars");
336
+ return openBlock(), createBlock(_component_a_drawer, {
337
+ class: "zt-drawer",
338
+ title: `请选择${_ctx.title}`,
339
+ visible: _ctx.visible,
340
+ width: _ctx.drawerWidth,
341
+ "body-style": { padding: 0 },
342
+ "destroy-on-close": "",
343
+ onClose: _ctx.handleClose
344
+ }, {
345
+ extra: withCtx(() => [createElementVNode("i", {
346
+ class: "zt-iconfont zt-icon-close",
347
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClose && _ctx.handleClose(...args))
348
+ })]),
349
+ footer: withCtx(() => [createVNode(_component_a_space, null, {
350
+ default: withCtx(() => [createVNode(_component_a_button, { onClick: _ctx.handleClose }, {
351
+ default: withCtx(() => [createTextVNode("取消")]),
352
+ _: 1
353
+ }, 8, ["onClick"]), createVNode(_component_a_button, {
354
+ type: "primary",
355
+ onClick: _ctx.handleOk
356
+ }, {
357
+ default: withCtx(() => [createTextVNode("确定")]),
358
+ _: 1
359
+ }, 8, ["onClick"])]),
360
+ _: 1
361
+ })]),
362
+ default: withCtx(() => [createElementVNode("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createVNode(_component_zt_unit_human_tree, {
363
+ checkedRoles: _ctx.checkedRoles,
364
+ "onUpdate:checkedRoles": _cache[4] || (_cache[4] = ($event) => _ctx.checkedRoles = $event),
365
+ checkedHumans: _ctx.checkedHumans,
366
+ "onUpdate:checkedHumans": _cache[5] || (_cache[5] = ($event) => _ctx.checkedHumans = $event),
367
+ checkedUnit: _ctx.checkedUnit,
368
+ "onUpdate:checkedUnit": _cache[6] || (_cache[6] = ($event) => _ctx.checkedUnit = $event),
369
+ checkedGroups: _ctx.checkedGroups,
370
+ "onUpdate:checkedGroups": _cache[7] || (_cache[7] = ($event) => _ctx.checkedGroups = $event),
371
+ "all-nodes": _ctx.allNodes,
372
+ "onUpdate:allNodes": _cache[8] || (_cache[8] = ($event) => _ctx.allNodes = $event),
373
+ type: _ctx.treeType,
374
+ "onUpdate:type": _cache[9] || (_cache[9] = ($event) => _ctx.treeType = $event),
375
+ async: true,
376
+ "auto-expand-root": "",
377
+ "show-group-select": "",
378
+ "show-unit-select": "",
379
+ "accurately-match-search": "",
380
+ "tenant-id": _ctx.tenantId,
381
+ "disabled-human-keys": _ctx.disabledHumanKeys,
382
+ "disabled-role-keys": _ctx.disabledRoleIdList,
383
+ "disabled-unit-keys": _ctx.disabledUnitIdList,
384
+ "disabled-group-keys": _ctx.disabledGroupIdList,
385
+ multiple: _ctx.multiple,
386
+ "input-search-scroll": true,
387
+ "show-post": _ctx.showPost,
388
+ tabs: "",
389
+ "org-group-tabs": "",
390
+ "supervise-human-scope": _ctx.noticHumanScope,
391
+ "is-usercenter-v2-api": ""
392
+ }, {
393
+ humanState: withCtx(({ checked, data, quickChoose }) => [_ctx.disabledHumanKeys.includes(data.uid.toString()) ? (openBlock(), createElementBlock("span", {
394
+ key: 0,
395
+ onClick: _cache[1] || (_cache[1] = withModifiers(() => {}, ["stop"]))
396
+ })) : checked ? (openBlock(), createElementBlock("span", {
397
+ key: 1,
398
+ class: "zt-input-search-async-select-human-checked",
399
+ onClick: _cache[2] || (_cache[2] = withModifiers(() => {}, ["stop"]))
400
+ }, "已选择")) : (openBlock(), createElementBlock("span", {
401
+ key: 2,
402
+ class: "zt-input-search-async-select-human-choose",
403
+ onClick: withModifiers(($event) => quickChoose(data), ["stop"])
404
+ }, "选择", 8, _hoisted_3))]),
405
+ roleState: withCtx(({ checked, data, quickChoose }) => [checked ? (openBlock(), createElementBlock("span", {
406
+ key: 0,
407
+ class: "zt-input-search-async-select-human-checked",
408
+ onClick: _cache[3] || (_cache[3] = withModifiers(() => {}, ["stop"]))
409
+ }, "已选择")) : (openBlock(), createElementBlock("span", {
410
+ key: 1,
411
+ class: "zt-input-search-async-select-human-choose",
412
+ onClick: withModifiers(($event) => quickChoose(data), ["stop"])
413
+ }, "选择", 8, _hoisted_4))]),
414
+ _: 1
415
+ }, 8, [
416
+ "checkedRoles",
417
+ "checkedHumans",
418
+ "checkedUnit",
419
+ "checkedGroups",
420
+ "all-nodes",
421
+ "type",
422
+ "tenant-id",
423
+ "disabled-human-keys",
424
+ "disabled-role-keys",
425
+ "disabled-unit-keys",
426
+ "disabled-group-keys",
427
+ "multiple",
428
+ "show-post",
429
+ "supervise-human-scope"
430
+ ])]), createElementVNode("div", _hoisted_5, [createElementVNode("header", _hoisted_6, [createElementVNode("div", _hoisted_7, "已选(" + toDisplayString(_ctx.checkedList.length) + ")", 1), createVNode(_component_a_popconfirm, {
431
+ title: "确定清空吗?",
432
+ "ok-text": "确定",
433
+ "cancel-text": "取消",
434
+ placement: "bottomLeft",
435
+ "get-popup-container": _ctx.handleContainer,
436
+ "overlay-class-name": "zt-popup-delete",
437
+ onConfirm: _ctx.handleClear
438
+ }, {
439
+ default: withCtx(() => [_ctx.showClear ? (openBlock(), createElementBlock("div", _hoisted_8, _hoisted_11)) : createCommentVNode("", true)]),
440
+ _: 1
441
+ }, 8, ["get-popup-container", "onConfirm"])]), _ctx.checkedList.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_12, [withDirectives((openBlock(), createElementBlock("div", _hoisted_13, [createElementVNode("main", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.checkedFilterList, (item) => {
442
+ return openBlock(), createElementBlock("div", {
443
+ key: item.uid,
444
+ class: "v-bulletin-notify-info-drawer-right-user"
445
+ }, [createElementVNode("div", _hoisted_14, [[_ctx.BulletinNoticeInfoType.UNIT, _ctx.BulletinNoticeInfoType.GROUP].includes(item.relationType) ? (openBlock(), createElementBlock("span", _hoisted_15, [createElementVNode("i", { class: normalizeClass(_ctx.getBulletinNoticeInfoIcon(item)) }, null, 2)])) : (openBlock(), createBlock(_component_a_avatar, { key: 1 }, createSlots({
446
+ default: withCtx(() => [item.relationType === _ctx.BulletinNoticeInfoType.HUMAN ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(_ctx.getBulletinNoticeInfoIcon(item)), 1)], 64)) : createCommentVNode("", true)]),
447
+ _: 2
448
+ }, [item.relationType === _ctx.BulletinNoticeInfoType.ROLE ? {
449
+ name: "icon",
450
+ fn: withCtx(() => [createElementVNode("i", { class: normalizeClass(_ctx.getBulletinNoticeInfoIcon(item)) }, null, 2)]),
451
+ key: "0"
452
+ } : void 0]), 1024)), createElementVNode("div", _hoisted_16, [createVNode(_component_zt_typo_text, null, {
453
+ default: withCtx(() => [createTextVNode(toDisplayString(item?.relationName), 1)]),
454
+ _: 2
455
+ }, 1024), ![_ctx.BulletinNoticeInfoType.UNIT, _ctx.BulletinNoticeInfoType.GROUP].includes(item.relationType) ? (openBlock(), createBlock(_component_zt_typo_text, {
456
+ key: 0,
457
+ class: "user-role"
458
+ }, {
459
+ default: withCtx(() => [createTextVNode(toDisplayString(item.unitName), 1)]),
460
+ _: 2
461
+ }, 1024)) : createCommentVNode("", true)])]), createElementVNode("div", {
462
+ class: "user-delete",
463
+ onClick: ($event) => _ctx.handleDelete(item)
464
+ }, _hoisted_19, 8, _hoisted_17)]);
465
+ }), 128))])])), [[_directive_zt_overlay_scrollbars]]), _ctx.checkedList.length > 10 ? (openBlock(), createElementBlock("footer", _hoisted_20, [createVNode(_component_a_pagination, {
466
+ current: _ctx.currentSelectPage,
467
+ "onUpdate:current": _cache[10] || (_cache[10] = ($event) => _ctx.currentSelectPage = $event),
468
+ size: "small",
469
+ "show-less-items": true,
470
+ "show-size-changer": false,
471
+ total: _ctx.checkedList.length
472
+ }, null, 8, ["current", "total"])])) : createCommentVNode("", true)])) : (openBlock(), createBlock(_component_zt_empty, {
473
+ key: 1,
474
+ center: "",
475
+ description: "暂无数据"
476
+ }))])])]),
477
+ _: 1
478
+ }, 8, [
479
+ "title",
480
+ "visible",
481
+ "width",
482
+ "onClose"
483
+ ]);
484
+ }
485
+ var bulletin_notify_info_drawer_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default, [["render", _sfc_render], ["__scopeId", "data-v-09e9ee87"]]);
486
+ //#endregion
487
+ export { useBulletinFormOptions as n, bulletin_notify_info_drawer_default as t };