@gct-paas/core-web 0.1.6-dev.13 → 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/{JsBarcode-CkSVrI0z.js → JsBarcode-COunfKNO.js} +2 -2
- package/dist/_plugin-vue_export-helper-DMiyj2_E.js +2 -0
- package/dist/{chunk-D1LDEFO_.js → chunk-CeX__g8u.js} +1 -1
- package/dist/components-DAMtsLWz.js +2 -0
- package/dist/{cropper-CcL8P4K3.js → cropper-CVnZnyhI.js} +2 -2
- package/dist/{de_DE-BonpXjJw.js → de_DE-CXxQwKMQ.js} +2 -2
- package/dist/{defineProperty-tSd202sJ.js → defineProperty-DDBtkzz5.js} +1 -1
- package/dist/{diagram-config-item-BFvG5IjZ.js → diagram-config-item-Bmn1dfVu.js} +2 -2
- package/dist/{diagram-config-item-reverse-1SSShP8k.js → diagram-config-item-reverse-2DZGf6tV.js} +2 -2
- package/dist/{diagram-config-item-virtual-CxQ58yTq.js → diagram-config-item-virtual-BcVn7C3j.js} +2 -2
- package/dist/{en_US-DkxJ-rk9.js → en_US-3Q4NcT39.js} +2 -2
- package/dist/{es_ES-BitMJLTU.js → es_ES-C93EhKUt.js} +2 -2
- 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/{fr_FR-DAZpsfvM.js → fr_FR-D2dS74tH.js} +2 -2
- package/dist/global-modal-b7mA5_Bp.js +2 -0
- package/dist/{hooks-maWYvMj-.js → hooks-Dlci7Y_k.js} +2 -2
- package/dist/{icon-next-picker-Bt6QZ66P.js → icon-next-picker-C0xMEvp7.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/{ja_JP-CIcQQm1L.js → ja_JP-C7ON9ru7.js} +2 -2
- package/dist/loader.esm.min.js +2 -2
- 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/{objectSpread2-DeotLrT4.js → objectSpread2-C8eu0aH8.js} +1 -1
- package/dist/{overlayscrollbars-vue-HVM3DHXk.js → overlayscrollbars-vue-CaFsDgU3.js} +1 -1
- package/dist/paas-bpmn-runtime-DYHPmrd-.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/{pt_PT-B4kUZocw.js → pt_PT-8ZpsbQuO.js} +2 -2
- package/dist/{relationship-diagram-config-Oi6IFq_Z.js → relationship-diagram-config-TD_kmHSY.js} +2 -2
- package/dist/{rich-editor-DKSGWBIn.js → rich-editor-Zvvtfl11.js} +2 -2
- package/dist/{ru_RU-BViYpX2a.js → ru_RU-ClPC9fIj.js} +2 -2
- 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/{tr_TR-Cvm6EFzH.js → tr_TR-IdN74S9H.js} +2 -2
- package/dist/{useMonacoEditor-CRl-gMAu.js → useMonacoEditor-C73zvdQc.js} +2 -2
- package/dist/useProcess-CSoUgJu4.js +2 -0
- package/dist/utils-1hIMq32P.js +2 -0
- package/dist/{vi_VN-CpLtV30G.js → vi_VN-5jRSXykJ.js} +2 -2
- package/dist/{zh_CN-6cdpsm7m.js → zh_CN-BOOnrmuK.js} +2 -2
- package/dist/{zh_TW-DLunK-9B.js → zh_TW-BeWiTMnz.js} +2 -2
- package/es/components/BpmnRuntime/index.d.ts +5 -2
- package/es/components/BpmnRuntime/index.mjs +5 -1
- 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/index.mjs +0 -1
- package/es/components/monaco-editor/monaco-editor.d.ts +22 -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 +2 -0
- package/es/hooks/index.mjs +2 -0
- package/es/hooks/useKeyParser.d.ts +16 -0
- package/es/hooks/useKeyParser.mjs +79 -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 +7 -2
- 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/gct-form/interface/i-form/i-form-item-basic.d.ts +8 -0
- package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +1 -1
- package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +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-BsnzQnG7.js +0 -2
- package/dist/_plugin-vue_export-helper-BJPvQFvv.js +0 -2
- package/dist/monaco-editor-DPeAflHE.js +0 -2
- package/dist/template-EQWAOU4W.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/es/modules/gct-table/editor/{gct-table-text/gct-table-text.css → gct-table-date/gct-table-date.css} +0 -0
|
@@ -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 };
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
import { useModal as useModal$1 } from "../../global-modal/src/hooks/useModal.mjs";
|
|
2
|
+
import "../../global-modal/index.mjs";
|
|
3
|
+
import { useProcess } from "../hook/useProcess.mjs";
|
|
4
|
+
import form_item_default from "./form-item.vue.mjs";
|
|
5
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, normalizeClass, onMounted, openBlock, ref, resolveComponent, toDisplayString, unref, vShow, withCtx, withDirectives } from "vue";
|
|
6
|
+
import { PageTypeEnum, genUrl, openWindow, t, useUUid } from "@gct-paas/core";
|
|
7
|
+
//#region src/modules/process-designer/components/node-binding-page.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var _hoisted_1 = {
|
|
9
|
+
class: "w100% ks-row-middle",
|
|
10
|
+
style: { "justify-content": "end" }
|
|
11
|
+
};
|
|
12
|
+
var _hoisted_2 = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "bg-[#F2F4F7] rounded-4px p8px"
|
|
15
|
+
};
|
|
16
|
+
var _hoisted_3 = { class: "ks-row-middle" };
|
|
17
|
+
var _hoisted_4 = { class: "ks-row-middle" };
|
|
18
|
+
var _hoisted_5 = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "w100% ks-row-middle",
|
|
21
|
+
style: { "justify-content": "end" }
|
|
22
|
+
};
|
|
23
|
+
var _hoisted_6 = {
|
|
24
|
+
key: 2,
|
|
25
|
+
class: "bg-[#F2F4F7] rounded-4px p8px"
|
|
26
|
+
};
|
|
27
|
+
var _hoisted_7 = { class: "ks-row-middle" };
|
|
28
|
+
var _hoisted_8 = { class: "ks-row-middle" };
|
|
29
|
+
var node_binding_page_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
30
|
+
__name: "node-binding-page",
|
|
31
|
+
props: { data: {} },
|
|
32
|
+
setup(__props) {
|
|
33
|
+
const props = __props;
|
|
34
|
+
const { globalData } = useProcess();
|
|
35
|
+
const paasBpmnReadonly = inject("paasBpmnReadonly", false);
|
|
36
|
+
const addFormKey = ref();
|
|
37
|
+
const pageType = computed(() => {
|
|
38
|
+
return addFormKey.value === "webPageKey" || addFormKey.value === "webViewPageKey" ? PageTypeEnum.WEB : PageTypeEnum.MOBILE;
|
|
39
|
+
});
|
|
40
|
+
const treeData = ref([]);
|
|
41
|
+
const [registerNewPage, { openModal: openPageModal }] = useModal$1();
|
|
42
|
+
const { getUuid } = useUUid(treeData, pageType);
|
|
43
|
+
const webOptions = ref([]);
|
|
44
|
+
const mobileOptions = ref([]);
|
|
45
|
+
const isFrontPage = inject("isFrontPage");
|
|
46
|
+
const formState = computed({
|
|
47
|
+
get() {
|
|
48
|
+
return props.data;
|
|
49
|
+
},
|
|
50
|
+
set(value) {
|
|
51
|
+
Object.assign(props.data ?? {}, value);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
onMounted(() => {
|
|
55
|
+
getWebPages();
|
|
56
|
+
getMobilePages();
|
|
57
|
+
});
|
|
58
|
+
const addPage = async (formKey) => {
|
|
59
|
+
addFormKey.value = formKey;
|
|
60
|
+
if (pageType.value === PageTypeEnum.WEB) await getWebPages();
|
|
61
|
+
else await getMobilePages();
|
|
62
|
+
openPageModal(true, { uuid: getUuid() });
|
|
63
|
+
treeData.value = pageType.value === PageTypeEnum.WEB ? webOptions.value : mobileOptions.value;
|
|
64
|
+
};
|
|
65
|
+
const getWebPages = async () => {
|
|
66
|
+
webOptions.value = await _api.apaas.category.getListComplete({ module: PageTypeEnum.WEB }) || [];
|
|
67
|
+
};
|
|
68
|
+
const getMobilePages = async () => {
|
|
69
|
+
mobileOptions.value = await _api.apaas.category.getListComplete({ module: PageTypeEnum.MOBILE }) || [];
|
|
70
|
+
};
|
|
71
|
+
const onRefresh = (data) => {
|
|
72
|
+
formState.value[addFormKey.value] = data.key;
|
|
73
|
+
if (pageType.value === PageTypeEnum.WEB) getWebPages();
|
|
74
|
+
else getMobilePages();
|
|
75
|
+
};
|
|
76
|
+
const openDesign = (type, pid) => {
|
|
77
|
+
openWindow(genUrl(`${location.origin}undefined${type === PageTypeEnum.MOBILE ? "&platform=mobile" : ""}`, {
|
|
78
|
+
aid: _gct.store.context.aid,
|
|
79
|
+
pid,
|
|
80
|
+
bid: _gct.store.context.bid
|
|
81
|
+
}), { target: "_blank" });
|
|
82
|
+
};
|
|
83
|
+
const updateForm = (key, value) => {
|
|
84
|
+
formState.value = {
|
|
85
|
+
...formState.value,
|
|
86
|
+
[key]: value
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
return (_ctx, _cache) => {
|
|
90
|
+
const _component_a_switch = resolveComponent("a-switch");
|
|
91
|
+
const _component_a_select = resolveComponent("a-select");
|
|
92
|
+
const _component_a_tooltip = resolveComponent("a-tooltip");
|
|
93
|
+
const _component_pageModal = resolveComponent("pageModal");
|
|
94
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
95
|
+
formState.value.type === "global" || !!unref(globalData).data.webPageOption ? (openBlock(), createBlock(form_item_default, {
|
|
96
|
+
key: 0,
|
|
97
|
+
label: "WEB",
|
|
98
|
+
colon: false,
|
|
99
|
+
"is-first": "",
|
|
100
|
+
class: "mb2px"
|
|
101
|
+
}, {
|
|
102
|
+
default: withCtx(() => [withDirectives(createElementVNode("div", _hoisted_1, [createVNode(_component_a_switch, {
|
|
103
|
+
checked: unref(globalData).data.webPageOption,
|
|
104
|
+
"onUpdate:checked": _cache[0] || (_cache[0] = ($event) => unref(globalData).data.webPageOption = $event),
|
|
105
|
+
size: "small",
|
|
106
|
+
disabled: unref(paasBpmnReadonly) || !unref(globalData).data.mobilePageOption
|
|
107
|
+
}, null, 8, ["checked", "disabled"])], 512), [[vShow, formState.value.type === "global"]])]),
|
|
108
|
+
_: 1
|
|
109
|
+
})) : createCommentVNode("", true),
|
|
110
|
+
unref(globalData).data.webPageOption ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(form_item_default, {
|
|
111
|
+
"is-first": "",
|
|
112
|
+
label: unref(t)("sys.process.approvalPage"),
|
|
113
|
+
inline: false,
|
|
114
|
+
rules: [{
|
|
115
|
+
required: formState.value.type === "global",
|
|
116
|
+
message: unref(t)("sys.chooseTextTip", { name: unref(t)("sys.process.approvalPage") })
|
|
117
|
+
}]
|
|
118
|
+
}, {
|
|
119
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_3, [createVNode(_component_a_select, {
|
|
120
|
+
value: formState.value.webPageKey || unref(globalData).data.webPageKey,
|
|
121
|
+
placeholder: unref(t)("sys.chooseText"),
|
|
122
|
+
options: webOptions.value.filter((e) => e.children && e.children.length),
|
|
123
|
+
"field-names": {
|
|
124
|
+
label: "name",
|
|
125
|
+
value: "id",
|
|
126
|
+
options: "children"
|
|
127
|
+
},
|
|
128
|
+
disabled: unref(paasBpmnReadonly),
|
|
129
|
+
"get-popup-container": (trigger) => trigger.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode,
|
|
130
|
+
"dropdown-class-name": "gct-project-select-dropdown",
|
|
131
|
+
"show-search": "",
|
|
132
|
+
"allow-clear": "",
|
|
133
|
+
"option-filter-prop": "name",
|
|
134
|
+
size: "small",
|
|
135
|
+
"onUpdate:value": _cache[1] || (_cache[1] = (val) => updateForm("webPageKey", val))
|
|
136
|
+
}, null, 8, [
|
|
137
|
+
"value",
|
|
138
|
+
"placeholder",
|
|
139
|
+
"options",
|
|
140
|
+
"disabled",
|
|
141
|
+
"get-popup-container"
|
|
142
|
+
]), !unref(isFrontPage) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(_component_a_tooltip, { placement: "top" }, {
|
|
143
|
+
title: withCtx(() => [createTextVNode(toDisplayString(unref(t)("sys.menu.pageDesign")), 1)]),
|
|
144
|
+
default: withCtx(() => [formState.value.webPageKey ? (openBlock(), createElementBlock("i", {
|
|
145
|
+
key: 0,
|
|
146
|
+
class: "iconfont icon-sheji1 primary-gct cursor-pointer ml8px",
|
|
147
|
+
onClick: _cache[2] || (_cache[2] = ($event) => openDesign(unref(PageTypeEnum).WEB, formState.value.webPageKey))
|
|
148
|
+
})) : createCommentVNode("", true)]),
|
|
149
|
+
_: 1
|
|
150
|
+
}), createVNode(_component_a_tooltip, {
|
|
151
|
+
placement: "topRight",
|
|
152
|
+
"arrow-point-at-center": true
|
|
153
|
+
}, {
|
|
154
|
+
title: withCtx(() => [createTextVNode(toDisplayString(unref(t)("sys.appDesigner.newMobilePage")), 1)]),
|
|
155
|
+
default: withCtx(() => [createElementVNode("i", {
|
|
156
|
+
class: normalizeClass(["iconfont icon-chuangjian primary-gct cursor-pointer ml8px", [unref(paasBpmnReadonly) && "disabled"]]),
|
|
157
|
+
onClick: _cache[3] || (_cache[3] = ($event) => !unref(paasBpmnReadonly) && addPage("webPageKey"))
|
|
158
|
+
}, null, 2)]),
|
|
159
|
+
_: 1
|
|
160
|
+
})], 64)) : createCommentVNode("", true)])]),
|
|
161
|
+
_: 1
|
|
162
|
+
}, 8, ["label", "rules"]), createVNode(form_item_default, {
|
|
163
|
+
"is-first": "",
|
|
164
|
+
label: unref(t)("sys.process.viewPage"),
|
|
165
|
+
inline: false,
|
|
166
|
+
rules: [{
|
|
167
|
+
required: formState.value.type === "global",
|
|
168
|
+
message: unref(t)("sys.chooseTextTip", { name: unref(t)("sys.process.viewPage") })
|
|
169
|
+
}]
|
|
170
|
+
}, {
|
|
171
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_4, [createVNode(_component_a_select, {
|
|
172
|
+
value: formState.value.webViewPageKey || unref(globalData).data.webViewPageKey,
|
|
173
|
+
placeholder: unref(t)("sys.chooseText"),
|
|
174
|
+
options: webOptions.value.filter((e) => e.children && e.children.length),
|
|
175
|
+
"field-names": {
|
|
176
|
+
label: "name",
|
|
177
|
+
value: "id",
|
|
178
|
+
options: "children"
|
|
179
|
+
},
|
|
180
|
+
disabled: unref(paasBpmnReadonly),
|
|
181
|
+
"get-popup-container": (trigger) => trigger.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode,
|
|
182
|
+
"dropdown-class-name": "gct-project-select-dropdown",
|
|
183
|
+
"show-search": "",
|
|
184
|
+
"allow-clear": "",
|
|
185
|
+
"option-filter-prop": "name",
|
|
186
|
+
size: "small",
|
|
187
|
+
"onUpdate:value": _cache[4] || (_cache[4] = (val) => updateForm("webViewPageKey", val))
|
|
188
|
+
}, null, 8, [
|
|
189
|
+
"value",
|
|
190
|
+
"placeholder",
|
|
191
|
+
"options",
|
|
192
|
+
"disabled",
|
|
193
|
+
"get-popup-container"
|
|
194
|
+
]), !unref(isFrontPage) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(_component_a_tooltip, { placement: "top" }, {
|
|
195
|
+
title: withCtx(() => [createTextVNode(toDisplayString(unref(t)("sys.menu.pageDesign")), 1)]),
|
|
196
|
+
default: withCtx(() => [formState.value.webViewPageKey ? (openBlock(), createElementBlock("i", {
|
|
197
|
+
key: 0,
|
|
198
|
+
class: "iconfont icon-sheji1 primary-gct cursor-pointer ml8px",
|
|
199
|
+
onClick: _cache[5] || (_cache[5] = ($event) => openDesign(unref(PageTypeEnum).WEB, formState.value.webViewPageKey))
|
|
200
|
+
})) : createCommentVNode("", true)]),
|
|
201
|
+
_: 1
|
|
202
|
+
}), createVNode(_component_a_tooltip, {
|
|
203
|
+
placement: "topRight",
|
|
204
|
+
"arrow-point-at-center": true
|
|
205
|
+
}, {
|
|
206
|
+
title: withCtx(() => [createTextVNode(toDisplayString(unref(t)("sys.appDesigner.newMobilePage")), 1)]),
|
|
207
|
+
default: withCtx(() => [createElementVNode("i", {
|
|
208
|
+
class: normalizeClass(["iconfont icon-chuangjian primary-gct cursor-pointer ml8px", [unref(paasBpmnReadonly) && "disabled"]]),
|
|
209
|
+
onClick: _cache[6] || (_cache[6] = ($event) => !unref(paasBpmnReadonly) && addPage("webViewPageKey"))
|
|
210
|
+
}, null, 2)]),
|
|
211
|
+
_: 1
|
|
212
|
+
})], 64)) : createCommentVNode("", true)])]),
|
|
213
|
+
_: 1
|
|
214
|
+
}, 8, ["label", "rules"])])) : createCommentVNode("", true),
|
|
215
|
+
withDirectives(createVNode(form_item_default, {
|
|
216
|
+
"is-first": !unref(globalData).data.webPageOption,
|
|
217
|
+
colon: false,
|
|
218
|
+
label: "MOBILE",
|
|
219
|
+
class: "mb2px"
|
|
220
|
+
}, {
|
|
221
|
+
default: withCtx(() => [formState.value.type === "global" ? (openBlock(), createElementBlock("div", _hoisted_5, [createVNode(_component_a_switch, {
|
|
222
|
+
checked: unref(globalData).data.mobilePageOption,
|
|
223
|
+
"onUpdate:checked": _cache[7] || (_cache[7] = ($event) => unref(globalData).data.mobilePageOption = $event),
|
|
224
|
+
size: "small",
|
|
225
|
+
disabled: unref(paasBpmnReadonly) || !unref(globalData).data.webPageOption
|
|
226
|
+
}, null, 8, ["checked", "disabled"])])) : createCommentVNode("", true)]),
|
|
227
|
+
_: 1
|
|
228
|
+
}, 8, ["is-first"]), [[vShow, formState.value.type === "global" || !!unref(globalData).data.mobilePageOption]]),
|
|
229
|
+
unref(globalData).data.mobilePageOption ? (openBlock(), createElementBlock("div", _hoisted_6, [createVNode(form_item_default, {
|
|
230
|
+
label: unref(t)("sys.process.approvalPage"),
|
|
231
|
+
"is-first": "",
|
|
232
|
+
inline: false,
|
|
233
|
+
rules: [{
|
|
234
|
+
required: formState.value.type === "global",
|
|
235
|
+
message: unref(t)("sys.chooseTextTip", { name: unref(t)("sys.process.approvalPage") })
|
|
236
|
+
}]
|
|
237
|
+
}, {
|
|
238
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_7, [createVNode(_component_a_select, {
|
|
239
|
+
value: formState.value.mobilePageKey || unref(globalData).data.mobilePageKey,
|
|
240
|
+
placeholder: unref(t)("sys.chooseText"),
|
|
241
|
+
options: mobileOptions.value.filter((e) => e.children && e.children.length),
|
|
242
|
+
"field-names": {
|
|
243
|
+
label: "name",
|
|
244
|
+
value: "id",
|
|
245
|
+
options: "children"
|
|
246
|
+
},
|
|
247
|
+
"get-popup-container": (trigger) => trigger.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode,
|
|
248
|
+
disabled: unref(paasBpmnReadonly),
|
|
249
|
+
"dropdown-class-name": "gct-project-select-dropdown",
|
|
250
|
+
"show-search": "",
|
|
251
|
+
"allow-clear": "",
|
|
252
|
+
"option-filter-prop": "name",
|
|
253
|
+
size: "small",
|
|
254
|
+
"onUpdate:value": _cache[8] || (_cache[8] = (val) => updateForm("mobilePageKey", val))
|
|
255
|
+
}, null, 8, [
|
|
256
|
+
"value",
|
|
257
|
+
"placeholder",
|
|
258
|
+
"options",
|
|
259
|
+
"get-popup-container",
|
|
260
|
+
"disabled"
|
|
261
|
+
]), !unref(isFrontPage) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(_component_a_tooltip, { placement: "top" }, {
|
|
262
|
+
title: withCtx(() => [createTextVNode(toDisplayString(unref(t)("sys.menu.pageDesign")), 1)]),
|
|
263
|
+
default: withCtx(() => [formState.value.mobilePageKey ? (openBlock(), createElementBlock("i", {
|
|
264
|
+
key: 0,
|
|
265
|
+
class: "iconfont icon-sheji1 primary-gct cursor-pointer ml8px",
|
|
266
|
+
onClick: _cache[9] || (_cache[9] = ($event) => openDesign(unref(PageTypeEnum).MOBILE, formState.value.mobilePageKey))
|
|
267
|
+
})) : createCommentVNode("", true)]),
|
|
268
|
+
_: 1
|
|
269
|
+
}), createVNode(_component_a_tooltip, {
|
|
270
|
+
placement: "topRight",
|
|
271
|
+
"arrow-point-at-center": true
|
|
272
|
+
}, {
|
|
273
|
+
title: withCtx(() => [createTextVNode(toDisplayString(unref(t)("sys.appDesigner.newMobilePage")), 1)]),
|
|
274
|
+
default: withCtx(() => [createElementVNode("i", {
|
|
275
|
+
class: normalizeClass(["iconfont icon-chuangjian primary-gct cursor-pointer ml8px", [unref(paasBpmnReadonly) && "disabled"]]),
|
|
276
|
+
onClick: _cache[10] || (_cache[10] = ($event) => !unref(paasBpmnReadonly) && addPage("mobilePageKey"))
|
|
277
|
+
}, null, 2)]),
|
|
278
|
+
_: 1
|
|
279
|
+
})], 64)) : createCommentVNode("", true)])]),
|
|
280
|
+
_: 1
|
|
281
|
+
}, 8, ["label", "rules"]), createVNode(form_item_default, {
|
|
282
|
+
label: unref(t)("sys.process.viewPage"),
|
|
283
|
+
inline: false,
|
|
284
|
+
rules: [{
|
|
285
|
+
required: formState.value.type === "global",
|
|
286
|
+
message: unref(t)("sys.chooseTextTip", { name: unref(t)("sys.process.viewPage") })
|
|
287
|
+
}]
|
|
288
|
+
}, {
|
|
289
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_8, [createVNode(_component_a_select, {
|
|
290
|
+
value: formState.value.mobileViewPageKey || unref(globalData).data.mobileViewPageKey,
|
|
291
|
+
placeholder: unref(t)("sys.chooseText"),
|
|
292
|
+
options: mobileOptions.value.filter((e) => e.children && e.children.length),
|
|
293
|
+
"field-names": {
|
|
294
|
+
label: "name",
|
|
295
|
+
value: "id",
|
|
296
|
+
options: "children"
|
|
297
|
+
},
|
|
298
|
+
"get-popup-container": (trigger) => trigger.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode,
|
|
299
|
+
disabled: unref(paasBpmnReadonly),
|
|
300
|
+
"dropdown-class-name": "gct-project-select-dropdown",
|
|
301
|
+
"show-search": "",
|
|
302
|
+
"allow-clear": "",
|
|
303
|
+
"option-filter-prop": "name",
|
|
304
|
+
size: "small",
|
|
305
|
+
"onUpdate:value": _cache[11] || (_cache[11] = (val) => updateForm("mobileViewPageKey", val))
|
|
306
|
+
}, null, 8, [
|
|
307
|
+
"value",
|
|
308
|
+
"placeholder",
|
|
309
|
+
"options",
|
|
310
|
+
"get-popup-container",
|
|
311
|
+
"disabled"
|
|
312
|
+
]), !unref(isFrontPage) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(_component_a_tooltip, { placement: "top" }, {
|
|
313
|
+
title: withCtx(() => [createTextVNode(toDisplayString(unref(t)("sys.menu.pageDesign")), 1)]),
|
|
314
|
+
default: withCtx(() => [formState.value.mobileViewPageKey ? (openBlock(), createElementBlock("i", {
|
|
315
|
+
key: 0,
|
|
316
|
+
class: "iconfont icon-sheji1 primary-gct cursor-pointer ml8px",
|
|
317
|
+
onClick: _cache[12] || (_cache[12] = ($event) => openDesign(unref(PageTypeEnum).MOBILE, formState.value.mobileViewPageKey))
|
|
318
|
+
})) : createCommentVNode("", true)]),
|
|
319
|
+
_: 1
|
|
320
|
+
}), createVNode(_component_a_tooltip, {
|
|
321
|
+
placement: "topRight",
|
|
322
|
+
"arrow-point-at-center": true
|
|
323
|
+
}, {
|
|
324
|
+
title: withCtx(() => [createTextVNode(toDisplayString(unref(t)("sys.appDesigner.newMobilePage")), 1)]),
|
|
325
|
+
default: withCtx(() => [createElementVNode("i", {
|
|
326
|
+
class: normalizeClass(["iconfont icon-chuangjian primary-gct cursor-pointer ml8px", [unref(paasBpmnReadonly) && "disabled"]]),
|
|
327
|
+
onClick: _cache[13] || (_cache[13] = ($event) => !unref(paasBpmnReadonly) && addPage("mobileViewPageKey"))
|
|
328
|
+
}, null, 2)]),
|
|
329
|
+
_: 1
|
|
330
|
+
})], 64)) : createCommentVNode("", true)])]),
|
|
331
|
+
_: 1
|
|
332
|
+
}, 8, ["label", "rules"])])) : createCommentVNode("", true),
|
|
333
|
+
createVNode(_component_pageModal, {
|
|
334
|
+
"web-page-category": treeData.value,
|
|
335
|
+
tab: pageType.value,
|
|
336
|
+
onRegister: unref(registerNewPage),
|
|
337
|
+
onRefresh
|
|
338
|
+
}, null, 8, [
|
|
339
|
+
"web-page-category",
|
|
340
|
+
"tab",
|
|
341
|
+
"onRegister"
|
|
342
|
+
])
|
|
343
|
+
], 64);
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
//#endregion
|
|
348
|
+
export { node_binding_page_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_btns_vue_vue_type_script_setup_true_lang_default from "./node-btns.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
+
import './node-btns.vue_vue_type_style_index_0_scoped_6d0b3f3b_lang.css';/* empty css */
|
|
4
|
+
//#region src/modules/process-designer/components/node-btns.vue
|
|
5
|
+
var node_btns_default = /* @__PURE__ */ _plugin_vue_export_helper_default(node_btns_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-6d0b3f3b"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { node_btns_default as default };
|