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,297 @@
|
|
|
1
|
+
/*! egova-urbanpro-web v0.0.1 */
|
|
2
|
+
import { s as I18NextKey } from "./utils-4fqWDxwG.js";
|
|
3
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BwmSBgGG.js";
|
|
4
|
+
import { t as useNavTitle } from "./hooks-CuXq9j8q.js";
|
|
5
|
+
import "./index-lib-23bd328c-DtcJvHvJ.js";
|
|
6
|
+
import { t as info_card_default } from "./info-card-DgYedeWN.js";
|
|
7
|
+
import { cloneDeep, isNil } from "lodash-es";
|
|
8
|
+
import { flatNavs } from "@kyjian/libs/utils";
|
|
9
|
+
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineAsyncComponent, defineComponent, normalizeClass, openBlock, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, toDisplayString, watch, withCtx } from "vue";
|
|
10
|
+
import { t } from "i18next";
|
|
11
|
+
import { Menu, MenuItem, SubMenu } from "ant-design-vue/es";
|
|
12
|
+
import { ZtEmpty, ZtPanelBackground, ZtTypoText } from "zartd-biz/es/index";
|
|
13
|
+
import { useRoute, useRouter } from "vue-router";
|
|
14
|
+
//#region ../egova-urbanpro-core/src/components/panel-menu/index.ts?vue&type=script&src=true&lang.ts
|
|
15
|
+
var index_ts_vue_type_script_src_true_lang_default$1 = defineComponent({
|
|
16
|
+
name: "CPanelMenu",
|
|
17
|
+
components: { CInfoCard: info_card_default },
|
|
18
|
+
props: {
|
|
19
|
+
title: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: ""
|
|
22
|
+
},
|
|
23
|
+
componentName: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: void 0
|
|
26
|
+
},
|
|
27
|
+
componentNamePrefix: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "c"
|
|
30
|
+
},
|
|
31
|
+
navs: {
|
|
32
|
+
type: Array,
|
|
33
|
+
default: () => void 0
|
|
34
|
+
},
|
|
35
|
+
routes: {
|
|
36
|
+
type: Array,
|
|
37
|
+
default: () => void 0
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
emits: ["update:componentName"],
|
|
41
|
+
setup(props, { emit }) {
|
|
42
|
+
const route = useRoute();
|
|
43
|
+
const router = useRouter();
|
|
44
|
+
const menus = computed(() => {
|
|
45
|
+
if (!isNil(props.navs)) return props.navs.map((nav) => ({
|
|
46
|
+
...nav,
|
|
47
|
+
name: nav.route?.name ?? nav.name
|
|
48
|
+
}));
|
|
49
|
+
else if (!isNil(props.routes)) return routeToNav(props.routes);
|
|
50
|
+
return [];
|
|
51
|
+
});
|
|
52
|
+
const activeKey = ref();
|
|
53
|
+
const selectedKeys = ref();
|
|
54
|
+
const openKeys = ref([]);
|
|
55
|
+
/**
|
|
56
|
+
* 初始化
|
|
57
|
+
*/
|
|
58
|
+
function init() {
|
|
59
|
+
const menu = route.query.menu ?? menus.value[0]?.name;
|
|
60
|
+
if (menu) {
|
|
61
|
+
activeKey.value = menu;
|
|
62
|
+
selectedKeys.value = [menu];
|
|
63
|
+
getOpenKeys(menu);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* 组件名称
|
|
68
|
+
* @param value - 名称
|
|
69
|
+
*/
|
|
70
|
+
function computedComponentName(value) {
|
|
71
|
+
let name;
|
|
72
|
+
if (value) name = `${props.componentNamePrefix}-${value}`;
|
|
73
|
+
return name;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* 路由转导航
|
|
77
|
+
* @param routes - 路由列表
|
|
78
|
+
*/
|
|
79
|
+
function routeToNav(routes) {
|
|
80
|
+
return routes.map((route, index) => {
|
|
81
|
+
return {
|
|
82
|
+
id: index,
|
|
83
|
+
name: route.name?.toString() || `${index}`,
|
|
84
|
+
displayName: route.meta?.title || "",
|
|
85
|
+
icon: route.meta?.icon,
|
|
86
|
+
route,
|
|
87
|
+
children: route.children ? routeToNav(route.children) : void 0
|
|
88
|
+
};
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* 路由切换
|
|
93
|
+
* @param key - 路由
|
|
94
|
+
*/
|
|
95
|
+
function changeRouter(key) {
|
|
96
|
+
if (!isNil(key)) {
|
|
97
|
+
router.replace({
|
|
98
|
+
path: route.path,
|
|
99
|
+
query: {
|
|
100
|
+
...route.query,
|
|
101
|
+
menu: key
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
emit("update:componentName", computedComponentName(key));
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
function getOpenKeys(menu) {
|
|
108
|
+
const flatNavsArr = flatNavs(cloneDeep(menus.value));
|
|
109
|
+
const keys = [];
|
|
110
|
+
flatNavsArr.forEach((item) => {
|
|
111
|
+
if (item.name === menu) {
|
|
112
|
+
if (item?.route?.meta?.parent) keys.push(`${item.route.meta.parent}`);
|
|
113
|
+
keys.push(`${item.name}`);
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
openKeys.value = keys;
|
|
117
|
+
}
|
|
118
|
+
watch(() => menus.value, () => {
|
|
119
|
+
init();
|
|
120
|
+
}, {
|
|
121
|
+
deep: true,
|
|
122
|
+
immediate: true
|
|
123
|
+
});
|
|
124
|
+
watch(() => activeKey.value, (val) => {
|
|
125
|
+
changeRouter(val);
|
|
126
|
+
}, { immediate: true });
|
|
127
|
+
watch(() => selectedKeys.value, (val) => {
|
|
128
|
+
changeRouter(val?.[0]);
|
|
129
|
+
}, {
|
|
130
|
+
deep: true,
|
|
131
|
+
immediate: true
|
|
132
|
+
});
|
|
133
|
+
return {
|
|
134
|
+
menus,
|
|
135
|
+
activeKey,
|
|
136
|
+
selectedKeys,
|
|
137
|
+
openKeys
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region ../egova-urbanpro-core/src/components/panel-menu/index.vue
|
|
143
|
+
var _hoisted_1 = { class: "c-panel-menu" };
|
|
144
|
+
var _hoisted_2 = { class: "c-panel-menu-menu" };
|
|
145
|
+
var _hoisted_3 = { class: "c-panel-menu-menu-side" };
|
|
146
|
+
var _hoisted_4 = { key: 1 };
|
|
147
|
+
var _hoisted_5 = { class: "c-panel-menu-menu-content" };
|
|
148
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
149
|
+
const _component_zt_typo_text = ZtTypoText;
|
|
150
|
+
const _component_a_menu_item = MenuItem;
|
|
151
|
+
const _component_a_sub_menu = SubMenu;
|
|
152
|
+
const _component_a_menu = Menu;
|
|
153
|
+
const _component_zt_empty = ZtEmpty;
|
|
154
|
+
const _component_c_info_card = resolveComponent("c-info-card");
|
|
155
|
+
const _component_zt_panel_background = ZtPanelBackground;
|
|
156
|
+
return openBlock(), createBlock(_component_zt_panel_background, { padding: 0 }, {
|
|
157
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createVNode(_component_c_info_card, null, {
|
|
158
|
+
title: withCtx(() => [_ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }, void 0, true) : (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(_ctx.title), 1))]),
|
|
159
|
+
default: withCtx(() => [_ctx.menus?.length > 0 ? (openBlock(), createBlock(_component_a_menu, {
|
|
160
|
+
key: 0,
|
|
161
|
+
selectedKeys: _ctx.selectedKeys,
|
|
162
|
+
"onUpdate:selectedKeys": _cache[0] || (_cache[0] = ($event) => _ctx.selectedKeys = $event),
|
|
163
|
+
openKeys: _ctx.openKeys,
|
|
164
|
+
"onUpdate:openKeys": _cache[1] || (_cache[1] = ($event) => _ctx.openKeys = $event),
|
|
165
|
+
class: "c-panel-menu-menu-menus",
|
|
166
|
+
mode: "inline"
|
|
167
|
+
}, {
|
|
168
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menus, (menu) => {
|
|
169
|
+
return openBlock(), createElementBlock(Fragment, { key: menu.name }, [menu.children && menu.children.length > 0 ? (openBlock(), createBlock(_component_a_sub_menu, {
|
|
170
|
+
key: menu.name,
|
|
171
|
+
title: menu.displayName ?? ""
|
|
172
|
+
}, createSlots({
|
|
173
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(menu.children, (m) => {
|
|
174
|
+
return openBlock(), createBlock(_component_a_menu_item, {
|
|
175
|
+
key: m.name,
|
|
176
|
+
title: m.displayName ?? ""
|
|
177
|
+
}, createSlots({
|
|
178
|
+
default: withCtx(() => [createVNode(_component_zt_typo_text, null, {
|
|
179
|
+
default: withCtx(() => [createTextVNode(toDisplayString(m.displayName), 1)]),
|
|
180
|
+
_: 2
|
|
181
|
+
}, 1024)]),
|
|
182
|
+
_: 2
|
|
183
|
+
}, [m.icon ? {
|
|
184
|
+
name: "icon",
|
|
185
|
+
fn: withCtx(() => [createElementVNode("div", { class: normalizeClass(["c-panel-menu-menu-icon", `icon-${m.name}`]) }, [createElementVNode("i", { class: normalizeClass(m.icon) }, null, 2)], 2)]),
|
|
186
|
+
key: "0"
|
|
187
|
+
} : void 0]), 1032, ["title"]);
|
|
188
|
+
}), 128))]),
|
|
189
|
+
_: 2
|
|
190
|
+
}, [menu.icon ? {
|
|
191
|
+
name: "icon",
|
|
192
|
+
fn: withCtx(() => [createElementVNode("div", { class: normalizeClass(["c-panel-menu-menu-icon", `icon-${menu.name}`]) }, [createElementVNode("i", { class: normalizeClass(menu.icon) }, null, 2)], 2)]),
|
|
193
|
+
key: "0"
|
|
194
|
+
} : void 0]), 1032, ["title"])) : (openBlock(), createBlock(_component_a_menu_item, {
|
|
195
|
+
key: menu.name,
|
|
196
|
+
title: menu.displayName ?? ""
|
|
197
|
+
}, createSlots({
|
|
198
|
+
default: withCtx(() => [createVNode(_component_zt_typo_text, null, {
|
|
199
|
+
default: withCtx(() => [createTextVNode(toDisplayString(menu.displayName), 1)]),
|
|
200
|
+
_: 2
|
|
201
|
+
}, 1024)]),
|
|
202
|
+
_: 2
|
|
203
|
+
}, [menu.icon ? {
|
|
204
|
+
name: "icon",
|
|
205
|
+
fn: withCtx(() => [createElementVNode("div", { class: normalizeClass(["c-panel-menu-menu-icon", `icon-${menu.name}`]) }, [createElementVNode("i", { class: normalizeClass(menu.icon) }, null, 2)], 2)]),
|
|
206
|
+
key: "0"
|
|
207
|
+
} : void 0]), 1032, ["title"]))], 64);
|
|
208
|
+
}), 128))]),
|
|
209
|
+
_: 1
|
|
210
|
+
}, 8, ["selectedKeys", "openKeys"])) : (openBlock(), createBlock(_component_zt_empty, {
|
|
211
|
+
key: 1,
|
|
212
|
+
center: "",
|
|
213
|
+
description: "请配置导航权限"
|
|
214
|
+
}))]),
|
|
215
|
+
_: 3
|
|
216
|
+
})]), createElementVNode("div", _hoisted_5, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])])])]),
|
|
217
|
+
_: 3
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
//#endregion
|
|
221
|
+
//#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-config/index.ts?vue&type=script&src=true&lang.ts
|
|
222
|
+
/**
|
|
223
|
+
* 通知公告配置
|
|
224
|
+
*/
|
|
225
|
+
var index_ts_vue_type_script_src_true_lang_default = defineComponent({
|
|
226
|
+
name: "VBuilderBusinessBulletinConfig",
|
|
227
|
+
components: {
|
|
228
|
+
CPanelMenu: /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default$1, [["render", _sfc_render$1], ["__scopeId", "data-v-e5b9172e"]]),
|
|
229
|
+
VBulletinType: defineAsyncComponent(() => import("./bulletin-type-CQS6_MYv.js")),
|
|
230
|
+
VBulletinLevel: defineAsyncComponent(() => import("./bulletin-level-Cz_6Mg2x.js")),
|
|
231
|
+
VBulletinProperty: defineAsyncComponent(() => import("./bulletin-property-CvohCK8q.js"))
|
|
232
|
+
},
|
|
233
|
+
setup() {
|
|
234
|
+
const title = ref(`${t(I18NextKey.NOTICE_SHORT)}配置`);
|
|
235
|
+
useNavTitle({
|
|
236
|
+
title,
|
|
237
|
+
replace: true,
|
|
238
|
+
updateDocumentTitle: true
|
|
239
|
+
});
|
|
240
|
+
return {
|
|
241
|
+
componentName: ref(""),
|
|
242
|
+
routes: ref([
|
|
243
|
+
{
|
|
244
|
+
name: "bulletin-type",
|
|
245
|
+
meta: {
|
|
246
|
+
title: `${t(I18NextKey.NOTICE_SHORT)}类型管理`,
|
|
247
|
+
icon: "ega-core-iconfont ega-core-icon-classification"
|
|
248
|
+
},
|
|
249
|
+
path: "",
|
|
250
|
+
redirect: ""
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: "bulletin-level",
|
|
254
|
+
meta: {
|
|
255
|
+
title: `${t(I18NextKey.NOTICE_SHORT)}等级管理`,
|
|
256
|
+
icon: "zt-iconfont zt-icon-surface-task"
|
|
257
|
+
},
|
|
258
|
+
path: "",
|
|
259
|
+
redirect: ""
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
name: "bulletin-property",
|
|
263
|
+
meta: {
|
|
264
|
+
title: `${t(I18NextKey.NOTICE_SHORT)}属性管理`,
|
|
265
|
+
icon: "zt-iconfont zt-icon-surface-document"
|
|
266
|
+
},
|
|
267
|
+
path: "",
|
|
268
|
+
redirect: ""
|
|
269
|
+
}
|
|
270
|
+
]),
|
|
271
|
+
title
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
//#endregion
|
|
276
|
+
//#region ../egova-urbanpro-extend/src/views/bulletin/bulletin-config/index.vue
|
|
277
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
278
|
+
const _component_c_panel_menu = resolveComponent("c-panel-menu");
|
|
279
|
+
return openBlock(), createBlock(_component_c_panel_menu, {
|
|
280
|
+
"component-name": _ctx.componentName,
|
|
281
|
+
"onUpdate:componentName": _cache[0] || (_cache[0] = ($event) => _ctx.componentName = $event),
|
|
282
|
+
class: "v-bulletin-config",
|
|
283
|
+
"component-name-prefix": "v",
|
|
284
|
+
routes: _ctx.routes,
|
|
285
|
+
title: _ctx.title
|
|
286
|
+
}, {
|
|
287
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(_ctx.componentName)))]),
|
|
288
|
+
_: 1
|
|
289
|
+
}, 8, [
|
|
290
|
+
"component-name",
|
|
291
|
+
"routes",
|
|
292
|
+
"title"
|
|
293
|
+
]);
|
|
294
|
+
}
|
|
295
|
+
var bulletin_config_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default, [["render", _sfc_render], ["__scopeId", "data-v-0e71abab"]]);
|
|
296
|
+
//#endregion
|
|
297
|
+
export { bulletin_config_default as default };
|