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,501 @@
1
+ /*! egova-urbanpro-web v0.0.1 */
2
+ import { b as Enabled, j as http } from "./utils-4fqWDxwG.js";
3
+ import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwmSBgGG.js";
4
+ import { t as MsgService } from "./service-fs3hJh7w.js";
5
+ import { t as info_card_default } from "./info-card-DgYedeWN.js";
6
+ import { E as BulletinService, c as BulletinLevelReceiveOptions, l as BulletinLevelReplyOptions, m as DEFAULT_BULLETIN_LEVEL_COLOR } from "./constants-BijBPSuc.js";
7
+ import { a as filterNotificationMethod, f as validateNotificationMethod } from "./utils-BlJtAQle.js";
8
+ import { cloneDeep, debounce, isNil } from "lodash-es";
9
+ import { isEmptyText } from "@kyjian/libs/utils";
10
+ import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, onMounted, openBlock, popScopeId, pushScopeId, reactive, ref, renderList, resolveComponent, resolveDirective, toDisplayString, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
11
+ import { Form, message } from "ant-design-vue";
12
+ import { Button, Form as Form$1, FormItem, Input as Input$1, InputSearch, Modal as Modal$1, Popover, RadioGroup, Space, Spin as Spin$1, Switch, Tooltip as Tooltip$1 } from "ant-design-vue/es";
13
+ import { ZtColorPicker, ZtEmpty, ZtInfoCard, ZtTextSearch } from "zartd-biz/es/index";
14
+ //#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-config/components/bulletin-level/components/base-info/index.ts?vue&type=script&src=true&lang.ts
15
+ var index_ts_vue_type_script_src_true_lang_default$1 = defineComponent({
16
+ name: "VBaseLevelInfo",
17
+ props: {
18
+ selectedNode: {
19
+ type: Object,
20
+ default: () => ({})
21
+ },
22
+ notificationMethodList: {
23
+ type: Array,
24
+ default: () => []
25
+ }
26
+ },
27
+ emits: ["cancel", "refresh"],
28
+ setup(props, { emit }) {
29
+ const service = new BulletinService(http);
30
+ const baseInfo = ref({
31
+ id: void 0,
32
+ name: "",
33
+ color: "",
34
+ code: "",
35
+ enableFlag: Enabled.NOT_ENABLE,
36
+ notificationMethod: [],
37
+ needReplyFlag: Enabled.NOT_ENABLE,
38
+ needReceiveFlag: Enabled.NOT_ENABLE
39
+ });
40
+ const rules = reactive({
41
+ name: [{
42
+ required: true,
43
+ message: "请输入等级名称"
44
+ }, {
45
+ max: 20,
46
+ message: "等级名称最多10个字符"
47
+ }],
48
+ notificationMethod: [{
49
+ required: true,
50
+ type: "array",
51
+ validator: validateNotificationMethod
52
+ }]
53
+ });
54
+ const labelCol = ref({ span: 5 });
55
+ const { validate, validateInfos } = Form.useForm(baseInfo, rules);
56
+ const handleCancel = () => {
57
+ emit("cancel");
58
+ };
59
+ const loading = ref(false);
60
+ const handleSaveLevel = async () => {
61
+ loading.value = true;
62
+ try {
63
+ await validate();
64
+ const params = cloneDeep(baseInfo.value);
65
+ if (Array.isArray(params.notificationMethod)) params.notificationMethod = params.notificationMethod.filter((item) => !isEmptyText(item)).join(",");
66
+ await service.saveBulletinLevel(params);
67
+ emit("refresh");
68
+ } catch (error) {
69
+ console.error(error);
70
+ } finally {
71
+ loading.value = false;
72
+ }
73
+ };
74
+ const handleNotificationMethod = (notificationMethod) => {
75
+ if (Array.isArray(baseInfo.value.notificationMethod)) {
76
+ const index = baseInfo.value.notificationMethod?.findIndex((type) => type === notificationMethod.id);
77
+ if (index === -1) baseInfo.value.notificationMethod?.push(notificationMethod.id);
78
+ else {
79
+ const notificationMethodSet = new Set(baseInfo.value.notificationMethod);
80
+ notificationMethodSet.delete(baseInfo.value.notificationMethod[index]);
81
+ baseInfo.value.notificationMethod = [...notificationMethodSet];
82
+ }
83
+ }
84
+ };
85
+ watch(() => props.selectedNode, () => {
86
+ baseInfo.value = { ...props.selectedNode };
87
+ if (isNil(baseInfo.value.notificationMethod)) baseInfo.value.notificationMethod = [];
88
+ if (typeof baseInfo.value.notificationMethod === "string") baseInfo.value.notificationMethod = baseInfo.value.notificationMethod.split(",");
89
+ }, {
90
+ deep: true,
91
+ immediate: true
92
+ });
93
+ return {
94
+ baseInfo,
95
+ validateInfos,
96
+ handleCancel,
97
+ handleSaveLevel,
98
+ labelCol,
99
+ handleNotificationMethod,
100
+ BulletinLevelReplyOptions,
101
+ BulletinLevelReceiveOptions,
102
+ Enabled,
103
+ loading
104
+ };
105
+ }
106
+ });
107
+ //#endregion
108
+ //#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-config/components/bulletin-level/components/base-info/index.vue
109
+ var _withScopeId$1 = (n) => (pushScopeId("data-v-11bdbee9"), n = n(), popScopeId(), n);
110
+ var _hoisted_1$1 = { class: "v-bulletin-level-form-title" };
111
+ var _hoisted_2$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-save" }, null, -1));
112
+ var _hoisted_3$1 = { class: "v-bulletin-level-form-basic bottom-border" };
113
+ var _hoisted_4$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "v-bulletin-level-form-header" }, "基本信息", -1));
114
+ var _hoisted_5$1 = { class: "form-item" };
115
+ var _hoisted_6$1 = { class: "v-bulletin-level-form-basic" };
116
+ var _hoisted_7$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "v-bulletin-level-form-header" }, "类型属性", -1));
117
+ var _hoisted_8$1 = { class: "form-item" };
118
+ var _hoisted_9$1 = { class: "v-bulletin-level-form-basic-send-type" };
119
+ var _hoisted_10$1 = ["onClick"];
120
+ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
121
+ const _component_a_button = Button;
122
+ const _component_a_space = Space;
123
+ const _component_a_input = Input$1;
124
+ const _component_a_form_item = FormItem;
125
+ const _component_a_switch = Switch;
126
+ const _component_zt_color_picker = ZtColorPicker;
127
+ const _component_a_radio_group = RadioGroup;
128
+ const _component_a_form = Form$1;
129
+ const _component_zt_info_card = ZtInfoCard;
130
+ return openBlock(), createBlock(_component_zt_info_card, { class: "v-bulletin-level-form" }, {
131
+ title: withCtx(() => [createElementVNode("div", _hoisted_1$1, toDisplayString(_ctx.selectedNode.name), 1)]),
132
+ extra: withCtx(() => [createVNode(_component_a_space, null, {
133
+ default: withCtx(() => [createVNode(_component_a_button, { onClick: _ctx.handleCancel }, {
134
+ default: withCtx(() => [createTextVNode("取消")]),
135
+ _: 1
136
+ }, 8, ["onClick"]), createVNode(_component_a_button, {
137
+ type: "primary",
138
+ loading: _ctx.loading,
139
+ onClick: _ctx.handleSaveLevel
140
+ }, {
141
+ icon: withCtx(() => [_hoisted_2$1]),
142
+ default: withCtx(() => [createTextVNode(" 保存 ")]),
143
+ _: 1
144
+ }, 8, ["loading", "onClick"])]),
145
+ _: 1
146
+ })]),
147
+ default: withCtx(() => [createVNode(_component_a_form, {
148
+ model: _ctx.baseInfo,
149
+ "label-align": "left",
150
+ "label-col": _ctx.labelCol
151
+ }, {
152
+ default: withCtx(() => [createElementVNode("div", _hoisted_3$1, [_hoisted_4$1, createElementVNode("div", _hoisted_5$1, [
153
+ createVNode(_component_a_form_item, mergeProps({
154
+ label: "等级名称",
155
+ name: "name"
156
+ }, _ctx.validateInfos.name, { required: "" }), {
157
+ default: withCtx(() => [createVNode(_component_a_input, {
158
+ value: _ctx.baseInfo.name,
159
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.baseInfo.name = $event),
160
+ valueModifiers: { trim: true },
161
+ placeholder: "请输入",
162
+ "allow-clear": "",
163
+ "show-count": "",
164
+ maxlength: 20
165
+ }, null, 8, ["value"])]),
166
+ _: 1
167
+ }, 16),
168
+ createVNode(_component_a_form_item, {
169
+ label: "等级标识",
170
+ name: "id"
171
+ }, {
172
+ default: withCtx(() => [createVNode(_component_a_input, {
173
+ value: _ctx.baseInfo.id,
174
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => _ctx.baseInfo.id = $event),
175
+ disabled: ""
176
+ }, null, 8, ["value"])]),
177
+ _: 1
178
+ }),
179
+ createVNode(_component_a_form_item, {
180
+ label: "是否启用",
181
+ name: "enableFlag"
182
+ }, {
183
+ default: withCtx(() => [createVNode(_component_a_switch, {
184
+ checked: _ctx.baseInfo.enableFlag,
185
+ "onUpdate:checked": _cache[2] || (_cache[2] = ($event) => _ctx.baseInfo.enableFlag = $event),
186
+ "checked-value": _ctx.Enabled.ENABLE,
187
+ "un-checked-value": _ctx.Enabled.NOT_ENABLE
188
+ }, null, 8, [
189
+ "checked",
190
+ "checked-value",
191
+ "un-checked-value"
192
+ ])]),
193
+ _: 1
194
+ }),
195
+ createVNode(_component_a_form_item, {
196
+ label: "等级颜色",
197
+ class: "v-bulletin-level-color"
198
+ }, {
199
+ default: withCtx(() => [createVNode(_component_zt_color_picker, {
200
+ color: _ctx.baseInfo.color,
201
+ "onUpdate:color": _cache[3] || (_cache[3] = ($event) => _ctx.baseInfo.color = $event)
202
+ }, null, 8, ["color"])]),
203
+ _: 1
204
+ })
205
+ ])]), createElementVNode("div", _hoisted_6$1, [_hoisted_7$1, createElementVNode("div", _hoisted_8$1, [
206
+ createVNode(_component_a_form_item, mergeProps({
207
+ label: "可选通知方式",
208
+ name: "notificationMethod"
209
+ }, _ctx.validateInfos.notificationMethod, { required: "" }), {
210
+ default: withCtx(() => [createElementVNode("div", _hoisted_9$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.notificationMethodList, (notificationMethodItem) => {
211
+ return openBlock(), createElementBlock("div", {
212
+ key: notificationMethodItem.id,
213
+ class: normalizeClass(["v-bulletin-level-form-basic-checkbox", _ctx.baseInfo.notificationMethod?.includes(notificationMethodItem.id.toString()) ? "zt-checked-left-mark" : ""]),
214
+ onClick: ($event) => _ctx.handleNotificationMethod(notificationMethodItem)
215
+ }, toDisplayString(notificationMethodItem.name), 11, _hoisted_10$1);
216
+ }), 128))])]),
217
+ _: 1
218
+ }, 16),
219
+ createVNode(_component_a_form_item, mergeProps({
220
+ label: "默认接收要求",
221
+ name: "needReceiveFlag"
222
+ }, _ctx.validateInfos.needReceiveFlag, { required: "" }), {
223
+ default: withCtx(() => [createVNode(_component_a_radio_group, {
224
+ value: _ctx.baseInfo.needReceiveFlag,
225
+ "onUpdate:value": _cache[4] || (_cache[4] = ($event) => _ctx.baseInfo.needReceiveFlag = $event),
226
+ options: _ctx.BulletinLevelReceiveOptions,
227
+ "option-type": "button",
228
+ class: "v-bulletin-level-form-basic-radio-group"
229
+ }, null, 8, ["value", "options"])]),
230
+ _: 1
231
+ }, 16),
232
+ withDirectives(createVNode(_component_a_form_item, mergeProps({
233
+ label: "默认回复要求",
234
+ name: "needReplyFlag"
235
+ }, _ctx.validateInfos.needReplyFlag, { required: "" }), {
236
+ default: withCtx(() => [createVNode(_component_a_radio_group, {
237
+ value: _ctx.baseInfo.needReplyFlag,
238
+ "onUpdate:value": _cache[5] || (_cache[5] = ($event) => _ctx.baseInfo.needReplyFlag = $event),
239
+ options: _ctx.BulletinLevelReplyOptions,
240
+ "option-type": "button",
241
+ class: "v-bulletin-level-form-basic-radio-group"
242
+ }, null, 8, ["value", "options"])]),
243
+ _: 1
244
+ }, 16), [[vShow, false]])
245
+ ])])]),
246
+ _: 1
247
+ }, 8, ["model", "label-col"])]),
248
+ _: 1
249
+ });
250
+ }
251
+ //#endregion
252
+ //#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-config/components/bulletin-level/index.ts?vue&type=script&src=true&lang.ts
253
+ var index_ts_vue_type_script_src_true_lang_default = defineComponent({
254
+ name: "VBulletinLevel",
255
+ components: {
256
+ CInfoCard: info_card_default,
257
+ VBaseLevelInfo: /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default$1, [["render", _sfc_render$1], ["__scopeId", "data-v-11bdbee9"]])
258
+ },
259
+ setup() {
260
+ const searchValue = ref("");
261
+ const levelRef = ref();
262
+ const selectLevel = ref();
263
+ const service = new BulletinService(http);
264
+ const msgService = new MsgService(http);
265
+ const dataSource = ref([]);
266
+ const filterList = computed(() => dataSource.value.filter((item) => item.name.includes(searchValue.value)));
267
+ const notificationMethodList = ref([]);
268
+ const loading = ref(false);
269
+ async function initNotificationMethodList() {
270
+ try {
271
+ loading.value = true;
272
+ const res = await msgService.getMsgSendTypeList();
273
+ if (!res?.hasError) notificationMethodList.value = filterNotificationMethod(res.result?.resultList || []).map((item) => {
274
+ return {
275
+ ...item,
276
+ id: item.id.toString()
277
+ };
278
+ });
279
+ } catch (error) {
280
+ console.error("error: ", error);
281
+ } finally {
282
+ loading.value = false;
283
+ }
284
+ }
285
+ function getBulletinAddParams() {
286
+ const baseName = "新增等级";
287
+ if (!notificationMethodList.value.length) return message.warn("未获取到通知方式");
288
+ return {
289
+ name: `${baseName}_${(dataSource.value[dataSource.value.length - 1]?.id ?? 0) + 1}`,
290
+ color: DEFAULT_BULLETIN_LEVEL_COLOR,
291
+ enableFlag: Enabled.ENABLE,
292
+ needReplyFlag: Enabled.NOT_ENABLE,
293
+ needReceiveFlag: Enabled.NOT_ENABLE,
294
+ notificationMethod: notificationMethodList.value?.[0]?.id
295
+ };
296
+ }
297
+ const handleAdd = async () => {
298
+ try {
299
+ const params = getBulletinAddParams();
300
+ const res = await service.addBulletinLevel(params);
301
+ if (!res.hasError) {
302
+ selectLevel.value = res.result?.data;
303
+ handleBulletinLevelList();
304
+ }
305
+ } catch (error) {
306
+ console.error(error);
307
+ }
308
+ };
309
+ const debounceHandleAdd = debounce(handleAdd, 200);
310
+ const handleEdit = (type) => {
311
+ selectLevel.value = type;
312
+ };
313
+ const handleBulletinLevelList = async () => {
314
+ try {
315
+ const res = await service.getBulletinLevelList();
316
+ if (!res.hasError) {
317
+ dataSource.value = res.result?.resultList ?? [];
318
+ if (selectLevel.value) selectLevel.value = dataSource.value.find((item) => item.id === selectLevel.value?.id);
319
+ }
320
+ } catch (error) {
321
+ console.error(error);
322
+ }
323
+ };
324
+ const deleteState = reactive({
325
+ visible: false,
326
+ content: "",
327
+ isLevel: false,
328
+ id: void 0,
329
+ delLoading: false
330
+ });
331
+ const handleDeleteLevel = (item) => {
332
+ deleteState.visible = true;
333
+ deleteState.content = `确定删除${item.name}吗?`;
334
+ deleteState.isLevel = true;
335
+ deleteState.id = item.id;
336
+ };
337
+ async function handleDeleteOk() {
338
+ deleteState.delLoading = true;
339
+ try {
340
+ if (!(await service.deleteBulletinLevel([deleteState.id])).hasError) {
341
+ if (deleteState.id === selectLevel.value?.id) selectLevel.value = void 0;
342
+ deleteState.visible = false;
343
+ handleBulletinLevelList();
344
+ }
345
+ } catch (error) {
346
+ console.error(error);
347
+ } finally {
348
+ deleteState.delLoading = false;
349
+ }
350
+ }
351
+ function handleModalContainer() {
352
+ return levelRef.value;
353
+ }
354
+ onMounted(() => {
355
+ handleBulletinLevelList();
356
+ initNotificationMethodList();
357
+ });
358
+ return {
359
+ searchValue,
360
+ selectLevel,
361
+ filterList,
362
+ handleAdd,
363
+ handleEdit,
364
+ handleBulletinLevelList,
365
+ deleteState,
366
+ handleDeleteLevel,
367
+ handleDeleteOk,
368
+ levelRef,
369
+ handleModalContainer,
370
+ loading,
371
+ notificationMethodList,
372
+ debounceHandleAdd
373
+ };
374
+ }
375
+ });
376
+ //#endregion
377
+ //#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-config/components/bulletin-level/index.vue
378
+ var _withScopeId = (n) => (pushScopeId("data-v-310afba7"), n = n(), popScopeId(), n);
379
+ var _hoisted_1 = {
380
+ ref: "levelRef",
381
+ class: "v-bulletin-level"
382
+ };
383
+ var _hoisted_2 = { class: "v-bulletin-level-side" };
384
+ var _hoisted_3 = { class: "v-bulletin-level-side-content" };
385
+ var _hoisted_4 = ["onClick"];
386
+ var _hoisted_5 = { class: "v-bulletin-level-side-item-title" };
387
+ var _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "ega-core-iconfont ega-core-icon-shield" }, null, -1));
388
+ var _hoisted_7 = ["onClick"];
389
+ var _hoisted_8 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-delete" }, null, -1));
390
+ var _hoisted_9 = { class: "v-bulletin-level-content" };
391
+ var _hoisted_10 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-close" }, null, -1));
392
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
393
+ const _component_a_tooltip = Tooltip$1;
394
+ const _component_a_input_search = InputSearch;
395
+ const _component_zt_text_search = ZtTextSearch;
396
+ const _component_a_popover = Popover;
397
+ const _component_zt_empty = ZtEmpty;
398
+ const _component_c_info_card = resolveComponent("c-info-card");
399
+ const _component_v_base_level_info = resolveComponent("v-base-level-info");
400
+ const _component_a_modal = Modal$1;
401
+ const _component_a_spin = Spin$1;
402
+ const _directive_zt_overlay_scrollbars = resolveDirective("zt-overlay-scrollbars");
403
+ return openBlock(), createBlock(_component_a_spin, {
404
+ spinning: _ctx.loading,
405
+ "wrapper-class-name": "zt-spin-full"
406
+ }, {
407
+ default: withCtx(() => [createElementVNode("div", _hoisted_1, [
408
+ createElementVNode("div", _hoisted_2, [createVNode(_component_c_info_card, null, {
409
+ title: withCtx(() => [createElementVNode("span", null, toDisplayString(_ctx.$t(_ctx.$I18NextKey.NOTICE_SHORT)) + "等级", 1)]),
410
+ extra: withCtx(() => [createVNode(_component_a_tooltip, null, {
411
+ title: withCtx(() => [createTextVNode("新增")]),
412
+ default: withCtx(() => [createElementVNode("i", {
413
+ class: "zt-iconfont zt-icon-plus v-bulletin-level-add-icon",
414
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.debounceHandleAdd && _ctx.debounceHandleAdd(...args))
415
+ })]),
416
+ _: 1
417
+ })]),
418
+ default: withCtx(() => [createVNode(_component_a_input_search, {
419
+ value: _ctx.searchValue,
420
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => _ctx.searchValue = $event),
421
+ valueModifiers: { trim: true },
422
+ class: "zt-input-search-round",
423
+ placeholder: "请输入关键字检索",
424
+ round: "",
425
+ "allow-clear": ""
426
+ }, null, 8, ["value"]), withDirectives((openBlock(), createElementBlock("div", _hoisted_3, [_ctx.filterList.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.filterList, (item) => {
427
+ return openBlock(), createElementBlock("div", {
428
+ key: item.id,
429
+ class: normalizeClass(["v-bulletin-level-side-item", { active: _ctx.selectLevel?.id === item.id }]),
430
+ onClick: ($event) => _ctx.handleEdit(item)
431
+ }, [createElementVNode("div", _hoisted_5, [
432
+ createElementVNode("i", {
433
+ class: "zt-iconfont zt-icon-dot",
434
+ style: normalizeStyle({ color: item.color })
435
+ }, null, 4),
436
+ _hoisted_6,
437
+ createVNode(_component_zt_text_search, {
438
+ text: item.name,
439
+ search: _ctx.searchValue
440
+ }, null, 8, ["text", "search"])
441
+ ]), createVNode(_component_a_popover, {
442
+ placement: "bottomRight",
443
+ "overlay-class-name": "v-bulletin-level-side-item-popover"
444
+ }, {
445
+ content: withCtx(() => [createElementVNode("div", {
446
+ class: "v-bulletin-level-side-item-popover-menu",
447
+ onClick: withModifiers(($event) => _ctx.handleDeleteLevel(item), ["stop"])
448
+ }, [_hoisted_8, createTextVNode("删除 ")], 8, _hoisted_7)]),
449
+ default: withCtx(() => [createElementVNode("i", {
450
+ class: "zt-iconfont zt-icon-dot-more",
451
+ onClick: _cache[2] || (_cache[2] = withModifiers(() => {}, ["stop"]))
452
+ })]),
453
+ _: 2
454
+ }, 1024)], 10, _hoisted_4);
455
+ }), 128)) : (openBlock(), createBlock(_component_zt_empty, {
456
+ key: 1,
457
+ center: "",
458
+ description: "暂无数据"
459
+ }))])), [[_directive_zt_overlay_scrollbars]])]),
460
+ _: 1
461
+ })]),
462
+ createElementVNode("div", _hoisted_9, [_ctx.selectLevel ? (openBlock(), createBlock(_component_v_base_level_info, {
463
+ key: 0,
464
+ "notification-method-list": _ctx.notificationMethodList,
465
+ "selected-node": _ctx.selectLevel,
466
+ onCancel: _cache[3] || (_cache[3] = ($event) => _ctx.selectLevel = void 0),
467
+ onRefresh: _ctx.handleBulletinLevelList
468
+ }, null, 8, [
469
+ "notification-method-list",
470
+ "selected-node",
471
+ "onRefresh"
472
+ ])) : (openBlock(), createBlock(_component_zt_empty, {
473
+ key: 1,
474
+ center: "",
475
+ description: "请选择侧边等级"
476
+ }))]),
477
+ createVNode(_component_a_modal, {
478
+ visible: _ctx.deleteState.visible,
479
+ "onUpdate:visible": _cache[4] || (_cache[4] = ($event) => _ctx.deleteState.visible = $event),
480
+ class: "v-bulletin-level-delete-modal-warning",
481
+ title: "删除提示",
482
+ "confirm-loading": _ctx.deleteState.delLoading,
483
+ "get-container": _ctx.handleModalContainer,
484
+ onOk: _ctx.handleDeleteOk
485
+ }, {
486
+ closeIcon: withCtx(() => [_hoisted_10]),
487
+ default: withCtx(() => [createTextVNode(" " + toDisplayString(_ctx.deleteState.content), 1)]),
488
+ _: 1
489
+ }, 8, [
490
+ "visible",
491
+ "confirm-loading",
492
+ "get-container",
493
+ "onOk"
494
+ ])
495
+ ], 512)]),
496
+ _: 1
497
+ }, 8, ["spinning"]);
498
+ }
499
+ var bulletin_level_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default, [["render", _sfc_render], ["__scopeId", "data-v-310afba7"]]);
500
+ //#endregion
501
+ export { bulletin_level_default as default };