@web-utils/component 4.0.16 → 5.0.0-beta01
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/address-input/index.mjs +76 -74
- package/affix/index.mjs +71 -78
- package/aside-menu/index.mjs +20 -31
- package/avatar/index.mjs +94 -82
- package/awesome-button/index.mjs +54 -71
- package/capsule-tab/index.mjs +27 -32
- package/card/index.mjs +86 -69
- package/carousel/index.mjs +45 -32
- package/chat/index.mjs +441 -266
- package/chunk-file-uploader/index.mjs +2 -103
- package/chunks/ChunkFileUploader.C3EA0e5t.mjs +114 -0
- package/chunks/EditableTree.C_IJBL5b.mjs +648 -0
- package/chunks/ElementBaseInfo.DyuFR6fE.mjs +209 -0
- package/chunks/ElementDialog.C0IjriTW.mjs +681 -0
- package/chunks/ElementForm.ButuYDPA.mjs +627 -0
- package/chunks/ElementListeners.Dg3e_dmp.mjs +656 -0
- package/chunks/ElementMultiInstance.Dmi79FqA.mjs +290 -0
- package/chunks/ElementOtherConfig.C2AddGTp.mjs +51 -0
- package/chunks/ElementProperties.CfV8UF7L.mjs +196 -0
- package/chunks/ElementTaskConfig.Bn7ycGGn.mjs +446 -0
- package/chunks/FlowCondition.C6PdqOAW.mjs +194 -0
- package/chunks/FlowDesigner.uJYFfKpR.mjs +5101 -0
- package/chunks/FormBlock.BEENc22F.mjs +117 -0
- package/chunks/FormCascader.CaM-oEhv.mjs +1226 -0
- package/chunks/FormInputTime.Bg3UIP8H.mjs +1773 -0
- package/chunks/FormItem.H9OOvNzT.mjs +90 -0
- package/chunks/FormItemGroup.D9eRy-cZ.mjs +147 -0
- package/chunks/FormSelect.CanodoAI.mjs +1472 -0
- package/chunks/FormSwitch.DTqdaFjv.mjs +296 -0
- package/chunks/FormTemp.DiI5EfgK.mjs +139 -0
- package/chunks/FyCurd.DMj1dMK9.mjs +2622 -0
- package/chunks/FyForm.vgR8ujEF.mjs +904 -0
- package/chunks/FyFormDesign.DEWT6LsX.mjs +5600 -0
- package/chunks/FyUEditor.D_rEYfll.mjs +221 -0
- package/chunks/FyUpload.B2QKfTxF.mjs +504 -0
- package/chunks/Keyboard.ItiRy7Gb.mjs +379 -0
- package/chunks/MonacoEditor.Bd5Kui-Y.mjs +301 -0
- package/chunks/PageableTable.Bujb0NUx.mjs +658 -0
- package/chunks/RecordVideo.B35_dLty.mjs +116 -0
- package/chunks/SignalAndMessage.CYVzlFuL.mjs +198 -0
- package/chunks/SplitPane.Dw96M0Yf.mjs +219 -0
- package/chunks/TableColumn.DJYkznbJ.mjs +180 -0
- package/chunks/TableView.DyIdIxAg.mjs +484 -0
- package/chunks/Toolbar.DHuXJAoG.mjs +219 -0
- package/chunks/UserTaskListeners.Bp-2qkHs.mjs +599 -0
- package/chunks/VueCron.GfjodnyM.mjs +1766 -0
- package/chunks/VueTreeSelect.9Ywl-I8e.mjs +1872 -0
- package/chunks/_plugin-vue_export-helper.7vrlOII_.mjs +8 -0
- package/chunks/checkbox.emIuFmnt.mjs +437 -0
- package/chunks/confirmable-mixin.BBil7dto.mjs +1646 -0
- package/chunks/core.DJv6Qrae.mjs +51 -0
- package/chunks/dataformat.Bfr4nOcA.mjs +144 -0
- package/chunks/dic.DgDfnovD.mjs +116 -0
- package/chunks/dictionary.5eKjWeAp.mjs +19 -0
- package/chunks/dictionary.DxZxP0ej.mjs +87 -0
- package/chunks/event.B4iwtUNO.mjs +4 -0
- package/chunks/event.eJ-c1Z3a.mjs +224 -0
- package/chunks/focus-trap.DT4GnqQI.mjs +211 -0
- package/chunks/form-input.D25eDRMq.mjs +34 -0
- package/chunks/form-item.CgmUuw_n.mjs +714 -0
- package/chunks/form-pick.Axem0gOO.mjs +7 -0
- package/chunks/form-validate.B1KPCHqN.mjs +11 -0
- package/chunks/icon.CbS8-322.mjs +259 -0
- package/chunks/init.DwpukyOB.mjs +115 -0
- package/chunks/input.PejnqwSH.mjs +547 -0
- package/chunks/install.yLcn5MLL.mjs +84 -0
- package/chunks/message.BCmee5N0.mjs +400 -0
- package/chunks/overlay.DubSnqma.mjs +122 -0
- package/chunks/packages.BGjydzjm.mjs +56 -0
- package/chunks/permission.DgEVNWlh.mjs +16 -0
- package/chunks/photo-swipe.BB0SJZg9.mjs +55 -0
- package/chunks/radio.BotKXqJr.mjs +274 -0
- package/chunks/scroll.CzORc5Zk.mjs +28 -0
- package/chunks/scrollbar.CAmrlKi9.mjs +345 -0
- package/chunks/slot.C6Ozd2e7.mjs +25 -0
- package/chunks/style.BmlGmjpO.mjs +325 -0
- package/chunks/sub-table-plus-props.B_lLth3j.mjs +28 -0
- package/chunks/tab-mixin.u0EZpx3j.mjs +70 -0
- package/chunks/tag.DPi-PLbb.mjs +141 -0
- package/chunks/teleport._VGEzK4d.mjs +22 -0
- package/chunks/tooltip.D50x7Rva.mjs +1926 -0
- package/chunks/typescript.DiWBU4nj.mjs +4 -0
- package/chunks/use-aria.BW7nWOl1.mjs +17 -0
- package/chunks/use-composition.mUaomyno.mjs +47 -0
- package/chunks/use-deprecated.BfDSbZS9.mjs +12 -0
- package/chunks/use-empty-values.Dy_r78F6.mjs +263 -0
- package/chunks/use-form-item.wsRjehHp.mjs +47 -0
- package/chunks/use-global-config.C9hs-O_x.mjs +56 -0
- package/chunks/use-id.CFO5NeoV.mjs +15 -0
- package/chunks/use-size.DxrwTUwf.mjs +18 -0
- package/chunks/util.B3sjVZoZ.mjs +103 -0
- package/chunks/util.g-WQEec9.mjs +223 -0
- package/chunks/utilSelf.ZED4DmCU.mjs +46 -0
- package/chunks/utils.Cs2fYBrT.mjs +60 -0
- package/chunks/utils.DsGhtCIO.mjs +14 -0
- package/chunks/validator.C4-z_t9p.mjs +5 -0
- package/chunks/vnode.D_SioRnx.mjs +14 -0
- package/code-mirror-editor/index.mjs +89 -88
- package/comment/index.mjs +62 -57
- package/configComponents.mjs +40 -50
- package/confirm-button/index.mjs +34 -46
- package/confirmable/index.mjs +7 -17
- package/context-menu/index.mjs +195 -174
- package/count-up/index.mjs +97 -105
- package/custom-scrollbar/index.mjs +91 -98
- package/data-box/index.mjs +64 -44
- package/data-card/index.mjs +60 -47
- package/data-card-text/index.mjs +63 -49
- package/data-display/index.mjs +71 -51
- package/data-icons/index.mjs +70 -50
- package/data-imgtext/index.mjs +67 -43
- package/data-operatext/index.mjs +51 -40
- package/data-panel/index.mjs +57 -44
- package/data-pay/index.mjs +105 -48
- package/data-price/index.mjs +48 -40
- package/data-progress/index.mjs +67 -44
- package/data-rotate/index.mjs +61 -44
- package/data-table-picker/index.mjs +119 -71
- package/data-tabs/index.mjs +67 -44
- package/dialog-form/index.mjs +139 -87
- package/dynamic-table/index.mjs +166 -109
- package/e-charts/index.mjs +174 -200
- package/easy-popup/index.mjs +91 -102
- package/editable-progress/index.mjs +112 -83
- package/editable-tree/index.mjs +2 -481
- package/element-dialog/index.mjs +2 -306
- package/ellipsis/index.mjs +124 -148
- package/empty-view/index.mjs +48 -65
- package/error-view/index.mjs +39 -51
- package/flex-column/index.mjs +32 -51
- package/flex-item/index.mjs +54 -64
- package/flex-row/index.mjs +32 -39
- package/flex-scroller/index.mjs +29 -30
- package/flow/index.mjs +240 -247
- package/flow-designer/index.mjs +2 -4709
- package/flow-node/index.mjs +56 -64
- package/flow-viewer/index.mjs +159 -157
- package/form-block/index.mjs +2 -147
- package/form-button/index.mjs +35 -47
- package/form-card/index.mjs +14 -25
- package/form-cascader/index.mjs +2 -115
- package/form-checkbox/index.mjs +89 -70
- package/form-checkbox-group/index.mjs +161 -113
- package/form-date-picker/index.mjs +155 -142
- package/form-holder/index.mjs +137 -109
- package/form-input/index.mjs +113 -86
- package/form-input-cron-expression/index.mjs +97 -76
- package/form-input-email/index.mjs +64 -51
- package/form-input-id-card/index.mjs +72 -54
- package/form-input-phone-number/index.mjs +71 -56
- package/form-input-tag/index.mjs +88 -61
- package/form-input-time/index.mjs +2 -73
- package/form-item/index.mjs +2 -142
- package/form-item-config-provider/index.mjs +46 -60
- package/form-item-group/index.mjs +2 -157
- package/form-radio-group/index.mjs +161 -121
- package/form-select/index.mjs +2 -179
- package/form-switch/index.mjs +2 -54
- package/form-table/index.mjs +131 -84
- package/form-table-plus/index.mjs +164 -108
- package/form-textarea/index.mjs +90 -56
- package/form-tree-select/index.mjs +89 -71
- package/form-tree-select-multiple/index.mjs +92 -77
- package/form-view/index.mjs +275 -207
- package/fy-array/index.mjs +121 -70
- package/fy-article/index.mjs +73 -60
- package/fy-cascader/index.mjs +113 -90
- package/fy-checkbox/index.mjs +96 -64
- package/fy-code/index.mjs +48 -50
- package/fy-curd/index.mjs +2 -1879
- package/fy-date/index.mjs +76 -41
- package/fy-draggable/index.mjs +322 -317
- package/fy-dynamic/index.mjs +259 -224
- package/fy-empty/index.mjs +35 -36
- package/fy-form/index.mjs +2 -640
- package/fy-form-design/index.mjs +2 -2852
- package/fy-form-design/style.css +1 -1
- package/fy-from/crud/zh.d.ts +1 -1
- package/fy-input/index.mjs +117 -97
- package/fy-input-color/index.mjs +77 -54
- package/fy-input-icon/index.mjs +129 -82
- package/fy-input-map/index.mjs +242 -183
- package/fy-input-number/index.mjs +74 -49
- package/fy-input-table/index.mjs +160 -105
- package/fy-input-tree/index.mjs +259 -178
- package/fy-progress/index.mjs +36 -39
- package/fy-radio/index.mjs +53 -37
- package/fy-rate/index.mjs +86 -70
- package/fy-select/index.mjs +224 -137
- package/fy-slider/index.mjs +68 -43
- package/fy-switch/index.mjs +67 -41
- package/fy-tabs/index.mjs +46 -46
- package/fy-time/index.mjs +81 -53
- package/fy-title/index.mjs +18 -27
- package/fy-tree/index.mjs +382 -286
- package/fy-u-editor/index.mjs +2 -357
- package/fy-upload/index.mjs +2 -421
- package/guide-steps/index.mjs +72 -71
- package/helper-function.d.ts +2 -30
- package/helper-function.mjs +41 -67
- package/highlight-j-s/index.mjs +50 -59
- package/icon-card/index.mjs +34 -36
- package/icon-temp/index.mjs +27 -27
- package/iframe-window/index.mjs +39 -32
- package/image-cropper/index.mjs +171 -73
- package/image-preview/index.mjs +187 -116
- package/image-viewer/index.mjs +69 -66
- package/index.d.ts +3 -9
- package/index.mjs +174 -489
- package/input-number-range/index.mjs +78 -58
- package/j-s-x-component/index.mjs +13 -15
- package/keyboard/index.mjs +2 -369
- package/license/index.mjs +106 -115
- package/loading-view/index.mjs +39 -51
- package/login/index.mjs +252 -120
- package/monaco-editor/index.mjs +2 -7
- package/name-avatar/index.mjs +61 -53
- package/nav-bar/index.mjs +33 -30
- package/not-implement/index.mjs +10 -22
- package/notice/index.mjs +100 -93
- package/package.json +3 -3
- package/page/index.mjs +18 -25
- package/page-header/index.mjs +27 -33
- package/page-index/index.mjs +121 -99
- package/page-index-top/index.mjs +79 -74
- package/page-skeleton/index.mjs +47 -44
- package/page-skeleton-new/index.mjs +79 -49
- package/pageable-table/index.mjs +2 -512
- package/pageable-view/index.mjs +279 -274
- package/photo-swipe/index.d.ts +4 -0
- package/photo-swipe/index.mjs +33 -36
- package/picker-table-view/index.mjs +224 -117
- package/present-view/index.mjs +266 -196
- package/queue/index.mjs +45 -53
- package/record-video/index.mjs +2 -134
- package/resize-observer/index.mjs +43 -46
- package/search/index.mjs +116 -107
- package/sign/index.mjs +103 -110
- package/sign-panel/index.mjs +182 -141
- package/skeleton/index.mjs +51 -54
- package/skeleton-panel/index.mjs +33 -37
- package/split-pane/index.mjs +3 -196
- package/stateful/index.mjs +69 -73
- package/static-pageable-table/index.mjs +72 -64
- package/sub-table/index.mjs +508 -206
- package/sub-table-plus/index.mjs +592 -230
- package/swiper/index.mjs +128 -120
- package/tab/index.mjs +117 -119
- package/tab-item/index.mjs +48 -56
- package/table-column/index.mjs +2 -225
- package/table-view/index.mjs +3 -326
- package/tabs-view/index.mjs +109 -104
- package/tag-render/index.mjs +79 -67
- package/text-ellipsis/index.mjs +94 -77
- package/toolbar/index.mjs +2 -254
- package/toolbar-button/index.mjs +145 -120
- package/verify/index.mjs +58 -64
- package/vue-cron/index.mjs +2 -1180
- package/vue-qr-code/index.mjs +30 -54
- package/vue-quill-editor/index.mjs +123 -99
- package/vue-tags-input/index.mjs +348 -431
- package/vue-tree-select/index.mjs +2 -2627
- package/vue-video-player/index.mjs +135 -136
- package/watermark/index.mjs +46 -74
- package/web-types.json +197 -975
- package/x-input-tag/index.mjs +144 -106
- package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
- package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
- package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
- package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
- package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
- package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
- package/chunks/ElementTaskConfig.Bko0kgTp.mjs +0 -317
- package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
- package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
- package/chunks/MonacoEditor.D31t4FTy.mjs +0 -327
- package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
- package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
- package/chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs +0 -10
- package/chunks/confirmable-mixin.B2TtLAdk.mjs +0 -86
- package/chunks/core.0Exl13Mz.mjs +0 -54
- package/chunks/dataformat.CpqOeGBl.mjs +0 -154
- package/chunks/dic.Dkl-leRW.mjs +0 -128
- package/chunks/dictionary.DGt59Ir7.mjs +0 -68
- package/chunks/dictionary.DqiP9x2m.mjs +0 -25
- package/chunks/event.9aDS6jcw.mjs +0 -236
- package/chunks/form-input.CvFdwlEV.mjs +0 -31
- package/chunks/form-item.LWjePsPa.mjs +0 -233
- package/chunks/form-pick.BFTIVn_i.mjs +0 -11
- package/chunks/form-validate.CVarNHKX.mjs +0 -12
- package/chunks/helper.BiMLcEEk.mjs +0 -41
- package/chunks/index.9OxHjTIE.mjs +0 -16
- package/chunks/index.B2TRddqf.mjs +0 -184
- package/chunks/index.BmYCjxZQ.mjs +0 -47
- package/chunks/init.DAsXSoLW.mjs +0 -122
- package/chunks/packages.ByyangTp.mjs +0 -58
- package/chunks/permission.CO31YIkD.mjs +0 -16
- package/chunks/slot.DXIbhGat.mjs +0 -27
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
- package/chunks/tab-mixin.BNK6dxLN.mjs +0 -81
- package/chunks/util.DqFv_pWg.mjs +0 -241
- package/chunks/utilSelf.Csq1766E.mjs +0 -48
- package/chunks/utils.DRcxC1Fb.mjs +0 -60
- package/color-picker/index.mjs +0 -78
- package/egd-collapse/index.mjs +0 -62
- package/egd-collapse-item/index.mjs +0 -72
- package/form-input-number/index.mjs +0 -69
- package/form-input-number/style.css +0 -1
- package/input-number/index.mjs +0 -232
- package/input-number/style.css +0 -1
- package/keep-view-alive/index.mjs +0 -117
- package/search-popover/index.mjs +0 -118
- package/search-popover/style.css +0 -1
- /package/{base.css → utils/style.css} +0 -0
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
import { n } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
2
|
-
const o = {
|
|
3
|
-
name: "UserTask",
|
|
4
|
-
props: {
|
|
5
|
-
id: String,
|
|
6
|
-
element: Object,
|
|
7
|
-
bpmnInstances: Object
|
|
8
|
-
},
|
|
9
|
-
data() {
|
|
10
|
-
return {
|
|
11
|
-
defaultTaskForm: {
|
|
12
|
-
assignee: "",
|
|
13
|
-
candidateUsers: [],
|
|
14
|
-
candidateGroups: [],
|
|
15
|
-
dueDate: "",
|
|
16
|
-
followUpDate: "",
|
|
17
|
-
priority: ""
|
|
18
|
-
},
|
|
19
|
-
userTaskForm: {},
|
|
20
|
-
mockData: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
|
21
|
-
};
|
|
22
|
-
},
|
|
23
|
-
watch: {
|
|
24
|
-
id: {
|
|
25
|
-
immediate: !0,
|
|
26
|
-
handler() {
|
|
27
|
-
this.$nextTick(() => this.resetTaskForm());
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
methods: {
|
|
32
|
-
resetTaskForm() {
|
|
33
|
-
const { businessObject: a } = this.element;
|
|
34
|
-
for (const e in this.defaultTaskForm) {
|
|
35
|
-
let t;
|
|
36
|
-
["candidateUsers", "candidateGroups"].includes(e) ? t = a[e] ? a[e].split(",") : [] : t = a[e] || this.defaultTaskForm[e], this.$set(this.userTaskForm, e, t);
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
updateElementTask(a) {
|
|
40
|
-
const e = {};
|
|
41
|
-
a === "candidateUsers" || a === "candidateGroups" ? e[a] = this.userTaskForm[a] && this.userTaskForm[a].length ? this.userTaskForm[a].join() : null : e[a] = this.userTaskForm[a] || null, this.bpmnInstances.modeling.updateProperties(this.element, e);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
var l = function() {
|
|
46
|
-
var e = this, t = e._self._c;
|
|
47
|
-
return t("div", { staticStyle: { "margin-top": "16px" } }, [t("ElFormItem", { attrs: { label: "处理用户" } }, [t("ElSelect", { on: { change: function(s) {
|
|
48
|
-
return e.updateElementTask("assignee");
|
|
49
|
-
} }, model: { value: e.userTaskForm.assignee, callback: function(s) {
|
|
50
|
-
e.$set(e.userTaskForm, "assignee", s);
|
|
51
|
-
}, expression: "userTaskForm.assignee" } }, e._l(e.mockData, function(s) {
|
|
52
|
-
return t("ElOption", { key: `ass-${s}`, attrs: { label: `用户${s}`, value: `user${s}` } });
|
|
53
|
-
}), 1)], 1), t("ElFormItem", { attrs: { label: "候选用户" } }, [t("ElSelect", { attrs: { multiple: "", "collapse-tags": "" }, on: { change: function(s) {
|
|
54
|
-
return e.updateElementTask("candidateUsers");
|
|
55
|
-
} }, model: { value: e.userTaskForm.candidateUsers, callback: function(s) {
|
|
56
|
-
e.$set(e.userTaskForm, "candidateUsers", s);
|
|
57
|
-
}, expression: "userTaskForm.candidateUsers" } }, e._l(e.mockData, function(s) {
|
|
58
|
-
return t("ElOption", { key: `user-${s}`, attrs: { label: `用户${s}`, value: `user${s}` } });
|
|
59
|
-
}), 1)], 1), t("ElFormItem", { attrs: { label: "候选分组" } }, [t("ElSelect", { attrs: { multiple: "", "collapse-tags": "" }, on: { change: function(s) {
|
|
60
|
-
return e.updateElementTask("candidateGroups");
|
|
61
|
-
} }, model: { value: e.userTaskForm.candidateGroups, callback: function(s) {
|
|
62
|
-
e.$set(e.userTaskForm, "candidateGroups", s);
|
|
63
|
-
}, expression: "userTaskForm.candidateGroups" } }, e._l(e.mockData, function(s) {
|
|
64
|
-
return t("ElOption", { key: `ass-${s}`, attrs: { label: `分组${s}`, value: `group${s}` } });
|
|
65
|
-
}), 1)], 1), t("ElFormItem", { attrs: { label: "到期时间" } }, [t("ElInput", { attrs: { clearable: "" }, on: { change: function(s) {
|
|
66
|
-
return e.updateElementTask("dueDate");
|
|
67
|
-
} }, model: { value: e.userTaskForm.dueDate, callback: function(s) {
|
|
68
|
-
e.$set(e.userTaskForm, "dueDate", s);
|
|
69
|
-
}, expression: "userTaskForm.dueDate" } })], 1), t("ElFormItem", { attrs: { label: "跟踪时间" } }, [t("ElInput", { attrs: { clearable: "" }, on: { change: function(s) {
|
|
70
|
-
return e.updateElementTask("followUpDate");
|
|
71
|
-
} }, model: { value: e.userTaskForm.followUpDate, callback: function(s) {
|
|
72
|
-
e.$set(e.userTaskForm, "followUpDate", s);
|
|
73
|
-
}, expression: "userTaskForm.followUpDate" } })], 1), t("ElFormItem", { attrs: { label: "优先级" } }, [t("ElInput", { attrs: { clearable: "" }, on: { change: function(s) {
|
|
74
|
-
return e.updateElementTask("priority");
|
|
75
|
-
} }, model: { value: e.userTaskForm.priority, callback: function(s) {
|
|
76
|
-
e.$set(e.userTaskForm, "priority", s);
|
|
77
|
-
}, expression: "userTaskForm.priority" } })], 1)], 1);
|
|
78
|
-
}, c = [], m = /* @__PURE__ */ n(
|
|
79
|
-
o,
|
|
80
|
-
l,
|
|
81
|
-
c,
|
|
82
|
-
!1,
|
|
83
|
-
null,
|
|
84
|
-
null
|
|
85
|
-
);
|
|
86
|
-
const p = m.exports, u = {
|
|
87
|
-
name: "ScriptTask",
|
|
88
|
-
props: {
|
|
89
|
-
id: String,
|
|
90
|
-
element: Object,
|
|
91
|
-
bpmnInstances: Object
|
|
92
|
-
},
|
|
93
|
-
data() {
|
|
94
|
-
return {
|
|
95
|
-
defaultTaskForm: {
|
|
96
|
-
scriptFormat: "",
|
|
97
|
-
script: "",
|
|
98
|
-
resource: "",
|
|
99
|
-
resultVariable: ""
|
|
100
|
-
},
|
|
101
|
-
scriptTaskForm: {}
|
|
102
|
-
};
|
|
103
|
-
},
|
|
104
|
-
watch: {
|
|
105
|
-
id: {
|
|
106
|
-
immediate: !0,
|
|
107
|
-
handler() {
|
|
108
|
-
this.$nextTick(() => this.resetTaskForm());
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
methods: {
|
|
113
|
-
resetTaskForm() {
|
|
114
|
-
var a;
|
|
115
|
-
for (const e in this.defaultTaskForm) {
|
|
116
|
-
const t = ((a = this.element) == null ? void 0 : a.businessObject[e]) || this.defaultTaskForm[e];
|
|
117
|
-
this.$set(this.scriptTaskForm, e, t);
|
|
118
|
-
}
|
|
119
|
-
this.$set(this.scriptTaskForm, "scriptType", this.scriptTaskForm.script ? "inline" : "external");
|
|
120
|
-
},
|
|
121
|
-
updateElementTask() {
|
|
122
|
-
const a = /* @__PURE__ */ Object.create(null);
|
|
123
|
-
a.scriptFormat = this.scriptTaskForm.scriptFormat || null, a.resultVariable = this.scriptTaskForm.resultVariable || null, this.scriptTaskForm.scriptType === "inline" ? (a.script = this.scriptTaskForm.script || null, a.resource = null) : (a.resource = this.scriptTaskForm.resource || null, a.script = null), this.bpmnInstances.modeling.updateProperties(this.element, a);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
var d = function() {
|
|
128
|
-
var e = this, t = e._self._c;
|
|
129
|
-
return t("div", { staticStyle: { "margin-top": "16px" } }, [t("ElFormItem", { attrs: { label: "脚本格式" } }, [t("ElInput", { attrs: { clearable: "" }, on: { input: function(s) {
|
|
130
|
-
return e.updateElementTask();
|
|
131
|
-
}, change: function(s) {
|
|
132
|
-
return e.updateElementTask();
|
|
133
|
-
} }, model: { value: e.scriptTaskForm.scriptFormat, callback: function(s) {
|
|
134
|
-
e.$set(e.scriptTaskForm, "scriptFormat", s);
|
|
135
|
-
}, expression: "scriptTaskForm.scriptFormat" } })], 1), t("ElFormItem", { attrs: { label: "脚本类型" } }, [t("ElSelect", { model: { value: e.scriptTaskForm.scriptType, callback: function(s) {
|
|
136
|
-
e.$set(e.scriptTaskForm, "scriptType", s);
|
|
137
|
-
}, expression: "scriptTaskForm.scriptType" } }, [t("ElOption", { attrs: { label: "内联脚本", value: "inline" } }), t("ElOption", { attrs: { label: "外部资源", value: "external" } })], 1)], 1), t("ElFormItem", { directives: [{ name: "show", rawName: "v-show", value: e.scriptTaskForm.scriptType === "inline", expression: "scriptTaskForm.scriptType === 'inline'" }], attrs: { label: "脚本" } }, [t("ElInput", { attrs: { type: "textarea", resize: "vertical", autosize: { minRows: 2, maxRows: 4 }, clearable: "" }, on: { input: function(s) {
|
|
138
|
-
return e.updateElementTask();
|
|
139
|
-
}, change: function(s) {
|
|
140
|
-
return e.updateElementTask();
|
|
141
|
-
} }, model: { value: e.scriptTaskForm.script, callback: function(s) {
|
|
142
|
-
e.$set(e.scriptTaskForm, "script", s);
|
|
143
|
-
}, expression: "scriptTaskForm.script" } })], 1), t("ElFormItem", { directives: [{ name: "show", rawName: "v-show", value: e.scriptTaskForm.scriptType === "external", expression: "scriptTaskForm.scriptType === 'external'" }], attrs: { label: "资源地址" } }, [t("ElInput", { attrs: { clearable: "" }, on: { input: function(s) {
|
|
144
|
-
return e.updateElementTask();
|
|
145
|
-
}, change: function(s) {
|
|
146
|
-
return e.updateElementTask();
|
|
147
|
-
} }, model: { value: e.scriptTaskForm.resource, callback: function(s) {
|
|
148
|
-
e.$set(e.scriptTaskForm, "resource", s);
|
|
149
|
-
}, expression: "scriptTaskForm.resource" } })], 1), t("ElFormItem", { attrs: { label: "结果变量" } }, [t("ElInput", { attrs: { clearable: "" }, on: { input: function(s) {
|
|
150
|
-
return e.updateElementTask();
|
|
151
|
-
}, change: function(s) {
|
|
152
|
-
return e.updateElementTask();
|
|
153
|
-
} }, model: { value: e.scriptTaskForm.resultVariable, callback: function(s) {
|
|
154
|
-
e.$set(e.scriptTaskForm, "resultVariable", s);
|
|
155
|
-
}, expression: "scriptTaskForm.resultVariable" } })], 1)], 1);
|
|
156
|
-
}, f = [], k = /* @__PURE__ */ n(
|
|
157
|
-
u,
|
|
158
|
-
d,
|
|
159
|
-
f,
|
|
160
|
-
!1,
|
|
161
|
-
null,
|
|
162
|
-
null
|
|
163
|
-
);
|
|
164
|
-
const h = k.exports, b = {
|
|
165
|
-
name: "ReceiveTask",
|
|
166
|
-
props: {
|
|
167
|
-
id: String,
|
|
168
|
-
element: Object,
|
|
169
|
-
bpmnInstances: Object
|
|
170
|
-
},
|
|
171
|
-
data() {
|
|
172
|
-
return {
|
|
173
|
-
bindMessageId: "",
|
|
174
|
-
newMessageForm: {},
|
|
175
|
-
messageMap: {},
|
|
176
|
-
messageModelVisible: !1
|
|
177
|
-
};
|
|
178
|
-
},
|
|
179
|
-
watch: {
|
|
180
|
-
id: {
|
|
181
|
-
immediate: !0,
|
|
182
|
-
handler() {
|
|
183
|
-
this.$nextTick(() => this.getBindMessage());
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
created() {
|
|
188
|
-
this.bpmnMessageRefsMap = /* @__PURE__ */ Object.create(null), this.bpmnRootElements = this.bpmnInstances.modeler.getDefinitions().rootElements, this.bpmnRootElements.filter((a) => a.$type === "bpmn:Message").forEach((a) => {
|
|
189
|
-
this.bpmnMessageRefsMap[a.id] = a, this.$set(this.messageMap, a.id, a.name);
|
|
190
|
-
}), this.$set(this.messageMap, "-1", "无");
|
|
191
|
-
},
|
|
192
|
-
methods: {
|
|
193
|
-
getBindMessage() {
|
|
194
|
-
var a, e;
|
|
195
|
-
this.bindMessageId = ((e = (a = this.element.businessObject) == null ? void 0 : a.messageRef) == null ? void 0 : e.id) || "-1";
|
|
196
|
-
},
|
|
197
|
-
openMessageModel() {
|
|
198
|
-
this.messageModelVisible = !0, this.newMessageForm = {};
|
|
199
|
-
},
|
|
200
|
-
createNewMessage() {
|
|
201
|
-
if (this.messageMap[this.newMessageForm.id]) {
|
|
202
|
-
this.$message.error("该消息已存在,请修改id后重新保存");
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
const a = this.bpmnInstances.moddle.create("bpmn:Message", this.newMessageForm);
|
|
206
|
-
this.bpmnRootElements.push(a), this.$set(this.messageMap, this.newMessageForm.id, this.newMessageForm.name), this.bpmnMessageRefsMap[this.newMessageForm.id] = a, this.messageModelVisible = !1;
|
|
207
|
-
},
|
|
208
|
-
updateTaskMessage(a) {
|
|
209
|
-
a === "-1" ? this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
210
|
-
messageRef: null
|
|
211
|
-
}) : this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
212
|
-
messageRef: this.bpmnMessageRefsMap[a]
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
|
-
var F = function() {
|
|
218
|
-
var e = this, t = e._self._c;
|
|
219
|
-
return t("div", { staticStyle: { "margin-top": "16px" } }, [t("ElFormItem", { attrs: { label: "消息实例" } }, [t("div", { staticStyle: { display: "flex", "flex-wrap": "nowrap", "align-items": "center", "justify-content": "space-between" } }, [t("ElSelect", { on: { change: e.updateTaskMessage }, model: { value: e.bindMessageId, callback: function(s) {
|
|
220
|
-
e.bindMessageId = s;
|
|
221
|
-
}, expression: "bindMessageId" } }, e._l(Object.keys(e.messageMap), function(s) {
|
|
222
|
-
return t("ElOption", { key: s, attrs: { value: s, label: e.messageMap[s] } });
|
|
223
|
-
}), 1), t("ElButton", { staticStyle: { "margin-left": "8px" }, attrs: { size: "mini", type: "primary", icon: "el-icon-plus" }, on: { click: e.openMessageModel } })], 1)]), t("ElementDialog", { staticClass: "flow-dialog", attrs: { visible: e.messageModelVisible, "close-on-click-modal": !1, title: "创建新消息", width: "400px", "append-to-body": "", "destroy-on-close": "" }, on: { "update:visible": function(s) {
|
|
224
|
-
e.messageModelVisible = s;
|
|
225
|
-
} }, scopedSlots: e._u([{ key: "footer", fn: function() {
|
|
226
|
-
return [t("ElButton", { attrs: { size: "mini", type: "primary" }, on: { click: e.createNewMessage } }, [e._v("确 认")])];
|
|
227
|
-
}, proxy: !0 }]) }, [t("ElForm", { attrs: { model: e.newMessageForm, size: "mini", "label-width": "90px" }, nativeOn: { submit: function(s) {
|
|
228
|
-
s.preventDefault();
|
|
229
|
-
} } }, [t("ElFormItem", { attrs: { label: "消息ID" } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.newMessageForm.id, callback: function(s) {
|
|
230
|
-
e.$set(e.newMessageForm, "id", s);
|
|
231
|
-
}, expression: "newMessageForm.id" } })], 1), t("ElFormItem", { attrs: { label: "消息名称" } }, [t("ElInput", { attrs: { clearable: "" }, model: { value: e.newMessageForm.name, callback: function(s) {
|
|
232
|
-
e.$set(e.newMessageForm, "name", s);
|
|
233
|
-
}, expression: "newMessageForm.name" } })], 1)], 1)], 1)], 1);
|
|
234
|
-
}, g = [], T = /* @__PURE__ */ n(
|
|
235
|
-
b,
|
|
236
|
-
F,
|
|
237
|
-
g,
|
|
238
|
-
!1,
|
|
239
|
-
null,
|
|
240
|
-
null
|
|
241
|
-
);
|
|
242
|
-
const v = T.exports, E = {
|
|
243
|
-
name: "ElementTaskConfig",
|
|
244
|
-
components: { UserTask: p, ScriptTask: h, ReceiveTask: v },
|
|
245
|
-
props: {
|
|
246
|
-
id: String,
|
|
247
|
-
element: Object,
|
|
248
|
-
bpmnInstances: Object,
|
|
249
|
-
type: String
|
|
250
|
-
},
|
|
251
|
-
data() {
|
|
252
|
-
return {
|
|
253
|
-
taskConfigForm: {
|
|
254
|
-
asyncAfter: !1,
|
|
255
|
-
asyncBefore: !1,
|
|
256
|
-
exclusive: !1
|
|
257
|
-
},
|
|
258
|
-
witchTaskComponent: "",
|
|
259
|
-
installedComponent: {
|
|
260
|
-
// 手工任务与普通任务一致,不需要其他配置
|
|
261
|
-
// 接收消息任务,需要在全局下插入新的消息实例,并在该节点下的 messageRef 属性绑定该实例
|
|
262
|
-
// 发送任务、服务任务、业务规则任务共用一个相同配置
|
|
263
|
-
UserTask: "UserTask",
|
|
264
|
-
// 用户任务配置
|
|
265
|
-
ScriptTask: "ScriptTask",
|
|
266
|
-
// 脚本任务配置
|
|
267
|
-
ReceiveTask: "ReceiveTask"
|
|
268
|
-
// 消息接收任务
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
},
|
|
272
|
-
watch: {
|
|
273
|
-
id: {
|
|
274
|
-
immediate: !0,
|
|
275
|
-
handler() {
|
|
276
|
-
var a, e, t, s, r, i;
|
|
277
|
-
this.taskConfigForm.asyncBefore = (e = (a = this.element) == null ? void 0 : a.businessObject) == null ? void 0 : e.asyncBefore, this.taskConfigForm.asyncAfter = (s = (t = this.element) == null ? void 0 : t.businessObject) == null ? void 0 : s.asyncAfter, this.taskConfigForm.exclusive = (i = (r = this.element) == null ? void 0 : r.businessObject) == null ? void 0 : i.exclusive;
|
|
278
|
-
}
|
|
279
|
-
},
|
|
280
|
-
type: {
|
|
281
|
-
immediate: !0,
|
|
282
|
-
handler() {
|
|
283
|
-
this.witchTaskComponent = this.installedComponent[this.type];
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
methods: {
|
|
288
|
-
changeTaskAsync() {
|
|
289
|
-
!this.taskConfigForm.asyncBefore && !this.taskConfigForm.asyncAfter && (this.taskConfigForm.exclusive = !1), this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
290
|
-
...this.taskConfigForm
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
|
-
var _ = function() {
|
|
296
|
-
var e = this, t = e._self._c;
|
|
297
|
-
return t("div", { staticClass: "panel-tab__content" }, [t("ElForm", { attrs: { size: "mini", "label-width": "90px" }, nativeOn: { submit: function(s) {
|
|
298
|
-
s.preventDefault();
|
|
299
|
-
} } }, [t("ElFormItem", { attrs: { label: "异步延续" } }, [t("ElCheckbox", { attrs: { label: "异步前" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.asyncBefore, callback: function(s) {
|
|
300
|
-
e.$set(e.taskConfigForm, "asyncBefore", s);
|
|
301
|
-
}, expression: "taskConfigForm.asyncBefore" } }), t("ElCheckbox", { attrs: { label: "异步后" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.asyncAfter, callback: function(s) {
|
|
302
|
-
e.$set(e.taskConfigForm, "asyncAfter", s);
|
|
303
|
-
}, expression: "taskConfigForm.asyncAfter" } }), e.taskConfigForm.asyncAfter || e.taskConfigForm.asyncBefore ? t("ElCheckbox", { attrs: { label: "排除" }, on: { change: e.changeTaskAsync }, model: { value: e.taskConfigForm.exclusive, callback: function(s) {
|
|
304
|
-
e.$set(e.taskConfigForm, "exclusive", s);
|
|
305
|
-
}, expression: "taskConfigForm.exclusive" } }) : e._e()], 1), t(e.witchTaskComponent, e._b({ tag: "Component" }, "Component", e.$props, !1))], 1)], 1);
|
|
306
|
-
}, $ = [], y = /* @__PURE__ */ n(
|
|
307
|
-
E,
|
|
308
|
-
_,
|
|
309
|
-
$,
|
|
310
|
-
!1,
|
|
311
|
-
null,
|
|
312
|
-
null
|
|
313
|
-
);
|
|
314
|
-
const M = y.exports;
|
|
315
|
-
export {
|
|
316
|
-
M as default
|
|
317
|
-
};
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { n as s } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
2
|
-
const r = {
|
|
3
|
-
name: "FlowCondition",
|
|
4
|
-
props: {
|
|
5
|
-
id: String,
|
|
6
|
-
element: Object,
|
|
7
|
-
bpmnInstances: Object
|
|
8
|
-
},
|
|
9
|
-
data() {
|
|
10
|
-
return {
|
|
11
|
-
flowConditionForm: {}
|
|
12
|
-
};
|
|
13
|
-
},
|
|
14
|
-
watch: {
|
|
15
|
-
id: {
|
|
16
|
-
immediate: !0,
|
|
17
|
-
async handler() {
|
|
18
|
-
await this.$nextTick(), this.resetFlowCondition();
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
beforeDestroy() {
|
|
23
|
-
this.bpmnElementSource = null, this.bpmnElementSourceRef = null;
|
|
24
|
-
},
|
|
25
|
-
methods: {
|
|
26
|
-
resetFlowCondition() {
|
|
27
|
-
if (this.bpmnElementSource = this.element.source, this.bpmnElementSourceRef = this.element.businessObject.sourceRef, this.bpmnElementSourceRef && this.bpmnElementSourceRef.default && this.bpmnElementSourceRef.default.id === this.element.id)
|
|
28
|
-
this.flowConditionForm = { type: "default" };
|
|
29
|
-
else if (!this.element.businessObject.conditionExpression)
|
|
30
|
-
this.flowConditionForm = { type: "normal" };
|
|
31
|
-
else {
|
|
32
|
-
const n = this.element.businessObject.conditionExpression;
|
|
33
|
-
if (this.flowConditionForm = { ...n, type: "condition" }, this.flowConditionForm.resource) {
|
|
34
|
-
this.$set(this.flowConditionForm, "conditionType", "script"), this.$set(this.flowConditionForm, "scriptType", "externalScript");
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
if (n.language) {
|
|
38
|
-
this.$set(this.flowConditionForm, "conditionType", "script"), this.$set(this.flowConditionForm, "scriptType", "inlineScript");
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
this.$set(this.flowConditionForm, "conditionType", "expression");
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
updateFlowType(n) {
|
|
45
|
-
if (n === "condition") {
|
|
46
|
-
this.flowConditionRef = this.bpmnInstances.moddle.create("bpmn:FormalExpression"), this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
47
|
-
conditionExpression: this.flowConditionRef
|
|
48
|
-
});
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
if (n === "default") {
|
|
52
|
-
this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
53
|
-
conditionExpression: null
|
|
54
|
-
}), this.bpmnInstances.modeling.updateProperties(this.bpmnElementSource, {
|
|
55
|
-
default: this.element
|
|
56
|
-
});
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
this.bpmnElementSourceRef.default && this.bpmnElementSourceRef.default.id === this.element.id && this.bpmnInstances.modeling.updateProperties(this.bpmnElementSource, {
|
|
60
|
-
default: null
|
|
61
|
-
}), this.bpmnInstances.modeling.updateProperties(this.element, {
|
|
62
|
-
conditionExpression: null
|
|
63
|
-
});
|
|
64
|
-
},
|
|
65
|
-
updateFlowCondition() {
|
|
66
|
-
const { conditionType: n, scriptType: e, body: o, resource: t, language: l } = this.flowConditionForm;
|
|
67
|
-
let i;
|
|
68
|
-
n === "expression" ? i = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { body: o }) : e === "inlineScript" ? (i = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { body: o, language: l }), this.$set(this.flowConditionForm, "resource", "")) : (this.$set(this.flowConditionForm, "body", ""), i = this.bpmnInstances.moddle.create("bpmn:FormalExpression", { resource: t, language: l })), this.bpmnInstances.modeling.updateProperties(this.element, { conditionExpression: i });
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
var a = function() {
|
|
73
|
-
var e = this, o = e._self._c;
|
|
74
|
-
return o("div", { staticClass: "panel-tab__content" }, [o("ElForm", { attrs: { model: e.flowConditionForm, "label-width": "90px", size: "mini" }, nativeOn: { submit: function(t) {
|
|
75
|
-
t.preventDefault();
|
|
76
|
-
} } }, [o("ElFormItem", { attrs: { label: "流转类型" } }, [o("ElSelect", { on: { change: e.updateFlowType }, model: { value: e.flowConditionForm.type, callback: function(t) {
|
|
77
|
-
e.$set(e.flowConditionForm, "type", t);
|
|
78
|
-
}, expression: "flowConditionForm.type" } }, [o("ElOption", { attrs: { label: "普通流转路径", value: "normal" } }), o("ElOption", { attrs: { label: "默认流转路径", value: "default" } }), o("ElOption", { attrs: { label: "条件流转路径", value: "condition" } })], 1)], 1), e.flowConditionForm.type === "condition" ? o("ElFormItem", { key: "condition", attrs: { label: "条件格式" } }, [o("ElSelect", { model: { value: e.flowConditionForm.conditionType, callback: function(t) {
|
|
79
|
-
e.$set(e.flowConditionForm, "conditionType", t);
|
|
80
|
-
}, expression: "flowConditionForm.conditionType" } }, [o("ElOption", { attrs: { label: "表达式", value: "expression" } }), o("ElOption", { attrs: { label: "脚本", value: "script" } })], 1)], 1) : e._e(), e.flowConditionForm.conditionType && e.flowConditionForm.conditionType === "expression" ? o("ElFormItem", { key: "express", attrs: { label: "表达式" } }, [o("ElInput", { attrs: { clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.body, callback: function(t) {
|
|
81
|
-
e.$set(e.flowConditionForm, "body", t);
|
|
82
|
-
}, expression: "flowConditionForm.body" } })], 1) : e._e(), e.flowConditionForm.conditionType && e.flowConditionForm.conditionType === "script" ? [o("ElFormItem", { key: "language", attrs: { label: "脚本语言" } }, [o("ElInput", { attrs: { clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.language, callback: function(t) {
|
|
83
|
-
e.$set(e.flowConditionForm, "language", t);
|
|
84
|
-
}, expression: "flowConditionForm.language" } })], 1), o("ElFormItem", { key: "scriptType", attrs: { label: "脚本类型" } }, [o("ElSelect", { model: { value: e.flowConditionForm.scriptType, callback: function(t) {
|
|
85
|
-
e.$set(e.flowConditionForm, "scriptType", t);
|
|
86
|
-
}, expression: "flowConditionForm.scriptType" } }, [o("ElOption", { attrs: { label: "内联脚本", value: "inlineScript" } }), o("ElOption", { attrs: { label: "外部脚本", value: "externalScript" } })], 1)], 1), e.flowConditionForm.scriptType === "inlineScript" ? o("ElFormItem", { key: "body", attrs: { label: "脚本" } }, [o("ElInput", { attrs: { type: "textarea", clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.body, callback: function(t) {
|
|
87
|
-
e.$set(e.flowConditionForm, "body", t);
|
|
88
|
-
}, expression: "flowConditionForm.body" } })], 1) : e._e(), e.flowConditionForm.scriptType === "externalScript" ? o("ElFormItem", { key: "resource", attrs: { label: "资源地址" } }, [o("ElInput", { attrs: { clearable: "" }, on: { change: e.updateFlowCondition }, model: { value: e.flowConditionForm.resource, callback: function(t) {
|
|
89
|
-
e.$set(e.flowConditionForm, "resource", t);
|
|
90
|
-
}, expression: "flowConditionForm.resource" } })], 1) : e._e()] : e._e()], 2)], 1);
|
|
91
|
-
}, d = [], m = /* @__PURE__ */ s(
|
|
92
|
-
r,
|
|
93
|
-
a,
|
|
94
|
-
d,
|
|
95
|
-
!1,
|
|
96
|
-
null,
|
|
97
|
-
null
|
|
98
|
-
);
|
|
99
|
-
const c = m.exports;
|
|
100
|
-
export {
|
|
101
|
-
c as default
|
|
102
|
-
};
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { isBlank as _ } from "@web-utils/core";
|
|
2
|
-
import { formatDate as i } from "@web-utils/integrations/dayjs";
|
|
3
|
-
import { p as h, M as g, A as b, b as c, q as A, e as S, k as d, t as T, h as C, v, u as x } from "./util.DqFv_pWg.mjs";
|
|
4
|
-
import "../fy-u-editor/style.css";
|
|
5
|
-
import { a as D, b as O } from "./dataformat.CpqOeGBl.mjs";
|
|
6
|
-
import { s as j } from "./slot.DXIbhGat.mjs";
|
|
7
|
-
import { n as L } from "./_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
8
|
-
const R = (n = {}, e = {}, s = {}, r = []) => {
|
|
9
|
-
let t = n[e.prop];
|
|
10
|
-
const a = e.type, o = e.separator;
|
|
11
|
-
if (e.bind && (t = h(n, e.bind)), _(t))
|
|
12
|
-
t = "";
|
|
13
|
-
else {
|
|
14
|
-
const f = g.includes(e.type) && e.multiple, y = b.includes(e.type);
|
|
15
|
-
if ((["string", "number"].includes(e.dataType) || f || y) && !Array.isArray(t) && (t = `${t}`.split(o || c), e.dataType === "number" && (t = A(t))), S.includes(a))
|
|
16
|
-
Array.isArray(t) ? t = t.join(o || d) : t = t.split(o || c).join(o || d);
|
|
17
|
-
else if (a === "password")
|
|
18
|
-
t = T(t, "*");
|
|
19
|
-
else if (C.includes(a) && e.format) {
|
|
20
|
-
const m = e.format.replace("dd", "DD").replace("yyyy", "YYYY"), u = i(Date.now(), "YYYY-MM-DD");
|
|
21
|
-
if (a.indexOf("range") !== -1) {
|
|
22
|
-
let p = t[0] || "", l = t[1] || "";
|
|
23
|
-
a === "timerange" && p.length <= 8 && l.length < 8 && (p = `${u} ${p}`, l = `${u} ${l}`), t = [i(p, m), i(l, m)].join(e.separator || "~");
|
|
24
|
-
} else
|
|
25
|
-
a === "time" && t.length <= 8 && (t = `${u} ${t}`), t = i(t, m);
|
|
26
|
-
}
|
|
27
|
-
t = v(r, t, e.props || s.props);
|
|
28
|
-
}
|
|
29
|
-
return e.formatter && typeof e.formatter == "function" && (t = e.formatter(n, n[e.prop], t, e)), t;
|
|
30
|
-
}, Y = {
|
|
31
|
-
name: "FormTemp",
|
|
32
|
-
components: { FyUEditor: () => import("../fy-u-editor/index.mjs") },
|
|
33
|
-
mixins: [j],
|
|
34
|
-
props: {
|
|
35
|
-
value: [String, Object, Number, Boolean, Array],
|
|
36
|
-
columnSlot: {
|
|
37
|
-
type: Array,
|
|
38
|
-
default: () => []
|
|
39
|
-
},
|
|
40
|
-
tableData: {
|
|
41
|
-
type: Object,
|
|
42
|
-
default: () => ({})
|
|
43
|
-
},
|
|
44
|
-
enter: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: !1
|
|
47
|
-
},
|
|
48
|
-
type: {
|
|
49
|
-
type: String
|
|
50
|
-
},
|
|
51
|
-
propsHttp: {
|
|
52
|
-
type: Object,
|
|
53
|
-
default: () => ({})
|
|
54
|
-
},
|
|
55
|
-
props: {
|
|
56
|
-
type: Object
|
|
57
|
-
},
|
|
58
|
-
dic: {
|
|
59
|
-
type: Array
|
|
60
|
-
},
|
|
61
|
-
size: {
|
|
62
|
-
type: String
|
|
63
|
-
},
|
|
64
|
-
disabled: {
|
|
65
|
-
type: Boolean
|
|
66
|
-
},
|
|
67
|
-
readonly: {
|
|
68
|
-
type: Boolean
|
|
69
|
-
},
|
|
70
|
-
column: {
|
|
71
|
-
type: Object,
|
|
72
|
-
default: () => ({})
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
computed: {
|
|
76
|
-
params() {
|
|
77
|
-
return this.column.params || {};
|
|
78
|
-
},
|
|
79
|
-
event() {
|
|
80
|
-
return this.column.event || {};
|
|
81
|
-
},
|
|
82
|
-
text: {
|
|
83
|
-
get() {
|
|
84
|
-
return this.value;
|
|
85
|
-
},
|
|
86
|
-
set(n) {
|
|
87
|
-
this.$emit("input", n), this.$emit("change", n);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
methods: {
|
|
92
|
-
uploadFun: x,
|
|
93
|
-
getComponent: O,
|
|
94
|
-
getPlaceholder: D,
|
|
95
|
-
enterChange() {
|
|
96
|
-
typeof this.column.enter == "function" ? this.column.enter({ value: this.text, column: this.column }) : this.enter && this.$emit("enter");
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
var k = function() {
|
|
101
|
-
var e = this, s = e._self._c;
|
|
102
|
-
return s(e.getComponent(e.column.type, e.column.component), e._g(e._b({ ref: "temp", tag: "Component", attrs: { column: Object.assign(e.column, e.params), dic: e.dic, disabled: e.column.disabled || e.disabled, readonly: e.column.readonly || e.readonly, placeholder: e.getPlaceholder(e.column), props: e.column.props || e.props, "props-http": e.column.propsHttp || e.propsHttp, size: e.column.size || e.size, "table-data": e.tableData, type: e.type || e.column.type, "column-slot": e.columnSlot }, nativeOn: { keyup: function(r) {
|
|
103
|
-
return !r.type.indexOf("key") && e._k(r.keyCode, "enter", 13, r.key, "Enter") ? null : e.enterChange.apply(null, arguments);
|
|
104
|
-
} }, scopedSlots: e._u([e._l(e.columnSlot, function(r) {
|
|
105
|
-
return { key: r, fn: function(t) {
|
|
106
|
-
return [e._t(r, null, null, t)];
|
|
107
|
-
} };
|
|
108
|
-
})], null, !0), model: { value: e.text, callback: function(r) {
|
|
109
|
-
e.text = r;
|
|
110
|
-
}, expression: "text" } }, "Component", Object.assign(e.column, e.uploadFun(e.column)), !1), e.event), [e.params.html ? s("span", { domProps: { innerHTML: e._s(e.params.html) } }) : e._e()]);
|
|
111
|
-
}, F = [], I = /* @__PURE__ */ L(
|
|
112
|
-
Y,
|
|
113
|
-
k,
|
|
114
|
-
F,
|
|
115
|
-
!1,
|
|
116
|
-
null,
|
|
117
|
-
null
|
|
118
|
-
);
|
|
119
|
-
const V = I.exports;
|
|
120
|
-
export {
|
|
121
|
-
V as F,
|
|
122
|
-
R as d
|
|
123
|
-
};
|