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.
- package/README.md +134 -0
- package/es/_plugin-vue_export-helper-BwmSBgGG.js +9 -0
- package/es/act-menu-refresh-3YeQne1X.js +77 -0
- package/es/async-select-modal-lRKCEMBM.js +316 -0
- package/es/bulletin-add-Dt1Xi_oL.js +1251 -0
- package/es/bulletin-config-Ber1L1T2.js +297 -0
- package/es/bulletin-detail-Ce7riX6X.js +1430 -0
- package/es/bulletin-detail-file-2Ij39UlM.js +187 -0
- package/es/bulletin-drawer-DmwW23ng.js +461 -0
- package/es/bulletin-level-Cz_6Mg2x.js +501 -0
- package/es/bulletin-manage-JMjvzUhg.js +1526 -0
- package/es/bulletin-notify-info-drawer-vR3KSaRS.js +487 -0
- package/es/bulletin-property-CvohCK8q.js +656 -0
- package/es/bulletin-type-CQS6_MYv.js +675 -0
- package/es/bulletin-view-DcdZrV19.js +870 -0
- package/es/business-collection-and-repair-B2DfBAsx.js +109 -0
- package/es/cascader-filter-DOg-iNnE.js +68 -0
- package/es/cascader-multiple-filter-C-cKxmkk.js +103 -0
- package/es/chat-BB8_LIT6.js +4634 -0
- package/es/checkbox-filter-DC1VaGo9.js +39 -0
- package/es/chunk-CHb_fpD5.js +29 -0
- package/es/condition-search-criteria-B_HnHQBy.js +190 -0
- package/es/constant-CYnp-Cj8.js +4925 -0
- package/es/constants-BijBPSuc.js +480 -0
- package/es/constants-DQ6XzzDS.js +137 -0
- package/es/contact-DxLrJ_f_.js +339 -0
- package/es/contact-unit-BvCPmyNK.js +708 -0
- package/es/department-radio-filter-BbrntEcc.js +72 -0
- package/es/downtime-timer-repair-D_SuN4fE.js +255 -0
- package/es/dynamic-form-input-10ce5824-Cju2XHEl.js +60 -0
- package/es/dynamic-form-input-number-c60b4ff5-gYvoAgss.js +61 -0
- package/es/dynamic-form-login-type-6c9d78bf-CxtLGfA6.js +175 -0
- package/es/dynamic-form-multiple-select-3e2bd885-CrD_ALk8.js +77 -0
- package/es/dynamic-form-password-57dc81c4-CcmoNfq0.js +84 -0
- package/es/dynamic-form-region-tree-b2c57d1c-BRm2M8Er.js +133 -0
- package/es/dynamic-form-select-cdbf49ad-C0eLS2zd.js +76 -0
- package/es/dynamic-form-upload-768a0d32-ClHw2ZkO.js +116 -0
- package/es/egova-urbanpro-web.css +10907 -0
- package/es/egova-urbanpro-web.d.ts +79 -0
- package/es/egova-urbanpro-web.js +9223 -0
- package/es/field-cell-PNcIBk8w.js +93 -0
- package/es/field-icon-cell-BQvkUM-O.js +65 -0
- package/es/file-cell-ClyA9XoC.js +147 -0
- package/es/hooks-CuXq9j8q.js +324 -0
- package/es/icon-cell-BF-Nf-QP.js +78 -0
- package/es/im-conversation-06-TFmZZ.js +158 -0
- package/es/image-cell-cu9ezfsV.js +92 -0
- package/es/image-gray-surS1IZ2.js +5 -0
- package/es/index-15d85366-BVTMMFAV.js +97 -0
- package/es/index-lib-23bd328c-DtcJvHvJ.js +42122 -0
- package/es/info-card-DgYedeWN.js +30 -0
- package/es/localforage-B_66fZyP.js +1798 -0
- package/es/number-filter-SyfJaaIG.js +55 -0
- package/es/operation-selector-TEcr5s2w.js +157 -0
- package/es/option-style-BTFl4VQj.js +32 -0
- package/es/package.json +46 -0
- package/es/query-CiRQQsE1.js +11 -0
- package/es/radio-filter-t5QSYiRY.js +68 -0
- package/es/rec-delete-DBvqRiKp.js +74 -0
- package/es/rec-timer-refresh-Dfd6hH2t.js +74 -0
- package/es/region-radio-filter-CoybNPaj.js +271 -0
- package/es/render-cell-BI9mUiTe.js +45 -0
- package/es/select-checkbox-filter-B89vKdLG.js +60 -0
- package/es/select-multiple-tree-filter-BEYUKg7q.js +298 -0
- package/es/select-radio-filter-BW2P3uwp.js +58 -0
- package/es/select-single-tree-filter-CKYo3kV1.js +94 -0
- package/es/service-BabEdPB2.js +100 -0
- package/es/service-fs3hJh7w.js +126 -0
- package/es/text-filter-B80UB8KG.js +66 -0
- package/es/time-filter-Nc-cflut.js +211 -0
- package/es/types-DjDPFQk1.js +44 -0
- package/es/use-file-D_9JbApO.js +58 -0
- package/es/user-radio-filter-T79Kp2jW.js +72 -0
- package/es/utils-4fqWDxwG.js +2643 -0
- package/es/utils-BlJtAQle.js +161 -0
- package/es/utils-Cn_7yZzr.js +355 -0
- package/es/utils-D-E5UJPP.js +14 -0
- package/es/version.json +33 -0
- package/package.json +165 -0
|
@@ -0,0 +1,1251 @@
|
|
|
1
|
+
/*! egova-urbanpro-web v0.0.1 */
|
|
2
|
+
import { B as bus, a as filterOption, 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 { i as weekOptionList, n as monthOptionList } from "./constants-DQ6XzzDS.js";
|
|
7
|
+
import { t as MsgService } from "./service-fs3hJh7w.js";
|
|
8
|
+
import { E as BulletinService, S as BulletinNoticeTime, T as BulletinTypeMediaType, _ as bulletinNoticeOptions, b as BulletinNoticeCycleTime, g as MAX_DIGEST_LIMIT, n as BULLETIN_MEDIA_TYPE_LIMIT, v as cycleRemindTimeTypeOption, w as BulletinStatus, x as BulletinNoticeInfoType } from "./constants-BijBPSuc.js";
|
|
9
|
+
import { a as filterNotificationMethod, c as getBulletinNoticeInfoIcon, d as getUnifyNoticeInfoItem, f as validateNotificationMethod, i as disabledTime, n as bulletinNoticeInfoTransToInstance, r as disabledDate, u as getNoticeInfoItemUid } from "./utils-BlJtAQle.js";
|
|
10
|
+
import { t as bulletin_detail_file_default } from "./bulletin-detail-file-2Ij39UlM.js";
|
|
11
|
+
import { n as useBulletinFormOptions, t as bulletin_notify_info_drawer_default } from "./bulletin-notify-info-drawer-vR3KSaRS.js";
|
|
12
|
+
import { cloneDeep } from "lodash-es";
|
|
13
|
+
import { EMediaTypeId, useMedia, useNavStore } from "@kyjian/libs/hooks";
|
|
14
|
+
import { bodyPopupContainer, isEmptyText } from "@kyjian/libs/utils";
|
|
15
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, onMounted, openBlock, popScopeId, pushScopeId, reactive, ref, renderList, resolveComponent, resolveDirective, toDisplayString, toRefs, vShow, watch, withCtx, withDirectives } from "vue";
|
|
16
|
+
import { t } from "i18next";
|
|
17
|
+
import { Form, Modal, message } from "ant-design-vue";
|
|
18
|
+
import { Button, Collapse, CollapsePanel, DatePicker as DatePicker$1, Form as Form$1, FormItem, Image as Image$1, Input as Input$1, InputNumber, InputSearch, Pagination, Popconfirm, Select as Select$1, SelectOption, Space, Switch, TimePicker, Tooltip as Tooltip$1, TreeSelect as TreeSelect$1 } from "ant-design-vue/es";
|
|
19
|
+
import { ZtEditorText, ZtEmpty, ZtInfoCard, ZtTextSearch, ZtTypoText, ZtUploadMedia } from "zartd-biz/es/index";
|
|
20
|
+
import { useRoute, useRouter } from "vue-router";
|
|
21
|
+
import dayjs from "dayjs";
|
|
22
|
+
import { ZtEditorTextMenus } from "zartd-biz";
|
|
23
|
+
//#region ../egova-urbanpro-core/src/assets/images/supervise/empty-file.png
|
|
24
|
+
var empty_file_default = "data:image/png;base64,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";
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-manage/components/bulletin-notify-info-item/index.ts?vue&type=script&src=true&lang.ts
|
|
27
|
+
var index_ts_vue_type_script_src_true_lang_default$2 = defineComponent({
|
|
28
|
+
name: "CBulletinNotifyInfoItem",
|
|
29
|
+
props: {
|
|
30
|
+
noticeItem: {
|
|
31
|
+
type: Object,
|
|
32
|
+
default: () => ({})
|
|
33
|
+
},
|
|
34
|
+
searchValue: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: ""
|
|
37
|
+
},
|
|
38
|
+
selectable: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
emits: ["delete", "select"],
|
|
44
|
+
setup(props, { emit }) {
|
|
45
|
+
const select = ref(false);
|
|
46
|
+
const handleDelete = (noticeItem) => {
|
|
47
|
+
emit("delete", noticeItem);
|
|
48
|
+
};
|
|
49
|
+
const handleSelect = () => {
|
|
50
|
+
if (props.selectable) {
|
|
51
|
+
select.value = !select.value;
|
|
52
|
+
emit("select");
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const noticeInfoItem = computed(() => {
|
|
56
|
+
return getUnifyNoticeInfoItem(props.noticeItem);
|
|
57
|
+
});
|
|
58
|
+
const handleContainer = () => document.body;
|
|
59
|
+
return {
|
|
60
|
+
select,
|
|
61
|
+
handleDelete,
|
|
62
|
+
handleSelect,
|
|
63
|
+
handleContainer,
|
|
64
|
+
noticeInfoItem,
|
|
65
|
+
BulletinNoticeInfoType,
|
|
66
|
+
getBulletinNoticeInfoIcon
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-manage/components/bulletin-notify-info-item/index.vue
|
|
72
|
+
var _withScopeId$2 = (n) => (pushScopeId("data-v-409d3d09"), n = n(), popScopeId(), n);
|
|
73
|
+
var _hoisted_1$2 = { class: "v-bulletin-notify-info-item-info" };
|
|
74
|
+
var _hoisted_2$2 = { class: "v-bulletin-notify-info-item-icon" };
|
|
75
|
+
var _hoisted_3$2 = {
|
|
76
|
+
key: 0,
|
|
77
|
+
class: "zt-iconfont zt-icon-user notice-info-type-color"
|
|
78
|
+
};
|
|
79
|
+
var _hoisted_4$2 = {
|
|
80
|
+
key: 1,
|
|
81
|
+
class: "ega-core-iconfont ega-core-icon-role notice-info-type-color"
|
|
82
|
+
};
|
|
83
|
+
var _hoisted_5$2 = { key: 2 };
|
|
84
|
+
var _hoisted_6$2 = { class: "v-bulletin-notify-info-item-name" };
|
|
85
|
+
var _hoisted_7$2 = {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: "v-bulletin-notify-info-item-unit"
|
|
88
|
+
};
|
|
89
|
+
var _hoisted_9$1 = [/* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-delete" }, null, -1))];
|
|
90
|
+
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
91
|
+
const _component_zt_text_search = ZtTextSearch;
|
|
92
|
+
const _component_zt_typo_text = ZtTypoText;
|
|
93
|
+
return openBlock(), createElementBlock("div", {
|
|
94
|
+
key: _ctx.noticeInfoItem.uid,
|
|
95
|
+
class: normalizeClass(["v-bulletin-notify-info-item", _ctx.select ? "zt-checked-mark" : ""])
|
|
96
|
+
}, [createElementVNode("div", {
|
|
97
|
+
class: "v-bulletin-notify-info-item-left",
|
|
98
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleSelect && _ctx.handleSelect(...args))
|
|
99
|
+
}, [createElementVNode("div", _hoisted_1$2, [createElementVNode("div", _hoisted_2$2, [_ctx.noticeInfoItem.relationType === _ctx.BulletinNoticeInfoType.HUMAN ? (openBlock(), createElementBlock("i", _hoisted_3$2)) : _ctx.noticeInfoItem.relationType === _ctx.BulletinNoticeInfoType.ROLE ? (openBlock(), createElementBlock("i", _hoisted_4$2)) : [_ctx.BulletinNoticeInfoType.UNIT, _ctx.BulletinNoticeInfoType.GROUP].includes(_ctx.noticeInfoItem.relationType) ? (openBlock(), createElementBlock("span", _hoisted_5$2, [createElementVNode("i", { class: normalizeClass(["notice-info-type-color", _ctx.getBulletinNoticeInfoIcon(_ctx.noticeInfoItem)]) }, null, 2)])) : createCommentVNode("", true)]), createElementVNode("div", _hoisted_6$2, [createVNode(_component_zt_text_search, {
|
|
100
|
+
text: _ctx.noticeInfoItem?.name,
|
|
101
|
+
search: _ctx.searchValue
|
|
102
|
+
}, null, 8, ["text", "search"])])]), ![_ctx.BulletinNoticeInfoType.UNIT, _ctx.BulletinNoticeInfoType.GROUP].includes(_ctx.noticeInfoItem.relationType) ? (openBlock(), createElementBlock("div", _hoisted_7$2, [createVNode(_component_zt_typo_text, { class: "item-role" }, {
|
|
103
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.noticeInfoItem.unitName || "-"), 1)]),
|
|
104
|
+
_: 1
|
|
105
|
+
})])) : createCommentVNode("", true)]), createElementVNode("div", {
|
|
106
|
+
class: "user-delete",
|
|
107
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.handleDelete(_ctx.noticeItem))
|
|
108
|
+
}, _hoisted_9$1)], 2);
|
|
109
|
+
}
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-manage/components/bulletin-notify-info-select-card/index.ts?vue&type=script&src=true&lang.ts
|
|
112
|
+
var index_ts_vue_type_script_src_true_lang_default$1 = defineComponent({
|
|
113
|
+
name: "CBulletinNotifyInfoSelectCard",
|
|
114
|
+
components: {
|
|
115
|
+
CBulletinNotifyInfoDrawer: bulletin_notify_info_drawer_default,
|
|
116
|
+
CBulletinNotifyInfoItem: /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default$2, [["render", _sfc_render$2], ["__scopeId", "data-v-409d3d09"]])
|
|
117
|
+
},
|
|
118
|
+
props: {
|
|
119
|
+
required: {
|
|
120
|
+
type: Boolean,
|
|
121
|
+
default: false
|
|
122
|
+
},
|
|
123
|
+
noticeInfoList: {
|
|
124
|
+
type: Array,
|
|
125
|
+
default: () => []
|
|
126
|
+
},
|
|
127
|
+
disabledHumanList: {
|
|
128
|
+
type: Array,
|
|
129
|
+
default: () => []
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
emits: ["update:noticeInfoList"],
|
|
133
|
+
setup(props, { emit }) {
|
|
134
|
+
const title = ref(`${t(I18NextKey.NOTICE_SHORT)}范围`);
|
|
135
|
+
const state = reactive({
|
|
136
|
+
visible: false,
|
|
137
|
+
humanSelectList: [],
|
|
138
|
+
searchWords: "",
|
|
139
|
+
currentPage: 1,
|
|
140
|
+
pageSize: 10
|
|
141
|
+
});
|
|
142
|
+
const noticeInfoListData = computed({
|
|
143
|
+
get: () => props.noticeInfoList,
|
|
144
|
+
set: (val) => {
|
|
145
|
+
emit("update:noticeInfoList", val);
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
const filterUserList = computed(() => {
|
|
149
|
+
const filterList = [];
|
|
150
|
+
noticeInfoListData.value.forEach((item) => {
|
|
151
|
+
const filterName = getUnifyNoticeInfoItem(item)?.name;
|
|
152
|
+
if (filterName === state.searchWords) filterList.unshift(item);
|
|
153
|
+
else if (filterName?.includes(state.searchWords)) filterList.push(item);
|
|
154
|
+
});
|
|
155
|
+
return filterList;
|
|
156
|
+
});
|
|
157
|
+
const disabledHumanIdList = computed(() => props.disabledHumanList.map((item) => item.mainInfo.uid?.toString()));
|
|
158
|
+
const currentFilterList = computed(() => filterUserList.value.slice(state.currentPage * state.pageSize - state.pageSize, state.currentPage * state.pageSize));
|
|
159
|
+
watch(() => filterUserList.value, () => {
|
|
160
|
+
const pageNumber = (state.currentPage - 1) * state.pageSize;
|
|
161
|
+
if (filterUserList.value.length <= pageNumber && pageNumber !== 0) state.currentPage = state.currentPage - 1;
|
|
162
|
+
}, { deep: true });
|
|
163
|
+
const handleNoticeInfoDrawerSave = (noticeInfoList) => {
|
|
164
|
+
noticeInfoListData.value = noticeInfoList;
|
|
165
|
+
};
|
|
166
|
+
const handleOpen = () => {
|
|
167
|
+
state.visible = true;
|
|
168
|
+
};
|
|
169
|
+
const handleNoticeInfoDelete = (noticeInfoItem) => {
|
|
170
|
+
noticeInfoListData.value = noticeInfoListData.value.filter((item) => {
|
|
171
|
+
const unifyNoticeInfo = getUnifyNoticeInfoItem(item);
|
|
172
|
+
const unifyDelNoticeInfo = getUnifyNoticeInfoItem(noticeInfoItem);
|
|
173
|
+
return unifyNoticeInfo.uid !== unifyDelNoticeInfo.uid;
|
|
174
|
+
});
|
|
175
|
+
state.humanSelectList = state.humanSelectList.filter((item) => {
|
|
176
|
+
const unifyNoticeInfo = getUnifyNoticeInfoItem(item);
|
|
177
|
+
const unifyDelNoticeInfo = getUnifyNoticeInfoItem(noticeInfoItem);
|
|
178
|
+
return unifyNoticeInfo.uid !== unifyDelNoticeInfo.uid;
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
const handleDeleteSelect = () => {
|
|
182
|
+
noticeInfoListData.value = noticeInfoListData.value.filter((item) => {
|
|
183
|
+
return !state.humanSelectList.some((noticeInfoSelectItem) => {
|
|
184
|
+
const unifyNoticeInfo = getUnifyNoticeInfoItem(item);
|
|
185
|
+
const unifySelectNoticeInfo = getUnifyNoticeInfoItem(noticeInfoSelectItem);
|
|
186
|
+
return unifyNoticeInfo.uid === unifySelectNoticeInfo.uid;
|
|
187
|
+
});
|
|
188
|
+
});
|
|
189
|
+
state.humanSelectList = [];
|
|
190
|
+
};
|
|
191
|
+
const handleContainer = () => document.body;
|
|
192
|
+
const handleInputChange = () => {
|
|
193
|
+
state.currentPage = 1;
|
|
194
|
+
};
|
|
195
|
+
const handleNoticeInfoSelect = (noticeInfoItem) => {
|
|
196
|
+
const index = state.humanSelectList.findIndex((item) => {
|
|
197
|
+
const unifyNoticeInfo = getUnifyNoticeInfoItem(item);
|
|
198
|
+
const unifySelectNoticeInfo = getUnifyNoticeInfoItem(noticeInfoItem);
|
|
199
|
+
return unifyNoticeInfo.uid === unifySelectNoticeInfo.uid;
|
|
200
|
+
});
|
|
201
|
+
if (index === -1) state.humanSelectList.push(noticeInfoItem);
|
|
202
|
+
else state.humanSelectList = [...state.humanSelectList.splice(0, index), ...state.humanSelectList.splice(index + 1)];
|
|
203
|
+
};
|
|
204
|
+
return {
|
|
205
|
+
...toRefs(state),
|
|
206
|
+
filterUserList,
|
|
207
|
+
currentFilterList,
|
|
208
|
+
disabledHumanIdList,
|
|
209
|
+
handleInputChange,
|
|
210
|
+
handleOpen,
|
|
211
|
+
handleNoticeInfoDrawerSave,
|
|
212
|
+
handleContainer,
|
|
213
|
+
handleNoticeInfoDelete,
|
|
214
|
+
handleNoticeInfoSelect,
|
|
215
|
+
handleDeleteSelect,
|
|
216
|
+
getNoticeInfoItemUid,
|
|
217
|
+
noticeInfoListData,
|
|
218
|
+
title
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
//#endregion
|
|
223
|
+
//#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-manage/components/bulletin-notify-info-select-card/index.vue
|
|
224
|
+
var _withScopeId$1 = (n) => (pushScopeId("data-v-a3677063"), n = n(), popScopeId(), n);
|
|
225
|
+
var _hoisted_1$1 = { class: "v-bulletin-notify-info-card" };
|
|
226
|
+
var _hoisted_2$1 = { class: "base-tools" };
|
|
227
|
+
var _hoisted_3$1 = { class: "base-tools-btns" };
|
|
228
|
+
var _hoisted_4$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-plus" }, null, -1));
|
|
229
|
+
var _hoisted_5$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-delete" }, null, -1));
|
|
230
|
+
var _hoisted_6$1 = { class: "v-bulletin-notify-info-card-body" };
|
|
231
|
+
var _hoisted_7$1 = { class: "v-bulletin-notify-info-card-scrollbar" };
|
|
232
|
+
var _hoisted_8$1 = {
|
|
233
|
+
key: 0,
|
|
234
|
+
class: "v-bulletin-notify-info-card-body-footer"
|
|
235
|
+
};
|
|
236
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
237
|
+
const _component_a_input_search = InputSearch;
|
|
238
|
+
const _component_a_button = Button;
|
|
239
|
+
const _component_a_popconfirm = Popconfirm;
|
|
240
|
+
const _component_c_bulletin_notify_info_drawer = resolveComponent("c-bulletin-notify-info-drawer");
|
|
241
|
+
const _component_c_bulletin_notify_info_item = resolveComponent("c-bulletin-notify-info-item");
|
|
242
|
+
const _component_zt_empty = ZtEmpty;
|
|
243
|
+
const _component_a_pagination = Pagination;
|
|
244
|
+
const _directive_zt_overlay_scrollbars = resolveDirective("zt-overlay-scrollbars");
|
|
245
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
246
|
+
createElementVNode("div", { class: normalizeClass(["base-title", { required: _ctx.required }]) }, toDisplayString(_ctx.title) + " " + toDisplayString(_ctx.noticeInfoListData.length === 0 ? "" : `(${_ctx.noticeInfoListData.length})`), 3),
|
|
247
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
248
|
+
createVNode(_component_a_input_search, {
|
|
249
|
+
value: _ctx.searchWords,
|
|
250
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.searchWords = $event),
|
|
251
|
+
valueModifiers: { trim: true },
|
|
252
|
+
shape: "round",
|
|
253
|
+
class: "zt-input-search-round",
|
|
254
|
+
"allow-clear": "",
|
|
255
|
+
placeholder: "请输入关键字",
|
|
256
|
+
onChange: _ctx.handleInputChange
|
|
257
|
+
}, null, 8, ["value", "onChange"]),
|
|
258
|
+
createElementVNode("div", _hoisted_3$1, [createVNode(_component_a_button, {
|
|
259
|
+
shape: "round",
|
|
260
|
+
onClick: _ctx.handleOpen
|
|
261
|
+
}, {
|
|
262
|
+
icon: withCtx(() => [_hoisted_4$1]),
|
|
263
|
+
default: withCtx(() => [createTextVNode(" 添加 ")]),
|
|
264
|
+
_: 1
|
|
265
|
+
}, 8, ["onClick"]), createVNode(_component_a_popconfirm, {
|
|
266
|
+
disabled: _ctx.humanSelectList.length === 0,
|
|
267
|
+
title: "确定移除吗?",
|
|
268
|
+
"ok-text": "确定",
|
|
269
|
+
"cancel-text": "取消",
|
|
270
|
+
placement: "top",
|
|
271
|
+
"overlay-class-name": "zt-popup-delete",
|
|
272
|
+
"get-popup-container": _ctx.handleContainer,
|
|
273
|
+
onConfirm: _ctx.handleDeleteSelect
|
|
274
|
+
}, {
|
|
275
|
+
default: withCtx(() => [createVNode(_component_a_button, {
|
|
276
|
+
shape: "round",
|
|
277
|
+
disabled: _ctx.humanSelectList.length === 0
|
|
278
|
+
}, {
|
|
279
|
+
icon: withCtx(() => [_hoisted_5$1]),
|
|
280
|
+
default: withCtx(() => [createTextVNode(" 批量移除 ")]),
|
|
281
|
+
_: 1
|
|
282
|
+
}, 8, ["disabled"])]),
|
|
283
|
+
_: 1
|
|
284
|
+
}, 8, [
|
|
285
|
+
"disabled",
|
|
286
|
+
"get-popup-container",
|
|
287
|
+
"onConfirm"
|
|
288
|
+
])]),
|
|
289
|
+
createVNode(_component_c_bulletin_notify_info_drawer, {
|
|
290
|
+
visible: _ctx.visible,
|
|
291
|
+
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.visible = $event),
|
|
292
|
+
"notice-info-list": _ctx.noticeInfoListData,
|
|
293
|
+
"disable-self": false,
|
|
294
|
+
"disabled-human-id-list": _ctx.disabledHumanIdList,
|
|
295
|
+
title: _ctx.title,
|
|
296
|
+
onSave: _ctx.handleNoticeInfoDrawerSave
|
|
297
|
+
}, null, 8, [
|
|
298
|
+
"visible",
|
|
299
|
+
"notice-info-list",
|
|
300
|
+
"disabled-human-id-list",
|
|
301
|
+
"title",
|
|
302
|
+
"onSave"
|
|
303
|
+
])
|
|
304
|
+
]),
|
|
305
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
306
|
+
createElementVNode("div", _hoisted_7$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.currentFilterList, (item) => {
|
|
307
|
+
return openBlock(), createBlock(_component_c_bulletin_notify_info_item, {
|
|
308
|
+
key: _ctx.getNoticeInfoItemUid(item),
|
|
309
|
+
"search-value": _ctx.searchWords,
|
|
310
|
+
selectable: "",
|
|
311
|
+
class: "v-bulletin-notify-info-card-body-item",
|
|
312
|
+
"notice-item": item,
|
|
313
|
+
onDelete: ($event) => _ctx.handleNoticeInfoDelete(item),
|
|
314
|
+
onSelect: ($event) => _ctx.handleNoticeInfoSelect(item)
|
|
315
|
+
}, null, 8, [
|
|
316
|
+
"search-value",
|
|
317
|
+
"notice-item",
|
|
318
|
+
"onDelete",
|
|
319
|
+
"onSelect"
|
|
320
|
+
]);
|
|
321
|
+
}), 128))]),
|
|
322
|
+
_ctx.noticeInfoListData.length === 0 ? (openBlock(), createBlock(_component_zt_empty, {
|
|
323
|
+
key: 0,
|
|
324
|
+
center: ""
|
|
325
|
+
}, {
|
|
326
|
+
description: withCtx(() => [createElementVNode("span", null, [createTextVNode("暂未选择" + toDisplayString(_ctx.title) + ",请 ", 1), createElementVNode("a", { onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleOpen && _ctx.handleOpen(...args)) }, "添加")])]),
|
|
327
|
+
_: 1
|
|
328
|
+
})) : createCommentVNode("", true),
|
|
329
|
+
_ctx.noticeInfoListData.length !== 0 && _ctx.filterUserList.length === 0 ? (openBlock(), createBlock(_component_zt_empty, {
|
|
330
|
+
key: 1,
|
|
331
|
+
description: "暂无数据",
|
|
332
|
+
center: ""
|
|
333
|
+
})) : createCommentVNode("", true)
|
|
334
|
+
])), [[_directive_zt_overlay_scrollbars]]),
|
|
335
|
+
_ctx.filterUserList.length > _ctx.pageSize ? (openBlock(), createElementBlock("footer", _hoisted_8$1, [createVNode(_component_a_pagination, {
|
|
336
|
+
current: _ctx.currentPage,
|
|
337
|
+
"onUpdate:current": _cache[3] || (_cache[3] = ($event) => _ctx.currentPage = $event),
|
|
338
|
+
"default-page-size": _ctx.pageSize,
|
|
339
|
+
"show-less-items": true,
|
|
340
|
+
"show-size-changer": false,
|
|
341
|
+
total: _ctx.filterUserList.length,
|
|
342
|
+
size: "small"
|
|
343
|
+
}, null, 8, [
|
|
344
|
+
"current",
|
|
345
|
+
"default-page-size",
|
|
346
|
+
"total"
|
|
347
|
+
])])) : createCommentVNode("", true)
|
|
348
|
+
]);
|
|
349
|
+
}
|
|
350
|
+
//#endregion
|
|
351
|
+
//#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-manage/components/bulletin-add/index.ts?vue&type=script&src=true&lang.ts
|
|
352
|
+
var index_ts_vue_type_script_src_true_lang_default = defineComponent({
|
|
353
|
+
name: "VBuilderBusinessBulletinAdd",
|
|
354
|
+
components: {
|
|
355
|
+
CBulletinNotifyInfoSelectCard: /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default$1, [["render", _sfc_render$1], ["__scopeId", "data-v-a3677063"]]),
|
|
356
|
+
CBulletinDetailFile: bulletin_detail_file_default
|
|
357
|
+
},
|
|
358
|
+
emits: ["select"],
|
|
359
|
+
setup() {
|
|
360
|
+
const router = useRouter();
|
|
361
|
+
const route = useRoute();
|
|
362
|
+
const navStore = useNavStore();
|
|
363
|
+
const service = new BulletinService(http);
|
|
364
|
+
const msgService = new MsgService(http);
|
|
365
|
+
const editorRef = ref();
|
|
366
|
+
const pageTitle = ref(`新增${t(I18NextKey.NOTICE_SHORT)}`);
|
|
367
|
+
useNavTitle({
|
|
368
|
+
title: pageTitle,
|
|
369
|
+
replace: true,
|
|
370
|
+
updateDocumentTitle: true
|
|
371
|
+
});
|
|
372
|
+
const fileUploadMaxSizeMb = computed(() => {
|
|
373
|
+
return window.commonSetting.FILE_UPLOAD_MAX_SIZE_MB || 10;
|
|
374
|
+
});
|
|
375
|
+
const BULLETIN_MEDIA_TIP_TEXT = computed(() => {
|
|
376
|
+
return `单个文件最大支持${fileUploadMaxSizeMb.value}M,支持格式:png、jpg、svg、pdf、xls、ppt、pptx、doc、docx、mp4`;
|
|
377
|
+
});
|
|
378
|
+
const activeKey = ref([
|
|
379
|
+
1,
|
|
380
|
+
2,
|
|
381
|
+
3
|
|
382
|
+
]);
|
|
383
|
+
const editorId = ref("bulletin-editor");
|
|
384
|
+
const bulletinAddRef = ref();
|
|
385
|
+
const publishLoading = ref(false);
|
|
386
|
+
const saveType = ref(BulletinStatus.DRAFT);
|
|
387
|
+
const { batchUploadFiles } = useMedia({ typeId: EMediaTypeId.BULLETIN });
|
|
388
|
+
/** 是否为定时发布 */
|
|
389
|
+
const isTimedSend = computed(() => {
|
|
390
|
+
return baseInfo.value.timedSendFlag && showTimedSend.value;
|
|
391
|
+
});
|
|
392
|
+
const publishText = computed(() => {
|
|
393
|
+
return isTimedSend.value ? "定时发布" : "发布";
|
|
394
|
+
});
|
|
395
|
+
const { bulletinTypeTree, bulletinLevelList, bulletinTypeAllNodes } = useBulletinFormOptions();
|
|
396
|
+
/** 通告范围 */
|
|
397
|
+
const noticeInfoList = ref([]);
|
|
398
|
+
const baseInfo = ref({
|
|
399
|
+
id: void 0,
|
|
400
|
+
title: "",
|
|
401
|
+
typeId: "",
|
|
402
|
+
subTypeId: void 0,
|
|
403
|
+
subTypeName: "",
|
|
404
|
+
levelId: void 0,
|
|
405
|
+
content: "",
|
|
406
|
+
noticeInfo: [],
|
|
407
|
+
files: [],
|
|
408
|
+
noticeTimeLimitFlag: Enabled.NOT_ENABLE,
|
|
409
|
+
noticeTimeLimit: 1,
|
|
410
|
+
noticeTimeLimitType: BulletinNoticeTime.DAY,
|
|
411
|
+
timedSendFlag: Enabled.NOT_ENABLE,
|
|
412
|
+
sendTime: dayjs().add(1, "hour").set("minute", 0).format("YYYY-MM-DD HH:mm"),
|
|
413
|
+
smsSendFlag: Enabled.NOT_ENABLE,
|
|
414
|
+
receiveTimeLimitFlag: Enabled.NOT_ENABLE,
|
|
415
|
+
receiveTimeLimit: 0,
|
|
416
|
+
receiveTimeLimitType: BulletinNoticeTime.DAY,
|
|
417
|
+
status: BulletinStatus.DRAFT,
|
|
418
|
+
notificationMethod: [],
|
|
419
|
+
cycleRemindFlag: Enabled.NOT_ENABLE,
|
|
420
|
+
cycleType: BulletinNoticeCycleTime.DAY,
|
|
421
|
+
cycleIndex: 1,
|
|
422
|
+
cycleInterval: 1,
|
|
423
|
+
cycleTime: "08:00:00",
|
|
424
|
+
needReceiveFlag: Enabled.NOT_ENABLE,
|
|
425
|
+
noticeForceRemindFlag: Enabled.NOT_ENABLE,
|
|
426
|
+
noticeForceRemindType: BulletinNoticeTime.HOUR,
|
|
427
|
+
noticeForceRemindLimit: 1
|
|
428
|
+
});
|
|
429
|
+
const rules = reactive({
|
|
430
|
+
noticeTimeLimit: [{
|
|
431
|
+
required: true,
|
|
432
|
+
message: `请输入${t(I18NextKey.NOTICE_SHORT)}时限`
|
|
433
|
+
}],
|
|
434
|
+
title: [{
|
|
435
|
+
required: true,
|
|
436
|
+
message: `请输入${t(I18NextKey.NOTICE_SHORT)}标题`
|
|
437
|
+
}, {
|
|
438
|
+
max: 100,
|
|
439
|
+
message: `${t(I18NextKey.NOTICE_SHORT)}标题最多100个字符`
|
|
440
|
+
}],
|
|
441
|
+
subTypeId: [{
|
|
442
|
+
required: true,
|
|
443
|
+
message: `请选择${t(I18NextKey.NOTICE_SHORT)}类型`
|
|
444
|
+
}],
|
|
445
|
+
levelId: [{
|
|
446
|
+
required: true,
|
|
447
|
+
message: `请选择${t(I18NextKey.NOTICE_SHORT)}等级`
|
|
448
|
+
}],
|
|
449
|
+
notificationMethod: [{
|
|
450
|
+
required: true,
|
|
451
|
+
type: "array",
|
|
452
|
+
validator: validateNotificationMethod
|
|
453
|
+
}],
|
|
454
|
+
sendTime: [{ validator: () => {
|
|
455
|
+
if (baseInfo.value.timedSendFlag) {
|
|
456
|
+
if (isEmptyText(baseInfo.value.sendTime)) return Promise.reject(/* @__PURE__ */ new Error("请选择定时发布时间"));
|
|
457
|
+
else if (dayjs(baseInfo.value.sendTime).isBefore(dayjs())) return Promise.reject(/* @__PURE__ */ new Error("请选择当前之后的时间"));
|
|
458
|
+
}
|
|
459
|
+
return Promise.resolve();
|
|
460
|
+
} }],
|
|
461
|
+
cycleRemindCycle: [{ validator: (_, val) => {
|
|
462
|
+
if (baseInfo.value.cycleRemindFlag && isEmptyText(val)) return Promise.reject(/* @__PURE__ */ new Error("请输入提醒时间"));
|
|
463
|
+
return Promise.resolve();
|
|
464
|
+
} }],
|
|
465
|
+
noticeForceRemindLimit: [{ validator: (_, val) => {
|
|
466
|
+
if (baseInfo.value.noticeForceRemindFlag && isEmptyText(val)) return Promise.reject(/* @__PURE__ */ new Error("请输入提醒时间"));
|
|
467
|
+
return Promise.resolve();
|
|
468
|
+
} }]
|
|
469
|
+
});
|
|
470
|
+
const { resetFields, validate, validateInfos } = Form.useForm(baseInfo, rules);
|
|
471
|
+
const handleBeforeUpload = (file) => {
|
|
472
|
+
const fileUnit = file.name.split(".").pop();
|
|
473
|
+
const isCheck = fileUnit && ".png,.jpg,.svg,.jpeg,.gif,.tif,.pdf,.xls,.xlsx,.ppt,.pptx,.doc,.docx,.mp4".indexOf(fileUnit?.toLocaleLowerCase()) > -1;
|
|
474
|
+
if (!isCheck) message.error("不支持的文件类型!");
|
|
475
|
+
return isCheck;
|
|
476
|
+
};
|
|
477
|
+
async function validBulletinForm() {
|
|
478
|
+
return new Promise((resolve) => {
|
|
479
|
+
validate().then(() => {
|
|
480
|
+
if (attachmentRequired.value && baseInfo.value?.files?.length === 0) resolve("请上传附件");
|
|
481
|
+
else if (isEmptyText(baseInfo.value.content)) resolve(`请输入${t(I18NextKey.NOTICE_SHORT)}内容`);
|
|
482
|
+
else if (noticeInfoList.value.length === 0) resolve(`请选择${t(I18NextKey.NOTICE_SHORT)}范围`);
|
|
483
|
+
resolve("");
|
|
484
|
+
});
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
function reset() {
|
|
488
|
+
noticeInfoList.value = [];
|
|
489
|
+
}
|
|
490
|
+
const FORCE_TIP_TEXT = computed(() => {
|
|
491
|
+
let text = "未读";
|
|
492
|
+
if (baseInfo.value.needReceiveFlag === Enabled.ENABLE) text = "未接收";
|
|
493
|
+
return `到期${text}则强制提醒`;
|
|
494
|
+
});
|
|
495
|
+
function unifyBus() {
|
|
496
|
+
bus.emit(BusEventKey.BULLETIN__VIEW__NAV_DOT__REFRESH, true);
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* 对于一些会由通告等级、类型控制的是否启用的功能,在切换为不启用后需要恢复原始数据
|
|
500
|
+
* @param params
|
|
501
|
+
*/
|
|
502
|
+
function adjustAllFlagParams(params) {
|
|
503
|
+
if (!showTimedSend.value) params.timedSendFlag = Enabled.NOT_ENABLE;
|
|
504
|
+
if (!showAttachment.value) baseInfo.value.files = [];
|
|
505
|
+
}
|
|
506
|
+
function genSaveParams() {
|
|
507
|
+
const params = cloneDeep(baseInfo.value);
|
|
508
|
+
const unifyNoticeInfoList = noticeInfoList.value.map((item) => {
|
|
509
|
+
const unifyData = getUnifyNoticeInfoItem(item);
|
|
510
|
+
return {
|
|
511
|
+
relationId: unifyData.relationId ?? "",
|
|
512
|
+
relationName: unifyData.relationName ?? "",
|
|
513
|
+
relationType: unifyData.relationType,
|
|
514
|
+
unitId: unifyData.unitId ?? "",
|
|
515
|
+
unitName: unifyData.unitName ?? ""
|
|
516
|
+
};
|
|
517
|
+
});
|
|
518
|
+
adjustAllFlagParams(params);
|
|
519
|
+
const editorContentText = editorRef.value?.editor?.getText() ?? "";
|
|
520
|
+
params.contentDigest = editorContentText.slice(0, MAX_DIGEST_LIMIT);
|
|
521
|
+
const noticeInfoContentParam = {
|
|
522
|
+
content: params.content,
|
|
523
|
+
contentText: editorContentText
|
|
524
|
+
};
|
|
525
|
+
if (Array.isArray(params.notificationMethod)) {
|
|
526
|
+
params.notificationMethod = params.notificationMethod.filter((id) => {
|
|
527
|
+
return enabledNotificationMethodList.value.find((item) => item.id === id);
|
|
528
|
+
});
|
|
529
|
+
params.notificationMethod = params.notificationMethod?.toString();
|
|
530
|
+
}
|
|
531
|
+
const noticeCycleParam = {
|
|
532
|
+
cycleType: params.cycleType,
|
|
533
|
+
cycleInterval: params.cycleInterval,
|
|
534
|
+
cycleTime: params.cycleTime,
|
|
535
|
+
cycleIndex: params.cycleIndex
|
|
536
|
+
};
|
|
537
|
+
[
|
|
538
|
+
"updateTime",
|
|
539
|
+
"noticeInfo",
|
|
540
|
+
"files",
|
|
541
|
+
"content",
|
|
542
|
+
...Object.keys(noticeCycleParam)
|
|
543
|
+
].forEach((key) => Reflect.deleteProperty(params, key));
|
|
544
|
+
return {
|
|
545
|
+
noticeInfoParam: params,
|
|
546
|
+
noticeInfoContentParam,
|
|
547
|
+
noticeInfoRelationParamList: unifyNoticeInfoList,
|
|
548
|
+
noticeCycleParam
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
async function handleSave(type) {
|
|
552
|
+
const tip = await validBulletinForm();
|
|
553
|
+
if (tip) {
|
|
554
|
+
message.warn(tip);
|
|
555
|
+
return;
|
|
556
|
+
}
|
|
557
|
+
saveType.value = type;
|
|
558
|
+
publishLoading.value = true;
|
|
559
|
+
try {
|
|
560
|
+
const params = genSaveParams();
|
|
561
|
+
const isPublish = type === BulletinStatus.PUBLISHED;
|
|
562
|
+
if (type === BulletinStatus.DRAFT) params.noticeInfoParam.status = type;
|
|
563
|
+
let res;
|
|
564
|
+
if (type === BulletinStatus.TO_BE_PUBLISH) res = await service.timedSendBulletin(params);
|
|
565
|
+
else res = await service.addBulletin(params, !isPublish);
|
|
566
|
+
if (!res?.hasError) {
|
|
567
|
+
if (baseInfo.value?.files?.length) try {
|
|
568
|
+
await batchUploadFiles(baseInfo.value.files, res.result?.noticeId?.toString() ?? "", "通知公告附件");
|
|
569
|
+
} catch (error) {
|
|
570
|
+
message.error("文件上传失败");
|
|
571
|
+
}
|
|
572
|
+
if (isPublish && res.result?.noticeId) {
|
|
573
|
+
if (!(await service.publishBulletin({ noticeId: res.result?.noticeId?.toString() ?? "" })).hasError) unifyBus();
|
|
574
|
+
}
|
|
575
|
+
resetFields();
|
|
576
|
+
reset();
|
|
577
|
+
navStore.remove(route, router);
|
|
578
|
+
bus.emit(BusEventKey.BULLETIN__VIEW__MENU__SELECT, type);
|
|
579
|
+
router.push({ name: "workbench:bulletin-manage" });
|
|
580
|
+
}
|
|
581
|
+
} catch (error) {
|
|
582
|
+
console.log("error: ", error);
|
|
583
|
+
} finally {
|
|
584
|
+
publishLoading.value = false;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
const bulletinSelectLevel = computed(() => {
|
|
588
|
+
return bulletinLevelList.value.find((item) => {
|
|
589
|
+
return item.id === baseInfo.value.levelId;
|
|
590
|
+
});
|
|
591
|
+
});
|
|
592
|
+
function handleBulletinLevelSelect(levelId) {
|
|
593
|
+
const levelItem = bulletinLevelList.value.find((item) => {
|
|
594
|
+
return item.id === levelId;
|
|
595
|
+
});
|
|
596
|
+
baseInfo.value.notificationMethod = levelItem?.notificationMethod.toString().split(",") ?? [];
|
|
597
|
+
baseInfo.value.needReceiveFlag = levelItem?.needReceiveFlag;
|
|
598
|
+
}
|
|
599
|
+
function initBulletinSelectLevel() {
|
|
600
|
+
const firstLevel = bulletinLevelList.value[0];
|
|
601
|
+
if (firstLevel?.id) {
|
|
602
|
+
baseInfo.value.levelId = firstLevel.id;
|
|
603
|
+
handleBulletinLevelSelect(firstLevel.id);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
const notificationMethodList = ref([]);
|
|
607
|
+
async function initNotificationMethodList() {
|
|
608
|
+
try {
|
|
609
|
+
const res = await msgService.getMsgSendTypeList();
|
|
610
|
+
if (!res?.hasError) notificationMethodList.value = filterNotificationMethod(res.result?.resultList || []).map((item) => {
|
|
611
|
+
return {
|
|
612
|
+
...item,
|
|
613
|
+
id: item.id.toString()
|
|
614
|
+
};
|
|
615
|
+
});
|
|
616
|
+
} catch (error) {
|
|
617
|
+
console.error("error: ", error);
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
const enabledNotificationMethodList = computed(() => {
|
|
621
|
+
const enableNotificationArr = (bulletinSelectLevel.value?.notificationMethod)?.split(",") || [];
|
|
622
|
+
if (!enableNotificationArr.length) return notificationMethodList.value;
|
|
623
|
+
else return notificationMethodList.value.filter((item) => {
|
|
624
|
+
return enableNotificationArr.includes(item.id.toString());
|
|
625
|
+
});
|
|
626
|
+
});
|
|
627
|
+
const handleNotificationMethod = (notificationMethod) => {
|
|
628
|
+
if (Array.isArray(baseInfo.value.notificationMethod)) {
|
|
629
|
+
const index = baseInfo.value.notificationMethod?.findIndex((type) => type === notificationMethod.id);
|
|
630
|
+
if (index === -1) baseInfo.value.notificationMethod?.push(notificationMethod.id);
|
|
631
|
+
else {
|
|
632
|
+
const notificationMethodSet = new Set(baseInfo.value.notificationMethod);
|
|
633
|
+
notificationMethodSet.delete(baseInfo.value.notificationMethod[index]);
|
|
634
|
+
baseInfo.value.notificationMethod = [...notificationMethodSet];
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
};
|
|
638
|
+
/** 通告大类 */
|
|
639
|
+
const bulletinMainType = ref();
|
|
640
|
+
const bulletinSubType = ref();
|
|
641
|
+
/** 展示定时发布 */
|
|
642
|
+
const showTimedSend = computed(() => {
|
|
643
|
+
if (bulletinSubType.value) return bulletinSubType.value.timedSendFlag !== Enabled.NOT_ENABLE;
|
|
644
|
+
return Enabled.ENABLE;
|
|
645
|
+
});
|
|
646
|
+
const showAttachment = computed(() => {
|
|
647
|
+
if (bulletinSubType.value) return bulletinSubType.value.attachFunc !== BulletinTypeMediaType.UN_USE;
|
|
648
|
+
return true;
|
|
649
|
+
});
|
|
650
|
+
const attachmentRequired = computed(() => {
|
|
651
|
+
if (bulletinSubType.value) return bulletinSubType.value.attachFunc === BulletinTypeMediaType.USE_AND_REQUIRE;
|
|
652
|
+
return false;
|
|
653
|
+
});
|
|
654
|
+
watch(() => baseInfo.value.subTypeId, (val) => {
|
|
655
|
+
if (val) {
|
|
656
|
+
const subType = bulletinTypeAllNodes.get(val);
|
|
657
|
+
baseInfo.value.subTypeName = subType?.data.name;
|
|
658
|
+
bulletinSubType.value = subType?.data;
|
|
659
|
+
if (!isEmptyText(subType?.data.seniorId)) {
|
|
660
|
+
const seniorType = bulletinTypeAllNodes.get(subType?.data?.seniorId);
|
|
661
|
+
baseInfo.value.typeId = seniorType?.data.id ?? "";
|
|
662
|
+
bulletinMainType.value = seniorType?.data;
|
|
663
|
+
}
|
|
664
|
+
} else {
|
|
665
|
+
baseInfo.value.typeId = "";
|
|
666
|
+
baseInfo.value.subTypeName = "";
|
|
667
|
+
bulletinMainType.value = void 0;
|
|
668
|
+
bulletinSubType.value = void 0;
|
|
669
|
+
}
|
|
670
|
+
}, {
|
|
671
|
+
deep: true,
|
|
672
|
+
immediate: true
|
|
673
|
+
});
|
|
674
|
+
const handleCycleRemindType = () => {
|
|
675
|
+
baseInfo.value.cycleIndex = weekOptionList[0].value;
|
|
676
|
+
};
|
|
677
|
+
async function navBeforeClose() {
|
|
678
|
+
return new Promise((resolve) => {
|
|
679
|
+
Modal.confirm({
|
|
680
|
+
title: "提示",
|
|
681
|
+
content: "标签关闭后,已填写将不会保存,是否确认关闭?",
|
|
682
|
+
onOk() {
|
|
683
|
+
resolve(true);
|
|
684
|
+
},
|
|
685
|
+
onCancel() {
|
|
686
|
+
resolve(false);
|
|
687
|
+
}
|
|
688
|
+
});
|
|
689
|
+
});
|
|
690
|
+
}
|
|
691
|
+
/**
|
|
692
|
+
* 编辑时,初始化相关数据
|
|
693
|
+
*/
|
|
694
|
+
async function initEditData() {
|
|
695
|
+
try {
|
|
696
|
+
const noticeId = convertRouteQuery(route.query).id;
|
|
697
|
+
const res = await service.getBulletinDetail({ noticeId });
|
|
698
|
+
if (!res?.hasError) {
|
|
699
|
+
noticeInfoList.value = bulletinNoticeInfoTransToInstance(res.result?.noticeInfoRelationList ?? []);
|
|
700
|
+
const noticeCycleData = res.result?.noticeCycle ?? {};
|
|
701
|
+
const baseData = res.result?.noticeInfo;
|
|
702
|
+
if (baseData) if (baseData.notificationMethod) baseData.notificationMethod = baseData.notificationMethod.toString().split(",") || [];
|
|
703
|
+
else baseData.notificationMethod = [];
|
|
704
|
+
[
|
|
705
|
+
"id",
|
|
706
|
+
"noticeInfo",
|
|
707
|
+
"lastExecuteTime",
|
|
708
|
+
"cycleName"
|
|
709
|
+
].forEach((key) => Reflect.deleteProperty(noticeCycleData, key));
|
|
710
|
+
baseInfo.value = {
|
|
711
|
+
...baseData,
|
|
712
|
+
content: res.result?.noticeInfoContent?.content || "",
|
|
713
|
+
files: res.result?.mediaList ?? [],
|
|
714
|
+
...noticeCycleData
|
|
715
|
+
};
|
|
716
|
+
}
|
|
717
|
+
} catch (error) {
|
|
718
|
+
console.log("error: ", error);
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
function init() {
|
|
722
|
+
navStore.registerBeforeClose(route, navBeforeClose);
|
|
723
|
+
if (convertRouteQuery(route.query).id) {
|
|
724
|
+
pageTitle.value = `编辑${t(I18NextKey.NOTICE_SHORT)}`;
|
|
725
|
+
initEditData();
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
watch(() => [bulletinLevelList.value, notificationMethodList.value], () => {
|
|
729
|
+
if (!bulletinLevelList.value.length || !notificationMethodList.value.length || convertRouteQuery(route.query).id) return;
|
|
730
|
+
initBulletinSelectLevel();
|
|
731
|
+
});
|
|
732
|
+
onMounted(() => {
|
|
733
|
+
initNotificationMethodList();
|
|
734
|
+
init();
|
|
735
|
+
});
|
|
736
|
+
return {
|
|
737
|
+
route,
|
|
738
|
+
service,
|
|
739
|
+
disabledDate,
|
|
740
|
+
disabledTime,
|
|
741
|
+
BulletinStatus,
|
|
742
|
+
handleSave,
|
|
743
|
+
baseInfo,
|
|
744
|
+
validateInfos,
|
|
745
|
+
activeKey,
|
|
746
|
+
EmptyFileImage: empty_file_default,
|
|
747
|
+
BULLETIN_MEDIA_TYPE_LIMIT,
|
|
748
|
+
handleBeforeUpload,
|
|
749
|
+
resetFields,
|
|
750
|
+
validate,
|
|
751
|
+
ZtEditorTextMenus,
|
|
752
|
+
editorId,
|
|
753
|
+
bulletinTypeTree,
|
|
754
|
+
bulletinLevelList,
|
|
755
|
+
filterOption,
|
|
756
|
+
bulletinNoticeOptions,
|
|
757
|
+
bulletinTypeAllNodes,
|
|
758
|
+
bulletinAddRef,
|
|
759
|
+
bodyPopupContainer,
|
|
760
|
+
BULLETIN_MEDIA_TIP_TEXT,
|
|
761
|
+
noticeInfoList,
|
|
762
|
+
attachmentRequired,
|
|
763
|
+
showAttachment,
|
|
764
|
+
editorRef,
|
|
765
|
+
Enabled,
|
|
766
|
+
pageTitle,
|
|
767
|
+
handleNotificationMethod,
|
|
768
|
+
notificationMethodList,
|
|
769
|
+
enabledNotificationMethodList,
|
|
770
|
+
handleBulletinLevelSelect,
|
|
771
|
+
cycleRemindTimeTypeOption,
|
|
772
|
+
handleCycleRemindType,
|
|
773
|
+
BulletinNoticeTime,
|
|
774
|
+
monthOptionList,
|
|
775
|
+
weekOptionList,
|
|
776
|
+
showTimedSend,
|
|
777
|
+
publishLoading,
|
|
778
|
+
saveType,
|
|
779
|
+
publishText,
|
|
780
|
+
isTimedSend,
|
|
781
|
+
BulletinNoticeCycleTime,
|
|
782
|
+
FORCE_TIP_TEXT
|
|
783
|
+
};
|
|
784
|
+
}
|
|
785
|
+
});
|
|
786
|
+
//#endregion
|
|
787
|
+
//#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-manage/components/bulletin-add/index.vue
|
|
788
|
+
var _withScopeId = (n) => (pushScopeId("data-v-9c96036b"), n = n(), popScopeId(), n);
|
|
789
|
+
var _hoisted_1 = {
|
|
790
|
+
ref: "bulletinAddRef",
|
|
791
|
+
class: "v-builder-business-bulletin-add zt-panel-background"
|
|
792
|
+
};
|
|
793
|
+
var _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-save" }, null, -1));
|
|
794
|
+
var _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-send" }, null, -1));
|
|
795
|
+
var _hoisted_4 = { class: "v-builder-business-bulletin-add-form-basic" };
|
|
796
|
+
var _hoisted_5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-arrow-down" }, null, -1));
|
|
797
|
+
var _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-arrow-down" }, null, -1));
|
|
798
|
+
var _hoisted_7 = { class: "bulletin-notice-time-limit" };
|
|
799
|
+
var _hoisted_8 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-arrow-down" }, null, -1));
|
|
800
|
+
var _hoisted_9 = { class: "v-builder-business-bulletin-add-form-basic-send-type" };
|
|
801
|
+
var _hoisted_10 = ["onClick"];
|
|
802
|
+
var _hoisted_11 = { class: "bulletin-notice-time-limit" };
|
|
803
|
+
var _hoisted_12 = { class: "bulletin-notice-time-limit" };
|
|
804
|
+
var _hoisted_13 = { class: "bulletin-notice-time-limit" };
|
|
805
|
+
var _hoisted_14 = { class: "v-builder-business-bulletin-add-form-basic-cycle" };
|
|
806
|
+
var _hoisted_15 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-arrow-down" }, null, -1));
|
|
807
|
+
var _hoisted_16 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-arrow-down" }, null, -1));
|
|
808
|
+
var _hoisted_17 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-arrow-down" }, null, -1));
|
|
809
|
+
var _hoisted_18 = { class: "bulletin-notice-time-limit" };
|
|
810
|
+
var _hoisted_19 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-arrow-down" }, null, -1));
|
|
811
|
+
var _hoisted_20 = { class: "zt-iconfont zt-icon-info v-builder-business-bulletin-add-form-basic-force-remind-force-icon" };
|
|
812
|
+
var _hoisted_21 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", null, "附件", -1));
|
|
813
|
+
var _hoisted_22 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-info" }, null, -1));
|
|
814
|
+
var _hoisted_23 = { class: "v-builder-business-bulletin-add-form-basic-attachment" };
|
|
815
|
+
var _hoisted_24 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-upload" }, null, -1));
|
|
816
|
+
var _hoisted_25 = ["onClick"];
|
|
817
|
+
var _hoisted_26 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, "暂无附件材料,请上传", -1));
|
|
818
|
+
var _hoisted_27 = { class: "v-builder-business-bulletin-add-form-editor" };
|
|
819
|
+
var _hoisted_28 = { class: "v-builder-business-bulletin-add-form-header v-builder-business-bulletin-add-form-required" };
|
|
820
|
+
var _hoisted_29 = { class: "v-builder-business-bulletin-add-form-user" };
|
|
821
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
822
|
+
const _component_a_button = Button;
|
|
823
|
+
const _component_a_input = Input$1;
|
|
824
|
+
const _component_a_form_item = FormItem;
|
|
825
|
+
const _component_a_space = Space;
|
|
826
|
+
const _component_a_tree_select = TreeSelect$1;
|
|
827
|
+
const _component_a_select_option = SelectOption;
|
|
828
|
+
const _component_a_select = Select$1;
|
|
829
|
+
const _component_a_switch = Switch;
|
|
830
|
+
const _component_a_input_number = InputNumber;
|
|
831
|
+
const _component_a_collapse_panel = CollapsePanel;
|
|
832
|
+
const _component_a_date_picker = DatePicker$1;
|
|
833
|
+
const _component_a_time_picker = TimePicker;
|
|
834
|
+
const _component_a_tooltip = Tooltip$1;
|
|
835
|
+
const _component_c_bulletin_detail_file = resolveComponent("c-bulletin-detail-file");
|
|
836
|
+
const _component_zt_upload_media = ZtUploadMedia;
|
|
837
|
+
const _component_a_image = Image$1;
|
|
838
|
+
const _component_zt_empty = ZtEmpty;
|
|
839
|
+
const _component_a_collapse = Collapse;
|
|
840
|
+
const _component_zt_editor_text = ZtEditorText;
|
|
841
|
+
const _component_c_bulletin_notify_info_select_card = resolveComponent("c-bulletin-notify-info-select-card");
|
|
842
|
+
const _component_a_form = Form$1;
|
|
843
|
+
const _component_zt_info_card = ZtInfoCard;
|
|
844
|
+
const _directive_zt_overlay_scrollbars = resolveDirective("zt-overlay-scrollbars");
|
|
845
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_zt_info_card, { class: "bulletin-card" }, {
|
|
846
|
+
title: withCtx(() => [createTextVNode(toDisplayString(_ctx.pageTitle), 1)]),
|
|
847
|
+
extra: withCtx(() => [createVNode(_component_a_button, {
|
|
848
|
+
loading: _ctx.publishLoading && _ctx.saveType === _ctx.BulletinStatus.DRAFT,
|
|
849
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.handleSave(_ctx.BulletinStatus.DRAFT))
|
|
850
|
+
}, {
|
|
851
|
+
icon: withCtx(() => [_hoisted_2]),
|
|
852
|
+
default: withCtx(() => [createTextVNode(" 存为草稿 ")]),
|
|
853
|
+
_: 1
|
|
854
|
+
}, 8, ["loading"]), createVNode(_component_a_button, {
|
|
855
|
+
type: "primary",
|
|
856
|
+
loading: _ctx.publishLoading && _ctx.saveType === _ctx.BulletinStatus.PUBLISHED,
|
|
857
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.handleSave(_ctx.isTimedSend ? _ctx.BulletinStatus.TO_BE_PUBLISH : _ctx.BulletinStatus.PUBLISHED))
|
|
858
|
+
}, {
|
|
859
|
+
icon: withCtx(() => [_hoisted_3]),
|
|
860
|
+
default: withCtx(() => [createTextVNode(" " + toDisplayString(_ctx.publishText), 1)]),
|
|
861
|
+
_: 1
|
|
862
|
+
}, 8, ["loading"])]),
|
|
863
|
+
default: withCtx(() => [createVNode(_component_a_form, {
|
|
864
|
+
model: _ctx.baseInfo,
|
|
865
|
+
"label-col": { span: 5 },
|
|
866
|
+
"wrapper-col": { span: 19 },
|
|
867
|
+
class: "v-builder-business-bulletin-add-form"
|
|
868
|
+
}, {
|
|
869
|
+
default: withCtx(() => [
|
|
870
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_4, [createVNode(_component_a_collapse, {
|
|
871
|
+
activeKey: _ctx.activeKey,
|
|
872
|
+
"onUpdate:activeKey": _cache[21] || (_cache[21] = ($event) => _ctx.activeKey = $event),
|
|
873
|
+
"expand-icon-position": "right"
|
|
874
|
+
}, {
|
|
875
|
+
expandIcon: withCtx(({ isActive }) => [createElementVNode("i", { class: normalizeClass([
|
|
876
|
+
"custom-collapse-expand-icon",
|
|
877
|
+
"zt-iconfont",
|
|
878
|
+
isActive ? "zt-icon-arrow-down" : "zt-icon-arrow-right"
|
|
879
|
+
]) }, null, 2)]),
|
|
880
|
+
default: withCtx(() => [
|
|
881
|
+
createVNode(_component_a_collapse_panel, {
|
|
882
|
+
key: "1",
|
|
883
|
+
header: "基本信息",
|
|
884
|
+
bordered: false
|
|
885
|
+
}, {
|
|
886
|
+
default: withCtx(() => [
|
|
887
|
+
createVNode(_component_a_form_item, mergeProps({ label: `${_ctx.$t(_ctx.$I18NextKey.NOTICE_SHORT)}标题` }, _ctx.validateInfos.title), {
|
|
888
|
+
default: withCtx(() => [createVNode(_component_a_input, {
|
|
889
|
+
value: _ctx.baseInfo.title,
|
|
890
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => _ctx.baseInfo.title = $event),
|
|
891
|
+
valueModifiers: { trim: true },
|
|
892
|
+
placeholder: "请输入",
|
|
893
|
+
"show-count": "",
|
|
894
|
+
maxlength: 100
|
|
895
|
+
}, null, 8, ["value"])]),
|
|
896
|
+
_: 1
|
|
897
|
+
}, 16, ["label"]),
|
|
898
|
+
createVNode(_component_a_form_item, mergeProps({ label: `${_ctx.$t(_ctx.$I18NextKey.NOTICE_SHORT)}类型` }, _ctx.validateInfos.subTypeId), {
|
|
899
|
+
default: withCtx(() => [createVNode(_component_a_tree_select, {
|
|
900
|
+
value: _ctx.baseInfo.subTypeId,
|
|
901
|
+
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => _ctx.baseInfo.subTypeId = $event),
|
|
902
|
+
"tree-data": _ctx.bulletinTypeTree,
|
|
903
|
+
"allow-clear": "",
|
|
904
|
+
"tree-default-expand-all": "",
|
|
905
|
+
placeholder: "请选择",
|
|
906
|
+
"show-search": "",
|
|
907
|
+
virtual: false,
|
|
908
|
+
"filter-tree-node": _ctx.filterOption
|
|
909
|
+
}, {
|
|
910
|
+
title: withCtx(({ label, icon }) => [label ? (openBlock(), createBlock(_component_a_space, { key: 0 }, {
|
|
911
|
+
default: withCtx(() => [createElementVNode("i", { class: normalizeClass(icon) }, null, 2), createElementVNode("span", null, toDisplayString(label), 1)]),
|
|
912
|
+
_: 2
|
|
913
|
+
}, 1024)) : createCommentVNode("", true)]),
|
|
914
|
+
suffixIcon: withCtx(() => [_hoisted_5]),
|
|
915
|
+
_: 1
|
|
916
|
+
}, 8, [
|
|
917
|
+
"value",
|
|
918
|
+
"tree-data",
|
|
919
|
+
"filter-tree-node"
|
|
920
|
+
])]),
|
|
921
|
+
_: 1
|
|
922
|
+
}, 16, ["label"]),
|
|
923
|
+
createVNode(_component_a_form_item, mergeProps({ label: `${_ctx.$t(_ctx.$I18NextKey.NOTICE_LEVEL_NAME)}` }, _ctx.validateInfos.levelId), {
|
|
924
|
+
default: withCtx(() => [createVNode(_component_a_select, {
|
|
925
|
+
value: _ctx.baseInfo.levelId,
|
|
926
|
+
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => _ctx.baseInfo.levelId = $event),
|
|
927
|
+
"allow-clear": "",
|
|
928
|
+
placeholder: "请选择",
|
|
929
|
+
onSelect: _ctx.handleBulletinLevelSelect
|
|
930
|
+
}, {
|
|
931
|
+
suffixIcon: withCtx(() => [_hoisted_6]),
|
|
932
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.bulletinLevelList, (level) => {
|
|
933
|
+
return openBlock(), createBlock(_component_a_select_option, {
|
|
934
|
+
key: level.id,
|
|
935
|
+
value: level.id
|
|
936
|
+
}, {
|
|
937
|
+
default: withCtx(() => [createTextVNode(toDisplayString(level.name), 1)]),
|
|
938
|
+
_: 2
|
|
939
|
+
}, 1032, ["value"]);
|
|
940
|
+
}), 128))]),
|
|
941
|
+
_: 1
|
|
942
|
+
}, 8, ["value", "onSelect"])]),
|
|
943
|
+
_: 1
|
|
944
|
+
}, 16, ["label"]),
|
|
945
|
+
createVNode(_component_a_form_item, mergeProps({ label: `${_ctx.$t(_ctx.$I18NextKey.NOTICE_SHORT)}时限` }, _ctx.validateInfos.noticeTimeLimit), {
|
|
946
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_7, [createVNode(_component_a_switch, {
|
|
947
|
+
checked: _ctx.baseInfo.noticeTimeLimitFlag,
|
|
948
|
+
"onUpdate:checked": _cache[5] || (_cache[5] = ($event) => _ctx.baseInfo.noticeTimeLimitFlag = $event),
|
|
949
|
+
"checked-value": _ctx.Enabled.ENABLE,
|
|
950
|
+
"un-checked-value": _ctx.Enabled.NOT_ENABLE,
|
|
951
|
+
"checked-children": "开启",
|
|
952
|
+
"un-checked-children": "关闭"
|
|
953
|
+
}, null, 8, [
|
|
954
|
+
"checked",
|
|
955
|
+
"checked-value",
|
|
956
|
+
"un-checked-value"
|
|
957
|
+
]), withDirectives(createVNode(_component_a_input_number, {
|
|
958
|
+
value: _ctx.baseInfo.noticeTimeLimit,
|
|
959
|
+
"onUpdate:value": _cache[7] || (_cache[7] = ($event) => _ctx.baseInfo.noticeTimeLimit = $event),
|
|
960
|
+
min: 1,
|
|
961
|
+
precision: 0,
|
|
962
|
+
placeholder: "请输入",
|
|
963
|
+
class: "bulletin-notice-time-limit-input"
|
|
964
|
+
}, {
|
|
965
|
+
addonAfter: withCtx(() => [createVNode(_component_a_select, {
|
|
966
|
+
value: _ctx.baseInfo.noticeTimeLimitType,
|
|
967
|
+
"onUpdate:value": _cache[6] || (_cache[6] = ($event) => _ctx.baseInfo.noticeTimeLimitType = $event),
|
|
968
|
+
options: _ctx.bulletinNoticeOptions,
|
|
969
|
+
class: "bulletin-notice-time-limit-input-unit"
|
|
970
|
+
}, {
|
|
971
|
+
suffixIcon: withCtx(() => [_hoisted_8]),
|
|
972
|
+
_: 1
|
|
973
|
+
}, 8, ["value", "options"])]),
|
|
974
|
+
_: 1
|
|
975
|
+
}, 8, ["value"]), [[vShow, _ctx.baseInfo.noticeTimeLimitFlag]])])]),
|
|
976
|
+
_: 1
|
|
977
|
+
}, 16, ["label"]),
|
|
978
|
+
createVNode(_component_a_form_item, mergeProps({ label: "通知方式" }, _ctx.validateInfos.notificationMethod), {
|
|
979
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_9, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.enabledNotificationMethodList, (notificationMethodItem) => {
|
|
980
|
+
return openBlock(), createElementBlock("div", {
|
|
981
|
+
key: notificationMethodItem.id,
|
|
982
|
+
class: normalizeClass(["v-builder-business-bulletin-add-form-basic-checkbox", _ctx.baseInfo.notificationMethod?.includes(notificationMethodItem.id.toString()) ? "zt-checked-left-mark" : ""]),
|
|
983
|
+
onClick: ($event) => _ctx.handleNotificationMethod(notificationMethodItem)
|
|
984
|
+
}, toDisplayString(notificationMethodItem.name), 11, _hoisted_10);
|
|
985
|
+
}), 128))])]),
|
|
986
|
+
_: 1
|
|
987
|
+
}, 16)
|
|
988
|
+
]),
|
|
989
|
+
_: 1
|
|
990
|
+
}),
|
|
991
|
+
createVNode(_component_a_collapse_panel, {
|
|
992
|
+
key: "2",
|
|
993
|
+
header: "高级设置",
|
|
994
|
+
bordered: false
|
|
995
|
+
}, {
|
|
996
|
+
default: withCtx(() => [
|
|
997
|
+
withDirectives(createVNode(_component_a_form_item, mergeProps({
|
|
998
|
+
label: "定时发布",
|
|
999
|
+
class: "v-builder-business-bulletin-add-form-basic-timed-send"
|
|
1000
|
+
}, _ctx.validateInfos.sendTime), {
|
|
1001
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_11, [createVNode(_component_a_switch, {
|
|
1002
|
+
checked: _ctx.baseInfo.timedSendFlag,
|
|
1003
|
+
"onUpdate:checked": _cache[8] || (_cache[8] = ($event) => _ctx.baseInfo.timedSendFlag = $event),
|
|
1004
|
+
"checked-value": _ctx.Enabled.ENABLE,
|
|
1005
|
+
"un-checked-value": _ctx.Enabled.NOT_ENABLE,
|
|
1006
|
+
"checked-children": "开启",
|
|
1007
|
+
"un-checked-children": "关闭",
|
|
1008
|
+
class: "flex-shrink-0"
|
|
1009
|
+
}, null, 8, [
|
|
1010
|
+
"checked",
|
|
1011
|
+
"checked-value",
|
|
1012
|
+
"un-checked-value"
|
|
1013
|
+
]), withDirectives(createVNode(_component_a_date_picker, {
|
|
1014
|
+
value: _ctx.baseInfo.sendTime,
|
|
1015
|
+
"onUpdate:value": _cache[9] || (_cache[9] = ($event) => _ctx.baseInfo.sendTime = $event),
|
|
1016
|
+
"show-time": "",
|
|
1017
|
+
style: { "width": "100%" },
|
|
1018
|
+
"value-format": "YYYY-MM-DD HH:mm",
|
|
1019
|
+
format: "YYYY-MM-DD HH:mm",
|
|
1020
|
+
"allow-clear": false,
|
|
1021
|
+
"disabled-date": _ctx.disabledDate,
|
|
1022
|
+
"disabled-time": _ctx.disabledTime,
|
|
1023
|
+
"get-popup-container": _ctx.bodyPopupContainer
|
|
1024
|
+
}, null, 8, [
|
|
1025
|
+
"value",
|
|
1026
|
+
"disabled-date",
|
|
1027
|
+
"disabled-time",
|
|
1028
|
+
"get-popup-container"
|
|
1029
|
+
]), [[vShow, _ctx.baseInfo.timedSendFlag]])])]),
|
|
1030
|
+
_: 1
|
|
1031
|
+
}, 16), [[vShow, _ctx.showTimedSend]]),
|
|
1032
|
+
createVNode(_component_a_form_item, { label: "需要接收" }, {
|
|
1033
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_12, [createVNode(_component_a_switch, {
|
|
1034
|
+
checked: _ctx.baseInfo.needReceiveFlag,
|
|
1035
|
+
"onUpdate:checked": _cache[10] || (_cache[10] = ($event) => _ctx.baseInfo.needReceiveFlag = $event),
|
|
1036
|
+
"checked-value": _ctx.Enabled.ENABLE,
|
|
1037
|
+
"un-checked-value": _ctx.Enabled.NOT_ENABLE,
|
|
1038
|
+
"checked-children": "开启",
|
|
1039
|
+
"un-checked-children": "关闭"
|
|
1040
|
+
}, null, 8, [
|
|
1041
|
+
"checked",
|
|
1042
|
+
"checked-value",
|
|
1043
|
+
"un-checked-value"
|
|
1044
|
+
])])]),
|
|
1045
|
+
_: 1
|
|
1046
|
+
}),
|
|
1047
|
+
createVNode(_component_a_form_item, { label: "周期提醒" }, {
|
|
1048
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_13, [createVNode(_component_a_switch, {
|
|
1049
|
+
checked: _ctx.baseInfo.cycleRemindFlag,
|
|
1050
|
+
"onUpdate:checked": _cache[11] || (_cache[11] = ($event) => _ctx.baseInfo.cycleRemindFlag = $event),
|
|
1051
|
+
"checked-value": _ctx.Enabled.ENABLE,
|
|
1052
|
+
"un-checked-value": _ctx.Enabled.NOT_ENABLE,
|
|
1053
|
+
"checked-children": "开启",
|
|
1054
|
+
"un-checked-children": "关闭"
|
|
1055
|
+
}, null, 8, [
|
|
1056
|
+
"checked",
|
|
1057
|
+
"checked-value",
|
|
1058
|
+
"un-checked-value"
|
|
1059
|
+
])])]),
|
|
1060
|
+
_: 1
|
|
1061
|
+
}),
|
|
1062
|
+
_ctx.baseInfo.cycleRemindFlag ? (openBlock(), createBlock(_component_a_form_item, mergeProps({
|
|
1063
|
+
key: 0,
|
|
1064
|
+
label: "提醒时间"
|
|
1065
|
+
}, _ctx.validateInfos.cycleRemindCycle), {
|
|
1066
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_14, [
|
|
1067
|
+
createTextVNode(" 每 "),
|
|
1068
|
+
createVNode(_component_a_input_number, {
|
|
1069
|
+
value: _ctx.baseInfo.cycleInterval,
|
|
1070
|
+
"onUpdate:value": _cache[13] || (_cache[13] = ($event) => _ctx.baseInfo.cycleInterval = $event),
|
|
1071
|
+
valueModifiers: { trim: true },
|
|
1072
|
+
type: "number",
|
|
1073
|
+
min: 1,
|
|
1074
|
+
precision: 0
|
|
1075
|
+
}, {
|
|
1076
|
+
addonAfter: withCtx(() => [createVNode(_component_a_select, {
|
|
1077
|
+
value: _ctx.baseInfo.cycleType,
|
|
1078
|
+
"onUpdate:value": _cache[12] || (_cache[12] = ($event) => _ctx.baseInfo.cycleType = $event),
|
|
1079
|
+
onChange: _ctx.handleCycleRemindType
|
|
1080
|
+
}, {
|
|
1081
|
+
suffixIcon: withCtx(() => [_hoisted_15]),
|
|
1082
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.cycleRemindTimeTypeOption, (cycleRemind) => {
|
|
1083
|
+
return openBlock(), createBlock(_component_a_select_option, {
|
|
1084
|
+
key: cycleRemind.value,
|
|
1085
|
+
value: cycleRemind.value
|
|
1086
|
+
}, {
|
|
1087
|
+
default: withCtx(() => [createTextVNode(toDisplayString(cycleRemind.label), 1)]),
|
|
1088
|
+
_: 2
|
|
1089
|
+
}, 1032, ["value"]);
|
|
1090
|
+
}), 128))]),
|
|
1091
|
+
_: 1
|
|
1092
|
+
}, 8, ["value", "onChange"])]),
|
|
1093
|
+
_: 1
|
|
1094
|
+
}, 8, ["value"]),
|
|
1095
|
+
_ctx.baseInfo.cycleType === _ctx.BulletinNoticeCycleTime.DAY ? (openBlock(), createBlock(_component_a_time_picker, {
|
|
1096
|
+
key: 0,
|
|
1097
|
+
value: _ctx.baseInfo.cycleTime,
|
|
1098
|
+
"onUpdate:value": _cache[14] || (_cache[14] = ($event) => _ctx.baseInfo.cycleTime = $event),
|
|
1099
|
+
"value-format": "HH:mm:ss",
|
|
1100
|
+
"allow-clear": false
|
|
1101
|
+
}, null, 8, ["value"])) : createCommentVNode("", true),
|
|
1102
|
+
_ctx.baseInfo.cycleType === _ctx.BulletinNoticeCycleTime.WEEK ? (openBlock(), createBlock(_component_a_select, {
|
|
1103
|
+
key: 1,
|
|
1104
|
+
value: _ctx.baseInfo.cycleIndex,
|
|
1105
|
+
"onUpdate:value": _cache[15] || (_cache[15] = ($event) => _ctx.baseInfo.cycleIndex = $event),
|
|
1106
|
+
options: _ctx.weekOptionList
|
|
1107
|
+
}, {
|
|
1108
|
+
suffixIcon: withCtx(() => [_hoisted_16]),
|
|
1109
|
+
_: 1
|
|
1110
|
+
}, 8, ["value", "options"])) : createCommentVNode("", true),
|
|
1111
|
+
_ctx.baseInfo.cycleType === _ctx.BulletinNoticeCycleTime.MONTH ? (openBlock(), createBlock(_component_a_select, {
|
|
1112
|
+
key: 2,
|
|
1113
|
+
value: _ctx.baseInfo.cycleIndex,
|
|
1114
|
+
"onUpdate:value": _cache[16] || (_cache[16] = ($event) => _ctx.baseInfo.cycleIndex = $event),
|
|
1115
|
+
options: _ctx.monthOptionList
|
|
1116
|
+
}, {
|
|
1117
|
+
suffixIcon: withCtx(() => [_hoisted_17]),
|
|
1118
|
+
_: 1
|
|
1119
|
+
}, 8, ["value", "options"])) : createCommentVNode("", true)
|
|
1120
|
+
])]),
|
|
1121
|
+
_: 1
|
|
1122
|
+
}, 16)) : createCommentVNode("", true),
|
|
1123
|
+
createVNode(_component_a_form_item, mergeProps({
|
|
1124
|
+
label: "强制提醒",
|
|
1125
|
+
class: "v-builder-business-bulletin-add-form-basic-force-remind"
|
|
1126
|
+
}, _ctx.validateInfos.noticeForceRemindLimit), {
|
|
1127
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_18, [
|
|
1128
|
+
createVNode(_component_a_switch, {
|
|
1129
|
+
checked: _ctx.baseInfo.noticeForceRemindFlag,
|
|
1130
|
+
"onUpdate:checked": _cache[17] || (_cache[17] = ($event) => _ctx.baseInfo.noticeForceRemindFlag = $event),
|
|
1131
|
+
"checked-value": _ctx.Enabled.ENABLE,
|
|
1132
|
+
"un-checked-value": _ctx.Enabled.NOT_ENABLE,
|
|
1133
|
+
"checked-children": "开启",
|
|
1134
|
+
"un-checked-children": "关闭",
|
|
1135
|
+
class: "flex-shrink-0"
|
|
1136
|
+
}, null, 8, [
|
|
1137
|
+
"checked",
|
|
1138
|
+
"checked-value",
|
|
1139
|
+
"un-checked-value"
|
|
1140
|
+
]),
|
|
1141
|
+
withDirectives(createVNode(_component_a_input_number, {
|
|
1142
|
+
value: _ctx.baseInfo.noticeForceRemindLimit,
|
|
1143
|
+
"onUpdate:value": _cache[19] || (_cache[19] = ($event) => _ctx.baseInfo.noticeForceRemindLimit = $event),
|
|
1144
|
+
valueModifiers: { trim: true },
|
|
1145
|
+
type: "number",
|
|
1146
|
+
min: 1,
|
|
1147
|
+
precision: 0
|
|
1148
|
+
}, {
|
|
1149
|
+
addonAfter: withCtx(() => [createVNode(_component_a_select, {
|
|
1150
|
+
value: _ctx.baseInfo.noticeForceRemindType,
|
|
1151
|
+
"onUpdate:value": _cache[18] || (_cache[18] = ($event) => _ctx.baseInfo.noticeForceRemindType = $event),
|
|
1152
|
+
options: _ctx.bulletinNoticeOptions,
|
|
1153
|
+
class: "bulletin-notice-time-limit-input-unit"
|
|
1154
|
+
}, {
|
|
1155
|
+
suffixIcon: withCtx(() => [_hoisted_19]),
|
|
1156
|
+
_: 1
|
|
1157
|
+
}, 8, ["value", "options"])]),
|
|
1158
|
+
_: 1
|
|
1159
|
+
}, 8, ["value"]), [[vShow, _ctx.baseInfo.noticeForceRemindFlag]]),
|
|
1160
|
+
createVNode(_component_a_tooltip, { "get-popup-container": _ctx.bodyPopupContainer }, {
|
|
1161
|
+
title: withCtx(() => [createTextVNode(toDisplayString(_ctx.FORCE_TIP_TEXT), 1)]),
|
|
1162
|
+
default: withCtx(() => [withDirectives(createElementVNode("i", _hoisted_20, null, 512), [[vShow, _ctx.baseInfo.noticeForceRemindFlag]])]),
|
|
1163
|
+
_: 1
|
|
1164
|
+
}, 8, ["get-popup-container"])
|
|
1165
|
+
])]),
|
|
1166
|
+
_: 1
|
|
1167
|
+
}, 16)
|
|
1168
|
+
]),
|
|
1169
|
+
_: 1
|
|
1170
|
+
}),
|
|
1171
|
+
withDirectives(createVNode(_component_a_collapse_panel, { key: "3" }, {
|
|
1172
|
+
header: withCtx(() => [createElementVNode("div", { class: normalizeClass(["bulletin-add-form-basic-attachment-collapse-panel-header", { required: _ctx.attachmentRequired }]) }, [_hoisted_21, createVNode(_component_a_tooltip, { placement: "right" }, {
|
|
1173
|
+
title: withCtx(() => [createTextVNode(toDisplayString(_ctx.BULLETIN_MEDIA_TIP_TEXT), 1)]),
|
|
1174
|
+
default: withCtx(() => [_hoisted_22]),
|
|
1175
|
+
_: 1
|
|
1176
|
+
})], 2)]),
|
|
1177
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_23, [createVNode(_component_zt_upload_media, {
|
|
1178
|
+
value: _ctx.baseInfo.files,
|
|
1179
|
+
"onUpdate:value": _cache[20] || (_cache[20] = ($event) => _ctx.baseInfo.files = $event),
|
|
1180
|
+
"upload-mode": "dragger",
|
|
1181
|
+
accept: _ctx.BULLETIN_MEDIA_TYPE_LIMIT,
|
|
1182
|
+
"max-count": 10,
|
|
1183
|
+
"keep-upload": "",
|
|
1184
|
+
multiple: "",
|
|
1185
|
+
disabled: (_ctx.baseInfo.files?.length ?? 0) > 9,
|
|
1186
|
+
"on-before-upload": _ctx.handleBeforeUpload
|
|
1187
|
+
}, {
|
|
1188
|
+
customRender: withCtx(({ file, actions }) => [createVNode(_component_c_bulletin_detail_file, { media: file }, {
|
|
1189
|
+
icon: withCtx(() => [createElementVNode("i", {
|
|
1190
|
+
class: "zt-iconfont zt-icon-delete",
|
|
1191
|
+
onClick: actions.remove
|
|
1192
|
+
}, null, 8, _hoisted_25)]),
|
|
1193
|
+
_: 2
|
|
1194
|
+
}, 1032, ["media"])]),
|
|
1195
|
+
default: withCtx(() => [_hoisted_24, createTextVNode(" 上传 (" + toDisplayString(_ctx.baseInfo.files?.length ?? 0) + "/10) ", 1)]),
|
|
1196
|
+
_: 1
|
|
1197
|
+
}, 8, [
|
|
1198
|
+
"value",
|
|
1199
|
+
"accept",
|
|
1200
|
+
"disabled",
|
|
1201
|
+
"on-before-upload"
|
|
1202
|
+
]), !_ctx.baseInfo.files?.length ? (openBlock(), createBlock(_component_zt_empty, {
|
|
1203
|
+
key: 0,
|
|
1204
|
+
center: ""
|
|
1205
|
+
}, {
|
|
1206
|
+
image: withCtx(() => [createVNode(_component_a_image, {
|
|
1207
|
+
preview: false,
|
|
1208
|
+
src: _ctx.EmptyFileImage,
|
|
1209
|
+
width: 80,
|
|
1210
|
+
height: 80,
|
|
1211
|
+
fallback: _ctx.EmptyFileImage
|
|
1212
|
+
}, null, 8, ["src", "fallback"])]),
|
|
1213
|
+
description: withCtx(() => [_hoisted_26]),
|
|
1214
|
+
_: 1
|
|
1215
|
+
})) : createCommentVNode("", true)])]),
|
|
1216
|
+
_: 1
|
|
1217
|
+
}, 512), [[vShow, _ctx.showAttachment]])
|
|
1218
|
+
]),
|
|
1219
|
+
_: 1
|
|
1220
|
+
}, 8, ["activeKey"])])), [[_directive_zt_overlay_scrollbars]]),
|
|
1221
|
+
createElementVNode("div", _hoisted_27, [createElementVNode("div", _hoisted_28, toDisplayString(_ctx.$t(_ctx.$I18NextKey.NOTICE_SHORT)) + "内容 ", 1), (openBlock(), createBlock(_component_zt_editor_text, {
|
|
1222
|
+
id: _ctx.editorId,
|
|
1223
|
+
key: _ctx.editorId,
|
|
1224
|
+
ref: "editorRef",
|
|
1225
|
+
value: _ctx.baseInfo.content,
|
|
1226
|
+
"onUpdate:value": _cache[22] || (_cache[22] = ($event) => _ctx.baseInfo.content = $event),
|
|
1227
|
+
"value-type": "HTML",
|
|
1228
|
+
class: normalizeClass(["v-builder-business-bulletin-add-form-editor-text", { placeholder: !_ctx.baseInfo.content }]),
|
|
1229
|
+
menus: _ctx.ZtEditorTextMenus,
|
|
1230
|
+
"static-placeholder": `${_ctx.$t(_ctx.$I18NextKey.NOTICE_SHORT)}内容正文`
|
|
1231
|
+
}, null, 8, [
|
|
1232
|
+
"id",
|
|
1233
|
+
"value",
|
|
1234
|
+
"class",
|
|
1235
|
+
"menus",
|
|
1236
|
+
"static-placeholder"
|
|
1237
|
+
]))]),
|
|
1238
|
+
createElementVNode("div", _hoisted_29, [createVNode(_component_c_bulletin_notify_info_select_card, {
|
|
1239
|
+
"notice-info-list": _ctx.noticeInfoList,
|
|
1240
|
+
"onUpdate:noticeInfoList": _cache[23] || (_cache[23] = ($event) => _ctx.noticeInfoList = $event),
|
|
1241
|
+
required: ""
|
|
1242
|
+
}, null, 8, ["notice-info-list"])])
|
|
1243
|
+
]),
|
|
1244
|
+
_: 1
|
|
1245
|
+
}, 8, ["model"])]),
|
|
1246
|
+
_: 1
|
|
1247
|
+
})], 512);
|
|
1248
|
+
}
|
|
1249
|
+
var bulletin_add_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default, [["render", _sfc_render], ["__scopeId", "data-v-9c96036b"]]);
|
|
1250
|
+
//#endregion
|
|
1251
|
+
export { bulletin_add_default as default };
|