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,187 @@
|
|
|
1
|
+
/*! egova-urbanpro-web v0.0.1 */
|
|
2
|
+
import { B as bus, R as commonSetting, j as http, k as media, 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 { E as BulletinService } from "./constants-BijBPSuc.js";
|
|
5
|
+
import { cleanUrl, isEmptyText } from "@kyjian/libs/utils";
|
|
6
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, renderSlot, toDisplayString, watch, withCtx } from "vue";
|
|
7
|
+
import { Modal, message } from "ant-design-vue";
|
|
8
|
+
import { Image as Image$1, Tooltip as Tooltip$1 } from "ant-design-vue/es";
|
|
9
|
+
import { ZtTypoText } from "zartd-biz/es/index";
|
|
10
|
+
//#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-detail/components/bulletin-detail-file/index.ts?vue&type=script&src=true&lang.ts
|
|
11
|
+
var index_ts_vue_type_script_src_true_lang_default = defineComponent({
|
|
12
|
+
name: "CBulletinDetailFile",
|
|
13
|
+
props: {
|
|
14
|
+
media: {
|
|
15
|
+
type: Object,
|
|
16
|
+
required: true
|
|
17
|
+
},
|
|
18
|
+
bulletin: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: void 0
|
|
21
|
+
},
|
|
22
|
+
preview: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false
|
|
25
|
+
},
|
|
26
|
+
showDownloadNum: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: false
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
setup(props) {
|
|
32
|
+
const service = new BulletinService(http);
|
|
33
|
+
const getMediaUrl = computed(() => {
|
|
34
|
+
if (props.media.thumbUrl && typeof props.media.thumbUrl === "string") return props.media.thumbUrl;
|
|
35
|
+
return media.getFullMediaPath(props.media?.mediaUrl);
|
|
36
|
+
});
|
|
37
|
+
const collectFlag = ref(false);
|
|
38
|
+
const mediaType = computed(() => {
|
|
39
|
+
let type = "";
|
|
40
|
+
if (props.media?.name) type = props.media.name.split(".").reverse()[0];
|
|
41
|
+
return type;
|
|
42
|
+
});
|
|
43
|
+
const isImage = computed(() => media.isImage(props.media));
|
|
44
|
+
const isPdf = computed(() => {
|
|
45
|
+
return ["pdf"].includes(mediaType.value.toLocaleLowerCase());
|
|
46
|
+
});
|
|
47
|
+
const showPreviewIcon = computed(() => {
|
|
48
|
+
return props.preview && (isPdf.value || commonSetting.FILE_ONLINE_PREVIEW_URL);
|
|
49
|
+
});
|
|
50
|
+
function sendRefreshMessage() {
|
|
51
|
+
bus.emit(BusEventKey.BULLETIN__VIEW__ATTACH_COLLECT__REFRESH);
|
|
52
|
+
}
|
|
53
|
+
async function handleMark() {
|
|
54
|
+
try {
|
|
55
|
+
if (isEmptyText(props.bulletin?.title) || isEmptyText(props.media?.uid)) return message.error("附件信息有误,请联系管理员");
|
|
56
|
+
const res = await service.addCollectAttach({
|
|
57
|
+
attachUid: props.media.uid,
|
|
58
|
+
attachTypeId: props.media?.typeId,
|
|
59
|
+
relationTypeId: 1,
|
|
60
|
+
relationName: props.bulletin?.title
|
|
61
|
+
});
|
|
62
|
+
if (res && !res.hasError) {
|
|
63
|
+
collectFlag.value = true;
|
|
64
|
+
sendRefreshMessage();
|
|
65
|
+
}
|
|
66
|
+
} catch (e) {
|
|
67
|
+
console.log(e);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
async function handleCancelMark() {
|
|
71
|
+
Modal.confirm({
|
|
72
|
+
title: "取消收藏",
|
|
73
|
+
content: "确定取消收藏附件吗?",
|
|
74
|
+
okText: "确定",
|
|
75
|
+
cancelText: "取消",
|
|
76
|
+
onOk: async () => {
|
|
77
|
+
try {
|
|
78
|
+
if (isEmptyText(props.bulletin?.title) || isEmptyText(props.media?.uid)) return message.error("附件信息有误,请联系管理员");
|
|
79
|
+
const res = await service.cancelCollectAttach({
|
|
80
|
+
attachUid: props.media.uid,
|
|
81
|
+
attachTypeId: props.media?.typeId,
|
|
82
|
+
relationTypeId: 1,
|
|
83
|
+
relationName: props.bulletin?.title
|
|
84
|
+
});
|
|
85
|
+
if (res && !res.hasError) {
|
|
86
|
+
collectFlag.value = false;
|
|
87
|
+
sendRefreshMessage();
|
|
88
|
+
}
|
|
89
|
+
} catch (e) {
|
|
90
|
+
console.log(e);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
async function handlePreview() {
|
|
96
|
+
if (isEmptyText(commonSetting.FILE_ONLINE_PREVIEW_URL || "") && isPdf.value) {
|
|
97
|
+
const fullMediaPath = media.getFullMediaPath(props.media.mediaUrl);
|
|
98
|
+
window.open(cleanUrl(fullMediaPath));
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
const previewMediaUrl = media.fileOnlinePreview(props.media, { returnUrl: true });
|
|
102
|
+
if (previewMediaUrl) {
|
|
103
|
+
const thirdUrl = `${commonSetting.assetUrl}/third.html#/workbench/iframe?src=${previewMediaUrl}&title=${props.media.name}`;
|
|
104
|
+
window.open(cleanUrl(thirdUrl));
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
watch(() => props.media, (val) => {
|
|
108
|
+
collectFlag.value = !!val?.collectFlag;
|
|
109
|
+
}, { immediate: true });
|
|
110
|
+
return {
|
|
111
|
+
isImage,
|
|
112
|
+
mediaType,
|
|
113
|
+
showPreviewIcon,
|
|
114
|
+
collectFlag,
|
|
115
|
+
handlePreview,
|
|
116
|
+
handleMark,
|
|
117
|
+
handleCancelMark,
|
|
118
|
+
getMediaUrl
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-detail/components/bulletin-detail-file/index.vue
|
|
124
|
+
var _hoisted_1 = { class: "c-bulletin-detail-file" };
|
|
125
|
+
var _hoisted_2 = {
|
|
126
|
+
key: 1,
|
|
127
|
+
class: "c-bulletin-detail-file-doc"
|
|
128
|
+
};
|
|
129
|
+
var _hoisted_3 = {
|
|
130
|
+
key: 2,
|
|
131
|
+
class: "c-bulletin-detail-file-xls"
|
|
132
|
+
};
|
|
133
|
+
var _hoisted_4 = {
|
|
134
|
+
key: 3,
|
|
135
|
+
class: "c-bulletin-detail-file-pdf"
|
|
136
|
+
};
|
|
137
|
+
var _hoisted_5 = {
|
|
138
|
+
key: 4,
|
|
139
|
+
class: "c-bulletin-detail-file-other"
|
|
140
|
+
};
|
|
141
|
+
var _hoisted_6 = { class: "file-main" };
|
|
142
|
+
var _hoisted_7 = {
|
|
143
|
+
key: 0,
|
|
144
|
+
class: "file-download-num"
|
|
145
|
+
};
|
|
146
|
+
var _hoisted_8 = { class: "num" };
|
|
147
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
148
|
+
const _component_a_image = Image$1;
|
|
149
|
+
const _component_zt_typo_text = ZtTypoText;
|
|
150
|
+
const _component_a_tooltip = Tooltip$1;
|
|
151
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
152
|
+
_ctx.isImage ? (openBlock(), createBlock(_component_a_image, {
|
|
153
|
+
key: 0,
|
|
154
|
+
src: _ctx.getMediaUrl
|
|
155
|
+
}, null, 8, ["src"])) : ["doc", "docx"].includes(_ctx.mediaType) ? (openBlock(), createElementBlock("div", _hoisted_2)) : ["xls", "xlsx"].includes(_ctx.mediaType) ? (openBlock(), createElementBlock("div", _hoisted_3)) : ["pdf"].includes(_ctx.mediaType) ? (openBlock(), createElementBlock("div", _hoisted_4)) : (openBlock(), createElementBlock("div", _hoisted_5)),
|
|
156
|
+
createElementVNode("div", _hoisted_6, [createVNode(_component_zt_typo_text, { class: "file-name" }, {
|
|
157
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.media.name), 1)]),
|
|
158
|
+
_: 1
|
|
159
|
+
}), _ctx.showDownloadNum ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
160
|
+
createTextVNode(" 已下载 "),
|
|
161
|
+
createElementVNode("span", _hoisted_8, toDisplayString(_ctx.media.downloadNum || 0), 1),
|
|
162
|
+
createTextVNode(" 次 ")
|
|
163
|
+
])) : createCommentVNode("", true)]),
|
|
164
|
+
_ctx.bulletin?.title && _ctx.media?.uid ? (openBlock(), createBlock(_component_a_tooltip, { key: 5 }, {
|
|
165
|
+
title: withCtx(() => [createElementVNode("span", null, toDisplayString(_ctx.collectFlag ? "取消收藏" : "收藏"), 1)]),
|
|
166
|
+
default: withCtx(() => [!_ctx.collectFlag ? (openBlock(), createElementBlock("i", {
|
|
167
|
+
key: 0,
|
|
168
|
+
class: "kyjian-core-iconfont kyjian-core-icon-sheweizhuanjian c-bulletin-detail-file-preview",
|
|
169
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleMark && _ctx.handleMark(...args))
|
|
170
|
+
})) : (openBlock(), createElementBlock("i", {
|
|
171
|
+
key: 1,
|
|
172
|
+
class: "kyjian-core-iconfont kyjian-core-icon-five-pointed-star c-bulletin-detail-file-preview",
|
|
173
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCancelMark && _ctx.handleCancelMark(...args))
|
|
174
|
+
}))]),
|
|
175
|
+
_: 1
|
|
176
|
+
})) : createCommentVNode("", true),
|
|
177
|
+
_ctx.showPreviewIcon ? (openBlock(), createElementBlock("i", {
|
|
178
|
+
key: 6,
|
|
179
|
+
class: "zt-iconfont zt-icon-eye c-bulletin-detail-file-preview",
|
|
180
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handlePreview && _ctx.handlePreview(...args))
|
|
181
|
+
})) : createCommentVNode("", true),
|
|
182
|
+
renderSlot(_ctx.$slots, "icon", {}, void 0, true)
|
|
183
|
+
]);
|
|
184
|
+
}
|
|
185
|
+
var bulletin_detail_file_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default, [["render", _sfc_render], ["__scopeId", "data-v-ea11a749"]]);
|
|
186
|
+
//#endregion
|
|
187
|
+
export { bulletin_detail_file_default as t };
|
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
/*! egova-urbanpro-web v0.0.1 */
|
|
2
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwmSBgGG.js";
|
|
3
|
+
import { d as getUnifyNoticeInfoItem } from "./utils-BlJtAQle.js";
|
|
4
|
+
import { n as useBulletinFormOptions, t as bulletin_notify_info_drawer_default } from "./bulletin-notify-info-drawer-vR3KSaRS.js";
|
|
5
|
+
import { t as condition_search_criteria_default } from "./condition-search-criteria-B_HnHQBy.js";
|
|
6
|
+
import { assign } from "lodash-es";
|
|
7
|
+
import { isEmptyText } from "@kyjian/libs/utils";
|
|
8
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, popScopeId, pushScopeId, reactive, ref, renderList, resolveComponent, toDisplayString, toRefs, vShow, watch, withCtx, withDirectives } from "vue";
|
|
9
|
+
import { Button, Col, Drawer, Form, FormItem, RangePicker, Row, Select, Space, Tag, TreeSelect } from "ant-design-vue/es";
|
|
10
|
+
//#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-view/components/bulletin-drawer/components/release-time-filter/index.ts?vue&type=script&src=true&lang.ts
|
|
11
|
+
var index_ts_vue_type_script_src_true_lang_default$2 = defineComponent({
|
|
12
|
+
name: "CReleaseTimeFilter",
|
|
13
|
+
props: { releaseTime: {
|
|
14
|
+
type: Array,
|
|
15
|
+
default: () => []
|
|
16
|
+
} },
|
|
17
|
+
emits: ["update:releaseTime"],
|
|
18
|
+
setup(props, { emit }) {
|
|
19
|
+
const onRangeChange = (value) => {
|
|
20
|
+
emit("update:releaseTime", value);
|
|
21
|
+
};
|
|
22
|
+
return { onRangeChange };
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-view/components/bulletin-drawer/components/release-time-filter/index.vue
|
|
27
|
+
var _hoisted_1$2 = { class: "c-release-time-filter" };
|
|
28
|
+
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
29
|
+
const _component_a_range_picker = RangePicker;
|
|
30
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [createVNode(_component_a_range_picker, {
|
|
31
|
+
value: _ctx.releaseTime,
|
|
32
|
+
format: "YYYY-MM-DD HH:mm:ss",
|
|
33
|
+
"show-time": { format: "HH:mm:ss" },
|
|
34
|
+
onChange: _ctx.onRangeChange
|
|
35
|
+
}, null, 8, ["value", "onChange"])]);
|
|
36
|
+
}
|
|
37
|
+
var release_time_filter_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default$2, [["render", _sfc_render$2], ["__scopeId", "data-v-aa9ba038"]]);
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-view/components/bulletin-drawer/components/select-multiple-tree-filter/index.ts?vue&type=script&src=true&lang.ts
|
|
40
|
+
var index_ts_vue_type_script_src_true_lang_default$1 = defineComponent({
|
|
41
|
+
name: "CSelectMultipleTreeFilter",
|
|
42
|
+
components: { CBulletinNotifyInfoDrawer: bulletin_notify_info_drawer_default },
|
|
43
|
+
props: { humanList: {
|
|
44
|
+
type: Array,
|
|
45
|
+
default: () => []
|
|
46
|
+
} },
|
|
47
|
+
emits: ["update:humanList"],
|
|
48
|
+
setup(props, { emit }) {
|
|
49
|
+
const title = ref("发布对象");
|
|
50
|
+
const showPost = ref(false);
|
|
51
|
+
const state = reactive({
|
|
52
|
+
visible: false,
|
|
53
|
+
humanSelectList: [],
|
|
54
|
+
searchWords: "",
|
|
55
|
+
currentPage: 1,
|
|
56
|
+
pageSize: 10
|
|
57
|
+
});
|
|
58
|
+
const handleOpen = () => {
|
|
59
|
+
state.visible = true;
|
|
60
|
+
};
|
|
61
|
+
const handleHumanSave = (userList) => {
|
|
62
|
+
emit("update:humanList", userList);
|
|
63
|
+
};
|
|
64
|
+
return {
|
|
65
|
+
...toRefs(state),
|
|
66
|
+
handleOpen,
|
|
67
|
+
title,
|
|
68
|
+
handleHumanSave,
|
|
69
|
+
getUnifyNoticeInfoItem,
|
|
70
|
+
showPost
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-view/components/bulletin-drawer/components/select-multiple-tree-filter/index.vue
|
|
76
|
+
var _hoisted_1$1 = { class: "c-select-multiple-tree-filter" };
|
|
77
|
+
var _hoisted_2$1 = { class: "human-role-content" };
|
|
78
|
+
var _hoisted_3$1 = { class: "human-role-tags" };
|
|
79
|
+
var _hoisted_4$1 = { class: "human-role-btn" };
|
|
80
|
+
var _hoisted_5$1 = { class: "human-role-count" };
|
|
81
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
82
|
+
const _component_c_bulletin_notify_info_drawer = resolveComponent("c-bulletin-notify-info-drawer");
|
|
83
|
+
const _component_a_tag = Tag;
|
|
84
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [createVNode(_component_c_bulletin_notify_info_drawer, {
|
|
85
|
+
visible: _ctx.visible,
|
|
86
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.visible = $event),
|
|
87
|
+
title: _ctx.title,
|
|
88
|
+
"show-post": _ctx.showPost,
|
|
89
|
+
"notice-info-list": [..._ctx.humanList],
|
|
90
|
+
onSave: _ctx.handleHumanSave
|
|
91
|
+
}, null, 8, [
|
|
92
|
+
"visible",
|
|
93
|
+
"title",
|
|
94
|
+
"show-post",
|
|
95
|
+
"notice-info-list",
|
|
96
|
+
"onSave"
|
|
97
|
+
]), createElementVNode("div", _hoisted_2$1, [createElementVNode("div", _hoisted_3$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.humanList, (role, index) => {
|
|
98
|
+
return openBlock(), createBlock(_component_a_tag, { key: index }, {
|
|
99
|
+
default: withCtx(() => [createElementVNode("span", null, toDisplayString(_ctx.getUnifyNoticeInfoItem(role).name), 1)]),
|
|
100
|
+
_: 2
|
|
101
|
+
}, 1024);
|
|
102
|
+
}), 128))]), createElementVNode("div", _hoisted_4$1, [createElementVNode("div", _hoisted_5$1, toDisplayString(_ctx.humanList.length), 1), createElementVNode("span", {
|
|
103
|
+
class: "human-role-select",
|
|
104
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleOpen && _ctx.handleOpen(...args))
|
|
105
|
+
}, "选择")])])]);
|
|
106
|
+
}
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-view/components/bulletin-drawer/index.ts?vue&type=script&src=true&lang.ts
|
|
109
|
+
var index_ts_vue_type_script_src_true_lang_default = defineComponent({
|
|
110
|
+
name: "CBulletinDrawer",
|
|
111
|
+
components: {
|
|
112
|
+
CReleaseTimeFilter: release_time_filter_default,
|
|
113
|
+
CSelectMultipleTreeFilter: /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default$1, [["render", _sfc_render$1], ["__scopeId", "data-v-c6b9f875"]]),
|
|
114
|
+
CConditionSearchCriteria: condition_search_criteria_default
|
|
115
|
+
},
|
|
116
|
+
props: {
|
|
117
|
+
visible: {
|
|
118
|
+
type: Boolean,
|
|
119
|
+
default: false
|
|
120
|
+
},
|
|
121
|
+
initShow: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
default: false
|
|
124
|
+
},
|
|
125
|
+
deleteId: {
|
|
126
|
+
type: String,
|
|
127
|
+
default: ""
|
|
128
|
+
},
|
|
129
|
+
isDeleteAll: {
|
|
130
|
+
type: Boolean,
|
|
131
|
+
default: false
|
|
132
|
+
},
|
|
133
|
+
selectId: {
|
|
134
|
+
type: Number,
|
|
135
|
+
default: -1
|
|
136
|
+
},
|
|
137
|
+
showType: {
|
|
138
|
+
type: Boolean,
|
|
139
|
+
default: false
|
|
140
|
+
},
|
|
141
|
+
showLevelFilter: {
|
|
142
|
+
type: Boolean,
|
|
143
|
+
default: false
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
emits: [
|
|
147
|
+
"update:visible",
|
|
148
|
+
"ok",
|
|
149
|
+
"search"
|
|
150
|
+
],
|
|
151
|
+
setup(props, { emit }) {
|
|
152
|
+
const title = ref("高级检索");
|
|
153
|
+
const releaseTime = ref();
|
|
154
|
+
const { bulletinTypeTree, bulletinLevelList } = useBulletinFormOptions();
|
|
155
|
+
const noticeTypeIdList = ref([]);
|
|
156
|
+
const levelIdList = ref([]);
|
|
157
|
+
const levelNameList = computed(() => {
|
|
158
|
+
if (!levelIdList.value?.length) return [];
|
|
159
|
+
return bulletinLevelList.value.filter((level) => levelIdList.value.includes(level.id)).map((level) => level.name);
|
|
160
|
+
});
|
|
161
|
+
const operations = ref();
|
|
162
|
+
const humanList = ref([]);
|
|
163
|
+
const noticeNameList = computed(() => {
|
|
164
|
+
if (!noticeTypeIdList.value || noticeTypeIdList.value.length === 0) return [];
|
|
165
|
+
return getNamesByIds(bulletinTypeTree.value, noticeTypeIdList.value);
|
|
166
|
+
});
|
|
167
|
+
const modelRef = computed(() => {
|
|
168
|
+
const conditions = {};
|
|
169
|
+
if (releaseTime.value?.length && releaseTime.value.every((item) => !isEmptyText(item))) assign(conditions, { releaseTimeId: {
|
|
170
|
+
title: "发布时间",
|
|
171
|
+
hidden: false,
|
|
172
|
+
fieldType: "TimeFilter",
|
|
173
|
+
value1: releaseTime.value?.map((item) => item.format("YYYY-MM-DD HH:mm:ss")),
|
|
174
|
+
label: releaseTime.value?.map((item) => item.format("YYYY-MM-DD HH:mm:ss"))
|
|
175
|
+
} });
|
|
176
|
+
if (levelIdList.value?.length) assign(conditions, { levelId: {
|
|
177
|
+
title: "重要程度",
|
|
178
|
+
hidden: !props.showLevelFilter,
|
|
179
|
+
fieldType: "SelectMultipleTreeFilter",
|
|
180
|
+
value1: levelIdList.value,
|
|
181
|
+
label: levelNameList.value,
|
|
182
|
+
value2: levelIdList.value.join(",") ?? ""
|
|
183
|
+
} });
|
|
184
|
+
if (noticeTypeIdList.value?.length && noticeTypeIdList.value.every((item) => !isEmptyText(item))) assign(conditions, { noticeTypeId: {
|
|
185
|
+
title: "通告类型",
|
|
186
|
+
hidden: props.showType,
|
|
187
|
+
fieldType: "SelectMultipleTreeFilter",
|
|
188
|
+
value1: noticeNameList.value,
|
|
189
|
+
label: noticeNameList.value,
|
|
190
|
+
value2: noticeTypeIdList.value.join(",") ?? ""
|
|
191
|
+
} });
|
|
192
|
+
if (humanList.value?.length && humanList.value.every((item) => !isEmptyText(item))) assign(conditions, { humanListId: {
|
|
193
|
+
title: "发布对象",
|
|
194
|
+
hidden: false,
|
|
195
|
+
fieldType: "SelectMultipleTreeFilter",
|
|
196
|
+
value1: humanList.value?.map((item) => getUnifyNoticeInfoItem(item).relationId),
|
|
197
|
+
label: humanList.value?.map((item) => getUnifyNoticeInfoItem(item).relationName),
|
|
198
|
+
value2: humanList.value?.map((item) => getUnifyNoticeInfoItem(item).relationType)
|
|
199
|
+
} });
|
|
200
|
+
return { conditions };
|
|
201
|
+
});
|
|
202
|
+
operations.value = {
|
|
203
|
+
releaseTimeId: "Between",
|
|
204
|
+
noticeTypeId: "In",
|
|
205
|
+
humanListId: "In",
|
|
206
|
+
levelId: "In"
|
|
207
|
+
};
|
|
208
|
+
function handleClose() {
|
|
209
|
+
emit("update:visible", false);
|
|
210
|
+
}
|
|
211
|
+
function handleOk() {
|
|
212
|
+
emit("ok", modelRef.value, operations.value);
|
|
213
|
+
emit("update:visible", false);
|
|
214
|
+
emit("search");
|
|
215
|
+
}
|
|
216
|
+
function handleDelete(id) {
|
|
217
|
+
if (id === "releaseTimeId") releaseTime.value = void 0;
|
|
218
|
+
if (id === "noticeTypeId") noticeTypeIdList.value = [];
|
|
219
|
+
if (id === "humanListId") humanList.value = [];
|
|
220
|
+
}
|
|
221
|
+
function handleDeleteAll() {
|
|
222
|
+
humanList.value = [];
|
|
223
|
+
releaseTime.value = void 0;
|
|
224
|
+
noticeTypeIdList.value = [];
|
|
225
|
+
levelIdList.value = [];
|
|
226
|
+
}
|
|
227
|
+
function handleReset() {
|
|
228
|
+
handleDeleteAll();
|
|
229
|
+
}
|
|
230
|
+
function getNamesByIds(data, targetIds) {
|
|
231
|
+
const result = [];
|
|
232
|
+
function traverse(items) {
|
|
233
|
+
for (const item of items) {
|
|
234
|
+
if (targetIds.includes(item.id)) result.push(item.data?.name || item.name);
|
|
235
|
+
if (item.children && item.children.length > 0) traverse(item.children);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
traverse(data);
|
|
239
|
+
return result;
|
|
240
|
+
}
|
|
241
|
+
watch(() => props.deleteId, (val) => {
|
|
242
|
+
if (!val) return;
|
|
243
|
+
handleDelete(val);
|
|
244
|
+
}, { immediate: true });
|
|
245
|
+
watch(() => props.isDeleteAll, (val) => {
|
|
246
|
+
if (!val) return;
|
|
247
|
+
handleDeleteAll();
|
|
248
|
+
}, { immediate: true });
|
|
249
|
+
return {
|
|
250
|
+
width: 720 * window.pageZoom,
|
|
251
|
+
handleClose,
|
|
252
|
+
handleOk,
|
|
253
|
+
handleReset,
|
|
254
|
+
title,
|
|
255
|
+
handleDelete,
|
|
256
|
+
handleDeleteAll,
|
|
257
|
+
levelIdList,
|
|
258
|
+
bulletinLevelList,
|
|
259
|
+
releaseTime,
|
|
260
|
+
bulletinTypeTree,
|
|
261
|
+
noticeTypeIdList,
|
|
262
|
+
humanList,
|
|
263
|
+
modelRef,
|
|
264
|
+
operations,
|
|
265
|
+
BULLETIN_TREE_NODE_OF_ALL_ID: -1
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
//#endregion
|
|
270
|
+
//#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-view/components/bulletin-drawer/index.vue
|
|
271
|
+
var _withScopeId = (n) => (pushScopeId("data-v-ab8edda6"), n = n(), popScopeId(), n);
|
|
272
|
+
var _hoisted_1 = {
|
|
273
|
+
key: 0,
|
|
274
|
+
ref: "drawer",
|
|
275
|
+
class: "c-bulletin-drawer"
|
|
276
|
+
};
|
|
277
|
+
var _hoisted_2 = { class: "c-bulletin-drawer" };
|
|
278
|
+
var _hoisted_3 = { class: "c-bulletin-drawer-content" };
|
|
279
|
+
var _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "c-bulletin-drawer-content-unit" }, /* @__PURE__ */ toDisplayString(1), -1));
|
|
280
|
+
var _hoisted_5 = {
|
|
281
|
+
key: 0,
|
|
282
|
+
class: "c-bulletin-drawer-content"
|
|
283
|
+
};
|
|
284
|
+
var _hoisted_6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "c-bulletin-drawer-content-unit" }, /* @__PURE__ */ toDisplayString(2), -1));
|
|
285
|
+
var _hoisted_7 = {
|
|
286
|
+
key: 1,
|
|
287
|
+
class: "c-bulletin-drawer-content"
|
|
288
|
+
};
|
|
289
|
+
var _hoisted_8 = { class: "c-bulletin-drawer-content-unit" };
|
|
290
|
+
var _hoisted_9 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "zt-iconfont zt-icon-arrow-down" }, null, -1));
|
|
291
|
+
var _hoisted_10 = { class: "c-bulletin-drawer-content" };
|
|
292
|
+
var _hoisted_11 = {
|
|
293
|
+
key: 0,
|
|
294
|
+
class: "c-bulletin-drawer-content-unit"
|
|
295
|
+
};
|
|
296
|
+
var _hoisted_12 = {
|
|
297
|
+
key: 1,
|
|
298
|
+
class: "c-bulletin-drawer-content-unit"
|
|
299
|
+
};
|
|
300
|
+
var _hoisted_13 = {
|
|
301
|
+
key: 0,
|
|
302
|
+
class: "c-bulletin-drawer-content-unit"
|
|
303
|
+
};
|
|
304
|
+
var _hoisted_14 = {
|
|
305
|
+
key: 1,
|
|
306
|
+
class: "c-bulletin-drawer-content-unit"
|
|
307
|
+
};
|
|
308
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
309
|
+
const _component_a_button = Button;
|
|
310
|
+
const _component_a_space = Space;
|
|
311
|
+
const _component_c_condition_search_criteria = resolveComponent("c-condition-search-criteria");
|
|
312
|
+
const _component_c_release_time_filter = resolveComponent("c-release-time-filter");
|
|
313
|
+
const _component_a_col = Col;
|
|
314
|
+
const _component_a_row = Row;
|
|
315
|
+
const _component_a_form_item = FormItem;
|
|
316
|
+
const _component_a_select = Select;
|
|
317
|
+
const _component_a_tree_select = TreeSelect;
|
|
318
|
+
const _component_c_select_multiple_tree_filter = resolveComponent("c-select-multiple-tree-filter");
|
|
319
|
+
const _component_a_form = Form;
|
|
320
|
+
const _component_a_drawer = Drawer;
|
|
321
|
+
return _ctx.initShow ? withDirectives((openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_a_drawer, {
|
|
322
|
+
class: "zt-drawer",
|
|
323
|
+
title: _ctx.title,
|
|
324
|
+
visible: _ctx.visible,
|
|
325
|
+
width: _ctx.width,
|
|
326
|
+
onClose: _ctx.handleClose
|
|
327
|
+
}, {
|
|
328
|
+
extra: withCtx(() => [createElementVNode("i", {
|
|
329
|
+
class: "zt-iconfont zt-icon-close",
|
|
330
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClose && _ctx.handleClose(...args))
|
|
331
|
+
})]),
|
|
332
|
+
footer: withCtx(() => [createVNode(_component_a_space, null, {
|
|
333
|
+
default: withCtx(() => [
|
|
334
|
+
createVNode(_component_a_button, { onClick: _ctx.handleClose }, {
|
|
335
|
+
default: withCtx(() => [createTextVNode("取消")]),
|
|
336
|
+
_: 1
|
|
337
|
+
}, 8, ["onClick"]),
|
|
338
|
+
createVNode(_component_a_button, {
|
|
339
|
+
type: "primary",
|
|
340
|
+
onClick: _ctx.handleReset
|
|
341
|
+
}, {
|
|
342
|
+
default: withCtx(() => [createTextVNode("重置")]),
|
|
343
|
+
_: 1
|
|
344
|
+
}, 8, ["onClick"]),
|
|
345
|
+
createVNode(_component_a_button, {
|
|
346
|
+
type: "primary",
|
|
347
|
+
onClick: _ctx.handleOk
|
|
348
|
+
}, {
|
|
349
|
+
default: withCtx(() => [createTextVNode("确定")]),
|
|
350
|
+
_: 1
|
|
351
|
+
}, 8, ["onClick"])
|
|
352
|
+
]),
|
|
353
|
+
_: 1
|
|
354
|
+
})]),
|
|
355
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2, [createVNode(_component_c_condition_search_criteria, {
|
|
356
|
+
"model-ref": _ctx.modelRef?.conditions,
|
|
357
|
+
operations: _ctx.operations,
|
|
358
|
+
type: "drawer",
|
|
359
|
+
onDelete: _ctx.handleDelete,
|
|
360
|
+
onDeleteAll: _ctx.handleDeleteAll
|
|
361
|
+
}, null, 8, [
|
|
362
|
+
"model-ref",
|
|
363
|
+
"operations",
|
|
364
|
+
"onDelete",
|
|
365
|
+
"onDeleteAll"
|
|
366
|
+
]), createVNode(_component_a_form, {
|
|
367
|
+
"label-col": { span: 5 },
|
|
368
|
+
class: "c-bulletin-drawer-form",
|
|
369
|
+
"label-align": "left"
|
|
370
|
+
}, {
|
|
371
|
+
default: withCtx(() => [
|
|
372
|
+
createElementVNode("div", _hoisted_3, [_hoisted_4, createVNode(_component_a_form_item, {
|
|
373
|
+
label: "发布时间",
|
|
374
|
+
class: "c-bulletin-drawer-content-form",
|
|
375
|
+
span: "24"
|
|
376
|
+
}, {
|
|
377
|
+
default: withCtx(() => [createVNode(_component_a_row, { class: "c-bulletin-drawer-row" }, {
|
|
378
|
+
default: withCtx(() => [createVNode(_component_a_col, { class: "c-bulletin-drawer-row-value-wrap" }, {
|
|
379
|
+
default: withCtx(() => [createVNode(_component_c_release_time_filter, {
|
|
380
|
+
releaseTime: _ctx.releaseTime,
|
|
381
|
+
"onUpdate:releaseTime": _cache[1] || (_cache[1] = ($event) => _ctx.releaseTime = $event)
|
|
382
|
+
}, null, 8, ["releaseTime"])]),
|
|
383
|
+
_: 1
|
|
384
|
+
})]),
|
|
385
|
+
_: 1
|
|
386
|
+
})]),
|
|
387
|
+
_: 1
|
|
388
|
+
})]),
|
|
389
|
+
_ctx.showLevelFilter ? (openBlock(), createElementBlock("div", _hoisted_5, [_hoisted_6, createVNode(_component_a_form_item, {
|
|
390
|
+
class: "c-bulletin-drawer-content-form",
|
|
391
|
+
label: "重要程度",
|
|
392
|
+
span: "24"
|
|
393
|
+
}, {
|
|
394
|
+
default: withCtx(() => [createVNode(_component_a_select, {
|
|
395
|
+
value: _ctx.levelIdList,
|
|
396
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => _ctx.levelIdList = $event),
|
|
397
|
+
"field-names": {
|
|
398
|
+
label: "name",
|
|
399
|
+
value: "id"
|
|
400
|
+
},
|
|
401
|
+
options: _ctx.bulletinLevelList,
|
|
402
|
+
mode: "multiple"
|
|
403
|
+
}, null, 8, ["value", "options"])]),
|
|
404
|
+
_: 1
|
|
405
|
+
})])) : createCommentVNode("", true),
|
|
406
|
+
_ctx.selectId === _ctx.BULLETIN_TREE_NODE_OF_ALL_ID ? (openBlock(), createElementBlock("div", _hoisted_7, [createElementVNode("span", _hoisted_8, toDisplayString(_ctx.showLevelFilter ? 3 : 2), 1), createVNode(_component_a_form_item, {
|
|
407
|
+
label: "通告类型",
|
|
408
|
+
class: "c-bulletin-drawer-content-form",
|
|
409
|
+
span: "24"
|
|
410
|
+
}, {
|
|
411
|
+
default: withCtx(() => [createVNode(_component_a_row, { class: "c-bulletin-drawer-row" }, {
|
|
412
|
+
default: withCtx(() => [createVNode(_component_a_col, { class: "c-bulletin-drawer-row-value-wrap" }, {
|
|
413
|
+
default: withCtx(() => [createVNode(_component_a_tree_select, {
|
|
414
|
+
value: _ctx.noticeTypeIdList,
|
|
415
|
+
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => _ctx.noticeTypeIdList = $event),
|
|
416
|
+
"tree-data": _ctx.bulletinTypeTree,
|
|
417
|
+
"tree-checkable": "",
|
|
418
|
+
"allow-clear": "",
|
|
419
|
+
multiple: "",
|
|
420
|
+
placeholder: "通告类型"
|
|
421
|
+
}, {
|
|
422
|
+
suffixIcon: withCtx(() => [_hoisted_9]),
|
|
423
|
+
_: 1
|
|
424
|
+
}, 8, ["value", "tree-data"])]),
|
|
425
|
+
_: 1
|
|
426
|
+
})]),
|
|
427
|
+
_: 1
|
|
428
|
+
})]),
|
|
429
|
+
_: 1
|
|
430
|
+
})])) : createCommentVNode("", true),
|
|
431
|
+
createElementVNode("div", _hoisted_10, [_ctx.showLevelFilter ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [_ctx.selectId === _ctx.BULLETIN_TREE_NODE_OF_ALL_ID ? (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(4))) : (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(3)))], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [_ctx.selectId === _ctx.BULLETIN_TREE_NODE_OF_ALL_ID ? (openBlock(), createElementBlock("span", _hoisted_13, toDisplayString(3))) : (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(2)))], 64)), createVNode(_component_a_form_item, {
|
|
432
|
+
label: "发布对象",
|
|
433
|
+
class: "c-bulletin-drawer-content-form",
|
|
434
|
+
span: "24"
|
|
435
|
+
}, {
|
|
436
|
+
default: withCtx(() => [createVNode(_component_a_row, { class: "c-bulletin-drawer-row" }, {
|
|
437
|
+
default: withCtx(() => [createVNode(_component_a_col, { class: "c-bulletin-drawer-row-value-wrap" }, {
|
|
438
|
+
default: withCtx(() => [createVNode(_component_c_select_multiple_tree_filter, {
|
|
439
|
+
humanList: _ctx.humanList,
|
|
440
|
+
"onUpdate:humanList": _cache[4] || (_cache[4] = ($event) => _ctx.humanList = $event)
|
|
441
|
+
}, null, 8, ["humanList"])]),
|
|
442
|
+
_: 1
|
|
443
|
+
})]),
|
|
444
|
+
_: 1
|
|
445
|
+
})]),
|
|
446
|
+
_: 1
|
|
447
|
+
})])
|
|
448
|
+
]),
|
|
449
|
+
_: 1
|
|
450
|
+
})])]),
|
|
451
|
+
_: 1
|
|
452
|
+
}, 8, [
|
|
453
|
+
"title",
|
|
454
|
+
"visible",
|
|
455
|
+
"width",
|
|
456
|
+
"onClose"
|
|
457
|
+
])], 512)), [[vShow, _ctx.visible]]) : createCommentVNode("", true);
|
|
458
|
+
}
|
|
459
|
+
var bulletin_drawer_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default, [["render", _sfc_render], ["__scopeId", "data-v-ab8edda6"]]);
|
|
460
|
+
//#endregion
|
|
461
|
+
export { bulletin_drawer_default as t };
|