super-page-runtime 2.3.19-sit1 → 2.3.19-sit3
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/assets/chart-themes/bar-theme.d.ts +6 -0
- package/dist/es/assets/chart-themes/bar-theme.js +4 -0
- package/dist/es/assets/chart-themes/gauge-theme.d.ts +6 -0
- package/dist/es/assets/chart-themes/gauge-theme.js +4 -0
- package/dist/es/assets/chart-themes/pie-theme.d.ts +6 -0
- package/dist/es/assets/chart-themes/pie-theme.js +4 -0
- package/dist/es/assets/chart-themes/radar-theme.d.ts +6 -0
- package/dist/es/assets/chart-themes/radar-theme.js +4 -0
- package/dist/es/assets/chart-themes/scatter-theme.d.ts +6 -0
- package/dist/es/assets/chart-themes/scatter-theme.js +4 -0
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +118 -117
- package/dist/es/components/runtime/utils/events/data-backfill-util.d.ts +27 -0
- package/dist/es/components/runtime/utils/events/data-backfill-util.js +39 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +397 -369
- package/dist/es/components/runtime/utils/page-helper-util.js +4 -3
- package/dist/es/components/runtime/utils/page-init-util.d.ts +2 -1
- package/dist/es/components/runtime/utils/page-init-util.js +86 -65
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +9 -9
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +47 -46
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +45 -28
- 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 +13 -13
- package/dist/es/components/runtime/views/super-page.vue.d.ts +9 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +128 -120
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +88 -88
- package/package.json +2 -2
- package/dist/es/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/es/assets/chart-themes/theme1.js +0 -4
- package/dist/es/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/es/assets/chart-themes/theme2.js +0 -4
- package/dist/es/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/es/assets/chart-themes/theme3.js +0 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as u, nextTick as n, resolveComponent as r, createBlock as i, openBlock as s, normalizeStyle as p, normalizeClass as f, unref as c, withCtx as v, createVNode as g, createElementVNode as m, withKeys as d, withModifiers as h, createElementBlock as y, Fragment as b, renderList as x, createCommentVNode as C, toDisplayString as w, createTextVNode as _ } from "vue";
|
|
2
2
|
import { setVariableValue as S, getOptionDatasFromPage as k, queryOptionDatasources as T, autoSetAfterSelect as j, getVariableValue as A } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields as R } from "../../../../utils/page-init-util.js";
|
|
4
|
-
import { handleFormEvent as V, handleAfterInitEvent as
|
|
5
|
-
import
|
|
4
|
+
import { handleFormEvent as V, handleAfterInitEvent as M } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import I from "../common/title-suffix-element.vue.js";
|
|
6
6
|
import { $t as q } from "../../../../utils/i18n-util.js";
|
|
7
7
|
import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
|
|
8
8
|
import { CopyDocument as E } from "@element-plus/icons-vue";
|
|
@@ -26,17 +26,17 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
26
26
|
if (ee.value.multiple) {
|
|
27
27
|
l2 = !!ee.value.arrayValue ? Array.isArray(e3) ? e3 : e3 ? String(e3).split(",") : [] : Array.isArray(e3) ? e3.length > 0 ? e3.join(",") : "" : e3 ?? "";
|
|
28
28
|
}
|
|
29
|
-
S(J, L, l2), null != l2 && (H.value = "");
|
|
30
|
-
} }),
|
|
31
|
-
|
|
29
|
+
void 0 === l2 && (l2 = null), S(J, L, l2), null != l2 && (H.value = "");
|
|
30
|
+
} }), ue = t(ee.value.options ? ee.value.options : []), ne = k(G.pageContext, G.configure);
|
|
31
|
+
ne.length > 0 && (ue.value = ne);
|
|
32
32
|
const re = t(false), ie = G.configure.props && G.configure.props.dataOrigin ? G.configure.props.dataOrigin : {}, se = ie.optionValueSetType;
|
|
33
33
|
let pe = [];
|
|
34
|
-
const
|
|
34
|
+
const fe = ee.value.optionconfigInfo ? ee.value.optionconfigInfo : {};
|
|
35
35
|
if ("dynamicData" == se || "dataTable" == se || "service" == se) {
|
|
36
36
|
if ("remote" == ie.filterType) {
|
|
37
37
|
let e3;
|
|
38
38
|
ee.value.filterable = true, ee.value.remote = true, ee.value.remoteShowSuffix = true, ee.value.remoteMethod = function(t2) {
|
|
39
|
-
e3 !== t2 && (e3 = t2, re.value = true, T(G.pageContext,
|
|
39
|
+
e3 !== t2 && (e3 = t2, re.value = true, T(G.pageContext, fe, t2).then((e4) => {
|
|
40
40
|
re.value = false;
|
|
41
41
|
}).then((e4) => {
|
|
42
42
|
re.value = false;
|
|
@@ -47,17 +47,17 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
47
47
|
}
|
|
48
48
|
G.configure && G.configure.props && G.configure.props.base && G.configure.props.base.optionProp && pe.push({ source: "label", target: G.configure.props.base.optionProp }), ee.value.changeMethod = function(e3) {
|
|
49
49
|
let t2, l2 = null;
|
|
50
|
-
|
|
50
|
+
ue.value && null != e3 && null != e3 && (l2 = ue.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value));
|
|
51
51
|
pe.length > 0 && j(G.configure, G.pageContext, pe, l2, [ee.value.prop]);
|
|
52
52
|
l2 && l2.length > 0 && (t2 = l2[0]);
|
|
53
53
|
let o2 = {};
|
|
54
54
|
t2 && (o2.extendParams = t2);
|
|
55
|
-
o2.options =
|
|
55
|
+
o2.options = ue.value, o2.oldValue = te, V(e3, G.pageContext, G.configure, "change", o2);
|
|
56
56
|
};
|
|
57
|
-
const
|
|
58
|
-
if (
|
|
57
|
+
const ce = ee.value.monitorFields, ve = [];
|
|
58
|
+
if (ce) {
|
|
59
59
|
const e3 = [];
|
|
60
|
-
for (let t2 of
|
|
60
|
+
for (let t2 of ce) if (t2.startsWith("${")) {
|
|
61
61
|
t2 = t2.substring(2, t2.length - 1);
|
|
62
62
|
const l2 = t2.split(".");
|
|
63
63
|
"page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (ve.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
|
|
@@ -74,7 +74,7 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
74
74
|
for (let t2 of ve) e4.push(A(J, t2));
|
|
75
75
|
return e4.join(",");
|
|
76
76
|
}();
|
|
77
|
-
e3 != ge && (ge = e3,
|
|
77
|
+
e3 != ge && (ge = e3, fe.watchAttrValue = e3, T(G.pageContext, fe, void 0).then((e4) => {
|
|
78
78
|
re.value = false;
|
|
79
79
|
}));
|
|
80
80
|
}, 200);
|
|
@@ -82,41 +82,58 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
82
82
|
a(() => {
|
|
83
83
|
me && clearTimeout(me);
|
|
84
84
|
});
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
let he = false;
|
|
86
|
+
const ye = t(null), be = t(null), xe = t(null);
|
|
87
|
+
function Ce() {
|
|
87
88
|
const e3 = oe();
|
|
88
89
|
if (null != e3 && "" !== e3 && e3.length > 0) {
|
|
89
90
|
let t2 = "";
|
|
90
|
-
return "string" == typeof e3 ?
|
|
91
|
+
return "string" == typeof e3 ? ue.value.length > 0 ? ue.value.forEach((l2) => {
|
|
91
92
|
l2.value === e3 && (t2 = l2.label);
|
|
92
|
-
}) : t2 = e3 :
|
|
93
|
+
}) : t2 = e3 : ue.value.length > 0 ? (ue.value.forEach((l2) => {
|
|
93
94
|
e3.forEach((e4) => {
|
|
94
95
|
l2.value === e4 && (t2 = t2 + l2.label + ",");
|
|
95
96
|
});
|
|
96
97
|
}), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
|
-
return
|
|
100
|
+
return u(() => {
|
|
100
101
|
const e3 = new O("#" + le, { text: function() {
|
|
101
|
-
return
|
|
102
|
+
return Ce();
|
|
102
103
|
} });
|
|
103
104
|
e3.on("success", () => {
|
|
104
105
|
P({ showClose: true, type: "success", message: $("superPageRuntimeMessage.copySuccess") });
|
|
105
106
|
}), e3.on("error", (e4) => {
|
|
106
|
-
}),
|
|
107
|
+
}), n(() => {
|
|
107
108
|
const e4 = ae.value;
|
|
108
|
-
|
|
109
|
+
M(e4, G.pageContext, G.configure, { formItemRef: ye.value, componentRef: be.value, titleRef: xe.value, value: e4, entity: G.pageContext.entity.data, pageData: G.pageContext.entity.page });
|
|
109
110
|
});
|
|
110
111
|
}), U2({ updateOptions: function(e3) {
|
|
111
|
-
|
|
112
|
+
if (ue.value = e3 || [], !he) {
|
|
113
|
+
const e4 = oe();
|
|
114
|
+
if (null != e4 && "" !== e4 && ue.value.length > 0) {
|
|
115
|
+
let t2 = false;
|
|
116
|
+
for (let l2 of ue.value) if (l2.value == e4) {
|
|
117
|
+
t2 = true;
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
if (!t2) {
|
|
121
|
+
for (let t3 of ue.value) if (t3.label == e4) {
|
|
122
|
+
ae.value = t3.value;
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
he = true;
|
|
112
129
|
}, addRequiredClass: function() {
|
|
113
130
|
H.value = z();
|
|
114
|
-
}, getSelectItemsTitle:
|
|
115
|
-
return
|
|
131
|
+
}, getSelectItemsTitle: Ce, getOptions: function() {
|
|
132
|
+
return ue.value;
|
|
116
133
|
} }), (e3, t2) => {
|
|
117
|
-
const l2 = r("el-icon"), o2 = r("el-option"), a2 = r("el-select"),
|
|
118
|
-
return s(), i(
|
|
119
|
-
}, ["stop"]), ["space"])), onChange: ee.value.changeMethod, modelValue: ae.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ae.value = e4) }, { default: v(() => [(s(true), y(
|
|
134
|
+
const l2 = r("el-icon"), o2 = r("el-option"), a2 = r("el-select"), u2 = r("el-popover"), n2 = r("el-form-item");
|
|
135
|
+
return s(), i(n2, { ref_key: "formItemRef", ref: ye, required: !!ee.value.required, class: f(c(X) + (H.value ? " " + H.value : "")), "label-width": ee.value.labelWidth, style: p(c(Q)) }, { label: v(() => [ee.value.tittleShow ? (s(), y("div", { key: 0, ref_key: "titleRef", ref: xe, style: p({ ...c(Y), ...c(Z) }) }, [ee.value.prefixType ? (s(), i(I, { key: 0, pageContext: e3.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (s(), y(b, { key: 1 }, [_(w(c(q)(ee.value.title)), 1)], 64))], 4)) : C("", true)]), default: v(() => [g(u2, { placement: "top", trigger: "hover" }, { reference: v(() => [m("div", B, [g(a2, { ref_key: "componentRef", ref: be, style: { width: "100%" }, disabled: "disabled" === ee.value.state, size: ee.value.size, clearable: ee.value.clearable, multiple: ee.value.multiple, "collapse-tags": ee.value.collapseTags, "collapse-tags-tooltip": ee.value.collapseTagsTooltip, filterable: ee.value.filterable, "allow-create": ee.value.allowCreate, placeholder: ee.value.placeholder, "remote-show-suffix": ee.value.remoteShowSuffix, remote: ee.value.remote, "remote-method": ee.value.remoteMethod, loading: re.value, onKeydown: t2[0] || (t2[0] = d(h(() => {
|
|
136
|
+
}, ["stop"]), ["space"])), onChange: ee.value.changeMethod, onClear: ee.value.changeMethod, modelValue: ae.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ae.value = e4) }, { default: v(() => [(s(true), y(b, null, x(ue.value, (t3) => (s(), i(o2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => c(V)(t3.value, e3.pageContext, e3.configure, "click", { values: ae.value }) }, { default: v(() => [t3._description_ ? (s(), y(b, { key: 0 }, [m("span", F, w(t3.label), 1), m("span", K, w(t3._description_), 1)], 64)) : C("", true)]), _: 2 }, 1032, ["label", "value", "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: v(() => [m("span", W, [g(l2, { id: le }, { default: v(() => [g(c(E))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
120
137
|
};
|
|
121
138
|
} });
|
|
122
139
|
export {
|
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-cb803c7a"]]);
|
|
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,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as o, ref as e, watch as n, nextTick as
|
|
2
|
-
import { addRequiredClassUtil as
|
|
3
|
-
const
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as o, ref as e, watch as n, nextTick as t, resolveComponent as i, createBlock as l, createCommentVNode as a, openBlock as p, withCtx as u, createElementVNode as s, createElementBlock as r, createTextVNode as f, normalizeClass as c, createVNode as w } from "vue";
|
|
2
|
+
import { addRequiredClassUtil as d } from "../../../../utils/common-util.js";
|
|
3
|
+
const m = { style: { "background-color": "#ffffff" } }, x = { class: "opinion-box-table-wrapper" }, k = { class: "opinion-table" }, v = { class: "opinion-label" }, g = { key: 0, class: "required-star" }, b = o({ __name: "workflow-opinion-box", props: { pageContext: {} }, setup(o2) {
|
|
4
|
+
const b2 = e(""), O = o2, C = e(), y = e("");
|
|
5
5
|
return n(() => {
|
|
6
6
|
var _a;
|
|
7
|
-
return (_a =
|
|
7
|
+
return (_a = O.pageContext.workflowOpinion) == null ? void 0 : _a.focusOpinionInput;
|
|
8
8
|
}, (o3) => {
|
|
9
|
-
o3 ? (y.value =
|
|
9
|
+
o3 ? (y.value = d(), t(() => {
|
|
10
10
|
var _a;
|
|
11
11
|
((_a = C.value) == null ? void 0 : _a.focus) && C.value.focus();
|
|
12
12
|
})) : y.value = "";
|
|
13
13
|
}, { immediate: true }), (o3, e2) => {
|
|
14
14
|
var _a;
|
|
15
|
-
const n2 =
|
|
16
|
-
return ((_a = o3.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (p(),
|
|
15
|
+
const n2 = i("el-input"), t2 = i("el-affix");
|
|
16
|
+
return ((_a = o3.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (p(), l(t2, { key: 0, target: ".app-container", position: "bottom", offset: 35 }, { default: u(() => {
|
|
17
17
|
var _a2;
|
|
18
|
-
return [s("div",
|
|
19
|
-
|
|
20
|
-
}), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])];
|
|
21
|
-
}), _: 1 })) :
|
|
18
|
+
return [s("div", m, [s("div", x, [s("table", k, [s("tbody", null, [s("tr", null, [s("td", v, [((_a2 = o3.pageContext.workflowOpinion) == null ? void 0 : _a2.isRequired) ? (p(), r("span", g, "*")) : a("", true), e2[2] || (e2[2] = f(" 处理意见 "))]), s("td", { class: c(["opinion-input-cell", y.value]) }, [w(n2, { ref_key: "opinionInputRef", ref: C, modelValue: b2.value, "onUpdate:modelValue": e2[0] || (e2[0] = (o4) => b2.value = o4), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: e2[1] || (e2[1] = (o4) => {
|
|
19
|
+
O.pageContext.workflowOpinion && (O.pageContext.workflowOpinion.opinion = b2.value.trim(), O.pageContext.workflowOpinion.focusOpinionInput = false);
|
|
20
|
+
}), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])])];
|
|
21
|
+
}), _: 1 })) : a("", true);
|
|
22
22
|
};
|
|
23
23
|
} });
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
b as default
|
|
26
26
|
};
|
|
@@ -54,6 +54,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
54
54
|
type: BooleanConstructor;
|
|
55
55
|
required: false;
|
|
56
56
|
};
|
|
57
|
+
isPreview: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
required: false;
|
|
60
|
+
};
|
|
57
61
|
}>, {
|
|
58
62
|
pickFileDone: typeof pickFileDone;
|
|
59
63
|
uploadFileDone: typeof uploadFileDone;
|
|
@@ -113,6 +117,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
113
117
|
type: BooleanConstructor;
|
|
114
118
|
required: false;
|
|
115
119
|
};
|
|
120
|
+
isPreview: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
required: false;
|
|
123
|
+
};
|
|
116
124
|
}>> & Readonly<{
|
|
117
125
|
onClose?: (...args: any[]) => any;
|
|
118
126
|
onOpen?: (...args: any[]) => any;
|
|
@@ -122,5 +130,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
122
130
|
isTest: boolean;
|
|
123
131
|
contentHeight: string | number;
|
|
124
132
|
isDialog: boolean;
|
|
133
|
+
isPreview: boolean;
|
|
125
134
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
126
135
|
export default _default;
|