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,1526 @@
1
+ /*! egova-urbanpro-web v0.0.1 */
2
+ import { B as bus, b as Enabled, j as http, r as convertRouteQuery, s as I18NextKey, z as BusEventKey } from "./utils-4fqWDxwG.js";
3
+ import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwmSBgGG.js";
4
+ import { t as useNavTitle } from "./hooks-CuXq9j8q.js";
5
+ import "./index-lib-23bd328c-DtcJvHvJ.js";
6
+ import { t as MsgService } from "./service-fs3hJh7w.js";
7
+ import "./types-DjDPFQk1.js";
8
+ import { t as info_card_default } from "./info-card-DgYedeWN.js";
9
+ import { C as BulletinPermission, E as BulletinService, h as DEFAULT_BULLETIN_LEVEL_STYLE_DATA, u as BulletinStatusNumType, w as BulletinStatus, x as BulletinNoticeInfoType, y as BulletinExpiredStatus } from "./constants-BijBPSuc.js";
10
+ import { a as filterNotificationMethod, d as getUnifyNoticeInfoItem, l as getCurrentBulletinStatus, o as formatNum, s as getBulletinLevelStyle } from "./utils-BlJtAQle.js";
11
+ import { n as useBulletinFormOptions, t as bulletin_notify_info_drawer_default } from "./bulletin-notify-info-drawer-vR3KSaRS.js";
12
+ import { t as bulletin_drawer_default } from "./bulletin-drawer-DmwW23ng.js";
13
+ import { t as condition_search_criteria_default } from "./condition-search-criteria-B_HnHQBy.js";
14
+ import { assign } from "lodash-es";
15
+ import { useMedia, useTableRequest, useUserStore } from "@kyjian/libs/hooks";
16
+ import { isEmptyText } from "@kyjian/libs/utils";
17
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onActivated, onMounted, openBlock, popScopeId, pushScopeId, reactive, ref, renderList, resolveComponent, toDisplayString, toRefs, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
18
+ import { t } from "i18next";
19
+ import { storeToRefs } from "pinia";
20
+ import { Modal, message } from "ant-design-vue";
21
+ import { Button, Cascader, Dropdown, InputSearch, Menu, MenuItem, Select as Select$1, SelectOption, Table as Table$1, Tag, Tooltip as Tooltip$1 } from "ant-design-vue/es";
22
+ import { ZtEmpty, ZtInfoCard, ZtPanelBackground, ZtPanelTable, ZtTypoText } from "zartd-biz/es/index";
23
+ import { useRoute, useRouter } from "vue-router";
24
+ import dayjs from "dayjs";
25
+ //#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-manage/hooks/use-bulletin-list-columns-by-menu.ts
26
+ /**
27
+ * @description: 通知公告创建时的一些选项数据
28
+ */
29
+ function useBulletinListColumnsByMenu(options) {
30
+ const { menu } = options;
31
+ const draftColumns = computed(() => [
32
+ {
33
+ title: `${t(I18NextKey.NOTICE_SHORT)}编号`,
34
+ dataIndex: "code",
35
+ key: "code",
36
+ width: 130 * window.pageZoomRef.value
37
+ },
38
+ {
39
+ title: `${t(I18NextKey.NOTICE_SHORT)}标题`,
40
+ dataIndex: "title",
41
+ key: "title",
42
+ width: 300 * window.pageZoomRef.value
43
+ },
44
+ {
45
+ title: `${t(I18NextKey.NOTICE_SHORT)}类型`,
46
+ dataIndex: "subTypeId",
47
+ key: "subTypeId"
48
+ },
49
+ {
50
+ title: `${t(I18NextKey.NOTICE_LEVEL_NAME)}`,
51
+ dataIndex: "levelId",
52
+ key: "levelId"
53
+ },
54
+ {
55
+ title: "通知方式",
56
+ dataIndex: "notificationMethod",
57
+ key: "notificationMethod"
58
+ },
59
+ {
60
+ title: "创建时间",
61
+ dataIndex: "createTime",
62
+ key: "createTime"
63
+ },
64
+ {
65
+ title: "修改时间",
66
+ dataIndex: "updateTime",
67
+ key: "updateTime"
68
+ },
69
+ {
70
+ title: "操作",
71
+ dataIndex: "operation",
72
+ key: "operation"
73
+ }
74
+ ]);
75
+ const publishedColumns = computed(() => [
76
+ {
77
+ title: `${t(I18NextKey.NOTICE_SHORT)}编号`,
78
+ dataIndex: "code",
79
+ key: "code",
80
+ width: 130 * window.pageZoomRef.value
81
+ },
82
+ {
83
+ title: `${t(I18NextKey.NOTICE_SHORT)}标题`,
84
+ dataIndex: "title",
85
+ key: "title",
86
+ width: 250 * window.pageZoomRef.value
87
+ },
88
+ {
89
+ title: `${t(I18NextKey.NOTICE_SHORT)}类型`,
90
+ dataIndex: "subTypeId",
91
+ key: "subTypeId"
92
+ },
93
+ {
94
+ title: `${t(I18NextKey.NOTICE_LEVEL_NAME)}`,
95
+ dataIndex: "levelId",
96
+ key: "levelId"
97
+ },
98
+ {
99
+ title: "通知方式",
100
+ dataIndex: "notificationMethod",
101
+ key: "notificationMethod"
102
+ },
103
+ {
104
+ title: "状态",
105
+ dataIndex: "status",
106
+ key: "status",
107
+ width: 100 * window.pageZoomRef.value
108
+ },
109
+ {
110
+ title: "发布时间",
111
+ dataIndex: "publishTime",
112
+ key: "publishTime"
113
+ },
114
+ {
115
+ title: "到期时间",
116
+ dataIndex: "deadlineTime",
117
+ key: "deadlineTime"
118
+ },
119
+ {
120
+ title: "互动数",
121
+ dataIndex: "allBulletinStatusNum",
122
+ key: "allBulletinStatusNum",
123
+ width: 250 * window.pageZoomRef.value
124
+ },
125
+ {
126
+ title: "操作",
127
+ dataIndex: "operation",
128
+ key: "operation"
129
+ }
130
+ ]);
131
+ const toBePublishColumns = computed(() => [
132
+ {
133
+ title: `${t(I18NextKey.NOTICE_SHORT)}编号`,
134
+ dataIndex: "code",
135
+ key: "code",
136
+ width: 130 * window.pageZoomRef.value
137
+ },
138
+ {
139
+ title: `${t(I18NextKey.NOTICE_SHORT)}标题`,
140
+ dataIndex: "title",
141
+ key: "title",
142
+ width: 300 * window.pageZoomRef.value
143
+ },
144
+ {
145
+ title: `${t(I18NextKey.NOTICE_SHORT)}类型`,
146
+ dataIndex: "subTypeId",
147
+ key: "subTypeId"
148
+ },
149
+ {
150
+ title: `${t(I18NextKey.NOTICE_LEVEL_NAME)}`,
151
+ dataIndex: "levelId",
152
+ key: "levelId"
153
+ },
154
+ {
155
+ title: "通知方式",
156
+ dataIndex: "notificationMethod",
157
+ key: "notificationMethod"
158
+ },
159
+ {
160
+ title: "计划发布时间",
161
+ dataIndex: "sendTime",
162
+ key: "sendTime"
163
+ },
164
+ {
165
+ title: "操作",
166
+ dataIndex: "operation",
167
+ key: "operation"
168
+ }
169
+ ]);
170
+ const withdrawColumns = computed(() => [
171
+ {
172
+ title: `${t(I18NextKey.NOTICE_SHORT)}编号`,
173
+ dataIndex: "code",
174
+ key: "code",
175
+ width: 130 * window.pageZoomRef.value
176
+ },
177
+ {
178
+ title: `${t(I18NextKey.NOTICE_SHORT)}标题`,
179
+ dataIndex: "title",
180
+ key: "title",
181
+ width: 300 * window.pageZoomRef.value
182
+ },
183
+ {
184
+ title: `${t(I18NextKey.NOTICE_SHORT)}类型`,
185
+ dataIndex: "subTypeId",
186
+ key: "subTypeId"
187
+ },
188
+ {
189
+ title: `${t(I18NextKey.NOTICE_LEVEL_NAME)}`,
190
+ dataIndex: "levelId",
191
+ key: "levelId"
192
+ },
193
+ {
194
+ title: "通知方式",
195
+ dataIndex: "notificationMethod",
196
+ key: "notificationMethod"
197
+ },
198
+ {
199
+ title: "撤回时间",
200
+ dataIndex: "cancelTime",
201
+ key: "cancelTime"
202
+ },
203
+ {
204
+ title: "操作",
205
+ dataIndex: "operation",
206
+ key: "operation"
207
+ }
208
+ ]);
209
+ /** 所有通知公告 */
210
+ const bulletinViewList = computed(() => [
211
+ {
212
+ title: `${t(I18NextKey.NOTICE_SHORT)}编号`,
213
+ dataIndex: "code",
214
+ key: "code",
215
+ width: 130 * window.pageZoomRef.value
216
+ },
217
+ {
218
+ title: `${t(I18NextKey.NOTICE_SHORT)}标题`,
219
+ dataIndex: "title",
220
+ key: "title",
221
+ width: 260 * window.pageZoomRef.value
222
+ },
223
+ {
224
+ title: `${t(I18NextKey.NOTICE_SHORT)}类型`,
225
+ dataIndex: "subTypeId",
226
+ key: "subTypeId"
227
+ },
228
+ {
229
+ title: `${t(I18NextKey.NOTICE_LEVEL_NAME)}`,
230
+ dataIndex: "levelId",
231
+ key: "levelId"
232
+ },
233
+ {
234
+ title: "通知方式",
235
+ dataIndex: "notificationMethod",
236
+ key: "notificationMethod"
237
+ },
238
+ {
239
+ title: "状态",
240
+ dataIndex: "status",
241
+ key: "status"
242
+ },
243
+ {
244
+ title: "发布人",
245
+ dataIndex: "createHumanName",
246
+ key: "createHumanName"
247
+ },
248
+ {
249
+ title: "发布时间",
250
+ dataIndex: "publishTime",
251
+ key: "publishTime"
252
+ },
253
+ {
254
+ title: "到期时间",
255
+ dataIndex: "deadlineTime",
256
+ key: "deadlineTime"
257
+ },
258
+ {
259
+ title: "操作",
260
+ dataIndex: "operation",
261
+ key: "operation"
262
+ }
263
+ ]);
264
+ return {
265
+ columns: computed(() => {
266
+ if (menu.value.key === BulletinStatus.DRAFT) return draftColumns.value;
267
+ else if (menu.value.key === BulletinStatus.PUBLISHED) return publishedColumns.value;
268
+ else if (menu.value.key === BulletinStatus.WITHDRAW) return withdrawColumns.value;
269
+ else if (menu.value.key === BulletinStatus.TO_BE_PUBLISH) return toBePublishColumns.value;
270
+ return bulletinViewList.value;
271
+ }),
272
+ showDelete: computed(() => {
273
+ return true;
274
+ }),
275
+ showEdit: computed(() => {
276
+ return [BulletinStatus.DRAFT].includes(menu.value.key);
277
+ }),
278
+ showReEdit: computed(() => {
279
+ return [BulletinStatus.WITHDRAW].includes(menu.value.key);
280
+ }),
281
+ showWithdraw: computed(() => {
282
+ return [
283
+ BulletinStatus.ALL,
284
+ BulletinStatus.PUBLISHED,
285
+ BulletinStatus.TO_BE_PUBLISH
286
+ ].includes(menu.value.key);
287
+ }),
288
+ showReissue: computed(() => {
289
+ return [BulletinStatus.ALL, BulletinStatus.PUBLISHED].includes(menu.value.key);
290
+ }),
291
+ showReNotice: computed(() => {
292
+ return [BulletinStatus.ALL, BulletinStatus.PUBLISHED].includes(menu.value.key);
293
+ })
294
+ };
295
+ }
296
+ //#endregion
297
+ //#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-manage/hooks/use-bulletin-reissue.ts
298
+ /**
299
+ * 在通告管理页面显示通告对象抽屉,并禁用之前已选的通告对象,增加新增的通告对象进行补发
300
+ * @param options
301
+ */
302
+ function useBulletinReissue() {
303
+ const service = new BulletinService(http);
304
+ const showReissueDrawer = ref(false);
305
+ const reissueTitle = ref("补发对象");
306
+ const currentReissueData = ref();
307
+ const noticeInfoListData = ref([]);
308
+ const disabledHumanIdList = ref([]);
309
+ const disabledRoleIdList = ref([]);
310
+ const disabledUnitIdList = ref([]);
311
+ const disabledGroupIdList = ref([]);
312
+ function reset() {
313
+ currentReissueData.value = void 0;
314
+ noticeInfoListData.value = [];
315
+ disabledHumanIdList.value = [];
316
+ disabledRoleIdList.value = [];
317
+ disabledUnitIdList.value = [];
318
+ disabledGroupIdList.value = [];
319
+ }
320
+ async function initDisabledHumanIdList(noticeId) {
321
+ try {
322
+ const res = await service.getBulletinDetail({ noticeId });
323
+ if (!res.hasError) (res.result?.noticeInfoRelationList || []).forEach((item) => {
324
+ if (item.relationType === BulletinNoticeInfoType.HUMAN) disabledHumanIdList.value.push(item.relationId.toString());
325
+ else if (item.relationType === BulletinNoticeInfoType.ROLE) disabledRoleIdList.value.push(item.relationId.toString());
326
+ else if (item.relationType === BulletinNoticeInfoType.UNIT) disabledUnitIdList.value.push(item.relationId.toString());
327
+ else if (item.relationType === BulletinNoticeInfoType.GROUP) disabledGroupIdList.value.push(item.relationId.toString());
328
+ });
329
+ } catch (error) {
330
+ console.log("error: ", error);
331
+ }
332
+ }
333
+ async function handleReissueRecord(record) {
334
+ if (isEmptyText(record.id)) return;
335
+ reset();
336
+ currentReissueData.value = record;
337
+ initDisabledHumanIdList(record.id);
338
+ showReissueDrawer.value = true;
339
+ }
340
+ async function handleNoticeInfoDrawerSave(noticeInfoList) {
341
+ const unifyNoticeInfoList = noticeInfoList.map((item) => {
342
+ const unifyData = getUnifyNoticeInfoItem(item);
343
+ return {
344
+ relationId: unifyData.relationId ?? "",
345
+ relationName: unifyData.relationName ?? "",
346
+ relationType: unifyData.relationType,
347
+ unitId: unifyData.unitId ?? "",
348
+ unitName: unifyData.unitName ?? ""
349
+ };
350
+ });
351
+ try {
352
+ if (isEmptyText(currentReissueData.value?.id)) return;
353
+ await service.reissueBulletin(currentReissueData.value?.id, unifyNoticeInfoList);
354
+ } catch (error) {
355
+ console.log("error: ", error);
356
+ }
357
+ }
358
+ return {
359
+ showReissueDrawer,
360
+ handleReissueRecord,
361
+ handleNoticeInfoDrawerSave,
362
+ noticeInfoListData,
363
+ reissueTitle,
364
+ disabledHumanIdList,
365
+ disabledRoleIdList,
366
+ disabledUnitIdList,
367
+ disabledGroupIdList
368
+ };
369
+ }
370
+ //#endregion
371
+ //#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-manage/components/bulletin-list/index.ts?vue&type=script&src=true&lang.ts
372
+ var index_ts_vue_type_script_src_true_lang_default$2 = defineComponent({
373
+ name: "VBuilderBusinessBulletinList",
374
+ components: {
375
+ CBulletinNotifyInfoDrawer: bulletin_notify_info_drawer_default,
376
+ CBulletinDrawer: bulletin_drawer_default,
377
+ CConditionSearchCriteria: condition_search_criteria_default
378
+ },
379
+ props: { menu: {
380
+ type: Object,
381
+ default: () => ({})
382
+ } },
383
+ setup(props) {
384
+ const router = useRouter();
385
+ const service = new BulletinService(http);
386
+ const msgService = new MsgService(http);
387
+ const bulletinRef = ref();
388
+ const title = computed(() => props.menu?.name ?? "-");
389
+ const { adownloadFile } = useMedia({});
390
+ const userStore = useUserStore();
391
+ const searchResultName = ref(t(I18NextKey.NOTICE_SHORT));
392
+ const stateNumRender = computed(() => {
393
+ const configNum = window.commonSetting.NOTICE_MANAGER_INTERACTION_STATISTICS || "";
394
+ let renderRead = false;
395
+ let renderGood = false;
396
+ let renderReply = false;
397
+ let renderReceive = false;
398
+ if (configNum) {
399
+ const configArr = configNum.split(",");
400
+ renderGood = configArr.includes(BulletinStatusNumType.good);
401
+ renderRead = configArr.includes(BulletinStatusNumType.read);
402
+ renderReply = configArr.includes(BulletinStatusNumType.reply);
403
+ renderReceive = configArr.includes(BulletinStatusNumType.receive);
404
+ } else renderGood = renderRead = renderReply = renderReceive = true;
405
+ return {
406
+ renderRead,
407
+ renderGood,
408
+ renderReply,
409
+ renderReceive
410
+ };
411
+ });
412
+ const searchState = reactive({
413
+ searchWord: "",
414
+ noticeLevelIdStr: void 0,
415
+ noticeTypeIdList: []
416
+ });
417
+ const initShow = ref(false);
418
+ const visible = ref(false);
419
+ const selectId = ref(0);
420
+ const modelRef = ref();
421
+ const operations = ref();
422
+ const deleteId = ref("");
423
+ const isDeleteAll = ref(false);
424
+ const total = ref(0);
425
+ const showType = ref(false);
426
+ const rowKey = "id";
427
+ const { request, bodyHeight, pagination, current, pageSize, dataSource, loading, handleTableChange, handleResult, rowSelection, selectedRowKeys, selectedRows } = useTableRequest({ rowKey });
428
+ const { bulletinLevelList, bulletinTypeAllNodes, bulletinTypeTree } = useBulletinFormOptions();
429
+ const { columns, showDelete, showEdit, showReEdit, showWithdraw, showReissue, showReNotice } = useBulletinListColumnsByMenu({ menu: computed(() => props.menu) });
430
+ const { showReissueDrawer, handleReissueRecord, handleNoticeInfoDrawerSave, noticeInfoListData, reissueTitle, disabledHumanIdList, disabledRoleIdList, disabledUnitIdList, disabledGroupIdList } = useBulletinReissue();
431
+ function hasPermission(key) {
432
+ return userStore.permissionCodes?.has(key);
433
+ }
434
+ const bulletinListOperations = computed(() => {
435
+ return [
436
+ {
437
+ show: showWithdraw.value,
438
+ permissionFlag: hasPermission(BulletinPermission.CANCEL),
439
+ handle: handleWithdrawRecord,
440
+ text: "撤回"
441
+ },
442
+ {
443
+ show: showEdit.value,
444
+ permissionFlag: hasPermission(BulletinPermission.EDIT),
445
+ handle: handleEditRecord,
446
+ text: "编辑"
447
+ },
448
+ {
449
+ show: showReEdit.value,
450
+ permissionFlag: hasPermission(BulletinPermission.EDIT),
451
+ handle: handleEditRecord,
452
+ text: "重新编辑"
453
+ },
454
+ {
455
+ show: showReNotice.value,
456
+ permissionFlag: hasPermission(BulletinPermission.NOTICE_AGAIN),
457
+ handle: handleReNoticeRecord,
458
+ text: "再次提醒"
459
+ },
460
+ {
461
+ show: showReissue.value,
462
+ permissionFlag: hasPermission(BulletinPermission.REISSUE),
463
+ handle: handleReissueRecord,
464
+ text: "补发"
465
+ },
466
+ {
467
+ show: showDelete.value,
468
+ permissionFlag: hasPermission(BulletinPermission.DELETE),
469
+ handle: handleDeleteRecord,
470
+ text: "删除"
471
+ }
472
+ ].filter((item) => item.show && item.permissionFlag);
473
+ });
474
+ const deleteOperation = {
475
+ handle: handleDeleteRecord,
476
+ text: "删除"
477
+ };
478
+ const firstOperation = computed(() => bulletinListOperations.value?.[0]);
479
+ const secondOperation = computed(() => bulletinListOperations.value?.[1]);
480
+ const showOperationMore = computed(() => bulletinListOperations.value.length > 2);
481
+ /** 需要在 更多 按钮里面显示的操作项 */
482
+ const moreOperationList = computed(() => bulletinListOperations.value.slice(1));
483
+ function formatBulletinTime(data, keys) {
484
+ keys.forEach((key) => {
485
+ const item = data[key];
486
+ if (item && typeof item === "string") data[key] = dayjs(item).format("YYYY-MM-DD HH:mm") ?? "-";
487
+ });
488
+ }
489
+ function getSearchParams() {
490
+ const searchParams = {
491
+ ...props.menu.listParams,
492
+ searchWord: searchState.searchWord,
493
+ noticeLevelIdStr: searchState.noticeLevelIdStr,
494
+ subNoticeTypeIdStr: searchState.noticeTypeIdList?.length ? searchState.noticeTypeIdList.join(",") : void 0
495
+ };
496
+ return {
497
+ currentPage: current.value,
498
+ numPerPage: pageSize.value,
499
+ ...searchParams
500
+ };
501
+ }
502
+ async function getTableList() {
503
+ try {
504
+ loading.value = true;
505
+ const humanList = [];
506
+ const unitList = [];
507
+ modelRef.value?.conditions?.humanListId?.value2.forEach((flag, index) => {
508
+ const targetValue = modelRef.value?.conditions?.humanListId?.value1[index];
509
+ if (flag === 2) {
510
+ if (!unitList.includes(targetValue)) unitList.push(targetValue);
511
+ } else if (!humanList.includes(targetValue)) humanList.push(targetValue);
512
+ });
513
+ const paramsCondition = modelRef.value?.conditions && Object.keys(modelRef.value.conditions).length > 0 ? {
514
+ publishStartDate: modelRef.value.conditions?.releaseTimeId?.value1[0],
515
+ publishEndDate: modelRef.value.conditions?.releaseTimeId?.value1[1],
516
+ publishUnitIdStr: unitList.join(","),
517
+ publishHumanIdStr: humanList.join(",")
518
+ } : {};
519
+ const params = getSearchParams();
520
+ const res = await service.getBulletinList({
521
+ ...params,
522
+ ...paramsCondition
523
+ });
524
+ if (!res?.hasError) {
525
+ handleResult(res, (data) => {
526
+ data.forEach((item) => {
527
+ formatBulletinTime(item, [
528
+ "createTime",
529
+ "auditTime",
530
+ "updateTime",
531
+ "publishTime",
532
+ "deadlineTime"
533
+ ]);
534
+ });
535
+ return data;
536
+ });
537
+ bus.emit(BusEventKey.BULLETIN__MANAGE__NOTICE_NUM__REFRESH);
538
+ total.value = res.result?.pageInfo.totalRecord ?? 0;
539
+ }
540
+ } catch (error) {
541
+ console.error("error: ", error);
542
+ } finally {
543
+ loading.value = false;
544
+ }
545
+ }
546
+ function refresh(init = true) {
547
+ pagination.current = init ? 1 : pagination.current;
548
+ getTableList();
549
+ }
550
+ watch(() => request.value, () => {
551
+ if (!isEmptyText(props.menu.key)) refresh(false);
552
+ });
553
+ function resetSearchState() {
554
+ searchState.noticeLevelIdStr = void 0;
555
+ searchState.noticeTypeIdList = [];
556
+ searchState.searchWord = "";
557
+ selectedRowKeys.value = [];
558
+ }
559
+ watch(() => props.menu.key, () => {
560
+ if (!isEmptyText(props.menu.key)) {
561
+ resetSearchState();
562
+ refresh();
563
+ }
564
+ });
565
+ const notificationMethodList = ref([]);
566
+ async function initNotificationMethodList() {
567
+ try {
568
+ const res = await msgService.getMsgSendTypeList();
569
+ if (!res?.hasError) notificationMethodList.value = filterNotificationMethod(res.result?.resultList || []).map((item) => {
570
+ return {
571
+ ...item,
572
+ id: item.id.toString()
573
+ };
574
+ });
575
+ } catch (error) {
576
+ console.error("error: ", error);
577
+ }
578
+ }
579
+ /**
580
+ * 将二进制存储的methodNum转换为对应的通知方式列表
581
+ * @param methodNum 例如 1,3 存储为5,对应二进制形式为 101
582
+ */
583
+ function getNotificationMethodList(methodNum) {
584
+ if (!methodNum) return [];
585
+ const methodList = [];
586
+ const binaryArr = methodNum.toString(2).split("").reverse();
587
+ const notificationTypeIds = [];
588
+ for (let i = 0; i < binaryArr.length; i++) if (binaryArr[i] === "1") notificationTypeIds.push(i + 1);
589
+ notificationTypeIds.forEach((id) => {
590
+ const method = notificationMethodList.value.find((item) => item.id === id.toString());
591
+ if (method) methodList.push(method);
592
+ });
593
+ return methodList.map((item) => item.name);
594
+ }
595
+ function getLevelStyle(record) {
596
+ if (record.levelId) return getBulletinLevelStyle(bulletinLevelList.value, record.levelId);
597
+ return DEFAULT_BULLETIN_LEVEL_STYLE_DATA;
598
+ }
599
+ /**
600
+ * 获取通告的大类与小类组合而成的类型名称
601
+ * @param record
602
+ * @returns
603
+ */
604
+ function getBulletinTypeNames(record) {
605
+ if (record.subTypeId) {
606
+ const subType = bulletinTypeAllNodes.get(record.subTypeId);
607
+ if (subType?.data.seniorId) {
608
+ const mainType = bulletinTypeAllNodes.get(subType.data.seniorId);
609
+ if (mainType) return `${mainType.data.name}/${subType.data.name}`;
610
+ }
611
+ return subType?.data.name;
612
+ }
613
+ return "-";
614
+ }
615
+ function unifyBus() {
616
+ bus.emit(BusEventKey.BULLETIN__MANAGE__NOTICE_NUM__REFRESH, true);
617
+ bus.emit(BusEventKey.BULLETIN__VIEW__NAV_DOT__REFRESH, true);
618
+ }
619
+ function deleteBulletin(data, emptySelectedRowKeys = false) {
620
+ Modal.confirm({
621
+ title: `删除${t(I18NextKey.NOTICE_SHORT)}`,
622
+ content: "删除后不可恢复,确定删除?",
623
+ class: "zt-modal-delete",
624
+ async onOk() {
625
+ try {
626
+ if (!(await service.deleteBulletin(data)).hasError) {
627
+ if (emptySelectedRowKeys) selectedRowKeys.value = [];
628
+ unifyBus();
629
+ refresh(dataSource.value.length === 1);
630
+ }
631
+ } catch (error) {
632
+ console.error(error);
633
+ }
634
+ }
635
+ });
636
+ }
637
+ function handleDeleteRecord(record) {
638
+ if (record.id) deleteBulletin([record.id]);
639
+ }
640
+ function handleBatchDelete() {
641
+ if (selectedRowKeys.value.length) deleteBulletin(selectedRowKeys.value, true);
642
+ }
643
+ function handleEditRecord(record) {
644
+ router.push({
645
+ name: "workbench:bulletin-add",
646
+ query: {
647
+ id: record?.id,
648
+ _: Date.now()
649
+ }
650
+ });
651
+ }
652
+ function handleToDetail(record) {
653
+ router.push({
654
+ name: "workbench:bulletin-preview",
655
+ query: {
656
+ id: record.id,
657
+ preview: Enabled.ENABLE
658
+ }
659
+ });
660
+ }
661
+ function withdrawBulletin(key, emptySelectedRowKeys = false) {
662
+ let content = "确定撤回?";
663
+ if (emptySelectedRowKeys) {
664
+ const expiredRecordIds = (selectedRows.value || []).filter((record) => record.expiredStatus === BulletinExpiredStatus.EXPIRED).map((record) => record[rowKey]);
665
+ if (expiredRecordIds.length) {
666
+ content = "确定撤回(其中已过期的将无法撤回)?";
667
+ key = key.filter((id) => expiredRecordIds.indexOf(id) === -1);
668
+ }
669
+ }
670
+ Modal.confirm({
671
+ title: `撤回${t(I18NextKey.NOTICE_SHORT)}`,
672
+ content,
673
+ class: "zt-modal-delete",
674
+ async onOk() {
675
+ try {
676
+ if (key.length) {
677
+ if (!(await service.withdrawBulletin(key)).hasError) {
678
+ if (emptySelectedRowKeys) selectedRowKeys.value = [];
679
+ unifyBus();
680
+ refresh(dataSource.value.length === 1);
681
+ }
682
+ } else {
683
+ message.warning("当前所勾选数据均是已过期数据,无法进行撤回");
684
+ selectedRowKeys.value = [];
685
+ }
686
+ } catch (error) {
687
+ console.error(error);
688
+ }
689
+ }
690
+ });
691
+ }
692
+ function handleWithdrawRecord(record) {
693
+ if (record.id) withdrawBulletin([record.id]);
694
+ }
695
+ function handleBatchWithdraw() {
696
+ if (selectedRowKeys.value.length) withdrawBulletin(selectedRowKeys.value, true);
697
+ }
698
+ function reNoticeBulletin(noticeIds, emptySelectedRowKeys = false) {
699
+ let content = "确定再次提醒?";
700
+ if (emptySelectedRowKeys) {
701
+ const expiredRecordIds = (selectedRows.value || []).filter((record) => record.expiredStatus === BulletinExpiredStatus.EXPIRED).map((record) => record[rowKey]);
702
+ if (expiredRecordIds.length) {
703
+ content = "确定再次提醒(其中已过期的将无法再次提醒)?";
704
+ noticeIds = noticeIds.filter((id) => expiredRecordIds.indexOf(id) === -1);
705
+ }
706
+ }
707
+ Modal.confirm({
708
+ title: `再次提醒${t(I18NextKey.NOTICE_SHORT)}`,
709
+ content,
710
+ async onOk() {
711
+ try {
712
+ if (noticeIds.length) {
713
+ if (!(await service.reNoticeBulletin(noticeIds)).hasError && emptySelectedRowKeys) selectedRowKeys.value = [];
714
+ } else {
715
+ message.warning("当前所勾选数据均是已过期数据,无法进行再次提醒");
716
+ selectedRowKeys.value = [];
717
+ }
718
+ } catch (error) {
719
+ console.error(error);
720
+ }
721
+ }
722
+ });
723
+ }
724
+ function handleReNoticeRecord(record) {
725
+ if (record.id) reNoticeBulletin([record.id]);
726
+ }
727
+ function handleBatchReNotice() {
728
+ if (selectedRowKeys.value.length) reNoticeBulletin(selectedRowKeys.value, true);
729
+ }
730
+ function handleModalContainer() {
731
+ return bulletinRef.value;
732
+ }
733
+ const exportLoading = ref(false);
734
+ async function exportListData(params) {
735
+ try {
736
+ exportLoading.value = true;
737
+ const res = await service.exportBulletin(params);
738
+ if (res && res.type !== "application/json") adownloadFile(res, `${t(I18NextKey.NOTICE_SHORT)}导出列表.xlsx`);
739
+ else message.error(`导出${t(I18NextKey.NOTICE_SHORT)}列表失败`);
740
+ } catch (e) {
741
+ console.log(e);
742
+ } finally {
743
+ exportLoading.value = false;
744
+ }
745
+ }
746
+ /**
747
+ * 导出通告列表,这里直接导出当前栏目下面的全部通告数据,不管是否选中,接口也不支持
748
+ */
749
+ async function handleExport() {
750
+ const params = getSearchParams();
751
+ Modal.confirm({
752
+ title: `导出${t(I18NextKey.NOTICE_SHORT)}列表`,
753
+ content: "导出列表全部数据可能时间较长,请耐心等待。",
754
+ async onOk() {
755
+ exportListData(assign(params, {
756
+ currentPage: 1,
757
+ numPerPage: 1e5
758
+ }));
759
+ }
760
+ });
761
+ }
762
+ function handleAdvancedSearch() {
763
+ initShow.value = true;
764
+ visible.value = true;
765
+ }
766
+ function handleAdvanced(model, operate) {
767
+ modelRef.value = model;
768
+ operations.value = operate;
769
+ }
770
+ function handleDelete(id) {
771
+ deleteId.value = id;
772
+ delete modelRef.value.conditions[id];
773
+ nextTick(() => {
774
+ deleteId.value = "";
775
+ });
776
+ getTableList();
777
+ }
778
+ function handleDeleteAll() {
779
+ isDeleteAll.value = true;
780
+ nextTick(() => {
781
+ isDeleteAll.value = false;
782
+ });
783
+ delete modelRef.value.conditions;
784
+ getTableList();
785
+ }
786
+ onActivated(() => {
787
+ refresh(false);
788
+ });
789
+ onMounted(() => {
790
+ initNotificationMethodList();
791
+ });
792
+ return {
793
+ ...toRefs(searchState),
794
+ bodyHeight,
795
+ columns,
796
+ dataSource,
797
+ loading,
798
+ rowKey,
799
+ request,
800
+ pagination,
801
+ handleTableChange,
802
+ handleEditRecord,
803
+ Enabled,
804
+ title,
805
+ getLevelStyle,
806
+ handleToDetail,
807
+ getBulletinTypeNames,
808
+ handleDeleteRecord,
809
+ handleModalContainer,
810
+ bulletinRef,
811
+ refresh,
812
+ rowSelection,
813
+ selectedRowKeys,
814
+ handleBatchDelete,
815
+ getCurrentBulletinStatus,
816
+ showDelete,
817
+ showEdit,
818
+ showReEdit,
819
+ showWithdraw,
820
+ handleWithdrawRecord,
821
+ bulletinTypeTree,
822
+ bulletinLevelList,
823
+ handleBatchWithdraw,
824
+ showReissue,
825
+ handleReissueRecord,
826
+ showReissueDrawer,
827
+ bulletinListOperations,
828
+ showOperationMore,
829
+ moreOperationList,
830
+ firstOperation,
831
+ secondOperation,
832
+ showReNotice,
833
+ handleBatchReNotice,
834
+ handleReNoticeRecord,
835
+ handleExport,
836
+ exportLoading,
837
+ handleNoticeInfoDrawerSave,
838
+ noticeInfoListData,
839
+ reissueTitle,
840
+ disabledHumanIdList,
841
+ disabledRoleIdList,
842
+ disabledUnitIdList,
843
+ disabledGroupIdList,
844
+ getNotificationMethodList,
845
+ BulletinExpiredStatus,
846
+ deleteOperation,
847
+ BulletinPermission,
848
+ userStore,
849
+ hasPermission,
850
+ stateNumRender,
851
+ handleAdvancedSearch,
852
+ initShow,
853
+ visible,
854
+ selectId,
855
+ modelRef,
856
+ operations,
857
+ deleteId,
858
+ isDeleteAll,
859
+ handleAdvanced,
860
+ handleDelete,
861
+ handleDeleteAll,
862
+ getTableList,
863
+ total,
864
+ showType,
865
+ searchResultName
866
+ };
867
+ }
868
+ });
869
+ //#endregion
870
+ //#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-manage/components/bulletin-list/index.vue
871
+ var _withScopeId$1 = (n) => (pushScopeId("data-v-8d127cf6"), n = n(), popScopeId(), n);
872
+ var _hoisted_1$2 = {
873
+ ref: "bulletinRef",
874
+ class: "v-builder-business-bulletin-list"
875
+ };
876
+ var _hoisted_2$2 = { class: "v-builder-business-bulletin-list-header" };
877
+ var _hoisted_3$2 = {
878
+ key: 0,
879
+ class: "active-img"
880
+ };
881
+ var _hoisted_4$1 = ["src"];
882
+ var _hoisted_5$1 = { class: "title" };
883
+ var _hoisted_6$1 = { class: "v-builder-business-bulletin-list-card-title" };
884
+ var _hoisted_7$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-plus" }, null, -1));
885
+ var _hoisted_8$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-export" }, null, -1));
886
+ var _hoisted_9 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-delete" }, null, -1));
887
+ var _hoisted_10 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-back bulletin-menu-icon-transform-left" }, null, -1));
888
+ var _hoisted_11 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-back bulletin-menu-icon-transform-left" }, null, -1));
889
+ var _hoisted_12 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-search" }, null, -1));
890
+ var _hoisted_13 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-arrow-down v-builder-business-bulletin-list-card-extra-suffix-icon" }, null, -1));
891
+ var _hoisted_14 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-arrow-down v-builder-business-bulletin-list-card-extra-suffix-icon" }, null, -1));
892
+ var _hoisted_15 = { class: "v-builder-business-bulletin-list-content" };
893
+ var _hoisted_16 = { class: "v-bulletin-list-content-criteria" };
894
+ var _hoisted_17 = { class: "zt-typo-text-wrap" };
895
+ var _hoisted_18 = {
896
+ key: 4,
897
+ class: "v-builder-business-bulletin-list-content-table-cell-status"
898
+ };
899
+ var _hoisted_19 = {
900
+ key: 5,
901
+ class: "v-builder-business-bulletin-list-content-table-cell-all-status-num"
902
+ };
903
+ var _hoisted_20 = { class: "status-num-item" };
904
+ var _hoisted_21 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", { class: "ega-core-iconfont ega-core-icon-receive-user" }, null, -1));
905
+ var _hoisted_22 = { class: "status-num-item" };
906
+ var _hoisted_23 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-eye" }, null, -1));
907
+ var _hoisted_24 = { class: "status-num-item" };
908
+ var _hoisted_25 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-reply-rollback" }, null, -1));
909
+ var _hoisted_26 = { class: "status-num-item" };
910
+ var _hoisted_27 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", { class: "ega-core-iconfont ega-core-icon-good" }, null, -1));
911
+ var _hoisted_28 = {
912
+ key: 6,
913
+ class: "zt-table-cell-buttons"
914
+ };
915
+ var _hoisted_29 = { key: 1 };
916
+ var _hoisted_30 = { key: 2 };
917
+ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
918
+ const _component_a_button = Button;
919
+ const _component_a_input_search = InputSearch;
920
+ const _component_a_select_option = SelectOption;
921
+ const _component_a_select = Select$1;
922
+ const _component_a_cascader = Cascader;
923
+ const _component_c_condition_search_criteria = resolveComponent("c-condition-search-criteria");
924
+ const _component_a_tooltip = Tooltip$1;
925
+ const _component_zt_typo_text = ZtTypoText;
926
+ const _component_a_tag = Tag;
927
+ const _component_a_menu_item = MenuItem;
928
+ const _component_a_menu = Menu;
929
+ const _component_a_dropdown = Dropdown;
930
+ const _component_a_table = Table$1;
931
+ const _component_zt_panel_table = ZtPanelTable;
932
+ const _component_c_bulletin_drawer = resolveComponent("c-bulletin-drawer");
933
+ const _component_c_bulletin_notify_info_drawer = resolveComponent("c-bulletin-notify-info-drawer");
934
+ const _component_zt_info_card = ZtInfoCard;
935
+ return openBlock(), createElementBlock("div", _hoisted_1$2, [createElementVNode("div", _hoisted_2$2, [_ctx.menu.activeImg ? (openBlock(), createElementBlock("div", _hoisted_3$2, [createElementVNode("img", {
936
+ src: _ctx.menu.activeImg,
937
+ alt: ""
938
+ }, null, 8, _hoisted_4$1)])) : createCommentVNode("", true), createElementVNode("div", _hoisted_5$1, toDisplayString(_ctx.title), 1)]), createVNode(_component_zt_info_card, { class: "v-builder-business-bulletin-list-card" }, {
939
+ title: withCtx(() => [createElementVNode("div", _hoisted_6$1, [
940
+ _ctx.hasPermission(_ctx.BulletinPermission.SAVE) ? (openBlock(), createBlock(_component_a_button, {
941
+ key: 0,
942
+ shape: "round",
943
+ type: "primary",
944
+ ghost: "",
945
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.handleEditRecord())
946
+ }, {
947
+ icon: withCtx(() => [_hoisted_7$1]),
948
+ default: withCtx(() => [createTextVNode(" 新增" + toDisplayString(_ctx.$t(_ctx.$I18NextKey.NOTICE_SHORT)), 1)]),
949
+ _: 1
950
+ })) : createCommentVNode("", true),
951
+ withDirectives(createVNode(_component_a_button, {
952
+ loading: _ctx.exportLoading,
953
+ ghost: "",
954
+ shape: "round",
955
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.handleExport())
956
+ }, {
957
+ icon: withCtx(() => [_hoisted_8$1]),
958
+ default: withCtx(() => [createTextVNode(" 导出 ")]),
959
+ _: 1
960
+ }, 8, ["loading"]), [[vShow, false]]),
961
+ _ctx.hasPermission(_ctx.BulletinPermission.DELETE) ? withDirectives((openBlock(), createBlock(_component_a_button, {
962
+ key: 1,
963
+ disabled: !_ctx.selectedRowKeys.length,
964
+ ghost: "",
965
+ shape: "round",
966
+ onClick: _cache[2] || (_cache[2] = ($event) => _ctx.handleBatchDelete())
967
+ }, {
968
+ icon: withCtx(() => [_hoisted_9]),
969
+ default: withCtx(() => [createTextVNode(" 删除 ")]),
970
+ _: 1
971
+ }, 8, ["disabled"])), [[vShow, _ctx.showDelete]]) : createCommentVNode("", true),
972
+ _ctx.hasPermission(_ctx.BulletinPermission.CANCEL) ? withDirectives((openBlock(), createBlock(_component_a_button, {
973
+ key: 2,
974
+ disabled: !_ctx.selectedRowKeys.length,
975
+ ghost: "",
976
+ shape: "round",
977
+ onClick: _cache[3] || (_cache[3] = ($event) => _ctx.handleBatchWithdraw())
978
+ }, {
979
+ icon: withCtx(() => [_hoisted_10]),
980
+ default: withCtx(() => [createTextVNode(" 撤回 ")]),
981
+ _: 1
982
+ }, 8, ["disabled"])), [[vShow, _ctx.showWithdraw]]) : createCommentVNode("", true),
983
+ _ctx.hasPermission(_ctx.BulletinPermission.NOTICE_AGAIN) ? withDirectives((openBlock(), createBlock(_component_a_button, {
984
+ key: 3,
985
+ disabled: !_ctx.selectedRowKeys.length,
986
+ ghost: "",
987
+ shape: "round",
988
+ onClick: _cache[4] || (_cache[4] = ($event) => _ctx.handleBatchReNotice())
989
+ }, {
990
+ icon: withCtx(() => [_hoisted_11]),
991
+ default: withCtx(() => [createTextVNode(" 再次提醒 ")]),
992
+ _: 1
993
+ }, 8, ["disabled"])), [[vShow, _ctx.showReNotice]]) : createCommentVNode("", true)
994
+ ])]),
995
+ extra: withCtx(() => [
996
+ createVNode(_component_a_input_search, {
997
+ value: _ctx.searchWord,
998
+ "onUpdate:value": _cache[5] || (_cache[5] = ($event) => _ctx.searchWord = $event),
999
+ valueModifiers: { trim: true },
1000
+ shape: "round",
1001
+ class: "zt-input-search-round v-builder-business-bulletin-list-extra-search-round",
1002
+ placeholder: "请输入关键字查询",
1003
+ "allow-clear": "",
1004
+ onSearch: _cache[6] || (_cache[6] = ($event) => _ctx.refresh(true))
1005
+ }, null, 8, ["value"]),
1006
+ createVNode(_component_a_button, {
1007
+ shape: "round",
1008
+ class: "search-btn v-builder-business-bulletin-list-card-extra-button",
1009
+ onClick: _ctx.handleAdvancedSearch
1010
+ }, {
1011
+ icon: withCtx(() => [_hoisted_12]),
1012
+ default: withCtx(() => [createTextVNode(" 高级检索 ")]),
1013
+ _: 1
1014
+ }, 8, ["onClick"]),
1015
+ createVNode(_component_a_select, {
1016
+ value: _ctx.noticeLevelIdStr,
1017
+ "onUpdate:value": _cache[7] || (_cache[7] = ($event) => _ctx.noticeLevelIdStr = $event),
1018
+ class: "v-builder-business-bulletin-list-card-extra-select",
1019
+ "allow-clear": "",
1020
+ placeholder: `${_ctx.$t(_ctx.$I18NextKey.NOTICE_SHORT)}等级`,
1021
+ onChange: _cache[8] || (_cache[8] = ($event) => _ctx.refresh(true))
1022
+ }, {
1023
+ suffixIcon: withCtx(() => [_hoisted_13]),
1024
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.bulletinLevelList, (level) => {
1025
+ return openBlock(), createBlock(_component_a_select_option, {
1026
+ key: level.id,
1027
+ value: level.id
1028
+ }, {
1029
+ default: withCtx(() => [createTextVNode(toDisplayString(level.name), 1)]),
1030
+ _: 2
1031
+ }, 1032, ["value"]);
1032
+ }), 128))]),
1033
+ _: 1
1034
+ }, 8, ["value", "placeholder"]),
1035
+ createVNode(_component_a_cascader, {
1036
+ value: _ctx.noticeTypeIdList,
1037
+ "onUpdate:value": _cache[9] || (_cache[9] = ($event) => _ctx.noticeTypeIdList = $event),
1038
+ options: _ctx.bulletinTypeTree,
1039
+ "expand-trigger": "hover",
1040
+ placeholder: `${_ctx.$t(_ctx.$I18NextKey.NOTICE_SHORT)}类型`,
1041
+ placement: "bottomRight",
1042
+ class: "v-builder-business-bulletin-list-card-extra-cascader",
1043
+ onChange: _cache[10] || (_cache[10] = ($event) => _ctx.refresh(true))
1044
+ }, {
1045
+ suffixIcon: withCtx(() => [_hoisted_14]),
1046
+ _: 1
1047
+ }, 8, [
1048
+ "value",
1049
+ "options",
1050
+ "placeholder"
1051
+ ])
1052
+ ]),
1053
+ default: withCtx(() => [createElementVNode("div", _hoisted_15, [
1054
+ createElementVNode("div", _hoisted_16, [createVNode(_component_c_condition_search_criteria, {
1055
+ "model-ref": _ctx.modelRef?.conditions,
1056
+ operations: _ctx.operations,
1057
+ "total-num": _ctx.total,
1058
+ "search-result-name": _ctx.searchResultName,
1059
+ type: "rec",
1060
+ onDelete: _ctx.handleDelete,
1061
+ onDeleteAll: _ctx.handleDeleteAll
1062
+ }, null, 8, [
1063
+ "model-ref",
1064
+ "operations",
1065
+ "total-num",
1066
+ "search-result-name",
1067
+ "onDelete",
1068
+ "onDeleteAll"
1069
+ ])]),
1070
+ createVNode(_component_zt_panel_table, {
1071
+ "body-height": _ctx.bodyHeight,
1072
+ "onUpdate:bodyHeight": _cache[13] || (_cache[13] = ($event) => _ctx.bodyHeight = $event)
1073
+ }, {
1074
+ default: withCtx(() => [createVNode(_component_a_table, {
1075
+ class: "zt-table",
1076
+ "row-key": _ctx.rowKey,
1077
+ columns: _ctx.columns,
1078
+ "data-source": _ctx.dataSource,
1079
+ loading: _ctx.loading,
1080
+ pagination: _ctx.pagination,
1081
+ "row-selection": _ctx.rowSelection,
1082
+ scroll: { y: _ctx.bodyHeight },
1083
+ onChange: _ctx.handleTableChange
1084
+ }, {
1085
+ bodyCell: withCtx(({ column, record, text }) => [column.dataIndex === "title" ? (openBlock(), createBlock(_component_a_tooltip, { key: 0 }, {
1086
+ title: withCtx(() => [createTextVNode("点击预览")]),
1087
+ default: withCtx(() => [createVNode(_component_a_button, {
1088
+ class: "v-builder-business-bulletin-list-content-table-preview-btn",
1089
+ type: "link",
1090
+ onClick: ($event) => _ctx.handleToDetail(record)
1091
+ }, {
1092
+ default: withCtx(() => [createElementVNode("div", _hoisted_17, toDisplayString(text), 1)]),
1093
+ _: 2
1094
+ }, 1032, ["onClick"])]),
1095
+ _: 2
1096
+ }, 1024)) : column.dataIndex === "subTypeId" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(_ctx.getBulletinTypeNames(record)), 1)], 64)) : column.dataIndex === "notificationMethod" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [_ctx.getNotificationMethodList(text).length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.getNotificationMethodList(text), (label) => {
1097
+ return openBlock(), createBlock(_component_a_tag, {
1098
+ key: label,
1099
+ class: "v-builder-business-bulletin-list-content-tag"
1100
+ }, {
1101
+ default: withCtx(() => [createVNode(_component_zt_typo_text, null, {
1102
+ default: withCtx(() => [createTextVNode(toDisplayString(label), 1)]),
1103
+ _: 2
1104
+ }, 1024)]),
1105
+ _: 2
1106
+ }, 1024);
1107
+ }), 128)) : (openBlock(), createBlock(_component_zt_typo_text, { key: 1 }, {
1108
+ default: withCtx(() => [createTextVNode("-")]),
1109
+ _: 1
1110
+ }))], 64)) : column.dataIndex === "levelId" ? (openBlock(), createElementBlock("div", {
1111
+ key: 3,
1112
+ class: "v-builder-business-bulletin-list-content-table-cell-level",
1113
+ style: normalizeStyle({
1114
+ background: _ctx.getLevelStyle(record)?.background,
1115
+ color: _ctx.getLevelStyle(record)?.color
1116
+ })
1117
+ }, toDisplayString(_ctx.getLevelStyle(record)?.name), 5)) : column.dataIndex === "status" ? (openBlock(), createElementBlock("div", _hoisted_18, [createElementVNode("i", {
1118
+ class: "zt-iconfont zt-icon-dot",
1119
+ style: normalizeStyle({ color: _ctx.getCurrentBulletinStatus(record)?.color }),
1120
+ onClick: _cache[11] || (_cache[11] = withModifiers(() => {}, ["stop"]))
1121
+ }, null, 4), createVNode(_component_zt_typo_text, null, {
1122
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.getCurrentBulletinStatus(record)?.label), 1)]),
1123
+ _: 2
1124
+ }, 1024)])) : column.dataIndex === "allBulletinStatusNum" ? (openBlock(), createElementBlock("div", _hoisted_19, [
1125
+ record.needReceiveFlag && _ctx.stateNumRender.renderReceive ? (openBlock(), createBlock(_component_a_tooltip, { key: 0 }, {
1126
+ title: withCtx(() => [createTextVNode("已接收人数")]),
1127
+ default: withCtx(() => [createElementVNode("div", _hoisted_20, [_hoisted_21, createElementVNode("span", null, toDisplayString(record.receiveNum ?? 0), 1)])]),
1128
+ _: 2
1129
+ }, 1024)) : createCommentVNode("", true),
1130
+ _ctx.stateNumRender.renderRead ? (openBlock(), createBlock(_component_a_tooltip, { key: 1 }, {
1131
+ title: withCtx(() => [createTextVNode("已读人数")]),
1132
+ default: withCtx(() => [createElementVNode("div", _hoisted_22, [_hoisted_23, createElementVNode("span", null, toDisplayString(record.readNum ?? 0), 1)])]),
1133
+ _: 2
1134
+ }, 1024)) : createCommentVNode("", true),
1135
+ _ctx.stateNumRender.renderReply ? (openBlock(), createBlock(_component_a_tooltip, { key: 2 }, {
1136
+ title: withCtx(() => [createTextVNode("已回复人数")]),
1137
+ default: withCtx(() => [createElementVNode("div", _hoisted_24, [_hoisted_25, createElementVNode("span", null, toDisplayString(record.replyNum ?? 0), 1)])]),
1138
+ _: 2
1139
+ }, 1024)) : createCommentVNode("", true),
1140
+ _ctx.stateNumRender.renderGood ? (openBlock(), createBlock(_component_a_tooltip, { key: 3 }, {
1141
+ title: withCtx(() => [createTextVNode("点赞人数")]),
1142
+ default: withCtx(() => [createElementVNode("div", _hoisted_26, [_hoisted_27, createElementVNode("span", null, toDisplayString(record.goodNum ?? 0), 1)])]),
1143
+ _: 2
1144
+ }, 1024)) : createCommentVNode("", true)
1145
+ ])) : column.dataIndex === "operation" ? (openBlock(), createElementBlock("div", _hoisted_28, [record.expiredStatus === _ctx.BulletinExpiredStatus.EXPIRED ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [_ctx.hasPermission(_ctx.BulletinPermission.DELETE) ? (openBlock(), createBlock(_component_a_button, {
1146
+ key: 0,
1147
+ type: "link",
1148
+ onClick: ($event) => _ctx.deleteOperation.handle(record)
1149
+ }, {
1150
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.deleteOperation.text), 1)]),
1151
+ _: 2
1152
+ }, 1032, ["onClick"])) : (openBlock(), createElementBlock("div", _hoisted_29, "-"))], 64)) : _ctx.bulletinListOperations?.length ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [_ctx.firstOperation ? (openBlock(), createBlock(_component_a_button, {
1153
+ key: 0,
1154
+ type: "link",
1155
+ onClick: ($event) => _ctx.firstOperation.handle(record)
1156
+ }, {
1157
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.firstOperation.text), 1)]),
1158
+ _: 2
1159
+ }, 1032, ["onClick"])) : createCommentVNode("", true), _ctx.showOperationMore ? (openBlock(), createBlock(_component_a_dropdown, { key: 1 }, {
1160
+ overlay: withCtx(() => [createVNode(_component_a_menu, null, {
1161
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.moreOperationList, (item) => {
1162
+ return openBlock(), createBlock(_component_a_menu_item, {
1163
+ key: item.text,
1164
+ title: item.text,
1165
+ onClick: ($event) => item.handle(record)
1166
+ }, {
1167
+ default: withCtx(() => [createTextVNode(toDisplayString(item.text), 1)]),
1168
+ _: 2
1169
+ }, 1032, ["title", "onClick"]);
1170
+ }), 128))]),
1171
+ _: 2
1172
+ }, 1024)]),
1173
+ default: withCtx(() => [createVNode(_component_a_button, {
1174
+ type: "link",
1175
+ onClick: _cache[12] || (_cache[12] = withModifiers(() => {}, ["stop"]))
1176
+ }, {
1177
+ default: withCtx(() => [createTextVNode("更多")]),
1178
+ _: 1
1179
+ })]),
1180
+ _: 2
1181
+ }, 1024)) : _ctx.secondOperation ? (openBlock(), createBlock(_component_a_button, {
1182
+ key: 2,
1183
+ type: "link",
1184
+ onClick: ($event) => _ctx.secondOperation.handle(record)
1185
+ }, {
1186
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.secondOperation.text), 1)]),
1187
+ _: 2
1188
+ }, 1032, ["onClick"])) : createCommentVNode("", true)], 64)) : (openBlock(), createElementBlock("div", _hoisted_30, "-"))])) : (openBlock(), createBlock(_component_zt_typo_text, { key: 7 }, {
1189
+ default: withCtx(() => [createTextVNode(toDisplayString(text), 1)]),
1190
+ _: 2
1191
+ }, 1024))]),
1192
+ _: 1
1193
+ }, 8, [
1194
+ "row-key",
1195
+ "columns",
1196
+ "data-source",
1197
+ "loading",
1198
+ "pagination",
1199
+ "row-selection",
1200
+ "scroll",
1201
+ "onChange"
1202
+ ])]),
1203
+ _: 1
1204
+ }, 8, ["body-height"]),
1205
+ createVNode(_component_c_bulletin_drawer, {
1206
+ visible: _ctx.visible,
1207
+ "onUpdate:visible": _cache[14] || (_cache[14] = ($event) => _ctx.visible = $event),
1208
+ "init-show": _ctx.initShow,
1209
+ "delete-id": _ctx.deleteId,
1210
+ "is-delete-all": _ctx.isDeleteAll,
1211
+ "show-type": _ctx.showType,
1212
+ "select-id": _ctx.selectId,
1213
+ onOk: _ctx.handleAdvanced,
1214
+ onSearch: _ctx.getTableList
1215
+ }, null, 8, [
1216
+ "visible",
1217
+ "init-show",
1218
+ "delete-id",
1219
+ "is-delete-all",
1220
+ "show-type",
1221
+ "select-id",
1222
+ "onOk",
1223
+ "onSearch"
1224
+ ]),
1225
+ createVNode(_component_c_bulletin_notify_info_drawer, {
1226
+ visible: _ctx.showReissueDrawer,
1227
+ "onUpdate:visible": _cache[15] || (_cache[15] = ($event) => _ctx.showReissueDrawer = $event),
1228
+ "notice-info-list": _ctx.noticeInfoListData,
1229
+ "disable-self": false,
1230
+ "disabled-human-id-list": _ctx.disabledHumanIdList,
1231
+ "disabled-role-id-list": _ctx.disabledRoleIdList,
1232
+ "disabled-unit-id-list": _ctx.disabledUnitIdList,
1233
+ "disabled-group-id-list": _ctx.disabledGroupIdList,
1234
+ title: _ctx.reissueTitle,
1235
+ onSave: _ctx.handleNoticeInfoDrawerSave
1236
+ }, null, 8, [
1237
+ "visible",
1238
+ "notice-info-list",
1239
+ "disabled-human-id-list",
1240
+ "disabled-role-id-list",
1241
+ "disabled-unit-id-list",
1242
+ "disabled-group-id-list",
1243
+ "title",
1244
+ "onSave"
1245
+ ])
1246
+ ])]),
1247
+ _: 1
1248
+ })], 512);
1249
+ }
1250
+ var bulletin_list_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default$2, [["render", _sfc_render$2], ["__scopeId", "data-v-8d127cf6"]]);
1251
+ //#endregion
1252
+ //#region ../egova-urbanpro-core/src/assets/images/bulletin/bulletin-manage-draft-menu-icon.png
1253
+ var bulletin_manage_draft_menu_icon_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAABAlBMVEUAAACEwP8zh/93tv9Akv8ziP+CxP+FwP9Xov9Omv9prv9hp/9Xov9Imf81iP+Fv/8yhv9prv9gqf+Ewf83i/+FwP80if83jP+EwP82iv9RnP86jf82if9Hjv+Luf8ziP9Hlf9Ck/+EwP8zif99u/+GwP8ziP9Ilf90tf9Ekv+Gwf9+vf+Ev/+Avf+DxP+FwP9fpv92tv92tv9Dk/85jP89kP9ys/9Hlf+FwP9fpf+EwP81h/8zif+Fwf8zif+FwP9epv8yh/9hqP91t/9kqP9zs/+FwP8ziP9Om/99u/9Zov9VoP9xs/9sr/9orP9iqf9epv9Hlf89j/85jP91tf9Ck/9bbDOCAAAARnRSTlMAVVVVVNUr1aurVVVVVSsPDKyrUDXh4ZhiYlVMKBIL+vns6Ojd09Gko6KYkjgyJ/j27OXl3dzU1M/Hs7ONd3d1dXVMSikUwFkV8gAAAQ1JREFUOMvN09d2gkAQBmBgSWINKkUIqIktJpb03tuMptnf/1VsyOood1w4d3vmO4cZ/l0hqEposizH43uxWDQaiTDG1Fp2qZ82+r1ht9n8+e60//9+B62Wfpxd7CNSALAgNAMNa/kTpg56zQNyDi06lQmgegcJURqzw3A4FEqlkskKEwQRQCTggM9wthYc7Xugsg6QChDQLV4VAugWp+8E0C3uPldB4g3xWdMyfICvev0J4EVx+48FxMLlVdoTSrVYzAPkqzPhbCFO0ryw5+DjfJImQGl7etx1wfBmnsX1YAZ2COBZbB5wyn6g1JiCzIMfuHd/pe0D+K21yrlVcHJr8nAcWyJPj4lqQwimRuOed4yCn6cuAAAAAElFTkSuQmCC";
1254
+ //#endregion
1255
+ //#region ../egova-urbanpro-core/src/assets/images/bulletin/bulletin-manage-to-be-publish-menu-icon.png
1256
+ var bulletin_manage_to_be_publish_menu_icon_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAABJlBMVEUAAAAziP81iP+Dw/+FwP9iqf9UoP+Gwv84jf9Hlf9grP9Akf9+uP+Bvf9OnP9Glf9Yo/9wsv80iP98u/90tf91tP80if9xtv80if9wuP9Nmf+FwP8ziP94tv85jP+Bvv9Rm/9Glf9iqf+FwP9co/9prv9epP+GwP9Qj/9fpv9Xof8ziP87jv8ziP+Ewf+Fwf9Om/+Avf9ysv80if+Gwf81iP98uP+Iwf+Gv/8+jf9jqP9Hlf96uf9nrP9ao/9orv+AvP+Fwf9usP+Hv/9Vn/+EwP9DlP90tv8yif9jqv9lqP9tqv8ziP+FwP9Mmf9sr/9orP9xs/9QnP9Glf9Ck/85jP80if92tf89j/97uf9/vP9jqf9Vn/9Zov9fpv9Qm/8+j/9epv/oCqxOAAAATHRSTlMA1Sss1dB3qlQzJEUTVVVURve0np5VTk0nGQr6+fDw4N3dvJ1pVVRMEPDt593dzsGypoh1cmVEPigd8ufl1M3CvrKqkI2JcmVbWjUq1HDShQAAAUlJREFUOMut09dWwkAQBuDBgEYNEErokEKaCAiIFHuvAcWGlcD7v4SbYJITN3Dh4b/LyXdmZ2d3YUFJJUiSDIdDoZAsS5LEMK206/+OL/f68vb81H/8+p58PtwPhvljApwkNE2zwcgE7x/VDlhRo14g23Qa8Jlg7Aa9ug2WXGBigRUX2NxeR6FpWtzwBtGM9SV4g8r16jT0jApaoVzmeY7jSiNv4Gzzv6BCdrthvq8jsHt0Go/HYkUF20WmZlQI3FjnhM3hcg+BQwrAC2i5QsHooSQD0A1zieKZ4tFkLQPib5MoTQzo50AJCOTrrAG20liFZVgLIHAFhAH8xAwQSQKFgzEG5lYAdh4YNACIqg1SOMi3ANo2UKMYGO4Hgcr2/B372jtAFcxBsRcnaA7U34ejiwC3B5HpJLP+Nv70jNHdJRkmiKIQsJD8ABkKkq23CD7tAAAAAElFTkSuQmCC";
1257
+ //#endregion
1258
+ //#region ../egova-urbanpro-core/src/assets/images/bulletin/bulletin-manage-published-menu-icon.png
1259
+ var bulletin_manage_published_menu_icon_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAABL1BMVEUAAACZzP+Ewf+Fwv9bqP+Av/9Vmf9Nmf+FwP9Omv+Gwf9Zov+Dv/81jf9Akv94t/9Zpv9ytP9Unv9Jl/8ziP9cpP+FwP+EwP+Fwf9QnP+FwP9prv9Zo/8ziP+Fv/+DwP9Dkv9Bk/+Av/9hp/9+u/9Akf9lq/9RnP98u/9sr/9oq/9JmP+FwP9ao/82iP+Gwv9ip/+Ev/98u/9usf9vr/9Akf9xs/9bov9dpf9AkP93uP90tf91uf9lr/+AvP96uP8ziP9wsv9Zo/81iv8/kP96uf9Il/9xs/9Dk/96uP+Fv/9AkP92tv9Zo/86jv9hpv81i/9Yo/+EwP9+u/96uf91tf9xsv9sr/9Mmf9Hlv9Dk/9orP9QnP8ziP9jqf9Zov9VoP9epv8+kP86jf81if84OsjmAAAAUnRSTlMABe8yGhAPCvudTkZEKyIgFPn59vDp29HNs66no52McVQ7GPr49/X18u/o5uPVyL+8urOzramenY58cFZMMCb6+OXk4tvYzMe9vJSIgnVhXEQ63OrdPgAAAXRJREFUOMu1ktd6gkAUhBcFlGAEe4+9JPZeY3rva0VjS/L+z5AFJARQr5K5Ab75z1l2vgH/qYhJj+2wsb28zqXfPt12QQiNe9umTXcpiKQzbbSJzs2g3zPqIHRuPOKtfDhEgMsJoZvRuCRdiE5Hw8FJ6d4IYZFQ+8cex2rOA6UOOgF6la4h7LEuFzxgKTNFiHSg8Per6fG7CFSYVowHgr+nq/EJJwKJCtZN9XhAjsEcuPj8kAAfTtT6AqCXlgfssy8JiPow0LKIALH2c7OZDPhxEDkbCIAOiHq1y4DVjwHSNxQBtxRO8/QHqOMAtIUkxRjknxAAG4U+8KMRDyhjMIRyPECxAGCNqQQEFTk9X05sJHq+JERA24aHCRdCu7JzEdC2wRznPKShsZIAbRtuuXSYdsiAu6sCQrYxlV04CtIt8uo2mK/HyeWiztI1iwB4NaVvoqjPWfTCPF7FhBjUK1DUT+tqBTOZDY2lkn4W7BJO4+Dv9Q0uWWsFEF+qHQAAAABJRU5ErkJggg==";
1260
+ //#endregion
1261
+ //#region ../egova-urbanpro-core/src/assets/images/bulletin/bulletin-manage-withdraw-menu-icon.png
1262
+ var bulletin_manage_withdraw_menu_icon_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAA/FBMVEUAAAAziP+EwP9epf91w/+FwP8zif9srv87jP85hf9ao/+Ew/8ziP+FwP8zif97uv9Un/9Lmf9Akv+Gwf+Hv/8yi/85jv9Vn/9epv9ysv9VpP9sr/9Nmf+FwP+Dv/81iv9ao/9WoP+Bvf8+kP9Dk/91tv9RnP84jf80iv9Nmf9rr/9Hl/9Xof9mqv87kP81iv9fpv91tf+Ev/+AvP9orP+EwP+Avf9ytP9Zov9prP98uf92t/+Au/+Gw/94w/9ttv+FwP8ziP86jf96uf9+u/91tf9jqf8+kP9sr/9epv9Hlv9Dk/9xsv9orP9QnP9Mmf9Zov9VoP9xs/9nrP97iJzlAAAAQHRSTlMAVVVUCeLiVUwJ1SP5m5tVVVVVTjg3JCG+Vyr6+vj4+Pf28ujlyMOsoZ55c0wuJxj58NrYy8myppqLaWNANxEOaVRU6AAAAPtJREFUOMutk+dywjAQhEUst4SOiQ2kkpBCQkLvRaL3+v7vQjFjDZhDMwz79765k/b20JWkBhWH3+/zeb2CIMiyHPJ4AjXM6vdu6bnZGw1n08V80J30x51W+0l03Vl1iVJ6DBBCxD2huulpgLjMKUHpEFhZgKjtAMUJdXgM7AAHhQByYwNeX84CDx+/t1tgCQHfengDrKAO7z8I6UYSHPGmqAjhhBDPRk4Cn3+W84lCygY4v/4RU6MCAEzlKDjCVD0PPFIvGkYptNliFfhmeGtUJBbHOAoZZVod03IcqzPpi5bFAsMAfmDskWPrFjVuaPmx5x8OfHoaRtfRGomcl1aXVMZLAAAAAElFTkSuQmCC";
1263
+ //#endregion
1264
+ //#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-manage/components/menu-list/index.ts?vue&type=script&src=true&lang.ts
1265
+ var index_ts_vue_type_script_src_true_lang_default$1 = defineComponent({
1266
+ name: "VBuilderBusinessBulletinMenuList",
1267
+ components: { CInfoCard: info_card_default },
1268
+ emits: ["select"],
1269
+ setup(props, { emit }) {
1270
+ const route = useRoute();
1271
+ const loading = ref(false);
1272
+ const { human } = storeToRefs(useUserStore());
1273
+ const service = new BulletinService(http);
1274
+ /** 我的通知公告 */
1275
+ const mineMenuList = ref([
1276
+ {
1277
+ name: "草稿",
1278
+ num: 0,
1279
+ key: BulletinStatus.DRAFT,
1280
+ icon: "ega-core-iconfont ega-core-icon-draft",
1281
+ activeImg: bulletin_manage_draft_menu_icon_default,
1282
+ listParams: {
1283
+ status: BulletinStatus.DRAFT,
1284
+ createHumanUid: human.value?.uid
1285
+ }
1286
+ },
1287
+ {
1288
+ name: "待发布",
1289
+ num: 0,
1290
+ key: BulletinStatus.TO_BE_PUBLISH,
1291
+ icon: "zt-iconfont zt-icon-document-history",
1292
+ activeImg: bulletin_manage_to_be_publish_menu_icon_default,
1293
+ listParams: {
1294
+ status: BulletinStatus.TO_BE_PUBLISH,
1295
+ createHumanUid: human.value?.uid
1296
+ }
1297
+ },
1298
+ {
1299
+ name: "已发布",
1300
+ num: 0,
1301
+ key: BulletinStatus.PUBLISHED,
1302
+ icon: "zt-iconfont zt-icon-send",
1303
+ activeImg: bulletin_manage_published_menu_icon_default,
1304
+ listParams: {
1305
+ status: BulletinStatus.PUBLISHED,
1306
+ createHumanUid: human.value?.uid,
1307
+ sortField: "publish_time"
1308
+ }
1309
+ },
1310
+ {
1311
+ name: "已撤回",
1312
+ num: 0,
1313
+ key: BulletinStatus.WITHDRAW,
1314
+ icon: "zt-iconfont zt-icon-back bulletin-menu-icon-transform-left",
1315
+ activeImg: bulletin_manage_withdraw_menu_icon_default,
1316
+ listParams: {
1317
+ status: BulletinStatus.WITHDRAW,
1318
+ createHumanUid: human.value?.uid,
1319
+ sortField: "cancel_time"
1320
+ }
1321
+ }
1322
+ ]);
1323
+ /** 通知公告管理 */
1324
+ const managerMenuList = ref([{
1325
+ name: t(I18NextKey.NOTICE_ALL),
1326
+ num: 0,
1327
+ key: BulletinStatus.ALL,
1328
+ icon: "zt-iconfont zt-icon-dot color-primary",
1329
+ listParams: {
1330
+ status: BulletinStatus.ALL,
1331
+ sortField: "publish_time"
1332
+ }
1333
+ }]);
1334
+ const selectedKeys = ref();
1335
+ const handleMenuClick = (menu) => {
1336
+ selectedKeys.value = [menu.key];
1337
+ emitSelectMenu();
1338
+ };
1339
+ const handleMenuClickByKey = (key) => {
1340
+ if (!(selectedKeys.value ?? []).includes(key)) {
1341
+ selectedKeys.value = [key];
1342
+ emitSelectMenu();
1343
+ }
1344
+ };
1345
+ function init() {
1346
+ const { menu } = convertRouteQuery(route.query);
1347
+ if (menu) selectedKeys.value = [Number(menu)];
1348
+ else selectedKeys.value = [mineMenuList.value[0].key];
1349
+ emitSelectMenu();
1350
+ }
1351
+ function emitSelectMenu() {
1352
+ if (selectedKeys.value) {
1353
+ const key = selectedKeys.value[0];
1354
+ const mineMenu = mineMenuList.value.find((item) => item.key === key);
1355
+ const managerMenu = managerMenuList.value.find((item) => item.key === key);
1356
+ emit("select", mineMenu ?? managerMenu);
1357
+ }
1358
+ }
1359
+ async function initMenuNum() {
1360
+ try {
1361
+ const res = await service.getBulletinNumByMenu();
1362
+ if (!res.hasError) res.result?.resultList.forEach((item) => {
1363
+ const menu = mineMenuList.value.find((menu) => menu.key === item.key);
1364
+ if (menu) menu.num = item.num;
1365
+ const managerMenu = managerMenuList.value.find((menu) => menu.key === item.key);
1366
+ if (managerMenu) managerMenu.num = item.num;
1367
+ });
1368
+ } catch (error) {
1369
+ console.log("error: ", error);
1370
+ }
1371
+ }
1372
+ onMounted(() => {
1373
+ init();
1374
+ initMenuNum();
1375
+ bus.off(BusEventKey.BULLETIN__MANAGE__NOTICE_NUM__REFRESH);
1376
+ bus.on(BusEventKey.BULLETIN__MANAGE__NOTICE_NUM__REFRESH, () => {
1377
+ initMenuNum();
1378
+ });
1379
+ bus.off(BusEventKey.BULLETIN__VIEW__MENU__SELECT);
1380
+ bus.on(BusEventKey.BULLETIN__VIEW__MENU__SELECT, (key) => {
1381
+ handleMenuClickByKey(key);
1382
+ });
1383
+ });
1384
+ onActivated(() => {
1385
+ initMenuNum();
1386
+ bus.off(BusEventKey.BULLETIN__MANAGE__NOTICE_NUM__REFRESH);
1387
+ bus.on(BusEventKey.BULLETIN__MANAGE__NOTICE_NUM__REFRESH, () => {
1388
+ initMenuNum();
1389
+ });
1390
+ bus.off(BusEventKey.BULLETIN__VIEW__MENU__SELECT);
1391
+ bus.on(BusEventKey.BULLETIN__VIEW__MENU__SELECT, (key) => {
1392
+ handleMenuClickByKey(key);
1393
+ });
1394
+ });
1395
+ return {
1396
+ handleMenuClick,
1397
+ selectedKeys,
1398
+ mineMenuList,
1399
+ managerMenuList,
1400
+ loading,
1401
+ formatNum
1402
+ };
1403
+ }
1404
+ });
1405
+ //#endregion
1406
+ //#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-manage/components/menu-list/index.vue
1407
+ var _withScopeId = (n) => (pushScopeId("data-v-e1967845"), n = n(), popScopeId(), n);
1408
+ var _hoisted_1$1 = { class: "v-builder-business-bulletin-menu-list" };
1409
+ var _hoisted_2$1 = { class: "menu-content" };
1410
+ var _hoisted_3$1 = { class: "menu-name" };
1411
+ var _hoisted_4 = {
1412
+ key: 0,
1413
+ class: "menu-num"
1414
+ };
1415
+ var _hoisted_5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "divider" }, null, -1));
1416
+ var _hoisted_6 = { class: "menu-content" };
1417
+ var _hoisted_7 = { class: "menu-name" };
1418
+ var _hoisted_8 = {
1419
+ key: 0,
1420
+ class: "menu-num"
1421
+ };
1422
+ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
1423
+ const _component_a_menu_item = MenuItem;
1424
+ const _component_a_menu = Menu;
1425
+ const _component_zt_empty = ZtEmpty;
1426
+ const _component_zt_info_card = ZtInfoCard;
1427
+ return openBlock(), createElementBlock("div", _hoisted_1$1, [
1428
+ createVNode(_component_zt_info_card, { class: "menu-card mine-menu" }, {
1429
+ title: withCtx(() => [createTextVNode(toDisplayString(_ctx.$t(_ctx.$I18NextKey.NOTICE_MANAGE_MINE)), 1)]),
1430
+ default: withCtx(() => [_ctx.mineMenuList.length ? (openBlock(), createBlock(_component_a_menu, {
1431
+ key: 0,
1432
+ selectedKeys: _ctx.selectedKeys,
1433
+ "onUpdate:selectedKeys": _cache[0] || (_cache[0] = ($event) => _ctx.selectedKeys = $event),
1434
+ mode: "inline",
1435
+ onClick: _ctx.handleMenuClick
1436
+ }, {
1437
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.mineMenuList, (menu) => {
1438
+ return openBlock(), createBlock(_component_a_menu_item, {
1439
+ key: menu.key,
1440
+ class: "menu-item"
1441
+ }, {
1442
+ icon: withCtx(() => [createElementVNode("i", { class: normalizeClass(menu.icon) }, null, 2)]),
1443
+ default: withCtx(() => [createElementVNode("div", _hoisted_2$1, [createElementVNode("div", _hoisted_3$1, toDisplayString(menu.name), 1), menu.num ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(_ctx.formatNum(menu.num)), 1)) : createCommentVNode("", true)])]),
1444
+ _: 2
1445
+ }, 1024);
1446
+ }), 128))]),
1447
+ _: 1
1448
+ }, 8, ["selectedKeys", "onClick"])) : (openBlock(), createBlock(_component_zt_empty, {
1449
+ key: 1,
1450
+ center: ""
1451
+ }))]),
1452
+ _: 1
1453
+ }),
1454
+ _hoisted_5,
1455
+ createVNode(_component_zt_info_card, { class: "menu-card manager-menu" }, {
1456
+ title: withCtx(() => [createTextVNode(toDisplayString(_ctx.$t(_ctx.$I18NextKey.NOTICE_MANAGE)), 1)]),
1457
+ default: withCtx(() => [_ctx.managerMenuList.length ? (openBlock(), createBlock(_component_a_menu, {
1458
+ key: 0,
1459
+ selectedKeys: _ctx.selectedKeys,
1460
+ "onUpdate:selectedKeys": _cache[1] || (_cache[1] = ($event) => _ctx.selectedKeys = $event),
1461
+ mode: "inline",
1462
+ onClick: _ctx.handleMenuClick
1463
+ }, {
1464
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.managerMenuList, (menu) => {
1465
+ return openBlock(), createBlock(_component_a_menu_item, {
1466
+ key: menu.key,
1467
+ class: "menu-item"
1468
+ }, {
1469
+ icon: withCtx(() => [createElementVNode("i", { class: normalizeClass(menu.icon) }, null, 2)]),
1470
+ default: withCtx(() => [createElementVNode("div", _hoisted_6, [createElementVNode("div", _hoisted_7, toDisplayString(menu.name), 1), menu.num ? (openBlock(), createElementBlock("div", _hoisted_8, toDisplayString(_ctx.formatNum(menu.num)), 1)) : createCommentVNode("", true)])]),
1471
+ _: 2
1472
+ }, 1024);
1473
+ }), 128))]),
1474
+ _: 1
1475
+ }, 8, ["selectedKeys", "onClick"])) : (openBlock(), createBlock(_component_zt_empty, {
1476
+ key: 1,
1477
+ center: ""
1478
+ }))]),
1479
+ _: 1
1480
+ })
1481
+ ]);
1482
+ }
1483
+ //#endregion
1484
+ //#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-manage/index.ts?vue&type=script&src=true&lang.ts
1485
+ /**
1486
+ * 通知公告管理
1487
+ */
1488
+ var index_ts_vue_type_script_src_true_lang_default = defineComponent({
1489
+ name: "VBuilderBusinessBulletinManage",
1490
+ components: {
1491
+ BulletinMenuList: /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default$1, [["render", _sfc_render$1], ["__scopeId", "data-v-e1967845"]]),
1492
+ BulletinList: bulletin_list_default
1493
+ },
1494
+ setup() {
1495
+ useNavTitle({
1496
+ title: ref(`${t(I18NextKey.NOTICE_SHORT)}管理`),
1497
+ replace: true,
1498
+ updateDocumentTitle: true
1499
+ });
1500
+ const selectMenu = ref();
1501
+ function handleMenuChange(menu) {
1502
+ selectMenu.value = menu;
1503
+ }
1504
+ return {
1505
+ selectMenu,
1506
+ handleMenuChange
1507
+ };
1508
+ }
1509
+ });
1510
+ //#endregion
1511
+ //#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-manage/index.vue
1512
+ var _hoisted_1 = { class: "v-builder-business-bulletin" };
1513
+ var _hoisted_2 = { class: "v-builder-business-bulletin-side" };
1514
+ var _hoisted_3 = { class: "v-builder-business-bulletin-content" };
1515
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1516
+ const _component_bulletin_menu_list = resolveComponent("bulletin-menu-list");
1517
+ const _component_bulletin_list = resolveComponent("bulletin-list");
1518
+ const _component_zt_panel_background = ZtPanelBackground;
1519
+ return openBlock(), createBlock(_component_zt_panel_background, { padding: 0 }, {
1520
+ default: withCtx(() => [createElementVNode("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createVNode(_component_bulletin_menu_list, { onSelect: _ctx.handleMenuChange }, null, 8, ["onSelect"])]), createElementVNode("div", _hoisted_3, [createVNode(_component_bulletin_list, { menu: _ctx.selectMenu }, null, 8, ["menu"])])])]),
1521
+ _: 1
1522
+ });
1523
+ }
1524
+ var bulletin_manage_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default, [["render", _sfc_render], ["__scopeId", "data-v-ecd7995b"]]);
1525
+ //#endregion
1526
+ export { bulletin_manage_default as default };