super-page-designer 2.2.58 → 2.2.61
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 +2 -2
- package/dist/es/components/design/utils/common-util.js +0 -3
- package/dist/es/components/design/utils/form-design-util.js +5 -5
- package/dist/es/components/design/utils/page-table-util.d.ts +1 -1
- package/dist/es/components/design/utils/page-table-util.js +4 -4
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +37 -37
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +22 -22
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-clickset.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-sortby.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-pageination.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +10 -10
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +5 -137
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +139 -0
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue.js +1 -4
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +6 -6
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue2.js +55 -55
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +16 -32
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/bar-code-rule.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/condition.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/data-linkage.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin-autoset.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin-service-in.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/title-suffix.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +1 -1
- package/dist/es/components/design/views/design/page-design.vue2.js +1 -1
- package/dist/es/components/design/views/design/page-design.vue3.js +1 -1
- package/dist/es/components/design/views/design/page-event/{config.vue.js → config.vue2.js} +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +2 -2
- package/dist/es/components/design/views/design/view/assemblys-container.vue.js +20 -13
- package/dist/es/components/design/views/design/view/attr-container.vue.js +29 -22
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +1 -1
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +8 -8
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +154 -5
- package/dist/es/components/design/views/design/view/view-design-display.vue2.js +2 -148
- package/dist/es/components/design/views/design/view/view-design-preview.vue.js +20 -5
- package/dist/es/components/design/views/design/view/view-design-preview.vue2.js +2 -20
- package/dist/es/style.css +822 -1052
- package/package.json +4 -4
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +0 -7
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-context-menu.vue.js +0 -37
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-context-menu.vue2.js +0 -4
package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, onMounted as a, resolveComponent as u, createBlock as t, openBlock as o, withCtx as n, createElementBlock as i, Fragment as r, renderList as d, createTextVNode as m, toDisplayString as s, withKeys as p, createVNode as v, unref as f, createElementVNode as c } from "vue";
|
|
2
2
|
import { EditPen as y, Search as g } from "@element-plus/icons-vue";
|
|
3
|
-
import _ from "../../common/common-variable-bind.
|
|
3
|
+
import _ from "../../common/common-variable-bind.vue2.js";
|
|
4
4
|
const V = { class: "dialog-footer" }, k = e({ __name: "journal-set-dialog", props: { modelValue: { type: Array, default: () => [] } }, emits: ["save"], setup(e2, { emit: k2 }) {
|
|
5
5
|
const C = e2, b = k2, h = l([]), x = l(false), z = l(""), w = l(false), j = l("");
|
|
6
6
|
function B() {
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, resolveComponent as o, createBlock as a, openBlock as t, withCtx as n, createVNode as u, createCommentVNode as i, unref as d, createTextVNode as r, createElementBlock as p, Fragment as s, renderList as
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as o, createBlock as a, openBlock as t, withCtx as n, createVNode as u, createCommentVNode as i, unref as d, createTextVNode as r, createElementBlock as p, Fragment as s, renderList as c, createElementVNode as m } from "vue";
|
|
2
2
|
import { formatConditionList as f } from "../../../../utils/data-table-util.js";
|
|
3
|
-
import { CirclePlus as v, Delete as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { getModelOptionsByFields as
|
|
7
|
-
const w = { class: "dialog-footer" },
|
|
3
|
+
import { CirclePlus as v, Delete as b } from "@element-plus/icons-vue";
|
|
4
|
+
import g from "./combination.vue.js";
|
|
5
|
+
import y from "../../common/common-variable-bind.vue2.js";
|
|
6
|
+
import { getModelOptionsByFields as C } from "../../../../utils/page-table-util.js";
|
|
7
|
+
const w = { class: "dialog-footer" }, _ = e({ __name: "set-dialog", props: { configure: { type: Object, default: () => {
|
|
8
8
|
} }, pageDesign: { type: Object, default: () => {
|
|
9
9
|
} }, tableConfigure: { type: Object, default: () => {
|
|
10
|
-
} } }, emits: ["close", "save"], setup(e2, { emit:
|
|
11
|
-
const
|
|
10
|
+
} } }, emits: ["close", "save"], setup(e2, { emit: _2 }) {
|
|
11
|
+
const V = e2, F = _2, D = l({}), j = l(false), k = l(""), h = l(null), L = l(null), M = l(null);
|
|
12
12
|
var N;
|
|
13
|
-
(N =
|
|
13
|
+
(N = V.tableConfigure) && (M.value = C(N.modelFields));
|
|
14
14
|
const U = l([]);
|
|
15
15
|
function O() {
|
|
16
|
-
|
|
16
|
+
j.value = false;
|
|
17
17
|
}
|
|
18
18
|
function T(e3) {
|
|
19
|
-
U.value[
|
|
19
|
+
U.value[k.value].conditionList = e3;
|
|
20
20
|
}
|
|
21
21
|
function x() {
|
|
22
|
-
|
|
22
|
+
F("save", U.value), F("close");
|
|
23
23
|
}
|
|
24
24
|
function z(e3) {
|
|
25
|
-
|
|
25
|
+
L.value.setCurrentRow(e3);
|
|
26
26
|
}
|
|
27
27
|
function R() {
|
|
28
28
|
U.value = U.value.filter((e3) => e3 !== D.value);
|
|
@@ -33,20 +33,20 @@ const w = { class: "dialog-footer" }, F = e({ __name: "set-dialog", props: { con
|
|
|
33
33
|
function $() {
|
|
34
34
|
U.value.push({});
|
|
35
35
|
}
|
|
36
|
-
return
|
|
37
|
-
const
|
|
38
|
-
return t(), a(G, { "model-value": "", title: "自动设值", "append-to-body": "", onClose:
|
|
39
|
-
return o2 = l3.row, a2 = l3.$index,
|
|
36
|
+
return V.configure.props.setValueList && (U.value = V.configure.props.setValueList), (l2, C2) => {
|
|
37
|
+
const _3 = o("el-button"), D2 = o("el-row"), N2 = o("el-option"), q = o("el-select"), A = o("el-table-column"), B = o("el-input"), E = o("el-table"), G = o("el-dialog");
|
|
38
|
+
return t(), a(G, { "model-value": "", title: "自动设值", "append-to-body": "", onClose: C2[1] || (C2[1] = (e3) => F("close")) }, { footer: n(() => [m("div", w, [u(_3, { onClick: C2[0] || (C2[0] = (e3) => F("close")) }, { default: n(() => C2[4] || (C2[4] = [r("取消")])), _: 1 }), u(_3, { type: "primary", onClick: x }, { default: n(() => C2[5] || (C2[5] = [r(" 确定 ")])), _: 1 })])]), default: n(() => [u(D2, { style: { "padding-bottom": "8px" } }, { default: n(() => [u(_3, { icon: d(v), plain: "", type: "primary", onClick: $ }, { default: n(() => C2[2] || (C2[2] = [r(" 添加 ")])), _: 1 }, 8, ["icon"]), u(_3, { icon: d(b), plain: "", type: "primary", onClick: R }, { default: n(() => C2[3] || (C2[3] = [r(" 删除 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), u(E, { ref_key: "tableRef", ref: L, "highlight-current-row": "", data: U.value, style: { width: "100%" }, onCurrentChange: S }, { default: n(() => [u(A, { prop: "date", label: "填写方式", align: "center" }, { default: n((e3) => [u(q, { modelValue: e3.row.fillType, "onUpdate:modelValue": (l3) => e3.row.fillType = l3, clearable: "", size: "default", onFocus: (l3) => z(e3.row) }, { default: n(() => [u(N2, { label: "覆盖", value: "cover" }), u(N2, { label: "追加", value: "append" }), u(N2, { label: "插入最前面", value: "prepend" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), u(A, { prop: "date", label: "前置条件", align: "center" }, { default: n((l3) => [u(B, { "model-value": d(f)(l3.row.conditionList, e2.pageDesign.modelFields, e2.pageDesign.modelFieldsMap), size: "default", onFocus: (e3) => z(l3.row), onClick: (e3) => {
|
|
39
|
+
return o2 = l3.row, a2 = l3.$index, h.value = o2.conditionList, k.value = a2, void (j.value = true);
|
|
40
40
|
var o2, a2;
|
|
41
41
|
} }, null, 8, ["model-value", "onFocus", "onClick"])]), _: 1 }), u(A, { label: "执行方法时设置", align: "center" }, { default: n(() => [u(A, { prop: "name", label: "字段", align: "center" }, { default: n((l3) => [u(q, { modelValue: l3.row.propDbName, "onUpdate:modelValue": (e3) => l3.row.propDbName = e3, clearable: "", size: "default", onFocus: (e3) => z(l3.row), onChange: (e3) => function(e4, l4) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}(l3.row, l3.row.propDbName) }, { default: n(() => [(t(true), p(s, null,
|
|
42
|
+
const o2 = V.pageDesign.modelFieldsMap[l4];
|
|
43
|
+
e4.field = o2.name, e4.dataType = o2.dataType;
|
|
44
|
+
}(l3.row, l3.row.propDbName) }, { default: n(() => [(t(true), p(s, null, c(e2.pageDesign.modelFields, (e3) => (t(), a(N2, { key: e3.id, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus", "onChange"])]), _: 1 }), u(A, { prop: "address", label: "值", align: "center" }, { default: n((e3) => [u(y, { onFocus: (l3) => z(e3.row), modelValue: e3.row.autoValue, objModelOptions: M.value, "onUpdate:modelValue": (l3) => {
|
|
45
45
|
return o2 = l3, void (e3.row.autoValue = o2);
|
|
46
46
|
var o2;
|
|
47
|
-
} }, null, 8, ["onFocus", "modelValue", "objModelOptions", "onUpdate:modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["data"]),
|
|
47
|
+
} }, null, 8, ["onFocus", "modelValue", "objModelOptions", "onUpdate:modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["data"]), j.value ? (t(), a(g, { key: 0, list: h.value, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, tableConfigure: e2.tableConfigure, onSave: T, onClose: O }, null, 8, ["list", "fieldNameList", "fieldMap", "tableConfigure"])) : i("", true)]), _: 1 });
|
|
48
48
|
};
|
|
49
49
|
} });
|
|
50
50
|
export {
|
|
51
|
-
|
|
51
|
+
_ as default
|
|
52
52
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, resolveComponent as l, createBlock as t, openBlock as o, withCtx as u, createVNode as r, createElementVNode as d, withDirectives as i, createTextVNode as s, toDisplayString as n, vShow as p, createCommentVNode as m } from "vue";
|
|
2
2
|
import f from "../../form/common/row-ul-li.vue.js";
|
|
3
|
-
import g from "../../common/common-variable-bind.
|
|
3
|
+
import g from "../../common/common-variable-bind.vue2.js";
|
|
4
4
|
import c from "../../common/common-function-code.vue.js";
|
|
5
5
|
import b from "../../common/common-i18n-key-input.vue.js";
|
|
6
6
|
const _ = { style: { padding: "8px 0px 0px 0px" } }, V = { style: { padding: "8px 0px 0px 0px" } }, v = e({ __name: "dropdown-attr-base", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, onUnmounted as a, watch as t, resolveComponent as o, createBlock as i, openBlock as u, withCtx as r, createElementVNode as n, createVNode as c, createElementBlock as s, Fragment as d, renderList as f, toDisplayString as m, unref as p } from "vue";
|
|
2
2
|
import { Plus as v, Delete as b } from "@element-plus/icons-vue";
|
|
3
3
|
import { getUuidv4 as g } from "../../../../utils/common-util.js";
|
|
4
|
-
import _ from "../../common/common-variable-bind.
|
|
4
|
+
import _ from "../../common/common-variable-bind.vue2.js";
|
|
5
5
|
const V = { style: { padding: "8px 0px 0px 0px" } }, h = { style: { float: "left" } }, w = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, k = e({ __name: "common-attr-clickset", props: { configure: {} }, setup(e2) {
|
|
6
6
|
const k2 = e2;
|
|
7
7
|
k2.configure.clickSet || (k2.configure.clickSet = {});
|
|
@@ -3,7 +3,7 @@ import x from "../../common/page-permission-select.vue.js";
|
|
|
3
3
|
import V from "../../form/common/data-origin-service-in.vue.js";
|
|
4
4
|
import { usePageContextStore as h } from "../../../../../../stores/page-store.js";
|
|
5
5
|
import { queryServiceReturnFields as _, queryServiceInfo as $ } from "../../../../utils/page-service-util.js";
|
|
6
|
-
import F from "../../common/common-variable-bind.
|
|
6
|
+
import F from "../../common/common-variable-bind.vue2.js";
|
|
7
7
|
import { getUuidv4 as O } from "../../../../utils/common-util.js";
|
|
8
8
|
import { ElMessageBox as S, ElMessage as j } from "element-plus";
|
|
9
9
|
const D = { style: { padding: "8px 0px 0px 0px" } }, T = { style: { float: "left" } }, w = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, U = { style: { float: "left" } }, k = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, z = { style: { width: "100%", "padding-left": "20px", "margin-bottom": "-15px" } }, C = e({ __name: "common-attr-data", props: { configure: { type: Object, required: true }, defaultType: { type: String, default: "" }, chartType: { type: String, default: "" } }, setup(e2) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, onUnmounted as l, ref as o, watch as r, resolveComponent as a, createBlock as u, openBlock as t, withCtx as p, createElementVNode as i, createVNode as n, withDirectives as s, unref as c, createElementBlock as g, Fragment as d, renderList as f, toDisplayString as m, vShow as b, createTextVNode as v } from "vue";
|
|
2
2
|
import { Top as x, Bottom as V, Plus as _, Delete as h } from "@element-plus/icons-vue";
|
|
3
|
-
import y from "../../common/common-variable-bind.
|
|
3
|
+
import y from "../../common/common-variable-bind.vue2.js";
|
|
4
4
|
import { getUuidv4 as w } from "../../../../utils/common-util.js";
|
|
5
5
|
const k = { style: { padding: "8px 0px 0px 0px" } }, C = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, D = { style: { float: "left" } }, U = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, S = e({ __name: "common-attr-groupby", props: { configure: { type: Object, required: true } }, setup(e2) {
|
|
6
6
|
const S2 = e2;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, watch as o, resolveComponent as a, createBlock as r, openBlock as u, withCtx as i, createElementVNode as t, createVNode as p, withDirectives as m, createElementBlock as d, Fragment as s, renderList as n, createTextVNode as c, vShow as f } from "vue";
|
|
2
|
-
import g from "../../common/common-variable-bind.
|
|
2
|
+
import g from "../../common/common-variable-bind.vue2.js";
|
|
3
3
|
const b = { style: { padding: "8px 0px 0px 0px" } }, V = e({ __name: "common-attr-sortby", props: { configure: { type: Object, required: true } }, setup(e2) {
|
|
4
4
|
const V2 = e2, x = l([]);
|
|
5
5
|
function v(e3, l2) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, reactive as o, resolveComponent as l, createBlock as i, openBlock as n, withCtx as u, createElementVNode as p, createCommentVNode as t, createVNode as r, createTextVNode as s, unref as d, createElementBlock as g, Fragment as m, renderList as c, resolveDynamicComponent as f } from "vue";
|
|
2
2
|
import { Top as h, Bottom as v } from "@element-plus/icons-vue";
|
|
3
|
-
import y from "../../common/common-variable-bind.
|
|
3
|
+
import y from "../../common/common-variable-bind.vue2.js";
|
|
4
4
|
import { getAttrComponentByName as b } from "../../../../utils/assemblys-config.js";
|
|
5
5
|
import { getDefaultComponent as C, updateConfEvents as x } from "../../../../utils/home-chart-util.js";
|
|
6
6
|
import H from "../../object-design.vue.js";
|
|
@@ -7,7 +7,7 @@ import T from "./row-colmun.vue.js";
|
|
|
7
7
|
import { queryServiceReturnFields as k } from "../../../../../utils/page-service-util.js";
|
|
8
8
|
import "uuid";
|
|
9
9
|
import { tableField as h } from "../../../../../../../stores/table-store.js";
|
|
10
|
-
import R from "../../../common/common-variable-bind.
|
|
10
|
+
import R from "../../../common/common-variable-bind.vue2.js";
|
|
11
11
|
import { getCustomFuncs as F } from "../../../../../utils/page-event-util.js";
|
|
12
12
|
const U = { style: { padding: "8px 0px 0px 0px" } }, S = { style: { float: "left" } }, x = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, j = e({ __name: "data-origin", props: { configure: { type: Object, default: () => {
|
|
13
13
|
} }, remote: { type: Boolean, default: true }, pageDesign: { type: Object, default: () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, resolveComponent as a, createBlock as l, openBlock as t, withCtx as o, createElementVNode as n, createVNode as i, createElementBlock as u, createCommentVNode as d, Fragment as r, createTextVNode as p, renderList as g, toDisplayString as m } from "vue";
|
|
2
|
-
import s from "../../../common/common-variable-bind.
|
|
2
|
+
import s from "../../../common/common-variable-bind.vue2.js";
|
|
3
3
|
const c = { style: { padding: "8px 0px 0px 0px" } }, f = { style: { float: "left" } }, b = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, V = e({ __name: "table-pageination", props: { pageDesign: { type: Object, default: () => ({ props: {} }) }, configure: { type: Object, default: () => ({ props: {} }) }, serviceFields: { type: Array, default: () => [] } }, setup(e2) {
|
|
4
4
|
const V2 = e2;
|
|
5
5
|
return V2.configure.pageination || (V2.configure.pageination = { enable: false, type: "frontend", pageSize: 10, pageSizes: "20,30,50,100", total: true, prev: true, next: true, pager: true, jumper: true }), (V3, _) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as u, Fragment as r, createElementVNode as d, createVNode as p, withCtx as i, createTextVNode as n, unref as s, createBlock as m, createCommentVNode as c } from "vue";
|
|
2
2
|
import { Plus as b, Delete as f } from "@element-plus/icons";
|
|
3
|
-
import v from "../../../common/common-variable-bind.
|
|
3
|
+
import v from "../../../common/common-variable-bind.vue2.js";
|
|
4
4
|
import { isNumberType as g, getUuidv4 as w } from "../../../../../utils/common-util.js";
|
|
5
5
|
import { usePageContextStore as y } from "../../../../../../../stores/page-store.js";
|
|
6
6
|
import { statisticsTable as h } from "../../../../../../../stores/statistics-table-store.js";
|
|
@@ -10,12 +10,12 @@ const _ = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
|
|
|
10
10
|
} }, pageDesign: { type: Object, default: () => {
|
|
11
11
|
} }, row: { type: Object, default: () => {
|
|
12
12
|
} } }, emits: ["update:data"], setup(e2, { emit: k2 }) {
|
|
13
|
-
const N = y(),
|
|
14
|
-
|
|
13
|
+
const N = y(), O = h(), j = e2, C = k2, U = l(300), x = l([]);
|
|
14
|
+
j.data && (x.value = j.data);
|
|
15
15
|
const B = l(false);
|
|
16
16
|
let L;
|
|
17
|
-
const M =
|
|
18
|
-
!M || "form" !== M && "list" !== M || (L =
|
|
17
|
+
const M = j.pageDesign ? j.pageDesign.pageType : null;
|
|
18
|
+
!M || "form" !== M && "list" !== M || (L = j.pageDesign.modelFields);
|
|
19
19
|
const I = l(null);
|
|
20
20
|
L && L.length > 0 && (I.value = V(L));
|
|
21
21
|
const S = l(null);
|
|
@@ -23,7 +23,7 @@ const _ = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
|
|
|
23
23
|
e3 && (S.value = V(e3.modelFields));
|
|
24
24
|
}
|
|
25
25
|
function D() {
|
|
26
|
-
E(T(
|
|
26
|
+
E(T(j.pageDesign, j.configure));
|
|
27
27
|
let e3 = window.innerHeight - 140 - 176;
|
|
28
28
|
e3 > 500 ? e3 = 500 : e3 < 100 && (e3 = 100), U.value = e3, B.value = true;
|
|
29
29
|
}
|
|
@@ -42,8 +42,8 @@ const _ = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
|
|
|
42
42
|
const a2 = { uuid: w(), leftBracket: "", propName: "", operator: "", propValueType: "", rightBracket: "", joinSign: "", dataType: "" };
|
|
43
43
|
x.value.splice(l2 + 1, 0, a2);
|
|
44
44
|
}
|
|
45
|
-
E(
|
|
46
|
-
|
|
45
|
+
E(j.tableConfigure), a(() => x.value, (e3) => {
|
|
46
|
+
C("update:data", { row: j.row, data: x.value });
|
|
47
47
|
}, { deep: true });
|
|
48
48
|
const G = l({});
|
|
49
49
|
function W(e3) {
|
|
@@ -55,7 +55,7 @@ const _ = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
|
|
|
55
55
|
let a3, t2 = [];
|
|
56
56
|
l2.propName = e3;
|
|
57
57
|
let o2 = "";
|
|
58
|
-
if (e3 && e3.startsWith("${") && (a3 = e3.substring(2, e3.length - 1), a3.startsWith("page.") || (a3.startsWith("data.") ? (a3 = a3.substring(5), t2 = I.value, t2 && 0 !== t2.length || (t2 = N.pageContextVarOptions.dataOptions)) : a3.startsWith("row.") && (a3 = a3.substring(4), t2 = S.value, t2 && 0 !== t2.length || (t2 =
|
|
58
|
+
if (e3 && e3.startsWith("${") && (a3 = e3.substring(2, e3.length - 1), a3.startsWith("page.") || (a3.startsWith("data.") ? (a3 = a3.substring(5), t2 = I.value, t2 && 0 !== t2.length || (t2 = N.pageContextVarOptions.dataOptions)) : a3.startsWith("row.") && (a3 = a3.substring(4), t2 = S.value, t2 && 0 !== t2.length || (t2 = O.columnList)))), t2 && a3) {
|
|
59
59
|
const e4 = t2.find((e5) => e5.value == a3);
|
|
60
60
|
e4 && (o2 = e4.dataType);
|
|
61
61
|
}
|
|
@@ -63,8 +63,8 @@ const _ = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
return (l2, a2) => {
|
|
66
|
-
const w2 = t("el-button"), y2 = t("el-row"), h2 = t("Top"), V2 = t("el-icon"), T2 = t("Bottom"), k3 = t("el-table-column"), N2 = t("el-option"),
|
|
67
|
-
return u(), o(r, null, [d("div", null, [p(w2, { type: "primary", onClick: D }, { default: i(() => a2[1] || (a2[1] = [n("编辑")])), _: 1 })]), p(
|
|
66
|
+
const w2 = t("el-button"), y2 = t("el-row"), h2 = t("Top"), V2 = t("el-icon"), T2 = t("Bottom"), k3 = t("el-table-column"), N2 = t("el-option"), O2 = t("el-select"), j2 = t("el-table"), C2 = t("el-dialog");
|
|
67
|
+
return u(), o(r, null, [d("div", null, [p(w2, { type: "primary", onClick: D }, { default: i(() => a2[1] || (a2[1] = [n("编辑")])), _: 1 })]), p(C2, { modelValue: B.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => B.value = e3), title: e2.title, width: "900", "append-to-body": "" }, { default: i(() => [p(y2, { style: { "padding-bottom": "8px" } }, { default: i(() => [p(w2, { icon: s(b), plain: "", type: "primary", onClick: A }, { default: i(() => a2[2] || (a2[2] = [n(" 添加 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), p(j2, { border: "", "highlight-current-row": "", onCurrentChange: W, data: x.value, style: { width: "100%" } }, { default: i(() => [p(k3, { label: "", width: "50" }, { default: i((e3) => [d("div", _, [p(V2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
68
68
|
let l4 = z(e4);
|
|
69
69
|
if (l4 < 1) return;
|
|
70
70
|
const a3 = x.value;
|
|
@@ -74,7 +74,7 @@ const _ = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
|
|
|
74
74
|
if (-1 == l4 || x.value.length == l4 + 1) return;
|
|
75
75
|
const a3 = x.value;
|
|
76
76
|
[a3[l4], a3[l4 + 1]] = [a3[l4 + 1], a3[l4]];
|
|
77
|
-
}(e3.row) }, { default: i(() => [p(T2)]), _: 2 }, 1032, ["onClick"])])]), _: 1 }), p(k3, { prop: "leftBracket", label: "(", width: "80" }, { default: i((e3) => [p(
|
|
77
|
+
}(e3.row) }, { default: i(() => [p(T2)]), _: 2 }, 1032, ["onClick"])])]), _: 1 }), p(k3, { prop: "leftBracket", label: "(", width: "80" }, { default: i((e3) => [p(O2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l3) => e3.row.leftBracket = l3, clearable: "", placeholder: "请选择" }, { default: i(() => [p(N2, { label: "", value: "" }), p(N2, { label: "(", value: "(" }), p(N2, { label: "((", value: "((" }), p(N2, { label: "(((", value: "(((" }), p(N2, { label: "((((", value: "((((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(k3, { prop: "propName", label: "字段名(*)", width: "150" }, { default: i((l3) => [p(v, { modelValue: l3.row.propName, dataModelOptions: I.value, objModelOptions: S.value, paramTypes: e2.paramTypes, "onUpdate:modelValue": (e3) => q(e3, l3.row, "propName") }, null, 8, ["modelValue", "dataModelOptions", "objModelOptions", "paramTypes", "onUpdate:modelValue"])]), _: 1 }), p(k3, { prop: "operator", label: "操作符", width: "90" }, { default: i((e3) => [p(O2, { modelValue: e3.row.operator, "onUpdate:modelValue": (l3) => e3.row.operator = l3, clearable: "", placeholder: "请选择" }, { default: i(() => [s(g)(e3.row.dataType) ? (u(), m(N2, { key: 0, label: "大于", value: "GT" })) : c("", true), s(g)(e3.row.dataType) ? (u(), m(N2, { key: 1, label: "小于", value: "LT" })) : c("", true), "date" == e3.row.dataType || "datetime" == e3.row.dataType ? (u(), m(N2, { key: 2, label: "晚于", value: "GT" })) : c("", true), "date" == e3.row.dataType || "datetime" == e3.row.dataType ? (u(), m(N2, { key: 3, label: "早于", value: "LT" })) : c("", true), p(N2, { label: "等于", value: "EQ" }), s(g)(e3.row.dataType) ? (u(), m(N2, { key: 4, label: "小于等于", value: "LET" })) : c("", true), s(g)(e3.row.dataType) ? (u(), m(N2, { key: 5, label: "大于等于", value: "GET" })) : c("", true), "date" == e3.row.dataType || "datetime" == e3.row.dataType ? (u(), m(N2, { key: 6, label: "不晚于", value: "LET" })) : c("", true), "date" == e3.row.dataType || "datetime" == e3.row.dataType ? (u(), m(N2, { key: 7, label: "不早于", value: "GET" })) : c("", true), p(N2, { label: "不等于", value: "NET" }), p(N2, { label: "包含", value: "CONTAIN" }), p(N2, { label: "不包含", value: "NOT_CONTAIN" }), p(N2, { label: "等于Null", value: "IS_NULL" }), p(N2, { label: "不等于Null", value: "IS_NOT_NULL" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(k3, { prop: "propValue", label: "值(*)", width: "150" }, { default: i((e3) => [p(v, { modelValue: e3.row.propValue, dataModelOptions: I.value, objModelOptions: S.value, "onUpdate:modelValue": (l3) => q(l3, e3.row, "propValue") }, null, 8, ["modelValue", "dataModelOptions", "objModelOptions", "onUpdate:modelValue"])]), _: 1 }), p(k3, { prop: "rightBracket", label: ")", width: "80" }, { default: i((e3) => [p(O2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l3) => e3.row.rightBracket = l3, placeholder: "请选择", clearable: "" }, { default: i(() => [p(N2, { label: "", value: "" }), p(N2, { label: ")", value: ")" }), p(N2, { label: "))", value: "))" }), p(N2, { label: ")))", value: ")))" }), p(N2, { label: "))))", value: "))))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(k3, { prop: "joinSign", label: "并且/或者", width: "80" }, { default: i((e3) => [p(O2, { modelValue: e3.row.joinSign, "onUpdate:modelValue": (l3) => e3.row.joinSign = l3, clearable: "", placeholder: "请选择" }, { default: i(() => [p(N2, { label: "或者", value: "or" }), p(N2, { label: "并且", value: "and" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(k3, { prop: "variableIsNull", label: "变量为空时", width: "120" }, { default: i((e3) => [p(O2, { modelValue: e3.row.variableIsNull, "onUpdate:modelValue": (l3) => e3.row.variableIsNull = l3, clearable: "", placeholder: "请选择" }, { default: i(() => [p(N2, { label: "Null", value: "null" }), p(N2, { label: "忽略(1=1)", value: "ignore" }), p(N2, { label: "不符合(1<>1)", value: "notequal" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(k3, { label: "操作", width: "60" }, { default: i((e3) => [p(V2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px", "margin-left": "6px" }, onClick: (l3) => A(e3.row) }, { default: i(() => [p(s(b))]), _: 2 }, 1032, ["onClick"]), p(V2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
78
78
|
let l4 = z(e4);
|
|
79
79
|
l4 > -1 && x.value.splice(l4, 1);
|
|
80
80
|
}(e3.row) }, { default: i(() => [p(s(f))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64);
|
package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, resolveComponent as a, createElementBlock as t, openBlock as o, Fragment as r, createElementVNode as u, createVNode as d, withDirectives as p, withCtx as n, createTextVNode as i, vShow as s, unref as c } from "vue";
|
|
2
2
|
import { Plus as b, Delete as f } from "@element-plus/icons";
|
|
3
|
-
import m from "./common-variable-bind.
|
|
3
|
+
import m from "./common-variable-bind.vue2.js";
|
|
4
4
|
import { getUuidv4 as w } from "../../../utils/common-util.js";
|
|
5
5
|
import { usePageContextStore as g } from "../../../../../stores/page-store.js";
|
|
6
6
|
import { getModelOptionsByFields as y } from "../../../utils/page-table-util.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, reactive as a, onUnmounted as t, resolveComponent as o, createBlock as s, openBlock as n, withCtx as r, createElementVNode as i, createVNode as u, createElementBlock as p, Fragment as d, renderList as
|
|
2
|
-
import { Search as
|
|
3
|
-
import
|
|
4
|
-
import { EnableStates as
|
|
1
|
+
import { defineComponent as e, ref as l, reactive as a, onUnmounted as t, resolveComponent as o, createBlock as s, openBlock as n, withCtx as r, createElementVNode as i, createVNode as u, createElementBlock as p, Fragment as d, renderList as c, unref as m, createTextVNode as g, toDisplayString as y, createCommentVNode as h } from "vue";
|
|
2
|
+
import { Search as f, RefreshLeft as b } from "@element-plus/icons";
|
|
3
|
+
import v from "agilebuilder-ui/src/utils/request";
|
|
4
|
+
import { EnableStates as V } from "../../../utils/interfaces/page-design-types.js";
|
|
5
5
|
import { usePageContextStore as C } from "../../../../../stores/page-store.js";
|
|
6
6
|
const w = { style: { "background-color": "rgba(88, 147, 239, 0.06)", padding: "10px" } }, T = e({ __name: "common-select-table", props: { systemCode: {}, systemVersion: {} }, emits: ["selectTable"], setup(e2, { expose: T2, emit: x }) {
|
|
7
7
|
const z = e2, _ = C(), S = _.pageContext ? _.pageContext : {}, P = x, k = l(300);
|
|
@@ -29,17 +29,17 @@ const w = { style: { "background-color": "rgba(88, 147, 239, 0.06)", padding: "1
|
|
|
29
29
|
a2 = e4.length > 0 ? e4[0].version : -1;
|
|
30
30
|
} else l2 = N, a2 = A;
|
|
31
31
|
const t2 = j.tableType ? j.tableType : 0, o2 = window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/list/" + l2 + "/" + t2 + "/" + a2;
|
|
32
|
-
|
|
32
|
+
v.post(o2, e3).then((e4) => {
|
|
33
33
|
D.value = e4.data, E.currentPage = e4.page, E.pageSize = e4.size, E.total = e4.total;
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
return T2({ openDialog: function() {
|
|
37
37
|
let e3 = window.innerHeight - 140 - 176;
|
|
38
|
-
e3 > 500 ? e3 = 500 : e3 < 100 && (e3 = 100), k.value = e3, U.value = true, O || (O = true,
|
|
38
|
+
e3 > 500 ? e3 = 500 : e3 < 100 && (e3 = 100), k.value = e3, U.value = true, O || (O = true, v.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((e4) => {
|
|
39
39
|
const l2 = e4, a2 = [], t2 = {};
|
|
40
40
|
for (let e5 of l2) {
|
|
41
41
|
if (e5.deleted) continue;
|
|
42
|
-
if (e5.enabledState !=
|
|
42
|
+
if (e5.enabledState != V.ENABLE) continue;
|
|
43
43
|
const l3 = t2[e5.code];
|
|
44
44
|
null != l3 && e5.publishVersion > l3.publishVersion ? t2[e5.code] = e5 : null == l3 && (t2[e5.code] = e5, a2.push(e5.code));
|
|
45
45
|
}
|
|
@@ -52,13 +52,13 @@ const w = { style: { "background-color": "rgba(88, 147, 239, 0.06)", padding: "1
|
|
|
52
52
|
B();
|
|
53
53
|
}, 100));
|
|
54
54
|
} }), (e3, l2) => {
|
|
55
|
-
const a2 = o("el-option"), t2 = o("el-select"),
|
|
56
|
-
return n(), s(_2, { modelValue: U.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => U.value = e4), title: "选择数据模型", width: "800" }, { default: r(() => [i("div", w, [u(t2, { modelValue: j.systemCode, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => j.systemCode = e4), placeholder: "当前应用", clearable: "", onChange: B, style: { width: "120px" } }, { default: r(() => [(n(true), p(d, null,
|
|
55
|
+
const a2 = o("el-option"), t2 = o("el-select"), v2 = o("el-input"), V2 = o("el-button"), C2 = o("el-table-column"), T3 = o("el-text"), x2 = o("el-table"), z2 = o("el-pagination"), _2 = o("el-dialog");
|
|
56
|
+
return n(), s(_2, { modelValue: U.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => U.value = e4), title: "选择数据模型", width: "800" }, { default: r(() => [i("div", w, [u(t2, { modelValue: j.systemCode, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => j.systemCode = e4), placeholder: "当前应用", clearable: "", onChange: B, style: { width: "120px" } }, { default: r(() => [(n(true), p(d, null, c(F.value, (e4) => (n(), s(a2, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), u(t2, { modelValue: j.tableType, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => j.tableType = e4), placeholder: "表和视图", clearable: "", onChange: B, style: { width: "120px", "margin-left": "10px" } }, { default: r(() => [u(a2, { value: "1", label: "表" }), u(a2, { value: "2", label: "视图" })]), _: 1 }, 8, ["modelValue"]), u(v2, { modelValue: j.searchValue, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => j.searchValue = e4), style: { width: "240px", "margin-left": "10px" }, placeholder: "请输入名称或别名" }, null, 8, ["modelValue"]), u(V2, { type: "primary", style: { "margin-left": "10px" }, icon: m(f), onClick: B }, { default: r(() => l2[6] || (l2[6] = [g("确定")])), _: 1 }, 8, ["icon"]), u(V2, { style: { "margin-left": "10px" }, icon: m(b), onClick: I }, { default: r(() => l2[7] || (l2[7] = [g("重置")])), _: 1 }, 8, ["icon"])]), u(x2, { data: D.value, stripe: "", height: k.value, onSortChange: q }, { default: r(() => [u(C2, { type: "index", label: "序", width: "50" }, { default: r((e4) => [g(y(e4.$index + 1), 1)]), _: 1 }), u(C2, { label: "操作", width: "80" }, { default: r((e4) => [u(V2, { type: "primary", size: "small", onClick: (l3) => function(e5) {
|
|
57
57
|
const l4 = { name: e5.row.name, alias: e5.row.alias };
|
|
58
58
|
if (j.systemCode && j.systemCode != S.systemCode) {
|
|
59
59
|
let e6 = j.systemCode, a3 = F.value.filter((l5) => l5.value == e6);
|
|
60
60
|
l4.systemVersion = a3.length > 0 ? a3[0].version : 1, l4.systemCode = e6;
|
|
61
|
-
}
|
|
61
|
+
}
|
|
62
62
|
P("selectTable", l4), U.value = false;
|
|
63
63
|
}(e4) }, { default: r(() => l2[8] || (l2[8] = [g("选择")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), u(C2, { property: "dataView", label: "类型", width: "70" }, { default: r((e4) => [e4.dataView ? h("", true) : (n(), s(T3, { key: 0, class: "mx-1", type: "primary" }, { default: r(() => l2[9] || (l2[9] = [g("数据表")])), _: 1 })), e4.dataView ? (n(), s(T3, { key: 1, class: "mx-1", type: "success" }, { default: r(() => l2[10] || (l2[10] = [g("视图")])), _: 1 })) : h("", true)]), _: 1 }), u(C2, { property: "name", label: "名称", width: "200", sortable: "custom" }), u(C2, { property: "alias", label: "别名" })]), _: 1 }, 8, ["data", "height"]), u(z2, { style: { "margin-top": "10px", "justify-content": "center" }, "current-page": E.currentPage, "onUpdate:currentPage": l2[3] || (l2[3] = (e4) => E.currentPage = e4), "page-size": E.pageSize, "onUpdate:pageSize": l2[4] || (l2[4] = (e4) => E.pageSize = e4), "page-sizes": [20, 30, 50, 100], background: "", layout: "sizes,prev,pager,next,jumper,total", total: E.total, onSizeChange: B, onCurrentChange: B }, null, 8, ["current-page", "page-size", "total"])]), _: 1 }, 8, ["modelValue"]);
|
|
64
64
|
};
|
|
@@ -1,139 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import { getTypeOptions as j, contextVarOptions as U, taskVarOptions as L } from "./common-variable-bind-option.js";
|
|
6
|
-
import { usePageContextStore as N } from "../../../../../stores/page-store.js";
|
|
7
|
-
import { tableField as A } from "../../../../../stores/table-store.js";
|
|
8
|
-
import { statisticsTable as E } from "../../../../../stores/statistics-table-store.js";
|
|
9
|
-
const R = { key: 0 }, T = { style: { "margin-top": "10px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, q = { style: { "font-size": "10px", "line-height": "40px" } }, D = { style: { "margin-top": "4px", "margin-bottom": "8px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, P = { key: 0, style: { display: "flex" } }, $ = ["title"], B = ["title"], S = { class: "totalStyle" }, I = e({ name: "ValueSetInput", inheritAttrs: false, __name: "common-variable-bind", props: { modelValue: { type: [String], default: null }, paramTypes: { type: Array, default: () => [] }, size: { type: String, default: "small" }, showLabel: { type: Boolean, default: false }, needParams: { type: Boolean, default: false }, isRange: { type: Boolean, default: false }, isTable: { type: Boolean, default: false }, dataModelOptions: { type: Array, default: null }, objModelOptions: { type: Array, default: null }, needData: { type: Boolean, default: false }, placeholder: { type: String, default: "请选择" } }, emits: ["update:modelValue"], setup(e2, { emit: I2 }) {
|
|
10
|
-
const K = N(), W = I2, F = e2, G = l(false), H = l(""), J = l(null), Q = l(null), X = l([]), Y = l(false), Z = l(""), ee = l(""), le = l(""), ae = l([]), te = l({}), ue = l(""), oe = l(null), ne = ["context", "system", "task", "data", "page", "row"], se = A(), ie = E();
|
|
11
|
-
a(() => {
|
|
12
|
-
window.addEventListener("click", pe);
|
|
13
|
-
const e3 = K.pageContext;
|
|
14
|
-
let l2 = false, a2 = F.needData;
|
|
15
|
-
a2 || (F.isTable || e3 && (!e3.pageType || "form" == e3.pageType) && e3.tableName) && (a2 = true), e3 && e3.workflowCode && a2 && (l2 = true);
|
|
16
|
-
let t2 = j(F.paramTypes, F.needParams);
|
|
17
|
-
if (a2 || (t2 = t2.filter((e4) => "data" != e4.value)), l2 || (t2 = t2.filter((e4) => "task" != e4.value)), X.value = t2, be(), F.modelValue) {
|
|
18
|
-
const [e4, l3] = F.modelValue.slice(0, F.modelValue.length - 1).slice(2).split(".");
|
|
19
|
-
ee.value = e4, le.value = l3, ne.includes(e4) && (Y.value = false), xe(ee.value), Z.value = he(), H.value = F.modelValue;
|
|
20
|
-
}
|
|
21
|
-
ee.value || (ee.value = t2.length > 0 ? t2[0].value : "", xe(ee.value));
|
|
22
|
-
}), t(() => {
|
|
23
|
-
window.removeEventListener("click", pe);
|
|
24
|
-
});
|
|
25
|
-
let re = null;
|
|
26
|
-
function pe(e3) {
|
|
27
|
-
if (!G.value) return;
|
|
28
|
-
if (we) return void (we = false);
|
|
29
|
-
let l2 = null;
|
|
30
|
-
if (Q.value && (l2 = Q.value.$el.parentNode), !e3.target || !l2) return;
|
|
31
|
-
if (e3.target === re) return;
|
|
32
|
-
const a2 = J.value ? J.value.input : null;
|
|
33
|
-
a2 && (e3.target === a2 || a2.contains(e3.target)) || (e3.target === l2 || l2.contains(e3.target) ? re = e3.target : (Q.value.$el, G.value && de()));
|
|
34
|
-
}
|
|
35
|
-
const ve = l([{ label: "天", value: "d" }, { label: "周", value: "w" }, { label: "月", value: "m" }, { label: "年", value: "y" }]);
|
|
36
|
-
function de(e3) {
|
|
37
|
-
G.value = false;
|
|
38
|
-
}
|
|
39
|
-
const me = u(() => ae.value.filter((e3) => !ue.value || "system" == ee.value || e3.label.toLowerCase().includes(ue.value.toLowerCase()) || e3.value.toLowerCase().includes(ue.value.toLowerCase())));
|
|
40
|
-
o(ue, () => {
|
|
41
|
-
"system" == ee.value && ce();
|
|
42
|
-
});
|
|
43
|
-
let fe = null;
|
|
44
|
-
function ce() {
|
|
45
|
-
if (fe == ue.value) return;
|
|
46
|
-
const e3 = { query: ue.value };
|
|
47
|
-
fe = ue.value, M.post(window.$vueApp.config.globalProperties.baseAPI + "/component/system-params/query", e3).then((e4) => {
|
|
48
|
-
const l2 = [];
|
|
49
|
-
for (let a2 of e4) l2.push({ value: a2.propKey, label: a2.propKey + " (" + a2.propValue + ")" });
|
|
50
|
-
te.value.systemVarOptions = l2, "system" == ee.value && xe(ee.value);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
const ye = u(() => {
|
|
54
|
-
let e3 = 185;
|
|
55
|
-
return "page" == ee.value && (e3 = 170), e3;
|
|
56
|
-
}), ge = u(() => {
|
|
57
|
-
const e3 = {};
|
|
58
|
-
return "page" == ee.value && (e3.width = "210px"), e3;
|
|
59
|
-
});
|
|
60
|
-
function be() {
|
|
61
|
-
F.dataModelOptions && F.dataModelOptions.length > 0 ? te.value.dataModelOptions = F.dataModelOptions : F.isTable ? te.value.dataModelOptions = se.fieldList : te.value.dataModelOptions = K.pageContextVarOptions.dataOptions, F.objModelOptions && F.objModelOptions.length > 0 && (te.value.objModelOptions = F.objModelOptions), te.value.pageVarOptions = K.pageContextVarOptions.pageVarOptions;
|
|
62
|
-
}
|
|
63
|
-
function he() {
|
|
64
|
-
return F.modelValue ? ee.value + "." + function(e3, l2) {
|
|
65
|
-
if (ne.includes(e3)) {
|
|
66
|
-
if ("context" === e3 && l2 && l2.startsWith("currentDate") && l2.length > 11) {
|
|
67
|
-
const e4 = l2.substring(11), a3 = e4.substring(0, 1);
|
|
68
|
-
return e4.substring(1, e4.length - 1) + ((e5) => {
|
|
69
|
-
const l3 = ve.value.filter((l4) => l4.value == e5);
|
|
70
|
-
return l3.length > 0 ? l3[0].label : "";
|
|
71
|
-
})(e4.substring(e4.length - 1)) + ("+" === a3 ? "后" : "前");
|
|
72
|
-
}
|
|
73
|
-
const a2 = ae.value.find((e4) => e4.value === l2);
|
|
74
|
-
if (a2) return a2.label;
|
|
75
|
-
}
|
|
76
|
-
return l2;
|
|
77
|
-
}(ee.value, le.value) : F.modelValue;
|
|
78
|
-
}
|
|
79
|
-
let we = false;
|
|
80
|
-
function Ve(e3) {
|
|
81
|
-
e3 && Array.isArray(e3) && e3.length > 0 && (e3 = e3[0]), ee.value = e3, le.value = "", ne.includes(e3) ? (Y.value = false, xe(e3)) : Y.value = true, "system" == ee.value && ce(), we = true;
|
|
82
|
-
}
|
|
83
|
-
function xe(e3) {
|
|
84
|
-
if ("context" === e3) {
|
|
85
|
-
let e4 = U;
|
|
86
|
-
if (F.isRange) {
|
|
87
|
-
e4 = _(e4);
|
|
88
|
-
for (let l2 = 0; l2 < e4.length; l2++) {
|
|
89
|
-
if ("currentDate" == e4[l2].value) {
|
|
90
|
-
e4.splice(l2 + 1, 0, { value: "currentDate", symbolUnit: "d", symbol: "-", type: "range" });
|
|
91
|
-
break;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
ae.value = e4;
|
|
96
|
-
} else "system" === e3 ? ae.value = te.value.systemVarOptions || [] : "task" === e3 ? ae.value = L : "data" === e3 ? ae.value = te.value.dataModelOptions || [] : "row" === e3 ? ae.value = te.value.objModelOptions && te.value.objModelOptions.length > 0 ? te.value.objModelOptions : ie.columnList ? ie.columnList : te.value.dataModelOptions ? te.value.dataModelOptions : [] : "params" === e3 ? ae.value = te.value.paramsVarOptions || [] : "page" === e3 && (ae.value = te.value.pageVarOptions || []);
|
|
97
|
-
}
|
|
98
|
-
function Oe() {
|
|
99
|
-
H.value = "", W("update:modelValue", H.value), oe.value.hide();
|
|
100
|
-
}
|
|
101
|
-
function ke() {
|
|
102
|
-
le.value ? (H.value = "${" + ee.value + "." + le.value + "}", W("update:modelValue", H.value), de()) : ElMessage.warning("请输入参数名");
|
|
103
|
-
}
|
|
104
|
-
function Ce() {
|
|
105
|
-
if (ue.value = ue.value.trim(), !ue.value) return void ElMessage.warning("请输入参数名");
|
|
106
|
-
const e3 = te.value.pageVarOptions || [];
|
|
107
|
-
for (let l3 of e3) if (l3.value === ue.value) return void ElMessage.warning("该变量已存在!");
|
|
108
|
-
const l2 = { code: z(), name: ue.value, alias: ue.value, type: "string", defaultValue: "" };
|
|
109
|
-
K.pageContext.variables || (K.pageContext.variables = []), K.pageContext.variables.push(l2), K.setPageContext(K.pageContext), te.value.pageVarOptions = K.pageContextVarOptions.pageVarOptions, ae.value = te.value.pageVarOptions || [], le.value = ue.value, H.value = "${" + ee.value + "." + ue.value + "}", ue.value = "", W("update:modelValue", H.value), de();
|
|
110
|
-
}
|
|
111
|
-
const Me = l();
|
|
112
|
-
function _e() {
|
|
113
|
-
G.value = true, V(() => {
|
|
114
|
-
be(), ee.value && (ne.includes(ee.value) ? (Y.value = false, xe(ee.value)) : Y.value = true, "system" == ee.value && ce()), function() {
|
|
115
|
-
if (!F.showLabel && !Y.value) {
|
|
116
|
-
const e3 = me.value.findIndex((e4) => e4.value === le.value);
|
|
117
|
-
e3 > -1 && Me.value.setCurrentRow(me.value[e3]);
|
|
118
|
-
}
|
|
119
|
-
}();
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
return (l2, a2) => {
|
|
123
|
-
const t2 = n("el-icon"), u2 = n("el-input"), o2 = n("el-cascader-panel"), V2 = n("el-col"), M2 = n("el-empty"), _2 = n("el-button"), z2 = n("el-table-column"), j2 = n("el-option"), U2 = n("el-select"), L2 = n("el-table"), N2 = n("el-row"), A2 = n("el-popover");
|
|
124
|
-
return e2.showLabel ? (r(), s("span", R, p(H.value), 1)) : (r(), i(A2, { key: 1, ref_key: "popoverRef", ref: oe, visible: G.value, width: 400 }, { reference: v(() => [d(u2, { readonly: "", size: e2.size, title: H.value, ref_key: "inputRef", ref: J, onClick: _e, formatter: he, modelValue: H.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => H.value = e3), placeholder: e2.placeholder }, { suffix: v(() => [f(d(t2, { style: { cursor: "pointer" }, onClick: w(Oe, ["stop"]) }, { default: v(() => [d(c(C))]), _: 1 }, 512), [[g, H.value]])]), _: 1 }, 8, ["size", "title", "modelValue", "placeholder"])]), default: v(() => [d(N2, { ref_key: "contentRef", ref: Q }, { default: v(() => [d(V2, { span: 8 }, { default: v(() => [d(o2, { modelValue: ee.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => ee.value = e3), onChange: Ve, props: { emitPath: true }, size: "small", options: X.value, style: { height: "240px", width: "100%" } }, null, 8, ["modelValue", "options"])]), _: 1 }), ee.value ? Y.value ? (r(), i(V2, { key: 1, span: 16, style: { "padding-left": "10px" } }, { default: v(() => [d(u2, { style: { width: "210px" }, size: "small", modelValue: le.value, "onUpdate:modelValue": a2[2] || (a2[2] = (e3) => le.value = e3), placeholder: "请手动输入" }, null, 8, ["modelValue"]), d(_2, { style: { float: "right" }, onClick: ke, size: "small", type: "primary", icon: c(x), circle: "" }, null, 8, ["icon"]), m("div", T, [d(t2, null, { default: v(() => [d(c(O))]), _: 1 }), a2[5] || (a2[5] = m("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))]), f(m("div", q, [a2[7] || (a2[7] = y(" 常用参数: ")), d(_2, { type: "primary", size: "small", onClick: a2[3] || (a2[3] = (e3) => {
|
|
125
|
-
return l3 = "query", le.value = l3, void ke();
|
|
126
|
-
var l3;
|
|
127
|
-
}) }, { default: v(() => a2[6] || (a2[6] = [y("query")])), _: 1 })], 512), [[g, "request" == ee.value]])]), _: 1 })) : (r(), i(V2, { key: 2, span: 16, style: { "padding-left": "10px" } }, { default: v(() => [d(u2, { size: "small", modelValue: ue.value, "onUpdate:modelValue": a2[4] || (a2[4] = (e3) => ue.value = e3), placeholder: "搜索", "suffix-icon": c(k), style: b([{ "margin-bottom": "5px", height: "25px" }, ge.value]) }, null, 8, ["modelValue", "suffix-icon", "style"]), f(d(_2, { style: { float: "right" }, onClick: Ce, size: "small", type: "primary", icon: c(x), circle: "" }, null, 8, ["icon"]), [[g, "page" == ee.value]]), f(m("div", D, [d(t2, null, { default: v(() => [d(c(O))]), _: 1 }), a2[8] || (a2[8] = m("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))], 512), [[g, "page" == ee.value]]), d(L2, { ref_key: "tableRef", ref: Me, height: ye.value, "show-header": false, size: "small", "current-row-key": "code", "row-key": "code", "tree-props": { children: "items" }, "highlight-current-row": true, data: me.value }, { default: v(() => [d(z2, { width: "65" }, { default: v((e3) => [d(_2, { size: "small", onClick: (l3) => function(e4) {
|
|
128
|
-
if ("range" == e4.type) {
|
|
129
|
-
if ("" === e4.symbolNum) return void ElMessage.warning("周期不能为空!");
|
|
130
|
-
if (isNaN(e4.symbolNum)) return void ElMessage.warning("周期为无效的数字!");
|
|
131
|
-
"0" != e4.symbolNum ? le.value = e4.value + e4.symbol + e4.symbolNum + e4.symbolUnit : le.value = e4.value;
|
|
132
|
-
} else le.value = e4.value;
|
|
133
|
-
H.value = "${" + ee.value + "." + le.value + "}", W("update:modelValue", H.value, e4.alias), de();
|
|
134
|
-
}(e3.row) }, { default: v(() => a2[9] || (a2[9] = [y(" 选择 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), d(z2, { label: "Date", prop: "label" }, { default: v((e3) => ["context" == ee.value && "range" == e3.row.type ? (r(), s("div", P, [d(u2, { size: "small", modelValue: e3.row.symbolNum, "onUpdate:modelValue": (l3) => e3.row.symbolNum = l3, placeholder: "", style: { width: "35px", "margin-left": "4px" } }, null, 8, ["modelValue", "onUpdate:modelValue"]), d(U2, { size: "small", style: { "margin-left": "4px", width: "50px" }, modelValue: e3.row.symbolUnit, "onUpdate:modelValue": (l3) => e3.row.symbolUnit = l3, placeholder: "" }, { default: v(() => [d(j2, { label: "天", value: "d" }), d(j2, { label: "周", value: "w" }), d(j2, { label: "月", value: "m" }), d(j2, { label: "年", value: "y" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]), d(U2, { size: "small", style: { "margin-left": "4px", width: "50px" }, modelValue: e3.row.symbol, "onUpdate:modelValue": (l3) => e3.row.symbol = l3, placeholder: "" }, { default: v(() => [d(j2, { label: "前", value: "-" }), d(j2, { label: "后", value: "+" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])])) : h("", true), "data" == ee.value || "obj" == ee.value || "row" == ee.value ? (r(), s("span", { key: 1, title: e3.row.label + " " + e3.row.value }, p(e3.row.label + " " + e3.row.value), 9, $)) : (r(), s("span", { key: 2, title: e3.row.label }, p(e3.row.label), 9, B))]), _: 1 })]), _: 1 }, 8, ["height", "data"]), m("div", S, "总计:" + p(me.value.length), 1)]), _: 1 })) : (r(), i(V2, { key: 0, span: 16 }, { default: v(() => [d(M2, { description: "请选择类型", "image-size": 40 })]), _: 1 }))]), _: 1 }, 512)]), _: 1 }, 8, ["visible"]));
|
|
135
|
-
};
|
|
136
|
-
} });
|
|
1
|
+
import e from "./common-variable-bind.vue3.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import o from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = o(e, [["__scopeId", "data-v-f1126e5e"]]);
|
|
137
5
|
export {
|
|
138
|
-
|
|
6
|
+
r as default
|
|
139
7
|
};
|