super-page-designer 2.2.13 → 2.2.16

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.
Files changed (39) hide show
  1. package/dist/es/components/design/utils/common-util.d.ts +1 -0
  2. package/dist/es/components/design/utils/common-util.js +20 -15
  3. package/dist/es/components/design/utils/data-table-util.d.ts +1 -1
  4. package/dist/es/components/design/utils/data-table-util.js +52 -55
  5. package/dist/es/components/design/utils/page-table-util.js +7 -7
  6. package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +34 -33
  7. package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +23 -20
  8. package/dist/es/components/design/views/assemblys/button/component/condition-dialog.vue.js +16 -15
  9. package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +36 -31
  10. package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue.js +1 -1
  11. package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue2.js +29 -28
  12. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue.js +13 -13
  13. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +48 -48
  14. package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +39 -34
  15. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
  16. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
  17. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
  18. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
  19. package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +7 -7
  20. package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +2 -2
  21. package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
  22. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +2 -26
  23. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +26 -2
  24. package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +5 -5
  25. package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +21 -21
  26. package/dist/es/components/design/views/assemblys/form/common/uploading.vue.js +4 -4
  27. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +7 -7
  28. package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +5 -5
  29. package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +1 -1
  30. package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +12 -11
  31. package/dist/es/components/design/views/assemblys/page/variable-dialog.vue.js +1 -1
  32. package/dist/es/components/design/views/design/page-event/{config.vue.js → config.vue2.js} +2 -2
  33. package/dist/es/components/design/views/design/page-event/config.vue3.js +5 -5
  34. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +50 -50
  35. package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +50 -50
  36. package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
  37. package/dist/es/style.css +15 -15
  38. package/package.json +5 -5
  39. /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.js} +0 -0
