super-page-runtime 2.3.37-sit4 → 2.3.37
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/es/components/runtime/utils/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -47
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +1 -3
- package/dist/es/components/runtime/utils/charts/chart-util.js +44 -46
- package/dist/es/components/runtime/utils/events/event-util.js +9 -9
- package/dist/es/components/runtime/utils/events/print-label.js +0 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +572 -584
- package/dist/es/components/runtime/utils/events/validator-util.js +53 -54
- package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
- package/dist/es/components/runtime/utils/page-init-util.js +117 -120
- package/dist/es/components/runtime/utils/page-store.js +21 -21
- package/dist/es/components/runtime/utils/table-utils.js +4 -4
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +10 -14
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +12 -13
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +15 -16
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +15 -16
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +69 -68
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +22 -24
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +20 -22
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +120 -123
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +45 -46
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +4 -5
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +28 -28
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +36 -36
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +43 -43
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +40 -40
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +28 -28
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +19 -19
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +6 -3
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +35 -26
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +4 -4
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -4
- package/dist/es/components/runtime/views/super-page.vue2.js +187 -187
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +9 -9
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, computed as t, watch as o, onUnmounted as a, onMounted as
|
|
1
|
+
import { defineComponent as e, ref as l, computed as t, watch as o, onUnmounted as a, onMounted as i, nextTick as n, resolveComponent as r, createBlock as u, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as f, createSlots as v, withCtx as g, createVNode as m, createElementVNode as d, withKeys as y, withModifiers as h, createCommentVNode as b, createElementBlock as x, Fragment as C, renderList as _, toDisplayString as w, createTextVNode as S } from "vue";
|
|
2
2
|
import { setVariableValue as k, getOptionDatasFromPage as A, queryOptionDatasources as T, autoSetAfterSelect as j, getVariableValue as R } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields as P } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent as V, handleAfterInitEvent as M } from "../../../../utils/events/event-util.js";
|
|
5
|
-
import
|
|
6
|
-
import { $t as
|
|
7
|
-
import { addRequiredClassUtil as
|
|
5
|
+
import D from "../common/title-suffix-element.vue.js";
|
|
6
|
+
import { $t as I } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { addRequiredClassUtil as q } from "../../../../utils/common-util.js";
|
|
8
8
|
import { CopyDocument as z } from "@element-plus/icons-vue";
|
|
9
9
|
import E from "clipboard";
|
|
10
10
|
import { ElMessage as O } from "element-plus";
|
|
@@ -12,54 +12,54 @@ import { useI18n as W } from "vue-i18n";
|
|
|
12
12
|
const B = { style: { "padding-left": "5px" } }, F = { style: { width: "100%", display: "flex", "align-items": "center" } }, G = { key: 0, style: { display: "flex", "flex-direction": "column" } }, K = { style: { color: "var(--el-text-color-secondary)", "font-size": "13px" } }, L = { style: { float: "left" } }, U = { style: { float: "right", color: "var(--el-text-color-secondary)" } }, $ = "__amb_select_all__", H = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
|
|
13
13
|
const { t: J } = W(), N = e2, Q = l(null), X = l(false), Y = N.pageContext.entity ? N.pageContext.entity : {};
|
|
14
14
|
let Z = P(N.pageContext, N.configure);
|
|
15
|
-
const ee = N.configure.runtime ? N.configure.runtime : {}, le = ee.style, te = ee.class, oe = ee.headerStyle, ae = ee.titleExceedStyle,
|
|
16
|
-
let
|
|
15
|
+
const ee = N.configure.runtime ? N.configure.runtime : {}, le = ee.style, te = ee.class, oe = ee.headerStyle, ae = ee.titleExceedStyle, ie = l(ee.props ? ee.props : {});
|
|
16
|
+
let ne = l(ie.value.optionDescriptionPosition && "default" !== ie.value.optionDescriptionPosition), re = [];
|
|
17
17
|
const ue = "copyBtn_" + N.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
|
|
18
18
|
function se() {
|
|
19
19
|
let e3 = R(Y, Z);
|
|
20
|
-
return null != e3 && (e3 = String(e3)),
|
|
20
|
+
return null != e3 && (e3 = String(e3)), ie.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
|
|
21
21
|
}
|
|
22
22
|
const pe = t({ get: () => se(), set(e3) {
|
|
23
23
|
const l2 = se();
|
|
24
24
|
re = Array.isArray(l2) ? [...l2] : l2;
|
|
25
25
|
let t2 = e3;
|
|
26
|
-
if (
|
|
26
|
+
if (ie.value.multiple && false !== ie.value.showSelectAll && Array.isArray(e3) && e3.includes($)) {
|
|
27
27
|
const e4 = (ce.value || []).map((e5) => String(e5.value)), o2 = Array.isArray(l2) ? l2.map((e5) => String(e5)) : [];
|
|
28
28
|
t2 = e4.length > 0 && e4.every((e5) => o2.includes(e5)) ? [] : e4;
|
|
29
29
|
}
|
|
30
|
-
if (
|
|
31
|
-
t2 = !!
|
|
30
|
+
if (ie.value.multiple) {
|
|
31
|
+
t2 = !!ie.value.arrayValue ? Array.isArray(t2) ? t2 : t2 ? String(t2).split(",") : [] : Array.isArray(t2) ? t2.length > 0 ? t2.join(",") : "" : t2 ?? "";
|
|
32
32
|
}
|
|
33
33
|
void 0 === t2 && (t2 = null), k(Y, Z, t2), null != t2 && (Q.value = "");
|
|
34
|
-
} }), ce = l(
|
|
34
|
+
} }), ce = l(ie.value.options ? ie.value.options : []), fe = A(N.pageContext, N.configure);
|
|
35
35
|
fe.length > 0 && (ce.value = fe);
|
|
36
36
|
const ve = l(false), ge = N.configure.props && N.configure.props.dataOrigin ? N.configure.props.dataOrigin : {}, me = ge.optionValueSetType;
|
|
37
37
|
let de = [];
|
|
38
|
-
const ye =
|
|
38
|
+
const ye = ie.value.optionconfigInfo ? ie.value.optionconfigInfo : {};
|
|
39
39
|
if ("dynamicData" == me || "dataTable" == me || "service" == me) {
|
|
40
40
|
if ("remote" == ge.filterType) {
|
|
41
41
|
let e3;
|
|
42
|
-
|
|
43
|
-
e3 !== l2 && (e3 = l2, ve.value = true,
|
|
42
|
+
ie.value.filterable = true, ie.value.remote = true, ie.value.remoteShowSuffix = true, ie.value.remoteMethod = function(l2) {
|
|
43
|
+
e3 !== l2 && (e3 = l2, ve.value = true, T(N.pageContext, ye, l2).then((e4) => {
|
|
44
44
|
ve.value = false;
|
|
45
45
|
}).then((e4) => {
|
|
46
|
-
|
|
46
|
+
ve.value = false;
|
|
47
47
|
}));
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
if (ge.autoSets) for (let e3 of ge.autoSets) e3.source && de.push(e3);
|
|
51
51
|
}
|
|
52
|
-
N.configure && N.configure.props && N.configure.props.base && N.configure.props.base.optionProp && de.push({ source: "label", target: N.configure.props.base.optionProp }),
|
|
52
|
+
N.configure && N.configure.props && N.configure.props.base && N.configure.props.base.optionProp && de.push({ source: "label", target: N.configure.props.base.optionProp }), ie.value.changeMethod = function(e3) {
|
|
53
53
|
var _a;
|
|
54
54
|
let l2, t2 = null;
|
|
55
|
-
ce.value && null != e3 && null != e3 && (((_a =
|
|
56
|
-
de.length > 0 && j(N.configure, N.pageContext, de, t2, [
|
|
55
|
+
ce.value && null != e3 && null != e3 && (((_a = ie.value) == null ? void 0 : _a.multiple) && false !== ie.value.showSelectAll && Array.isArray(e3) && e3.includes($) && (e3 = e3.filter((e4) => e4 !== $)), t2 = ce.value.filter((l3) => Array.isArray(e3) ? e3.includes(l3.value) : e3 === l3.value));
|
|
56
|
+
de.length > 0 && j(N.configure, N.pageContext, de, t2, [ie.value.prop]);
|
|
57
57
|
t2 && t2.length > 0 && (l2 = t2[0]);
|
|
58
58
|
let o2 = {};
|
|
59
59
|
l2 && (o2.extendParams = l2);
|
|
60
60
|
o2.options = ce.value, o2.oldValue = re, V(e3, N.pageContext, N.configure, "change", o2);
|
|
61
61
|
};
|
|
62
|
-
const he =
|
|
62
|
+
const he = ie.value.monitorFields, be = [];
|
|
63
63
|
if (he) {
|
|
64
64
|
const e3 = [];
|
|
65
65
|
for (let l2 of he) if (l2.startsWith("${")) {
|
|
@@ -80,7 +80,7 @@ const B = { style: { "padding-left": "5px" } }, F = { style: { width: "100%", di
|
|
|
80
80
|
return e4.join(",");
|
|
81
81
|
}();
|
|
82
82
|
e3 != xe && (xe = e3, ye.watchAttrValue = e3, T(N.pageContext, ye, void 0).then((e4) => {
|
|
83
|
-
|
|
83
|
+
ve.value = false;
|
|
84
84
|
}));
|
|
85
85
|
}, 200);
|
|
86
86
|
}
|
|
@@ -111,15 +111,15 @@ const B = { style: { "padding-left": "5px" } }, F = { style: { width: "100%", di
|
|
|
111
111
|
O({ showClose: true, type: "success", message: J("superPageRuntimeMessage.copySuccess") });
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
-
return
|
|
114
|
+
return i(() => {
|
|
115
115
|
const e3 = new E("#" + ue, { text: function() {
|
|
116
116
|
return Te();
|
|
117
117
|
} });
|
|
118
118
|
e3.on("success", () => {
|
|
119
|
-
|
|
119
|
+
O({ showClose: true, type: "success", message: J("superPageRuntimeMessage.copySuccess") });
|
|
120
120
|
}), e3.on("error", (e4) => {
|
|
121
121
|
console.error("复制失败", e4);
|
|
122
|
-
}),
|
|
122
|
+
}), n(() => {
|
|
123
123
|
const e4 = pe.value;
|
|
124
124
|
M(e4, N.pageContext, N.configure, { formItemRef: Se.value, componentRef: ke.value, titleRef: Ae.value, value: e4, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
|
|
125
125
|
});
|
|
@@ -142,13 +142,13 @@ const B = { style: { "padding-left": "5px" } }, F = { style: { width: "100%", di
|
|
|
142
142
|
}
|
|
143
143
|
we = true;
|
|
144
144
|
}, addRequiredClass: function() {
|
|
145
|
-
Q.value =
|
|
145
|
+
Q.value = q();
|
|
146
146
|
}, getSelectItemsTitle: Te, getOptions: function() {
|
|
147
147
|
return ce.value;
|
|
148
|
-
} }), (
|
|
149
|
-
const
|
|
150
|
-
return s(), u(
|
|
151
|
-
}, ["stop"]), ["space"])), onChange:
|
|
148
|
+
} }), (l2, t2) => {
|
|
149
|
+
const o2 = r("el-icon"), a2 = r("el-option"), i2 = r("el-select"), n2 = r("el-popover"), k2 = r("el-form-item");
|
|
150
|
+
return s(), u(k2, { ref_key: "formItemRef", ref: Se, required: !!ie.value.required, class: c(f(te) + (Q.value ? " " + Q.value : "")), "label-width": ie.value.labelWidth, style: p(f(le)) }, v({ default: g(() => [m(n2, { placement: "right", trigger: "hover", width: 50, "popper-class": "custom-sel-copy-tooltip", "popper-options": { modifiers: [{ name: "flip", options: { fallbackPlacements: ["left", "top", "bottom"] } }] } }, { reference: g(() => [d("div", F, [m(i2, { ref_key: "componentRef", ref: ke, style: { flex: "1", "min-width": "0" }, disabled: "disabled" === ie.value.state, size: ie.value.size, clearable: ie.value.clearable, multiple: ie.value.multiple, "collapse-tags": ie.value.collapseTags, "collapse-tags-tooltip": ie.value.collapseTagsTooltip, filterable: ie.value.filterable, "allow-create": ie.value.allowCreate, placeholder: ie.value.placeholder, "remote-show-suffix": ie.value.remoteShowSuffix, remote: ie.value.remote, "remote-method": ie.value.remoteMethod, loading: ve.value, onKeydown: t2[0] || (t2[0] = y(h(() => {
|
|
151
|
+
}, ["stop"]), ["space"])), onChange: ie.value.changeMethod, onClear: ie.value.changeMethod, onVisibleChange: je, modelValue: pe.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => pe.value = e3) }, { prefix: g(() => [d("span", { class: "mobile-copy-trigger", onClick: h(Re, ["stop"]) }, [m(o2, { style: { cursor: "copy" } }, { default: g(() => [m(f(z))]), _: 1 })])]), default: g(() => [ie.value.multiple && false !== ie.value.showSelectAll ? (s(), u(a2, { key: 0, label: f(J)("superGrid.selectAll"), value: $, disabled: !(ce.value && ce.value.length > 0) }, null, 8, ["label", "disabled"])) : b("", true), (s(true), x(C, null, _(ce.value, (l3) => (s(), u(a2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(ne) }), onClick: (t3) => f(V)(l3.value, e2.pageContext, e2.configure, "click", { values: pe.value }) }, { default: g(() => [l3._description_ ? (s(), x(C, { key: 0 }, [f(ne) ? (s(), x("div", G, [d("span", null, w(l3.label), 1), d("span", K, w(l3._description_), 1)])) : (s(), x(C, { key: 1 }, [d("span", L, w(l3.label), 1), d("span", U, w(l3._description_), 1)], 64))], 64)) : b("", true)]), _: 2 }, 1032, ["label", "value", "class", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "onClear", "modelValue"])])]), default: g(() => [d("span", B, [m(o2, { id: ue, style: { cursor: "copy" } }, { default: g(() => [m(f(z))]), _: 1 })])]), _: 1 })]), _: 2 }, [ie.value.tittleShow ? { name: "label", fn: g(() => [d("div", { ref_key: "titleRef", ref: Ae, style: p({ ...f(oe), ...f(ae) }), class: "amb-form-item-label" }, [ie.value.prefixType ? (s(), u(D, { key: 0, pageContext: e2.pageContext, property: ie.value }, null, 8, ["pageContext", "property"])) : (s(), x(C, { key: 1 }, [S(w(f(I)(ie.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
152
152
|
};
|
|
153
153
|
} });
|
|
154
154
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js
CHANGED
|
@@ -9,7 +9,7 @@ const d = e({ __name: "separatelabel-runtime", props: { pageContext: {}, configu
|
|
|
9
9
|
const e3 = y(v.configure.props.base.title);
|
|
10
10
|
b(e3, v.pageContext, v.configure, { componentRef: x.value, value: e3, entity: v.pageContext.entity.data, pageData: v.pageContext.entity.page });
|
|
11
11
|
});
|
|
12
|
-
}), d2({}), (
|
|
12
|
+
}), d2({}), (t2, i2) => (r(), n("div", { style: p(l(T)), class: a([l(V), "amb-widget-separatelabel"]), ref_key: "thisRef", ref: x }, [s("div", { class: "label", style: p(l(h)) }, [e2.configure.props.iconType && e2.configure.props.iconValue ? (r(), u(l(m), { key: 0, iconType: e2.configure.props.iconType, iconValue: e2.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : c("", true), g(" " + f(l(y)(e2.configure.props.base.title)), 1)], 4)], 6));
|
|
13
13
|
} });
|
|
14
14
|
export {
|
|
15
15
|
d as default
|
|
@@ -26,9 +26,9 @@ const w = e({ __name: "switch-runtime", props: { pageContext: {}, configure: {}
|
|
|
26
26
|
});
|
|
27
27
|
}), w2({ addRequiredClass: function() {
|
|
28
28
|
_.value = C();
|
|
29
|
-
} }), (
|
|
30
|
-
const
|
|
31
|
-
return v(), n(
|
|
29
|
+
} }), (t2, l2) => {
|
|
30
|
+
const a2 = i("el-switch"), u2 = i("el-form-item");
|
|
31
|
+
return v(), n(u2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: r(c(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(c(S)) }, s({ default: f(() => [m(a2, { ref_key: "componentRef", ref: B, disabled: "disabled" === W.value.state, "active-value": W.value.activeValue, "active-text": W.value.activeText, "inactive-value": W.value.inactiveValue, "inactive-text": W.value.inactiveText, width: W.value.offOnWidth, size: W.value.size, style: o(c(O)), modelValue: U.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => U.value = e3), onChange: l2[1] || (l2[1] = (t3) => c(h)(t3, e2.pageContext, e2.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: f(() => [p("div", { ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }), class: "amb-form-item-label" }, d(c(b)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
32
32
|
};
|
|
33
33
|
} });
|
|
34
34
|
export {
|
|
@@ -24,19 +24,19 @@ const j = e({ __name: "tag-runtime", props: { pageContext: {}, configure: {} },
|
|
|
24
24
|
const e3 = E.value;
|
|
25
25
|
h(e3, j2.pageContext, j2.configure, { formItemRef: O.value, titleRef: W.value, value: e3, entity: j2.pageContext.entity.data, pageData: j2.pageContext.entity.page });
|
|
26
26
|
});
|
|
27
|
-
}), (
|
|
28
|
-
const
|
|
29
|
-
return r(), n(
|
|
27
|
+
}), (t2, l2) => {
|
|
28
|
+
const a2 = o("el-tag"), i2 = o("el-form-item");
|
|
29
|
+
return r(), n(i2, { ref_key: "formItemRef", ref: O, required: I.value.required, class: s(p(w)), "label-width": I.value.labelWidth, style: u(p(q)) }, { label: c(() => [I.value.tittleShow ? (r(), f("div", { key: 0, ref_key: "titleRef", ref: W, style: u({ ...p(z), ...p(S) }) }, y(p(_)(I.value.title)), 5)) : d("", true)]), default: c(() => [(r(true), f(g, null, m(E.value, (t3) => (r(), n(a2, { key: t3, size: I.value.size, closable: I.value.closable, type: I.value.type, style: { "margin-right": "4px" }, onClose: (e3) => function(e4, t4) {
|
|
30
30
|
if (I.value.closable) {
|
|
31
|
-
let
|
|
32
|
-
null ==
|
|
33
|
-
const l3 = Array.isArray(
|
|
34
|
-
l3 || (
|
|
35
|
-
const
|
|
36
|
-
|
|
31
|
+
let e5 = C(D, A);
|
|
32
|
+
null == e5 && (e5 = []);
|
|
33
|
+
const l3 = Array.isArray(e5);
|
|
34
|
+
l3 || (e5 = (e5 + "").split(","));
|
|
35
|
+
const a3 = e5.indexOf(t4.value);
|
|
36
|
+
a3 > -1 && e5.splice(a3, 1), l3 || (e5 = e5.join(",")), b(D, A, e5);
|
|
37
37
|
}
|
|
38
|
-
k(
|
|
39
|
-
}(
|
|
38
|
+
k(e4, j2.pageContext, j2.configure, "remove");
|
|
39
|
+
}(e3, t3), onClick: l2[0] || (l2[0] = (t4) => p(k)(t4, e2.pageContext, e2.configure, "click")) }, { default: c(() => [v(y(t3.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
40
40
|
};
|
|
41
41
|
} });
|
|
42
42
|
export {
|
|
@@ -18,9 +18,9 @@ const q = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {
|
|
|
18
18
|
});
|
|
19
19
|
}), q2({ addRequiredClass: function() {
|
|
20
20
|
z.value = _();
|
|
21
|
-
} }), (
|
|
22
|
-
const
|
|
23
|
-
return r(), u("div", null, [i(
|
|
21
|
+
} }), (t2, l2) => {
|
|
22
|
+
const a2 = n("el-input"), o2 = n("el-form-item");
|
|
23
|
+
return r(), u("div", null, [i(o2, { ref_key: "formItemRef", ref: W, required: !!E.value.required, class: p(m(N) + (z.value ? " " + z.value : "")), "label-width": E.value.labelWidth, style: s(m(F)) }, f({ default: g(() => [i(a2, { ref_key: "componentRef", ref: A, disabled: "disabled" === E.value.state, readonly: "readonly" === E.value.state, size: E.value.size, clearable: E.value.clearable, placeholder: E.value.placeholder, modelValue: B.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => B.value = e3), rows: E.value.rows ? E.value.rows : 2, maxlength: E.value.maxlength, minlength: E.value.minlength, "show-word-limit": E.value.showInputNum, type: "textarea", onInput: l2[1] || (l2[1] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[2] || (l2[2] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[3] || (l2[3] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[4] || (l2[4] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[5] || (l2[5] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 2 }, [E.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: G, style: s({ ...m(T), ...m(U) }), class: "amb-form-item-label" }, [E.value.prefixType ? (r(), d(R, { key: 0, pageContext: e2.pageContext, property: E.value }, null, 8, ["pageContext", "property"])) : (r(), u(v, { key: 1 }, [x(y(m(j)(E.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
@@ -73,9 +73,9 @@ const H = e({ __name: "home-chart-render", props: { pageContext: {}, configure:
|
|
|
73
73
|
const t2 = H2.configure.props ? H2.configure.props : {}, n2 = H2.configure.style ? H2.configure.style : {}, i2 = t2.position;
|
|
74
74
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
75
75
|
};
|
|
76
|
-
return (
|
|
77
|
-
const
|
|
78
|
-
return u($)(
|
|
76
|
+
return (o2, t2) => {
|
|
77
|
+
const n2 = i("permission");
|
|
78
|
+
return u($)(e2.configure) ? r((c(), l(g(P.value), { key: 0, ref: D, style: a(W.value), class: f(q.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, u(B)], [n2, { codes: u(N) ? u(N) : "true", systemCode: e2.pageContext.systemCode }]]) : s("", true);
|
|
79
79
|
};
|
|
80
80
|
} });
|
|
81
81
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as e, ref as o, computed as t, watch as n, markRaw as i, onMounted as r, onUnmounted as s, withDirectives as u, createCommentVNode as l, unref as a, createBlock as p, openBlock as g, resolveDynamicComponent as c, normalizeClass as f, normalizeStyle as d, vShow as m, nextTick as C } from "vue";
|
|
2
|
-
import
|
|
3
|
-
import { getRuntimeComponentByName as
|
|
2
|
+
import v from "./error-render.vue.js";
|
|
3
|
+
import { getRuntimeComponentByName as h } from "../../utils/assemblys-config.js";
|
|
4
4
|
import { PageDimensions as b } from "../../utils/interfaces/page-design-types.js";
|
|
5
5
|
import { addComponentRef as x, addComponentRefByCode as y } from "../../utils/global-refs.js";
|
|
6
|
-
import { getPermissionCodes as w, packageFormRules as j, getModelFields as N, controlObjectRenderState as
|
|
7
|
-
import { caculateShowCondition as
|
|
8
|
-
import { isWorkflowPage as
|
|
9
|
-
import { isShowMobileEvent as
|
|
6
|
+
import { getPermissionCodes as w, packageFormRules as j, getModelFields as N, controlObjectRenderState as M } from "../../utils/page-init-util.js";
|
|
7
|
+
import { caculateShowCondition as V, getFormPropName as _, getSizeConfig as A } from "../../utils/page-helper-util.js";
|
|
8
|
+
import { isWorkflowPage as S, getPropClassName as T, isNumber as $ } from "../../utils/common-util.js";
|
|
9
|
+
import { isShowMobileEvent as H, isShowComponent as O } from "../../utils/events/event-util.js";
|
|
10
10
|
import { usePageContextStore as P } from "../../utils/page-store.js";
|
|
11
11
|
import { isHasFieldAuth as B } from "../../utils/table-utils.js";
|
|
12
12
|
import { checkPermission as R } from "agilebuilder-ui/src/utils/permission.js";
|
|
@@ -27,7 +27,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
27
27
|
var _a2;
|
|
28
28
|
let o2 = true;
|
|
29
29
|
if (W) if (q.value && null !== q.value) o2 = "show" === q.value;
|
|
30
|
-
else if (
|
|
30
|
+
else if (H(k2.pageContext, k2.configure)) if (e3 && e3.length > 0) o2 = V(k2.pageContext, e3);
|
|
31
31
|
else {
|
|
32
32
|
const e4 = (_a2 = k2.configure.props.base) == null ? void 0 : _a2.state;
|
|
33
33
|
e4 && "hidden" === e4 && (o2 = false);
|
|
@@ -42,7 +42,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
42
42
|
let e4 = N(k2.configure);
|
|
43
43
|
D = e4 && e4.length > 0 ? e4[1] : null;
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
n(z, (e4) => {
|
|
46
46
|
e4 ? k2.pageContext.hiddenNotValidatorCodes.delete(D) : k2.pageContext.hiddenNotValidatorCodes.add(D);
|
|
47
47
|
}, { immediate: true });
|
|
48
48
|
}
|
|
@@ -50,28 +50,28 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
50
50
|
const e4 = k2.configure.props.base.editConditions;
|
|
51
51
|
if (e4.length > 0) {
|
|
52
52
|
const o2 = k2.configure.runtime ? k2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
|
|
53
|
-
if (n2.rawSate = n2.state,
|
|
53
|
+
if (n2.rawSate = n2.state, S(k2.pageContext) && k2.pageContext.fieldPermissionMap) {
|
|
54
54
|
const e5 = k2.configure.props.base;
|
|
55
55
|
if (e5 && e5.prop) {
|
|
56
56
|
let o3 = e5.prop;
|
|
57
|
-
o3 =
|
|
57
|
+
o3 = _(o3);
|
|
58
58
|
const t2 = k2.pageContext.fieldPermissionMap.get(o3);
|
|
59
59
|
t2 && false === t2.canEdit && (G.value = "disabled");
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
n2.state = t({ get() {
|
|
63
63
|
if ("disabled" === G.value) return G.value;
|
|
64
|
-
return
|
|
64
|
+
return V(k2.pageContext, e4) ? "" : "disabled";
|
|
65
65
|
}, set() {
|
|
66
66
|
} });
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
const I = o({});
|
|
71
|
-
I.value = i(
|
|
71
|
+
I.value = i(h(k2.configure.name));
|
|
72
72
|
const K = o(true);
|
|
73
|
-
null == I.value && (I.value =
|
|
74
|
-
const Q = o(null), U = o({}), X = o(""), Y =
|
|
73
|
+
null == I.value && (I.value = v, K.value = false);
|
|
74
|
+
const Q = o(null), U = o({}), X = o(""), Y = T(k2.configure);
|
|
75
75
|
Y && (X.value = Y);
|
|
76
76
|
const Z = k2.configure.runtime && k2.configure.runtime.common ? k2.configure.runtime.common : {};
|
|
77
77
|
if (Z.class && (X.value += " " + Z.class), Z.style) {
|
|
@@ -101,11 +101,11 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
101
101
|
const o2 = k2.configure.props ? k2.configure.props.base : null;
|
|
102
102
|
if (o2 && o2.prop) {
|
|
103
103
|
let e4 = o2.prop;
|
|
104
|
-
e4 =
|
|
104
|
+
e4 = _(e4), M(k2.pageContext, e4), k2.pageContext.propTitleMap = k2.pageContext.propTitleMap || {}, k2.pageContext.propTitleMap[e4] = o2.title ? o2.title : e4;
|
|
105
105
|
}
|
|
106
106
|
!function() {
|
|
107
107
|
if (!Q.value) return;
|
|
108
|
-
const e4 =
|
|
108
|
+
const e4 = A(k2.pageContext, k2.configure);
|
|
109
109
|
"table" !== k2.configure.name && e4 && e4.isCalcHeight && C(() => {
|
|
110
110
|
var _a2;
|
|
111
111
|
if (!(((_a2 = Q.value) == null ? void 0 : _a2.$el) || Q.value)) return;
|
|
@@ -130,7 +130,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
130
130
|
if (!e3 || !o2) return;
|
|
131
131
|
const t2 = e3.getBoundingClientRect();
|
|
132
132
|
let n2 = window.innerHeight - t2.y - 30;
|
|
133
|
-
|
|
133
|
+
window.innerHeight, t2.y;
|
|
134
134
|
let i2 = n2 + "";
|
|
135
135
|
if ("tabs" === k2.configure.name && k2.pageContext.isDialog && !F()) {
|
|
136
136
|
const o3 = e3.closest(".runtime-page-container");
|
|
@@ -138,7 +138,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
138
138
|
const e4 = o3.getBoundingClientRect(), r2 = t2.y - e4.y;
|
|
139
139
|
n2 = e4.height - r2 - 30, i2 = n2 + "px";
|
|
140
140
|
}
|
|
141
|
-
} else
|
|
141
|
+
} else $(n2) && (i2 = n2 + "px");
|
|
142
142
|
U.value.height = i2, U.value["overflow-y"] = "auto", U.value["overflow-x"] = "hidden", k2.configure.sytle || (k2.configure.sytle = {}), k2.configure.sytle._heightStyle = i2;
|
|
143
143
|
}
|
|
144
144
|
r(() => {
|
|
@@ -158,7 +158,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
158
158
|
const t2 = k2.configure.props ? k2.configure.props : {}, n2 = k2.configure.style ? k2.configure.style : {}, i2 = t2.position;
|
|
159
159
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
160
160
|
};
|
|
161
|
-
return (
|
|
161
|
+
return (o2, t2) => a(W) && a(O)(e2.configure) ? u((g(), p(c(I.value), { key: 0, ref: oe, style: d(U.value), class: f(X.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, a(z)]]) : l("", true);
|
|
162
162
|
} });
|
|
163
163
|
export {
|
|
164
164
|
k as default
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { defineComponent as o, createBlock as t, openBlock as
|
|
1
|
+
import { defineComponent as o, createBlock as e, createCommentVNode as t, openBlock as n } from "vue";
|
|
2
2
|
import p from "./workflow/component/workflow-opinion-box.vue.js";
|
|
3
|
-
const
|
|
3
|
+
const a = o({ __name: "page-bottom", props: { pageContext: {} }, setup: (o2) => (a2, r) => {
|
|
4
|
+
var _a;
|
|
5
|
+
return ((_a = o2.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (n(), e(p, { key: 0, pageContext: o2.pageContext }, null, 8, ["pageContext"])) : t("", true);
|
|
6
|
+
} });
|
|
4
7
|
export {
|
|
5
|
-
|
|
8
|
+
a as default
|
|
6
9
|
};
|
package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./workflow-opinion-box.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = r(o, [["__scopeId", "data-v-8f093cc2"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js
CHANGED
|
@@ -1,38 +1,47 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, onMounted as
|
|
2
|
-
import { addRequiredClassUtil as
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
let q = null;
|
|
6
|
-
|
|
1
|
+
import { defineComponent as e, ref as n, computed as o, onMounted as l, onUnmounted as i, watch as t, nextTick as a, resolveComponent as u, createElementBlock as r, openBlock as s, Fragment as p, createElementVNode as d, createCommentVNode as f, createBlock as v, normalizeStyle as w, Teleport as c, createTextVNode as m, normalizeClass as x, createVNode as g } from "vue";
|
|
2
|
+
import { addRequiredClassUtil as b } from "../../../../utils/common-util.js";
|
|
3
|
+
const h = { class: "opinion-box-table-wrapper" }, k = { class: "opinion-table" }, y = { class: "opinion-label" }, O = { key: 0, class: "required-star" }, C = e({ __name: "workflow-opinion-box", props: { pageContext: {} }, setup(e2) {
|
|
4
|
+
const C2 = e2, R = n(""), E = n(), z = n(""), L = n(null), _ = n(null), B = n(0), H = n(null), I = n(null);
|
|
5
|
+
let V = null, q = null;
|
|
6
|
+
const j = o(() => {
|
|
7
|
+
const e3 = I.value;
|
|
8
|
+
return e3 ? { left: e3.left + "px", right: window.innerWidth - e3.right + "px", bottom: window.innerHeight - e3.bottom + "px" } : { left: "0", right: "0", bottom: "0" };
|
|
9
|
+
});
|
|
10
|
+
function S() {
|
|
11
|
+
H.value && (I.value = H.value.getBoundingClientRect());
|
|
12
|
+
}
|
|
13
|
+
function U(e3) {
|
|
14
|
+
H.value = e3, S(), q = new ResizeObserver(S), q.observe(e3), window.addEventListener("scroll", S, true), window.addEventListener("resize", S);
|
|
15
|
+
}
|
|
16
|
+
return l(() => {
|
|
7
17
|
var _a;
|
|
8
|
-
let e3 = ((_a =
|
|
18
|
+
let e3 = ((_a = L.value) == null ? void 0 : _a.parentElement) ?? null;
|
|
9
19
|
for (; e3; ) {
|
|
10
|
-
if (e3.classList.contains("el-dialog")) return
|
|
11
|
-
e3
|
|
20
|
+
if (e3.classList.contains("el-dialog")) return void U(e3);
|
|
21
|
+
e3 = e3.parentElement;
|
|
12
22
|
}
|
|
13
|
-
o2 && ("static" === getComputedStyle(o2).position && (o2.style.position = "relative"), S.value = o2);
|
|
14
|
-
}), l(() => {
|
|
15
|
-
q == null ? void 0 : q.disconnect(), q = null;
|
|
16
|
-
}), i(I, (e3) => {
|
|
17
|
-
q == null ? void 0 : q.disconnect(), q = null, e3 ? (V.value = e3.offsetHeight, q = new ResizeObserver(() => {
|
|
18
|
-
V.value = e3.offsetHeight;
|
|
19
|
-
}), q.observe(e3)) : V.value = 0;
|
|
20
23
|
}), i(() => {
|
|
24
|
+
V == null ? void 0 : V.disconnect(), V = null, q == null ? void 0 : q.disconnect(), q = null, window.removeEventListener("scroll", S, true), window.removeEventListener("resize", S), H.value = null, I.value = null;
|
|
25
|
+
}), t(_, (e3) => {
|
|
26
|
+
V == null ? void 0 : V.disconnect(), V = null, e3 ? (B.value = e3.offsetHeight, V = new ResizeObserver(() => {
|
|
27
|
+
B.value = e3.offsetHeight;
|
|
28
|
+
}), V.observe(e3)) : B.value = 0;
|
|
29
|
+
}), t(() => {
|
|
21
30
|
var _a;
|
|
22
|
-
return (_a =
|
|
31
|
+
return (_a = C2.pageContext.workflowOpinion) == null ? void 0 : _a.focusOpinionInput;
|
|
23
32
|
}, (e3) => {
|
|
24
|
-
e3 ? (
|
|
33
|
+
e3 ? (z.value = b(), a(() => {
|
|
25
34
|
var _a;
|
|
26
|
-
((_a =
|
|
27
|
-
})) :
|
|
28
|
-
}, { immediate: true }), (
|
|
35
|
+
((_a = E.value) == null ? void 0 : _a.focus) && E.value.focus();
|
|
36
|
+
})) : z.value = "";
|
|
37
|
+
}, { immediate: true }), (n2, o2) => {
|
|
29
38
|
var _a, _b, _c;
|
|
30
|
-
const
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
}), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])],
|
|
39
|
+
const l2 = u("el-input");
|
|
40
|
+
return s(), r(p, null, [d("div", { ref_key: "sentinelRef", ref: L, style: { display: "none" } }, null, 512), ((_a = e2.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (s(), r("div", { key: 0, style: w({ height: B.value + "px", width: "100%", flexShrink: 0 }) }, null, 4)) : f("", true), (s(), v(c, { to: "body" }, [((_b = e2.pageContext.workflowOpinion) == null ? void 0 : _b.showOpinionBox) ? (s(), r("div", { key: 0, ref_key: "opinionBarRef", ref: _, class: "opinion-fixed-bar", style: w(j.value) }, [d("div", h, [d("table", k, [d("tbody", null, [d("tr", null, [d("td", y, [((_c = e2.pageContext.workflowOpinion) == null ? void 0 : _c.isRequired) ? (s(), r("span", O, "*")) : f("", true), o2[2] || (o2[2] = m(" 处理意见 ", -1))]), d("td", { class: x(["opinion-input-cell", z.value]) }, [g(l2, { ref_key: "opinionInputRef", ref: E, modelValue: R.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => R.value = e3), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: o2[1] || (o2[1] = (e3) => {
|
|
41
|
+
C2.pageContext.workflowOpinion && (C2.pageContext.workflowOpinion.opinion = R.value.trim(), C2.pageContext.workflowOpinion.focusOpinionInput = false);
|
|
42
|
+
}), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])], 4)) : f("", true)]))], 64);
|
|
34
43
|
};
|
|
35
44
|
} });
|
|
36
45
|
export {
|
|
37
|
-
|
|
46
|
+
C as default
|
|
38
47
|
};
|
|
@@ -20,7 +20,7 @@ const g = { class: "dialog-footer" }, _ = e({ __name: "extract-workflow-runtime-
|
|
|
20
20
|
return w.props && (true === w.props.requireExtractTransactor && (h.value.loginName = [{ required: true, message: "请选择办理人", trigger: "blur" }]), true === w.props.isMustOpinion && (h.value.opinion = [{ required: true, message: "请输入意见", trigger: "change" }])), o(() => {
|
|
21
21
|
}), (e3, l2) => {
|
|
22
22
|
const o2 = a("el-icon"), s2 = a("el-input"), _3 = a("el-form-item"), x2 = a("el-form"), y2 = a("el-button"), w2 = a("el-dialog");
|
|
23
|
-
return n(), i(w2, { modelValue: N.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => N.value = e4), title: "选择办理人", width: "500" }, { footer: t(() => [p("div", g, [u(y2, { onClick: l2[4] || (l2[4] = (e4) => N.value = false) }, { default: t(() => l2[6] || (l2[6] = [d("取消")])), _: 1 }), u(y2, { type: "primary", onClick: j }, { default: t(() => l2[7] || (l2[7] = [d(" 确定 ")])), _: 1 })])]), default: t(() => [u(x2, { ref_key: "ruleFormRef", ref: C, style: { "max-width": "600px" }, model: b.value, rules: h.value, "label-width": "auto" }, { default: t(() => [u(_3, { label: "办理人", prop: "loginName" }, { default: t(() => [u(s2, { "model-value": b.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[2] || (l2[2] = (e4) => V()) }, { append: t(() => [u(o2, { class: "el-input__icon", onClick: l2[0] || (l2[0] = (e4) => V()) }, { default: t(() => [u(m(f))]), _: 1 }), u(o2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => (b.value.loginName = "", void (b.value.name = ""))) }, { default: t(() => [u(m(c))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(_3, { label: "意见", prop: "opinion" }, { default: t(() => [u(s2, { modelValue: b.value.opinion, "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => b.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), k.value ? (n(), i(m(v), { key: 0, width: "60%", multiple: false, onClose: q })) : r("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"]);
|
|
23
|
+
return n(), i(w2, { modelValue: N.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => N.value = e4), title: "选择办理人", width: "500" }, { footer: t(() => [p("div", g, [u(y2, { onClick: l2[4] || (l2[4] = (e4) => N.value = false) }, { default: t(() => [...l2[6] || (l2[6] = [d("取消", -1)])]), _: 1 }), u(y2, { type: "primary", onClick: j }, { default: t(() => [...l2[7] || (l2[7] = [d(" 确定 ", -1)])]), _: 1 })])]), default: t(() => [u(x2, { ref_key: "ruleFormRef", ref: C, style: { "max-width": "600px" }, model: b.value, rules: h.value, "label-width": "auto" }, { default: t(() => [u(_3, { label: "办理人", prop: "loginName" }, { default: t(() => [u(s2, { "model-value": b.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[2] || (l2[2] = (e4) => V()) }, { append: t(() => [u(o2, { class: "el-input__icon", onClick: l2[0] || (l2[0] = (e4) => V()) }, { default: t(() => [u(m(f))]), _: 1 }), u(o2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => (b.value.loginName = "", void (b.value.name = ""))) }, { default: t(() => [u(m(c))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(_3, { label: "意见", prop: "opinion" }, { default: t(() => [u(s2, { modelValue: b.value.opinion, "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => b.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), k.value ? (n(), i(m(v), { key: 0, width: "60%", multiple: false, onClose: q })) : r("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
@@ -37,7 +37,7 @@ const w = { class: "page-runtime-header-btn" }, V = { class: "dialog-footer" },
|
|
|
37
37
|
_(l3).then((e6) => {
|
|
38
38
|
e6.canExecute && (j.value = true);
|
|
39
39
|
});
|
|
40
|
-
}()) }, { default: s(() => [d(m(c(k)(M.value.title)), 1)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]), u(F2, { modelValue: j.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => j.value = e4), title: "选择办理人", width: "500" }, { footer: s(() => [v("div", V, [u(o2, { onClick: l2[5] || (l2[5] = (e4) => j.value = false) }, { default: s(() => l2[7] || (l2[7] = [d("取消")])), _: 1 }), u(o2, { type: "primary", onClick: H }, { default: s(() => l2[8] || (l2[8] = [d(" 确定 ")])), _: 1 })])]), default: s(() => [u(U3, { ref_key: "ruleFormRef", ref: z, style: { "max-width": "600px" }, model: E.value, rules: D.value, "label-width": "auto" }, { default: s(() => [u(C2, { label: "办理人", prop: "loginName" }, { default: s(() => [u(x2, { "model-value": E.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[3] || (l2[3] = (e4) => B()) }, { append: s(() => [u(a2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => B()) }, { default: s(() => [u(c(h))]), _: 1 }), u(a2, { class: "el-input__icon", onClick: l2[2] || (l2[2] = (e4) => (E.value.loginName = "", void (E.value.name = ""))) }, { default: s(() => [u(c(N))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(C2, { label: "意见", prop: "opinion" }, { default: s(() => [u(x2, { modelValue: E.value.opinion, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => E.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), R.value ? (i(), f(c(b), { key: 0, width: "60%", multiple: false, onClose: G })) : g("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"])]);
|
|
40
|
+
}()) }, { default: s(() => [d(m(c(k)(M.value.title)), 1)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]), u(F2, { modelValue: j.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => j.value = e4), title: "选择办理人", width: "500" }, { footer: s(() => [v("div", V, [u(o2, { onClick: l2[5] || (l2[5] = (e4) => j.value = false) }, { default: s(() => [...l2[7] || (l2[7] = [d("取消", -1)])]), _: 1 }), u(o2, { type: "primary", onClick: H }, { default: s(() => [...l2[8] || (l2[8] = [d(" 确定 ", -1)])]), _: 1 })])]), default: s(() => [u(U3, { ref_key: "ruleFormRef", ref: z, style: { "max-width": "600px" }, model: E.value, rules: D.value, "label-width": "auto" }, { default: s(() => [u(C2, { label: "办理人", prop: "loginName" }, { default: s(() => [u(x2, { "model-value": E.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[3] || (l2[3] = (e4) => B()) }, { append: s(() => [u(a2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => B()) }, { default: s(() => [u(c(h))]), _: 1 }), u(a2, { class: "el-input__icon", onClick: l2[2] || (l2[2] = (e4) => (E.value.loginName = "", void (E.value.name = ""))) }, { default: s(() => [u(c(N))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(C2, { label: "意见", prop: "opinion" }, { default: s(() => [u(x2, { modelValue: E.value.opinion, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => E.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), R.value ? (i(), f(c(b), { key: 0, width: "60%", multiple: false, onClose: G })) : g("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"])]);
|
|
41
41
|
};
|
|
42
42
|
} });
|
|
43
43
|
export {
|
|
@@ -25,7 +25,7 @@ const c = { class: "page-runtime-header-btn amb-workflowbutton-runtime-view" },
|
|
|
25
25
|
if (!o2 || o2.startsWith("initVal")) return;
|
|
26
26
|
((_b2 = (_a2 = t4 == null ? void 0 : t4.runtime) == null ? void 0 : _a2.props) == null ? void 0 : _b2.title) && (t4.runtime.props.title = o2);
|
|
27
27
|
}(t3), k.value.push(t3));
|
|
28
|
-
}), (
|
|
28
|
+
}), (e2, p2) => (o(), n("span", c, [(o(true), n(r, null, u(k.value, (e3, u2) => (o(), n(r, null, [e3.check ? (o(), i(s, { key: u2, pageContext: t2.pageContext, configure: e3 }, null, 8, ["pageContext", "configure"])) : a("", true)], 64))), 256))]));
|
|
29
29
|
} });
|
|
30
30
|
export {
|
|
31
31
|
l as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onUnmounted as a, resolveDirective as i, withDirectives as n, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, onUnmounted as a, resolveDirective as i, withDirectives as n, createElementBlock as r, openBlock as o, createBlock as s, createCommentVNode as l, unref as u, toDisplayString as m } from "vue";
|
|
2
2
|
import { deepCopy as h } from "../utils/common-util.js";
|
|
3
3
|
import g from "./assemblys/home-chart-render.vue.js";
|
|
4
4
|
import c from "agilebuilder-ui/src/utils/request";
|
|
@@ -20,7 +20,7 @@ const y = { "element-loading-text": "加载中..." }, S = { key: 1 }, b = e({ na
|
|
|
20
20
|
e4[I.homeChartSettingUserId] && (t2.chartJson.runtime.headerInfo ? t2.chartJson.runtime.headerInfo.title = e4[I.homeChartSettingUserId] : t2.chartJson.runtime.headerInfo = { textAlign: "center", title: e4[I.homeChartSettingUserId] });
|
|
21
21
|
}
|
|
22
22
|
const i2 = window.frameElement;
|
|
23
|
-
w.value = t2.chartJson, w.value.homeChartSettingUserId = I.homeChartSettingUserId, i2 && (
|
|
23
|
+
w.value = t2.chartJson, w.value.homeChartSettingUserId = I.homeChartSettingUserId, i2 && (i2.clientHeight, w.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
|
|
24
24
|
const n2 = { showHomepageSearch: false, name: e3.pageName, code: e3.pageCode, label: "", dimensions: "", version: 1, isWorkflowEntity: false, variables: t2.variables, systemCode: e3.systemCode, uuid: e3.uuid, allChartUuids: [], backendUrl: e3.backendUrl, rules: {}, pageType: "chart", beanName: t2.beanName, initChartServiceConfigs: [t2.initChartServiceConfigs], entity: { data: {}, task: {}, request: {}, page: {}, context: e3.contextParam, system: e3.systemParam } };
|
|
25
25
|
if (((_a = w.value.pushHomepage) == null ? void 0 : _a.searchConditions) && ((_b = w.value.pushHomepage) == null ? void 0 : _b.searchConditions.length) > 0 && (n2.showHomepageSearch = true), t2.variables) {
|
|
26
26
|
const e4 = n2.entity.page;
|
|
@@ -28,7 +28,7 @@ const y = { "element-loading-text": "加载中..." }, S = { key: 1 }, b = e({ na
|
|
|
28
28
|
}
|
|
29
29
|
t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && d(n2, t2.initOptionConfigs, void 0), v(w.value.pushHomepage.initConfig, n2, I.homeChartSettingUserId), f(t2, n2), A.value = n2, x = setTimeout(() => {
|
|
30
30
|
!function(e4, t3) {
|
|
31
|
-
if (!t3 || 0 == t3.length) return
|
|
31
|
+
if (!t3 || 0 == t3.length) return;
|
|
32
32
|
e4.initChartData = {}, e4.initChartData.data = h(e4.entity.data), e4.initChartData.page = h(e4.entity.page), t3 && t3.length > 0 && p(e4, t3, null, true);
|
|
33
33
|
}(A.value, [t2.initChartServiceConfigs]);
|
|
34
34
|
}, 200);
|
|
@@ -39,7 +39,7 @@ const y = { "element-loading-text": "加载中..." }, S = { key: 1 }, b = e({ na
|
|
|
39
39
|
x && clearTimeout(x);
|
|
40
40
|
}), (e3, t2) => {
|
|
41
41
|
const a2 = i("loading");
|
|
42
|
-
return n((
|
|
42
|
+
return n((o(), r("div", y, [!U.value && w.value ? (o(), s(g, { key: 0, configure: w.value, pageContext: u(A) }, null, 8, ["configure", "pageContext"])) : U.value || w.value ? l("", true) : (o(), r("div", S, m(u(b2)("superPageRuntimeMessage.noChartSetting")), 1))])), [[a2, U.value]]);
|
|
43
43
|
};
|
|
44
44
|
} });
|
|
45
45
|
export {
|