super-page-designer 2.3.5-design1 → 2.3.5-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/interfaces/page-design-types.d.ts +1 -0
- package/dist/es/components/design/utils/page-event-util.js +0 -1
- package/dist/es/components/design/utils/page-i18n-util.js +5 -6
- 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 +16 -16
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +5 -52
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue2.js +48 -2
- 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 +1 -1
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/export-pdf/common-template-select.vue.js +52 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/common-template-select.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +16 -19
- package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-base.vue.js +4 -5
- 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 +10 -10
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +17 -17
- 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-icon-bind.vue2.js +0 -3
- package/dist/es/components/design/views/assemblys/common/common-style-background.vue.js +2 -3
- package/dist/es/components/design/views/assemblys/common/common-template-select.vue.js +46 -0
- package/dist/es/components/design/views/assemblys/common/common-template-select.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/common/common-variable-bind-option.js +1 -1
- 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/common/page-permission-select.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr.vue2.js +2 -3
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +22 -22
- 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/bar-code/barcode-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +10 -10
- package/dist/es/components/design/views/assemblys/data/component/import-header.vue.js +2 -2
- 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/table-design.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +8 -7
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +3 -3
- 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/icon-set-dialog.vue2.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 +7 -7
- 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/file-upload/fileupload-design.vue2.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/label/label-design.vue2.js +11 -11
- 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/rich-text/richtext-design.vue2.js +13 -14
- 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/page/component/setting-form-rule-base-input.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-design.vue2.js +3 -3
- package/dist/es/components/design/views/design/page-design.vue2.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/config.vue3.js +17 -18
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +0 -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.vue2.js +2 -3
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
- package/dist/es/stores/undo-redo-store.js +1 -1
- package/dist/es/style.css +5 -1
- package/package.json +5 -5
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +0 -7
|
@@ -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";
|
|
@@ -6,7 +6,7 @@ import w from "../../../common/page-permission-select.vue.js";
|
|
|
6
6
|
import T from "./row-colmun.vue.js";
|
|
7
7
|
import { queryServiceReturnFields as h } from "../../../../../utils/page-service-util.js";
|
|
8
8
|
import { tableField as k } from "../../../../../../../stores/table-store.js";
|
|
9
|
-
import R from "../../../common/common-variable-bind.
|
|
9
|
+
import R from "../../../common/common-variable-bind.vue2.js";
|
|
10
10
|
import { getCustomFuncs as U } from "../../../../../utils/page-event-util.js";
|
|
11
11
|
const F = { style: { padding: "8px 0px 0px 0px" } }, x = { style: { float: "left" } }, S = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, j = { style: { float: "left" } }, D = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, N = e({ __name: "data-origin", props: { configure: { type: Object, default: () => {
|
|
12
12
|
} }, 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,11 +1,11 @@
|
|
|
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
|
|
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 n, createTextVNode as i, 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.
|
|
4
|
-
import { isNumberType as g, isDateOrTimeType as
|
|
3
|
+
import v from "../../../common/common-variable-bind.vue2.js";
|
|
4
|
+
import { isNumberType as g, isDateOrTimeType as y, getUuidv4 as w } from "../../../../../utils/common-util.js";
|
|
5
5
|
import { usePageContextStore as h } from "../../../../../../../stores/page-store.js";
|
|
6
6
|
import { statisticsTable as V } from "../../../../../../../stores/statistics-table-store.js";
|
|
7
7
|
import { getModelOptionsByFields as T, getTableConfigByTableUuid as k } from "../../../../../utils/page-table-util.js";
|
|
8
|
-
const _ = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, N = e({ __name: "table-showcondition", props: { data: { type: Array, required: true, default: () => [] }, title: { type: String, default: "显示条件" }, paramTypes: { type: Array, default: () => ["data", "task", "page", "request", "row"] }, configure: { type: Object, default: () => {
|
|
8
|
+
const _ = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, N = e({ __name: "table-showcondition", props: { data: { type: Array, required: true, default: () => [] }, title: { type: String, default: "显示条件" }, paramTypes: { type: Array, default: () => ["data", "task", "page", "request", "row", "context", "fixed"] }, configure: { type: Object, default: () => {
|
|
9
9
|
} }, tableConfigure: { type: Object, default: () => {
|
|
10
10
|
} }, pageDesign: { type: Object, default: () => {
|
|
11
11
|
} }, row: { type: Object, default: () => {
|
|
@@ -39,7 +39,7 @@ const _ = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
|
|
|
39
39
|
function G(e3) {
|
|
40
40
|
let l2 = -1;
|
|
41
41
|
e3 && (l2 = A(e3));
|
|
42
|
-
const a2 = { uuid:
|
|
42
|
+
const a2 = { uuid: w(), leftBracket: "", propName: "", operator: "", propValueType: "", rightBracket: "", joinSign: "", dataType: "" };
|
|
43
43
|
B.value.splice(l2 + 1, 0, a2);
|
|
44
44
|
}
|
|
45
45
|
D(j.tableConfigure), a(() => B.value, (e3) => {
|
|
@@ -63,21 +63,21 @@ const _ = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
return (l2, a2) => {
|
|
66
|
-
const
|
|
67
|
-
return u(), o(r, null, [d("div", null, [
|
|
66
|
+
const w2 = t("el-button"), h2 = t("el-row"), V2 = t("Top"), T2 = t("el-icon"), k2 = t("Bottom"), N3 = t("el-table-column"), C2 = t("el-option"), O2 = t("el-select"), j2 = t("el-table"), U2 = t("el-dialog");
|
|
67
|
+
return u(), o(r, null, [d("div", null, [p(w2, { type: "primary", onClick: z }, { default: n(() => a2[1] || (a2[1] = [i("编辑")])), _: 1 })]), p(U2, { modelValue: L.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => L.value = e3), title: e2.title, width: "900", "append-to-body": "" }, { default: n(() => [p(h2, { style: { "padding-bottom": "8px" } }, { default: n(() => [p(w2, { icon: s(b), plain: "", type: "primary", onClick: G }, { default: n(() => a2[2] || (a2[2] = [i(" 添加 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), p(j2, { "row-key": "uuid", border: "", "highlight-current-row": "", onCurrentChange: q, data: B.value, style: { width: "100%" } }, { default: n(() => [p(N3, { label: "", width: "50" }, { default: n((e3) => [d("div", _, [p(T2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
68
68
|
let l4 = A(e4);
|
|
69
69
|
if (l4 < 1) return;
|
|
70
70
|
const a3 = B.value;
|
|
71
71
|
[a3[l4 - 1], a3[l4]] = [a3[l4], a3[l4 - 1]];
|
|
72
|
-
}(e3.row) }, { default:
|
|
72
|
+
}(e3.row) }, { default: n(() => [p(V2)]), _: 2 }, 1032, ["onClick"]), p(T2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
73
73
|
let l4 = A(e4);
|
|
74
74
|
if (-1 == l4 || B.value.length == l4 + 1) return;
|
|
75
75
|
const a3 = B.value;
|
|
76
76
|
[a3[l4], a3[l4 + 1]] = [a3[l4 + 1], a3[l4]];
|
|
77
|
-
}(e3.row) }, { default:
|
|
77
|
+
}(e3.row) }, { default: n(() => [p(k2)]), _: 2 }, 1032, ["onClick"])])]), _: 1 }), p(N3, { prop: "leftBracket", label: "(", width: "80" }, { default: n((e3) => [p(O2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l3) => e3.row.leftBracket = l3, clearable: "", placeholder: "请选择" }, { default: n(() => [p(C2, { label: "", value: "" }), p(C2, { label: "(", value: "(" }), p(C2, { label: "((", value: "((" }), p(C2, { label: "(((", value: "(((" }), p(C2, { label: "((((", value: "((((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(N3, { prop: "propName", label: "字段名(*)", width: "150" }, { default: n((l3) => [p(v, { modelValue: l3.row.propName, dataModelOptions: S.value, objModelOptions: E.value, paramTypes: e2.paramTypes, "onUpdate:modelValue": (e3) => F(e3, l3.row, "propName") }, null, 8, ["modelValue", "dataModelOptions", "objModelOptions", "paramTypes", "onUpdate:modelValue"])]), _: 1 }), p(N3, { prop: "operator", label: "操作符", width: "90" }, { default: n((e3) => [p(O2, { modelValue: e3.row.operator, "onUpdate:modelValue": (l3) => e3.row.operator = l3, clearable: "", placeholder: "请选择" }, { default: n(() => [p(C2, { label: "等于", value: "EQ" }), p(C2, { label: "不等于", value: "NET" }), s(g)(e3.row.dataType) ? (u(), m(C2, { key: 0, label: "大于", value: "GT" })) : c("", true), s(g)(e3.row.dataType) ? (u(), m(C2, { key: 1, label: "小于", value: "LT" })) : c("", true), s(y)(e3.row.dataType) ? (u(), m(C2, { key: 2, label: "晚于", value: "GT" })) : c("", true), s(y)(e3.row.dataType) ? (u(), m(C2, { key: 3, label: "早于", value: "LT" })) : c("", true), s(y)(e3.row.dataType) ? (u(), m(C2, { key: 4, label: "不晚于", value: "LET" })) : c("", true), s(y)(e3.row.dataType) ? (u(), m(C2, { key: 5, label: "不早于", value: "GET" })) : c("", true), s(g)(e3.row.dataType) ? (u(), m(C2, { key: 6, label: "小于等于", value: "LET" })) : c("", true), s(g)(e3.row.dataType) ? (u(), m(C2, { key: 7, label: "大于等于", value: "GET" })) : c("", true), p(C2, { label: "包含", value: "CONTAIN" }), p(C2, { label: "不包含", value: "NOT_CONTAIN" }), p(C2, { label: "等于Null", value: "IS_NULL" }), p(C2, { label: "不等于Null", value: "IS_NOT_NULL" }), p(C2, { label: "in", value: "IN" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(N3, { prop: "propValue", label: "值(*)", width: "150" }, { default: n((l3) => [p(v, { modelValue: l3.row.propValue, dataModelOptions: S.value, objModelOptions: E.value, paramTypes: e2.paramTypes, "onUpdate:modelValue": (e3) => F(e3, l3.row, "propValue") }, null, 8, ["modelValue", "dataModelOptions", "objModelOptions", "paramTypes", "onUpdate:modelValue"])]), _: 1 }), p(N3, { prop: "rightBracket", label: ")", width: "80" }, { default: n((e3) => [p(O2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l3) => e3.row.rightBracket = l3, placeholder: "请选择", clearable: "" }, { default: n(() => [p(C2, { label: "", value: "" }), p(C2, { label: ")", value: ")" }), p(C2, { label: "))", value: "))" }), p(C2, { label: ")))", value: ")))" }), p(C2, { label: "))))", value: "))))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(N3, { prop: "joinSign", label: "并且/或者", width: "80" }, { default: n((e3) => [p(O2, { modelValue: e3.row.joinSign, "onUpdate:modelValue": (l3) => e3.row.joinSign = l3, clearable: "", placeholder: "请选择" }, { default: n(() => [p(C2, { label: "或者", value: "or" }), p(C2, { label: "并且", value: "and" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(N3, { prop: "variableIsNull", label: "变量为空时", width: "120" }, { default: n((e3) => [p(O2, { modelValue: e3.row.variableIsNull, "onUpdate:modelValue": (l3) => e3.row.variableIsNull = l3, clearable: "", placeholder: "请选择" }, { default: n(() => [p(C2, { label: "Null", value: "null" }), p(C2, { label: "忽略(1=1)", value: "ignore" }), p(C2, { label: "不符合(1<>1)", value: "notequal" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(N3, { label: "操作", width: "60" }, { default: n((e3) => [p(T2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px", "margin-left": "6px" }, onClick: (l3) => G(e3.row) }, { default: n(() => [p(s(b))]), _: 2 }, 1032, ["onClick"]), p(T2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
78
78
|
let l4 = A(e4);
|
|
79
79
|
l4 > -1 && B.value.splice(l4, 1);
|
|
80
|
-
}(e3.row) }, { default:
|
|
80
|
+
}(e3.row) }, { default: n(() => [p(s(f))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64);
|
|
81
81
|
};
|
|
82
82
|
} });
|
|
83
83
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, onMounted as n, onUnmounted as i, watch as
|
|
1
|
+
import { defineComponent as e, ref as o, onMounted as n, onUnmounted as i, watch as t, resolveComponent as l, createElementBlock as r, openBlock as u, createVNode as s, createElementVNode as a, withDirectives as c, normalizeStyle as d, normalizeClass as p, withCtx as g, Fragment as m, renderList as f, createBlock as b, createCommentVNode as v, createTextVNode as y, unref as h, vShow as C } from "vue";
|
|
2
2
|
import j from "../../../../utils/eventBus.js";
|
|
3
3
|
import { useDraggable as x } from "vue-draggable-plus";
|
|
4
4
|
import { caculateComponentProps as D } from "../../../../utils/form-design-util.js";
|
|
@@ -37,9 +37,9 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
|
|
|
37
37
|
M(G.configure);
|
|
38
38
|
}), j.$on("setHiddenColumsUuid", (e3) => {
|
|
39
39
|
e3.value ? U.value = U.value.filter((o2) => o2 != e3.uuid) : U.value.push(e3.uuid);
|
|
40
|
-
}),
|
|
40
|
+
}), t(G.configure.style, () => {
|
|
41
41
|
G.configure.runtime.style = G.configure.style;
|
|
42
|
-
}, { immediate: true }),
|
|
42
|
+
}, { immediate: true }), t(G.configure.props, () => {
|
|
43
43
|
D(G.configure, P), function() {
|
|
44
44
|
let e3 = G.configure.props;
|
|
45
45
|
if (!e3.base) return;
|
|
@@ -49,13 +49,13 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
|
|
|
49
49
|
const e3 = W(G.configure, null);
|
|
50
50
|
G.configure.runtime.dataConfig = e3;
|
|
51
51
|
}();
|
|
52
|
-
}, { immediate: true }),
|
|
52
|
+
}, { immediate: true }), t(G.configure.items, (e3) => {
|
|
53
53
|
X.addFieldList(e3), G.configure.runtime.items = G.configure.items;
|
|
54
|
-
}, { immediate: true }),
|
|
54
|
+
}, { immediate: true }), t(() => G.configure.props.isChangeGroupHeader, () => {
|
|
55
55
|
G.configure.props.isChangeGroupHeader && (q.value = E(G.configure), K.value && K.value.doLayout());
|
|
56
56
|
}), j.$on("reloadTable-" + G.configure.uuid, (e3) => {
|
|
57
57
|
e3 && (G.configure.items = e3, q.value = E(G.configure)), K.value && K.value.doLayout();
|
|
58
|
-
}),
|
|
58
|
+
}), t(() => q.value, (e3) => {
|
|
59
59
|
e3.forEach((e4) => {
|
|
60
60
|
e4.props && e4.props.base && !e4.props.base.visible && U.value.push(e4.uuid);
|
|
61
61
|
});
|
|
@@ -70,8 +70,8 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
|
|
|
70
70
|
(o2 || window.event).preventDefault(), n2 = e3, G.configure.items.forEach((e4, o3) => {
|
|
71
71
|
e4.props.base.name == n2.label && (oe.value = e4, ne.value = o3);
|
|
72
72
|
}), R.value = true;
|
|
73
|
-
const i2 = document.querySelector("#tableDesignMenu"),
|
|
74
|
-
i2.style.display = "block", i2.style.left = o2.clientX + 30 + "px", i2.style.top = o2.clientY +
|
|
73
|
+
const i2 = document.querySelector("#tableDesignMenu"), t2 = document.documentElement.scrollTop || document.body.scrollTop;
|
|
74
|
+
i2.style.display = "block", i2.style.left = o2.clientX + 30 + "px", i2.style.top = o2.clientY + t2 - 22 + "px";
|
|
75
75
|
}
|
|
76
76
|
function Z() {
|
|
77
77
|
R.value = false;
|
|
@@ -85,7 +85,7 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
|
|
|
85
85
|
e5.props.base.displayOrder && e5.props.base.displayOrder == o3 || (e5.props.base.displayOrder = o3);
|
|
86
86
|
}), G.configure.props.base.isEnableGroupHeader && (w(G.configure.items[ne.value + 1], null, G.configure.props.groupHeaders), q.value = E(G.configure), j.$emit("synchroGroupHeadersData"));
|
|
87
87
|
} else "deleteNode" === e3 && S.confirm("当前操作会删除当前列", "确认", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
88
|
-
G.configure.
|
|
88
|
+
G.configure.items.splice(ne.value, 1);
|
|
89
89
|
}).catch(() => {
|
|
90
90
|
});
|
|
91
91
|
}
|
|
@@ -93,19 +93,19 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
|
|
|
93
93
|
function ie(e3) {
|
|
94
94
|
oe.value = e3;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
|
|
96
|
+
function te(e3, o2, n2, i2) {
|
|
97
|
+
le(q.value, n2.columnKey).props.base.columnWidth = e3;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function le(e3, o2) {
|
|
100
100
|
let n2 = {};
|
|
101
101
|
return e3.forEach((e4) => {
|
|
102
102
|
if (e4.uuid && e4.uuid === o2) return n2 = e4;
|
|
103
|
-
e4.children && e4.children.length > 0 && (n2 =
|
|
103
|
+
e4.children && e4.children.length > 0 && (n2 = le(e4.children, o2));
|
|
104
104
|
}), n2;
|
|
105
105
|
}
|
|
106
106
|
function re({ row: e3, column: o2, rowIndex: n2, columnIndex: i2 }) {
|
|
107
|
-
let
|
|
108
|
-
return U.value.includes(o2.label) && (
|
|
107
|
+
let t2 = "";
|
|
108
|
+
return U.value.includes(o2.label) && (t2 = "hiddenBorder"), o2.label === z.value && (t2 = "addBorder"), t2;
|
|
109
109
|
}
|
|
110
110
|
function ue(e3) {
|
|
111
111
|
z.value = e3.uuid;
|
|
@@ -118,8 +118,8 @@ const N = { id: "tableDesignMenu", ref: "headerMenu", class: "context-menu" }, F
|
|
|
118
118
|
}
|
|
119
119
|
return x(".el-table__header-wrapper tr", G.configure.items, { animation: 150, ghostClass: "ghost", onStart(e3) {
|
|
120
120
|
} }), (e3, o2) => {
|
|
121
|
-
const n2 =
|
|
122
|
-
return u(), r("div", null, [s(n2, { ref_key: "tableRef", ref: K, "cell-class-name": re, "header-cell-class-name": re, border: "", class: p(I.value), data: A.value, onHeaderDragend:
|
|
121
|
+
const n2 = l("el-table"), i2 = l("el-icon");
|
|
122
|
+
return u(), r("div", null, [s(n2, { ref_key: "tableRef", ref: K, "cell-class-name": re, "header-cell-class-name": re, border: "", class: p(I.value), data: A.value, onHeaderDragend: te, onHeaderContextmenu: Q, onRowClick: J, onCellMouseEnter: se, onCellMouseLeave: ae, style: d(V.value) }, { default: g(() => [(u(true), r(m, null, f(q.value, (o3) => (u(), b(_, { key: o3, listColumns: o3, designProperty: P.value, configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, onSetClickColumn: ue, onOnSelectWidget: Y, onSetColumnData: ie, onCloseMenuVisible: Z, selectWidget: e3.selectWidget }, null, 8, ["listColumns", "designProperty", "configure", "pageDesign", "indexObj", "selectWidget"]))), 128))]), _: 1 }, 8, ["class", "data", "style"]), a("div", { onClick: J, style: { width: "100%", height: "30px" } }), c(a("div", null, [a("ul", N, [a("li", { tabindex: "-1", onClick: o2[0] || (o2[0] = () => ee("createCombinedHeader")) }, [s(i2, null, { default: g(() => [s(h(k))]), _: 1 }), o2[2] || (o2[2] = y(" 创建 "))]), oe.value.props && oe.value.props.base && "$selection" !== oe.value.props.base.prop && "$index" !== oe.value.props.base.prop ? (u(), r("li", { key: 0, tabindex: "-1", onClick: o2[1] || (o2[1] = () => ee("deleteNode")) }, [s(i2, null, { default: g(() => [s(h(H))]), _: 1 }), o2[3] || (o2[3] = y(" 删除 "))])) : v("", true)], 512)], 512), [[C, R.value]])]);
|
|
123
123
|
};
|
|
124
124
|
} });
|
|
125
125
|
export {
|
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 o, openBlock as t, Fragment as r, createElementVNode as u, createVNode as d, withDirectives as n, withCtx as p, 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";
|
|
@@ -26,7 +26,6 @@ const O = { key: 0 }, U = { class: "amb-component-popover-left-menu-main" }, j =
|
|
|
26
26
|
for (let e4 of l2) o2.push({ value: e4.iconName, label: e4.iconName });
|
|
27
27
|
X.value.customOptions = o2, H.value = o2;
|
|
28
28
|
} catch (e3) {
|
|
29
|
-
console.error(e3);
|
|
30
29
|
}
|
|
31
30
|
le.value = false;
|
|
32
31
|
}
|
|
@@ -43,7 +42,6 @@ const O = { key: 0 }, U = { class: "amb-component-popover-left-menu-main" }, j =
|
|
|
43
42
|
const l3 = await fetch(e4, { mode: "cors" }).then((e5) => e5.json()), { css_prefix_text: o2, glyphs: a2 = [] } = l3 ?? {};
|
|
44
43
|
G.value = a2.map((e5) => ({ label: e5.name, value: `${o2}${e5.font_class}` }));
|
|
45
44
|
} catch (e4) {
|
|
46
|
-
console.error(e4);
|
|
47
45
|
}
|
|
48
46
|
le.value = false;
|
|
49
47
|
}
|
|
@@ -57,7 +55,6 @@ const O = { key: 0 }, U = { class: "amb-component-popover-left-menu-main" }, j =
|
|
|
57
55
|
const l3 = await fetch(e4, { mode: "cors", headers: { "Content-Type": "application/json" } }).then((e5) => e5.json()), { css_prefix_text: o2, glyphs: a2 = [] } = l3 ?? {};
|
|
58
56
|
W.value = a2.map((e5) => ({ label: e5.name, value: `${o2}${e5.font_class}` }));
|
|
59
57
|
} catch (e4) {
|
|
60
|
-
console.error(e4);
|
|
61
58
|
}
|
|
62
59
|
le.value = false;
|
|
63
60
|
}
|
|
@@ -2,20 +2,19 @@ import { defineComponent as e, ref as o, resolveComponent as a, createBlock as t
|
|
|
2
2
|
import { Plus as g } from "@element-plus/icons-vue";
|
|
3
3
|
import { getToken as d } from "agilebuilder-ui/src/utils/auth";
|
|
4
4
|
const m = { style: { padding: "8px 0px 0px 0px" } }, f = ["src"], b = e({ __name: "common-style-background", props: { configure: { type: Object, required: true } }, setup(e2) {
|
|
5
|
-
const b2 = e2,
|
|
5
|
+
const b2 = e2, h = o(window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/uploads"), v = d(), y = o(window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/show-image?jwt=" + v + "&serverPath=");
|
|
6
6
|
function k() {
|
|
7
7
|
b2.configure.style.backgroundImageServerPath = void 0;
|
|
8
8
|
}
|
|
9
9
|
function x(e3) {
|
|
10
10
|
if (e3.size > 3145728) return this.$message({ type: "warning", message: this.$t("imatrixUIMessage.exceedFileSize", { fileSize: 3 }), showClose: true }), false;
|
|
11
11
|
}
|
|
12
|
-
v.value;
|
|
13
12
|
const w = (e3, o2) => {
|
|
14
13
|
b2.configure.style.backgroundImageServerPath = e3.serverPath;
|
|
15
14
|
};
|
|
16
15
|
return (o2, d2) => {
|
|
17
16
|
const b3 = a("el-color-picker"), P = a("el-form-item"), _ = a("CloseBold"), I = a("el-icon"), S = a("el-upload"), z = a("el-collapse-item");
|
|
18
|
-
return r(), t(z, { title: "背景", name: "styleBackground", class: "amb-design-attr-group-header" }, { default: l(() => [s("div", m, [i(P, { label: "颜色", style: { "margin-top": "4px" } }, { default: l(() => [i(b3, { modelValue: e2.configure.style.backgroundColor, "onUpdate:modelValue": d2[0] || (d2[0] = (o3) => e2.configure.style.backgroundColor = o3) }, null, 8, ["modelValue"])]), _: 1 }), i(P, { label: "图片", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: l(() => [i(S, { class: "avatar-uploader", accept: "image/png, image/jpeg", "with-credentials": true, headers: { Authorization: n(
|
|
17
|
+
return r(), t(z, { title: "背景", name: "styleBackground", class: "amb-design-attr-group-header" }, { default: l(() => [s("div", m, [i(P, { label: "颜色", style: { "margin-top": "4px" } }, { default: l(() => [i(b3, { modelValue: e2.configure.style.backgroundColor, "onUpdate:modelValue": d2[0] || (d2[0] = (o3) => e2.configure.style.backgroundColor = o3) }, null, 8, ["modelValue"])]), _: 1 }), i(P, { label: "图片", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: l(() => [i(S, { class: "avatar-uploader", accept: "image/png, image/jpeg", "with-credentials": true, headers: { Authorization: n(v) }, action: h.value, "show-file-list": false, "on-success": w, "before-upload": x, style: { position: "relative" }, name: "file" }, { default: l(() => [e2.configure.style.backgroundImageServerPath ? (r(), u("img", { key: 0, src: y.value + e2.configure.style.backgroundImageServerPath + "&_tt=" + (/* @__PURE__ */ new Date()).getTime(), class: "avatar" }, null, 8, f)) : c("", true), e2.configure.style.backgroundImageServerPath ? (r(), t(I, { key: 1, style: { position: "absolute", top: "4px", right: "4px", "font-size": "15px", "background-color": "red" }, onClick: p(k, ["stop"]) }, { default: l(() => [i(_)]), _: 1 })) : (r(), t(I, { key: 2, class: "avatar-uploader-icon" }, { default: l(() => [i(n(g))]), _: 1 }))]), _: 1 }, 8, ["headers", "action"])]), _: 1 })])]), _: 1 });
|
|
19
18
|
};
|
|
20
19
|
} });
|
|
21
20
|
export {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as t, createBlock as a, openBlock as o, withCtx as u, createVNode as i, createElementBlock as n, Fragment as d, renderList as s, unref as m } from "vue";
|
|
2
|
+
import { getUuidv4 as r } from "../../../utils/common-util.js";
|
|
3
|
+
import { getCustomFuncs as p } from "../../../utils/page-event-util.js";
|
|
4
|
+
import c from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import f from "../chart/statistical-table/component/table-showcondition.vue.js";
|
|
6
|
+
const g = e({ __name: "common-template-select", props: { modelValue: {}, pageDesign: {}, tableConfigure: {} }, emits: ["update:modelValue"], setup(e2, { emit: g2 }) {
|
|
7
|
+
const b = g2, V = e2;
|
|
8
|
+
if (V.modelValue && V.modelValue.length > 0) {
|
|
9
|
+
const e3 = V.modelValue[0];
|
|
10
|
+
if (e3.templateUuid && e3.templateName) {
|
|
11
|
+
const e4 = [];
|
|
12
|
+
V.modelValue.forEach((l2) => {
|
|
13
|
+
l2.templateUuid && l2.templateName && e4.push({ uuid: r(), templates: [{ templateName: l2.templateName, templateUuid: l2.templateUuid }], conditions: [], scopeFunc: null });
|
|
14
|
+
}), b("update:modelValue", e4);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const w = l([]);
|
|
18
|
+
function h(e3, l2) {
|
|
19
|
+
const t2 = { uuid: r(), templates: [], conditions: [], scopeFunc: "" };
|
|
20
|
+
void 0 !== l2 ? V.modelValue.splice(l2 + 1, 0, t2) : V.modelValue.push(t2);
|
|
21
|
+
}
|
|
22
|
+
function v(e3) {
|
|
23
|
+
e3.row && (e3.row.conditions = e3.data);
|
|
24
|
+
}
|
|
25
|
+
return function() {
|
|
26
|
+
var _a;
|
|
27
|
+
const e3 = (_a = V.pageDesign) == null ? void 0 : _a.systemVersion;
|
|
28
|
+
c.post(window.$vueApp.config.globalProperties.baseAPI + `/dc/template-management/list/${V.pageDesign.systemCode}?publishVersion=${e3}`, {}).then((e4) => {
|
|
29
|
+
w.value = e4.data;
|
|
30
|
+
});
|
|
31
|
+
}(), V.modelValue || b("update:modelValue", []), (e3, l2) => {
|
|
32
|
+
const r2 = t("Plus"), c2 = t("el-icon"), g3 = t("Delete"), b2 = t("el-table-column"), C = t("el-option"), U = t("el-select"), _ = t("el-table");
|
|
33
|
+
return o(), a(_, { data: e3.modelValue, style: { width: "100%" }, "row-key": "uuid" }, { default: u(() => [i(b2, { label: "操作", width: "55", align: "center" }, { header: u(() => [i(c2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: l2[0] || (l2[0] = (e4) => h()) }, { default: u(() => [i(r2)]), _: 1 })]), default: u((e4) => [i(c2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) => h(e4.row, e4.$index) }, { default: u(() => [i(r2)]), _: 2 }, 1032, ["onClick"]), i(c2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => {
|
|
34
|
+
return e4.row, t2 = e4.$index, void V.modelValue.splice(t2, 1);
|
|
35
|
+
var t2;
|
|
36
|
+
} }, { default: u(() => [i(g3)]), _: 2 }, 1032, ["onClick"])]), _: 1 }), i(b2, { label: "模板", width: "150" }, { default: u((e4) => [i(U, { modelValue: e4.row.templateFileUuids, "onUpdate:modelValue": (l3) => e4.row.templateFileUuids = l3, filterable: "", multiple: "", onChange: (l3) => {
|
|
37
|
+
return t2 = l3, a2 = e4.row, e4.$index, void (t2.length > 0 ? (a2.templates = [], w.value.filter((e5) => t2.includes(e5.uuid)).forEach((e5) => {
|
|
38
|
+
a2.templates.push({ templateName: e5.fileName, templateUuid: e5.uuid });
|
|
39
|
+
})) : a2.templates = []);
|
|
40
|
+
var t2, a2;
|
|
41
|
+
} }, { default: u(() => [(o(true), n(d, null, s(w.value, (e5) => (o(), a(C, { key: e5.uuid, label: e5.fileName, value: e5.uuid }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }), i(b2, { label: "条件" }, { default: u((l3) => [i(f, { data: l3.row.conditions, pageDesign: e3.pageDesign, row: l3.row, tableConfigure: e3.tableConfigure, "onUpdate:data": v }, null, 8, ["data", "pageDesign", "row", "tableConfigure"])]), _: 1 }), i(b2, { label: "自定义条件" }, { default: u((e4) => [i(U, { modelValue: e4.row.scopeFunc, "onUpdate:modelValue": (l3) => e4.row.scopeFunc = l3, clearable: "", title: e4.row.scopeFunc, size: "small", placeholder: "请选择" }, { default: u(() => [(o(true), n(d, null, s(m(p)(), (e5) => (o(), a(C, { key: e5.value, label: e5.label, value: e5.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title"])]), _: 1 })]), _: 1 }, 8, ["data"]);
|
|
42
|
+
};
|
|
43
|
+
} });
|
|
44
|
+
export {
|
|
45
|
+
g as default
|
|
46
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = [{ value: "data", label: "数据模型" }, { value: "page", label: "页面变量" }, { value: "task", label: "流程变量" }, { value: "context", label: "环境变量" }, { value: "system", label: "系统参数" }, { value: "request", label: "请求参数" }, { value: "params", label: "方法参数" }, { value: "fixed", label: "固定值" }, { value: "row", label: "列模型" }], a = [{ value: "currentTime", label: "当前时间" }, { value: "currentDate", label: "当前日期" }, { value: "currentTransactorId", label: "当前用户ID" }, { value: "currentTransactor", label: "当前用户登录名" }, { value: "currentTransactorName", label: "当前用户姓名" }, { value: "currentTransactorNameEng", label: "当前用户姓名(英文)" }, { value: "currentUserEmail", label: "当前用户邮箱" }, { value: "currentTransactorMainDepartmentId", label: "当前用户部门ID" }, { value: "currentTransactorMainDepartmentCode", label: "当前用户部门编码" }, { value: "currentTransactorMainDepartment", label: "当前用户部门名称" }, { value: "currentBranchId", label: "所属分支ID" }, { value: "currentBranchName", label: "所属分支名称" }, { value: "currentCompanyCode", label: "所属租户编码" }, { value: "currentYear", label: "当前年" }, { value: "currentMonth", label: "当前月" }], l = [{ value: "transactor", label: "当前办理人" }, { value: "nodeId", label: "环节名称" }, { value: "nodeCode", label: "环节编码" }, { value: "assigner", label: "当前指派人" }, { value: "trustor", label: "当前委托人" }];
|
|
1
|
+
const e = [{ value: "data", label: "数据模型" }, { value: "page", label: "页面变量" }, { value: "task", label: "流程变量" }, { value: "context", label: "环境变量" }, { value: "system", label: "系统参数" }, { value: "request", label: "请求参数" }, { value: "params", label: "方法参数" }, { value: "fixed", label: "固定值" }, { value: "row", label: "列模型" }], a = [{ value: "currentTime", label: "当前时间" }, { value: "currentDate", label: "当前日期" }, { value: "currentTransactorId", label: "当前用户ID" }, { value: "currentTransactor", label: "当前用户登录名" }, { value: "currentTransactorName", label: "当前用户姓名" }, { value: "currentTransactorNameEng", label: "当前用户姓名(英文)" }, { value: "currentUserEmail", label: "当前用户邮箱" }, { value: "currentTransactorMainDepartmentId", label: "当前用户部门ID" }, { value: "currentTransactorMainDepartmentCode", label: "当前用户部门编码" }, { value: "currentTransactorMainDepartment", label: "当前用户部门名称" }, { value: "currentBranchId", label: "所属分支ID" }, { value: "currentBranchName", label: "所属分支名称" }, { value: "currentBranchCode", label: "所属分支编码" }, { value: "currentCompanyCode", label: "所属租户编码" }, { value: "currentYear", label: "当前年" }, { value: "currentMonth", label: "当前月" }], l = [{ value: "transactor", label: "当前办理人" }, { value: "nodeId", label: "环节名称" }, { value: "nodeCode", label: "环节编码" }, { value: "assigner", label: "当前指派人" }, { value: "trustor", label: "当前委托人" }];
|
|
2
2
|
function r(a2, l2) {
|
|
3
3
|
return a2 && a2.length > 0 ? e.filter((e2) => l2 && "params" == e2.value || a2.includes(e2.value)) : l2 ? e : e.filter((e2) => "params" != e2.value);
|
|
4
4
|
}
|
|
@@ -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" } }, $ = { style: { "font-size": "10px", "line-height": "40px" } }, q = { style: { "margin-top": "4px", "margin-bottom": "8px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, D = { key: 0, style: { display: "flex" } }, P = ["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)), oe.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 && Q.value.$el.contains(e3.target), 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", $, [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", q, [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, { type: "default", 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", D, [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, P)) : (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 o from "./common-variable-bind.vue3.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = e(o, [["__scopeId", "data-v-3324003e"]]);
|
|
137
5
|
export {
|
|
138
|
-
|
|
6
|
+
r as default
|
|
139
7
|
};
|