@@ -1,45 +1,50 @@
1
- import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, 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";
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 g } from "@element-plus/icons-vue";
4
- import b from "./combination.vue.js";
5
- import w from "../../common/common-variable-bind.vue.js";
6
- const y = { class: "dialog-footer" }, _ = e({ __name: "set-dialog", props: { configure: { type: Object, default: () => {
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.vue.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: () => {
7
8
  } }, pageDesign: { type: Object, default: () => {
9
+ } }, tableConfigure: { type: Object, default: () => {
8
10
  } } }, emits: ["close", "save"], setup(e2, { emit: _2 }) {
9
- const V = e2, C = _2, F = l({}), D = l(false), k = l(""), h = l(null), L = l(null), N = l([]);
10
- function U() {
11
- D.value = false;
12
- }
13
- function j(e3) {
14
- N.value[k.value].conditionList = e3;
15
- }
16
- function M() {
17
- C("save", N.value), C("close");
11
+ const V = e2, F = _2, D = l({}), j = l(false), k = l(""), h = l(null), L = l(null), M = l(null);
12
+ var N;
13
+ (N = V.tableConfigure) && (M.value = C(N.modelFields));
14
+ const U = l([]);
15
+ function O() {
16
+ j.value = false;
18
17
  }
19
18
  function T(e3) {
20
- L.value.setCurrentRow(e3);
19
+ U.value[k.value].conditionList = e3;
21
20
  }
22
21
  function x() {
23
- N.value = N.value.filter((e3) => e3 !== F.value);
22
+ F("save", U.value), F("close");
24
23
  }
25
24
  function z(e3) {
26
- F.value = e3;
25
+ L.value.setCurrentRow(e3);
27
26
  }
28
- function O() {
29
- N.value.push({});
27
+ function R() {
28
+ U.value = U.value.filter((e3) => e3 !== D.value);
29
+ }
30
+ function S(e3) {
31
+ D.value = e3;
32
+ }
33
+ function $() {
34
+ U.value.push({});
30
35
  }
31
- return V.configure.props.setValueList && (N.value = V.configure.props.setValueList), (l2, _3) => {
32
- const F2 = a("el-button"), R = a("el-row"), S = a("el-option"), $ = a("el-select"), q = a("el-table-column"), A = a("el-input"), B = a("el-table"), E = a("el-dialog");
33
- return t(), o(E, { "model-value": "", title: "自动设值", "append-to-body": "", onClose: _3[1] || (_3[1] = (e3) => C("close")) }, { footer: n(() => [m("div", y, [u(F2, { onClick: _3[0] || (_3[0] = (e3) => C("close")) }, { default: n(() => _3[4] || (_3[4] = [r("取消")])), _: 1 }), u(F2, { type: "primary", onClick: M }, { default: n(() => _3[5] || (_3[5] = [r(" 确定 ")])), _: 1 })])]), default: n(() => [u(R, { style: { "padding-bottom": "8px" } }, { default: n(() => [u(F2, { icon: d(v), plain: "", type: "primary", onClick: O }, { default: n(() => _3[2] || (_3[2] = [r(" 添加 ")])), _: 1 }, 8, ["icon"]), u(F2, { icon: d(g), plain: "", type: "primary", onClick: x }, { default: n(() => _3[3] || (_3[3] = [r(" 删除 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), u(B, { ref_key: "tableRef", ref: L, "highlight-current-row": "", data: N.value, style: { width: "100%" }, onCurrentChange: z }, { default: n(() => [u(q, { prop: "date", label: "填写方式", align: "center" }, { default: n((e3) => [u($, { modelValue: e3.row.fillType, "onUpdate:modelValue": (l3) => e3.row.fillType = l3, clearable: "", size: "default", onFocus: (l3) => T(e3.row) }, { default: n(() => [u(S, { label: "覆盖", value: "cover" }), u(S, { label: "追加", value: "append" }), u(S, { label: "插入最前面", value: "prepend" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), u(q, { prop: "date", label: "前置条件", align: "center" }, { default: n((l3) => [u(A, { "model-value": d(f)(l3.row.conditionList, e2.pageDesign.modelFields, e2.pageDesign.modelFieldsMap), size: "default", onFocus: (e3) => T(l3.row), onClick: (e3) => {
34
- return a2 = l3.row, o2 = l3.$index, h.value = a2.conditionList, k.value = o2, void (D.value = true);
35
- var a2, o2;
36
- } }, null, 8, ["model-value", "onFocus", "onClick"])]), _: 1 }), u(q, { label: "执行方法时设置", align: "center" }, { default: n(() => [u(q, { prop: "name", label: "字段", align: "center" }, { default: n((l3) => [u($, { modelValue: l3.row.propDbName, "onUpdate:modelValue": (e3) => l3.row.propDbName = e3, clearable: "", size: "default", onFocus: (e3) => T(l3.row), onChange: (e3) => function(e4, l4) {
37
- const a2 = V.pageDesign.modelFieldsMap[l4];
38
- e4.field = a2.name, e4.dataType = a2.dataType;
39
- }(l3.row, l3.row.propDbName) }, { default: n(() => [(t(true), p(s, null, c(e2.pageDesign.modelFields, (e3) => (t(), o(S, { key: e3.id, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus", "onChange"])]), _: 1 }), u(q, { prop: "address", label: "值", align: "center" }, { default: n((e3) => [u(w, { onFocus: (l3) => T(e3.row), modelValue: e3.row.autoValue, "onUpdate:modelValue": (l3) => {
40
- return a2 = l3, void (e3.row.autoValue = a2);
41
- var a2;
42
- } }, null, 8, ["onFocus", "modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["data"]), D.value ? (t(), o(b, { key: 0, list: h.value, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, onSave: j, onClose: U }, null, 8, ["list", "fieldNameList", "fieldMap"])) : i("", true)]), _: 1 });
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
+ var o2, a2;
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
+ 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
+ return o2 = l3, void (e3.row.autoValue = o2);
46
+ var o2;
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 });
43
48
  };
44
49
  } });
45
50
  export {
@@ -1,7 +1,7 @@
1
1
  import o from "./common-home-chart.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = e(o, [["__scopeId", "data-v-3ec7bf4c"]]);
4
+ const m = e(o, [["__scopeId", "data-v-606a3fe0"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,51 +1,52 @@
1
1
  import { defineComponent as e, ref as a, reactive as o, resolveComponent as l, createBlock as i, openBlock as n, withCtx as p, createElementVNode as t, createCommentVNode as u, createVNode as r, createTextVNode as s, unref as d, createElementBlock as g, Fragment as m, renderList as c, resolveDynamicComponent as f } from "vue";
2
- import { Top as h, Bottom as v } from "@element-plus/icons-vue";
3
- import y from "../../common/common-variable-bind.vue.js";
2
+ import { Top as h, Bottom as y } from "@element-plus/icons-vue";
3
+ import v from "../../common/common-variable-bind.vue.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
- const _ = { style: { padding: "8px 0px 0px 0px" } }, V = { class: "dialog-footer" }, k = e({ __name: "common-home-chart", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => {
7
+ import { getUuidv4 as _ } from "../../../../utils/common-util.js";
8
+ const V = { style: { padding: "8px 0px 0px 0px" } }, k = { class: "dialog-footer" }, w = e({ __name: "common-home-chart", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => {
8
9
  } } }, setup(e2) {
9
- const k2 = e2, w = a(false), U = a(false), D = a({}), j = a({}), $ = o({ index: 0 });
10
- k2.configure.pushHomepage || (k2.configure.pushHomepage = { enable: false, initConfig: [], searchConditions: [] });
11
- const O = (e3) => {
12
- if (k2.pageDesign.homepageChartUuids || (k2.pageDesign.homepageChartUuids = []), e3) k2.pageDesign.homepageChartUuids.push(k2.configure.uuid);
10
+ const w2 = e2, U = a(false), D = a(false), j = a({}), $ = a({}), O = o({ index: 0 });
11
+ w2.configure.pushHomepage || (w2.configure.pushHomepage = { enable: false, initConfig: [], searchConditions: [] });
12
+ const z = (e3) => {
13
+ if (w2.pageDesign.homepageChartUuids || (w2.pageDesign.homepageChartUuids = []), e3) w2.pageDesign.homepageChartUuids.push(w2.configure.uuid);
13
14
  else {
14
- const e4 = k2.pageDesign.homepageChartUuids.indexOf(k2.configure.uuid);
15
- e4 > -1 && k2.pageDesign.homepageChartUuids.splice(e4, 1);
15
+ const e4 = w2.pageDesign.homepageChartUuids.indexOf(w2.configure.uuid);
16
+ e4 > -1 && w2.pageDesign.homepageChartUuids.splice(e4, 1);
16
17
  }
17
- }, z = () => {
18
- w.value = true;
19
18
  }, T = () => {
20
- k2.configure.pushHomepage.initConfig.unshift({ prop: "", value: "" });
19
+ U.value = true;
21
20
  }, q = () => {
22
- k2.configure.pushHomepage.searchConditions.push(C());
23
- }, A = (e3, a2) => {
24
- const o2 = k2.configure.pushHomepage.searchConditions[e3];
25
- "up" === a2 ? (k2.configure.pushHomepage.searchConditions[e3] = k2.configure.pushHomepage.searchConditions[e3 - 1], k2.configure.pushHomepage.searchConditions[e3 - 1] = o2) : (k2.configure.pushHomepage.searchConditions[e3] = k2.configure.pushHomepage.searchConditions[e3 + 1], k2.configure.pushHomepage.searchConditions[e3 + 1] = o2);
21
+ w2.configure.pushHomepage.initConfig.unshift({ prop: "", value: "", uuid: _() });
22
+ }, A = () => {
23
+ w2.configure.pushHomepage.searchConditions.push(C());
24
+ }, R = (e3, a2) => {
25
+ const o2 = w2.configure.pushHomepage.searchConditions[e3];
26
+ "up" === a2 ? (w2.configure.pushHomepage.searchConditions[e3] = w2.configure.pushHomepage.searchConditions[e3 - 1], w2.configure.pushHomepage.searchConditions[e3 - 1] = o2) : (w2.configure.pushHomepage.searchConditions[e3] = w2.configure.pushHomepage.searchConditions[e3 + 1], w2.configure.pushHomepage.searchConditions[e3 + 1] = o2);
26
27
  };
27
28
  function B(e3) {
28
- x(e3), D.value = e3, j.value = b(e3.name);
29
+ x(e3), j.value = e3, $.value = b(e3.name);
29
30
  }
30
31
  return (a2, o2) => {
31
- const C2 = l("el-switch"), x2 = l("el-button"), E = l("el-form-item"), F = l("el-alert"), G = l("el-table-column"), I = l("el-table"), J = l("el-input"), K = l("el-button-group"), L = l("el-drawer"), M = l("el-dialog"), N = l("el-collapse-item");
32
- return n(), i(N, { title: "推送首页", name: "pushHomepage", class: "amb-design-attr-group-header" }, { default: p(() => [t("div", _, [r(E, { label: "是否推送", class: "amb-design-attr-item" }, { default: p(() => [r(C2, { modelValue: e2.configure.pushHomepage.enable, "onUpdate:modelValue": o2[0] || (o2[0] = (a3) => e2.configure.pushHomepage.enable = a3), "inline-prompt": "", "active-text": "是", "inactive-text": "否", onChange: O }, null, 8, ["modelValue"]), e2.configure.pushHomepage.enable ? (n(), i(x2, { key: 0, type: "primary", onClick: z }, { default: p(() => o2[4] || (o2[4] = [s(" 编辑 ")])), _: 1 })) : u("", true)]), _: 1 })]), e2.configure.pushHomepage && e2.configure.pushHomepage.enable ? (n(), i(M, { key: 0, id: "pushHomepageDialog", "append-to-body": false, modelValue: w.value, "onUpdate:modelValue": o2[3] || (o2[3] = (e3) => w.value = e3), title: "首页图表查询设置", top: "2vh" }, { footer: p(() => [t("div", V, [r(x2, { type: "primary", onClick: o2[1] || (o2[1] = (e3) => w.value = false) }, { default: p(() => o2[10] || (o2[10] = [s(" 关闭 ")])), _: 1 })])]), default: p(() => [r(F, { title: "初始化设置", type: "info", closable: false }), r(I, { data: e2.configure.pushHomepage.initConfig, style: { width: "100%" }, "max-height": "250", "empty-text": "请添加初始化设置" }, { default: p(() => [r(G, { align: "center", label: "字段名", prop: "prop" }, { default: p((e3) => [(n(), i(y, { key: e3.row.prop, modelValue: e3.row.prop, paramTypes: ["page"], "onUpdate:modelValue": (a3) => {
32
+ const C2 = l("el-switch"), x2 = l("el-button"), _2 = l("el-form-item"), E = l("el-alert"), F = l("el-table-column"), G = l("el-table"), I = l("el-input"), J = l("el-button-group"), K = l("el-drawer"), L = l("el-dialog"), M = l("el-collapse-item");
33
+ return n(), i(M, { title: "推送首页", name: "pushHomepage", class: "amb-design-attr-group-header" }, { default: p(() => [t("div", V, [r(_2, { label: "是否推送", class: "amb-design-attr-item" }, { default: p(() => [r(C2, { modelValue: e2.configure.pushHomepage.enable, "onUpdate:modelValue": o2[0] || (o2[0] = (a3) => e2.configure.pushHomepage.enable = a3), "inline-prompt": "", "active-text": "是", "inactive-text": "否", onChange: z }, null, 8, ["modelValue"]), e2.configure.pushHomepage.enable ? (n(), i(x2, { key: 0, type: "primary", onClick: T }, { default: p(() => o2[4] || (o2[4] = [s(" 编辑 ")])), _: 1 })) : u("", true)]), _: 1 })]), e2.configure.pushHomepage && e2.configure.pushHomepage.enable ? (n(), i(L, { key: 0, id: "pushHomepageDialog", "append-to-body": false, modelValue: U.value, "onUpdate:modelValue": o2[3] || (o2[3] = (e3) => U.value = e3), title: "首页图表查询设置", top: "2vh" }, { footer: p(() => [t("div", k, [r(x2, { type: "primary", onClick: o2[1] || (o2[1] = (e3) => U.value = false) }, { default: p(() => o2[10] || (o2[10] = [s(" 关闭 ")])), _: 1 })])]), default: p(() => [r(E, { title: "初始化设置", type: "info", closable: false }), r(G, { data: e2.configure.pushHomepage.initConfig, style: { width: "100%" }, "max-height": "250", "row-key": "uuid", "empty-text": "请添加初始化设置" }, { default: p(() => [r(F, { align: "center", label: "字段名", prop: "prop" }, { default: p((e3) => [(n(), i(v, { key: e3.row.prop, modelValue: e3.row.prop, paramTypes: ["page"], "onUpdate:modelValue": (a3) => {
33
34
  return o3 = a3, void ((l2 = e3.row) && (l2.prop = o3));
34
35
  var o3, l2;
35
- } }, null, 8, ["modelValue", "onUpdate:modelValue"]))]), _: 1 }), r(G, { align: "center", label: "值", prop: "value" }, { default: p((e3) => [r(y, { paramTypes: ["context", "system", "fixed"], modelValue: e3.row.value, "onUpdate:modelValue": (a3) => ((e4, a4) => {
36
+ } }, null, 8, ["modelValue", "onUpdate:modelValue"]))]), _: 1 }), r(F, { align: "center", label: "值", prop: "value" }, { default: p((e3) => [r(v, { paramTypes: ["context", "system", "fixed"], modelValue: e3.row.value, isRange: true, "onUpdate:modelValue": (a3) => ((e4, a4) => {
36
37
  a4 && (a4.value = e4);
37
- })(a3, e3.row) }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(G, { align: "center" }, { header: p(() => [r(x2, { type: "primary", onClick: T }, { default: p(() => o2[5] || (o2[5] = [s(" 添加 ")])), _: 1 })]), default: p((e3) => [r(x2, { size: "small", type: "danger", onClick: (a3) => {
38
- return o3 = e3.$index, e3.row, void k2.configure.pushHomepage.initConfig.splice(o3, 1);
38
+ })(a3, e3.row) }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(F, { align: "center" }, { header: p(() => [r(x2, { type: "primary", onClick: q }, { default: p(() => o2[5] || (o2[5] = [s(" 添加 ")])), _: 1 })]), default: p((e3) => [r(x2, { size: "small", type: "danger", onClick: (a3) => {
39
+ return o3 = e3.$index, e3.row, void w2.configure.pushHomepage.initConfig.splice(o3, 1);
39
40
  var o3;
40
- } }, { default: p(() => o2[6] || (o2[6] = [s(" 删除 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]), r(F, { title: "查询条件设置", type: "info", closable: false }), r(I, { data: e2.configure.pushHomepage.searchConditions, style: { width: "100%" }, height: "400", "default-expand-all": true, "empty-text": "请添加查询条件设置" }, { default: p(() => [r(G, { align: "center", label: "标签名", prop: "prop" }, { default: p((e3) => [r(J, { modelValue: e3.row.props.base.title, "onUpdate:modelValue": (a3) => e3.row.props.base.title = a3, class: "table-input-width", placeholder: "请输入标签名" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(G, { align: "center", label: "字段", prop: "value" }, { default: p((e3) => [(n(), i(y, { key: e3.row.props.base.prop, paramTypes: ["data", "page"], "model-value": e3.row.props.base.prop, "onUpdate:modelValue": (a3) => e3.row.props.base.prop = a3 }, null, 8, ["model-value", "onUpdate:modelValue"]))]), _: 1 }), r(G, { align: "center", label: "组件配置" }, { default: p((e3) => [r(x2, { size: "small", type: "primary", onClick: (a3) => {
41
- return e3.$index, o3 = e3.row, U.value = true, D.value = o3, void (j.value = b(o3.name));
41
+ } }, { default: p(() => o2[6] || (o2[6] = [s(" 删除 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]), r(E, { title: "查询条件设置", type: "info", closable: false }), r(G, { data: e2.configure.pushHomepage.searchConditions, style: { width: "100%" }, height: "400", "default-expand-all": true, "empty-text": "请添加查询条件设置" }, { default: p(() => [r(F, { align: "center", label: "标签名", prop: "prop" }, { default: p((e3) => [r(I, { modelValue: e3.row.props.base.title, "onUpdate:modelValue": (a3) => e3.row.props.base.title = a3, class: "table-input-width", placeholder: "请输入标签名" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(F, { align: "center", label: "字段", prop: "value" }, { default: p((e3) => [(n(), i(v, { key: e3.row.props.base.prop, paramTypes: ["data", "page"], "model-value": e3.row.props.base.prop, "onUpdate:modelValue": (a3) => e3.row.props.base.prop = a3 }, null, 8, ["model-value", "onUpdate:modelValue"]))]), _: 1 }), r(F, { align: "center", label: "组件配置" }, { default: p((e3) => [r(x2, { size: "small", type: "primary", onClick: (a3) => {
42
+ return e3.$index, o3 = e3.row, D.value = true, j.value = o3, void ($.value = b(o3.name));
42
43
  var o3;
43
- } }, { default: p(() => o2[7] || (o2[7] = [s(" 设置 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), r(G, { align: "center" }, { header: p(() => [r(x2, { type: "primary", onClick: q }, { default: p(() => o2[8] || (o2[8] = [s(" 添加 ")])), _: 1 })]), default: p((a3) => [r(K, { class: "ml-4" }, { default: p(() => [r(x2, { type: "primary", disabled: 0 === a3.$index, icon: d(h), onClick: (e3) => A(a3.$index, "up") }, null, 8, ["disabled", "icon", "onClick"]), r(x2, { type: "primary", disabled: a3.$index === e2.configure.pushHomepage.searchConditions.length - 1, icon: d(v), onClick: (e3) => A(a3.$index, "down") }, null, 8, ["disabled", "icon", "onClick"])]), _: 2 }, 1024), r(x2, { size: "small", type: "danger", onClick: (e3) => {
44
- return o3 = a3.$index, a3.row, void k2.configure.pushHomepage.searchConditions.splice(o3, 1);
44
+ } }, { default: p(() => o2[7] || (o2[7] = [s(" 设置 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), r(F, { align: "center" }, { header: p(() => [r(x2, { type: "primary", onClick: A }, { default: p(() => o2[8] || (o2[8] = [s(" 添加 ")])), _: 1 })]), default: p((a3) => [r(J, { class: "ml-4" }, { default: p(() => [r(x2, { type: "primary", disabled: 0 === a3.$index, icon: d(h), onClick: (e3) => R(a3.$index, "up") }, null, 8, ["disabled", "icon", "onClick"]), r(x2, { type: "primary", disabled: a3.$index === e2.configure.pushHomepage.searchConditions.length - 1, icon: d(y), onClick: (e3) => R(a3.$index, "down") }, null, 8, ["disabled", "icon", "onClick"])]), _: 2 }, 1024), r(x2, { size: "small", type: "danger", onClick: (e3) => {
45
+ return o3 = a3.$index, a3.row, void w2.configure.pushHomepage.searchConditions.splice(o3, 1);
45
46
  var o3;
46
- } }, { default: p(() => o2[9] || (o2[9] = [s(" 删除 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]), r(L, { modelValue: U.value, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => U.value = e3), "with-header": false }, { default: p(() => [(n(true), g(m, null, c(e2.configure.pushHomepage.searchConditions, (a3, o3) => (n(), g("div", { key: a3.uuid, style: { display: "none" } }, [r(H, { indexObj: $, configure: a3, pageDesign: e2.pageDesign }, null, 8, ["indexObj", "configure", "pageDesign"])]))), 128)), (n(), i(f(j.value), { key: "attr_" + D.value.uuid, pageDesign: e2.pageDesign, configure: D.value, onChangeAssembly: B }, null, 40, ["pageDesign", "configure"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"])) : u("", true)]), _: 1 });
47
+ } }, { default: p(() => o2[9] || (o2[9] = [s(" 删除 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]), r(K, { modelValue: D.value, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => D.value = e3), "with-header": false }, { default: p(() => [(n(true), g(m, null, c(e2.configure.pushHomepage.searchConditions, (a3, o3) => (n(), g("div", { key: a3.uuid, style: { display: "none" } }, [r(H, { indexObj: O, configure: a3, pageDesign: e2.pageDesign }, null, 8, ["indexObj", "configure", "pageDesign"])]))), 128)), (n(), i(f($.value), { key: "attr_" + j.value.uuid, pageDesign: e2.pageDesign, configure: j.value, onChangeAssembly: B }, null, 40, ["pageDesign", "configure"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"])) : u("", true)]), _: 1 });
47
48
  };
48
49
  } });
49
50
  export {
50
- k as default
51
+ w as default
51
52
  };
@@ -1,23 +1,23 @@
1
- import { defineComponent as l, ref as e, resolveComponent as a, createElementBlock as t, openBlock as u, Fragment as o, createElementVNode as d, createVNode as n, withCtx as p, createTextVNode as r, renderList as f } from "vue";
2
- import { ElMessage as m } from "element-plus";
3
- const s = { style: { padding: "0 10px" } }, i = l({ __name: "font-style-dialog", props: { data: { type: Object, required: true, default: () => {
1
+ import { defineComponent as l, ref as e, resolveComponent as a, createElementBlock as t, openBlock as u, Fragment as o, createElementVNode as d, createBlock as n, createCommentVNode as p, createVNode as r, withCtx as f, createTextVNode as s, renderList as m } from "vue";
2
+ import { ElMessage as i } from "element-plus";
3
+ const y = { style: { padding: "0 10px" } }, v = l({ __name: "font-style-dialog", props: { data: { type: Object, required: true, default: () => {
4
4
  } }, title: { type: String, default: "设置样式" } }, setup(l2) {
5
- const i2 = l2, y = ["8px", "10px", "12px", "14px", "16px", "18px", "20px", "24px", "28px"], v = e(false), c = e({});
6
- function _(l3) {
5
+ const v2 = l2, c = ["8px", "10px", "12px", "14px", "16px", "18px", "20px", "24px", "28px"], _ = e(false), V = e({});
6
+ function b(l3) {
7
7
  try {
8
- c.value.customStyle && JSON.parse(c.value.customStyle), l3();
8
+ V.value.customStyle && JSON.parse(V.value.customStyle), l3();
9
9
  } catch (l4) {
10
- m.error("style需要是json格式");
10
+ i.error("style需要是json格式");
11
11
  }
12
12
  }
13
- function V() {
14
- v.value = true;
13
+ function x() {
14
+ _.value = true;
15
15
  }
16
- return i2.data && (c.value = i2.data), c.value.style || (c.value.style = {}), (e2, m2) => {
17
- const i3 = a("el-button"), b = a("el-radio"), x = a("el-radio-group"), S = a("el-form-item"), g = a("el-col"), h = a("el-row"), U = a("el-color-picker"), k = a("el-option"), w = a("el-select"), z = a("el-text"), C = a("el-input"), j = a("el-form"), O = a("el-dialog");
18
- return u(), t(o, null, [d("div", null, [n(i3, { type: "primary", onClick: V }, { default: p(() => m2[7] || (m2[7] = [r("编辑")])), _: 1 })]), n(O, { modelValue: v.value, "onUpdate:modelValue": m2[6] || (m2[6] = (l3) => v.value = l3), title: l2.title, width: "900", "append-to-body": "", "before-close": _ }, { default: p(() => [n(j, { model: c.value, "label-width": "80" }, { default: p(() => [n(h, null, { default: p(() => [n(g, { span: 12 }, { default: p(() => [n(S, { label: "加粗" }, { default: p(() => [n(x, { modelValue: c.value.style.fontWeight, "onUpdate:modelValue": m2[0] || (m2[0] = (l3) => c.value.style.fontWeight = l3), class: "ml-4" }, { default: p(() => [n(b, { value: "bold" }, { default: p(() => m2[8] || (m2[8] = [r("是")])), _: 1 }), n(b, { value: "normal" }, { default: p(() => m2[9] || (m2[9] = [r("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), _: 1 }), n(g, { span: 12 }, { default: p(() => [n(S, { label: "倾斜" }, { default: p(() => [n(x, { modelValue: c.value.style.fontStyle, "onUpdate:modelValue": m2[1] || (m2[1] = (l3) => c.value.style.fontStyle = l3), class: "ml-4" }, { default: p(() => [n(b, { value: "italic" }, { default: p(() => m2[10] || (m2[10] = [r("是")])), _: 1 }), n(b, { value: "normal" }, { default: p(() => m2[11] || (m2[11] = [r("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), n(h, null, { default: p(() => [n(g, { span: 12 }, { default: p(() => [n(S, { label: "字体颜色" }, { default: p(() => [n(U, { modelValue: c.value.style.color, "onUpdate:modelValue": m2[2] || (m2[2] = (l3) => c.value.style.color = l3) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }), n(g, { span: 12 }, { default: p(() => [n(S, { label: "背景颜色" }, { default: p(() => [n(U, { modelValue: c.value.style.backgroundColor, "onUpdate:modelValue": m2[3] || (m2[3] = (l3) => c.value.style.backgroundColor = l3) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), n(h, null, { default: p(() => [n(g, { span: 12 }, { default: p(() => [n(S, { label: "字号" }, { default: p(() => [n(w, { modelValue: c.value.style.fontSize, "onUpdate:modelValue": m2[4] || (m2[4] = (l3) => c.value.style.fontSize = l3), placeholder: "默认", clearable: "" }, { default: p(() => [(u(), t(o, null, f(y, (l3) => n(k, { label: l3, value: l3 }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), n(h, null, { default: p(() => [n(g, { span: 24 }, { default: p(() => [n(S, { label: "  style" }, { default: p(() => [d("div", s, [n(z, { type: "primary" }, { default: p(() => m2[12] || (m2[12] = [r('格式如:{"fontSize": "24px", "padding": "10px", "color":"red"}')])), _: 1 })]), n(C, { modelValue: c.value.customStyle, "onUpdate:modelValue": m2[5] || (m2[5] = (l3) => c.value.customStyle = l3), rows: 5, type: "textarea", placeholder: "" }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["model"])]), _: 1 }, 8, ["modelValue", "title"])], 64);
16
+ return v2.data && (V.value = v2.data), V.value.style || (V.value.style = {}), (e2, i2) => {
17
+ const v3 = a("el-button"), S = a("el-radio"), g = a("el-radio-group"), h = a("el-form-item"), U = a("el-col"), k = a("el-row"), w = a("el-color-picker"), z = a("el-option"), C = a("el-select"), j = a("el-text"), O = a("el-input"), W = a("el-form"), q = a("el-dialog");
18
+ return u(), t(o, null, [d("div", null, [r(v3, { type: "primary", onClick: x }, { default: f(() => i2[7] || (i2[7] = [s("编辑")])), _: 1 })]), _.value ? (u(), n(q, { key: 0, modelValue: _.value, "onUpdate:modelValue": i2[6] || (i2[6] = (l3) => _.value = l3), "destroy-on-close": "", title: l2.title, width: "900", "append-to-body": "", "before-close": b }, { default: f(() => [r(W, { model: V.value, "label-width": "80" }, { default: f(() => [r(k, null, { default: f(() => [r(U, { span: 12 }, { default: f(() => [r(h, { label: "加粗" }, { default: f(() => [r(g, { modelValue: V.value.style.fontWeight, "onUpdate:modelValue": i2[0] || (i2[0] = (l3) => V.value.style.fontWeight = l3), class: "ml-4" }, { default: f(() => [r(S, { value: "bold" }, { default: f(() => i2[8] || (i2[8] = [s("是")])), _: 1 }), r(S, { value: "normal" }, { default: f(() => i2[9] || (i2[9] = [s("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), _: 1 }), r(U, { span: 12 }, { default: f(() => [r(h, { label: "倾斜" }, { default: f(() => [r(g, { modelValue: V.value.style.fontStyle, "onUpdate:modelValue": i2[1] || (i2[1] = (l3) => V.value.style.fontStyle = l3), class: "ml-4" }, { default: f(() => [r(S, { value: "italic" }, { default: f(() => i2[10] || (i2[10] = [s("是")])), _: 1 }), r(S, { value: "normal" }, { default: f(() => i2[11] || (i2[11] = [s("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), r(k, null, { default: f(() => [r(U, { span: 12 }, { default: f(() => [r(h, { label: "字体颜色" }, { default: f(() => [r(w, { modelValue: V.value.style.color, "onUpdate:modelValue": i2[2] || (i2[2] = (l3) => V.value.style.color = l3) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }), r(U, { span: 12 }, { default: f(() => [r(h, { label: "背景颜色" }, { default: f(() => [r(w, { modelValue: V.value.style.backgroundColor, "onUpdate:modelValue": i2[3] || (i2[3] = (l3) => V.value.style.backgroundColor = l3) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), r(k, null, { default: f(() => [r(U, { span: 12 }, { default: f(() => [r(h, { label: "字号" }, { default: f(() => [r(C, { modelValue: V.value.style.fontSize, "onUpdate:modelValue": i2[4] || (i2[4] = (l3) => V.value.style.fontSize = l3), placeholder: "默认", clearable: "" }, { default: f(() => [(u(), t(o, null, m(c, (l3) => r(z, { label: l3, value: l3 }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), r(k, null, { default: f(() => [r(U, { span: 24 }, { default: f(() => [r(h, { label: "  style" }, { default: f(() => [d("div", y, [r(j, { type: "primary" }, { default: f(() => i2[12] || (i2[12] = [s('格式如:{"fontSize": "24px", "padding": "10px", "color":"red"}')])), _: 1 })]), r(O, { modelValue: V.value.customStyle, "onUpdate:modelValue": i2[5] || (i2[5] = (l3) => V.value.customStyle = l3), rows: 5, type: "textarea", placeholder: "" }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["model"])]), _: 1 }, 8, ["modelValue", "title"])) : p("", true)], 64);
19
19
  };
20
20
  } });
21
21
  export {
22
- i as default
22
+ v as default
23
23
  };
@@ -1,61 +1,61 @@
1
- import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as r, Fragment as u, createElementVNode as d, createVNode as p, withCtx as n, createTextVNode as i, unref as s, createBlock as m, createCommentVNode as b, withDirectives as c, vShow as f } from "vue";
2
- import { Plus as w, Delete as v } from "@element-plus/icons";
3
- import y from "../../../common/common-variable-bind.vue.js";
4
- import { getUuidv4 as g } from "../../../../../utils/common-util.js";
5
- import { usePageContextStore as T } from "../../../../../../../stores/page-store.js";
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
+ import { Plus as b, Delete as f } from "@element-plus/icons";
3
+ import v from "../../../common/common-variable-bind.vue.js";
4
+ import { isNumberType as g, getUuidv4 as w } from "../../../../../utils/common-util.js";
5
+ import { usePageContextStore as y } from "../../../../../../../stores/page-store.js";
6
6
  import { statisticsTable as h } from "../../../../../../../stores/statistics-table-store.js";
7
- import { getModelOptionsByFields as V, getTableConfigByTableUuid as _ } from "../../../../../utils/page-table-util.js";
8
- const k = { 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: () => {
7
+ import { getModelOptionsByFields as V, getTableConfigByTableUuid as T } from "../../../../../utils/page-table-util.js";
8
+ const _ = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, k = 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: () => {
9
9
  } }, tableConfigure: { type: Object, default: () => {
10
10
  } }, pageDesign: { type: Object, default: () => {
11
11
  } }, row: { type: Object, default: () => {
12
- } } }, emits: ["update:data"], setup(e2, { emit: N2 }) {
13
- const O = T(), j = h(), C = e2, U = N2, x = l(300), B = l([]);
14
- C.data && (B.value = C.data);
15
- const L = l(false);
16
- let M;
17
- const I = C.pageDesign ? C.pageDesign.pageType : null;
18
- !I || "form" !== I && "list" !== I || (M = C.pageDesign.modelFields);
12
+ } } }, emits: ["update:data"], setup(e2, { emit: k2 }) {
13
+ const N = y(), O = h(), j = e2, C = k2, U = l(300), x = l([]);
14
+ j.data && (x.value = j.data);
15
+ const B = l(false);
16
+ let L;
17
+ const M = j.pageDesign ? j.pageDesign.pageType : null;
18
+ !M || "form" !== M && "list" !== M || (L = j.pageDesign.modelFields);
19
+ const I = l(null);
20
+ L && L.length > 0 && (I.value = V(L));
19
21
  const S = l(null);
20
- M && M.length > 0 && (S.value = V(M));
21
- const E = l(null);
22
- function D(e3) {
23
- e3 && (E.value = V(e3.modelFields));
22
+ function E(e3) {
23
+ e3 && (S.value = V(e3.modelFields));
24
24
  }
25
- function z() {
26
- D(_(C.pageDesign, C.configure));
25
+ function D() {
26
+ E(T(j.pageDesign, j.configure));
27
27
  let e3 = window.innerHeight - 140 - 176;
28
- e3 > 500 ? e3 = 500 : e3 < 100 && (e3 = 100), x.value = e3, L.value = true;
28
+ e3 > 500 ? e3 = 500 : e3 < 100 && (e3 = 100), U.value = e3, B.value = true;
29
29
  }
30
- function A(e3) {
30
+ function z(e3) {
31
31
  let l2 = -1;
32
- const a2 = B.value.length;
33
- for (let t2 = 0; t2 < a2; t2++) if (B.value[t2].uuid == e3.uuid) {
32
+ const a2 = x.value.length;
33
+ for (let t2 = 0; t2 < a2; t2++) if (x.value[t2].uuid == e3.uuid) {
34
34
  l2 = t2;
35
35
  break;
36
36
  }
37
37
  return l2;
38
38
  }
39
- function G(e3) {
39
+ function A(e3) {
40
40
  let l2 = -1;
41
- e3 && (l2 = A(e3));
42
- const a2 = { uuid: g(), leftBracket: "", propName: "", operator: "", propValueType: "", rightBracket: "", joinSign: "", dataType: "" };
43
- B.value.splice(l2 + 1, 0, a2);
41
+ e3 && (l2 = z(e3));
42
+ const a2 = { uuid: w(), leftBracket: "", propName: "", operator: "", propValueType: "", rightBracket: "", joinSign: "", dataType: "" };
43
+ x.value.splice(l2 + 1, 0, a2);
44
44
  }
45
- D(C.tableConfigure), a(() => B.value, (e3) => {
46
- U("update:data", { row: C.row, data: B.value });
45
+ E(j.tableConfigure), a(() => x.value, (e3) => {
46
+ C("update:data", { row: j.row, data: x.value });
47
47
  }, { deep: true });
48
- const W = l({});
49
- function q(e3) {
50
- W.value = e3;
48
+ const G = l({});
49
+ function W(e3) {
50
+ G.value = e3;
51
51
  }
52
- function F(e3, l2, a2) {
52
+ function q(e3, l2, a2) {
53
53
  if ("propValue" === a2) l2.propValue = e3;
54
54
  else {
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 = S.value, t2 && 0 !== t2.length || (t2 = O.pageContextVarOptions.dataOptions)) : a3.startsWith("row.") && (a3 = a3.substring(4), t2 = E.value, t2 && 0 !== t2.length || (t2 = j.columnList)))), t2 && a3) {
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,23 +63,23 @@ const k = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
63
63
  }
64
64
  }
65
65
  return (l2, a2) => {
66
- const g2 = t("el-button"), T2 = t("el-row"), h2 = t("Top"), V2 = t("el-icon"), _2 = t("Bottom"), N3 = t("el-table-column"), O2 = t("el-option"), j2 = t("el-select"), C2 = t("el-table"), U2 = t("el-dialog");
67
- return r(), o(u, null, [d("div", null, [p(g2, { 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(T2, { style: { "padding-bottom": "8px" } }, { default: n(() => [p(g2, { icon: s(w), plain: "", type: "primary", onClick: G }, { default: n(() => a2[2] || (a2[2] = [i(" 添加 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), p(C2, { border: "", "highlight-current-row": "", onCurrentChange: q, data: B.value, style: { width: "100%" } }, { default: n(() => [p(N3, { label: "", width: "50" }, { default: n((e3) => [d("div", k, [p(V2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e4) {
68
- let l4 = A(e4);
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
+ let l4 = z(e4);
69
69
  if (l4 < 1) return;
70
- const a3 = B.value;
70
+ const a3 = x.value;
71
71
  [a3[l4 - 1], a3[l4]] = [a3[l4], a3[l4 - 1]];
72
- }(e3.row) }, { default: n(() => [p(h2)]), _: 2 }, 1032, ["onClick"]), p(V2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (l3) => function(e4) {
73
- let l4 = A(e4);
74
- if (-1 == l4 || B.value.length == l4 + 1) return;
75
- const a3 = B.value;
72
+ }(e3.row) }, { default: i(() => [p(h2)]), _: 2 }, 1032, ["onClick"]), p(V2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (l3) => function(e4) {
73
+ let l4 = z(e4);
74
+ if (-1 == l4 || x.value.length == l4 + 1) return;
75
+ const a3 = x.value;
76
76
  [a3[l4], a3[l4 + 1]] = [a3[l4 + 1], a3[l4]];
77
- }(e3.row) }, { default: n(() => [p(_2)]), _: 2 }, 1032, ["onClick"])])]), _: 1 }), p(N3, { prop: "leftBracket", label: "(", width: "80" }, { default: n((e3) => [p(j2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l3) => e3.row.leftBracket = l3, clearable: "", placeholder: "请选择" }, { default: n(() => [p(O2, { label: "", value: "" }), p(O2, { label: "(", value: "(" }), p(O2, { label: "((", value: "((" }), p(O2, { label: "(((", value: "(((" }), p(O2, { label: "((((", value: "((((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(N3, { prop: "propName", label: "字段名(*)", width: "150" }, { default: n((l3) => [p(y, { 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(j2, { modelValue: e3.row.operator, "onUpdate:modelValue": (l3) => e3.row.operator = l3, clearable: "", placeholder: "请选择" }, { default: n(() => ["int" == e3.row.dataType || "long" == e3.row.dataType || "float" == e3.row.dataType || "double" == e3.row.dataType || "number" == e3.row.dataType ? (r(), m(O2, { key: 0, label: "大于", value: "GT" })) : b("", true), "int" == e3.row.dataType || "long" == e3.row.dataType || "float" == e3.row.dataType || "double" == e3.row.dataType || "number" == e3.row.dataType ? (r(), m(O2, { key: 1, label: "小于", value: "LT" })) : b("", true), "date" == e3.row.dataType || "datetime" == e3.row.dataType ? (r(), m(O2, { key: 2, label: "晚于", value: "GT" })) : b("", true), "date" == e3.row.dataType || "datetime" == e3.row.dataType ? (r(), m(O2, { key: 3, label: "早于", value: "LT" })) : b("", true), p(O2, { label: "等于", value: "EQ" }), c(p(O2, { label: "不大于", value: "LET" }, null, 512), [[f, "int" == e3.row.dataType || "long" == e3.row.dataType || "float" == e3.row.dataType || "double" == e3.row.dataType || "number" == e3.row.dataType]]), c(p(O2, { label: "不小于", value: "GET" }, null, 512), [[f, "int" == e3.row.dataType || "long" == e3.row.dataType || "float" == e3.row.dataType || "double" == e3.row.dataType || "number" == e3.row.dataType]]), c(p(O2, { label: "不晚于", value: "LET" }, null, 512), [[f, "date" == e3.row.dataType || "datetime" == e3.row.dataType]]), c(p(O2, { label: "不早于", value: "GET" }, null, 512), [[f, "date" == e3.row.dataType || "datetime" == e3.row.dataType]]), p(O2, { label: "不等于", value: "NET" }), p(O2, { label: "包含", value: "CONTAIN" }), p(O2, { label: "不包含", value: "NOT_CONTAIN" }), p(O2, { label: "等于Null", value: "IS_NULL" }), p(O2, { label: "不等于Null", value: "IS_NOT_NULL" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(N3, { prop: "propValue", label: "值(*)", width: "150" }, { default: n((e3) => [p(y, { modelValue: e3.row.propValue, dataModelOptions: S.value, objModelOptions: E.value, "onUpdate:modelValue": (l3) => F(l3, e3.row, "propValue") }, null, 8, ["modelValue", "dataModelOptions", "objModelOptions", "onUpdate:modelValue"])]), _: 1 }), p(N3, { prop: "rightBracket", label: ")", width: "80" }, { default: n((e3) => [p(j2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l3) => e3.row.rightBracket = l3, placeholder: "请选择", clearable: "" }, { default: n(() => [p(O2, { label: "", value: "" }), p(O2, { label: ")", value: ")" }), p(O2, { label: "))", value: "))" }), p(O2, { label: ")))", value: ")))" }), p(O2, { label: "))))", value: "))))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(N3, { prop: "joinSign", label: "并且/或者", width: "80" }, { default: n((e3) => [p(j2, { modelValue: e3.row.joinSign, "onUpdate:modelValue": (l3) => e3.row.joinSign = l3, clearable: "", placeholder: "请选择" }, { default: n(() => [p(O2, { label: "或者", value: "or" }), p(O2, { label: "并且", value: "and" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(N3, { prop: "variableIsNull", label: "变量为空时", width: "120" }, { default: n((e3) => [p(j2, { modelValue: e3.row.variableIsNull, "onUpdate:modelValue": (l3) => e3.row.variableIsNull = l3, clearable: "", placeholder: "请选择" }, { default: n(() => [p(O2, { label: "Null", value: "null" }), p(O2, { label: "忽略(1=1)", value: "ignore" }), p(O2, { label: "不符合(1<>1)", value: "notequal" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(N3, { label: "操作", width: "60" }, { default: n((e3) => [p(V2, { 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(w))]), _: 2 }, 1032, ["onClick"]), p(V2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => function(e4) {
78
- let l4 = A(e4);
79
- l4 > -1 && B.value.splice(l4, 1);
80
- }(e3.row) }, { default: n(() => [p(s(v))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64);
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
+ let l4 = z(e4);
79
+ l4 > -1 && x.value.splice(l4, 1);
80
+ }(e3.row) }, { default: i(() => [p(s(f))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64);
81
81
  };
82
82
  } });
83
83
  export {
84
- N as default
84
+ k as default
85
85
  };