@gct-paas/core-web 0.1.6-dev.6 → 0.1.6-dev.7
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/dist/ColorPicker-DFKXqgaG.js +1 -0
- package/dist/_plugin-vue_export-helper-CGzGcWFX.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/loader.esm.min.js +1 -1
- package/dist/{monaco-editor-BTqXEIZI.js → monaco-editor-CQJ9TMzD.js} +1 -1
- package/dist/{template-1ZQd8Z1w.js → template-CXn8oAg5.js} +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +2 -0
- package/es/components/paas-bpmn-log/components/approval-node.vue.mjs +2 -2
- package/es/components/paas-bpmn-log/components/approval-node.vue_vue_type_script_setup_true_lang.mjs +1 -2
- package/es/components/paas-bpmn-log/components/{approval-node.vue_vue_type_style_index_0_scoped_a88d7ef9_lang.css → approval-node.vue_vue_type_style_index_0_scoped_a8065b24_lang.css} +9 -9
- package/es/components/paas-bpmn-log/paas-bpmn-log.vue.mjs +2 -2
- package/es/components/paas-bpmn-log/paas-bpmn-log.vue_vue_type_script_setup_true_lang.mjs +1 -2
- package/es/components/paas-bpmn-log/{paas-bpmn-log.vue_vue_type_style_index_0_scoped_c85122b0_lang.css → paas-bpmn-log.vue_vue_type_style_index_0_scoped_eb574523_lang.css} +9 -9
- package/es/components/select-user-modal/deptUser.vue.d.ts +9 -0
- package/es/components/select-user-modal/deptUser.vue.mjs +7 -0
- package/es/components/select-user-modal/deptUser.vue_vue_type_script_setup_true_name_deptUser_lang.mjs +296 -0
- package/es/components/select-user-modal/deptUser.vue_vue_type_style_index_0_scoped_02dff7bf_lang.css +40 -0
- package/es/components/select-user-modal/index.d.ts +2 -0
- package/es/components/select-user-modal/index.mjs +1 -0
- package/es/components/select-user-modal/range-role.vue.d.ts +9 -0
- package/es/components/select-user-modal/range-role.vue.mjs +7 -0
- package/es/components/select-user-modal/range-role.vue_vue_type_script_setup_true_name_role_lang.mjs +137 -0
- package/es/components/select-user-modal/range-role.vue_vue_type_style_index_0_scoped_1241bcdf_lang.css +34 -0
- package/es/components/select-user-modal/select-user-modal.vue.d.ts +12 -0
- package/es/components/select-user-modal/select-user-modal.vue.mjs +7 -0
- package/es/components/select-user-modal/select-user-modal.vue_vue_type_script_setup_true_name_select-user-modal_lang.mjs +123 -0
- package/es/components/select-user-modal/select-user-modal.vue_vue_type_style_index_0_scoped_2c0f184c_lang.css +14 -0
- package/es/components/select-user-modal/userGroup.vue.d.ts +9 -0
- package/es/components/select-user-modal/userGroup.vue.mjs +7 -0
- package/es/components/select-user-modal/userGroup.vue_vue_type_script_setup_true_name_userGroup_lang.mjs +149 -0
- package/es/components/select-user-modal/userGroup.vue_vue_type_style_index_0_scoped_47d1cbaa_lang.css +19 -0
- package/es/create-app-vue.d.ts +2 -2
- package/es/create-app-vue.mjs +3 -3
- package/es/index.d.ts +1 -0
- package/es/index.mjs +5 -1
- package/es/modules/data-rules-container/index.d.ts +3 -0
- package/es/modules/data-rules-container/index.mjs +2 -0
- package/es/modules/data-rules-container/src/components/header-action.vue.d.ts +10 -0
- package/es/modules/data-rules-container/src/components/header-action.vue.mjs +7 -0
- package/es/modules/data-rules-container/src/components/header-action.vue_vue_type_script_setup_true_name_header-action_lang.mjs +36 -0
- package/es/modules/data-rules-container/src/components/header-action.vue_vue_type_style_index_0_scoped_4e281013_lang.css +32 -0
- package/es/modules/data-rules-container/src/components/ndo-select-cmp.vue.d.ts +8 -0
- package/es/modules/data-rules-container/src/components/ndo-select-cmp.vue.mjs +5 -0
- package/es/modules/data-rules-container/src/components/ndo-select-cmp.vue_vue_type_script_setup_true_lang.mjs +266 -0
- package/es/modules/data-rules-container/src/components/perm-action-node.vue.d.ts +22 -0
- package/es/modules/data-rules-container/src/components/perm-action-node.vue.mjs +7 -0
- package/es/modules/data-rules-container/src/components/perm-action-node.vue_vue_type_script_setup_true_name_perm-action-node_lang.mjs +384 -0
- package/es/modules/data-rules-container/src/components/perm-action-node.vue_vue_type_style_index_0_scoped_417c660f_lang.css +73 -0
- package/es/modules/data-rules-container/src/components/perm-root-node.vue.d.ts +3 -0
- package/es/modules/data-rules-container/src/components/perm-root-node.vue.mjs +7 -0
- package/es/modules/data-rules-container/src/components/perm-root-node.vue_vue_type_script_setup_true_name_perm-root-node_lang.mjs +61 -0
- package/es/modules/data-rules-container/src/components/perm-root-node.vue_vue_type_style_index_0_scoped_ca5c9d20_lang.css +74 -0
- package/es/modules/data-rules-container/src/components/rdo-select-cmp.vue.d.ts +11 -0
- package/es/modules/data-rules-container/src/components/rdo-select-cmp.vue.mjs +5 -0
- package/es/modules/data-rules-container/src/components/rdo-select-cmp.vue_vue_type_script_setup_true_lang.mjs +93 -0
- package/es/modules/data-rules-container/src/components/request-select-cmp.vue.d.ts +9 -0
- package/es/modules/data-rules-container/src/components/request-select-cmp.vue.mjs +5 -0
- package/es/modules/data-rules-container/src/components/request-select-cmp.vue_vue_type_script_setup_true_name_request-select-cmp_lang.mjs +117 -0
- package/es/modules/data-rules-container/src/components/request-tree-select-cmp.vue.d.ts +3 -0
- package/es/modules/data-rules-container/src/components/request-tree-select-cmp.vue.mjs +6 -0
- package/es/modules/data-rules-container/src/components/request-tree-select-cmp.vue_vue_type_script_name_gct-select_setup_true_lang.mjs +100 -0
- package/es/modules/data-rules-container/src/components/request-tree-select-cmp.vue_vue_type_style_index_0_lang.css +21 -0
- package/es/modules/data-rules-container/src/components/select-modal-cmp.vue.d.ts +32 -0
- package/es/modules/data-rules-container/src/components/select-modal-cmp.vue.mjs +5 -0
- package/es/modules/data-rules-container/src/components/select-modal-cmp.vue_vue_type_script_setup_true_name_select-modal-cmp_lang.mjs +268 -0
- package/es/modules/data-rules-container/src/components/select-more.vue.d.ts +8 -0
- package/es/modules/data-rules-container/src/components/select-more.vue.mjs +5 -0
- package/es/modules/data-rules-container/src/components/select-more.vue_vue_type_script_setup_true_lang.mjs +26 -0
- package/es/modules/data-rules-container/src/components/select-userdep-cmp.vue.d.ts +12 -0
- package/es/modules/data-rules-container/src/components/select-userdep-cmp.vue.mjs +5 -0
- package/es/modules/data-rules-container/src/components/select-userdep-cmp.vue_vue_type_script_setup_true_name_select-userdep-cmp_lang.mjs +103 -0
- package/es/modules/data-rules-container/src/components/tree-action-node.vue.d.ts +25 -0
- package/es/modules/data-rules-container/src/components/tree-action-node.vue.mjs +7 -0
- package/es/modules/data-rules-container/src/components/tree-action-node.vue_vue_type_script_setup_true_name_tree-action-node_lang.mjs +544 -0
- package/es/modules/data-rules-container/src/components/tree-action-node.vue_vue_type_style_index_0_scoped_46368089_lang.css +67 -0
- package/es/modules/data-rules-container/src/components/tree-root-node.vue.d.ts +3 -0
- package/es/modules/data-rules-container/src/components/tree-root-node.vue.mjs +7 -0
- package/es/modules/data-rules-container/src/components/tree-root-node.vue_vue_type_script_setup_true_name_tree-root-node_lang.mjs +105 -0
- package/es/modules/data-rules-container/src/components/tree-root-node.vue_vue_type_style_index_0_scoped_37e323fb_lang.css +29 -0
- package/es/modules/data-rules-container/src/components/tree-select-cmp.vue.d.ts +3 -0
- package/es/modules/data-rules-container/src/components/tree-select-cmp.vue.mjs +5 -0
- package/es/modules/data-rules-container/src/components/tree-select-cmp.vue_vue_type_script_name_gct-select_setup_true_lang.mjs +89 -0
- package/es/modules/data-rules-container/src/constant/config.d.ts +146 -0
- package/es/modules/data-rules-container/src/constant/config.mjs +548 -0
- package/es/modules/data-rules-container/src/constant/interface.d.ts +85 -0
- package/es/modules/data-rules-container/src/constant/interface.mjs +36 -0
- package/es/modules/data-rules-container/src/data-rules-container.vue.d.ts +45 -0
- package/es/modules/data-rules-container/src/data-rules-container.vue.mjs +6 -0
- package/es/modules/data-rules-container/src/data-rules-container.vue_vue_type_script_setup_true_name_data-rules-container_lang.mjs +234 -0
- package/es/modules/data-rules-container/src/data-rules-container.vue_vue_type_style_index_0_lang.css +149 -0
- package/es/modules/data-rules-container/src/field-role-container.vue.d.ts +14 -0
- package/es/modules/data-rules-container/src/field-role-container.vue.mjs +5 -0
- package/es/modules/data-rules-container/src/field-role-container.vue_vue_type_script_setup_true_name_field-role-container_lang.mjs +73 -0
- package/es/modules/data-rules-container/src/hooks/useDataRulesTree.d.ts +30 -0
- package/es/modules/data-rules-container/src/hooks/useDataRulesTree.mjs +317 -0
- package/es/modules/data-rules-container/src/hooks/useEmitter.d.ts +10 -0
- package/es/modules/data-rules-container/src/hooks/useRdoHooks.d.ts +37 -0
- package/es/modules/data-rules-container/src/hooks/useRdoHooks.mjs +144 -0
- package/es/modules/data-rules-container/src/hooks/useRole.d.ts +8 -0
- package/es/modules/data-rules-container/src/typing.d.ts +40 -0
- package/package.json +9 -9
- package/dist/ColorPicker-DGQQb8I7.js +0 -1
- package/dist/_plugin-vue_export-helper-C9hXqKoS.js +0 -1
- package/es/components/paas-bpmn-log/hooks/useObserver.mjs +0 -46
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Ch_Operator, OperatorTypeEnum } from "../constant/interface.mjs";
|
|
2
|
+
import { useDataRulesTree } from "../hooks/useDataRulesTree.mjs";
|
|
3
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, openBlock, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
4
|
+
import { t } from "@gct-paas/core";
|
|
5
|
+
import { PlusOutlined } from "@ant-design/icons-vue";
|
|
6
|
+
//#region src/modules/data-rules-container/src/components/tree-root-node.vue?vue&type=script&setup=true&name=tree-root-node&lang.ts
|
|
7
|
+
var _hoisted_1 = { class: "tree-root-node" };
|
|
8
|
+
var tree_root_node_vue_vue_type_script_setup_true_name_tree_root_node_lang_default = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "tree-root-node",
|
|
10
|
+
props: {
|
|
11
|
+
data: {},
|
|
12
|
+
level: {},
|
|
13
|
+
id: {},
|
|
14
|
+
operatorType: {},
|
|
15
|
+
readonly: { type: Boolean }
|
|
16
|
+
},
|
|
17
|
+
setup(__props) {
|
|
18
|
+
const isDataFilterEditor = inject("isDataFilterEditor");
|
|
19
|
+
const OperatorOptions = [{
|
|
20
|
+
label: t(Ch_Operator[OperatorTypeEnum.AND]),
|
|
21
|
+
value: OperatorTypeEnum.AND
|
|
22
|
+
}, {
|
|
23
|
+
label: t(Ch_Operator[OperatorTypeEnum.OR]),
|
|
24
|
+
value: OperatorTypeEnum.OR
|
|
25
|
+
}];
|
|
26
|
+
const props = __props;
|
|
27
|
+
const { addNewGroup, deleteGroup, updateNodeItem, addNewRow } = useDataRulesTree(props.readonly);
|
|
28
|
+
const operatorType = computed({
|
|
29
|
+
get() {
|
|
30
|
+
return props.operatorType;
|
|
31
|
+
},
|
|
32
|
+
set(value) {
|
|
33
|
+
updateNodeItem(props.id, "operatorType", value);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
const isLevel1 = computed(() => {
|
|
37
|
+
return props.level === 1;
|
|
38
|
+
});
|
|
39
|
+
const handleAddGroup = () => {
|
|
40
|
+
addNewGroup(props.id);
|
|
41
|
+
};
|
|
42
|
+
const handleDeleteGroup = () => {
|
|
43
|
+
deleteGroup(props.id);
|
|
44
|
+
};
|
|
45
|
+
const treeId = computed(() => props.data.key);
|
|
46
|
+
const childrenNum = computed(() => {
|
|
47
|
+
return props.data?.children?.filter((n) => !n.children).length;
|
|
48
|
+
});
|
|
49
|
+
const handleAddRow = () => {
|
|
50
|
+
addNewRow(treeId.value);
|
|
51
|
+
};
|
|
52
|
+
return (_ctx, _cache) => {
|
|
53
|
+
const _component_a_select = resolveComponent("a-select");
|
|
54
|
+
const _component_a_form_item_rest = resolveComponent("a-form-item-rest");
|
|
55
|
+
const _component_a_button = resolveComponent("a-button");
|
|
56
|
+
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1, [
|
|
57
|
+
createVNode(_component_a_form_item_rest, null, {
|
|
58
|
+
default: withCtx(() => [createVNode(_component_a_select, {
|
|
59
|
+
value: operatorType.value,
|
|
60
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => operatorType.value = $event),
|
|
61
|
+
class: "tree-root-node-select",
|
|
62
|
+
disabled: __props.readonly,
|
|
63
|
+
style: { "width": "60px" },
|
|
64
|
+
options: OperatorOptions,
|
|
65
|
+
placeholder: unref(t)("sys.chooseText")
|
|
66
|
+
}, null, 8, [
|
|
67
|
+
"value",
|
|
68
|
+
"disabled",
|
|
69
|
+
"placeholder"
|
|
70
|
+
])]),
|
|
71
|
+
_: 1
|
|
72
|
+
}),
|
|
73
|
+
!__props.readonly ? (openBlock(), createBlock(_component_a_button, {
|
|
74
|
+
key: 0,
|
|
75
|
+
type: "primary",
|
|
76
|
+
style: { "margin-left": "24px" },
|
|
77
|
+
ghost: "",
|
|
78
|
+
onClick: handleAddGroup
|
|
79
|
+
}, {
|
|
80
|
+
icon: withCtx(() => [createVNode(unref(PlusOutlined))]),
|
|
81
|
+
default: withCtx(() => [createTextVNode(" " + toDisplayString(unref(t)("sys.appDesigner.createGroup")), 1)]),
|
|
82
|
+
_: 1
|
|
83
|
+
})) : createCommentVNode("", true),
|
|
84
|
+
!__props.readonly && !isLevel1.value ? (openBlock(), createBlock(_component_a_button, {
|
|
85
|
+
key: 1,
|
|
86
|
+
type: "primary",
|
|
87
|
+
ghost: "",
|
|
88
|
+
danger: "",
|
|
89
|
+
class: "ml-16px",
|
|
90
|
+
onClick: handleDeleteGroup
|
|
91
|
+
}, {
|
|
92
|
+
icon: withCtx(() => [..._cache[1] || (_cache[1] = [createElementVNode("i", { class: "iconfont icon-shanchu1 mr4px" }, null, -1)])]),
|
|
93
|
+
default: withCtx(() => [createTextVNode(" " + toDisplayString(unref(t)("sys.component.userCmp.deleteGroup")), 1)]),
|
|
94
|
+
_: 1
|
|
95
|
+
})) : createCommentVNode("", true)
|
|
96
|
+
]), !!unref(isDataFilterEditor) && !childrenNum.value ? (openBlock(), createElementBlock("div", {
|
|
97
|
+
key: 0,
|
|
98
|
+
class: "tree-root-node-add-row mt4px",
|
|
99
|
+
onClick: handleAddRow
|
|
100
|
+
}, " +" + toDisplayString(unref(t)("sys.appDesigner.addCondition")), 1)) : createCommentVNode("", true)], 64);
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
//#endregion
|
|
105
|
+
export { tree_root_node_vue_vue_type_script_setup_true_name_tree_root_node_lang_default as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.tree-root-node .ant-btn[data-v-37e323fb] {
|
|
2
|
+
line-height: 22px;
|
|
3
|
+
}
|
|
4
|
+
.tree-root-node .ant-btn .iconfont[data-v-37e323fb] {
|
|
5
|
+
font-size: 14px;
|
|
6
|
+
}
|
|
7
|
+
[data-v-37e323fb] .ant-select.tree-root-node-select.ant-select-disabled .ant-select-selector {
|
|
8
|
+
border-color: #fff !important;
|
|
9
|
+
background: #e6eeff;
|
|
10
|
+
color: #3168ec;
|
|
11
|
+
cursor: default;
|
|
12
|
+
}
|
|
13
|
+
[data-v-37e323fb] .ant-select.tree-root-node-select.ant-select-disabled .ant-select-selector .ant-select-selection-item {
|
|
14
|
+
padding-right: 0;
|
|
15
|
+
}
|
|
16
|
+
[data-v-37e323fb] .ant-select.tree-root-node-select.ant-select-disabled .ant-select-arrow {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
.tree-root-node-add-row[data-v-37e323fb] {
|
|
20
|
+
color: var(--ant-primary-color);
|
|
21
|
+
}
|
|
22
|
+
[data-v-37e323fb] .ant-select-selector {
|
|
23
|
+
border: none !important;
|
|
24
|
+
background-color: var(--ant-primary-1) !important;
|
|
25
|
+
color: var(--ant-primary-color) !important;
|
|
26
|
+
}
|
|
27
|
+
[data-v-37e323fb] .ant-select-arrow {
|
|
28
|
+
color: var(--ant-primary-color) !important;
|
|
29
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CompProps } from '../typing';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<CompProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CompProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import tree_select_cmp_vue_vue_type_script_name_gct_select_setup_true_lang_default from "./tree-select-cmp.vue_vue_type_script_name_gct-select_setup_true_lang.mjs";
|
|
2
|
+
//#region src/modules/data-rules-container/src/components/tree-select-cmp.vue
|
|
3
|
+
var tree_select_cmp_default = tree_select_cmp_vue_vue_type_script_name_gct_select_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { tree_select_cmp_default as default };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { computed, createBlock, createElementVNode, createVNode, defineComponent, onBeforeMount, openBlock, ref, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
2
|
+
import { TreeSelect } from "ant-design-vue";
|
|
3
|
+
//#region src/modules/data-rules-container/src/components/tree-select-cmp.vue?vue&type=script&name=gct-select&setup=true&lang.ts
|
|
4
|
+
var tree_select_cmp_vue_vue_type_script_name_gct_select_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "tree-select-cmp",
|
|
6
|
+
props: {
|
|
7
|
+
value: {},
|
|
8
|
+
api: { type: Function },
|
|
9
|
+
apiParams: {},
|
|
10
|
+
filterType: {}
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const treeOptions = ref([]);
|
|
15
|
+
const displayField = ref();
|
|
16
|
+
const isPermScope = computed(() => props.filterType === "permissionScope");
|
|
17
|
+
const getModelInfo = async () => {
|
|
18
|
+
const { modelKey } = props.apiParams ?? {};
|
|
19
|
+
displayField.value = (await _api.apaas.modelMeta.getInfo({ id: modelKey }) || {}).displayField;
|
|
20
|
+
};
|
|
21
|
+
onBeforeMount(async () => {
|
|
22
|
+
if (isPermScope.value) await getModelInfo();
|
|
23
|
+
const result = await _api.apaas.bizService.postModelKeyBsKey({
|
|
24
|
+
...props.apiParams ?? {},
|
|
25
|
+
bsKey: "listAll"
|
|
26
|
+
}, {}, {});
|
|
27
|
+
const list = Array.isArray(result) ? result : result.data ?? [];
|
|
28
|
+
const options = list.map((i) => {
|
|
29
|
+
if (i.__NON_LEAF__ === void 0) i.__NON_LEAF__ = list.some((k) => k.parent_id_ === i.id_);
|
|
30
|
+
return {
|
|
31
|
+
label: i.name_ || i[displayField.value] || i.id_,
|
|
32
|
+
value: i.id_,
|
|
33
|
+
full_path_: i.full_path_,
|
|
34
|
+
_item: i,
|
|
35
|
+
id: i.id_,
|
|
36
|
+
pId: i.parent_id_,
|
|
37
|
+
isLeaf: !i.__NON_LEAF__
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
treeOptions.value = options.map((item) => {
|
|
41
|
+
const ch_full_path = item.full_path_.split("/").map((path) => {
|
|
42
|
+
const n = options.find((k) => k.value === path);
|
|
43
|
+
if (n) return n.label;
|
|
44
|
+
return null;
|
|
45
|
+
}).filter((i) => i).join("/");
|
|
46
|
+
return {
|
|
47
|
+
...item,
|
|
48
|
+
label: ch_full_path,
|
|
49
|
+
title: item.label
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
function getOmittedText(omitted) {
|
|
54
|
+
return omitted.map((v) => v && v.label ? v.label : String(v)).join(", ");
|
|
55
|
+
}
|
|
56
|
+
const filterTreeNode = (inputVal, treeNode) => {
|
|
57
|
+
return treeNode?.title?.toLowerCase().includes(inputVal.toLowerCase());
|
|
58
|
+
};
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
const _component_a_tooltip = resolveComponent("a-tooltip");
|
|
61
|
+
const _component_a_tree_select = resolveComponent("a-tree-select");
|
|
62
|
+
return openBlock(), createBlock(_component_a_tree_select, {
|
|
63
|
+
"tree-data": treeOptions.value,
|
|
64
|
+
"tree-data-simple-mode": "",
|
|
65
|
+
"allow-clear": "",
|
|
66
|
+
"show-checked-strategy": unref(TreeSelect).SHOW_ALL,
|
|
67
|
+
"tree-node-label-prop": "label",
|
|
68
|
+
multiple: "",
|
|
69
|
+
"filter-tree-node": isPermScope.value ? filterTreeNode : false,
|
|
70
|
+
"max-tag-count": "responsive",
|
|
71
|
+
"max-tag-text-length": 2,
|
|
72
|
+
"show-search": isPermScope.value
|
|
73
|
+
}, {
|
|
74
|
+
maxTagPlaceholder: withCtx((omittedValues) => [createVNode(_component_a_tooltip, { title: getOmittedText(omittedValues) }, {
|
|
75
|
+
default: withCtx(() => [createElementVNode("span", null, "+" + toDisplayString(omittedValues?.length), 1)]),
|
|
76
|
+
_: 2
|
|
77
|
+
}, 1032, ["title"])]),
|
|
78
|
+
_: 1
|
|
79
|
+
}, 8, [
|
|
80
|
+
"tree-data",
|
|
81
|
+
"show-checked-strategy",
|
|
82
|
+
"filter-tree-node",
|
|
83
|
+
"show-search"
|
|
84
|
+
]);
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
//#endregion
|
|
89
|
+
export { tree_select_cmp_vue_vue_type_script_name_gct_select_setup_true_lang_default as default };
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { FIELD_TYPE, SEARCH_SERVICE } from '@gct-paas/core';
|
|
2
|
+
export declare const Ch_FieldTypeName: {
|
|
3
|
+
date: string;
|
|
4
|
+
time: string;
|
|
5
|
+
date_time: string;
|
|
6
|
+
org: string;
|
|
7
|
+
org_multi: string;
|
|
8
|
+
user: string;
|
|
9
|
+
user_multi: string;
|
|
10
|
+
};
|
|
11
|
+
/** 【人员、部门】系统变量 */
|
|
12
|
+
export declare enum UserSystemEnum {
|
|
13
|
+
/** 当前登录用户 */
|
|
14
|
+
CUR_USER = "__CUR_USER__",
|
|
15
|
+
/** 当前登录用户所在部门人员 */
|
|
16
|
+
CUR_USER_ORG = "__CUR_USER_ORG__",
|
|
17
|
+
/** 当前登录用户所在主部门人员 */
|
|
18
|
+
CUR_USER_MASTER_ORG = "__CUR_USER_MASTER_ORG__",
|
|
19
|
+
/** 当前登录用户所负责部门人员 */
|
|
20
|
+
CUR_USER_PRINCIPAL_ORG = "__CUR_USER_PRINCIPAL_ORG__",
|
|
21
|
+
/** 当前登录用户直属下属 */
|
|
22
|
+
CUR_USER_DIRECT_SUBORDINATE = "__CUR_USER_DIRECT_SUBORDINATE__"
|
|
23
|
+
}
|
|
24
|
+
/** 【日期、日期时间、时间】系统变量 */
|
|
25
|
+
export declare enum DateSystemEnum {
|
|
26
|
+
/** 系统当前【日期|日期时间|时间 】 */
|
|
27
|
+
NOW = "__NOW__",
|
|
28
|
+
/** 当天 */
|
|
29
|
+
CUR_DAY = "__CUR_DAY__",
|
|
30
|
+
/** 本周 */
|
|
31
|
+
CUR_WEEK = "__CUR_WEEK__",
|
|
32
|
+
/** 本月 */
|
|
33
|
+
CUR_MONTH = "__CUR_MONTH__",
|
|
34
|
+
/** 本年 */
|
|
35
|
+
CUR_YEAR = "__CUR_YEAR__"
|
|
36
|
+
}
|
|
37
|
+
export declare const UserSystemKeys: UserSystemEnum[];
|
|
38
|
+
export declare const DateSystemKeys: DateSystemEnum[];
|
|
39
|
+
/** 系统变量对应中文翻译 */
|
|
40
|
+
export declare const Ch_SystemVars: {
|
|
41
|
+
__NOW__: (text: string) => string;
|
|
42
|
+
__CUR_DAY__: () => string;
|
|
43
|
+
__CUR_WEEK__: () => string;
|
|
44
|
+
__CUR_MONTH__: () => string;
|
|
45
|
+
__CUR_YEAR__: () => string;
|
|
46
|
+
__CUR_USER__: () => string;
|
|
47
|
+
__CUR_USER_ORG__: (text: string) => string;
|
|
48
|
+
__CUR_USER_MASTER_ORG__: (text: string) => string;
|
|
49
|
+
__CUR_USER_PRINCIPAL_ORG__: (text: string) => string;
|
|
50
|
+
__CUR_USER_DIRECT_SUBORDINATE__: string;
|
|
51
|
+
};
|
|
52
|
+
/** 数据类型 */
|
|
53
|
+
export declare enum ValueTypeEnum {
|
|
54
|
+
/** 固定值 */
|
|
55
|
+
FIXED = "FIXED",
|
|
56
|
+
/** 系统变量 */
|
|
57
|
+
SYS = "SYS",
|
|
58
|
+
/** 字段*/
|
|
59
|
+
FIELD = "FIELD",
|
|
60
|
+
/** 变量*/
|
|
61
|
+
VAR = "VAR",
|
|
62
|
+
/** 组件传参 */
|
|
63
|
+
COMP_PARAMS = "COMP_PARAMS",
|
|
64
|
+
/** 内置参数 */
|
|
65
|
+
BUILT_PARAMS = "BUILT_PARAMS"
|
|
66
|
+
}
|
|
67
|
+
/** 数据类型对应中文翻译 */
|
|
68
|
+
export declare const Ch_ValueType: {
|
|
69
|
+
FIXED: {
|
|
70
|
+
name: string;
|
|
71
|
+
abbr: string;
|
|
72
|
+
};
|
|
73
|
+
SYS: {
|
|
74
|
+
name: string;
|
|
75
|
+
abbr: string;
|
|
76
|
+
};
|
|
77
|
+
FIELD: {
|
|
78
|
+
name: string;
|
|
79
|
+
abbr: string;
|
|
80
|
+
};
|
|
81
|
+
VAR: {
|
|
82
|
+
name: string;
|
|
83
|
+
abbr: string;
|
|
84
|
+
};
|
|
85
|
+
COMP_PARAMS: {
|
|
86
|
+
name: string;
|
|
87
|
+
abbr: string;
|
|
88
|
+
};
|
|
89
|
+
BUILT_PARAMS: {
|
|
90
|
+
name: string;
|
|
91
|
+
abbr: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
/** 组件类型 */
|
|
95
|
+
export declare enum ComponentTypeEnum {
|
|
96
|
+
/** 输入框 */
|
|
97
|
+
INPUT = "input",
|
|
98
|
+
/** 下拉列表框 */
|
|
99
|
+
SELECT = "select",
|
|
100
|
+
/** 有接口请求的下拉列表框 */
|
|
101
|
+
REQUEST_SELECT = "request_select",
|
|
102
|
+
/** 日期选择器 */
|
|
103
|
+
DATEPICKER = "datePicker",
|
|
104
|
+
/** 自定义 */
|
|
105
|
+
CUSTOM = "custom",
|
|
106
|
+
/** 树形下拉选择框 */
|
|
107
|
+
REQUEST_TREE_SELECT = "request_tree_select",
|
|
108
|
+
/** ndo下拉选择框 */
|
|
109
|
+
NDO_SELECT = "NdoSelect",
|
|
110
|
+
/** rdo下拉选择框 */
|
|
111
|
+
RDO_SELECT = "RdoSelect",
|
|
112
|
+
/** tree下拉选择框 */
|
|
113
|
+
TREE_SELECT = "TreeSelect",
|
|
114
|
+
/** 选择我内置参数弹框 */
|
|
115
|
+
SELECT_BUILTIN_PARAMS = "select_builtin_params",
|
|
116
|
+
/** 弹窗选择框 */
|
|
117
|
+
MODAL_SELECT = "modal_select"
|
|
118
|
+
}
|
|
119
|
+
/** 组件闭合类型 */
|
|
120
|
+
export declare enum RangTypeEnum {
|
|
121
|
+
/** 单个 */
|
|
122
|
+
Single = "single",
|
|
123
|
+
/** 组合 */
|
|
124
|
+
Comb = "comb",
|
|
125
|
+
/** 隐藏 */
|
|
126
|
+
Hidden = "hidden"
|
|
127
|
+
}
|
|
128
|
+
export declare const BoolOptions: {
|
|
129
|
+
label: string;
|
|
130
|
+
value: string;
|
|
131
|
+
}[];
|
|
132
|
+
export declare const MultiOperatorTypes: SEARCH_SERVICE[];
|
|
133
|
+
export declare const getCmpConfig: ({ fieldType, operatorType, modelKey, fieldKey, bindInfo, valueType, refModelType, fieldOptions, mainModelKey, isPageDesigner, isOnlineFormDesigner, varOptions, }: {
|
|
134
|
+
fieldType: FIELD_TYPE;
|
|
135
|
+
operatorType: SEARCH_SERVICE;
|
|
136
|
+
modelKey: string;
|
|
137
|
+
fieldKey: string;
|
|
138
|
+
bindInfo: string;
|
|
139
|
+
valueType: ValueTypeEnum;
|
|
140
|
+
refModelType: string;
|
|
141
|
+
fieldOptions: IObject[];
|
|
142
|
+
mainModelKey?: string;
|
|
143
|
+
isPageDesigner: boolean;
|
|
144
|
+
isOnlineFormDesigner: boolean;
|
|
145
|
+
varOptions: IObject[];
|
|
146
|
+
}) => IObject[];
|