super-page-designer 2.3.14-sit1-design3 → 2.3.15-sit1-design1
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/design/utils/assemblys-config.js +54 -53
- package/dist/es/components/design/utils/chart-design-util.js +23 -17
- package/dist/es/components/design/utils/form-design-util.js +1 -1
- package/dist/es/components/design/utils/page-table-util.js +1 -1
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +34 -33
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr-base.vue.js +9 -8
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +12 -7
- package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-style.vue.js +13 -12
- package/dist/es/components/design/views/assemblys/chart/column-line/series/styles/style-emphasis.vue.js +11 -0
- package/dist/es/components/design/views/assemblys/chart/column-line/series/styles/style-emphasis.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-stack.vue.js +7 -0
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-stack.vue2.js +27 -0
- package/dist/es/components/design/views/assemblys/chart/common/common-style-tooltip.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/common/common-task-title.vue.js +7 -0
- package/dist/es/components/design/views/assemblys/common/common-task-title.vue2.js +127 -0
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +26 -2
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +2 -26
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-attr-advanced.vue.js +36 -42
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +16 -14
- package/dist/es/components/design/views/design/page-event/{config.vue2.js → config.vue.js} +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
- package/dist/es/style.css +46 -1
- package/package.json +3 -3
- /package/dist/es/components/design/views/assemblys/button/component/{journal-set-dialog.vue3.js → journal-set-dialog.vue2.js} +0 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { defineComponent as e, ref as l, computed as a, resolveComponent as t, createElementBlock as o, openBlock as u, Fragment as i, createElementVNode as n, createVNode as r, withDirectives as d, withCtx as p, createTextVNode as s, vShow as c, unref as f, renderList as m, createBlock as v, createCommentVNode as g, toDisplayString as b, withKeys as y } from "vue";
|
|
2
|
+
import { Plus as w, Delete as T, EditPen as h, Search as V } from "@element-plus/icons-vue";
|
|
3
|
+
import _ from "./common-variable-bind.vue.js";
|
|
4
|
+
import { getUuidv4 as k } from "../../../utils/common-util.js";
|
|
5
|
+
import { usePageContextStore as C } from "../../../../../stores/page-store.js";
|
|
6
|
+
import { getModelOptionsByFields as N } from "../../../utils/page-table-util.js";
|
|
7
|
+
const x = { style: { "max-height": "60vh", overflow: "auto" } }, U = { class: "card-header" }, O = { class: "title-config" }, D = { class: "card-remove" }, j = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, L = { class: "item-content" }, B = e({ __name: "common-task-title", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, required: true }, title: { type: String, default: "显示条件" } }, setup(e2) {
|
|
8
|
+
const B2 = C(), z = e2;
|
|
9
|
+
z.configure.props.task || (z.configure.props.task = {});
|
|
10
|
+
const I = l([]), S = l(""), E = a(() => "" === S.value.trim() ? z.pageDesign.modelFields : z.pageDesign.modelFields.filter((e3) => e3.alias.toLowerCase().includes(S.value.trim().toLowerCase()) || e3.dbColumnName.toLowerCase().includes(S.value.trim().toLowerCase())));
|
|
11
|
+
function $() {
|
|
12
|
+
if (G.value = true, I.value = [], z.configure.props.task.title) {
|
|
13
|
+
JSON.parse(JSON.stringify(z.configure.props.task.title)).forEach((e3) => {
|
|
14
|
+
e3.titleDynamicTags = [];
|
|
15
|
+
const l2 = e3.config.match(/\$\{(.+?)\}/g);
|
|
16
|
+
if (l2) for (const a2 of l2) e3.titleDynamicTags.push(a2);
|
|
17
|
+
I.value.push(e3);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
const M = l(), F = B2.pageContext;
|
|
22
|
+
var q;
|
|
23
|
+
(q = F.currentTableConfig) && (M.value = N(q.modelFields));
|
|
24
|
+
const G = l(false), W = l(false), A = l(""), J = l(""), K = l(""), Q = l(false);
|
|
25
|
+
function H() {
|
|
26
|
+
if (0 === I.value.length) return void (z.configure.props.task.title = null);
|
|
27
|
+
const e3 = [];
|
|
28
|
+
I.value.forEach((l2) => {
|
|
29
|
+
var _a;
|
|
30
|
+
l2.titleDynamicTags && ((_a = l2.titleDynamicTags) == null ? void 0 : _a.length) > 0 && (l2.config = l2.titleDynamicTags.join(""), delete l2.titleDynamicTags, e3.push(l2));
|
|
31
|
+
}), z.configure.props.task.title = e3;
|
|
32
|
+
}
|
|
33
|
+
function P() {
|
|
34
|
+
const e3 = { uuid: k(), conditions: [], titleDynamicTags: [], config: "" };
|
|
35
|
+
I.value.push(e3);
|
|
36
|
+
}
|
|
37
|
+
function R(e3, l2) {
|
|
38
|
+
let a2 = -1;
|
|
39
|
+
const t2 = l2.conditions.length;
|
|
40
|
+
for (let o2 = 0; o2 < t2; o2++) if (l2.conditions[o2].uuid == e3.uuid) {
|
|
41
|
+
a2 = o2;
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
return a2;
|
|
45
|
+
}
|
|
46
|
+
function X(e3, l2) {
|
|
47
|
+
let a2 = -1;
|
|
48
|
+
e3 && (a2 = R(e3, l2));
|
|
49
|
+
const t2 = { uuid: k(), leftBracket: "", propName: "", operator: "", propValueType: "", rightBracket: "", joinSign: "", dataType: "" };
|
|
50
|
+
-1 === a2 ? l2.conditions.push(t2) : l2.conditions.splice(a2 + 1, 0, t2);
|
|
51
|
+
}
|
|
52
|
+
function Y(e3, l2, a2) {
|
|
53
|
+
if ("propValue" == a2) l2.propValue = e3;
|
|
54
|
+
else {
|
|
55
|
+
l2.propName = e3;
|
|
56
|
+
let a3 = "";
|
|
57
|
+
if (e3 && e3.startsWith("${")) {
|
|
58
|
+
let l3 = e3.substring(2, e3.length - 1);
|
|
59
|
+
if (l3.startsWith("page.")) ;
|
|
60
|
+
else if (l3.startsWith("data.")) {
|
|
61
|
+
l3 = l3.substring(5);
|
|
62
|
+
const e4 = B2.getModelField(l3);
|
|
63
|
+
a3 = e4 ? e4.dataType : null;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
l2.dataType = a3;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function Z(e3) {
|
|
70
|
+
return e3.indexOf("${field") >= 0 ? "success" : null;
|
|
71
|
+
}
|
|
72
|
+
function ee(e3) {
|
|
73
|
+
let l2 = e3;
|
|
74
|
+
if (e3.indexOf("${field[") >= 0) {
|
|
75
|
+
const e4 = l2.substring(l2.indexOf("[") + 1, l2.lastIndexOf("]"));
|
|
76
|
+
l2 = function(e5) {
|
|
77
|
+
let l3 = e5;
|
|
78
|
+
const a2 = B2.getModelField(e5);
|
|
79
|
+
a2 && (l3 = a2.alias);
|
|
80
|
+
return l3;
|
|
81
|
+
}(e4), l2 = "[" + l2 + "]";
|
|
82
|
+
} else if (e3.indexOf("${writeTitle[") >= 0) {
|
|
83
|
+
const a2 = e3.indexOf("${writeTitle[");
|
|
84
|
+
l2 = l2.substring(a2 + 13), l2 = l2.substring(0, l2.indexOf("]"));
|
|
85
|
+
}
|
|
86
|
+
return l2;
|
|
87
|
+
}
|
|
88
|
+
function le(e3) {
|
|
89
|
+
"" !== K.value.trim() && (J.value === e3.uuid && (K.value = "${writeTitle[" + K.value + "]}"), e3.titleDynamicTags.push(K.value)), K.value = "", J.value = "";
|
|
90
|
+
}
|
|
91
|
+
function ae() {
|
|
92
|
+
if ("" !== A.value && J.value) {
|
|
93
|
+
const e3 = I.value.find((e4) => e4.uuid === J.value);
|
|
94
|
+
e3 && e3.titleDynamicTags && e3.titleDynamicTags.push("${field[" + A.value + "]}");
|
|
95
|
+
}
|
|
96
|
+
J.value = "", A.value = "", W.value = false;
|
|
97
|
+
}
|
|
98
|
+
return (l2, a2) => {
|
|
99
|
+
const k2 = t("el-button"), C2 = t("el-text"), N2 = t("el-row"), B3 = t("el-tag"), z2 = t("el-input"), F2 = t("el-button-group"), q2 = t("super-icon"), te = t("el-popconfirm"), oe = t("Top"), ue = t("el-icon"), ie = t("Bottom"), ne = t("el-table-column"), re = t("el-option"), de = t("el-select"), pe = t("el-table"), se = t("el-card"), ce = t("el-dialog"), fe = t("el-radio"), me = t("el-radio-group");
|
|
100
|
+
return u(), o(i, null, [n("div", null, [r(k2, { type: "primary", onClick: $ }, { default: p(() => a2[6] || (a2[6] = [s("编辑")])), _: 1 }), d(r(C2, { type: "success" }, { default: p(() => a2[7] || (a2[7] = [s(" 已设置.")])), _: 1 }, 512), [[c, e2.configure.props.task.title]])]), r(ce, { "append-to-body": "", "destroy-on-close": "", modelValue: G.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => G.value = e3), title: e2.title, width: "900", onClose: H }, { default: p(() => [r(N2, { style: { "padding-bottom": "8px" } }, { default: p(() => [r(k2, { icon: f(w), plain: "", type: "primary", onClick: P }, { default: p(() => a2[8] || (a2[8] = [s(" 添加标题 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), n("div", x, [(u(true), o(i, null, m(I.value, (e3, l3) => (u(), v(se, null, { header: p(() => [n("div", U, [n("div", O, [(u(true), o(i, null, m(e3.titleDynamicTags, (l4, a3) => (u(), v(B3, { key: a3 + l4, type: Z(l4), closable: "", "disable-transitions": false, onClose: (a4) => function(e4, l5) {
|
|
101
|
+
const a5 = l5.titleDynamicTags.indexOf(e4);
|
|
102
|
+
a5 >= 0 && l5.titleDynamicTags.splice(a5, 1);
|
|
103
|
+
}(l4, e3) }, { default: p(() => [s(b(ee(l4)), 1)]), _: 2 }, 1032, ["type", "onClose"]))), 128)), J.value === e3.uuid && false === W.value ? (u(), v(z2, { key: 0, style: { width: "150px", "margin-right": "8px" }, modelValue: K.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => K.value = e4), size: "small", ref_for: true, ref: "saveTagInput" + e3.uuid, onKeyup: y((l4) => le(e3), ["enter", "native"]), onBlur: (l4) => le(e3) }, null, 8, ["modelValue", "onKeyup", "onBlur"])) : g("", true), J.value && J.value === e3.uuid ? g("", true) : (u(), v(F2, { key: 1 }, { default: p(() => [r(k2, { class: "button-new-tag", size: "small", icon: f(h), onClick: (l4) => function(e4) {
|
|
104
|
+
J.value = e4.uuid, Q.value = false;
|
|
105
|
+
}(e3) }, { default: p(() => a2[9] || (a2[9] = [s(" 输入文字 ")])), _: 2 }, 1032, ["icon", "onClick"]), r(k2, { class: "button-new-tag", size: "small", icon: f(V), onClick: (l4) => function(e4) {
|
|
106
|
+
J.value = e4.uuid, W.value = true;
|
|
107
|
+
}(e3) }, { default: p(() => a2[10] || (a2[10] = [s(" 选择字段 ")])), _: 2 }, 1032, ["icon", "onClick"])]), _: 2 }, 1024))]), n("div", D, [r(te, { title: "确认删除该标题配置吗?", onConfirm: (e4) => function(e5) {
|
|
108
|
+
I.value.splice(e5, 1);
|
|
109
|
+
}(l3) }, { reference: p(() => [r(q2, { style: { cursor: "pointer" }, iconValue: "amb-color-icon-shanchu" })]), _: 2 }, 1032, ["onConfirm"])])])]), default: p(() => [r(pe, { border: "", "highlight-current-row": "", "current-row-key": "uuid", "row-key": "uuid", data: e3.conditions, style: { width: "100%" } }, { default: p(() => [r(ne, { label: "", width: "50" }, { default: p((l4) => [n("div", j, [r(ue, { size: "14", style: { cursor: "pointer" }, onClick: (a3) => function(e4, l5) {
|
|
110
|
+
let a4 = R(e4, l5);
|
|
111
|
+
if (a4 < 1) return;
|
|
112
|
+
const t2 = l5.conditions;
|
|
113
|
+
[t2[a4 - 1], t2[a4]] = [t2[a4], t2[a4 - 1]];
|
|
114
|
+
}(l4.row, e3) }, { default: p(() => [r(oe)]), _: 2 }, 1032, ["onClick"]), r(ue, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (a3) => function(e4, l5) {
|
|
115
|
+
let a4 = R(e4, l5);
|
|
116
|
+
if (-1 == a4 || l5.conditions.length == a4 + 1) return;
|
|
117
|
+
const t2 = l5.conditions;
|
|
118
|
+
[t2[a4], t2[a4 + 1]] = [t2[a4 + 1], t2[a4]];
|
|
119
|
+
}(l4.row, e3) }, { default: p(() => [r(ie)]), _: 2 }, 1032, ["onClick"])])]), _: 2 }, 1024), r(ne, { prop: "leftBracket", label: "(", width: "80" }, { default: p((e4) => [r(de, { modelValue: e4.row.leftBracket, "onUpdate:modelValue": (l4) => e4.row.leftBracket = l4, clearable: "", placeholder: "请选择" }, { default: p(() => [r(re, { label: "", value: "" }), r(re, { label: "(", value: "(" }), r(re, { label: "((", value: "((" }), r(re, { label: "(((", value: "(((" }), r(re, { label: "((((", value: "((((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(ne, { prop: "propName", label: "字段名(*)", width: "150" }, { default: p((e4) => [r(_, { modelValue: e4.row.propName, objModelOptions: M.value, paramTypes: ["data", "task", "page", "request", "row"], "onUpdate:modelValue": (l4) => Y(l4, e4.row, "propName") }, null, 8, ["modelValue", "objModelOptions", "onUpdate:modelValue"])]), _: 1 }), r(ne, { prop: "operator", label: "操作符", width: "90" }, { default: p((e4) => [r(de, { modelValue: e4.row.operator, "onUpdate:modelValue": (l4) => e4.row.operator = l4, clearable: "", placeholder: "请选择" }, { default: p(() => [d(r(re, { label: "大于", value: "GT" }, null, 512), [[c, "int" == e4.row.dataType || "long" == e4.row.dataType || "float" == e4.row.dataType || "double" == e4.row.dataType]]), d(r(re, { label: "小于", value: "LT" }, null, 512), [[c, "int" == e4.row.dataType || "long" == e4.row.dataType || "float" == e4.row.dataType || "double" == e4.row.dataType]]), d(r(re, { label: "晚于", value: "GT" }, null, 512), [[c, "date" == e4.row.dataType || "datetime" == e4.row.dataType]]), d(r(re, { label: "早于", value: "LT" }, null, 512), [[c, "date" == e4.row.dataType || "datetime" == e4.row.dataType]]), r(re, { label: "等于", value: "EQ" }), d(r(re, { label: "不大于", value: "LET" }, null, 512), [[c, "int" == e4.row.dataType || "long" == e4.row.dataType || "float" == e4.row.dataType || "double" == e4.row.dataType]]), d(r(re, { label: "不小于", value: "GET" }, null, 512), [[c, "int" == e4.row.dataType || "long" == e4.row.dataType || "float" == e4.row.dataType || "double" == e4.row.dataType]]), d(r(re, { label: "不晚于", value: "LET" }, null, 512), [[c, "date" == e4.row.dataType || "datetime" == e4.row.dataType]]), d(r(re, { label: "不早于", value: "GET" }, null, 512), [[c, "date" == e4.row.dataType || "datetime" == e4.row.dataType]]), r(re, { label: "不等于", value: "NET" }), r(re, { label: "包含", value: "CONTAIN" }), r(re, { label: "不包含", value: "NOT_CONTAIN" }), r(re, { label: "等于Null", value: "IS_NULL" }), r(re, { label: "不等于Null", value: "IS_NOT_NULL" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(ne, { prop: "propValue", label: "值(*)", width: "120" }, { default: p((e4) => [r(_, { modelValue: e4.row.propValue, objModelOptions: M.value, "onUpdate:modelValue": (l4) => Y(l4, e4.row, "propValue") }, null, 8, ["modelValue", "objModelOptions", "onUpdate:modelValue"])]), _: 1 }), r(ne, { prop: "rightBracket", label: ")", width: "80" }, { default: p((e4) => [r(de, { modelValue: e4.row.rightBracket, "onUpdate:modelValue": (l4) => e4.row.rightBracket = l4, placeholder: "请选择", clearable: "" }, { default: p(() => [r(re, { label: "", value: "" }), r(re, { label: ")", value: ")" }), r(re, { label: "))", value: "))" }), r(re, { label: ")))", value: ")))" }), r(re, { label: "))))", value: "))))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(ne, { prop: "joinSign", label: "并且/或者", width: "80" }, { default: p((e4) => [r(de, { modelValue: e4.row.joinSign, "onUpdate:modelValue": (l4) => e4.row.joinSign = l4, clearable: "", placeholder: "请选择" }, { default: p(() => [r(re, { label: "或者", value: "or" }), r(re, { label: "并且", value: "and" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(ne, { prop: "variableIsNull", label: "变量为空时", width: "100" }, { default: p((e4) => [r(de, { modelValue: e4.row.variableIsNull, "onUpdate:modelValue": (l4) => e4.row.variableIsNull = l4, clearable: "", placeholder: "请选择" }, { default: p(() => [r(re, { label: "Null", value: "null" }), r(re, { label: "忽略(1=1)", value: "ignore" }), r(re, { label: "不符合(1<>1)", value: "notequal" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(ne, { label: "操作" }, { header: p(() => [r(k2, { icon: f(w), plain: "", type: "primary", onClick: (l4) => X(null, e3) }, { default: p(() => a2[11] || (a2[11] = [s(" 添加条件 ")])), _: 2 }, 1032, ["icon", "onClick"])]), default: p((l4) => [r(ue, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px", "margin-left": "6px" }, onClick: (a3) => X(l4.row, e3) }, { default: p(() => [r(f(w))]), _: 2 }, 1032, ["onClick"]), r(ue, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (a3) => function(e4, l5) {
|
|
120
|
+
let a4 = R(e4, l5);
|
|
121
|
+
a4 > -1 && l5.conditions.splice(a4, 1);
|
|
122
|
+
}(l4.row, e3) }, { default: p(() => [r(f(T))]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1024)]), _: 2 }, 1032, ["data"])]), _: 2 }, 1024))), 256))])]), _: 1 }, 8, ["modelValue", "title"]), r(ce, { "append-to-body": "", modelValue: W.value, "onUpdate:modelValue": a2[5] || (a2[5] = (e3) => W.value = e3), title: e2.title, width: "900" }, { footer: p(() => [r(k2, { type: "primary", size: "small", onClick: ae }, { default: p(() => a2[12] || (a2[12] = [s(" 确定 ")])), _: 1 }), r(k2, { size: "small", onClick: a2[4] || (a2[4] = (e3) => W.value = false) }, { default: p(() => a2[13] || (a2[13] = [s(" 取消 ")])), _: 1 })]), default: p(() => [r(z2, { modelValue: S.value, "onUpdate:modelValue": a2[2] || (a2[2] = (e3) => S.value = e3), placeholder: "筛选字段", clearable: "" }, null, 8, ["modelValue"]), n("div", L, [r(me, { modelValue: A.value, "onUpdate:modelValue": a2[3] || (a2[3] = (e3) => A.value = e3), class: "group" }, { default: p(() => [(u(true), o(i, null, m(E.value, (e3) => (u(), o("li", { key: e3.dbColumnName, class: "item" }, [r(fe, { value: e3.dbColumnName }, { default: p(() => [s(b(e3.alias), 1)]), _: 2 }, 1032, ["value"])]))), 128))]), _: 1 }, 8, ["modelValue"])])]), _: 1 }, 8, ["modelValue", "title"])], 64);
|
|
123
|
+
};
|
|
124
|
+
} });
|
|
125
|
+
export {
|
|
126
|
+
B as default
|
|
127
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, computed as l, resolveComponent as i, createBlock as o, openBlock as t, withCtx as n, createElementVNode as r, createVNode as s, createCommentVNode as u, withDirectives as d, renderSlot as p, createTextVNode as c, unref as g, vShow as f, createElementBlock as m, Fragment as v, renderList as y, normalizeClass as b, toDisplayString as V } from "vue";
|
|
2
|
-
import O from "../../form/common/dataorigin-input-table.
|
|
2
|
+
import O from "../../form/common/dataorigin-input-table.vue.js";
|
|
3
3
|
import { Codemirror as _ } from "vue-codemirror";
|
|
4
4
|
import C from "../../workflow/component/combination.vue.js";
|
|
5
5
|
import S from "./return-set-table.vue.js";
|
|
@@ -24,7 +24,7 @@ const w = { style: { padding: "8px 0px 0px 0px" } }, C = { style: { padding: "8p
|
|
|
24
24
|
function L(e3) {
|
|
25
25
|
j2.configure.props.base.showDeleteBtnCondition = e3.data;
|
|
26
26
|
}
|
|
27
|
-
return j2.configure.verification || (j2.configure.verification = {}), l(() => j2.configure.props.base.selection, (e3) => {
|
|
27
|
+
return j2.configure.verification || (j2.configure.verification = {}), void 0 !== j2.configure.props.base.isDragColumn && null !== j2.configure.props.base.isDragColumn || (j2.configure.props.base.isDragColumn = true), l(() => j2.configure.props.base.selection, (e3) => {
|
|
28
28
|
if (e3) {
|
|
29
29
|
let e4 = c();
|
|
30
30
|
j2.configure.items.splice(0, 0, e4);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, onMounted as a, resolveComponent as t, createBlock as o, openBlock as u, withCtx as i, createElementVNode as n, createVNode as s, createCommentVNode as d, withDirectives as r, unref as m, createElementBlock as p, Fragment as c, renderList as b, createTextVNode as f, vShow as y, normalizeClass as v } from "vue";
|
|
2
|
-
import V from "./dataorigin-input-table.
|
|
2
|
+
import V from "./dataorigin-input-table.vue.js";
|
|
3
3
|
import g from "./condition.vue.js";
|
|
4
4
|
import S from "./row-ul-li.vue.js";
|
|
5
5
|
import "uuid";
|
|
@@ -1,4 +1,28 @@
|
|
|
1
|
-
import t from "
|
|
1
|
+
import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as d, Fragment as u, createVNode as n, withCtx as i, unref as s, createElementVNode as m, createTextVNode as r } from "vue";
|
|
2
|
+
import { Search as p } from "@element-plus/icons-vue";
|
|
3
|
+
const f = { class: "dialog-footer" }, v = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: v2 }) {
|
|
4
|
+
const c = e2, g = l(c.modelValue), V = v2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
|
|
5
|
+
function y() {
|
|
6
|
+
if (_.value.length > 0) {
|
|
7
|
+
let e3 = "";
|
|
8
|
+
_.value.forEach((l2) => {
|
|
9
|
+
e3 = e3 + l2.name + ",";
|
|
10
|
+
}), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
|
|
11
|
+
} else b.value = false;
|
|
12
|
+
}
|
|
13
|
+
function S(e3) {
|
|
14
|
+
_.value = e3;
|
|
15
|
+
}
|
|
16
|
+
function w() {
|
|
17
|
+
b.value = true;
|
|
18
|
+
}
|
|
19
|
+
return a(() => c.modelValue, (e3) => {
|
|
20
|
+
g.value = e3;
|
|
21
|
+
}), (e3, l2) => {
|
|
22
|
+
const a2 = t("el-icon"), v3 = t("el-input"), c2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
|
|
23
|
+
return d(), o(u, null, [n(v3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: w }, { suffix: i(() => [n(a2, { onClick: w }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", f, [n(_2, { type: "default", onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: y }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: S }, { default: i(() => [n(c2, { type: "selection", width: "55" }), n(c2, { prop: "date", label: "Date", width: "180" }), n(c2, { prop: "name", label: "Name", width: "180" }), n(c2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
|
|
24
|
+
};
|
|
25
|
+
} });
|
|
2
26
|
export {
|
|
3
|
-
|
|
27
|
+
v as default
|
|
4
28
|
};
|
package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js
CHANGED
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Search as p } from "@element-plus/icons-vue";
|
|
3
|
-
const f = { class: "dialog-footer" }, v = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: v2 }) {
|
|
4
|
-
const c = e2, g = l(c.modelValue), V = v2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
|
|
5
|
-
function y() {
|
|
6
|
-
if (_.value.length > 0) {
|
|
7
|
-
let e3 = "";
|
|
8
|
-
_.value.forEach((l2) => {
|
|
9
|
-
e3 = e3 + l2.name + ",";
|
|
10
|
-
}), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
|
|
11
|
-
} else b.value = false;
|
|
12
|
-
}
|
|
13
|
-
function S(e3) {
|
|
14
|
-
_.value = e3;
|
|
15
|
-
}
|
|
16
|
-
function w() {
|
|
17
|
-
b.value = true;
|
|
18
|
-
}
|
|
19
|
-
return a(() => c.modelValue, (e3) => {
|
|
20
|
-
g.value = e3;
|
|
21
|
-
}), (e3, l2) => {
|
|
22
|
-
const a2 = t("el-icon"), v3 = t("el-input"), c2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
|
|
23
|
-
return d(), o(u, null, [n(v3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: w }, { suffix: i(() => [n(a2, { onClick: w }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", f, [n(_2, { type: "default", onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: y }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: S }, { default: i(() => [n(c2, { type: "selection", width: "55" }), n(c2, { prop: "date", label: "Date", width: "180" }), n(c2, { prop: "name", label: "Name", width: "180" }), n(c2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
|
|
24
|
-
};
|
|
25
|
-
} });
|
|
1
|
+
import t from "./dataorigin-input-table.vue.js";
|
|
26
2
|
export {
|
|
27
|
-
|
|
3
|
+
t as default
|
|
28
4
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as t, openBlock as o, withCtx as u, createVNode as d, unref as r, createTextVNode as n, createElementBlock as i, Fragment as p, renderList as m } from "vue";
|
|
2
|
-
import { CirclePlus as s, Delete as f, Top as v, Bottom as
|
|
3
|
-
import
|
|
2
|
+
import { CirclePlus as s, Delete as f, Top as v, Bottom as b } from "@element-plus/icons-vue";
|
|
3
|
+
import c from "../../common/common-variable-bind.vue.js";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
import { getOperators as y } from "../../../../utils/data-table-util.js";
|
|
6
6
|
import { getModelOptionsByFields as V } from "../../../../utils/page-table-util.js";
|
|
@@ -38,13 +38,13 @@ const g = e({ __name: "combination", props: { list: { type: Array, default: () =
|
|
|
38
38
|
if (l4 === N.value.length - 1) return;
|
|
39
39
|
const a2 = N.value;
|
|
40
40
|
[a2[l4], a2[l4 + 1]] = [a2[l4 + 1], a2[l4]], C.value.doLayout();
|
|
41
|
-
}(e3.row, e3.$index) }, { default: u(() => [d(r(
|
|
41
|
+
}(e3.row, e3.$index) }, { default: u(() => [d(r(b))]), _: 2 }, 1032, ["onClick"])]), _: 1 }), d(j2, { prop: "date", label: "(", width: "80", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l3) => e3.row.leftBracket = l3, clearable: "", size: "default" }, { default: u(() => [d(O, { label: "", value: "" }), d(O, { label: "(", value: "(" }), d(O, { label: "((", value: "((" }), d(O, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "name", label: "字段名(*)", align: "center" }, { default: u((l3) => [d(T, { modelValue: l3.row.propDbName, "onUpdate:modelValue": (e3) => l3.row.propDbName = e3, clearable: "", filterable: "", size: "default", onChange: (e3) => function(e4, l4, a2) {
|
|
42
42
|
const t2 = w.fieldMap[a2];
|
|
43
43
|
t2 && "date" === t2.type ? N.value[e4].isDate = true : N.value[e4].isDate = false, l4.propName = t2 ? t2.name : null, l4.dataType = t2 ? t2.dataType : null, k.value[e4] = y(t2);
|
|
44
|
-
}(l3.$index, l3.row, l3.row.propDbName) }, { default: u(() => [(o(true), i(p, null, m(e2.fieldNameList, (e3, l4) => (o(), t(O, { key: l4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }), d(j2, { prop: "address", label: "操作符", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.operator, "onUpdate:modelValue": (l3) => e3.row.operator = l3, clearable: "", size: "default" }, { default: u(() => [(o(true), i(p, null, m(k.value[e3.$index], (e4) => (o(), t(O, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "值(*)", align: "center" }, { default: u((l3) => [d(
|
|
44
|
+
}(l3.$index, l3.row, l3.row.propDbName) }, { default: u(() => [(o(true), i(p, null, m(e2.fieldNameList, (e3, l4) => (o(), t(O, { key: l4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }), d(j2, { prop: "address", label: "操作符", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.operator, "onUpdate:modelValue": (l3) => e3.row.operator = l3, clearable: "", filterable: "", size: "default" }, { default: u(() => [(o(true), i(p, null, m(k.value[e3.$index], (e4) => (o(), t(O, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "值(*)", align: "center" }, { default: u((l3) => [d(c, { size: "default", modelValue: l3.row.propValue, dataModelOptions: L.value, objModelOptions: U.value, paramTypes: e2.paramTypes, "onUpdate:modelValue": (e3) => {
|
|
45
45
|
return a2 = e3, void (l3.row.propValue = a2);
|
|
46
46
|
var a2;
|
|
47
|
-
} }, null, 8, ["modelValue", "dataModelOptions", "objModelOptions", "paramTypes", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "日期格式", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.date, "onUpdate:modelValue": (l3) => e3.row.date = l3, clearable: "", disabled: !e3.row.isDate, size: "default" }, { default: u(() => [d(O, { label: "年份", value: "year" }), d(O, { label: "季度", value: "quarter" }), d(O, { label: "月份", value: "month" }), d(O, { label: "日", value: "day" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])]), _: 1 }), d(j2, { prop: "address", label: ")", width: "80", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l3) => e3.row.rightBracket = l3, clearable: "", size: "default" }, { default: u(() => [d(O, { label: "", value: "" }), d(O, { label: ")", value: ")" }), d(O, { label: "))", value: "))" }), d(O, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "并且/或者", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.joinSign, "onUpdate:modelValue": (l3) => e3.row.joinSign = l3, clearable: "", size: "default" }, { default: u(() => [d(O, { label: "或者", value: "or" }), d(O, { label: "并且", value: "and" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "变量为空时", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.variableIsNull, "onUpdate:modelValue": (l3) => e3.row.variableIsNull = l3, clearable: "", size: "default" }, { default: u(() => [d(O, { label: "Null", value: "null" }), d(O, { label: "忽略(1=1)", value: "1=1" }), d(O, { label: "不符合(1<>1)", value: "1<>1" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 });
|
|
47
|
+
} }, null, 8, ["modelValue", "dataModelOptions", "objModelOptions", "paramTypes", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "日期格式", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.date, "onUpdate:modelValue": (l3) => e3.row.date = l3, clearable: "", filterable: "", disabled: !e3.row.isDate, size: "default" }, { default: u(() => [d(O, { label: "年份", value: "year" }), d(O, { label: "季度", value: "quarter" }), d(O, { label: "月份", value: "month" }), d(O, { label: "日", value: "day" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])]), _: 1 }), d(j2, { prop: "address", label: ")", width: "80", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l3) => e3.row.rightBracket = l3, clearable: "", size: "default" }, { default: u(() => [d(O, { label: "", value: "" }), d(O, { label: ")", value: ")" }), d(O, { label: "))", value: "))" }), d(O, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "并且/或者", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.joinSign, "onUpdate:modelValue": (l3) => e3.row.joinSign = l3, clearable: "", size: "default" }, { default: u(() => [d(O, { label: "或者", value: "or" }), d(O, { label: "并且", value: "and" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "变量为空时", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.variableIsNull, "onUpdate:modelValue": (l3) => e3.row.variableIsNull = l3, clearable: "", size: "default" }, { default: u(() => [d(O, { label: "Null", value: "null" }), d(O, { label: "忽略(1=1)", value: "1=1" }), d(O, { label: "不符合(1<>1)", value: "1<>1" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 });
|
|
48
48
|
};
|
|
49
49
|
} });
|
|
50
50
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as l, watch as o, resolveComponent as a, createBlock as i, openBlock as n, withCtx as t, createVNode as s, createCommentVNode as u, createElementVNode as r, createElementBlock as c, Fragment as g, renderList as f, createTextVNode as p, withDirectives as m, vShow as d } from "vue";
|
|
2
2
|
import b from "../component/condition-dialog.vue.js";
|
|
3
3
|
import v from "../component/set-dialog.vue.js";
|
|
4
4
|
import y from "../component/combination.vue.js";
|
|
@@ -6,63 +6,57 @@ import C from "../component/journal-set-dialog.vue.js";
|
|
|
6
6
|
import _ from "../../common/common-advanced-basic-showcondition.vue.js";
|
|
7
7
|
import { isShowOpinionSetting as k } from "../../../../utils/form-design-util.js";
|
|
8
8
|
import V from "agilebuilder-ui/src/utils/request";
|
|
9
|
-
import { getTableConfigByTableUuid as
|
|
10
|
-
import "
|
|
11
|
-
|
|
12
|
-
import "../../../../../../stores/page-store.js";
|
|
13
|
-
import "../../../../../../stores/table-store.js";
|
|
14
|
-
import "../../../../../../stores/statistics-table-store.js";
|
|
15
|
-
/* empty css */
|
|
16
|
-
/* empty css */
|
|
17
|
-
const h = { style: { padding: "8px 0px 0px 0px" } }, w = e({ __name: "extract-attr-advanced", props: { configure: { type: Object, default: () => {
|
|
9
|
+
import { getTableConfigByTableUuid as D } from "../../../../utils/page-table-util.js";
|
|
10
|
+
import h from "../../common/common-task-title.vue.js";
|
|
11
|
+
const w = { style: { padding: "8px 0px 0px 0px" } }, j = e({ __name: "extract-attr-advanced", props: { configure: { type: Object, default: () => {
|
|
18
12
|
} }, pageDesign: { type: Object, default: () => {
|
|
19
13
|
} } }, setup(e2) {
|
|
20
14
|
var _a;
|
|
21
|
-
const
|
|
22
|
-
function
|
|
23
|
-
|
|
15
|
+
const j2 = e2, x = l(["base"]), O = l(false), M = l([]), L = (_a = j2.pageDesign) == null ? void 0 : _a.systemVersion, R = l(D(j2.pageDesign, j2.configure));
|
|
16
|
+
function S() {
|
|
17
|
+
O.value = false;
|
|
24
18
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
19
|
+
function U(e3) {
|
|
20
|
+
j2.configure.props.base.logSetting = e3, S();
|
|
27
21
|
}
|
|
28
|
-
V.post(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-transformations/option/${
|
|
29
|
-
|
|
22
|
+
V.post(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-transformations/option/${j2.pageDesign.systemCode}/${L}`).then((e3) => {
|
|
23
|
+
M.value = e3;
|
|
30
24
|
});
|
|
31
|
-
const
|
|
32
|
-
function
|
|
33
|
-
|
|
25
|
+
const N = l(false);
|
|
26
|
+
function z() {
|
|
27
|
+
N.value = false;
|
|
34
28
|
}
|
|
35
|
-
const
|
|
36
|
-
function
|
|
37
|
-
|
|
29
|
+
const q = l(false);
|
|
30
|
+
function A() {
|
|
31
|
+
q.value = false;
|
|
38
32
|
}
|
|
39
|
-
function
|
|
40
|
-
|
|
33
|
+
function T(e3) {
|
|
34
|
+
j2.configure.props.setValueList = e3;
|
|
41
35
|
}
|
|
42
|
-
const $ =
|
|
36
|
+
const $ = l(false);
|
|
43
37
|
function E() {
|
|
44
38
|
$.value = false;
|
|
45
39
|
}
|
|
46
40
|
function F(e3) {
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
const P =
|
|
50
|
-
function
|
|
51
|
-
let
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
54
|
-
const a2 =
|
|
55
|
-
|
|
41
|
+
j2.configure.props.base.showConditions = JSON.stringify(e3);
|
|
42
|
+
}
|
|
43
|
+
const P = l(I("opinion")), W = l(I("wfRemark"));
|
|
44
|
+
function I(e3) {
|
|
45
|
+
let l2 = false;
|
|
46
|
+
const o2 = j2.configure.events.filter((e4) => "click" === e4.name && e4.eventName);
|
|
47
|
+
if (o2 && o2.length > 0) {
|
|
48
|
+
const a2 = o2[0].eventName;
|
|
49
|
+
l2 = k(a2, e3);
|
|
56
50
|
}
|
|
57
|
-
return
|
|
51
|
+
return l2;
|
|
58
52
|
}
|
|
59
|
-
return
|
|
60
|
-
P.value =
|
|
61
|
-
}, { immediate: true }), (
|
|
62
|
-
const k2 = a("el-option"), V2 = a("el-select"),
|
|
63
|
-
return
|
|
53
|
+
return o(j2.configure.events, (e3) => {
|
|
54
|
+
P.value = I("opinion"), W.value = I("wfRemark"), P.value || (j2.configure.props.base.isMustOpinion = false);
|
|
55
|
+
}, { immediate: true }), (l2, o2) => {
|
|
56
|
+
const k2 = a("el-option"), V2 = a("el-select"), D2 = a("el-form-item"), j3 = a("el-button"), L2 = a("el-text"), I2 = a("el-switch"), J = a("el-collapse-item"), B = a("el-collapse"), G = a("el-form");
|
|
57
|
+
return n(), i(G, { "label-width": "80px", size: "small" }, { default: t(() => [s(B, { modelValue: x.value, "onUpdate:modelValue": o2[8] || (o2[8] = (e3) => x.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [s(J, { title: "高级设置", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [r("div", w, [s(D2, { label: "成功后", class: "amb-design-attr-item" }, { default: t(() => [s(V2, { modelValue: e2.configure.props.base.successOperation, "onUpdate:modelValue": o2[0] || (o2[0] = (l3) => e2.configure.props.base.successOperation = l3), class: "ml-4" }, { default: t(() => [s(k2, { label: "无操作", value: "noOperation" }), s(k2, { label: "刷新", value: "refresh" }), s(k2, { label: "关闭窗口", value: "closeWindow" }), s(k2, { label: "关闭窗口并刷新列表", value: "closeWindowAndRefresh" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(D2, { label: "转换规则", class: "amb-design-attr-item" }, { default: t(() => [s(V2, { modelValue: e2.configure.props.base.conversionCodes, "onUpdate:modelValue": o2[1] || (o2[1] = (l3) => e2.configure.props.base.conversionCodes = l3), multiple: "", class: "ml-4" }, { default: t(() => [(n(true), c(g, null, f(M.value, (e3) => (n(), i(k2, { key: e3.code, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(D2, { label: "执行条件", class: "amb-design-attr-item" }, { default: t(() => [s(j3, { type: "primary", onClick: o2[2] || (o2[2] = (e3) => N.value = true) }, { default: t(() => o2[9] || (o2[9] = [p("编辑")])), _: 1 })]), _: 1 }), s(D2, { label: "启用条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_edit", configure: e2.configure, title: "启用条件", tableConfigure: R.value, type: "editConditions" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(D2, { label: "自动设值", class: "amb-design-attr-item" }, { default: t(() => [s(j3, { type: "primary", onClick: o2[3] || (o2[3] = (e3) => q.value = true) }, { default: t(() => o2[10] || (o2[10] = [p("编辑")])), _: 1 }), m(s(L2, { type: "success" }, { default: t(() => o2[11] || (o2[11] = [p(" 已设置条件. ")])), _: 1 }, 512), [[d, e2.configure.props && e2.configure.props.setValueList && e2.configure.props.setValueList.length > 0]])]), _: 1 }), s(D2, { label: "显示条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_show", configure: e2.configure, type: "showConditions", tableConfigure: R.value }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(D2, { label: "日志设置", class: "amb-design-attr-item" }, { default: t(() => [s(j3, { type: "primary", onClick: o2[4] || (o2[4] = (e3) => O.value = true) }, { default: t(() => o2[12] || (o2[12] = [p("编辑")])), _: 1 })]), _: 1 }), s(D2, { label: "主管必填", class: "amb-design-attr-item" }, { default: t(() => [s(I2, { modelValue: e2.configure.props.base.requireExtractTransactor, "onUpdate:modelValue": o2[5] || (o2[5] = (l3) => e2.configure.props.base.requireExtractTransactor = l3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), P.value ? (n(), i(D2, { key: 0, label: "意见必填", class: "amb-design-attr-item" }, { default: t(() => [s(I2, { modelValue: e2.configure.props.base.isMustOpinion, "onUpdate:modelValue": o2[6] || (o2[6] = (l3) => e2.configure.props.base.isMustOpinion = l3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : u("", true), e2.configure.props.base.isMustOpinion ? (n(), i(D2, { key: 1, label: "意见必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_opinion", configure: e2.configure, type: "mustOpinionConditions", tableConfigure: R.value, title: "意见必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : u("", true), W.value ? (n(), i(D2, { key: 2, label: "备注必填", class: "amb-design-attr-item" }, { default: t(() => [s(I2, { modelValue: e2.configure.props.base.isMustRemark, "onUpdate:modelValue": o2[7] || (o2[7] = (l3) => e2.configure.props.base.isMustRemark = l3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : u("", true), e2.configure.props.base.isMustRemark ? (n(), i(D2, { key: 3, label: "备注必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(_, { key: e2.configure.uuid + "_remark", configure: e2.configure, type: "mustRemarkConditions", tableConfigure: R.value, title: "办理备注必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : u("", true), s(D2, { label: "任务标题", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(h, { key: e2.configure.uuid + "_taskTitle", configure: e2.configure, pageDesign: e2.pageDesign, title: "任务标题生效条件" }, null, 8, ["configure", "pageDesign"]))]), _: 1 })])]), _: 1 }), N.value ? (n(), i(b, { key: 0, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: R.value, onClose: z }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), q.value ? (n(), i(v, { key: 1, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: R.value, onSave: T, onClose: A }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), $.value ? (n(), i(y, { key: 2, conditionList: e2.configure.props.base.showConditions, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, tableConfigure: R.value, onSave: F, onClose: E }, null, 8, ["conditionList", "fieldNameList", "fieldMap", "tableConfigure"])) : u("", true), O.value ? (n(), i(C, { key: 3, modelValue: e2.configure.props.base.logSetting, onClose: S, onSave: U }, null, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
64
58
|
};
|
|
65
59
|
} });
|
|
66
60
|
export {
|
|
67
|
-
|
|
61
|
+
j as default
|
|
68
62
|
};
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as
|
|
2
|
-
import { workflowStartBtn as m, workflowExtractBtn as f,
|
|
3
|
-
import
|
|
4
|
-
import { Close as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as i, openBlock as o, withCtx as t, createVNode as n, createElementVNode as u, createElementBlock as s, Fragment as d, renderList as r, unref as c, createTextVNode as p } from "vue";
|
|
2
|
+
import { workflowStartBtn as m, workflowExtractBtn as f, addTransactorBtn as b, getFormComponentOptions as g } from "../../../../utils/assemblys-config.js";
|
|
3
|
+
import v from "../../common/common-function-code.vue.js";
|
|
4
|
+
import { Close as V, Check as _ } from "@element-plus/icons-vue";
|
|
5
|
+
const x = { style: { padding: "8px 0px 0px 0px" } }, h = { style: { padding: "8px 0px 0px 0px" } }, y = e({ __name: "workflowbutton-attr-base", props: { configure: Object, default: () => ({ props: {} }) }, setup(e2) {
|
|
6
|
+
const y2 = e2, U = l(["base", "appearance"]);
|
|
7
|
+
y2.configure.props.base.showActivityName || false === y2.configure.props.base.showActivityName || (y2.configure.props.base.showActivityName = true), y2.configure.items[0].disabled && (y2.configure.items[0].disabled = false);
|
|
8
|
+
const w = y2.configure.items.filter((e3) => "起草" === e3.label);
|
|
9
|
+
w && 0 !== w.length || y2.configure.items.splice(1, 0, m);
|
|
10
|
+
const k = y2.configure.items.filter((e3) => "抽单" === e3.label);
|
|
11
|
+
k && 0 !== k.length || y2.configure.items.push(...f);
|
|
12
|
+
const j = y2.configure.items.filter((e3) => "增加办理人" === e3.label);
|
|
13
|
+
return j && 0 !== j.length || y2.configure.items.push(...b), (l2, m2) => {
|
|
14
|
+
const f2 = a("el-option"), b2 = a("el-select"), y3 = a("el-form-item"), w2 = a("el-input"), k2 = a("el-checkbox"), j2 = a("el-col"), z = a("el-row"), A = a("el-collapse-item"), N = a("el-switch"), O = a("el-radio"), q = a("el-radio-group"), B = a("el-input-number"), C = a("el-collapse"), D = a("el-form");
|
|
15
|
+
return o(), i(D, { "label-width": "80px", size: "small" }, { default: t(() => [n(C, { modelValue: U.value, "onUpdate:modelValue": m2[7] || (m2[7] = (e3) => U.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [n(A, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [u("div", x, [n(y3, { label: "组件类型", class: "amb-design-attr-item" }, { default: t(() => [n(b2, { modelValue: e2.configure.name, "onUpdate:modelValue": m2[0] || (m2[0] = (l3) => e2.configure.name = l3), placeholder: "请选择" }, { default: t(() => [(o(true), s(d, null, r(c(g)(), (e3) => (o(), i(f2, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), n(y3, { label: "唯一编码", class: "amb-design-attr-item" }, { default: t(() => [n(w2, { modelValue: e2.configure.uuid, "onUpdate:modelValue": m2[1] || (m2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), n(y3, { label: "绑定权限", class: "amb-design-attr-item" }, { default: t(() => [n(v, { configure: e2.configure }, null, 8, ["configure"])]), _: 1 }), n(y3, { label: "按钮", class: "amb-design-attr-item" }, { default: t(() => [n(z, null, { default: t(() => [(o(true), s(d, null, r(e2.configure.items, (e3, l3) => (o(), i(j2, { key: e3, span: 12 }, { default: t(() => [n(k2, { modelValue: e3.check, "onUpdate:modelValue": (l4) => e3.check = l4, label: e3.label, value: true, disabled: e3.disabled }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled"])]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })])]), _: 1 }), n(A, { title: "外观", name: "appearance", class: "amb-design-attr-group-header" }, { default: t(() => [u("div", h, [n(y3, { label: "文字按钮", class: "amb-design-attr-item" }, { default: t(() => [n(N, { modelValue: e2.configure.props.base.text, "onUpdate:modelValue": m2[2] || (m2[2] = (l3) => e2.configure.props.base.text = l3), disabled: !!e2.configure.props.base.plain || !!e2.configure.props.base.plain, "inline-prompt": "", "active-icon": c(_), "inactive-icon": c(V) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), n(y3, { label: "朴素按钮", class: "amb-design-attr-item" }, { default: t(() => [n(N, { modelValue: e2.configure.props.base.plain, "onUpdate:modelValue": m2[3] || (m2[3] = (l3) => e2.configure.props.base.plain = l3), disabled: !!e2.configure.props.base.text, "inline-prompt": "", "active-icon": c(_), "inactive-icon": c(V) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), n(y3, { label: "圆角按钮", class: "amb-design-attr-item" }, { default: t(() => [n(N, { modelValue: e2.configure.props.base.round, "onUpdate:modelValue": m2[4] || (m2[4] = (l3) => e2.configure.props.base.round = l3), disabled: !!e2.configure.props.base.text, "inline-prompt": "", "active-icon": c(_), "inactive-icon": c(V) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), n(y3, { label: "尺寸", class: "amb-design-attr-item" }, { default: t(() => [n(q, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": m2[5] || (m2[5] = (l3) => e2.configure.props.base.size = l3), class: "ml-4" }, { default: t(() => [n(O, { value: "large" }, { default: t(() => m2[8] || (m2[8] = [p("大")])), _: 1 }), n(O, { value: "default" }, { default: t(() => m2[9] || (m2[9] = [p("中")])), _: 1 }), n(O, { value: "small" }, { default: t(() => m2[10] || (m2[10] = [p("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), n(y3, { label: "内容间距" }, { default: t(() => [n(B, { modelValue: e2.configure.props.gap, "onUpdate:modelValue": m2[6] || (m2[6] = (l3) => e2.configure.props.gap = l3), min: 0, max: 100 }, null, 8, ["modelValue"])]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
14
16
|
};
|
|
15
17
|
} });
|
|
16
18
|
export {
|
|
17
|
-
|
|
19
|
+
y as default
|
|
18
20
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as a, watch as l, resolveComponent as u, createElementBlock as o, openBlock as s, createElementVNode as i, createVNode as r, withDirectives as m, withCtx as c, vShow as d, unref as v, createTextVNode as p, toDisplayString as f, Fragment as g, renderList as b, createBlock as y } from "vue";
|
|
2
2
|
import { ElMessageBox as x, ElMessage as h } from "element-plus";
|
|
3
|
-
import C from "./config.
|
|
3
|
+
import C from "./config.vue.js";
|
|
4
4
|
import { standardButtonOperations as E } from "../../../utils/assemblys-config.js";
|
|
5
5
|
import { findDesignItemByUuid as S, getUuidv4 as V, deepCopy as k } from "../../../utils/common-util.js";
|
|
6
6
|
import { usePageContextStore as _ } from "../../../../../stores/page-store.js";
|
|
@@ -16,7 +16,7 @@ import "@codemirror/autocomplete";
|
|
|
16
16
|
import "@codemirror/language";
|
|
17
17
|
import "@codemirror/search";
|
|
18
18
|
import "js-beautify";
|
|
19
|
-
/* empty css
|
|
19
|
+
/* empty css */
|
|
20
20
|
import "../../../utils/assemblys-config.js";
|
|
21
21
|
import "../../../../../stores/page-store.js";
|
|
22
22
|
import "../../../../../stores/event-undo-redo-store.js";
|
package/dist/es/style.css
CHANGED
|
@@ -13105,7 +13105,42 @@ fieldset.amb-design-item-selected {
|
|
|
13105
13105
|
.collapse-item-content[data-v-4cfd68dd] {
|
|
13106
13106
|
padding: 8px 0px 0px 0px;
|
|
13107
13107
|
}
|
|
13108
|
-
|
|
13108
|
+
|
|
13109
|
+
[data-v-6043ad3d] .el-card__body {
|
|
13110
|
+
padding: 10px 0px;
|
|
13111
|
+
}
|
|
13112
|
+
.group[data-v-6043ad3d] {
|
|
13113
|
+
font-size: 14px;
|
|
13114
|
+
width: 100%;
|
|
13115
|
+
}
|
|
13116
|
+
.item[data-v-6043ad3d] {
|
|
13117
|
+
float: left;
|
|
13118
|
+
list-style-type: none;
|
|
13119
|
+
width: 33.33%;
|
|
13120
|
+
margin-bottom: 18px;
|
|
13121
|
+
}
|
|
13122
|
+
.item-content[data-v-6043ad3d] {
|
|
13123
|
+
height: calc(100vh - 400px);
|
|
13124
|
+
margin-top: 10px;
|
|
13125
|
+
overflow: auto;
|
|
13126
|
+
}
|
|
13127
|
+
.card-header[data-v-6043ad3d] {
|
|
13128
|
+
width: 100%;
|
|
13129
|
+
display: flex;
|
|
13130
|
+
justify-content: space-between;
|
|
13131
|
+
align-items: center;
|
|
13132
|
+
}
|
|
13133
|
+
|
|
13134
|
+
/* 保证左侧内容在一行内靠左,右侧按钮靠右 */
|
|
13135
|
+
.title-config[data-v-6043ad3d] {
|
|
13136
|
+
display: flex;
|
|
13137
|
+
align-items: center;
|
|
13138
|
+
gap: 8px;
|
|
13139
|
+
flex: 1;
|
|
13140
|
+
}
|
|
13141
|
+
.card-remove[data-v-6043ad3d] {
|
|
13142
|
+
/* 如需微调右侧位置可加 padding/margin */
|
|
13143
|
+
}.amb-button-group-main[data-v-1320eaf4] {
|
|
13109
13144
|
min-height: 32px;
|
|
13110
13145
|
display: flex;
|
|
13111
13146
|
min-width: 100px;
|
|
@@ -18692,6 +18727,16 @@ fieldset.amb-design-item-selected {
|
|
|
18692
18727
|
.amb-design-board-main .el-tabs .amb-design-item-default.el-tabs--top {
|
|
18693
18728
|
flex-direction: column-reverse;
|
|
18694
18729
|
}
|
|
18730
|
+
.el-icon[data-v-03542500] {
|
|
18731
|
+
cursor: pointer;
|
|
18732
|
+
}
|
|
18733
|
+
.bind-variable-item[data-v-03542500] {
|
|
18734
|
+
display: flex;
|
|
18735
|
+
align-items: center;
|
|
18736
|
+
gap: 5px;
|
|
18737
|
+
margin-top: 6px;
|
|
18738
|
+
}
|
|
18739
|
+
|
|
18695
18740
|
.el-switch + .el-button[data-v-513f0eca] {
|
|
18696
18741
|
margin-left: 20px;
|
|
18697
18742
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-designer",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.15-sit1-design1",
|
|
4
4
|
"description": "AgileBuilder super page designer",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
30
30
|
"@vueuse/core": "^10.9.0",
|
|
31
31
|
"agilebuilder-private-libs": "1.0.26",
|
|
32
|
-
"agilebuilder-ui": "1.1.
|
|
32
|
+
"agilebuilder-ui": "1.1.57-sit1",
|
|
33
33
|
"echarts": "^5.5.0",
|
|
34
34
|
"element-plus": "^2.6.1",
|
|
35
35
|
"font-awesome": "^4.7.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"qrcode": "^1.5.3",
|
|
42
42
|
"quill": "^2.0.1",
|
|
43
43
|
"service-flow-designer": "2.3.12-flow1",
|
|
44
|
-
"super-page-runtime": "2.3.
|
|
44
|
+
"super-page-runtime": "2.3.15-sit1",
|
|
45
45
|
"uuid": "^9.0.1",
|
|
46
46
|
"vite": "^5.1.6",
|
|
47
47
|
"vite-plugin-node-stdlib-browser": "^0.2.1",
|