super-page-designer 2.2.90 → 2.2.91-sit6
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/index.d.ts +2 -1
- package/dist/es/components/design/utils/assemblys-config.js +6 -7
- package/dist/es/components/design/utils/common-util.d.ts +1 -0
- package/dist/es/components/design/utils/common-util.js +14 -9
- package/dist/es/components/design/utils/page-table-util.js +23 -21
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +24 -24
- package/dist/es/components/design/views/assemblys/button/button/button-design.vue2.js +16 -16
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +0 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +27 -27
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +19 -19
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +47 -47
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.d.ts +31 -0
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +5 -108
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +111 -2
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +13 -7
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +5 -5
- 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 +7 -6
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +26 -2
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +2 -26
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +18 -18
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr-base.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr.vue2.js +6 -6
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +16 -16
- package/dist/es/components/design/views/assemblys/object-design.vue.js +1 -1
- package/dist/es/components/design/views/design/page-event/{config.vue2.js → config.vue.js} +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +46 -46
- 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/i18n-setting-enabled.vue.js +23 -23
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
- package/dist/es/index.d.ts +1 -2
- package/dist/es/index.js +2 -0
- package/dist/es/style.css +553 -239
- package/package.json +4 -4
- package/dist/es/components/design/index.js +0 -4
- /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.js} +0 -0
|
@@ -1,61 +1,61 @@
|
|
|
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 n, withCtx as p, createTextVNode as i, unref as s, createBlock as c, createCommentVNode as m } from "vue";
|
|
2
2
|
import { Plus as b, Delete as f } from "@element-plus/icons";
|
|
3
3
|
import v from "../../../common/common-variable-bind.vue.js";
|
|
4
|
-
import { isNumberType as g,
|
|
5
|
-
import { usePageContextStore as
|
|
6
|
-
import { statisticsTable as
|
|
7
|
-
import { getModelOptionsByFields as
|
|
8
|
-
const
|
|
4
|
+
import { isNumberType as g, isDateOrTimeType as w, getUuidv4 as y } from "../../../../../utils/common-util.js";
|
|
5
|
+
import { usePageContextStore as h } from "../../../../../../../stores/page-store.js";
|
|
6
|
+
import { statisticsTable as V } from "../../../../../../../stores/statistics-table-store.js";
|
|
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: () => {
|
|
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
|
-
!
|
|
19
|
-
const M = l(null);
|
|
20
|
-
L && L.length > 0 && (M.value = V(L));
|
|
12
|
+
} } }, emits: ["update:data"], setup(e2, { emit: N2 }) {
|
|
13
|
+
const C = h(), O = V(), j = e2, U = N2, x = l(300), B = l([]);
|
|
14
|
+
j.data && (B.value = j.data);
|
|
15
|
+
const L = l(false);
|
|
16
|
+
let I;
|
|
17
|
+
const M = j.pageDesign ? j.pageDesign.pageType : null;
|
|
18
|
+
!M || "form" !== M && "list" !== M || (I = j.pageDesign.modelFields);
|
|
21
19
|
const S = l(null);
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
I && I.length > 0 && (S.value = T(I));
|
|
21
|
+
const E = l(null);
|
|
22
|
+
function D(e3) {
|
|
23
|
+
e3 && (E.value = T(e3.modelFields));
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
25
|
+
function z() {
|
|
26
|
+
D(k(j.pageDesign, j.configure, j.tableConfigure));
|
|
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), x.value = e3, L.value = true;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function A(e3) {
|
|
31
31
|
let l2 = -1;
|
|
32
|
-
const a2 =
|
|
33
|
-
for (let t2 = 0; t2 < a2; t2++) if (
|
|
32
|
+
const a2 = B.value.length;
|
|
33
|
+
for (let t2 = 0; t2 < a2; t2++) if (B.value[t2].uuid == e3.uuid) {
|
|
34
34
|
l2 = t2;
|
|
35
35
|
break;
|
|
36
36
|
}
|
|
37
37
|
return l2;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function G(e3) {
|
|
40
40
|
let l2 = -1;
|
|
41
|
-
e3 && (l2 =
|
|
42
|
-
const a2 = { uuid:
|
|
43
|
-
|
|
41
|
+
e3 && (l2 = A(e3));
|
|
42
|
+
const a2 = { uuid: y(), leftBracket: "", propName: "", operator: "", propValueType: "", rightBracket: "", joinSign: "", dataType: "" };
|
|
43
|
+
B.value.splice(l2 + 1, 0, a2);
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
D(j.tableConfigure), a(() => B.value, (e3) => {
|
|
46
|
+
U("update:data", { row: j.row, data: B.value });
|
|
47
47
|
}, { deep: true });
|
|
48
|
-
const
|
|
49
|
-
function
|
|
50
|
-
|
|
48
|
+
const W = l({});
|
|
49
|
+
function q(e3) {
|
|
50
|
+
W.value = e3;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function F(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 = S.value, t2 && 0 !== t2.length || (t2 = C.pageContextVarOptions.dataOptions)) : a3.startsWith("row.") && (a3 = a3.substring(4), t2 = E.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 u(), o(r, null, [d("div", null, [
|
|
68
|
-
let l4 =
|
|
66
|
+
const y2 = 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, [n(y2, { type: "primary", onClick: z }, { default: p(() => a2[1] || (a2[1] = [i("编辑")])), _: 1 })]), n(U2, { modelValue: L.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => L.value = e3), title: e2.title, width: "900", "append-to-body": "" }, { default: p(() => [n(h2, { style: { "padding-bottom": "8px" } }, { default: p(() => [n(y2, { icon: s(b), plain: "", type: "primary", onClick: G }, { default: p(() => a2[2] || (a2[2] = [i(" 添加 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), n(j2, { "row-key": "uuid", border: "", "highlight-current-row": "", onCurrentChange: q, data: B.value, style: { width: "100%" } }, { default: p(() => [n(N3, { label: "", width: "50" }, { default: p((e3) => [d("div", _, [n(T2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
68
|
+
let l4 = A(e4);
|
|
69
69
|
if (l4 < 1) return;
|
|
70
|
-
const a3 =
|
|
70
|
+
const a3 = B.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: p(() => [n(V2)]), _: 2 }, 1032, ["onClick"]), n(T2, { 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;
|
|
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: p(() => [n(k2)]), _: 2 }, 1032, ["onClick"])])]), _: 1 }), n(N3, { prop: "leftBracket", label: "(", width: "80" }, { default: p((e3) => [n(O2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l3) => e3.row.leftBracket = l3, clearable: "", placeholder: "请选择" }, { default: p(() => [n(C2, { label: "", value: "" }), n(C2, { label: "(", value: "(" }), n(C2, { label: "((", value: "((" }), n(C2, { label: "(((", value: "(((" }), n(C2, { label: "((((", value: "((((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), n(N3, { prop: "propName", label: "字段名(*)", width: "150" }, { default: p((l3) => [n(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 }), n(N3, { prop: "operator", label: "操作符", width: "90" }, { default: p((e3) => [n(O2, { modelValue: e3.row.operator, "onUpdate:modelValue": (l3) => e3.row.operator = l3, clearable: "", placeholder: "请选择" }, { default: p(() => [n(C2, { label: "等于", value: "EQ" }), n(C2, { label: "不等于", value: "NET" }), s(g)(e3.row.dataType) ? (u(), c(C2, { key: 0, label: "大于", value: "GT" })) : m("", true), s(g)(e3.row.dataType) ? (u(), c(C2, { key: 1, label: "小于", value: "LT" })) : m("", true), s(w)(e3.row.dataType) ? (u(), c(C2, { key: 2, label: "晚于", value: "GT" })) : m("", true), s(w)(e3.row.dataType) ? (u(), c(C2, { key: 3, label: "早于", value: "LT" })) : m("", true), s(w)(e3.row.dataType) ? (u(), c(C2, { key: 4, label: "不晚于", value: "LET" })) : m("", true), s(w)(e3.row.dataType) ? (u(), c(C2, { key: 5, label: "不早于", value: "GET" })) : m("", true), s(g)(e3.row.dataType) ? (u(), c(C2, { key: 6, label: "小于等于", value: "LET" })) : m("", true), s(g)(e3.row.dataType) ? (u(), c(C2, { key: 7, label: "大于等于", value: "GET" })) : m("", true), n(C2, { label: "包含", value: "CONTAIN" }), n(C2, { label: "不包含", value: "NOT_CONTAIN" }), n(C2, { label: "等于Null", value: "IS_NULL" }), n(C2, { label: "不等于Null", value: "IS_NOT_NULL" }), n(C2, { label: "in", value: "IN" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), n(N3, { prop: "propValue", label: "值(*)", width: "150" }, { default: p((e3) => [n(v, { 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 }), n(N3, { prop: "rightBracket", label: ")", width: "80" }, { default: p((e3) => [n(O2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l3) => e3.row.rightBracket = l3, placeholder: "请选择", clearable: "" }, { default: p(() => [n(C2, { label: "", value: "" }), n(C2, { label: ")", value: ")" }), n(C2, { label: "))", value: "))" }), n(C2, { label: ")))", value: ")))" }), n(C2, { label: "))))", value: "))))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), n(N3, { prop: "joinSign", label: "并且/或者", width: "80" }, { default: p((e3) => [n(O2, { modelValue: e3.row.joinSign, "onUpdate:modelValue": (l3) => e3.row.joinSign = l3, clearable: "", placeholder: "请选择" }, { default: p(() => [n(C2, { label: "或者", value: "or" }), n(C2, { label: "并且", value: "and" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), n(N3, { prop: "variableIsNull", label: "变量为空时", width: "120" }, { default: p((e3) => [n(O2, { modelValue: e3.row.variableIsNull, "onUpdate:modelValue": (l3) => e3.row.variableIsNull = l3, clearable: "", placeholder: "请选择" }, { default: p(() => [n(C2, { label: "Null", value: "null" }), n(C2, { label: "忽略(1=1)", value: "ignore" }), n(C2, { label: "不符合(1<>1)", value: "notequal" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), n(N3, { label: "操作", width: "60" }, { default: p((e3) => [n(T2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px", "margin-left": "6px" }, onClick: (l3) => G(e3.row) }, { default: p(() => [n(s(b))]), _: 2 }, 1032, ["onClick"]), n(T2, { 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: p(() => [n(s(f))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64);
|
|
81
81
|
};
|
|
82
82
|
} });
|
|
83
83
|
export {
|
|
84
|
-
|
|
84
|
+
N as default
|
|
85
85
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
iconType: StringConstructor;
|
|
3
|
+
iconValue: StringConstructor;
|
|
4
|
+
size: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
showLabel: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
"update:modelValue": (...args: any[]) => void;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
15
|
+
iconType: StringConstructor;
|
|
16
|
+
iconValue: StringConstructor;
|
|
17
|
+
size: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
showLabel: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
27
|
+
}>, {
|
|
28
|
+
size: string;
|
|
29
|
+
showLabel: boolean;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
export default _default;
|
|
@@ -1,110 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const A = { key: 0 }, L = { class: "amb-component-popover-left-menu-main" }, E = ["onClick"], T = { style: { "margin-top": "4px", "margin-bottom": "8px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, j = ["title"], q = e({ __name: "common-icon-bind", props: { iconType: String, iconValue: String, size: { type: String, default: "medium" }, showLabel: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(e2, { emit: q2 }) {
|
|
6
|
-
const M = q2, R = e2, $ = [{ value: "ElementUI", label: "ElementUI" }, { value: "custom", label: "自定义" }];
|
|
7
|
-
l(false);
|
|
8
|
-
const B = {}, D = l({}), F = l(R.iconType);
|
|
9
|
-
F.value || (F.value = $[0].value);
|
|
10
|
-
const G = l("");
|
|
11
|
-
G.value = R.iconValue, l([]);
|
|
12
|
-
const H = l({}), J = l(""), K = l(), Q = l([]);
|
|
13
|
-
let W;
|
|
14
|
-
function X() {
|
|
15
|
-
"custom" == F.value ? Z() : Y();
|
|
16
|
-
}
|
|
17
|
-
function Y() {
|
|
18
|
-
const e3 = H.value.elementUIOptions.filter((e4) => !J.value || e4.label.toLowerCase().includes(J.value.toLowerCase()) || e4.value.toLowerCase().includes(J.value.toLowerCase()));
|
|
19
|
-
D.value.currentPage || (D.value.currentPage = 1), D.value.pageSize || (D.value.pageSize = 50);
|
|
20
|
-
let l2 = D.value.currentPage;
|
|
21
|
-
const a2 = D.value.pageSize;
|
|
22
|
-
let t2 = (l2 - 1) * a2;
|
|
23
|
-
t2 + 2 > e3.length && (t2 = 0, l2 = 1);
|
|
24
|
-
const o2 = [];
|
|
25
|
-
for (let l3 = t2; l3 < t2 + a2 && l3 < e3.length; l3++) o2.push(e3[l3]);
|
|
26
|
-
D.value.currentPage = l2, D.value.total = e3.length, Q.value = o2;
|
|
27
|
-
}
|
|
28
|
-
function Z() {
|
|
29
|
-
const e3 = { query: J.value, pageSize: D.value && D.value.pageSize ? D.value.pageSize : 50, pageNo: D.value && D.value.pageNo ? D.value.pageNo : 1 };
|
|
30
|
-
J.value, N.post(window.$vueApp.config.globalProperties.baseAPI + "/component/general-icon/query", e3).then((e4) => {
|
|
31
|
-
const l2 = e4.data ? e4.data : [], a2 = [];
|
|
32
|
-
for (let e5 of l2) a2.push({ value: e5.iconName, label: e5.iconName });
|
|
33
|
-
H.value.customOptions = a2, "custom" == F.value && (D.value.pageSize = e4.size, D.value.currentPage = e4.page, D.value.total = e4.total, Q.value = a2);
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
a(J, () => {
|
|
37
|
-
W && clearTimeout(W), W = setTimeout(function() {
|
|
38
|
-
"custom" == F.value ? (D.value.pageNo = 1, Z()) : (D.value.pageNo = 1, Y());
|
|
39
|
-
}, 300);
|
|
40
|
-
}), t(() => {
|
|
41
|
-
W && clearTimeout(W);
|
|
42
|
-
});
|
|
43
|
-
const ee = o(() => {
|
|
44
|
-
let e3 = 185;
|
|
45
|
-
return "custom" == F.value && (e3 = 170), e3;
|
|
46
|
-
}), le = o(() => {
|
|
47
|
-
const e3 = {};
|
|
48
|
-
return "custom" == F.value && (e3.width = "200px"), e3;
|
|
49
|
-
});
|
|
50
|
-
function ae(e3) {
|
|
51
|
-
e3 && Array.isArray(e3) && e3.length > 0 && (e3 = e3[0]), F.value = e3;
|
|
52
|
-
let l2 = B[F.value];
|
|
53
|
-
var a2;
|
|
54
|
-
l2 || (l2 = { currentPage: 1, pageSize: 50, total: 0 }, B[F.value] = l2), D.value = l2, "ElementUI" === (a2 = F.value) ? Y() : "custom" === a2 && Z();
|
|
55
|
-
}
|
|
56
|
-
function te() {
|
|
57
|
-
var _a, _b;
|
|
58
|
-
(_b = (_a = K.value) == null ? void 0 : _a.hide) == null ? void 0 : _b.call(_a);
|
|
59
|
-
}
|
|
60
|
-
function oe() {
|
|
61
|
-
G.value = "", M("update:modelValue", "", ""), K.value.hide();
|
|
62
|
-
}
|
|
63
|
-
function ue() {
|
|
64
|
-
if (J.value = J.value.trim(), !J.value) return void ElMessage.warning("请输入图标名!");
|
|
65
|
-
const e3 = H.value.customOptions || [];
|
|
66
|
-
let l2 = false;
|
|
67
|
-
for (let a3 of e3) if (a3.value === J.value) {
|
|
68
|
-
l2 = true;
|
|
69
|
-
break;
|
|
70
|
-
}
|
|
71
|
-
F.value = "custom", G.value = J.value;
|
|
72
|
-
const a2 = J.value;
|
|
73
|
-
if (J.value = "", M("update:modelValue", F.value, G.value), K.value.hide(), !l2) {
|
|
74
|
-
const e4 = { iconName: a2 };
|
|
75
|
-
N.post(window.$vueApp.config.globalProperties.baseAPI + "/bs/general-icon/get-or-create", e4).then((e5) => {
|
|
76
|
-
"custom" == F.value && Z();
|
|
77
|
-
}).catch((e5) => {
|
|
78
|
-
ElMessage.warning("保存图标失败!");
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
const ne = l();
|
|
83
|
-
function ie() {
|
|
84
|
-
k(() => {
|
|
85
|
-
!function() {
|
|
86
|
-
if (!H.value.elementUIOptions) {
|
|
87
|
-
if (!window.temp_Icon_Options) {
|
|
88
|
-
const e3 = [];
|
|
89
|
-
for (const [l2, a2] of Object.entries(O)) e3.push({ value: l2, label: l2, component: a2 });
|
|
90
|
-
e3.sort(function(e4, l2) {
|
|
91
|
-
const a2 = e4.value, t2 = l2.value;
|
|
92
|
-
return a2.localeCompare(t2);
|
|
93
|
-
}), window.temp_Icon_Options = e3;
|
|
94
|
-
}
|
|
95
|
-
H.value.elementUIOptions = window.temp_Icon_Options;
|
|
96
|
-
}
|
|
97
|
-
}(), ae(F.value);
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
return (l2, a2) => {
|
|
101
|
-
const t2 = u("el-icon"), o2 = u("el-input"), k2 = u("el-button"), O2 = u("el-tooltip"), N2 = u("el-col"), q3 = u("el-empty"), R2 = u("el-tag"), B2 = u("el-table-column"), H2 = u("el-table"), W2 = u("el-pagination"), Y2 = u("el-row"), Z2 = u("el-popover");
|
|
102
|
-
return e2.showLabel ? (r(), n("span", A, s(G.value), 1)) : (r(), i(Z2, { key: 1, ref_key: "popoverRef", ref: K, "popper-class": "amb-component-popover-main", trigger: "click", width: 400 }, { reference: c(() => [p(o2, { readonly: "", size: "small", onClick: ie, modelValue: G.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => G.value = e3), placeholder: "请选择" }, { suffix: c(() => [y(p(t2, { style: { cursor: "pointer" }, onClick: x(oe, ["stop"]) }, { default: c(() => [p(v(U))]), _: 1 }, 512), [[h, G.value]])]), _: 1 }, 8, ["modelValue"])]), default: c(() => [p(Y2, null, { default: c(() => [p(O2, { effect: "dark", content: "关闭", placement: "top-end" }, { default: c(() => [p(k2, { type: "text", class: "amb-component-popover-close-btn", icon: v(C), onClick: te }, null, 8, ["icon"])]), _: 1 }), p(N2, { span: 8 }, { default: c(() => [m("div", L, [(r(), n(d, null, f($, (e3) => m("div", { class: g(["amb-popover-menu-item", e3.value == F.value ? "is-active" : ""]), onClick: (l3) => ae(e3.value) }, [p(t2, null, { default: c(() => [y(p(v(S), null, null, 512), [[h, e3.value == F.value]])]), _: 2 }, 1024), m("span", null, s(e3.label), 1)], 10, E)), 64))])]), _: 1 }), F.value ? (r(), i(N2, { key: 1, span: 16, style: { "padding-left": "10px" } }, { default: c(() => [p(o2, { size: "small", modelValue: J.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => J.value = e3), placeholder: "搜索", "suffix-icon": v(P), style: w([{ "margin-bottom": "5px", height: "25px" }, le.value]) }, null, 8, ["modelValue", "suffix-icon", "style"]), y(p(k2, { style: { float: "right" }, onClick: ue, size: "small", type: "primary", icon: v(V), circle: "" }, null, 8, ["icon"]), [[h, "custom" == F.value]]), y(m("div", T, [p(t2, null, { default: c(() => [p(v(I))]), _: 1 }), a2[6] || (a2[6] = m("span", { style: { "margin-left": "5px" } }, "输入图标名后点击加号按钮添加", -1)), a2[7] || (a2[7] = b(" ")), p(O2, null, { content: c(() => a2[4] || (a2[4] = [b(" 1.支持fa图标,图标名称详见官网:https://fontawesome.com.cn/v4/icons-ui/; "), m("br", null, null, -1), b(" 2.支持svg图标,需以svg-开头,接svg内容,如:svg-xxxxxx. ")])), default: c(() => [p(R2, { type: "primary" }, { default: c(() => a2[5] || (a2[5] = [b("更多")])), _: 1 })]), _: 1 })], 512), [[h, "custom" == F.value]]), p(H2, { ref_key: "tableRef", ref: ne, height: ee.value, "show-header": false, size: "small", "current-row-key": "code", "row-key": "code", "tree-props": { children: "items" }, "highlight-current-row": true, data: Q.value }, { default: c(() => [p(B2, { width: "65" }, { default: c((e3) => [p(k2, { type: "default", size: "small", onClick: (l3) => {
|
|
103
|
-
return a3 = e3.row, G.value = a3.value, M("update:modelValue", F.value, G.value), void K.value.hide();
|
|
104
|
-
var a3;
|
|
105
|
-
} }, { default: c(() => a2[8] || (a2[8] = [b(" 选择 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), p(B2, { label: "名称", prop: "value", width: "120" }, { default: c((e3) => [m("span", { style: { "text-align": "left" }, title: e3.row.value }, s(e3.row.value), 9, j)]), _: 1 }), p(B2, { label: "图标" }, { default: c((e3) => [e3.row.component ? (r(), i(z(e3.row.component), { key: 0, style: { width: "20px" } })) : _("", true)]), _: 1 })]), _: 1 }, 8, ["height", "data"]), p(W2, { style: { "margin-top": "10px", "justify-content": "center" }, "current-page": D.value.currentPage, "onUpdate:currentPage": a2[2] || (a2[2] = (e3) => D.value.currentPage = e3), "page-size": D.value.pageSize, "onUpdate:pageSize": a2[3] || (a2[3] = (e3) => D.value.pageSize = e3), size: l2.small, "pager-count": 3, layout: "pager,total", total: D.value.total, onCurrentChange: X }, null, 8, ["current-page", "page-size", "size", "total"])]), _: 1 })) : (r(), i(N2, { key: 0, span: 16 }, { default: c(() => [p(q3, { description: "请选择类型", "image-size": 40 })]), _: 1 }))]), _: 1 })]), _: 1 }, 512));
|
|
106
|
-
};
|
|
107
|
-
} });
|
|
1
|
+
import o from "./common-icon-bind.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const i = e(o, [["__scopeId", "data-v-0f7ddbc5"]]);
|
|
108
5
|
export {
|
|
109
|
-
|
|
6
|
+
i as default
|
|
110
7
|
};
|
|
@@ -1,4 +1,113 @@
|
|
|
1
|
-
import o from "
|
|
1
|
+
import { defineComponent as e, ref as l, computed as o, resolveComponent as a, resolveDirective as n, createElementBlock as t, createBlock as u, openBlock as i, toDisplayString as c, withCtx as s, createVNode as v, withDirectives as p, unref as r, createElementVNode as m, Fragment as d, renderList as f, normalizeClass as g, vShow as b, createCommentVNode as y, createTextVNode as w, withModifiers as h, nextTick as _ } from "vue";
|
|
2
|
+
import { Close as k, Check as I, Search as x, Plus as $, InfoFilled as C, CircleClose as A } from "@element-plus/icons-vue";
|
|
3
|
+
import * as V from "@element-plus/icons";
|
|
4
|
+
import O from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
const U = { key: 0 }, j = { class: "amb-component-popover-left-menu-main" }, z = ["onClick"], P = { key: 1, style: { display: "flex", gap: "10px", "align-items": "center" } }, E = { key: 2 }, L = { key: 3, class: "amb-component-popover-icon-list-scroll", style: { overflow: "auto" } }, S = { class: "amb-component-popover-icon-grid" }, T = ["onClick"], N = { key: 4, style: { "text-align": "right" } }, q = e({ __name: "common-icon-bind", props: { iconType: String, iconValue: String, size: { type: String, default: "small" }, showLabel: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(e2, { emit: q2 }) {
|
|
6
|
+
var _a, _b;
|
|
7
|
+
const M = q2, B = e2, R = l([]), D = l([]), F = l([]), G = l([{ value: "ElementUI", label: "ElementUI" }, { value: "ambIcon", label: "Amb图标库" }, { value: "ambColorIcon", label: "Amb彩色图标库", dataList: [] }, { value: "custom", label: "自定义" }]);
|
|
8
|
+
l(false);
|
|
9
|
+
const H = l(1), J = l(B.iconType ?? ((_b = (_a = G.value) == null ? void 0 : _a[0]) == null ? void 0 : _b.value)), K = l("");
|
|
10
|
+
K.value = B.iconValue;
|
|
11
|
+
const Q = l({}), W = l(""), X = l(), Y = l(false), Z = o(() => ["ElementUI"].includes(J.value) ? R.value : ["ambIcon"].includes(J.value) ? D.value : F.value), ee = o(() => {
|
|
12
|
+
let e3 = Z.value ?? [];
|
|
13
|
+
return W.value && (e3 = e3.filter((e4) => [e4.label ?? "", e4.value ?? ""].some((e5) => {
|
|
14
|
+
var _a2;
|
|
15
|
+
return (_a2 = e5.toLowerCase()) == null ? void 0 : _a2.includes(W.value.toLowerCase());
|
|
16
|
+
}))), e3.slice(0, 50 * H.value);
|
|
17
|
+
}), le = () => {
|
|
18
|
+
ee.value.length > 0 && !Y.value && Z.value.length > ee.value.length && !W.value && H.value++;
|
|
19
|
+
};
|
|
20
|
+
const oe = async () => {
|
|
21
|
+
if (!(F.value.length > 0)) {
|
|
22
|
+
try {
|
|
23
|
+
Y.value = true;
|
|
24
|
+
const e3 = await O.post(window.$vueApp.config.globalProperties.baseAPI + "/component/general-icon/query", { pageSize: 200, pageNo: 1 }), l2 = (e3 == null ? void 0 : e3.data) ?? [], o2 = [];
|
|
25
|
+
for (let e4 of l2) o2.push({ value: e4.iconName, label: e4.iconName });
|
|
26
|
+
Q.value.customOptions = o2, F.value = o2;
|
|
27
|
+
} catch (e3) {
|
|
28
|
+
}
|
|
29
|
+
Y.value = false;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
function ae(e3) {
|
|
33
|
+
var l2;
|
|
34
|
+
H.value = 1, J.value = e3, "ElementUI" === (l2 = J.value) ? R.value = Q.value.elementUIOptions : "custom" === l2 ? oe() : ["ambIcon"].includes(l2) ? (async () => {
|
|
35
|
+
var _a2, _b2, _c;
|
|
36
|
+
if (!(D.value.length > 0)) {
|
|
37
|
+
try {
|
|
38
|
+
Y.value = true;
|
|
39
|
+
let e4 = `${window.location.origin}${window.location.pathname}font-icon/iconfont.json`;
|
|
40
|
+
((_c = (_b2 = (_a2 = window.$vueApp) == null ? void 0 : _a2.config) == null ? void 0 : _b2.globalProperties) == null ? void 0 : _c.fontIconAddress) && (e4 = `${window.$vueApp.config.globalProperties.fontIconAddress}/iconfont.json`);
|
|
41
|
+
const l3 = await fetch(e4, { mode: "cors" }).then((e5) => e5.json()), { css_prefix_text: o2, glyphs: a2 = [] } = l3 ?? {};
|
|
42
|
+
D.value = a2.map((e5) => ({ label: e5.name, value: `${o2}${e5.font_class}` }));
|
|
43
|
+
} catch (e4) {
|
|
44
|
+
}
|
|
45
|
+
Y.value = false;
|
|
46
|
+
}
|
|
47
|
+
})() : ["ambColorIcon"].includes(l2) && async function() {
|
|
48
|
+
var _a2, _b2, _c;
|
|
49
|
+
try {
|
|
50
|
+
Y.value = true;
|
|
51
|
+
let e4 = `${window.location.origin}${window.location.pathname}font-icon/iconfont.json`;
|
|
52
|
+
((_c = (_b2 = (_a2 = window.$vueApp) == null ? void 0 : _a2.config) == null ? void 0 : _b2.globalProperties) == null ? void 0 : _c.fontIconAddress) && (e4 = `${window.$vueApp.config.globalProperties.fontIconAddress}-color/iconfont.json`);
|
|
53
|
+
const l3 = await fetch(e4, { mode: "cors", headers: { "Content-Type": "application/json" } }).then((e5) => e5.json()), { css_prefix_text: o2, glyphs: a2 = [], font_family: n2 } = l3;
|
|
54
|
+
G.value[G.value.findIndex((e5) => "ambColorIcon" === e5.value)].dataList = a2.map((e5) => ({ label: e5.name, value: `${o2}${e5.font_class}` }));
|
|
55
|
+
} catch (e4) {
|
|
56
|
+
}
|
|
57
|
+
Y.value = false;
|
|
58
|
+
}();
|
|
59
|
+
}
|
|
60
|
+
function ne() {
|
|
61
|
+
var _a2, _b2;
|
|
62
|
+
(_b2 = (_a2 = X.value) == null ? void 0 : _a2.hide) == null ? void 0 : _b2.call(_a2);
|
|
63
|
+
}
|
|
64
|
+
function te() {
|
|
65
|
+
K.value = "", M("update:modelValue", "", ""), X.value.hide();
|
|
66
|
+
}
|
|
67
|
+
function ue() {
|
|
68
|
+
if (W.value = W.value.trim(), !W.value) return void ElMessage.warning("请输入图标名!");
|
|
69
|
+
const e3 = Q.value.customOptions || [];
|
|
70
|
+
let l2 = false;
|
|
71
|
+
for (let o3 of e3) if (o3.value === W.value) {
|
|
72
|
+
l2 = true;
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
J.value = "custom", K.value = W.value;
|
|
76
|
+
const o2 = W.value;
|
|
77
|
+
if (W.value = "", M("update:modelValue", J.value, K.value), X.value.hide(), !l2) {
|
|
78
|
+
const e4 = { iconName: o2 };
|
|
79
|
+
O.post(window.$vueApp.config.globalProperties.baseAPI + "/bs/general-icon/get-or-create", e4).then((e5) => {
|
|
80
|
+
"custom" == J.value && oe();
|
|
81
|
+
}).catch((e5) => {
|
|
82
|
+
ElMessage.warning("保存图标失败!");
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function ie() {
|
|
87
|
+
_(() => {
|
|
88
|
+
!function() {
|
|
89
|
+
if (!Q.value.elementUIOptions) {
|
|
90
|
+
if (!window.temp_Icon_Options) {
|
|
91
|
+
const e3 = [];
|
|
92
|
+
for (const [l2, o2] of Object.entries(V)) e3.push({ value: l2, label: l2, component: o2 });
|
|
93
|
+
e3.sort(function(e4, l2) {
|
|
94
|
+
const o2 = e4.value, a2 = l2.value;
|
|
95
|
+
return o2.localeCompare(a2);
|
|
96
|
+
}), window.temp_Icon_Options = e3;
|
|
97
|
+
}
|
|
98
|
+
Q.value.elementUIOptions = window.temp_Icon_Options;
|
|
99
|
+
}
|
|
100
|
+
}(), ae(J.value);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
return l(), (l2, o2) => {
|
|
104
|
+
const _2 = a("el-icon"), V2 = a("el-input"), O2 = a("el-button"), q3 = a("el-tooltip"), B2 = a("el-scrollbar"), R2 = a("el-col"), D2 = a("el-empty"), F2 = a("el-tag"), H2 = a("SuperIcon"), Q2 = a("el-row"), oe2 = a("el-popover"), ce = n("infinite-scroll"), se = n("loading");
|
|
105
|
+
return e2.showLabel ? (i(), t("span", U, c(K.value), 1)) : (i(), u(oe2, { key: 1, ref_key: "popoverRef", ref: X, "popper-class": "amb-component-popover-main", trigger: "click", width: 540 }, { reference: s(() => [v(V2, { readonly: "", size: e2.size, onClick: ie, modelValue: K.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => K.value = e3), placeholder: "请选择" }, { suffix: s(() => [p(v(_2, { style: { cursor: "pointer" }, onClick: h(te, ["stop"]) }, { default: s(() => [v(r(A))]), _: 1 }, 512), [[b, K.value]])]), _: 1 }, 8, ["size", "modelValue"])]), default: s(() => [v(Q2, null, { default: s(() => [v(q3, { effect: "dark", content: "关闭", placement: "top-end" }, { default: s(() => [v(O2, { type: "text", class: "amb-component-popover-close-btn", icon: r(k), onClick: ne }, null, 8, ["icon"])]), _: 1 }), v(R2, { span: 8 }, { default: s(() => [m("div", j, [v(B2, { "max-height": "100%" }, { default: s(() => [(i(true), t(d, null, f(G.value, (e3) => (i(), t("div", { class: g(["amb-popover-menu-item", e3.value == J.value ? "is-active" : ""]), onClick: (l3) => ae(e3.value) }, [v(_2, null, { default: s(() => [p(v(r(I), null, null, 512), [[b, e3.value == J.value]])]), _: 2 }, 1024), m("span", null, c(e3.label), 1)], 10, z))), 256))]), _: 1 })])]), _: 1 }), p((i(), u(R2, { span: 16, style: { "padding-left": "10px" }, class: "amb-component-popover-icon-list-view" }, { default: s(() => [J.value ? y("", true) : (i(), u(D2, { key: 0, description: "请选择类型", "image-size": 80 })), J.value ? (i(), t("div", P, [v(V2, { modelValue: W.value, "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => W.value = e3), placeholder: "搜索", size: "default", "prefix-icon": r(x), clearable: "", style: { flex: "1 1 auto" } }, null, 8, ["modelValue", "prefix-icon"]), ["custom"].includes(J.value) && W.value && !ee.value.length ? (i(), u(q3, { key: 0, effect: "dark", content: "创建该图标", placement: "top-end" }, { default: s(() => [v(O2, { type: "primary", circle: "", icon: r($), onClick: ue }, null, 8, ["icon"])]), _: 1 })) : y("", true)])) : y("", true), ["custom"].includes(J.value) ? (i(), t("div", E, [v(_2, null, { default: s(() => [v(r(C))]), _: 1 }), o2[4] || (o2[4] = m("span", { style: { "margin-left": "5px" } }, "输入图标名后点击加号按钮添加", -1)), o2[5] || (o2[5] = w(" ")), v(q3, null, { content: s(() => o2[2] || (o2[2] = [w(" 1.支持fa图标,图标名称详见官网:https://fontawesome.com.cn/v4/icons-ui/; "), m("br", null, null, -1), w(" 2.支持svg图标,需以svg-开头,接svg内容,如:svg-xxxxxx. ")])), default: s(() => [v(F2, { type: "primary" }, { default: s(() => o2[3] || (o2[3] = [w("更多")])), _: 1 })]), _: 1 })])) : y("", true), J.value ? p((i(), t("div", L, [ee.value.length || Y.value ? y("", true) : (i(), u(D2, { key: 0, description: "没有相关图标", "image-size": 80 })), m("div", S, [(i(true), t(d, null, f(ee.value, (e3) => (i(), u(q3, { key: e3.value, effect: "dark", content: e3.label, placement: "top" }, { default: s(() => [m("div", { class: "amb-component-popover-icon-grid-item", onClick: (l3) => {
|
|
106
|
+
return o3 = e3, K.value = o3.value, M("update:modelValue", J.value, K.value), void X.value.hide();
|
|
107
|
+
var o3;
|
|
108
|
+
} }, [v(H2, { iconType: J.value, iconValue: e3.value }, null, 8, ["iconType", "iconValue"])], 8, T)]), _: 2 }, 1032, ["content"]))), 128))])])), [[ce, le]]) : y("", true), J.value ? (i(), t("div", N, c(ee.value.length) + " / " + c(Z.value.length), 1)) : y("", true)]), _: 1 })), [[se, Y.value]])]), _: 1 })]), _: 1 }, 512));
|
|
109
|
+
};
|
|
110
|
+
} });
|
|
2
111
|
export {
|
|
3
|
-
|
|
112
|
+
q as default
|
|
4
113
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./tabs-design.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const s = t(e, [["__scopeId", "data-v-
|
|
4
|
+
const s = t(e, [["__scopeId", "data-v-f64cf23d"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "./data-origin.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import o from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = o(e, [["__scopeId", "data-v-e95dace8"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, computed as l, resolveComponent as i, createBlock as o, openBlock as t, withCtx as n, createElementVNode as r, createVNode as s, createCommentVNode as u, withDirectives as d, renderSlot as p, createTextVNode as c, unref as g, vShow as f, createElementBlock as m, Fragment as v, renderList as y, normalizeClass as b, toDisplayString as V } from "vue";
|
|
2
|
-
import O from "../../form/common/dataorigin-input-table.
|
|
2
|
+
import O from "../../form/common/dataorigin-input-table.vue.js";
|
|
3
3
|
import { Codemirror as _ } from "vue-codemirror";
|
|
4
4
|
import C from "../../workflow/component/combination.vue.js";
|
|
5
5
|
import S from "./return-set-table.vue.js";
|
|
@@ -113,7 +113,7 @@ const w = { style: { padding: "8px 0px 0px 0px" } }, G = ["onClick"], Q = { styl
|
|
|
113
113
|
});
|
|
114
114
|
}()) }, { default: n(() => l2[21] || (l2[21] = [c("编辑")])), _: 1 })]), _: 1 })) : u("", true), "dataTable" === e2.configure.props.dataOrigin.optionValueSetType ? (t(), o(z2, { key: 2, label: "编辑排序", class: "amb-design-attr-item" }, { default: n(() => [s(M2, { type: "primary", onClick: Se }, { default: n(() => l2[22] || (l2[22] = [c("添加")])), _: 1 }), s(M2, { type: "default", onClick: ke }, { default: n(() => l2[23] || (l2[23] = [c("删除")])), _: 1 }), (t(true), m(v, null, y(e2.configure.props.dataOrigin.sortField, (a3, l3) => (t(), m("div", { key: l3, onClick: (e3) => function(e4) {
|
|
115
115
|
Z.value = e4;
|
|
116
|
-
}(l3), style: { "margin-top": "10px" }, class: b(Z.value === l3 ? "amb-design-attr-item-inline seleteSort" : "amb-design-attr-item-inline") }, [s(oe2, { modelValue: a3.name, "onUpdate:modelValue": (e3) => a3.name = e3, placeholder: "请选择" }, { default: n(() => [(t(true), m(v, null, y(e2.configure.modelFields, (e3, a4) => (t(), o(ie2, { key: a4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]), s(oe2, { modelValue: a3.type, "onUpdate:modelValue": (e3) => a3.type = e3, style: { "margin-left": "10px" }, placeholder: "请选择" }, { default: n(() => [s(ie2, { label: "升序", value: "asc" }), s(ie2, { label: "降序", value: "
|
|
116
|
+
}(l3), style: { "margin-top": "10px" }, class: b(Z.value === l3 ? "amb-design-attr-item-inline seleteSort" : "amb-design-attr-item-inline") }, [s(oe2, { modelValue: a3.name, "onUpdate:modelValue": (e3) => a3.name = e3, placeholder: "请选择" }, { default: n(() => [(t(true), m(v, null, y(e2.configure.modelFields, (e3, a4) => (t(), o(ie2, { key: a4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]), s(oe2, { modelValue: a3.type, "onUpdate:modelValue": (e3) => a3.type = e3, style: { "margin-left": "10px" }, placeholder: "请选择" }, { default: n(() => [s(ie2, { label: "升序", value: "asc" }), s(ie2, { label: "降序", value: "desc" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])], 10, G))), 128))]), _: 1 })) : u("", true), d(s(z2, { label: "服务名", class: "amb-design-attr-item" }, { default: n(() => [s(x, { pageDesign: e2.pageDesign, rowObj: g(le).service, onlyService: "", "onUpdate:modelValue": l2[8] || (l2[8] = (e3, a3, l3, i2) => ve(0, a3, l3, i2)) }, null, 8, ["pageDesign", "rowObj"])]), _: 1 }, 512), [[f, "service" === e2.configure.props.dataOrigin.optionValueSetType]]), "service" === e2.configure.props.dataOrigin.optionValueSetType && e2.configure.props.dataOrigin.serveName ? (t(), o(z2, { key: 3, label: "快捷设置", class: "amb-design-attr-item" }, { default: n(() => [s(M2, { type: "primary", onClick: l2[9] || (l2[9] = (e3) => P.value = true) }, { default: n(() => l2[24] || (l2[24] = [c("编辑")])), _: 1 })]), _: 1 })) : u("", true), d(s(z2, { label: "模糊查询", class: "amb-design-attr-item" }, { default: n(() => [s(U2, { modelValue: e2.configure.props.dataOrigin.remote, "onUpdate:modelValue": l2[10] || (l2[10] = (a3) => e2.configure.props.dataOrigin.remote = a3), class: "ml-4" }, { default: n(() => [s(h2, { value: false }, { default: n(() => l2[25] || (l2[25] = [c("否")])), _: 1 }), s(h2, { value: true }, { default: n(() => l2[26] || (l2[26] = [c("是")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[f, e2.remote && ("dataTable" === e2.configure.props.dataOrigin.optionValueSetType || "service" === e2.configure.props.dataOrigin.optionValueSetType)]]), "service" === e2.configure.props.dataOrigin.optionValueSetType ? (t(), o(z2, { key: 4, label: "datas", class: "amb-design-attr-item" }, { default: n(() => [s(oe2, { modelValue: e2.configure.props.dataOrigin.service.datas, "onUpdate:modelValue": l2[11] || (l2[11] = (a3) => e2.configure.props.dataOrigin.service.datas = a3), filterable: "", clearable: "", placeholder: "请选择" }, { default: n(() => [(t(true), m(v, null, y(te.value, (e3, a3) => (t(), o(ie2, { key: a3, label: e3.label, value: e3.value }, { default: n(() => [r("span", Q, V(e3.label), 1), r("span", q, V(e3.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : u("", true), "service" === e2.configure.props.dataOrigin.optionValueSetType ? (t(), o(z2, { key: 5, label: "总页数", class: "amb-design-attr-item" }, { default: n(() => [s(oe2, { modelValue: e2.configure.props.dataOrigin.service.pageCount, "onUpdate:modelValue": l2[12] || (l2[12] = (a3) => e2.configure.props.dataOrigin.service.pageCount = a3), filterable: "", clearable: "", placeholder: "请选择" }, { default: n(() => [(t(true), m(v, null, y(te.value, (e3, a3) => (t(), o(ie2, { key: a3, label: e3.label, value: e3.value }, { default: n(() => [r("span", B, V(e3.label), 1), r("span", R, V(e3.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : u("", true), "service" === e2.configure.props.dataOrigin.optionValueSetType ? (t(), o(z2, { key: 6, label: "总条数", class: "amb-design-attr-item" }, { default: n(() => [s(oe2, { modelValue: e2.configure.props.dataOrigin.service.total, "onUpdate:modelValue": l2[13] || (l2[13] = (a3) => e2.configure.props.dataOrigin.service.total = a3), filterable: "", clearable: "", placeholder: "请选择" }, { default: n(() => [(t(true), m(v, null, y(te.value, (e3, a3) => (t(), o(ie2, { key: a3, label: e3.label, value: e3.value }, { default: n(() => [r("span", $, V(e3.label), 1), r("span", A, V(e3.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : u("", true), "service" === e2.configure.props.dataOrigin.optionValueSetType ? (t(), o(z2, { key: 7, label: "页码", class: "amb-design-attr-item" }, { default: n(() => [s(oe2, { modelValue: e2.configure.props.dataOrigin.service.pager, "onUpdate:modelValue": l2[14] || (l2[14] = (a3) => e2.configure.props.dataOrigin.service.pager = a3), filterable: "", clearable: "", placeholder: "请选择" }, { default: n(() => [(t(true), m(v, null, y(te.value, (e3, a3) => (t(), o(ie2, { key: a3, label: e3.label, value: e3.value }, { default: n(() => [r("span", I, V(e3.label), 1), r("span", E, V(e3.type), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : u("", true), "dataTable" === e2.configure.props.dataOrigin.optionValueSetType ? (t(), o(z2, { key: 8, label: "查询条件", class: "amb-design-attr-item" }, { default: n(() => [s(j, { onClick: l2[15] || (l2[15] = (e3) => ee.value = true), conditionData: e2.configure.props.dataOrigin.defaultQueryCriteria }, null, 8, ["conditionData"])]), _: 1 })) : u("", true), "dataTable" === e2.configure.props.dataOrigin.optionValueSetType ? (t(), o(z2, { key: 9, label: "过滤条件", class: "amb-design-attr-item" }, { default: n(() => [s(j, { onClick: l2[16] || (l2[16] = (e3) => W.value = true), conditionData: e2.configure.props.dataOrigin.sqlFilterCondition }, null, 8, ["conditionData"])]), _: 1 })) : u("", true), p(a2.$slots, "bottom", { row: e2.configure.props.dataOrigin }, void 0, true), d(s(L, { ref: "dataOriginServiceInRef", dataOrigin: g(le) }, null, 8, ["dataOrigin"]), [[f, "service" == e2.configure.props.dataOrigin.optionValueSetType]])]), s(T, { ref_key: "selectTableDialog", ref: Y, onSelectTable: me, systemCode: e2.pageDesign.systemCode, systemVersion: e2.pageDesign.systemVersion }, null, 8, ["systemCode", "systemVersion"]), X.value ? (t(), o(S, { key: 0, returnSetList: e2.configure.props.dataOrigin.returnSetList, onSave: be, onClose: Ve, onRemove: Oe }, null, 8, ["returnSetList"])) : u("", true), W.value ? (t(), o(C, { key: 1, list: e2.configure.props.dataOrigin.sqlFilterCondition, fieldNameList: e2.configure.modelFields, fieldMap: e2.configure.modelFieldsMap, dataFieldNameList: ae.value, onSave: ne, onClose: Ce }, null, 8, ["list", "fieldNameList", "fieldMap", "dataFieldNameList"])) : u("", true), ee.value ? (t(), o(C, { key: 2, list: e2.configure.props.dataOrigin.defaultQueryCriteria, fieldNameList: e2.configure.modelFields, fieldMap: e2.configure.modelFieldsMap, dataFieldNameList: ae.value, onClose: re, onSave: se }, null, 8, ["list", "fieldNameList", "fieldMap", "dataFieldNameList"])) : u("", true), P.value ? (t(), o(k, { key: 3, configure: e2.configure, modelFields: g(ue), pageDesign: e2.pageDesign, isChangeTable: g(de), onSetConfigure: ce, onClose: _e }, null, 8, ["configure", "modelFields", "pageDesign", "isChangeTable"])) : u("", true)]), _: 3 });
|
|
117
117
|
};
|
|
118
118
|
} });
|
|
119
119
|
export {
|