super-page-designer 2.2.12 → 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.
- package/dist/es/components/design/utils/common-util.d.ts +1 -0
- package/dist/es/components/design/utils/common-util.js +20 -15
- package/dist/es/components/design/utils/data-table-util.d.ts +1 -1
- package/dist/es/components/design/utils/data-table-util.js +52 -55
- package/dist/es/components/design/utils/page-table-util.js +7 -7
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +34 -33
- package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +23 -20
- package/dist/es/components/design/views/assemblys/button/component/condition-dialog.vue.js +16 -15
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +36 -31
- package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue2.js +29 -28
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue.js +13 -13
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +48 -48
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +39 -34
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +2 -26
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +26 -2
- package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +21 -21
- package/dist/es/components/design/views/assemblys/form/common/uploading.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +5 -5
- package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +12 -11
- package/dist/es/components/design/views/assemblys/page/variable-dialog.vue.js +1 -1
- package/dist/es/components/design/views/design/page-event/{config.vue.js → config.vue2.js} +2 -2
- package/dist/es/components/design/views/design/page-event/config.vue3.js +5 -5
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +50 -50
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +50 -50
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
- package/dist/es/style.css +15 -15
- package/package.json +5 -5
- /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
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as o, createBlock as a, openBlock as t, withCtx as n, createVNode as u, createCommentVNode as i, unref as d, createTextVNode as r, createElementBlock as p, Fragment as s, renderList as c, createElementVNode as m } from "vue";
|
|
2
2
|
import { formatConditionList as f } from "../../../../utils/data-table-util.js";
|
|
3
|
-
import { CirclePlus as v, Delete as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
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,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
function
|
|
14
|
-
|
|
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
|
-
|
|
19
|
+
U.value[k.value].conditionList = e3;
|
|
21
20
|
}
|
|
22
21
|
function x() {
|
|
23
|
-
|
|
22
|
+
F("save", U.value), F("close");
|
|
24
23
|
}
|
|
25
24
|
function z(e3) {
|
|
26
|
-
|
|
25
|
+
L.value.setCurrentRow(e3);
|
|
27
26
|
}
|
|
28
|
-
function
|
|
29
|
-
|
|
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 && (
|
|
32
|
-
const
|
|
33
|
-
return t(),
|
|
34
|
-
return
|
|
35
|
-
var
|
|
36
|
-
} }, null, 8, ["model-value", "onFocus", "onClick"])]), _: 1 }), u(
|
|
37
|
-
const
|
|
38
|
-
e4.field =
|
|
39
|
-
}(l3.row, l3.row.propDbName) }, { default: n(() => [(t(true), p(s, null, c(e2.pageDesign.modelFields, (e3) => (t(),
|
|
40
|
-
return
|
|
41
|
-
var
|
|
42
|
-
} }, null, 8, ["onFocus", "modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["data"]),
|
|
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-
|
|
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
|
|
3
|
-
import
|
|
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
|
-
|
|
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
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
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 =
|
|
15
|
-
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
|
-
|
|
19
|
+
U.value = true;
|
|
21
20
|
}, q = () => {
|
|
22
|
-
|
|
23
|
-
}, A = (
|
|
24
|
-
|
|
25
|
-
|
|
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),
|
|
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"),
|
|
32
|
-
return n(), i(
|
|
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(
|
|
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(
|
|
38
|
-
return o3 = e3.$index, e3.row, void
|
|
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(
|
|
41
|
-
return e3.$index, o3 = e3.row,
|
|
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(
|
|
44
|
-
return o3 = a3.$index, a3.row, void
|
|
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(
|
|
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
|
-
|
|
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,
|
|
2
|
-
import { ElMessage as
|
|
3
|
-
const
|
|
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
|
|
6
|
-
function
|
|
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
|
-
|
|
8
|
+
V.value.customStyle && JSON.parse(V.value.customStyle), l3();
|
|
9
9
|
} catch (l4) {
|
|
10
|
-
|
|
10
|
+
i.error("style需要是json格式");
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
|
|
13
|
+
function x() {
|
|
14
|
+
_.value = true;
|
|
15
15
|
}
|
|
16
|
-
return
|
|
17
|
-
const
|
|
18
|
-
return u(), t(o, null, [d("div", null, [
|
|
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
|
-
|
|
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
|
|
2
|
-
import { Plus as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { usePageContextStore 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 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
|
|
8
|
-
const
|
|
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:
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
let
|
|
17
|
-
const
|
|
18
|
-
!
|
|
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
|
-
|
|
21
|
-
|
|
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
|
|
26
|
-
|
|
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),
|
|
28
|
+
e3 > 500 ? e3 = 500 : e3 < 100 && (e3 = 100), U.value = e3, B.value = true;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function z(e3) {
|
|
31
31
|
let l2 = -1;
|
|
32
|
-
const a2 =
|
|
33
|
-
for (let t2 = 0; t2 < a2; t2++) if (
|
|
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
|
|
39
|
+
function A(e3) {
|
|
40
40
|
let l2 = -1;
|
|
41
|
-
e3 && (l2 =
|
|
42
|
-
const a2 = { uuid:
|
|
43
|
-
|
|
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
|
-
|
|
46
|
-
|
|
45
|
+
E(j.tableConfigure), a(() => x.value, (e3) => {
|
|
46
|
+
C("update:data", { row: j.row, data: x.value });
|
|
47
47
|
}, { deep: true });
|
|
48
|
-
const
|
|
49
|
-
function
|
|
50
|
-
|
|
48
|
+
const G = l({});
|
|
49
|
+
function W(e3) {
|
|
50
|
+
G.value = e3;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
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 =
|
|
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
|
|
67
|
-
return
|
|
68
|
-
let l4 =
|
|
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 =
|
|
70
|
+
const a3 = x.value;
|
|
71
71
|
[a3[l4 - 1], a3[l4]] = [a3[l4], a3[l4 - 1]];
|
|
72
|
-
}(e3.row) }, { default:
|
|
73
|
-
let l4 =
|
|
74
|
-
if (-1 == l4 ||
|
|
75
|
-
const a3 =
|
|
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:
|
|
78
|
-
let l4 =
|
|
79
|
-
l4 > -1 &&
|
|
80
|
-
}(e3.row) }, { default:
|
|
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
|
-
|
|
84
|
+
k as default
|
|
85
85
|
};
|