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,58 @@
|
|
|
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 { createElementBlock, createVNode, defineComponent, mergeProps, openBlock } from "vue";
|
|
4
|
+
import { Select } from "ant-design-vue/es";
|
|
5
|
+
//#region ../egova-urbanpro-core/src/components/linglong/condition-panel/components/select-radio-filter/index.ts?vue&type=script&src=true&lang.ts
|
|
6
|
+
var index_ts_vue_type_script_src_true_lang_default = defineComponent({
|
|
7
|
+
name: "CSelectRadioFilter",
|
|
8
|
+
inheritAttrs: false,
|
|
9
|
+
props: {
|
|
10
|
+
name: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: ""
|
|
13
|
+
},
|
|
14
|
+
modelRef: {
|
|
15
|
+
type: Object,
|
|
16
|
+
default: () => null
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
emits: ["change", "update:modelRef"],
|
|
20
|
+
setup(props, { emit, expose }) {
|
|
21
|
+
function getValue() {
|
|
22
|
+
return props.modelRef[props.name];
|
|
23
|
+
}
|
|
24
|
+
function change(value, option) {
|
|
25
|
+
emit("change", value);
|
|
26
|
+
emit("update:modelRef", {
|
|
27
|
+
...props.modelRef,
|
|
28
|
+
[props.name]: {
|
|
29
|
+
...props.modelRef[props.name],
|
|
30
|
+
label: option.label
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
expose({ getValue });
|
|
35
|
+
return {
|
|
36
|
+
change,
|
|
37
|
+
getValue
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region ../egova-urbanpro-core/src/components/linglong/condition-panel/components/select-radio-filter/index.vue
|
|
43
|
+
var _hoisted_1 = { class: "c-select-radio-filter" };
|
|
44
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
45
|
+
const _component_a_select = Select;
|
|
46
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_a_select, mergeProps(_ctx.$attrs, {
|
|
47
|
+
value: _ctx.modelRef[_ctx.name].value1,
|
|
48
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.modelRef[_ctx.name].value1 = $event),
|
|
49
|
+
style: { "width": "100%" },
|
|
50
|
+
"option-filter-prop": "label",
|
|
51
|
+
"allow-clear": "",
|
|
52
|
+
"show-search": "",
|
|
53
|
+
onChange: _ctx.change
|
|
54
|
+
}), null, 16, ["value", "onChange"])]);
|
|
55
|
+
}
|
|
56
|
+
var select_radio_filter_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default, [["render", _sfc_render], ["__scopeId", "data-v-b85a877a"]]);
|
|
57
|
+
//#endregion
|
|
58
|
+
export { select_radio_filter_default as default };
|
|
@@ -0,0 +1,94 @@
|
|
|
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 { isEmpty } from "lodash-es";
|
|
4
|
+
import { createCommentVNode, createElementBlock, createVNode, defineComponent, mergeProps, normalizeClass, normalizeStyle, openBlock, ref, withCtx } from "vue";
|
|
5
|
+
import { TreeSelect } from "ant-design-vue/es";
|
|
6
|
+
import { ZtTextSearch } from "zartd-biz/es/index";
|
|
7
|
+
//#region ../egova-urbanpro-core/src/components/linglong/condition-panel/components/select-single-tree-filter/index.ts?vue&type=script&src=true&lang.ts
|
|
8
|
+
var index_ts_vue_type_script_src_true_lang_default = defineComponent({
|
|
9
|
+
name: "CSelectSingleTreeFilter",
|
|
10
|
+
inheritAttrs: false,
|
|
11
|
+
props: {
|
|
12
|
+
name: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: ""
|
|
15
|
+
},
|
|
16
|
+
modelRef: {
|
|
17
|
+
type: Object,
|
|
18
|
+
default: () => null
|
|
19
|
+
},
|
|
20
|
+
options: {
|
|
21
|
+
type: Array,
|
|
22
|
+
default: () => []
|
|
23
|
+
},
|
|
24
|
+
dataset: {
|
|
25
|
+
type: Object,
|
|
26
|
+
default: () => ({})
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
emits: ["update:modelRef"],
|
|
30
|
+
setup(props, { emit, expose }) {
|
|
31
|
+
const searchValue = ref("");
|
|
32
|
+
function getValue() {
|
|
33
|
+
return props.modelRef[props.name];
|
|
34
|
+
}
|
|
35
|
+
function handleChange(value, label) {
|
|
36
|
+
emit("update:modelRef", {
|
|
37
|
+
...props.modelRef,
|
|
38
|
+
[props.name]: {
|
|
39
|
+
...props.modelRef[props.name],
|
|
40
|
+
label: label?.[0]
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
expose({ getValue });
|
|
45
|
+
return {
|
|
46
|
+
handleChange,
|
|
47
|
+
isEmpty,
|
|
48
|
+
searchValue,
|
|
49
|
+
getValue
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region ../egova-urbanpro-core/src/components/linglong/condition-panel/components/select-single-tree-filter/index.vue
|
|
55
|
+
var _hoisted_1 = { class: "c-select-single-tree-filter" };
|
|
56
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
57
|
+
const _component_zt_text_search = ZtTextSearch;
|
|
58
|
+
const _component_a_tree_select = TreeSelect;
|
|
59
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_a_tree_select, mergeProps(_ctx.$attrs, {
|
|
60
|
+
value: _ctx.modelRef[_ctx.name].value1,
|
|
61
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.modelRef[_ctx.name].value1 = $event),
|
|
62
|
+
searchValue: _ctx.searchValue,
|
|
63
|
+
"onUpdate:searchValue": _cache[1] || (_cache[1] = ($event) => _ctx.searchValue = $event),
|
|
64
|
+
"show-search": "",
|
|
65
|
+
"tree-default-expand-all": "",
|
|
66
|
+
"allow-clear": "",
|
|
67
|
+
"tree-node-filter-prop": "label",
|
|
68
|
+
"tree-data": _ctx.options,
|
|
69
|
+
"field-names": {
|
|
70
|
+
children: "children",
|
|
71
|
+
label: "label",
|
|
72
|
+
value: "label"
|
|
73
|
+
},
|
|
74
|
+
onChange: _ctx.handleChange
|
|
75
|
+
}), {
|
|
76
|
+
title: withCtx(({ label }) => [!_ctx.isEmpty(_ctx.dataset?.icon) ? (openBlock(), createElementBlock("i", {
|
|
77
|
+
key: 0,
|
|
78
|
+
class: normalizeClass([_ctx.dataset?.icon?.icon, "c-select-single-tree-filter-icon"]),
|
|
79
|
+
style: normalizeStyle({ color: _ctx.dataset?.icon?.color })
|
|
80
|
+
}, null, 6)) : createCommentVNode("", true), createVNode(_component_zt_text_search, {
|
|
81
|
+
search: _ctx.searchValue,
|
|
82
|
+
text: label
|
|
83
|
+
}, null, 8, ["search", "text"])]),
|
|
84
|
+
_: 1
|
|
85
|
+
}, 16, [
|
|
86
|
+
"value",
|
|
87
|
+
"searchValue",
|
|
88
|
+
"tree-data",
|
|
89
|
+
"onChange"
|
|
90
|
+
])]);
|
|
91
|
+
}
|
|
92
|
+
var select_single_tree_filter_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default, [["render", _sfc_render], ["__scopeId", "data-v-3001c3a8"]]);
|
|
93
|
+
//#endregion
|
|
94
|
+
export { select_single_tree_filter_default as default };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/*! egova-urbanpro-web v0.0.1 */
|
|
2
|
+
import { merge } from "lodash-es";
|
|
3
|
+
import { auth } from "@kyjian/libs/utils";
|
|
4
|
+
import { BaseService } from "@kyjian/libs/services";
|
|
5
|
+
//#region ../egova-urbanpro-core/src/components/linglong/service.ts
|
|
6
|
+
var BaseLinglongService = class extends BaseService {
|
|
7
|
+
constructor(http) {
|
|
8
|
+
super(http);
|
|
9
|
+
this.http = http;
|
|
10
|
+
this.init();
|
|
11
|
+
this.setAuthToken();
|
|
12
|
+
}
|
|
13
|
+
http;
|
|
14
|
+
/**
|
|
15
|
+
* 是否开启页面信息缓存
|
|
16
|
+
*/
|
|
17
|
+
pageCacheEnabled = true;
|
|
18
|
+
/**
|
|
19
|
+
* 是否开启页面布局缓存
|
|
20
|
+
*/
|
|
21
|
+
pageLayoutCacheEnabled = true;
|
|
22
|
+
/**
|
|
23
|
+
* 初始化
|
|
24
|
+
*/
|
|
25
|
+
init() {
|
|
26
|
+
if ("pageLayoutCacheEnabled" in window.commonSetting) {
|
|
27
|
+
this.pageLayoutCacheEnabled = window.commonSetting.pageLayoutCacheEnabled === "true" || window.commonSetting.pageLayoutCacheEnabled === "1";
|
|
28
|
+
this.pageCacheEnabled = this.pageLayoutCacheEnabled;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* 运行时设置 token
|
|
33
|
+
*/
|
|
34
|
+
setAuthToken() {
|
|
35
|
+
this.http._http.interceptors.request.use(async (config) => {
|
|
36
|
+
try {
|
|
37
|
+
const { accessToken: casToken } = await auth.get() ?? { accessToken: "" };
|
|
38
|
+
if (casToken && !config.noAuthorization) merge(config, { headers: { Authorization: `bearer ${casToken}` } });
|
|
39
|
+
} catch (error) {
|
|
40
|
+
return Promise.reject(error);
|
|
41
|
+
}
|
|
42
|
+
return config;
|
|
43
|
+
}, (error) => {
|
|
44
|
+
return Promise.reject(error);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region ../egova-urbanpro-core/src/components/linglong/condition-panel/service.ts
|
|
50
|
+
var Service = class extends BaseLinglongService {
|
|
51
|
+
getUserTreeData(tenantId, id) {
|
|
52
|
+
return this.http.post(`/unity/user/tenant/${tenantId}/department-user-tree`, {}, {
|
|
53
|
+
title: "获取灵珑人员树",
|
|
54
|
+
params: { id }
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
getPageLayout(pageId) {
|
|
58
|
+
return this.http.get(`/unity/widget-page/${pageId}/layout`, {}, {
|
|
59
|
+
title: "获取灵珑页面布局信息",
|
|
60
|
+
showErrorMessage: false,
|
|
61
|
+
cache: this.pageLayoutCacheEnabled
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
getDepartmentTreeData(tenantId, id) {
|
|
65
|
+
return this.http.get(`/unity/department/tenant/${tenantId}/department/tree`, { params: { id } }, { title: "获取灵珑部门树" });
|
|
66
|
+
}
|
|
67
|
+
getRegionTreeData() {
|
|
68
|
+
return this.http.get("/unity/region/tree", {}, { title: "获取灵珑区域树" });
|
|
69
|
+
}
|
|
70
|
+
async getDepartmentUserIdsByKeyword(params) {
|
|
71
|
+
return this.http.post("/unity/user/tree/keyword", params, { title: "模糊查询人员树" });
|
|
72
|
+
}
|
|
73
|
+
async getDepartmentIdsByKeyword(params) {
|
|
74
|
+
return this.http.post("/unity/department/tree/keyword", params, { title: "模糊查询部门树" });
|
|
75
|
+
}
|
|
76
|
+
getTreeOption(params) {
|
|
77
|
+
return this.http.post("/unity/table-data/list", params, { title: "获取选项" });
|
|
78
|
+
}
|
|
79
|
+
getTreeSelect(pageId, params) {
|
|
80
|
+
return this.http.post(`/unity/widget-page/${pageId}/tree-select`, params, { title: "获取选项" });
|
|
81
|
+
}
|
|
82
|
+
getTreeData(pageId, data) {
|
|
83
|
+
return this.http.post(`/unity/widget-page/${pageId}/tree/data/page`, data, {
|
|
84
|
+
title: "获取树数据",
|
|
85
|
+
headers: { "Api-Name": "tree.queryTreeData" }
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
getTreePageLayout(pageId) {
|
|
89
|
+
return this.http.get(`/unity/widget-page/${pageId}/layout?api-name=WidgetPage.layout`, {}, {
|
|
90
|
+
title: "获取灵珑页面布局信息",
|
|
91
|
+
showErrorMessage: false,
|
|
92
|
+
cache: this.pageLayoutCacheEnabled
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
getProxyApiData(data) {
|
|
96
|
+
return this.http.post(`/world/unity/api/proxy/run`, data, { title: "获取网关数据" });
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
//#endregion
|
|
100
|
+
export { BaseLinglongService as n, Service as t };
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/*! egova-urbanpro-web v0.0.1 */
|
|
2
|
+
import { O as BaseService } from "./utils-4fqWDxwG.js";
|
|
3
|
+
//#region ../egova-urbanpro-core/src/views/builder/business/msg-center/service.ts
|
|
4
|
+
var MsgService = class extends BaseService {
|
|
5
|
+
getMsgGroupList(params) {
|
|
6
|
+
return this.http.get("/unity/builder/msg/group/list", { params }, {
|
|
7
|
+
title: "获取消息分组列表",
|
|
8
|
+
showErrorMessage: true
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
saveMsgGroupListItem(params) {
|
|
12
|
+
return this.http.post("/unity/builder/msg/group/save", params, {
|
|
13
|
+
title: params.id ? "保存消息分组" : "新增消息分组",
|
|
14
|
+
showTip: true,
|
|
15
|
+
showErrorMessage: true
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
deleteMsgGroupListItem(id) {
|
|
19
|
+
return this.http.post("/unity/builder/msg/group/delete", { id }, {
|
|
20
|
+
headers: { "Content-Type": "application/x-www-form-urlencoded" },
|
|
21
|
+
title: "删除消息分组",
|
|
22
|
+
showTip: true,
|
|
23
|
+
showErrorMessage: true
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
getMsgBusinessList() {
|
|
27
|
+
return this.http.get("/unity/sysdomain/get-all", {}, {
|
|
28
|
+
title: "获取业务列表",
|
|
29
|
+
showErrorMessage: true
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
getMsgBusinessApplicationList(params) {
|
|
33
|
+
return this.http.get("/unity/builder/bizconfig/appbiz/getapplist", { params }, {
|
|
34
|
+
title: "获取业务绑定的应用列表",
|
|
35
|
+
showErrorMessage: true
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
getMsgBusinessApplicationNotifacationList(params) {
|
|
39
|
+
return this.http.get("/unity/builder/msg/app-config/list", { params }, {
|
|
40
|
+
title: "获取应用消息配置列表",
|
|
41
|
+
showErrorMessage: true
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
getAppConfigPage(params) {
|
|
45
|
+
return this.http.post("/unity/builder/msg/app-config/page", params, {
|
|
46
|
+
title: "获取消息分页列表",
|
|
47
|
+
showTip: false
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
getMsgBusinessApplicationListOfAll(params) {
|
|
51
|
+
return this.http.get("/unity/builder/msg/app-config/list-enable-flag", { params }, {
|
|
52
|
+
title: "获取应用所有消息配置列表",
|
|
53
|
+
showErrorMessage: true
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
saveMsgBusinessApplicationNotifacation(params) {
|
|
57
|
+
return this.http.post("/unity/builder/msg/app-config/save", params, {
|
|
58
|
+
title: "保存消息配置",
|
|
59
|
+
showTip: true,
|
|
60
|
+
showErrorMessage: true
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
clearCache() {
|
|
64
|
+
return this.http.get("/unity/im/app-config/clear-cache", {}, {
|
|
65
|
+
title: "清除缓存",
|
|
66
|
+
showTip: false,
|
|
67
|
+
showErrorMessage: false
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
getMsgSendTypeList() {
|
|
71
|
+
return this.http.get("/unity/builder/msg/app-config/send-type-list", {}, {
|
|
72
|
+
title: "获取推送方式列表",
|
|
73
|
+
showErrorMessage: true
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
getMsgBusinessApplicationNum(params) {
|
|
77
|
+
return this.http.get("/unity/builder/msg/app-config/get-app-list-num", { params }, {
|
|
78
|
+
title: "获取业务应用配置数量",
|
|
79
|
+
showErrorMessage: true
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
getMsgApplicationGroup() {
|
|
83
|
+
return this.http.get("/unity/builder/bizconfig/appbiz/sync-app-biz-tree", {}, {
|
|
84
|
+
title: "获取应用分组列表树",
|
|
85
|
+
showErrorMessage: true
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
orderMsgGroupList(params) {
|
|
89
|
+
return this.http.post("/unity/builder/msg/group/batch-ordered", params, {
|
|
90
|
+
title: "消息分组排序",
|
|
91
|
+
showTip: true
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
orderMsgUserConfigGroupList(params) {
|
|
95
|
+
return this.http.post("/unity/msg/user-config/batch-ordered", params, {
|
|
96
|
+
title: "消息分组排序",
|
|
97
|
+
showTip: true
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
getRecArriveRules(params) {
|
|
101
|
+
return this.http.post("/unity/im/msg/get-msg-rule", params, { title: "获取规则列表" });
|
|
102
|
+
}
|
|
103
|
+
saveRecArrive(params) {
|
|
104
|
+
return this.http.post("/unity/im/msg/save-update-msg-rule", params, {
|
|
105
|
+
title: "保存规则",
|
|
106
|
+
showTip: true,
|
|
107
|
+
showErrorMessage: true
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
deleteRecArrive(ruleId) {
|
|
111
|
+
return this.http.post(`/unity/im/msg/delete-msg-rule?ruleId=${ruleId}`, {}, {
|
|
112
|
+
title: "删除规则",
|
|
113
|
+
showTip: true,
|
|
114
|
+
showErrorMessage: true
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
copyRecArrive(ruleId) {
|
|
118
|
+
return this.http.post(`/unity/im/msg/copy-msg-rule?ruleId=${ruleId}`, {}, {
|
|
119
|
+
title: "复制规则",
|
|
120
|
+
showTip: true,
|
|
121
|
+
showErrorMessage: true
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
//#endregion
|
|
126
|
+
export { MsgService as t };
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { r as multipleOptions } from "./operation-selector-TEcr5s2w.js";
|
|
4
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, mergeProps, openBlock } from "vue";
|
|
5
|
+
import { Input } from "ant-design-vue/es";
|
|
6
|
+
//#region ../egova-urbanpro-core/src/components/linglong/condition-panel/components/text-filter/index.ts?vue&type=script&src=true&lang.ts
|
|
7
|
+
var index_ts_vue_type_script_src_true_lang_default = defineComponent({
|
|
8
|
+
name: "CTextFilter",
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
props: {
|
|
11
|
+
name: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
modelRef: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: () => null
|
|
18
|
+
},
|
|
19
|
+
operation: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "Equal"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
setup(props, { expose }) {
|
|
25
|
+
function getValue() {
|
|
26
|
+
return props.modelRef[props.name];
|
|
27
|
+
}
|
|
28
|
+
const ignoreTrim = computed(() => multipleOptions.includes(props.operation));
|
|
29
|
+
expose({ getValue });
|
|
30
|
+
return {
|
|
31
|
+
getValue,
|
|
32
|
+
ignoreTrim
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region ../egova-urbanpro-core/src/components/linglong/condition-panel/components/text-filter/index.vue
|
|
38
|
+
var _hoisted_1 = { class: "c-text-filter" };
|
|
39
|
+
var _hoisted_2 = {
|
|
40
|
+
key: 2,
|
|
41
|
+
class: "c-text-filter-symbol"
|
|
42
|
+
};
|
|
43
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
44
|
+
const _component_a_input = Input;
|
|
45
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
46
|
+
_ctx.ignoreTrim ? (openBlock(), createBlock(_component_a_input, mergeProps({
|
|
47
|
+
key: 0,
|
|
48
|
+
value: _ctx.modelRef[_ctx.name].value1,
|
|
49
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.modelRef[_ctx.name].value1 = $event)
|
|
50
|
+
}, _ctx.$attrs, { "allow-clear": "" }), null, 16, ["value"])) : (openBlock(), createBlock(_component_a_input, mergeProps({
|
|
51
|
+
key: 1,
|
|
52
|
+
value: _ctx.modelRef[_ctx.name].value1,
|
|
53
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => _ctx.modelRef[_ctx.name].value1 = $event),
|
|
54
|
+
valueModifiers: { trim: true }
|
|
55
|
+
}, _ctx.$attrs, { "allow-clear": "" }), null, 16, ["value"])),
|
|
56
|
+
_ctx.operation === "Between" ? (openBlock(), createElementBlock("span", _hoisted_2, "-")) : createCommentVNode("", true),
|
|
57
|
+
_ctx.operation === "Between" ? (openBlock(), createBlock(_component_a_input, mergeProps({
|
|
58
|
+
key: 3,
|
|
59
|
+
value: _ctx.modelRef[_ctx.name].value2,
|
|
60
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => _ctx.modelRef[_ctx.name].value2 = $event)
|
|
61
|
+
}, _ctx.$attrs, { "allow-clear": "" }), null, 16, ["value"])) : createCommentVNode("", true)
|
|
62
|
+
]);
|
|
63
|
+
}
|
|
64
|
+
var text_filter_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default, [["render", _sfc_render], ["__scopeId", "data-v-1f02f5b9"]]);
|
|
65
|
+
//#endregion
|
|
66
|
+
export { text_filter_default as default };
|
|
@@ -0,0 +1,211 @@
|
|
|
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 { a as TimeType } from "./types-DjDPFQk1.js";
|
|
4
|
+
import { Fragment, computed, createBlock, createElementBlock, createTextVNode, createVNode, defineComponent, mergeProps, openBlock, ref, renderList, toDisplayString, watch, withCtx } from "vue";
|
|
5
|
+
import { DatePicker, RangePicker, Tag } from "ant-design-vue/es";
|
|
6
|
+
import dayjs from "dayjs";
|
|
7
|
+
//#region ../egova-urbanpro-core/src/components/linglong/condition-panel/components/time-filter/constants.ts
|
|
8
|
+
var TIMETYPE = {
|
|
9
|
+
YYYY: "year",
|
|
10
|
+
"YYYY-MM": "month",
|
|
11
|
+
"YYYY-MM-DD": "day",
|
|
12
|
+
"YYYY-MM-DD HH:mm:ss": "time"
|
|
13
|
+
};
|
|
14
|
+
var OPERATE_UNIT = /* @__PURE__ */ function(OPERATE_UNIT) {
|
|
15
|
+
OPERATE_UNIT["HOUR"] = "hour";
|
|
16
|
+
OPERATE_UNIT["DAY"] = "day";
|
|
17
|
+
OPERATE_UNIT["WEEK"] = "week";
|
|
18
|
+
OPERATE_UNIT["MONTH"] = "month";
|
|
19
|
+
OPERATE_UNIT["QUARTER"] = "quarter";
|
|
20
|
+
OPERATE_UNIT["YEAR"] = "year";
|
|
21
|
+
return OPERATE_UNIT;
|
|
22
|
+
}({});
|
|
23
|
+
var OPERATE_TYPE = /* @__PURE__ */ function(OPERATE_TYPE) {
|
|
24
|
+
OPERATE_TYPE["RECENT"] = "recent";
|
|
25
|
+
OPERATE_TYPE["UP"] = "up";
|
|
26
|
+
return OPERATE_TYPE;
|
|
27
|
+
}({});
|
|
28
|
+
var operateTypeMap = {
|
|
29
|
+
[OPERATE_TYPE.RECENT]: "近",
|
|
30
|
+
[OPERATE_TYPE.UP]: "上"
|
|
31
|
+
};
|
|
32
|
+
var operateUnitMap = {
|
|
33
|
+
[OPERATE_UNIT.HOUR]: "时",
|
|
34
|
+
[OPERATE_UNIT.DAY]: "天",
|
|
35
|
+
[OPERATE_UNIT.WEEK]: "周",
|
|
36
|
+
[OPERATE_UNIT.MONTH]: "月",
|
|
37
|
+
[OPERATE_UNIT.QUARTER]: "季度",
|
|
38
|
+
[OPERATE_UNIT.YEAR]: "年"
|
|
39
|
+
};
|
|
40
|
+
var BETWEEN_RANGE_MAP = {
|
|
41
|
+
今天: [dayjs().startOf("day"), dayjs().endOf("day")],
|
|
42
|
+
本周: [dayjs().startOf("week"), dayjs().endOf("week")],
|
|
43
|
+
本月: [dayjs().startOf("month"), dayjs().endOf("month")],
|
|
44
|
+
本季度: [dayjs().startOf("quarter"), dayjs().endOf("quarter")],
|
|
45
|
+
本年: [dayjs().startOf("year"), dayjs().endOf("year")],
|
|
46
|
+
最近一周: [dayjs().subtract(1, "weeks"), dayjs()],
|
|
47
|
+
最近一个月: [dayjs().subtract(1, "months"), dayjs()],
|
|
48
|
+
最近三个月: [dayjs().subtract(3, "months"), dayjs()]
|
|
49
|
+
};
|
|
50
|
+
var SINGLE_RANGE_MAP = {
|
|
51
|
+
今天: dayjs(),
|
|
52
|
+
昨天: dayjs().subtract(1, "day"),
|
|
53
|
+
明天: dayjs().subtract(1, "day"),
|
|
54
|
+
一周前: dayjs().subtract(1, "week"),
|
|
55
|
+
一周后: dayjs().add(1, "week"),
|
|
56
|
+
一月前: dayjs().subtract(1, "month"),
|
|
57
|
+
一月后: dayjs().add(1, "month")
|
|
58
|
+
};
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region ../egova-urbanpro-core/src/components/linglong/condition-panel/components/time-filter/index.ts?vue&type=script&src=true&lang.ts
|
|
61
|
+
var index_ts_vue_type_script_src_true_lang_default = defineComponent({
|
|
62
|
+
name: "CTimeFilter",
|
|
63
|
+
inheritAttrs: false,
|
|
64
|
+
props: {
|
|
65
|
+
name: {
|
|
66
|
+
type: String,
|
|
67
|
+
default: ""
|
|
68
|
+
},
|
|
69
|
+
modelRef: {
|
|
70
|
+
type: Object,
|
|
71
|
+
default: () => null
|
|
72
|
+
},
|
|
73
|
+
operation: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: "Equal"
|
|
76
|
+
},
|
|
77
|
+
rangePlaceholder: {
|
|
78
|
+
type: Array,
|
|
79
|
+
default: () => []
|
|
80
|
+
},
|
|
81
|
+
timeRange: {
|
|
82
|
+
type: Object,
|
|
83
|
+
default: () => ({})
|
|
84
|
+
},
|
|
85
|
+
customTimeRange: {
|
|
86
|
+
type: Array,
|
|
87
|
+
default: () => []
|
|
88
|
+
},
|
|
89
|
+
format: {
|
|
90
|
+
type: String,
|
|
91
|
+
default: "YYYY-MM-DD"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
emits: ["update"],
|
|
95
|
+
setup(props, { emit, expose }) {
|
|
96
|
+
const timeType = ref("");
|
|
97
|
+
const isTime = ref(false);
|
|
98
|
+
function getValue() {
|
|
99
|
+
if (props.operation !== "Between") return { value1: [props.modelRef[props.name].value1] };
|
|
100
|
+
else return props.modelRef[props.name];
|
|
101
|
+
}
|
|
102
|
+
function setTime(val) {
|
|
103
|
+
const res = dayjs(val).format(props.format);
|
|
104
|
+
emit("update", props.name, res);
|
|
105
|
+
}
|
|
106
|
+
watch(() => props.format, (val) => {
|
|
107
|
+
isTime.value = isTime.value ? false : isTime.value;
|
|
108
|
+
timeType.value = TIMETYPE?.[val] ?? TimeType.DATE;
|
|
109
|
+
if (TIMETYPE[val] === TimeType.TIME) isTime.value = true;
|
|
110
|
+
}, { immediate: true });
|
|
111
|
+
const pickerType = computed(() => {
|
|
112
|
+
switch (timeType.value) {
|
|
113
|
+
case TimeType.TIME:
|
|
114
|
+
case TimeType.DAY:
|
|
115
|
+
case TimeType.DATE: return TimeType.DATE;
|
|
116
|
+
default: return timeType.value;
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
const singleRanges = computed(() => {
|
|
120
|
+
const res = {};
|
|
121
|
+
if (props.operation !== "Between") Object.keys(props.timeRange).forEach((item) => {
|
|
122
|
+
res[item] = SINGLE_RANGE_MAP[item] ?? dayjs();
|
|
123
|
+
});
|
|
124
|
+
return res;
|
|
125
|
+
});
|
|
126
|
+
const mergeRanges = computed(() => {
|
|
127
|
+
const res = {};
|
|
128
|
+
if (props.operation === "Between") {
|
|
129
|
+
Object.keys(props.timeRange).forEach((item) => {
|
|
130
|
+
res[item] = BETWEEN_RANGE_MAP[item] ?? [dayjs(), dayjs()];
|
|
131
|
+
});
|
|
132
|
+
props.customTimeRange.forEach((item) => {
|
|
133
|
+
const customItem = item;
|
|
134
|
+
const key = `${operateTypeMap[customItem.type]}${customItem.value}${operateUnitMap[customItem.unit]}`;
|
|
135
|
+
const value = [dayjs(), dayjs()];
|
|
136
|
+
if (customItem.type === OPERATE_TYPE.RECENT) value[0] = dayjs().subtract(customItem.value, customItem.unit);
|
|
137
|
+
else if (customItem.type === OPERATE_TYPE.UP) {
|
|
138
|
+
const startTime = dayjs().subtract(customItem.value, customItem.unit);
|
|
139
|
+
const endTime = dayjs().subtract(1, customItem.unit);
|
|
140
|
+
value[0] = startTime.startOf(customItem.unit);
|
|
141
|
+
value[1] = endTime.endOf(customItem.unit);
|
|
142
|
+
}
|
|
143
|
+
res[key] = value;
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
return res;
|
|
147
|
+
});
|
|
148
|
+
expose({ getValue });
|
|
149
|
+
return {
|
|
150
|
+
singleRanges,
|
|
151
|
+
mergeRanges,
|
|
152
|
+
timeType,
|
|
153
|
+
pickerType,
|
|
154
|
+
isTime,
|
|
155
|
+
getValue,
|
|
156
|
+
setTime
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region ../egova-urbanpro-core/src/components/linglong/condition-panel/components/time-filter/index.vue
|
|
162
|
+
var _hoisted_1 = { class: "c-time-filter" };
|
|
163
|
+
var _hoisted_2 = { key: 0 };
|
|
164
|
+
var _hoisted_3 = { key: 1 };
|
|
165
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
166
|
+
const _component_a_tag = Tag;
|
|
167
|
+
const _component_a_date_picker = DatePicker;
|
|
168
|
+
const _component_a_range_picker = RangePicker;
|
|
169
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [_ctx.operation !== "Between" ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(_component_a_date_picker, mergeProps({
|
|
170
|
+
value: _ctx.modelRef[_ctx.name].value1,
|
|
171
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.modelRef[_ctx.name].value1 = $event),
|
|
172
|
+
"show-time": _ctx.isTime,
|
|
173
|
+
picker: _ctx.pickerType,
|
|
174
|
+
"value-format": _ctx.format
|
|
175
|
+
}, _ctx.$attrs), {
|
|
176
|
+
renderExtraFooter: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.singleRanges, (value, key) => {
|
|
177
|
+
return openBlock(), createBlock(_component_a_tag, {
|
|
178
|
+
key,
|
|
179
|
+
color: "blue",
|
|
180
|
+
onClick: ($event) => _ctx.setTime(value)
|
|
181
|
+
}, {
|
|
182
|
+
default: withCtx(() => [createTextVNode(toDisplayString(key), 1)]),
|
|
183
|
+
_: 2
|
|
184
|
+
}, 1032, ["onClick"]);
|
|
185
|
+
}), 128))]),
|
|
186
|
+
_: 1
|
|
187
|
+
}, 16, [
|
|
188
|
+
"value",
|
|
189
|
+
"show-time",
|
|
190
|
+
"picker",
|
|
191
|
+
"value-format"
|
|
192
|
+
])])) : (openBlock(), createElementBlock("div", _hoisted_3, [createVNode(_component_a_range_picker, mergeProps(_ctx.$attrs, {
|
|
193
|
+
value: _ctx.modelRef[_ctx.name].value1,
|
|
194
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => _ctx.modelRef[_ctx.name].value1 = $event),
|
|
195
|
+
"show-time": _ctx.isTime,
|
|
196
|
+
picker: _ctx.pickerType,
|
|
197
|
+
"value-format": _ctx.format,
|
|
198
|
+
ranges: _ctx.mergeRanges,
|
|
199
|
+
placeholder: _ctx.rangePlaceholder
|
|
200
|
+
}), null, 16, [
|
|
201
|
+
"value",
|
|
202
|
+
"show-time",
|
|
203
|
+
"picker",
|
|
204
|
+
"value-format",
|
|
205
|
+
"ranges",
|
|
206
|
+
"placeholder"
|
|
207
|
+
])]))]);
|
|
208
|
+
}
|
|
209
|
+
var time_filter_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_ts_vue_type_script_src_true_lang_default, [["render", _sfc_render], ["__scopeId", "data-v-3c1aa803"]]);
|
|
210
|
+
//#endregion
|
|
211
|
+
export { time_filter_default as default };
|