@gct-paas/core-web 0.1.6-dev.14 → 0.1.6-dev.15
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-uRTV30Ek.js +2 -0
- package/dist/_plugin-vue_export-helper-DMiyj2_E.js +2 -0
- package/dist/components-DAMtsLWz.js +2 -0
- package/dist/{diagram-config-item-Cbh_tiOl.js → diagram-config-item-Bmn1dfVu.js} +1 -1
- package/dist/{diagram-config-item-reverse-DWH-lRVD.js → diagram-config-item-reverse-2DZGf6tV.js} +1 -1
- package/dist/{diagram-config-item-virtual-qW8Ufx3F.js → diagram-config-item-virtual-BcVn7C3j.js} +1 -1
- package/dist/event-B7FDoAwS.js +2 -0
- package/dist/event-BG4yEFkW.js +2 -0
- package/dist/event-config-BX4ZNl-X.js +2 -0
- package/dist/event-l3QZLg2C.js +2 -0
- package/dist/field-permission-GbxXo2GX.js +2 -0
- package/dist/global-modal-b7mA5_Bp.js +2 -0
- package/dist/index.min.css +1 -1
- package/dist/loader.esm.min.js +1 -1
- package/dist/monaco-editor-BcDFov5A.js +2 -0
- package/dist/node-basic-info-wXj70byk.js +2 -0
- package/dist/node-binding-page-BPi81gHU.js +2 -0
- package/dist/node-btns-BZZkBDUc.js +2 -0
- package/dist/perm-CYQVUPZR.js +2 -0
- package/dist/perm-Dhu5vcqq.js +2 -0
- package/dist/process-designer-CoCJM0jR.js +2 -0
- package/dist/prop-9RS10yk0.js +2 -0
- package/dist/prop-B8lmM6h4.js +2 -0
- package/dist/prop-CXaVOYud.js +2 -0
- package/dist/prop-CrNWtARu.js +2 -0
- package/dist/prop-DuAVrO3B.js +2 -0
- package/dist/prop-LtDc8or1.js +2 -0
- package/dist/prop-f5r9vRs4.js +2 -0
- package/dist/{relationship-diagram-config-DJB7Hcrl.js → relationship-diagram-config-TD_kmHSY.js} +1 -1
- package/dist/select-script-B5aeNjn5.js +2 -0
- package/dist/simple-collapse-Cwn3DXVw.js +2 -0
- package/dist/template-C0L8wwo4.js +2 -0
- package/dist/useProcess-CSoUgJu4.js +2 -0
- package/dist/utils-1hIMq32P.js +2 -0
- package/es/components/UserPick/src/user-pick.vue.mjs +2 -2
- package/es/components/UserPick/src/user-pick.vue_vue_type_script_setup_true_lang.mjs +16 -18
- package/es/components/UserPick/src/user-pick.vue_vue_type_style_index_0_scoped_9902632a_lang.css +62 -0
- package/es/components/overlay-scrollbars/gct-overlay-scrollbars.d.ts +2 -3
- package/es/components/select-user-modal/select-user-modal.vue.mjs +2 -2
- package/es/components/select-user-modal/select-user-modal.vue_vue_type_style_index_0_scoped_8316b821_lang.css +14 -0
- package/es/create-app-vue.mjs +1 -1
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/useTreeList.d.ts +23 -0
- package/es/hooks/useTreeList.mjs +160 -0
- package/es/index.d.ts +1 -0
- package/es/index.mjs +5 -1
- package/es/locale/sys/appDesigner.d.ts +20 -0
- package/es/locale/sys/component.d.ts +7 -1
- package/es/locale/sys/edhr.d.ts +5 -0
- package/es/locale/sys/expression.d.ts +4 -0
- package/es/locale/sys/i18n.d.ts +1 -1
- package/es/locale/sys/model.d.ts +2 -1
- package/es/locale/sys/onlineForm.d.ts +5 -0
- package/es/locale/sys/org.d.ts +2 -2
- package/es/locale/sys/pageDesigner.d.ts +41 -0
- package/es/locale/sys/printDesigner.d.ts +9 -0
- package/es/locale/sys/webRender.d.ts +25 -0
- package/es/locale/sys.d.ts +32 -5
- package/es/modules/category/category-sider.vue.d.ts +2 -2
- package/es/modules/category/category-sider.vue.mjs +2 -2
- package/es/modules/category/{category-sider.vue_vue_type_style_index_0_scoped_5af8c1ba_lang.css → category-sider.vue_vue_type_style_index_0_scoped_5b8c3a8d_lang.css} +33 -33
- package/es/modules/data-rules-container/index.d.ts +2 -0
- package/es/modules/data-rules-container/index.mjs +2 -0
- package/es/modules/data-rules-container/src/components/perm-action-node.vue.d.ts +1 -1
- package/es/modules/data-rules-container/src/components/perm-action-node.vue.mjs +2 -2
- package/es/modules/data-rules-container/src/components/{perm-action-node.vue_vue_type_style_index_0_scoped_417c660f_lang.css → perm-action-node.vue_vue_type_style_index_0_scoped_a053095c_lang.css} +17 -17
- package/es/modules/data-rules-container/src/components/tree-action-node.vue.d.ts +1 -1
- package/es/modules/data-rules-container/src/components/tree-action-node.vue.mjs +2 -2
- package/es/modules/data-rules-container/src/components/{tree-action-node.vue_vue_type_style_index_0_scoped_46368089_lang.css → tree-action-node.vue_vue_type_style_index_0_scoped_f37ec578_lang.css} +16 -16
- package/es/modules/data-rules-container/src/components/tree-root-node.vue.mjs +2 -2
- package/es/modules/data-rules-container/src/components/tree-root-node.vue_vue_type_script_setup_true_name_tree-root-node_lang.mjs +5 -2
- package/es/modules/data-rules-container/src/components/{tree-root-node.vue_vue_type_style_index_0_scoped_37e323fb_lang.css → tree-root-node.vue_vue_type_style_index_0_scoped_74e5fbf3_lang.css} +8 -8
- package/es/modules/data-rules-container/src/constant/config.mjs +1 -1
- package/es/modules/data-rules-container/src/constant/interface.mjs +115 -2
- package/es/modules/data-rules-container/src/typing.d.ts +1 -1
- package/es/modules/global-modal/src/BasicModal.vue.d.ts +56 -2
- package/es/modules/global-modal/src/components/ModalWrapper.vue.d.ts +28 -1
- package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_script_lang.mjs +2 -0
- package/es/modules/process-designer/components/event-config.vue.mjs +7 -0
- package/es/modules/process-designer/components/event-config.vue_vue_type_script_setup_true_lang.mjs +128 -0
- package/es/modules/process-designer/components/event-config.vue_vue_type_style_index_0_scoped_572d5ffd_lang.css +15 -0
- package/es/modules/process-designer/components/field-permission.vue.mjs +7 -0
- package/es/modules/process-designer/components/field-permission.vue_vue_type_script_setup_true_lang.mjs +206 -0
- package/es/modules/process-designer/components/field-permission.vue_vue_type_style_index_0_scoped_d8767690_lang.css +46 -0
- package/es/modules/process-designer/components/form-item.vue.mjs +7 -0
- package/es/modules/process-designer/components/form-item.vue_vue_type_script_setup_true_name_form-item_lang.mjs +61 -0
- package/es/modules/process-designer/components/form-item.vue_vue_type_style_index_0_scoped_7fbde61b_lang.css +37 -0
- package/es/modules/process-designer/components/node-basic-info.vue.mjs +5 -0
- package/es/modules/process-designer/components/node-basic-info.vue_vue_type_script_setup_true_lang.mjs +87 -0
- package/es/modules/process-designer/components/node-binding-page.vue.mjs +7 -0
- package/es/modules/process-designer/components/node-binding-page.vue_vue_type_script_setup_true_lang.mjs +348 -0
- package/es/modules/process-designer/components/node-binding-page.vue_vue_type_style_index_0_scoped_9c31c6c8_lang.css +4 -0
- package/es/modules/process-designer/components/node-btns.vue.mjs +7 -0
- package/es/modules/process-designer/components/node-btns.vue_vue_type_script_setup_true_lang.mjs +170 -0
- package/es/modules/process-designer/components/node-btns.vue_vue_type_style_index_0_scoped_6d0b3f3b_lang.css +8 -0
- package/es/modules/process-designer/components/select-script.vue.mjs +5 -0
- package/es/modules/process-designer/components/select-script.vue_vue_type_script_setup_true_lang.mjs +143 -0
- package/es/modules/process-designer/components/simple-collapse.vue.mjs +7 -0
- package/es/modules/process-designer/components/simple-collapse.vue_vue_type_script_setup_true_lang.mjs +36 -0
- package/es/modules/process-designer/components/simple-collapse.vue_vue_type_style_index_0_scoped_27ea34cc_lang.css +28 -0
- package/es/modules/process-designer/constants/index.d.ts +12 -0
- package/es/modules/process-designer/constants/index.mjs +88 -0
- package/es/modules/process-designer/design/bmpn-panel.vue.d.ts +10 -0
- package/es/modules/process-designer/design/bmpn-panel.vue.mjs +7 -0
- package/es/modules/process-designer/design/bmpn-panel.vue_vue_type_script_setup_true_lang.mjs +93 -0
- package/es/modules/process-designer/design/bmpn-panel.vue_vue_type_style_index_0_scoped_eba73224_lang.css +140 -0
- package/es/modules/process-designer/design/bpmn-global.vue.d.ts +2 -0
- package/es/modules/process-designer/design/bpmn-global.vue.mjs +7 -0
- package/es/modules/process-designer/design/bpmn-global.vue_vue_type_script_setup_true_lang.mjs +16 -0
- package/es/modules/process-designer/design/bpmn-global.vue_vue_type_style_index_0_scoped_c9d6d005_lang.css +7 -0
- package/es/modules/process-designer/design/bpmn-header.vue.d.ts +2 -0
- package/es/modules/process-designer/design/bpmn-header.vue.mjs +7 -0
- package/es/modules/process-designer/design/bpmn-header.vue_vue_type_script_setup_true_lang.mjs +39 -0
- package/es/modules/process-designer/design/bpmn-header.vue_vue_type_style_index_0_scoped_92044d4c_lang.css +37 -0
- package/es/modules/process-designer/design/bpmn-versions.vue.d.ts +2 -0
- package/es/modules/process-designer/design/bpmn-versions.vue.mjs +7 -0
- package/es/modules/process-designer/design/bpmn-versions.vue_vue_type_script_setup_true_lang.mjs +99 -0
- package/es/modules/process-designer/design/bpmn-versions.vue_vue_type_style_index_0_scoped_c8252604_lang.css +96 -0
- package/es/modules/process-designer/hook/useProcess.d.ts +663 -0
- package/es/modules/process-designer/hook/useProcess.mjs +340 -0
- package/es/modules/process-designer/index.d.ts +7 -0
- package/es/modules/process-designer/index.mjs +5 -0
- package/es/modules/process-designer/panels/bpmnApproval/event.vue.mjs +5 -0
- package/es/modules/process-designer/panels/bpmnApproval/event.vue_vue_type_script_setup_true_lang.mjs +14 -0
- package/es/modules/process-designer/panels/bpmnApproval/perm.vue.mjs +5 -0
- package/es/modules/process-designer/panels/bpmnApproval/perm.vue_vue_type_script_setup_true_lang.mjs +18 -0
- package/es/modules/process-designer/panels/bpmnApproval/prop.vue.mjs +5 -0
- package/es/modules/process-designer/panels/bpmnApproval/prop.vue_vue_type_script_setup_true_lang.mjs +167 -0
- package/es/modules/process-designer/panels/bpmnEnd/prop.vue.mjs +5 -0
- package/es/modules/process-designer/panels/bpmnEnd/prop.vue_vue_type_script_setup_true_lang.mjs +32 -0
- package/es/modules/process-designer/panels/bpmnJoin/prop.vue.mjs +5 -0
- package/es/modules/process-designer/panels/bpmnJoin/prop.vue_vue_type_script_setup_true_lang.mjs +32 -0
- package/es/modules/process-designer/panels/bpmnJs/prop.vue.mjs +5 -0
- package/es/modules/process-designer/panels/bpmnJs/prop.vue_vue_type_script_setup_true_lang.mjs +73 -0
- package/es/modules/process-designer/panels/bpmnMessage/prop.vue.mjs +5 -0
- package/es/modules/process-designer/panels/bpmnMessage/prop.vue_vue_type_script_setup_true_lang.mjs +92 -0
- package/es/modules/process-designer/panels/bpmnSubmit/event.vue.mjs +5 -0
- package/es/modules/process-designer/panels/bpmnSubmit/event.vue_vue_type_script_setup_true_lang.mjs +14 -0
- package/es/modules/process-designer/panels/bpmnSubmit/perm.vue.mjs +5 -0
- package/es/modules/process-designer/panels/bpmnSubmit/perm.vue_vue_type_script_setup_true_lang.mjs +18 -0
- package/es/modules/process-designer/panels/bpmnSubmit/prop.vue.mjs +5 -0
- package/es/modules/process-designer/panels/bpmnSubmit/prop.vue_vue_type_script_setup_true_lang.mjs +47 -0
- package/es/modules/process-designer/panels/global/event.vue.mjs +5 -0
- package/es/modules/process-designer/panels/global/event.vue_vue_type_script_setup_true_lang.mjs +14 -0
- package/es/modules/process-designer/panels/global/prop.vue.mjs +5 -0
- package/es/modules/process-designer/panels/global/prop.vue_vue_type_script_setup_true_lang.mjs +193 -0
- package/es/modules/process-designer/panels/index.d.ts +4 -0
- package/es/modules/process-designer/panels/index.mjs +37 -0
- package/es/modules/process-designer/process-designer.vue.d.ts +6 -0
- package/es/modules/process-designer/process-designer.vue.mjs +6 -0
- package/es/modules/process-designer/process-designer.vue_vue_type_script_setup_true_lang.mjs +69 -0
- package/es/modules/process-designer/process-designer.vue_vue_type_style_index_0_lang.css +98 -0
- package/es/modules/process-designer/types/index.d.ts +105 -0
- package/package.json +9 -8
- package/dist/ColorPicker-DHZwCGHF.js +0 -2
- package/dist/_plugin-vue_export-helper-B3iGtQVD.js +0 -2
- package/dist/monaco-editor-Bj7q97sW.js +0 -2
- package/dist/template-Bq8pI82J.js +0 -2
- package/es/components/UserPick/src/user-pick.vue_vue_type_style_index_0_scoped_a49a84da_lang.css +0 -39
- package/es/components/select-user-modal/select-user-modal.vue_vue_type_style_index_0_scoped_2c0f184c_lang.css +0 -14
- /package/dist/{JsBarcode-BfBOW5vm.js → JsBarcode-COunfKNO.js} +0 -0
- /package/dist/{cropper-DszZbwY0.js → cropper-CVnZnyhI.js} +0 -0
- /package/dist/{de_DE-Cdk5SWSW.js → de_DE-CXxQwKMQ.js} +0 -0
- /package/dist/{en_US-B0wIY6a-.js → en_US-3Q4NcT39.js} +0 -0
- /package/dist/{es_ES-CFTf_KZi.js → es_ES-C93EhKUt.js} +0 -0
- /package/dist/{fr_FR-CSfCfW5D.js → fr_FR-D2dS74tH.js} +0 -0
- /package/dist/{hooks-DXW0t29_.js → hooks-Dlci7Y_k.js} +0 -0
- /package/dist/{icon-next-picker-DP56qrkn.js → icon-next-picker-C0xMEvp7.js} +0 -0
- /package/dist/{ja_JP-DXSy7dHj.js → ja_JP-C7ON9ru7.js} +0 -0
- /package/dist/{overlayscrollbars-vue-DiDUuAUa.js → overlayscrollbars-vue-CaFsDgU3.js} +0 -0
- /package/dist/{paas-bpmn-runtime-B0yNr5W2.js → paas-bpmn-runtime-DYHPmrd-.js} +0 -0
- /package/dist/{pt_PT-CnUcrrHa.js → pt_PT-8ZpsbQuO.js} +0 -0
- /package/dist/{rich-editor-Zg0Nr7zv.js → rich-editor-Zvvtfl11.js} +0 -0
- /package/dist/{ru_RU-BziGAVj5.js → ru_RU-ClPC9fIj.js} +0 -0
- /package/dist/{tr_TR-y8uLkPdL.js → tr_TR-IdN74S9H.js} +0 -0
- /package/dist/{useMonacoEditor-2RvV9zPk.js → useMonacoEditor-C73zvdQc.js} +0 -0
- /package/dist/{vi_VN-CXvZpo3W.js → vi_VN-5jRSXykJ.js} +0 -0
- /package/dist/{zh_CN-CO133RFG.js → zh_CN-BOOnrmuK.js} +0 -0
- /package/dist/{zh_TW-DaOg9meQ.js → zh_TW-BeWiTMnz.js} +0 -0
package/es/modules/process-designer/components/event-config.vue_vue_type_script_setup_true_lang.mjs
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { NodeEventsGroupByType } from "../constants/index.mjs";
|
|
2
|
+
import { useProcess } from "../hook/useProcess.mjs";
|
|
3
|
+
import select_script_default from "./select-script.vue.mjs";
|
|
4
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, onMounted, openBlock, ref, renderList, resolveComponent, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
5
|
+
import { EventsTypeEnum, ScriptTypeEnum, t } from "@gct-paas/core";
|
|
6
|
+
//#region src/modules/process-designer/components/event-config.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var _hoisted_1 = { class: "px12px py20px text-[12px]" };
|
|
8
|
+
var _hoisted_2 = { class: "ks-row-middle overflow-hidden p8px bg-[#F2F4F7]" };
|
|
9
|
+
var _hoisted_3 = { class: "ks-col ell" };
|
|
10
|
+
var _hoisted_4 = ["onClick"];
|
|
11
|
+
var _hoisted_5 = ["title"];
|
|
12
|
+
var event_config_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
13
|
+
__name: "event-config",
|
|
14
|
+
props: { node: {} },
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const props = __props;
|
|
17
|
+
const { bpmnReadonly } = useProcess();
|
|
18
|
+
const scriptOptions = ref([]);
|
|
19
|
+
const events = computed(() => {
|
|
20
|
+
return props.node.data?.events || [];
|
|
21
|
+
});
|
|
22
|
+
const eventOptions = computed(() => {
|
|
23
|
+
const evts = NodeEventsGroupByType[props.node.type];
|
|
24
|
+
if (props.node.type === "global") return evts;
|
|
25
|
+
const buttonConfig = props.node?.data?.buttonConfig || [];
|
|
26
|
+
return evts.filter((e) => buttonConfig.some((f) => f.type === e.type && f.enable)).map((e) => e.value);
|
|
27
|
+
});
|
|
28
|
+
onMounted(() => {
|
|
29
|
+
getScriptData();
|
|
30
|
+
});
|
|
31
|
+
const handleClick = async (key) => {
|
|
32
|
+
const res = await openModal({
|
|
33
|
+
key,
|
|
34
|
+
executeResourceType: EventsTypeEnum.SCRIPT_SERVICE
|
|
35
|
+
});
|
|
36
|
+
if (res.ok) {
|
|
37
|
+
const params = {
|
|
38
|
+
...res.params,
|
|
39
|
+
relationType: props.node.type === "global" ? "PROC_DEF" : "PROC_NODE_DEF"
|
|
40
|
+
};
|
|
41
|
+
if (props.node?.data?.events) props.node.data["events"].push(params);
|
|
42
|
+
else props.node.data["events"] = [params];
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const onEdit = async (item, index) => {
|
|
46
|
+
const res = await openModal({ ...item });
|
|
47
|
+
if (res.ok) props.node.data["events"]?.splice(index, 1, { ...res.params });
|
|
48
|
+
};
|
|
49
|
+
const onDelete = (index) => {
|
|
50
|
+
props.node.data["events"]?.splice(index, 1);
|
|
51
|
+
};
|
|
52
|
+
const getScriptData = async () => {
|
|
53
|
+
scriptOptions.value = await _api.apaas.category.getListComplete({ module: ScriptTypeEnum.DEFAULT }) || [];
|
|
54
|
+
};
|
|
55
|
+
const returnScriptName = (id) => {
|
|
56
|
+
return scriptOptions.value.map((e) => e.children).flat().find((e) => e.id === id)?.name;
|
|
57
|
+
};
|
|
58
|
+
async function openModal(data) {
|
|
59
|
+
const res = await _gct.openUtil.modal(select_script_default, { data }, {
|
|
60
|
+
title: t("sys.newSth", { sth: t("sys.appDesigner.events") }),
|
|
61
|
+
width: 640,
|
|
62
|
+
height: 400,
|
|
63
|
+
okText: t("sys.okText")
|
|
64
|
+
});
|
|
65
|
+
if (res.ok) getScriptData();
|
|
66
|
+
return res;
|
|
67
|
+
}
|
|
68
|
+
return (_ctx, _cache) => {
|
|
69
|
+
const _component_DownOutlined = resolveComponent("DownOutlined");
|
|
70
|
+
const _component_a_button = resolveComponent("a-button");
|
|
71
|
+
const _component_a_menu_item = resolveComponent("a-menu-item");
|
|
72
|
+
const _component_a_menu = resolveComponent("a-menu");
|
|
73
|
+
const _component_a_dropdown = resolveComponent("a-dropdown");
|
|
74
|
+
const _component_a_popconfirm = resolveComponent("a-popconfirm");
|
|
75
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_a_dropdown, { trigger: ["click"] }, {
|
|
76
|
+
overlay: withCtx(() => [createVNode(_component_a_menu, null, {
|
|
77
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(eventOptions.value, (evt) => {
|
|
78
|
+
return openBlock(), createBlock(_component_a_menu_item, {
|
|
79
|
+
key: evt,
|
|
80
|
+
disabled: events.value.some((e) => e.key === evt),
|
|
81
|
+
onClick: ($event) => handleClick(evt)
|
|
82
|
+
}, {
|
|
83
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(t)(`sys.process.events.${evt}`)), 1)]),
|
|
84
|
+
_: 2
|
|
85
|
+
}, 1032, ["disabled", "onClick"]);
|
|
86
|
+
}), 128))]),
|
|
87
|
+
_: 1
|
|
88
|
+
})]),
|
|
89
|
+
default: withCtx(() => [createVNode(_component_a_button, {
|
|
90
|
+
type: "primary",
|
|
91
|
+
ghost: !unref(bpmnReadonly),
|
|
92
|
+
block: "",
|
|
93
|
+
disabled: unref(bpmnReadonly),
|
|
94
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {}, ["prevent"]))
|
|
95
|
+
}, {
|
|
96
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(t)("sys.pageDesigner.newEvents")) + " ", 1), createVNode(_component_DownOutlined, { class: "ml4px" })]),
|
|
97
|
+
_: 1
|
|
98
|
+
}, 8, ["ghost", "disabled"])]),
|
|
99
|
+
_: 1
|
|
100
|
+
}), (openBlock(true), createElementBlock(Fragment, null, renderList(events.value, (item, i) => {
|
|
101
|
+
return openBlock(), createElementBlock("div", {
|
|
102
|
+
key: i,
|
|
103
|
+
class: normalizeClass(["border border-[#E0E3EA] border-solid rounded-4px relative", [i === 0 ? "mt16px" : "mt12px"]])
|
|
104
|
+
}, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, toDisplayString(unref(t)(`sys.process.events.${item.key}`)), 1), !unref(bpmnReadonly) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("i", {
|
|
105
|
+
class: "iconfont icon-bianji text-[#797A7D] cursor-pointer lh-16px mr8px",
|
|
106
|
+
onClick: ($event) => onEdit(item, i)
|
|
107
|
+
}, null, 8, _hoisted_4), createVNode(_component_a_popconfirm, {
|
|
108
|
+
title: unref(t)("sys.sureToDo"),
|
|
109
|
+
"get-popup-container": (trigger) => trigger.parentNode,
|
|
110
|
+
placement: "topRight",
|
|
111
|
+
onConfirm: ($event) => onDelete(i)
|
|
112
|
+
}, {
|
|
113
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [createElementVNode("i", { class: "iconfont icon-shanchu2 text-[#797A7D] cursor-pointer error-gct-hover lh-16px" }, null, -1)])]),
|
|
114
|
+
_: 1
|
|
115
|
+
}, 8, [
|
|
116
|
+
"title",
|
|
117
|
+
"get-popup-container",
|
|
118
|
+
"onConfirm"
|
|
119
|
+
])], 64)) : createCommentVNode("", true)]), createElementVNode("div", {
|
|
120
|
+
class: "p8px ell text-[#8F8F8F]",
|
|
121
|
+
title: returnScriptName(item.executeResourceId)
|
|
122
|
+
}, toDisplayString(returnScriptName(item.executeResourceId)), 9, _hoisted_5)], 2);
|
|
123
|
+
}), 128))]);
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
//#endregion
|
|
128
|
+
export { event_config_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.add-btn[data-v-572d5ffd] {
|
|
2
|
+
line-height: 32px;
|
|
3
|
+
height: 32px;
|
|
4
|
+
text-align: center;
|
|
5
|
+
border: 1px solid var(--ant-primary-color);
|
|
6
|
+
border-radius: 4px;
|
|
7
|
+
color: var(--ant-primary-color);
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
[data-v-572d5ffd] .ant-dropdown-menu-item {
|
|
11
|
+
text-align: center;
|
|
12
|
+
}
|
|
13
|
+
[data-v-572d5ffd] .ant-popconfirm {
|
|
14
|
+
left: 218px !important;
|
|
15
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import field_permission_vue_vue_type_script_setup_true_lang_default from "./field-permission.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
+
import './field-permission.vue_vue_type_style_index_0_scoped_d8767690_lang.css';/* empty css */
|
|
4
|
+
//#region src/modules/process-designer/components/field-permission.vue
|
|
5
|
+
var field_permission_default = /* @__PURE__ */ _plugin_vue_export_helper_default(field_permission_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-d8767690"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { field_permission_default as default };
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { FieldsPermissionEnum } from "../constants/index.mjs";
|
|
2
|
+
import { useProcess } from "../hook/useProcess.mjs";
|
|
3
|
+
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, onMounted, openBlock, ref, renderList, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
4
|
+
import { CreateType, FIELD_TYPE, t } from "@gct-paas/core";
|
|
5
|
+
import { BpmnNodeTypeEnum as BpmnNodeTypeEnum$1 } from "@gct-paas/flow";
|
|
6
|
+
//#region src/modules/process-designer/components/field-permission.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var _hoisted_1 = { class: "mb2px" };
|
|
8
|
+
var _hoisted_2 = { class: "fields-wrap bg-[#F0F0F0] py8px rounded-4px mb12px" };
|
|
9
|
+
var _hoisted_3 = { class: "fields-header ks-row-middle overflow-hidden pb4px px16px" };
|
|
10
|
+
var _hoisted_4 = { class: "fields-header-name ell pr4px relative top-2px" };
|
|
11
|
+
var _hoisted_5 = { class: "ks-col ks-row-middle" };
|
|
12
|
+
var _hoisted_6 = { class: "fields-main max-h-390px overflow-auto px8px" };
|
|
13
|
+
var _hoisted_7 = { class: "ks-row py5px px8px" };
|
|
14
|
+
var _hoisted_8 = { class: "w70px ell" };
|
|
15
|
+
var _hoisted_9 = { class: "fields-main-option ks-col" };
|
|
16
|
+
var field_permission_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
17
|
+
__name: "field-permission",
|
|
18
|
+
props: { data: {} },
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const { processInfo, nodeSelectedData } = useProcess();
|
|
22
|
+
const paasBpmnReadonly = inject("paasBpmnReadonly", false);
|
|
23
|
+
const spinning = ref(false);
|
|
24
|
+
const fieldData = ref([]);
|
|
25
|
+
const fieldConfig = computed({
|
|
26
|
+
get() {
|
|
27
|
+
return props.data.fieldConfig || {};
|
|
28
|
+
},
|
|
29
|
+
set(value) {
|
|
30
|
+
props.data.fieldConfig = value;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
const plainOptions = computed(() => {
|
|
34
|
+
return Object.values(FieldsPermissionEnum).map((e) => {
|
|
35
|
+
return { value: e };
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
onMounted(() => {
|
|
39
|
+
getFieldData();
|
|
40
|
+
});
|
|
41
|
+
function checkedParent(permission, item) {
|
|
42
|
+
let childPers = [];
|
|
43
|
+
if (item.key) {
|
|
44
|
+
childPers = item.children?.filter((e) => fieldConfig.value[item.key]?.children[e.field]?.permission === permission);
|
|
45
|
+
return childPers.length === item.children.length;
|
|
46
|
+
} else childPers = item.children?.filter((e) => fieldConfig.value[e.field]?.permission === permission);
|
|
47
|
+
return childPers.length === item.children.length;
|
|
48
|
+
}
|
|
49
|
+
const handleParentChange = (evt, permission, item) => {
|
|
50
|
+
const { checked } = evt.target;
|
|
51
|
+
if (checked) item.children.forEach((e) => {
|
|
52
|
+
if (item.key) fieldConfig.value[item.key].children[e.field].permission = permission;
|
|
53
|
+
else fieldConfig.value[e.field].permission = permission;
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
const getFieldData = async () => {
|
|
57
|
+
spinning.value = true;
|
|
58
|
+
try {
|
|
59
|
+
const { modelKey, modelName } = processInfo.value;
|
|
60
|
+
const res = await getModelFields(modelKey);
|
|
61
|
+
fieldData.value = [];
|
|
62
|
+
const msList = res.filter((e) => e.type === FIELD_TYPE.MASTERSLAVE).map((e) => {
|
|
63
|
+
return {
|
|
64
|
+
key: e.key,
|
|
65
|
+
modelKey: e.bindInfo,
|
|
66
|
+
modelName: e.relationModelName
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
const fnList = msList.map((e) => getModelFields(e.modelKey, false));
|
|
70
|
+
const data = await Promise.all(fnList);
|
|
71
|
+
const configObj = {};
|
|
72
|
+
fieldData.value = [{
|
|
73
|
+
modelKey,
|
|
74
|
+
modelName,
|
|
75
|
+
children: res.filter((e) => e.type !== FIELD_TYPE.MASTERSLAVE).map((e) => formatFields(e))
|
|
76
|
+
}, ...msList.map((e) => {
|
|
77
|
+
return {
|
|
78
|
+
...e,
|
|
79
|
+
children: data.find((d) => d[0].modelKey === e.modelKey)?.map((f) => formatFields(f)) || []
|
|
80
|
+
};
|
|
81
|
+
})];
|
|
82
|
+
fieldData.value.forEach(async (o) => {
|
|
83
|
+
if (!o.key) o.children.forEach((e) => {
|
|
84
|
+
configObj[e.field] = {
|
|
85
|
+
permission: fieldConfig.value[e.field]?.permission || e.permission,
|
|
86
|
+
children: {}
|
|
87
|
+
};
|
|
88
|
+
});
|
|
89
|
+
else {
|
|
90
|
+
configObj[o.key] = { children: {} };
|
|
91
|
+
o.children.forEach((e) => {
|
|
92
|
+
configObj[o.key].children[e.field] = {
|
|
93
|
+
permission: fieldConfig.value[o.key]?.children[e.field]?.permission || e.permission,
|
|
94
|
+
children: {}
|
|
95
|
+
};
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
fieldConfig.value = configObj;
|
|
100
|
+
spinning.value = false;
|
|
101
|
+
} catch (error) {
|
|
102
|
+
spinning.value = false;
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
async function getModelFields(modelKey, sys = true) {
|
|
106
|
+
return await _api.apaas.fieldMeta.getList({
|
|
107
|
+
modelKey,
|
|
108
|
+
sys,
|
|
109
|
+
includeBuiltin: true
|
|
110
|
+
}) || [];
|
|
111
|
+
}
|
|
112
|
+
function formatFields(f, permission) {
|
|
113
|
+
const nType = nodeSelectedData.value?.type;
|
|
114
|
+
return {
|
|
115
|
+
field: f.key,
|
|
116
|
+
name: f.name,
|
|
117
|
+
modelKey: f.modelKey,
|
|
118
|
+
createType: f.createType,
|
|
119
|
+
type: f.type,
|
|
120
|
+
children: [],
|
|
121
|
+
permission: permission || nType === BpmnNodeTypeEnum$1.BpmnApproval || f.createType === CreateType.SYSTEM ? FieldsPermissionEnum.readonly : FieldsPermissionEnum.editable
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
function onParentRadioChange(e, field, key) {
|
|
125
|
+
const { value } = e.target;
|
|
126
|
+
if (key) fieldConfig.value[key].children[field.field].permission = value;
|
|
127
|
+
else fieldConfig.value[field.field].permission = value;
|
|
128
|
+
}
|
|
129
|
+
return (_ctx, _cache) => {
|
|
130
|
+
const _component_a_checkbox = resolveComponent("a-checkbox");
|
|
131
|
+
const _component_a_radio = resolveComponent("a-radio");
|
|
132
|
+
const _component_a_radio_group = resolveComponent("a-radio-group");
|
|
133
|
+
const _component_a_spin = resolveComponent("a-spin");
|
|
134
|
+
return openBlock(true), createElementBlock(Fragment, null, renderList(fieldData.value, (el, i) => {
|
|
135
|
+
return openBlock(), createElementBlock("div", { key: i }, [createElementVNode("div", _hoisted_1, toDisplayString(el.modelName), 1), createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, toDisplayString(unref(t)("sys.appDesigner.approval.fieldName")), 1), createElementVNode("div", _hoisted_5, [(openBlock(true), createElementBlock(Fragment, null, renderList(Object.values(unref(FieldsPermissionEnum)), (item) => {
|
|
136
|
+
return openBlock(), createElementBlock("div", {
|
|
137
|
+
key: item,
|
|
138
|
+
class: "fields-header-item ell"
|
|
139
|
+
}, [createTextVNode(toDisplayString(unref(t)(`sys.pageDesigner.${item}`)) + " ", 1), createVNode(_component_a_checkbox, {
|
|
140
|
+
disabled: unref(paasBpmnReadonly),
|
|
141
|
+
checked: checkedParent(item, el),
|
|
142
|
+
style: {
|
|
143
|
+
"line-height": "1",
|
|
144
|
+
"height": "18px"
|
|
145
|
+
},
|
|
146
|
+
onChange: (e) => handleParentChange(e, item, el)
|
|
147
|
+
}, null, 8, [
|
|
148
|
+
"disabled",
|
|
149
|
+
"checked",
|
|
150
|
+
"onChange"
|
|
151
|
+
])]);
|
|
152
|
+
}), 128))])]), createElementVNode("div", _hoisted_6, [createVNode(_component_a_spin, { spinning: spinning.value }, {
|
|
153
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(el.children, (field, j) => {
|
|
154
|
+
return openBlock(), createElementBlock("div", {
|
|
155
|
+
key: j,
|
|
156
|
+
class: "fields-main-option bg-[#FFFFFF] rounded-4px mb4px border"
|
|
157
|
+
}, [createElementVNode("div", _hoisted_7, [createElementVNode("div", _hoisted_8, toDisplayString(field.name), 1), createElementVNode("div", _hoisted_9, [!el.key ? (openBlock(), createBlock(_component_a_radio_group, {
|
|
158
|
+
key: 0,
|
|
159
|
+
value: fieldConfig.value[field.field].permission,
|
|
160
|
+
"onUpdate:value": ($event) => fieldConfig.value[field.field].permission = $event,
|
|
161
|
+
disabled: unref(paasBpmnReadonly),
|
|
162
|
+
onChange: (e) => onParentRadioChange(e, field)
|
|
163
|
+
}, {
|
|
164
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(plainOptions.value, (item, f) => {
|
|
165
|
+
return openBlock(), createBlock(_component_a_radio, {
|
|
166
|
+
key: f,
|
|
167
|
+
value: item.value,
|
|
168
|
+
disabled: field.createType === unref(CreateType).SYSTEM && [unref(FieldsPermissionEnum).disabled, unref(FieldsPermissionEnum).editable].includes(item.value)
|
|
169
|
+
}, null, 8, ["value", "disabled"]);
|
|
170
|
+
}), 128))]),
|
|
171
|
+
_: 2
|
|
172
|
+
}, 1032, [
|
|
173
|
+
"value",
|
|
174
|
+
"onUpdate:value",
|
|
175
|
+
"disabled",
|
|
176
|
+
"onChange"
|
|
177
|
+
])) : (openBlock(), createBlock(_component_a_radio_group, {
|
|
178
|
+
key: 1,
|
|
179
|
+
value: fieldConfig.value[el.key].children[field.field].permission,
|
|
180
|
+
"onUpdate:value": ($event) => fieldConfig.value[el.key].children[field.field].permission = $event,
|
|
181
|
+
disabled: unref(paasBpmnReadonly),
|
|
182
|
+
onChange: (e) => onParentRadioChange(e, field, el.key)
|
|
183
|
+
}, {
|
|
184
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(plainOptions.value, (item, f) => {
|
|
185
|
+
return openBlock(), createBlock(_component_a_radio, {
|
|
186
|
+
key: f,
|
|
187
|
+
value: item.value,
|
|
188
|
+
disabled: field.createType === unref(CreateType).SYSTEM && [unref(FieldsPermissionEnum).disabled, unref(FieldsPermissionEnum).editable].includes(item.value)
|
|
189
|
+
}, null, 8, ["value", "disabled"]);
|
|
190
|
+
}), 128))]),
|
|
191
|
+
_: 2
|
|
192
|
+
}, 1032, [
|
|
193
|
+
"value",
|
|
194
|
+
"onUpdate:value",
|
|
195
|
+
"disabled",
|
|
196
|
+
"onChange"
|
|
197
|
+
]))])])]);
|
|
198
|
+
}), 128))]),
|
|
199
|
+
_: 2
|
|
200
|
+
}, 1032, ["spinning"])])])]);
|
|
201
|
+
}), 128);
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
//#endregion
|
|
206
|
+
export { field_permission_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.b-b[data-v-d8767690] {
|
|
2
|
+
border-bottom: 1px solid #e0e3ea;
|
|
3
|
+
}
|
|
4
|
+
.border[data-v-d8767690] {
|
|
5
|
+
border: 1px solid #e8ebf0;
|
|
6
|
+
}
|
|
7
|
+
.fields-header[data-v-d8767690] {
|
|
8
|
+
color: #666666;
|
|
9
|
+
}
|
|
10
|
+
.fields-header-name[data-v-d8767690] {
|
|
11
|
+
width: 70px;
|
|
12
|
+
}
|
|
13
|
+
.fields-header-item[data-v-d8767690] {
|
|
14
|
+
flex: 1;
|
|
15
|
+
text-align: right;
|
|
16
|
+
line-height: 18px;
|
|
17
|
+
}
|
|
18
|
+
.fields-main[data-v-d8767690] {
|
|
19
|
+
color: #666666;
|
|
20
|
+
column-gap: 4px;
|
|
21
|
+
}
|
|
22
|
+
.fields-main-option[data-v-d8767690] .ant-radio-group {
|
|
23
|
+
display: flex;
|
|
24
|
+
}
|
|
25
|
+
.fields-main-option[data-v-d8767690] .ant-radio-group .ant-radio-wrapper {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex: 1;
|
|
28
|
+
margin: 0;
|
|
29
|
+
justify-content: flex-end;
|
|
30
|
+
line-height: 1;
|
|
31
|
+
}
|
|
32
|
+
.fields-main-option[data-v-d8767690] .ant-radio-group .ant-radio-wrapper span.ant-radio + * {
|
|
33
|
+
padding: 0;
|
|
34
|
+
}
|
|
35
|
+
.fields-main-option-parent[data-v-d8767690] {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: row;
|
|
38
|
+
}
|
|
39
|
+
.fields-main-option-parent[data-v-d8767690] .ant-checkbox-wrapper {
|
|
40
|
+
flex: 1;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
line-height: 1;
|
|
43
|
+
}
|
|
44
|
+
.fields-main-option-parent[data-v-d8767690] .ant-checkbox-wrapper + .ant-checkbox-wrapper {
|
|
45
|
+
margin: 0;
|
|
46
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import form_item_vue_vue_type_script_setup_true_name_form_item_lang_default from "./form-item.vue_vue_type_script_setup_true_name_form-item_lang.mjs";
|
|
3
|
+
import './form-item.vue_vue_type_style_index_0_scoped_7fbde61b_lang.css';/* empty css */
|
|
4
|
+
//#region src/modules/process-designer/components/form-item.vue
|
|
5
|
+
var form_item_default = /* @__PURE__ */ _plugin_vue_export_helper_default(form_item_vue_vue_type_script_setup_true_name_form_item_lang_default, [["__scopeId", "data-v-7fbde61b"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { form_item_default as default };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, resolveComponent, toDisplayString, withCtx } from "vue";
|
|
2
|
+
//#region src/modules/process-designer/components/form-item.vue?vue&type=script&setup=true&name=form-item&lang.ts
|
|
3
|
+
var _hoisted_1 = { class: "form-item__label" };
|
|
4
|
+
var _hoisted_2 = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "error-gct"
|
|
7
|
+
};
|
|
8
|
+
var _hoisted_3 = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "iconfont icon-assist text-[#C3C3C3] cursor-pointer relative top-1px"
|
|
11
|
+
};
|
|
12
|
+
var form_item_vue_vue_type_script_setup_true_name_form_item_lang_default = /* @__PURE__ */ defineComponent({
|
|
13
|
+
__name: "form-item",
|
|
14
|
+
props: {
|
|
15
|
+
label: {},
|
|
16
|
+
inline: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: true
|
|
19
|
+
},
|
|
20
|
+
isFirst: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: false
|
|
23
|
+
},
|
|
24
|
+
rules: {},
|
|
25
|
+
required: { type: Boolean },
|
|
26
|
+
tooltip: {},
|
|
27
|
+
colon: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: true
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
setup(__props) {
|
|
33
|
+
const props = __props;
|
|
34
|
+
const isRequired = computed(() => {
|
|
35
|
+
return props.required || props.rules?.some((rule) => rule.required);
|
|
36
|
+
});
|
|
37
|
+
return (_ctx, _cache) => {
|
|
38
|
+
const _component_a_tooltip = resolveComponent("a-tooltip");
|
|
39
|
+
const _component_a_form_item = resolveComponent("a-form-item");
|
|
40
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass([
|
|
41
|
+
"form-item ",
|
|
42
|
+
__props.isFirst ? "mt-0" : "mt-12px",
|
|
43
|
+
__props.inline ? "form-inline" : "",
|
|
44
|
+
__props.inline && __props.colon && __props.label && "colon"
|
|
45
|
+
]) }, [createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "label", {}, () => [
|
|
46
|
+
isRequired.value ? (openBlock(), createElementBlock("span", _hoisted_2, "*")) : createCommentVNode("", true),
|
|
47
|
+
createTextVNode(" " + toDisplayString(__props.label) + " ", 1),
|
|
48
|
+
createVNode(_component_a_tooltip, null, {
|
|
49
|
+
title: withCtx(() => [createTextVNode(toDisplayString(__props.tooltip), 1)]),
|
|
50
|
+
default: withCtx(() => [__props.tooltip ? (openBlock(), createElementBlock("i", _hoisted_3)) : createCommentVNode("", true)]),
|
|
51
|
+
_: 1
|
|
52
|
+
})
|
|
53
|
+
], true)]), createVNode(_component_a_form_item, mergeProps(_ctx.$attrs, { class: "form-item__content overflow-hidden" }), {
|
|
54
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
55
|
+
_: 3
|
|
56
|
+
}, 16)], 2);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
//#endregion
|
|
61
|
+
export { form_item_vue_vue_type_script_setup_true_name_form_item_lang_default as default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.form-item[data-v-7fbde61b] {
|
|
2
|
+
line-height: 18px;
|
|
3
|
+
}
|
|
4
|
+
.form-item + .form-item[data-v-7fbde61b] {
|
|
5
|
+
margin-top: 8px;
|
|
6
|
+
}
|
|
7
|
+
.form-item__label[data-v-7fbde61b] {
|
|
8
|
+
color: #252525;
|
|
9
|
+
font-size: 12px;
|
|
10
|
+
flex: none;
|
|
11
|
+
}
|
|
12
|
+
.form-item__label .icon-assist[data-v-7fbde61b] {
|
|
13
|
+
font-size: 14px;
|
|
14
|
+
}
|
|
15
|
+
.form-item__content[data-v-7fbde61b] {
|
|
16
|
+
font-size: 12px;
|
|
17
|
+
flex: 1;
|
|
18
|
+
margin-bottom: 0;
|
|
19
|
+
}
|
|
20
|
+
.form-item.form-inline[data-v-7fbde61b] {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: row;
|
|
23
|
+
align-items: center;
|
|
24
|
+
}
|
|
25
|
+
.form-item.form-inline.colon .form-item__label[data-v-7fbde61b]::after {
|
|
26
|
+
content: ':';
|
|
27
|
+
position: relative;
|
|
28
|
+
top: -0.5px;
|
|
29
|
+
margin: 0 6px 0 2px;
|
|
30
|
+
}
|
|
31
|
+
.form-item:not(.form-inline) .form-item__label[data-v-7fbde61b] {
|
|
32
|
+
margin-bottom: 4px;
|
|
33
|
+
}
|
|
34
|
+
[data-v-7fbde61b] .ant-form-item-control-input {
|
|
35
|
+
min-height: 18px;
|
|
36
|
+
color: #666666;
|
|
37
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import node_basic_info_vue_vue_type_script_setup_true_lang_default from "./node-basic-info.vue_vue_type_script_setup_true_lang.mjs";
|
|
2
|
+
//#region src/modules/process-designer/components/node-basic-info.vue
|
|
3
|
+
var node_basic_info_default = node_basic_info_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { node_basic_info_default as default };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { useProcess } from "../hook/useProcess.mjs";
|
|
2
|
+
import form_item_default from "./form-item.vue.mjs";
|
|
3
|
+
import { Fragment, computed, createElementBlock, createElementVNode, createVNode, defineComponent, inject, openBlock, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
4
|
+
import { t } from "@gct-paas/core";
|
|
5
|
+
//#region src/modules/process-designer/components/node-basic-info.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var _hoisted_1 = ["title"];
|
|
7
|
+
var node_basic_info_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "node-basic-info",
|
|
9
|
+
props: { data: {} },
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
const paasBpmnReadonly = inject("paasBpmnReadonly", false);
|
|
13
|
+
const { validNodeData } = useProcess();
|
|
14
|
+
const formState = computed({
|
|
15
|
+
get() {
|
|
16
|
+
return props.data;
|
|
17
|
+
},
|
|
18
|
+
set(value) {
|
|
19
|
+
Object.assign(props.data ?? {}, value);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
const _component_a_input = resolveComponent("a-input");
|
|
24
|
+
const _component_a_textarea = resolveComponent("a-textarea");
|
|
25
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
26
|
+
createVNode(form_item_default, {
|
|
27
|
+
label: unref(t)("sys.appDesigner.approval.nodeKey"),
|
|
28
|
+
"is-first": ""
|
|
29
|
+
}, {
|
|
30
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
31
|
+
class: "ell w100%",
|
|
32
|
+
title: formState.value.key
|
|
33
|
+
}, toDisplayString(formState.value.key), 9, _hoisted_1)]),
|
|
34
|
+
_: 1
|
|
35
|
+
}, 8, ["label"]),
|
|
36
|
+
createVNode(form_item_default, {
|
|
37
|
+
label: unref(t)("sys.appDesigner.approval.nodeName"),
|
|
38
|
+
name: "name",
|
|
39
|
+
inline: false,
|
|
40
|
+
rules: [{
|
|
41
|
+
required: true,
|
|
42
|
+
message: unref(t)("sys.notEmptySth", { sth: unref(t)("sys.appDesigner.approval.nodeName") })
|
|
43
|
+
}]
|
|
44
|
+
}, {
|
|
45
|
+
default: withCtx(() => [createVNode(_component_a_input, {
|
|
46
|
+
value: formState.value.name,
|
|
47
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => formState.value.name = $event),
|
|
48
|
+
size: "small",
|
|
49
|
+
maxlength: 32,
|
|
50
|
+
"show-count": "",
|
|
51
|
+
placeholder: unref(t)("sys.inputText"),
|
|
52
|
+
disabled: unref(paasBpmnReadonly),
|
|
53
|
+
onChange: _cache[1] || (_cache[1] = ($event) => unref(validNodeData)(formState.value.key))
|
|
54
|
+
}, null, 8, [
|
|
55
|
+
"value",
|
|
56
|
+
"placeholder",
|
|
57
|
+
"disabled"
|
|
58
|
+
])]),
|
|
59
|
+
_: 1
|
|
60
|
+
}, 8, ["label", "rules"]),
|
|
61
|
+
createVNode(form_item_default, {
|
|
62
|
+
label: unref(t)("sys.appDesigner.approval.nodeDesc"),
|
|
63
|
+
inline: false,
|
|
64
|
+
name: "description"
|
|
65
|
+
}, {
|
|
66
|
+
default: withCtx(() => [createVNode(_component_a_textarea, {
|
|
67
|
+
value: formState.value.description,
|
|
68
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => formState.value.description = $event),
|
|
69
|
+
size: "small",
|
|
70
|
+
maxlength: 120,
|
|
71
|
+
"show-count": "",
|
|
72
|
+
rows: 3,
|
|
73
|
+
disabled: unref(paasBpmnReadonly),
|
|
74
|
+
placeholder: unref(t)("sys.inputText")
|
|
75
|
+
}, null, 8, [
|
|
76
|
+
"value",
|
|
77
|
+
"disabled",
|
|
78
|
+
"placeholder"
|
|
79
|
+
])]),
|
|
80
|
+
_: 1
|
|
81
|
+
}, 8, ["label"])
|
|
82
|
+
], 64);
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
//#endregion
|
|
87
|
+
export { node_basic_info_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
|
+
import node_binding_page_vue_vue_type_script_setup_true_lang_default from "./node-binding-page.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
+
import './node-binding-page.vue_vue_type_style_index_0_scoped_9c31c6c8_lang.css';/* empty css */
|
|
4
|
+
//#region src/modules/process-designer/components/node-binding-page.vue
|
|
5
|
+
var node_binding_page_default = /* @__PURE__ */ _plugin_vue_export_helper_default(node_binding_page_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-9c31c6c8"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { node_binding_page_default as default };
|