liyu-pc-base 1.0.985 → 1.0.989
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/{FieldRender-D3i6PJTs.js → FieldRender-CiLHCiFV.js} +2 -2
- package/dist/{FieldRender2-DVdznD-F.js → FieldRender2-7KOIkWgu.js} +5 -5
- package/dist/{FormRender3-DEKzMot4.js → FormRender3-DENMsGxU.js} +3 -3
- package/dist/{RemoteModal-Ca1pTaYZ.js → RemoteModal-DZkqi64T.js} +1 -1
- package/dist/{RemoteSelectPro-BB45o7ie.js → RemoteSelectPro-BXP77API.js} +3 -3
- package/dist/{SearchRender-ChqsjuUY.js → SearchRender-CPb-UUMo.js} +1 -1
- package/dist/{TinymceEditor-RuTN5CLa.js → TinymceEditor-B6KX-4ep.js} +2 -2
- package/dist/components/index.js +10 -10
- package/dist/{components-dPNURSio.js → components-B1bHLxQQ.js} +10 -10
- package/dist/{dbViewConfig-DPzhYUOh.js → dbViewConfig-S1zaUGg_.js} +1047 -947
- package/dist/{detailTablePro-CPs1Mxjk.js → detailTablePro-CXiEH9Qb.js} +1 -1
- package/dist/{function-DnoIHo24.js → function-CstOzCwb.js} +69 -66
- package/dist/index.js +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/dist/{tableModal-B_2QSE8m.js → tableModal-Cpj4A6C6.js} +1 -1
- package/dist/{tablePageHost-9q2NumMy.js → tablePageHost-DRFQYVvx.js} +129 -128
- package/dist/{tablePro-BxL8FgEp.js → tablePro-B7hodvqj.js} +18 -7
- package/dist/utils/function.js +1 -1
- package/dist/utils/hooks/useFetchData.js +1 -1
- package/package.json +1 -1
|
@@ -2,24 +2,24 @@ import { O as e, T as t, c as n, z as r } from "./init-plugin-CERVEi6b.js";
|
|
|
2
2
|
import { t as i } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
3
|
import { t as a } from "./lodash-CMVwnWxD.js";
|
|
4
4
|
import { getApiData as o } from "./api/api-model.js";
|
|
5
|
-
import {
|
|
6
|
-
import { ConditionOperatorMap as
|
|
7
|
-
import { t as
|
|
8
|
-
import "./components-
|
|
9
|
-
import { c as
|
|
10
|
-
import { a as
|
|
11
|
-
import { Fragment as
|
|
12
|
-
import { message as
|
|
13
|
-
import { LoadingOutlined as
|
|
14
|
-
import { useResizeObserver as
|
|
5
|
+
import { $ as s, L as c, Q as l, X as u, Z as d, it as f, rt as p } from "./function-CstOzCwb.js";
|
|
6
|
+
import { ConditionOperatorMap as m } from "./api/typing.js";
|
|
7
|
+
import { t as h } from "./RemoteSelectPro-BXP77API.js";
|
|
8
|
+
import "./components-B1bHLxQQ.js";
|
|
9
|
+
import { c as g, f as _, i as v } from "./TinymceEditor-B6KX-4ep.js";
|
|
10
|
+
import { a as y, o as b } from "./tablePro-B7hodvqj.js";
|
|
11
|
+
import { Fragment as x, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createSlots as D, createTextVNode as O, createVNode as k, defineComponent as A, mergeModels as j, nextTick as M, normalizeClass as N, normalizeStyle as P, onBeforeUnmount as ee, onMounted as F, openBlock as I, reactive as te, ref as L, renderList as R, resolveComponent as z, toDisplayString as B, unref as V, useModel as H, vShow as U, watch as W, withCtx as G, withDirectives as K, withModifiers as ne } from "vue";
|
|
12
|
+
import { message as q } from "ant-design-vue";
|
|
13
|
+
import { LoadingOutlined as J } from "@ant-design/icons-vue";
|
|
14
|
+
import { useResizeObserver as Y } from "@vueuse/core";
|
|
15
15
|
//#region src/components/dbView/configSteps/helpers.ts
|
|
16
|
-
var
|
|
17
|
-
let t =
|
|
16
|
+
var X = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void 0 ? e.data : e, re = (e) => {
|
|
17
|
+
let t = X(e);
|
|
18
18
|
return Array.isArray(t) ? t : [];
|
|
19
|
-
},
|
|
19
|
+
}, ie = { class: "sql-toolbar" }, ae = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "preview-block"
|
|
22
|
-
},
|
|
22
|
+
}, oe = { class: "meta-tip" }, se = /*#__PURE__*/ i(/* @__PURE__ */ A({
|
|
23
23
|
__name: "StepBasicConfig",
|
|
24
24
|
props: {
|
|
25
25
|
model: {},
|
|
@@ -29,7 +29,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
29
29
|
},
|
|
30
30
|
emits: ["update:sqlError"],
|
|
31
31
|
setup(e, { expose: t, emit: n }) {
|
|
32
|
-
let i = e, a = n, s =
|
|
32
|
+
let i = e, a = n, s = S(() => i.model), c = S(() => i.formType), l = S({
|
|
33
33
|
get: () => i.sqlError,
|
|
34
34
|
set: (e) => a("update:sqlError", e)
|
|
35
35
|
}), u = r().currentOrg, d = {
|
|
@@ -52,10 +52,10 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
52
52
|
required: !0,
|
|
53
53
|
message: "请填写查询SQL"
|
|
54
54
|
}]
|
|
55
|
-
}, f =
|
|
55
|
+
}, f = L([]), p = L(!1), m = async () => {
|
|
56
56
|
p.value = !0;
|
|
57
57
|
try {
|
|
58
|
-
f.value =
|
|
58
|
+
f.value = re(await o({
|
|
59
59
|
org_id: u?.id,
|
|
60
60
|
is_pagination: !1
|
|
61
61
|
}, `${i.record.model_app}/query_db_data_source_list`)).map((e) => ({
|
|
@@ -67,21 +67,21 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
67
67
|
} finally {
|
|
68
68
|
p.value = !1;
|
|
69
69
|
}
|
|
70
|
-
}, h =
|
|
70
|
+
}, h = L(!1), g = async () => {
|
|
71
71
|
h.value = !0;
|
|
72
72
|
try {
|
|
73
|
-
let e = await o({ org_id: u?.id }, `${i.record.model_app}/gen_view_flag`), t =
|
|
74
|
-
t?.flag ? s.value.flag = t.flag :
|
|
73
|
+
let e = await o({ org_id: u?.id }, `${i.record.model_app}/gen_view_flag`), t = X(e);
|
|
74
|
+
t?.flag ? s.value.flag = t.flag : q.warning(e && e.message || "生成视图标识失败,请手动填写");
|
|
75
75
|
} catch (e) {
|
|
76
|
-
|
|
76
|
+
q.warning(e?.message || "生成视图标识失败,请手动填写");
|
|
77
77
|
} finally {
|
|
78
78
|
h.value = !1;
|
|
79
79
|
}
|
|
80
|
-
}, _ =
|
|
81
|
-
|
|
82
|
-
l.value = "", v.value = [],
|
|
80
|
+
}, _ = L(!1), v = L([]), y = L([]), b = L(0);
|
|
81
|
+
W(() => [s.value.sql, s.value.data_source_id], () => {
|
|
82
|
+
l.value = "", v.value = [], y.value = [], b.value = 0;
|
|
83
83
|
});
|
|
84
|
-
let
|
|
84
|
+
let x = async () => {
|
|
85
85
|
if (!s.value.data_source_id || !s.value.sql) return {
|
|
86
86
|
ran: !1,
|
|
87
87
|
rows: 0
|
|
@@ -92,7 +92,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
92
92
|
org_id: u?.id,
|
|
93
93
|
data_source_id: s.value.data_source_id,
|
|
94
94
|
sql: s.value.sql
|
|
95
|
-
}, `${i.record.model_app}/preview_sql`), t =
|
|
95
|
+
}, `${i.record.model_app}/preview_sql`), t = X(e), n = Array.isArray(t?.rows) ? t.rows : [];
|
|
96
96
|
return e && e.success === !1 ? (l.value = e.message || "SQL 执行失败", v.value = [], {
|
|
97
97
|
ran: !0,
|
|
98
98
|
rows: 0,
|
|
@@ -100,16 +100,16 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
100
100
|
}) : n.length ? (v.value = n.map((e, t) => ({
|
|
101
101
|
...e,
|
|
102
102
|
__i: t
|
|
103
|
-
})),
|
|
103
|
+
})), y.value = Object.keys(n[0] || {}).map((e) => ({
|
|
104
104
|
title: e,
|
|
105
105
|
dataIndex: e,
|
|
106
106
|
key: e,
|
|
107
107
|
width: 160,
|
|
108
108
|
ellipsis: !0
|
|
109
|
-
})),
|
|
109
|
+
})), b.value = t?.total ?? n.length, {
|
|
110
110
|
ran: !0,
|
|
111
111
|
rows: n.length
|
|
112
|
-
}) : (l.value = "SQL 执行成功,但结果为空(0 行)", v.value = [],
|
|
112
|
+
}) : (l.value = "SQL 执行成功,但结果为空(0 行)", v.value = [], b.value = 0, {
|
|
113
113
|
ran: !0,
|
|
114
114
|
rows: 0,
|
|
115
115
|
error: l.value
|
|
@@ -124,19 +124,19 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
124
124
|
_.value = !1;
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
|
-
return t({ runPreview:
|
|
127
|
+
return t({ runPreview: x }), F(() => {
|
|
128
128
|
m(), i.formType !== "edit" && g();
|
|
129
129
|
}), (e, t) => {
|
|
130
|
-
let n =
|
|
131
|
-
return
|
|
132
|
-
default:
|
|
133
|
-
|
|
134
|
-
default:
|
|
130
|
+
let n = z("a-input"), r = z("a-form-item"), i = z("a-col"), a = z("a-button"), o = z("a-select"), u = z("a-textarea"), m = z("a-alert"), S = z("a-table"), A = z("a-row");
|
|
131
|
+
return I(), C(A, { gutter: 16 }, {
|
|
132
|
+
default: G(() => [
|
|
133
|
+
k(i, { span: 12 }, {
|
|
134
|
+
default: G(() => [k(r, {
|
|
135
135
|
label: "视图名称",
|
|
136
136
|
name: "name",
|
|
137
137
|
rules: d.name
|
|
138
138
|
}, {
|
|
139
|
-
default:
|
|
139
|
+
default: G(() => [k(n, {
|
|
140
140
|
value: s.value.name,
|
|
141
141
|
"onUpdate:value": t[0] ||= (e) => s.value.name = e,
|
|
142
142
|
placeholder: "请填写视图名称",
|
|
@@ -146,28 +146,28 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
146
146
|
}, 8, ["rules"])]),
|
|
147
147
|
_: 1
|
|
148
148
|
}),
|
|
149
|
-
|
|
150
|
-
default:
|
|
149
|
+
k(i, { span: 12 }, {
|
|
150
|
+
default: G(() => [k(r, {
|
|
151
151
|
label: "视图标识",
|
|
152
152
|
name: "flag",
|
|
153
153
|
rules: d.flag,
|
|
154
154
|
extra: "全库唯一;仅英文大小写字母和数字(禁下划线/横杠),用于 URL 与菜单"
|
|
155
155
|
}, {
|
|
156
|
-
default:
|
|
156
|
+
default: G(() => [k(n, {
|
|
157
157
|
value: s.value.flag,
|
|
158
158
|
"onUpdate:value": t[1] ||= (e) => s.value.flag = e,
|
|
159
159
|
placeholder: "如 salesOrderList",
|
|
160
160
|
"allow-clear": ""
|
|
161
|
-
},
|
|
161
|
+
}, D({ _: 2 }, [c.value === "create" ? {
|
|
162
162
|
name: "suffix",
|
|
163
|
-
fn:
|
|
163
|
+
fn: G(() => [k(a, {
|
|
164
164
|
type: "link",
|
|
165
165
|
size: "small",
|
|
166
166
|
style: { padding: "0" },
|
|
167
167
|
loading: h.value,
|
|
168
168
|
onClick: g
|
|
169
169
|
}, {
|
|
170
|
-
default:
|
|
170
|
+
default: G(() => t[4] ||= [O(" 换一个 ")]),
|
|
171
171
|
_: 1
|
|
172
172
|
}, 8, ["loading"])]),
|
|
173
173
|
key: "0"
|
|
@@ -176,13 +176,13 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
176
176
|
}, 8, ["rules"])]),
|
|
177
177
|
_: 1
|
|
178
178
|
}),
|
|
179
|
-
|
|
180
|
-
default:
|
|
179
|
+
k(i, { span: 12 }, {
|
|
180
|
+
default: G(() => [k(r, {
|
|
181
181
|
label: "数据源",
|
|
182
182
|
name: "data_source_id",
|
|
183
183
|
rules: d.data_source_id
|
|
184
184
|
}, {
|
|
185
|
-
default:
|
|
185
|
+
default: G(() => [k(o, {
|
|
186
186
|
value: s.value.data_source_id,
|
|
187
187
|
"onUpdate:value": t[2] ||= (e) => s.value.data_source_id = e,
|
|
188
188
|
placeholder: "请选择数据源",
|
|
@@ -199,15 +199,15 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
199
199
|
}, 8, ["rules"])]),
|
|
200
200
|
_: 1
|
|
201
201
|
}),
|
|
202
|
-
|
|
203
|
-
default:
|
|
204
|
-
|
|
202
|
+
k(i, { span: 24 }, {
|
|
203
|
+
default: G(() => [
|
|
204
|
+
k(r, {
|
|
205
205
|
label: "查询SQL",
|
|
206
206
|
name: "sql",
|
|
207
207
|
rules: d.sql,
|
|
208
208
|
extra: "只读查询;可用模板变量 {{org_id}}、{{person_id}}(jinja2 渲染)"
|
|
209
209
|
}, {
|
|
210
|
-
default:
|
|
210
|
+
default: G(() => [k(u, {
|
|
211
211
|
value: s.value.sql,
|
|
212
212
|
"onUpdate:value": t[3] ||= (e) => s.value.sql = e,
|
|
213
213
|
rows: 8,
|
|
@@ -215,24 +215,24 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
215
215
|
}, null, 8, ["value"])]),
|
|
216
216
|
_: 1
|
|
217
217
|
}, 8, ["rules"]),
|
|
218
|
-
|
|
218
|
+
E("div", ie, [k(a, {
|
|
219
219
|
size: "small",
|
|
220
220
|
disabled: !s.value.data_source_id || !s.value.sql,
|
|
221
221
|
loading: _.value,
|
|
222
|
-
onClick:
|
|
222
|
+
onClick: x
|
|
223
223
|
}, {
|
|
224
|
-
default:
|
|
224
|
+
default: G(() => t[5] ||= [O(" 预览(前 100 行) ")]),
|
|
225
225
|
_: 1
|
|
226
|
-
}, 8, ["disabled", "loading"]), t[6] ||=
|
|
227
|
-
l.value ? (
|
|
226
|
+
}, 8, ["disabled", "loading"]), t[6] ||= E("span", { class: "meta-tip" }, "先选数据源并填写 SQL;预览走配置期接口,不落库", -1)]),
|
|
227
|
+
l.value ? (I(), C(m, {
|
|
228
228
|
key: 0,
|
|
229
229
|
type: "error",
|
|
230
230
|
"show-icon": "",
|
|
231
231
|
message: l.value,
|
|
232
232
|
class: "sql-alert"
|
|
233
|
-
}, null, 8, ["message"])) :
|
|
234
|
-
v.value.length ? (
|
|
235
|
-
columns:
|
|
233
|
+
}, null, 8, ["message"])) : w("", !0),
|
|
234
|
+
v.value.length ? (I(), T("div", ae, [E("div", oe, "预览结果:共 " + B(b.value) + " 行(最多回传 100 行)", 1), k(S, {
|
|
235
|
+
columns: y.value,
|
|
236
236
|
"data-source": v.value,
|
|
237
237
|
"row-key": "__i",
|
|
238
238
|
size: "small",
|
|
@@ -241,7 +241,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
241
241
|
x: 640,
|
|
242
242
|
y: 220
|
|
243
243
|
}
|
|
244
|
-
}, null, 8, ["columns", "data-source"])])) :
|
|
244
|
+
}, null, 8, ["columns", "data-source"])])) : w("", !0)
|
|
245
245
|
]),
|
|
246
246
|
_: 1
|
|
247
247
|
})
|
|
@@ -250,7 +250,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
250
250
|
});
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
|
-
}), [["__scopeId", "data-v-984c5942"]]),
|
|
253
|
+
}), [["__scopeId", "data-v-984c5942"]]), ce = [
|
|
254
254
|
{
|
|
255
255
|
value: "normal",
|
|
256
256
|
label: "标准视图"
|
|
@@ -263,7 +263,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
263
263
|
value: "pivot_charts",
|
|
264
264
|
label: "透视图"
|
|
265
265
|
}
|
|
266
|
-
],
|
|
266
|
+
], le = [
|
|
267
267
|
{
|
|
268
268
|
value: "left_grid",
|
|
269
269
|
label: "左侧分栏"
|
|
@@ -276,19 +276,19 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
276
276
|
value: "top_tag_flat",
|
|
277
277
|
label: "顶部标签(平铺)"
|
|
278
278
|
}
|
|
279
|
-
],
|
|
279
|
+
], ue = {
|
|
280
280
|
int: "int",
|
|
281
281
|
float: "float",
|
|
282
282
|
bool: "bool",
|
|
283
283
|
datetime: "datetime",
|
|
284
284
|
date: "date",
|
|
285
285
|
str: "str"
|
|
286
|
-
},
|
|
286
|
+
}, de = {
|
|
287
287
|
datetime: "datetime",
|
|
288
288
|
date: "date",
|
|
289
289
|
bool: "tag",
|
|
290
290
|
json: "json"
|
|
291
|
-
},
|
|
291
|
+
}, fe = "common_number", pe = [
|
|
292
292
|
{
|
|
293
293
|
title: "顺序",
|
|
294
294
|
key: "column_order",
|
|
@@ -420,7 +420,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
420
420
|
width: 60,
|
|
421
421
|
fixed: "right"
|
|
422
422
|
}
|
|
423
|
-
],
|
|
423
|
+
], me = pe.reduce((e, t) => e + (t.width || 0), 0), he = [
|
|
424
424
|
[
|
|
425
425
|
"name",
|
|
426
426
|
"flag",
|
|
@@ -430,45 +430,45 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
430
430
|
[],
|
|
431
431
|
[],
|
|
432
432
|
[]
|
|
433
|
-
],
|
|
433
|
+
], ge = /* @__PURE__ */ A({
|
|
434
434
|
__name: "StepDisplayConfig",
|
|
435
435
|
props: { model: {} },
|
|
436
436
|
setup(e) {
|
|
437
|
-
let t = e, n =
|
|
437
|
+
let t = e, n = S(() => t.model), r = ce, i = le, a = S(() => {
|
|
438
438
|
let e = n.value.enable_view_types;
|
|
439
439
|
return Array.isArray(e) && e.length ? r.filter((t) => e.includes(t.value)) : r;
|
|
440
440
|
});
|
|
441
|
-
return
|
|
441
|
+
return W(() => n.value.enable_view_types, (e) => {
|
|
442
442
|
Array.isArray(e) && e.length && n.value.default_view_type && !e.includes(n.value.default_view_type) && (n.value.default_view_type = void 0);
|
|
443
443
|
}), (e, t) => {
|
|
444
|
-
let o =
|
|
445
|
-
return
|
|
446
|
-
default:
|
|
447
|
-
|
|
448
|
-
default:
|
|
444
|
+
let o = z("a-select"), s = z("a-form-item"), c = z("a-col"), l = z("a-switch"), u = z("a-input-number"), d = z("a-row");
|
|
445
|
+
return I(), C(d, { gutter: 16 }, {
|
|
446
|
+
default: G(() => [
|
|
447
|
+
k(c, { span: 12 }, {
|
|
448
|
+
default: G(() => [k(s, {
|
|
449
449
|
label: "启用的视图类型",
|
|
450
450
|
name: "enable_view_types",
|
|
451
451
|
extra: "不选 = 全部启用"
|
|
452
452
|
}, {
|
|
453
|
-
default:
|
|
453
|
+
default: G(() => [k(o, {
|
|
454
454
|
value: n.value.enable_view_types,
|
|
455
455
|
"onUpdate:value": t[0] ||= (e) => n.value.enable_view_types = e,
|
|
456
456
|
mode: "multiple",
|
|
457
457
|
"allow-clear": "",
|
|
458
458
|
placeholder: "不选 = 全部启用",
|
|
459
|
-
options:
|
|
459
|
+
options: V(r)
|
|
460
460
|
}, null, 8, ["value", "options"])]),
|
|
461
461
|
_: 1
|
|
462
462
|
})]),
|
|
463
463
|
_: 1
|
|
464
464
|
}),
|
|
465
|
-
|
|
466
|
-
default:
|
|
465
|
+
k(c, { span: 12 }, {
|
|
466
|
+
default: G(() => [k(s, {
|
|
467
467
|
label: "默认视图类型",
|
|
468
468
|
name: "default_view_type",
|
|
469
469
|
extra: "仅能在已启用的视图类型中选择;未启用任何类型时不限"
|
|
470
470
|
}, {
|
|
471
|
-
default:
|
|
471
|
+
default: G(() => [k(o, {
|
|
472
472
|
value: n.value.default_view_type,
|
|
473
473
|
"onUpdate:value": t[1] ||= (e) => n.value.default_view_type = e,
|
|
474
474
|
"allow-clear": "",
|
|
@@ -479,26 +479,26 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
479
479
|
})]),
|
|
480
480
|
_: 1
|
|
481
481
|
}),
|
|
482
|
-
|
|
483
|
-
default:
|
|
482
|
+
k(c, { span: 12 }, {
|
|
483
|
+
default: G(() => [k(s, {
|
|
484
484
|
label: "视图展示形式",
|
|
485
485
|
name: "view_display_type",
|
|
486
486
|
extra: "顶部标签:顶部按钮组切换视图类型;平铺:三类型视图混排,无类型切换"
|
|
487
487
|
}, {
|
|
488
|
-
default:
|
|
488
|
+
default: G(() => [k(o, {
|
|
489
489
|
value: n.value.view_display_type,
|
|
490
490
|
"onUpdate:value": t[2] ||= (e) => n.value.view_display_type = e,
|
|
491
491
|
"allow-clear": "",
|
|
492
492
|
placeholder: "默认左侧分栏",
|
|
493
|
-
options:
|
|
493
|
+
options: V(i)
|
|
494
494
|
}, null, 8, ["value", "options"])]),
|
|
495
495
|
_: 1
|
|
496
496
|
})]),
|
|
497
497
|
_: 1
|
|
498
498
|
}),
|
|
499
|
-
|
|
500
|
-
default:
|
|
501
|
-
default:
|
|
499
|
+
k(c, { span: 12 }, {
|
|
500
|
+
default: G(() => [k(s, { label: "启用分页" }, {
|
|
501
|
+
default: G(() => [k(l, {
|
|
502
502
|
checked: n.value.is_pagination,
|
|
503
503
|
"onUpdate:checked": t[3] ||= (e) => n.value.is_pagination = e,
|
|
504
504
|
"checked-children": "开",
|
|
@@ -508,12 +508,12 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
508
508
|
})]),
|
|
509
509
|
_: 1
|
|
510
510
|
}),
|
|
511
|
-
|
|
512
|
-
default:
|
|
511
|
+
k(c, { span: 12 }, {
|
|
512
|
+
default: G(() => [k(s, {
|
|
513
513
|
label: "每页条数",
|
|
514
514
|
name: "pageSize"
|
|
515
515
|
}, {
|
|
516
|
-
default:
|
|
516
|
+
default: G(() => [k(u, {
|
|
517
517
|
value: n.value.pageSize,
|
|
518
518
|
"onUpdate:value": t[4] ||= (e) => n.value.pageSize = e,
|
|
519
519
|
style: { width: "100%" },
|
|
@@ -524,12 +524,12 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
524
524
|
})]),
|
|
525
525
|
_: 1
|
|
526
526
|
}),
|
|
527
|
-
|
|
528
|
-
default:
|
|
527
|
+
k(c, { span: 12 }, {
|
|
528
|
+
default: G(() => [k(s, {
|
|
529
529
|
label: "每页条数选项",
|
|
530
530
|
name: "page_size_options"
|
|
531
531
|
}, {
|
|
532
|
-
default:
|
|
532
|
+
default: G(() => [k(o, {
|
|
533
533
|
value: n.value.page_size_options,
|
|
534
534
|
"onUpdate:value": t[5] ||= (e) => n.value.page_size_options = e,
|
|
535
535
|
mode: "tags",
|
|
@@ -546,22 +546,22 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
546
546
|
});
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
|
-
}),
|
|
549
|
+
}), _e = {
|
|
550
550
|
key: 2,
|
|
551
551
|
class: "color-cell"
|
|
552
|
-
},
|
|
552
|
+
}, ve = { class: "swatches" }, ye = ["title", "onClick"], be = [
|
|
553
553
|
"value",
|
|
554
554
|
"title",
|
|
555
555
|
"onInput"
|
|
556
|
-
],
|
|
556
|
+
], xe = {
|
|
557
557
|
key: 3,
|
|
558
558
|
class: "preview-cell"
|
|
559
|
-
},
|
|
559
|
+
}, Se = {
|
|
560
560
|
key: 1,
|
|
561
561
|
class: "preview-empty"
|
|
562
|
-
},
|
|
562
|
+
}, Ce = /*#__PURE__*/ i(/* @__PURE__ */ A({
|
|
563
563
|
__name: "ColumnMapColorModal",
|
|
564
|
-
props: /*@__PURE__*/
|
|
564
|
+
props: /*@__PURE__*/ j({
|
|
565
565
|
open: { type: Boolean },
|
|
566
566
|
record: {}
|
|
567
567
|
}, {
|
|
@@ -573,7 +573,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
573
573
|
}),
|
|
574
574
|
emits: ["update:open"],
|
|
575
575
|
setup(e) {
|
|
576
|
-
let t = e, n =
|
|
576
|
+
let t = e, n = H(e, "open"), r = [
|
|
577
577
|
{
|
|
578
578
|
title: "原值",
|
|
579
579
|
key: "value",
|
|
@@ -615,13 +615,13 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
615
615
|
purple: "#722ed1"
|
|
616
616
|
}, o = (e, t) => {
|
|
617
617
|
e.color = t.target.value;
|
|
618
|
-
}, s = (e) => String(e.color || "").trim().startsWith("#"), c = 0, l =
|
|
618
|
+
}, s = (e) => String(e.color || "").trim().startsWith("#"), c = 0, l = L([]), u = (e = "", t = "", n = "") => ({
|
|
619
619
|
__k: ++c,
|
|
620
620
|
value: e,
|
|
621
621
|
label: t,
|
|
622
622
|
color: n
|
|
623
623
|
});
|
|
624
|
-
|
|
624
|
+
W(() => t.open, (e) => {
|
|
625
625
|
if (!e) return;
|
|
626
626
|
c = 0;
|
|
627
627
|
let n = t.record?.content_map || {}, r = t.record?.color_map || {}, i = Array.from(/* @__PURE__ */ new Set([...Object.keys(n || {}), ...Object.keys(r || {})]));
|
|
@@ -629,7 +629,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
629
629
|
});
|
|
630
630
|
let d = () => l.value.push(u()), f = (e) => {
|
|
631
631
|
l.value = l.value.filter((t) => t.__k !== e);
|
|
632
|
-
}, p =
|
|
632
|
+
}, p = S(() => {
|
|
633
633
|
let e = l.value.filter((e) => (e.value || "").trim() === "other");
|
|
634
634
|
return e.length ? e[e.length - 1] : void 0;
|
|
635
635
|
}), m = (e) => {
|
|
@@ -642,7 +642,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
642
642
|
for (let t of l.value) {
|
|
643
643
|
let n = (t.value || "").trim();
|
|
644
644
|
if (!n) continue;
|
|
645
|
-
n in e &&
|
|
645
|
+
n in e && q.warning(`原值「${n}」重复,已保留最后一次配置`);
|
|
646
646
|
let i = (t.label || "").trim(), a = (t.color || "").trim();
|
|
647
647
|
i && (e[n] = i), a && (r[n] = a);
|
|
648
648
|
}
|
|
@@ -651,8 +651,8 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
651
651
|
n.value = !1;
|
|
652
652
|
};
|
|
653
653
|
return (e, t) => {
|
|
654
|
-
let c =
|
|
655
|
-
return
|
|
654
|
+
let c = z("a-input"), u = z("a-tag"), p = z("a-button"), v = z("a-table"), y = z("a-modal");
|
|
655
|
+
return I(), C(y, {
|
|
656
656
|
title: `转换与颜色 —— ${e.record?.title || e.record?.data_index || ""}`,
|
|
657
657
|
width: "760px",
|
|
658
658
|
open: n.value,
|
|
@@ -663,52 +663,52 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
663
663
|
onCancel: _,
|
|
664
664
|
onOk: g
|
|
665
665
|
}, {
|
|
666
|
-
default:
|
|
667
|
-
t[3] ||=
|
|
668
|
-
|
|
666
|
+
default: G(() => [
|
|
667
|
+
t[3] ||= E("div", { class: "map-tip" }, " 原值 → 显示文本 与 原值 → 颜色 在此一体化配置:一行 = 一条「原值」的转换与颜色,落库时拆回两个键。 最右「预览」按运行时标签组件的真实样式渲染 —— 内置色是浅底彩字、 自定义色是实心彩底白字,两者观感不同属正常。 ", -1),
|
|
668
|
+
k(v, {
|
|
669
669
|
"data-source": l.value,
|
|
670
670
|
columns: r,
|
|
671
671
|
"row-key": "__k",
|
|
672
672
|
size: "small",
|
|
673
673
|
pagination: !1
|
|
674
674
|
}, {
|
|
675
|
-
bodyCell:
|
|
675
|
+
bodyCell: G(({ column: e, record: n }) => [e.key === "value" ? (I(), C(c, {
|
|
676
676
|
key: 0,
|
|
677
677
|
value: n.value,
|
|
678
678
|
"onUpdate:value": (e) => n.value = e,
|
|
679
679
|
size: "small",
|
|
680
680
|
placeholder: "原值",
|
|
681
681
|
"allow-clear": ""
|
|
682
|
-
}, null, 8, ["value", "onUpdate:value"])) : e.key === "label" ? (
|
|
682
|
+
}, null, 8, ["value", "onUpdate:value"])) : e.key === "label" ? (I(), C(c, {
|
|
683
683
|
key: 1,
|
|
684
684
|
value: n.label,
|
|
685
685
|
"onUpdate:value": (e) => n.label = e,
|
|
686
686
|
size: "small",
|
|
687
687
|
placeholder: "显示文本",
|
|
688
688
|
"allow-clear": ""
|
|
689
|
-
}, null, 8, ["value", "onUpdate:value"])) : e.key === "color" ? (
|
|
690
|
-
(
|
|
689
|
+
}, null, 8, ["value", "onUpdate:value"])) : e.key === "color" ? (I(), T("div", _e, [E("div", ve, [
|
|
690
|
+
(I(), T(x, null, R(i, (e) => E("span", {
|
|
691
691
|
key: e,
|
|
692
|
-
class:
|
|
693
|
-
style:
|
|
692
|
+
class: N(["swatch", { active: n.color === e }]),
|
|
693
|
+
style: P({ background: a[e] }),
|
|
694
694
|
title: e,
|
|
695
695
|
onClick: (t) => n.color = e
|
|
696
|
-
}, null, 14,
|
|
697
|
-
t[0] ||=
|
|
698
|
-
|
|
696
|
+
}, null, 14, ye)), 64)),
|
|
697
|
+
t[0] ||= E("span", { class: "custom-color-label" }, "自定义:", -1),
|
|
698
|
+
E("input", {
|
|
699
699
|
type: "color",
|
|
700
|
-
class:
|
|
700
|
+
class: N(["custom-color-input", { active: s(n) }]),
|
|
701
701
|
value: n.color && n.color.startsWith("#") ? n.color : "#1677ff",
|
|
702
702
|
title: s(n) ? n.color : "自定义颜色",
|
|
703
703
|
onInput: (e) => o(n, e)
|
|
704
|
-
}, null, 42,
|
|
705
|
-
])])) : e.key === "preview" ? (
|
|
704
|
+
}, null, 42, be)
|
|
705
|
+
])])) : e.key === "preview" ? (I(), T("div", xe, [m(n) ? (I(), C(u, {
|
|
706
706
|
key: 0,
|
|
707
707
|
color: h(n)
|
|
708
708
|
}, {
|
|
709
|
-
default:
|
|
709
|
+
default: G(() => [O(B(m(n)), 1)]),
|
|
710
710
|
_: 2
|
|
711
|
-
}, 1032, ["color"])) : (
|
|
711
|
+
}, 1032, ["color"])) : (I(), T("span", Se, " — "))])) : e.key === "action" ? (I(), C(p, {
|
|
712
712
|
key: 4,
|
|
713
713
|
type: "link",
|
|
714
714
|
danger: "",
|
|
@@ -716,19 +716,19 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
716
716
|
style: { padding: "0" },
|
|
717
717
|
onClick: (e) => f(n.__k)
|
|
718
718
|
}, {
|
|
719
|
-
default:
|
|
719
|
+
default: G(() => t[1] ||= [O(" 删除 ")]),
|
|
720
720
|
_: 2
|
|
721
|
-
}, 1032, ["onClick"])) :
|
|
721
|
+
}, 1032, ["onClick"])) : w("", !0)]),
|
|
722
722
|
_: 1
|
|
723
723
|
}, 8, ["data-source"]),
|
|
724
|
-
|
|
724
|
+
k(p, {
|
|
725
725
|
size: "small",
|
|
726
726
|
type: "dashed",
|
|
727
727
|
block: "",
|
|
728
728
|
style: { "margin-top": "8px" },
|
|
729
729
|
onClick: d
|
|
730
730
|
}, {
|
|
731
|
-
default:
|
|
731
|
+
default: G(() => t[2] ||= [O(" + 添加一条转换 ")]),
|
|
732
732
|
_: 1
|
|
733
733
|
})
|
|
734
734
|
]),
|
|
@@ -736,21 +736,21 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
736
736
|
}, 8, ["title", "open"]);
|
|
737
737
|
};
|
|
738
738
|
}
|
|
739
|
-
}), [["__scopeId", "data-v-35ae6904"]]),
|
|
739
|
+
}), [["__scopeId", "data-v-35ae6904"]]), we = { class: "config-grid" }, Te = { class: "config-card" }, Ee = { class: "config-row" }, De = { class: "config-row" }, Oe = {
|
|
740
740
|
key: 2,
|
|
741
741
|
class: "config-control config-placeholder"
|
|
742
|
-
},
|
|
742
|
+
}, ke = {
|
|
743
743
|
key: 0,
|
|
744
744
|
class: "params-error-tip"
|
|
745
|
-
},
|
|
745
|
+
}, Ae = { class: "config-card" }, je = { class: "config-row" }, Me = { class: "config-row" }, Ne = {
|
|
746
746
|
key: 2,
|
|
747
747
|
class: "config-control config-placeholder"
|
|
748
|
-
},
|
|
748
|
+
}, Pe = {
|
|
749
749
|
key: 0,
|
|
750
750
|
class: "params-error-tip"
|
|
751
|
-
},
|
|
751
|
+
}, Fe = { class: "select-tools" }, Ie = ["onMousedown", "onMouseenter"], Le = { class: "chip-title" }, Re = { class: "chip-sub" }, ze = /*#__PURE__*/ i(/* @__PURE__ */ A({
|
|
752
752
|
__name: "ColumnBatchConfigModal",
|
|
753
|
-
props: /*@__PURE__*/
|
|
753
|
+
props: /*@__PURE__*/ j({ rows: {} }, {
|
|
754
754
|
open: {
|
|
755
755
|
type: Boolean,
|
|
756
756
|
default: !1
|
|
@@ -759,15 +759,15 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
759
759
|
}),
|
|
760
760
|
emits: ["update:open"],
|
|
761
761
|
setup(n) {
|
|
762
|
-
let r = n, i =
|
|
762
|
+
let r = n, i = H(n, "open"), a = (e, t) => e.filter((e) => e?.[t]).map((e) => ({
|
|
763
763
|
value: e[t],
|
|
764
764
|
label: `${e.name || e[t]}(${e[t]})`
|
|
765
|
-
})), o =
|
|
765
|
+
})), o = S(() => a(t(), "cellComponent")), s = S(() => a(e(), "cellSummaryComponent")), c = te({
|
|
766
766
|
cell_component: !1,
|
|
767
767
|
cell_component_params: !1,
|
|
768
768
|
cell_summary_component: !1,
|
|
769
769
|
cell_summary_component_params: !1
|
|
770
|
-
}), l =
|
|
770
|
+
}), l = L(void 0), u = L(""), d = L(void 0), f = L(""), p = S(() => h(u.value)), m = S(() => h(f.value)), h = (e) => {
|
|
771
771
|
if (!e.trim()) return "";
|
|
772
772
|
try {
|
|
773
773
|
let t = JSON.parse(e);
|
|
@@ -775,38 +775,38 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
775
775
|
} catch {
|
|
776
776
|
return "JSON 格式错误";
|
|
777
777
|
}
|
|
778
|
-
}, g = (e, t) => String(t.value).includes(e),
|
|
779
|
-
t ?
|
|
780
|
-
},
|
|
781
|
-
|
|
782
|
-
},
|
|
783
|
-
|
|
784
|
-
},
|
|
785
|
-
|
|
778
|
+
}, g = (e, t) => String(t.value).includes(e), _ = L(/* @__PURE__ */ new Set()), v = (e) => _.value.has(e.data_index), y = (e, t) => {
|
|
779
|
+
t ? _.value.add(e.data_index) : _.value.delete(e.data_index);
|
|
780
|
+
}, D = L(!1), A = L(!1), j = (e) => {
|
|
781
|
+
D.value = !0, A.value = !v(e), y(e, A.value);
|
|
782
|
+
}, M = (e) => {
|
|
783
|
+
D.value && y(e, A.value);
|
|
784
|
+
}, P = () => {
|
|
785
|
+
D.value = !1;
|
|
786
786
|
};
|
|
787
|
-
|
|
788
|
-
let
|
|
789
|
-
if (!
|
|
790
|
-
|
|
787
|
+
F(() => document.addEventListener("mouseup", P)), ee(() => document.removeEventListener("mouseup", P));
|
|
788
|
+
let U = () => r.rows.forEach((e) => _.value.add(e.data_index)), K = () => _.value.clear(), J = () => {
|
|
789
|
+
if (!_.value.size) {
|
|
790
|
+
q.warning("请先选择要配置的列");
|
|
791
791
|
return;
|
|
792
792
|
}
|
|
793
793
|
if (!Object.keys(c).filter((e) => c[e]).length) {
|
|
794
|
-
|
|
794
|
+
q.warning("请先勾选要配置的内容");
|
|
795
795
|
return;
|
|
796
796
|
}
|
|
797
797
|
if (p.value || m.value) {
|
|
798
|
-
|
|
798
|
+
q.warning("参数 JSON 格式错误,请修正后再应用");
|
|
799
799
|
return;
|
|
800
800
|
}
|
|
801
801
|
let e = (e) => e.trim() ? JSON.parse(e) : null, t = c.cell_component, n = c.cell_summary_component, a = t && l.value === "common_number", o = n && d.value === "common_number";
|
|
802
|
-
for (let i of r.rows)
|
|
803
|
-
|
|
804
|
-
},
|
|
805
|
-
return
|
|
806
|
-
e && (
|
|
802
|
+
for (let i of r.rows) _.value.has(i.data_index) && (t && (i.cell_component = l.value || "", c.cell_component_params || (i.cell_component_params = null)), c.cell_component_params && (i.cell_component_params = a ? Y.value ? { pattern: Y.value } : null : e(u.value)), n && (i.cell_summary_component = d.value || "", c.cell_summary_component_params || (i.cell_summary_component_params = null)), c.cell_summary_component_params && (i.cell_summary_component_params = o ? X.value ? { pattern: X.value } : null : e(f.value)));
|
|
803
|
+
q.success(`已批量配置 ${_.value.size} 列`), i.value = !1;
|
|
804
|
+
}, Y = L(""), X = L("");
|
|
805
|
+
return W(i, (e) => {
|
|
806
|
+
e && (_.value = /* @__PURE__ */ new Set(), D.value = !1, Y.value = "", X.value = "", u.value = "", f.value = "");
|
|
807
807
|
}), (e, t) => {
|
|
808
|
-
let n =
|
|
809
|
-
return
|
|
808
|
+
let n = z("a-divider"), r = z("a-checkbox"), a = z("a-select"), h = z("a-auto-complete"), y = z("a-textarea"), S = z("a-button"), A = z("a-tag"), P = z("a-modal");
|
|
809
|
+
return I(), C(P, {
|
|
810
810
|
title: "批量配置单元格组件 / 汇总组件",
|
|
811
811
|
width: "880px",
|
|
812
812
|
open: i.value,
|
|
@@ -815,31 +815,31 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
815
815
|
centered: "",
|
|
816
816
|
"destroy-on-close": "",
|
|
817
817
|
onCancel: t[11] ||= (e) => i.value = !1,
|
|
818
|
-
onOk:
|
|
818
|
+
onOk: J
|
|
819
819
|
}, {
|
|
820
|
-
default:
|
|
821
|
-
t[22] ||=
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
820
|
+
default: G(() => [
|
|
821
|
+
t[22] ||= E("div", { class: "batch-tip" }, [
|
|
822
|
+
O(" 第 1 步勾选要配置的项并填写值 → 第 2 步点选 / "),
|
|
823
|
+
E("b", null, "按住鼠标拖选"),
|
|
824
|
+
O(" 要配置的列(拖选按 「起始格的反状态」刷选,再拖一遍可取消)→ 点「应用」只覆盖勾选项,其余配置原样保留。 ")
|
|
825
825
|
], -1),
|
|
826
|
-
|
|
826
|
+
k(n, {
|
|
827
827
|
orientation: "left",
|
|
828
828
|
class: "batch-divider"
|
|
829
829
|
}, {
|
|
830
|
-
default:
|
|
830
|
+
default: G(() => t[12] ||= [O(" 配置内容 ")]),
|
|
831
831
|
_: 1
|
|
832
832
|
}),
|
|
833
|
-
|
|
834
|
-
t[15] ||=
|
|
835
|
-
|
|
833
|
+
E("div", we, [E("div", Te, [
|
|
834
|
+
t[15] ||= E("div", { class: "config-card-title" }, "单元格组件", -1),
|
|
835
|
+
E("div", Ee, [k(r, {
|
|
836
836
|
checked: c.cell_component,
|
|
837
837
|
"onUpdate:checked": t[0] ||= (e) => c.cell_component = e,
|
|
838
838
|
class: "config-check"
|
|
839
839
|
}, {
|
|
840
|
-
default:
|
|
840
|
+
default: G(() => t[13] ||= [O(" 组件 ")]),
|
|
841
841
|
_: 1
|
|
842
|
-
}, 8, ["checked"]),
|
|
842
|
+
}, 8, ["checked"]), k(a, {
|
|
843
843
|
value: l.value,
|
|
844
844
|
"onUpdate:value": t[1] ||= (e) => l.value = e,
|
|
845
845
|
size: "small",
|
|
@@ -855,41 +855,41 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
855
855
|
"disabled",
|
|
856
856
|
"options"
|
|
857
857
|
])]),
|
|
858
|
-
|
|
858
|
+
E("div", De, [k(r, {
|
|
859
859
|
checked: c.cell_component_params,
|
|
860
860
|
"onUpdate:checked": t[2] ||= (e) => c.cell_component_params = e,
|
|
861
861
|
class: "config-check"
|
|
862
862
|
}, {
|
|
863
|
-
default:
|
|
863
|
+
default: G(() => t[14] ||= [O(" 参数 ")]),
|
|
864
864
|
_: 1
|
|
865
|
-
}, 8, ["checked"]), c.cell_component_params && l.value ===
|
|
865
|
+
}, 8, ["checked"]), c.cell_component_params && l.value === V("common_number") ? (I(), C(h, {
|
|
866
866
|
key: 0,
|
|
867
|
-
value:
|
|
868
|
-
"onUpdate:value": t[3] ||= (e) =>
|
|
867
|
+
value: Y.value,
|
|
868
|
+
"onUpdate:value": t[3] ||= (e) => Y.value = e,
|
|
869
869
|
size: "small",
|
|
870
870
|
class: "config-control",
|
|
871
|
-
options:
|
|
871
|
+
options: V(b),
|
|
872
872
|
placeholder: "#,##0.00",
|
|
873
873
|
"filter-option": g
|
|
874
|
-
}, null, 8, ["value", "options"])) : c.cell_component_params ? (
|
|
874
|
+
}, null, 8, ["value", "options"])) : c.cell_component_params ? (I(), C(y, {
|
|
875
875
|
key: 1,
|
|
876
876
|
value: u.value,
|
|
877
877
|
"onUpdate:value": t[4] ||= (e) => u.value = e,
|
|
878
878
|
rows: 1,
|
|
879
|
-
class:
|
|
879
|
+
class: N(["config-control", { "params-error": p.value }]),
|
|
880
880
|
placeholder: "{\"key\": \"value\"}"
|
|
881
|
-
}, null, 8, ["value", "class"])) : (
|
|
882
|
-
p.value ? (
|
|
883
|
-
]),
|
|
884
|
-
t[18] ||=
|
|
885
|
-
|
|
881
|
+
}, null, 8, ["value", "class"])) : (I(), T("span", Oe, " 勾选后配置 "))]),
|
|
882
|
+
p.value ? (I(), T("div", ke, B(p.value), 1)) : w("", !0)
|
|
883
|
+
]), E("div", Ae, [
|
|
884
|
+
t[18] ||= E("div", { class: "config-card-title" }, "汇总组件", -1),
|
|
885
|
+
E("div", je, [k(r, {
|
|
886
886
|
checked: c.cell_summary_component,
|
|
887
887
|
"onUpdate:checked": t[5] ||= (e) => c.cell_summary_component = e,
|
|
888
888
|
class: "config-check"
|
|
889
889
|
}, {
|
|
890
|
-
default:
|
|
890
|
+
default: G(() => t[16] ||= [O(" 组件 ")]),
|
|
891
891
|
_: 1
|
|
892
|
-
}, 8, ["checked"]),
|
|
892
|
+
}, 8, ["checked"]), k(a, {
|
|
893
893
|
value: d.value,
|
|
894
894
|
"onUpdate:value": t[6] ||= (e) => d.value = e,
|
|
895
895
|
size: "small",
|
|
@@ -905,82 +905,82 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
905
905
|
"disabled",
|
|
906
906
|
"options"
|
|
907
907
|
])]),
|
|
908
|
-
|
|
908
|
+
E("div", Me, [k(r, {
|
|
909
909
|
checked: c.cell_summary_component_params,
|
|
910
910
|
"onUpdate:checked": t[7] ||= (e) => c.cell_summary_component_params = e,
|
|
911
911
|
class: "config-check"
|
|
912
912
|
}, {
|
|
913
|
-
default:
|
|
913
|
+
default: G(() => t[17] ||= [O(" 参数 ")]),
|
|
914
914
|
_: 1
|
|
915
|
-
}, 8, ["checked"]), c.cell_summary_component_params && d.value ===
|
|
915
|
+
}, 8, ["checked"]), c.cell_summary_component_params && d.value === V("common_number") ? (I(), C(h, {
|
|
916
916
|
key: 0,
|
|
917
|
-
value:
|
|
918
|
-
"onUpdate:value": t[8] ||= (e) =>
|
|
917
|
+
value: X.value,
|
|
918
|
+
"onUpdate:value": t[8] ||= (e) => X.value = e,
|
|
919
919
|
size: "small",
|
|
920
920
|
class: "config-control",
|
|
921
|
-
options:
|
|
921
|
+
options: V(b),
|
|
922
922
|
placeholder: "#,##0.00",
|
|
923
923
|
"filter-option": g
|
|
924
|
-
}, null, 8, ["value", "options"])) : c.cell_summary_component_params ? (
|
|
924
|
+
}, null, 8, ["value", "options"])) : c.cell_summary_component_params ? (I(), C(y, {
|
|
925
925
|
key: 1,
|
|
926
926
|
value: f.value,
|
|
927
927
|
"onUpdate:value": t[9] ||= (e) => f.value = e,
|
|
928
928
|
rows: 1,
|
|
929
|
-
class:
|
|
929
|
+
class: N(["config-control", { "params-error": m.value }]),
|
|
930
930
|
placeholder: "{\"key\": \"value\"}"
|
|
931
|
-
}, null, 8, ["value", "class"])) : (
|
|
932
|
-
m.value ? (
|
|
931
|
+
}, null, 8, ["value", "class"])) : (I(), T("span", Ne, " 勾选后配置 "))]),
|
|
932
|
+
m.value ? (I(), T("div", Pe, B(m.value), 1)) : w("", !0)
|
|
933
933
|
])]),
|
|
934
|
-
|
|
934
|
+
k(n, {
|
|
935
935
|
orientation: "left",
|
|
936
936
|
class: "batch-divider"
|
|
937
937
|
}, {
|
|
938
|
-
default:
|
|
938
|
+
default: G(() => [O(" 选择列(已选 " + B(_.value.size) + " / " + B(e.rows.length) + " 列) ", 1)]),
|
|
939
939
|
_: 1
|
|
940
940
|
}),
|
|
941
|
-
|
|
942
|
-
|
|
941
|
+
E("div", Fe, [
|
|
942
|
+
k(S, {
|
|
943
943
|
size: "small",
|
|
944
|
-
onClick:
|
|
944
|
+
onClick: U
|
|
945
945
|
}, {
|
|
946
|
-
default:
|
|
946
|
+
default: G(() => t[19] ||= [O(" 全选 ")]),
|
|
947
947
|
_: 1
|
|
948
948
|
}),
|
|
949
|
-
|
|
949
|
+
k(S, {
|
|
950
950
|
size: "small",
|
|
951
951
|
onClick: K
|
|
952
952
|
}, {
|
|
953
|
-
default:
|
|
953
|
+
default: G(() => t[20] ||= [O(" 清空 ")]),
|
|
954
954
|
_: 1
|
|
955
955
|
}),
|
|
956
|
-
t[21] ||=
|
|
956
|
+
t[21] ||= E("span", { class: "drag-hint" }, "按住鼠标在格子上拖动可批量刷选", -1)
|
|
957
957
|
]),
|
|
958
|
-
|
|
958
|
+
E("div", {
|
|
959
959
|
class: "col-chips",
|
|
960
|
-
onMouseup: t[10] ||= (e) =>
|
|
961
|
-
}, [(
|
|
960
|
+
onMouseup: t[10] ||= (e) => D.value = !1
|
|
961
|
+
}, [(I(!0), T(x, null, R(e.rows, (e) => (I(), T("div", {
|
|
962
962
|
key: e.data_index,
|
|
963
|
-
class:
|
|
964
|
-
onMousedown:
|
|
965
|
-
onMouseenter: (t) =>
|
|
966
|
-
}, [
|
|
963
|
+
class: N(["col-chip", { selected: v(e) }]),
|
|
964
|
+
onMousedown: ne((t) => j(e), ["prevent"]),
|
|
965
|
+
onMouseenter: (t) => M(e)
|
|
966
|
+
}, [E("div", Le, [e.class_name ? (I(), C(A, {
|
|
967
967
|
key: 0,
|
|
968
968
|
color: "blue"
|
|
969
969
|
}, {
|
|
970
|
-
default:
|
|
970
|
+
default: G(() => [O(B(e.class_name), 1)]),
|
|
971
971
|
_: 2
|
|
972
|
-
}, 1024)) :
|
|
972
|
+
}, 1024)) : w("", !0), O(" " + B(e.title || e.data_index), 1)]), E("div", Re, B(e.data_index), 1)], 42, Ie))), 128))], 32)
|
|
973
973
|
]),
|
|
974
974
|
_: 1
|
|
975
975
|
}, 8, ["open"]);
|
|
976
976
|
};
|
|
977
977
|
}
|
|
978
|
-
}), [["__scopeId", "data-v-23d79f80"]]),
|
|
978
|
+
}), [["__scopeId", "data-v-23d79f80"]]), Be = { class: "params-tip" }, Ve = {
|
|
979
979
|
key: 0,
|
|
980
980
|
class: "params-error-tip"
|
|
981
|
-
},
|
|
981
|
+
}, He = /*#__PURE__*/ i(/* @__PURE__ */ A({
|
|
982
982
|
__name: "ColumnParamsModal",
|
|
983
|
-
props: /*@__PURE__*/
|
|
983
|
+
props: /*@__PURE__*/ j({
|
|
984
984
|
open: { type: Boolean },
|
|
985
985
|
record: {},
|
|
986
986
|
field: {}
|
|
@@ -993,14 +993,14 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
993
993
|
}),
|
|
994
994
|
emits: ["update:open"],
|
|
995
995
|
setup(e) {
|
|
996
|
-
let t = e, n =
|
|
996
|
+
let t = e, n = H(e, "open"), r = {
|
|
997
997
|
cell_component_params: "cellComponentParams",
|
|
998
998
|
cell_summary_component_params: "cellSummaryComponentParams"
|
|
999
999
|
}, i = {
|
|
1000
1000
|
cell_component_params: "组件参数",
|
|
1001
1001
|
cell_summary_component_params: "汇总参数"
|
|
1002
|
-
}, a = r[t.field] || t.field, o = i[t.field] || t.field, s =
|
|
1003
|
-
|
|
1002
|
+
}, a = r[t.field] || t.field, o = i[t.field] || t.field, s = L(""), c = L("");
|
|
1003
|
+
W(() => t.open, (e) => {
|
|
1004
1004
|
if (!e) return;
|
|
1005
1005
|
let n = t.record?.[t.field];
|
|
1006
1006
|
s.value = n == null ? "" : JSON.stringify(n, null, 2), c.value = "";
|
|
@@ -1023,9 +1023,9 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1023
1023
|
t.record[t.field] = e ? JSON.parse(e) : null, n.value = !1;
|
|
1024
1024
|
};
|
|
1025
1025
|
return (e, t) => {
|
|
1026
|
-
let r =
|
|
1027
|
-
return
|
|
1028
|
-
title: `${
|
|
1026
|
+
let r = z("a-textarea"), i = z("a-modal");
|
|
1027
|
+
return I(), C(i, {
|
|
1028
|
+
title: `${V(o)} —— ${e.record?.title || e.record?.data_index || ""}`,
|
|
1029
1029
|
width: "720px",
|
|
1030
1030
|
open: n.value,
|
|
1031
1031
|
"cancel-text": "取消",
|
|
@@ -1035,27 +1035,27 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1035
1035
|
onCancel: t[0] ||= (e) => n.value = !1,
|
|
1036
1036
|
onOk: u
|
|
1037
1037
|
}, {
|
|
1038
|
-
default:
|
|
1039
|
-
|
|
1040
|
-
t[1] ||=
|
|
1041
|
-
|
|
1042
|
-
t[2] ||=
|
|
1043
|
-
t[3] ||=
|
|
1044
|
-
t[4] ||=
|
|
1038
|
+
default: G(() => [
|
|
1039
|
+
E("div", Be, [
|
|
1040
|
+
t[1] ||= O(" 组件运行时参数(JSON 对象)。运行时从列配置的 "),
|
|
1041
|
+
E("code", null, B(V(a)), 1),
|
|
1042
|
+
t[2] ||= O(" 读取 —— 如「通用数字」组件用 "),
|
|
1043
|
+
t[3] ||= E("code", null, "{ \"pattern\": \"#,##0.00\" }", -1),
|
|
1044
|
+
t[4] ||= O(" 指定 numfmt 格式串。留空 = 不传参数(组件用内置缺省值)。 ")
|
|
1045
1045
|
]),
|
|
1046
|
-
|
|
1046
|
+
k(r, {
|
|
1047
1047
|
value: s.value,
|
|
1048
1048
|
rows: 8,
|
|
1049
|
-
class:
|
|
1049
|
+
class: N({ "params-error": !!c.value }),
|
|
1050
1050
|
onInput: l
|
|
1051
1051
|
}, null, 8, ["value", "class"]),
|
|
1052
|
-
c.value ? (
|
|
1052
|
+
c.value ? (I(), T("div", Ve, B(c.value), 1)) : w("", !0)
|
|
1053
1053
|
]),
|
|
1054
1054
|
_: 1
|
|
1055
1055
|
}, 8, ["title", "open"]);
|
|
1056
1056
|
};
|
|
1057
1057
|
}
|
|
1058
|
-
}), [["__scopeId", "data-v-4dbee96c"]]), Z = a(),
|
|
1058
|
+
}), [["__scopeId", "data-v-4dbee96c"]]), Z = a(), Ue = m, We = [
|
|
1059
1059
|
"eq",
|
|
1060
1060
|
"icontains",
|
|
1061
1061
|
"istartswith",
|
|
@@ -1071,7 +1071,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1071
1071
|
"notcontains",
|
|
1072
1072
|
"notstartswith",
|
|
1073
1073
|
"notendswith"
|
|
1074
|
-
],
|
|
1074
|
+
], Ge = [
|
|
1075
1075
|
"between",
|
|
1076
1076
|
"gt",
|
|
1077
1077
|
"lt",
|
|
@@ -1081,7 +1081,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1081
1081
|
"notbetween",
|
|
1082
1082
|
"not_eq",
|
|
1083
1083
|
"not_blank_not_null"
|
|
1084
|
-
],
|
|
1084
|
+
], Ke = ["in", "notin"], qe = [
|
|
1085
1085
|
"between",
|
|
1086
1086
|
"eq",
|
|
1087
1087
|
"gt",
|
|
@@ -1089,71 +1089,71 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1089
1089
|
"gte",
|
|
1090
1090
|
"lte",
|
|
1091
1091
|
"notbetween"
|
|
1092
|
-
],
|
|
1092
|
+
], Je = [
|
|
1093
1093
|
"int",
|
|
1094
1094
|
"str",
|
|
1095
1095
|
"bool",
|
|
1096
1096
|
"datetime"
|
|
1097
|
-
],
|
|
1097
|
+
], Ye = [
|
|
1098
1098
|
"input",
|
|
1099
1099
|
"remote",
|
|
1100
1100
|
"choices"
|
|
1101
|
-
],
|
|
1101
|
+
], Xe = [{
|
|
1102
1102
|
value: !0,
|
|
1103
1103
|
label: "true"
|
|
1104
1104
|
}, {
|
|
1105
1105
|
value: !1,
|
|
1106
1106
|
label: "false"
|
|
1107
|
-
}],
|
|
1107
|
+
}], Ze = [
|
|
1108
1108
|
"select",
|
|
1109
1109
|
"radio",
|
|
1110
1110
|
"checkbox"
|
|
1111
|
-
],
|
|
1111
|
+
], Qe = [
|
|
1112
1112
|
"select",
|
|
1113
1113
|
"radio",
|
|
1114
1114
|
"checkbox",
|
|
1115
1115
|
"groupselect"
|
|
1116
|
-
],
|
|
1116
|
+
], $e = [
|
|
1117
1117
|
"select",
|
|
1118
1118
|
"radio",
|
|
1119
1119
|
"checkbox",
|
|
1120
1120
|
"groupselect"
|
|
1121
|
-
],
|
|
1121
|
+
], et = [
|
|
1122
1122
|
"select",
|
|
1123
1123
|
"remoteselectpro",
|
|
1124
1124
|
"remotecomplete",
|
|
1125
1125
|
"remotetext"
|
|
1126
|
-
],
|
|
1126
|
+
], tt = [
|
|
1127
1127
|
"treeselect",
|
|
1128
1128
|
"cascader",
|
|
1129
1129
|
"remotetreeselectpro",
|
|
1130
1130
|
"remotecascaderpro"
|
|
1131
|
-
],
|
|
1132
|
-
...
|
|
1131
|
+
], nt = [
|
|
1132
|
+
...Ze,
|
|
1133
1133
|
"treeselect",
|
|
1134
1134
|
"cascader",
|
|
1135
1135
|
"groupselect",
|
|
1136
1136
|
"remotefilterselect",
|
|
1137
|
-
...
|
|
1138
|
-
...
|
|
1139
|
-
],
|
|
1137
|
+
...et,
|
|
1138
|
+
...tt
|
|
1139
|
+
], rt = ["input", "number"], it = ["number", "money"], at = [
|
|
1140
1140
|
"datepicker",
|
|
1141
1141
|
"monthpicker",
|
|
1142
1142
|
"monthrangepicker",
|
|
1143
1143
|
"timepicker",
|
|
1144
1144
|
"timerangepicker",
|
|
1145
1145
|
"rangepicker"
|
|
1146
|
-
],
|
|
1146
|
+
], ot = [
|
|
1147
1147
|
"rangepicker",
|
|
1148
1148
|
"timerangepicker",
|
|
1149
1149
|
"monthrangepicker"
|
|
1150
|
-
],
|
|
1150
|
+
], st = [
|
|
1151
1151
|
"remoteselectpro",
|
|
1152
1152
|
"remotecomplete",
|
|
1153
1153
|
"remotetreeselectpro",
|
|
1154
1154
|
"remotecascaderpro",
|
|
1155
1155
|
"remotetext"
|
|
1156
|
-
],
|
|
1156
|
+
], ct = [
|
|
1157
1157
|
{
|
|
1158
1158
|
label: "输入类",
|
|
1159
1159
|
options: [
|
|
@@ -1253,7 +1253,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1253
1253
|
}
|
|
1254
1254
|
]
|
|
1255
1255
|
}
|
|
1256
|
-
],
|
|
1256
|
+
], lt = (e) => !!e && e.value !== null && e.value !== void 0 && e.value !== "", Q = {
|
|
1257
1257
|
show_search: !0,
|
|
1258
1258
|
postUrl: "",
|
|
1259
1259
|
labelKeyType: 1,
|
|
@@ -1271,7 +1271,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1271
1271
|
class_name: "bool"
|
|
1272
1272
|
}]],
|
|
1273
1273
|
simpleSearchConditions: []
|
|
1274
|
-
},
|
|
1274
|
+
}, ut = {
|
|
1275
1275
|
input: {
|
|
1276
1276
|
type: "input",
|
|
1277
1277
|
label: "单行文本框",
|
|
@@ -1434,7 +1434,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1434
1434
|
placeholder: ["开始时间", "结束时间"],
|
|
1435
1435
|
allowClear: !0
|
|
1436
1436
|
}
|
|
1437
|
-
},
|
|
1437
|
+
}, dt = /* @__PURE__ */ A({
|
|
1438
1438
|
__name: "BasicConfig",
|
|
1439
1439
|
props: {
|
|
1440
1440
|
config: {},
|
|
@@ -1442,28 +1442,28 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1442
1442
|
},
|
|
1443
1443
|
emits: ["type-change"],
|
|
1444
1444
|
setup(e, { emit: t }) {
|
|
1445
|
-
let n = e, r = t, i =
|
|
1445
|
+
let n = e, r = t, i = S(() => ot.includes(n.config?.type)), a = (e) => r("type-change", e);
|
|
1446
1446
|
return (e, t) => {
|
|
1447
|
-
let n =
|
|
1448
|
-
return
|
|
1449
|
-
default:
|
|
1450
|
-
|
|
1451
|
-
default:
|
|
1452
|
-
default:
|
|
1447
|
+
let n = z("a-select"), r = z("a-form-item"), o = z("a-col"), s = z("a-input"), c = z("a-switch"), l = z("a-space-compact"), u = z("a-row");
|
|
1448
|
+
return I(), C(u, { gutter: 16 }, {
|
|
1449
|
+
default: G(() => [
|
|
1450
|
+
k(o, { span: 12 }, {
|
|
1451
|
+
default: G(() => [k(r, { label: "组件类型" }, {
|
|
1452
|
+
default: G(() => [k(n, {
|
|
1453
1453
|
value: e.config.type,
|
|
1454
1454
|
placeholder: "选择搜索组件",
|
|
1455
1455
|
"show-search": "",
|
|
1456
1456
|
"option-filter-prop": "label",
|
|
1457
|
-
options:
|
|
1457
|
+
options: V(ct),
|
|
1458
1458
|
onChange: a
|
|
1459
1459
|
}, null, 8, ["value", "options"])]),
|
|
1460
1460
|
_: 1
|
|
1461
1461
|
})]),
|
|
1462
1462
|
_: 1
|
|
1463
1463
|
}),
|
|
1464
|
-
|
|
1465
|
-
default:
|
|
1466
|
-
default:
|
|
1464
|
+
k(o, { span: 12 }, {
|
|
1465
|
+
default: G(() => [k(r, { label: "名称" }, {
|
|
1466
|
+
default: G(() => [k(s, {
|
|
1467
1467
|
value: e.config.label,
|
|
1468
1468
|
"onUpdate:value": t[0] ||= (t) => e.config.label = t,
|
|
1469
1469
|
"allow-clear": "",
|
|
@@ -1473,9 +1473,9 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1473
1473
|
})]),
|
|
1474
1474
|
_: 1
|
|
1475
1475
|
}),
|
|
1476
|
-
|
|
1477
|
-
default:
|
|
1478
|
-
default:
|
|
1476
|
+
k(o, { span: 12 }, {
|
|
1477
|
+
default: G(() => [k(r, { label: "可清空" }, {
|
|
1478
|
+
default: G(() => [k(c, {
|
|
1479
1479
|
checked: e.config.allowClear,
|
|
1480
1480
|
"onUpdate:checked": t[1] ||= (t) => e.config.allowClear = t,
|
|
1481
1481
|
"checked-children": "开",
|
|
@@ -1486,9 +1486,9 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1486
1486
|
})]),
|
|
1487
1487
|
_: 1
|
|
1488
1488
|
}),
|
|
1489
|
-
|
|
1490
|
-
default:
|
|
1491
|
-
default:
|
|
1489
|
+
k(o, { span: 12 }, {
|
|
1490
|
+
default: G(() => [k(r, { label: "禁用" }, {
|
|
1491
|
+
default: G(() => [k(c, {
|
|
1492
1492
|
checked: e.config.disabled,
|
|
1493
1493
|
"onUpdate:checked": t[2] ||= (t) => e.config.disabled = t,
|
|
1494
1494
|
"checked-children": "开",
|
|
@@ -1499,21 +1499,21 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1499
1499
|
})]),
|
|
1500
1500
|
_: 1
|
|
1501
1501
|
}),
|
|
1502
|
-
i.value ? (
|
|
1502
|
+
i.value ? (I(), C(o, {
|
|
1503
1503
|
key: 0,
|
|
1504
1504
|
span: 24
|
|
1505
1505
|
}, {
|
|
1506
|
-
default:
|
|
1507
|
-
default:
|
|
1506
|
+
default: G(() => [k(r, { label: "提示语" }, {
|
|
1507
|
+
default: G(() => [k(l, {
|
|
1508
1508
|
block: "",
|
|
1509
1509
|
style: { width: "100%" }
|
|
1510
1510
|
}, {
|
|
1511
|
-
default:
|
|
1511
|
+
default: G(() => [k(s, {
|
|
1512
1512
|
value: e.config.placeholder[0],
|
|
1513
1513
|
"onUpdate:value": t[3] ||= (t) => e.config.placeholder[0] = t,
|
|
1514
1514
|
placeholder: "开始",
|
|
1515
1515
|
style: { width: "50%" }
|
|
1516
|
-
}, null, 8, ["value"]),
|
|
1516
|
+
}, null, 8, ["value"]), k(s, {
|
|
1517
1517
|
value: e.config.placeholder[1],
|
|
1518
1518
|
"onUpdate:value": t[4] ||= (t) => e.config.placeholder[1] = t,
|
|
1519
1519
|
placeholder: "结束",
|
|
@@ -1524,12 +1524,12 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1524
1524
|
_: 1
|
|
1525
1525
|
})]),
|
|
1526
1526
|
_: 1
|
|
1527
|
-
})) : (
|
|
1527
|
+
})) : (I(), C(o, {
|
|
1528
1528
|
key: 1,
|
|
1529
1529
|
span: 24
|
|
1530
1530
|
}, {
|
|
1531
|
-
default:
|
|
1532
|
-
default:
|
|
1531
|
+
default: G(() => [k(r, { label: "提示语" }, {
|
|
1532
|
+
default: G(() => [k(s, {
|
|
1533
1533
|
value: e.config.placeholder,
|
|
1534
1534
|
"onUpdate:value": t[5] ||= (t) => e.config.placeholder = t,
|
|
1535
1535
|
"allow-clear": "",
|
|
@@ -1544,7 +1544,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1544
1544
|
});
|
|
1545
1545
|
};
|
|
1546
1546
|
}
|
|
1547
|
-
}),
|
|
1547
|
+
}), ft = /* @__PURE__ */ A({
|
|
1548
1548
|
__name: "OptionKeysConfig",
|
|
1549
1549
|
props: {
|
|
1550
1550
|
config: {},
|
|
@@ -1553,12 +1553,12 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1553
1553
|
loading: { type: Boolean }
|
|
1554
1554
|
},
|
|
1555
1555
|
setup(e) {
|
|
1556
|
-
let t = e, n =
|
|
1556
|
+
let t = e, n = S(() => !!t.remote), r = (e, t) => !e || (t?.label ?? "").toLowerCase().includes(e.toLowerCase());
|
|
1557
1557
|
return (e, t) => {
|
|
1558
|
-
let i =
|
|
1559
|
-
return
|
|
1560
|
-
default:
|
|
1561
|
-
default:
|
|
1558
|
+
let i = z("a-input"), a = z("a-auto-complete"), o = z("a-form-item"), s = z("a-col");
|
|
1559
|
+
return I(), T(x, null, [k(s, { span: 12 }, {
|
|
1560
|
+
default: G(() => [k(o, { label: "数值字段" }, {
|
|
1561
|
+
default: G(() => [n.value ? (I(), C(a, {
|
|
1562
1562
|
key: 1,
|
|
1563
1563
|
value: e.config.valueKey,
|
|
1564
1564
|
"onUpdate:value": t[1] ||= (t) => e.config.valueKey = t,
|
|
@@ -1571,7 +1571,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1571
1571
|
"value",
|
|
1572
1572
|
"options",
|
|
1573
1573
|
"loading"
|
|
1574
|
-
])) : (
|
|
1574
|
+
])) : (I(), C(i, {
|
|
1575
1575
|
key: 0,
|
|
1576
1576
|
value: e.config.valueKey,
|
|
1577
1577
|
"onUpdate:value": t[0] ||= (t) => e.config.valueKey = t,
|
|
@@ -1580,12 +1580,12 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1580
1580
|
_: 1
|
|
1581
1581
|
})]),
|
|
1582
1582
|
_: 1
|
|
1583
|
-
}), !n.value || e.config.labelKeyType === 1 ? (
|
|
1583
|
+
}), !n.value || e.config.labelKeyType === 1 ? (I(), C(s, {
|
|
1584
1584
|
key: 0,
|
|
1585
1585
|
span: 12
|
|
1586
1586
|
}, {
|
|
1587
|
-
default:
|
|
1588
|
-
default:
|
|
1587
|
+
default: G(() => [k(o, { label: "显示字段" }, {
|
|
1588
|
+
default: G(() => [n.value ? (I(), C(a, {
|
|
1589
1589
|
key: 1,
|
|
1590
1590
|
value: e.config.labelKey,
|
|
1591
1591
|
"onUpdate:value": t[3] ||= (t) => e.config.labelKey = t,
|
|
@@ -1598,7 +1598,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1598
1598
|
"value",
|
|
1599
1599
|
"options",
|
|
1600
1600
|
"loading"
|
|
1601
|
-
])) : (
|
|
1601
|
+
])) : (I(), C(i, {
|
|
1602
1602
|
key: 0,
|
|
1603
1603
|
value: e.config.labelKey,
|
|
1604
1604
|
"onUpdate:value": t[2] ||= (t) => e.config.labelKey = t,
|
|
@@ -1607,13 +1607,13 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1607
1607
|
_: 1
|
|
1608
1608
|
})]),
|
|
1609
1609
|
_: 1
|
|
1610
|
-
})) :
|
|
1610
|
+
})) : w("", !0)], 64);
|
|
1611
1611
|
};
|
|
1612
1612
|
}
|
|
1613
|
-
}),
|
|
1613
|
+
}), pt = { class: "section-title" }, mt = {
|
|
1614
1614
|
key: 0,
|
|
1615
1615
|
class: "opt-empty"
|
|
1616
|
-
},
|
|
1616
|
+
}, ht = /*#__PURE__*/ i(/* @__PURE__ */ A({
|
|
1617
1617
|
__name: "OptionListConfig",
|
|
1618
1618
|
props: {
|
|
1619
1619
|
config: {},
|
|
@@ -1633,17 +1633,17 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1633
1633
|
value: "bool",
|
|
1634
1634
|
label: "布尔"
|
|
1635
1635
|
}
|
|
1636
|
-
], r =
|
|
1636
|
+
], r = L([]), i = !1, a = (e) => typeof e == "boolean" ? "bool" : typeof e == "number" ? "int" : "str", o = () => {
|
|
1637
1637
|
let e = String(t.record?.class_name || "").toLowerCase();
|
|
1638
1638
|
return e === "int" || e === "float" || e === "decimal" || e === "number" ? "int" : e === "bool" || e === "boolean" ? "bool" : "str";
|
|
1639
1639
|
};
|
|
1640
|
-
|
|
1640
|
+
W(() => t.config?.options, () => {
|
|
1641
1641
|
let e = (Array.isArray(t.config?.options) ? t.config.options : []).map((e) => ({
|
|
1642
1642
|
valueType: a(e?.value),
|
|
1643
1643
|
value: e?.value ?? null,
|
|
1644
1644
|
label: e?.label ?? e?.name ?? ""
|
|
1645
1645
|
}));
|
|
1646
|
-
JSON.stringify(e) !== JSON.stringify(r.value) && (i = !0, r.value = e,
|
|
1646
|
+
JSON.stringify(e) !== JSON.stringify(r.value) && (i = !0, r.value = e, M(() => {
|
|
1647
1647
|
i = !1;
|
|
1648
1648
|
}));
|
|
1649
1649
|
}, { immediate: !0 });
|
|
@@ -1659,7 +1659,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1659
1659
|
}, c = (e) => {
|
|
1660
1660
|
e.value = s(e);
|
|
1661
1661
|
};
|
|
1662
|
-
|
|
1662
|
+
W(r, () => {
|
|
1663
1663
|
i || (t.config.options = r.value.map((e) => ({
|
|
1664
1664
|
value: s(e),
|
|
1665
1665
|
label: e.label == null ? "" : String(e.label)
|
|
@@ -1671,8 +1671,8 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1671
1671
|
value: null,
|
|
1672
1672
|
label: ""
|
|
1673
1673
|
});
|
|
1674
|
-
}, u =
|
|
1675
|
-
|
|
1674
|
+
}, u = L(!1);
|
|
1675
|
+
W(() => t.record?.content_map, (e) => {
|
|
1676
1676
|
u.value = !!e && typeof e == "object" && !Array.isArray(e) && Object.keys(e).length > 0;
|
|
1677
1677
|
}, { immediate: !0 });
|
|
1678
1678
|
let d = () => {
|
|
@@ -1689,35 +1689,35 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1689
1689
|
});
|
|
1690
1690
|
};
|
|
1691
1691
|
return (e, t) => {
|
|
1692
|
-
let i =
|
|
1693
|
-
return
|
|
1694
|
-
default:
|
|
1695
|
-
|
|
1696
|
-
t[2] ||=
|
|
1697
|
-
|
|
1692
|
+
let i = z("a-button"), a = z("a-select"), o = z("a-input-number"), s = z("a-input"), f = z("a-col");
|
|
1693
|
+
return I(), C(f, { span: 24 }, {
|
|
1694
|
+
default: G(() => [
|
|
1695
|
+
E("div", pt, [
|
|
1696
|
+
t[2] ||= E("span", null, "选项列表", -1),
|
|
1697
|
+
k(i, {
|
|
1698
1698
|
type: "primary",
|
|
1699
1699
|
size: "small",
|
|
1700
1700
|
onClick: l
|
|
1701
1701
|
}, {
|
|
1702
|
-
default:
|
|
1702
|
+
default: G(() => t[0] ||= [O(" + 添加选项 ")]),
|
|
1703
1703
|
_: 1
|
|
1704
1704
|
}),
|
|
1705
|
-
u.value ? (
|
|
1705
|
+
u.value ? (I(), C(i, {
|
|
1706
1706
|
key: 0,
|
|
1707
1707
|
size: "small",
|
|
1708
1708
|
onClick: d
|
|
1709
1709
|
}, {
|
|
1710
|
-
default:
|
|
1710
|
+
default: G(() => t[1] ||= [O(" 从「转换/颜色」导入 ")]),
|
|
1711
1711
|
_: 1
|
|
1712
|
-
})) :
|
|
1713
|
-
t[3] ||=
|
|
1712
|
+
})) : w("", !0),
|
|
1713
|
+
t[3] ||= E("span", { class: "opt-tip" }, "值类型按该列在 SQL 中的实际类型选择(数值列勿用字符,Oracle 下会直接比较失败)。", -1)
|
|
1714
1714
|
]),
|
|
1715
|
-
r.value.length ?
|
|
1716
|
-
(
|
|
1715
|
+
r.value.length ? w("", !0) : (I(), T("div", mt, " 暂无选项 —— 下拉选框/单选框/多选框至少需要一个选项才能使用。 ")),
|
|
1716
|
+
(I(!0), T(x, null, R(r.value, (e, l) => (I(), T("div", {
|
|
1717
1717
|
key: l,
|
|
1718
1718
|
class: "row-line"
|
|
1719
1719
|
}, [
|
|
1720
|
-
|
|
1720
|
+
k(a, {
|
|
1721
1721
|
value: e.valueType,
|
|
1722
1722
|
"onUpdate:value": (t) => e.valueType = t,
|
|
1723
1723
|
class: "w-type",
|
|
@@ -1728,24 +1728,24 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1728
1728
|
"onUpdate:value",
|
|
1729
1729
|
"onChange"
|
|
1730
1730
|
]),
|
|
1731
|
-
e.valueType === "bool" ? (
|
|
1731
|
+
e.valueType === "bool" ? (I(), C(a, {
|
|
1732
1732
|
key: 0,
|
|
1733
1733
|
value: e.value,
|
|
1734
1734
|
"onUpdate:value": (t) => e.value = t,
|
|
1735
1735
|
class: "w-val",
|
|
1736
1736
|
placeholder: "值",
|
|
1737
|
-
options:
|
|
1737
|
+
options: V(Xe)
|
|
1738
1738
|
}, null, 8, [
|
|
1739
1739
|
"value",
|
|
1740
1740
|
"onUpdate:value",
|
|
1741
1741
|
"options"
|
|
1742
|
-
])) : e.valueType === "int" ? (
|
|
1742
|
+
])) : e.valueType === "int" ? (I(), C(o, {
|
|
1743
1743
|
key: 1,
|
|
1744
1744
|
value: e.value,
|
|
1745
1745
|
"onUpdate:value": (t) => e.value = t,
|
|
1746
1746
|
class: "w-val",
|
|
1747
1747
|
placeholder: "值"
|
|
1748
|
-
}, null, 8, ["value", "onUpdate:value"])) : (
|
|
1748
|
+
}, null, 8, ["value", "onUpdate:value"])) : (I(), C(s, {
|
|
1749
1749
|
key: 2,
|
|
1750
1750
|
value: e.value,
|
|
1751
1751
|
"onUpdate:value": (t) => e.value = t,
|
|
@@ -1753,19 +1753,19 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1753
1753
|
placeholder: "值",
|
|
1754
1754
|
"allow-clear": ""
|
|
1755
1755
|
}, null, 8, ["value", "onUpdate:value"])),
|
|
1756
|
-
|
|
1756
|
+
k(s, {
|
|
1757
1757
|
value: e.label,
|
|
1758
1758
|
"onUpdate:value": (t) => e.label = t,
|
|
1759
1759
|
class: "w-label",
|
|
1760
1760
|
placeholder: "显示文本",
|
|
1761
1761
|
"allow-clear": ""
|
|
1762
1762
|
}, null, 8, ["value", "onUpdate:value"]),
|
|
1763
|
-
|
|
1763
|
+
k(i, {
|
|
1764
1764
|
type: "link",
|
|
1765
1765
|
danger: "",
|
|
1766
1766
|
onClick: (e) => r.value.splice(l, 1)
|
|
1767
1767
|
}, {
|
|
1768
|
-
default:
|
|
1768
|
+
default: G(() => t[4] ||= [O(" 删除 ")]),
|
|
1769
1769
|
_: 2
|
|
1770
1770
|
}, 1032, ["onClick"])
|
|
1771
1771
|
]))), 128))
|
|
@@ -1774,7 +1774,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1774
1774
|
});
|
|
1775
1775
|
};
|
|
1776
1776
|
}
|
|
1777
|
-
}), [["__scopeId", "data-v-92677fba"]]),
|
|
1777
|
+
}), [["__scopeId", "data-v-92677fba"]]), gt = { class: "opt-line opt-label" }, _t = { class: "opt-line opt-value" }, vt = ["title"], yt = /*#__PURE__*/ i(/* @__PURE__ */ A({
|
|
1778
1778
|
__name: "PostUrlField",
|
|
1779
1779
|
props: {
|
|
1780
1780
|
value: {},
|
|
@@ -1788,7 +1788,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1788
1788
|
"search"
|
|
1789
1789
|
],
|
|
1790
1790
|
setup(e, { emit: t }) {
|
|
1791
|
-
let n = e, r = t, i =
|
|
1791
|
+
let n = e, r = t, i = L(""), a = L(null), o = (e) => n.itemList.find((t) => t.value === e), s = S(() => n.itemList.filter((e) => !i.value || e.value.includes(i.value) || (e.label || "").includes(i.value)).map((e) => ({
|
|
1792
1792
|
value: e.value,
|
|
1793
1793
|
label: e.label
|
|
1794
1794
|
}))), c = (e) => {
|
|
@@ -1799,8 +1799,8 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1799
1799
|
t && t.value !== a.value && (r("select", t), a.value = t.value, i.value = "");
|
|
1800
1800
|
};
|
|
1801
1801
|
return (e, t) => {
|
|
1802
|
-
let n =
|
|
1803
|
-
return
|
|
1802
|
+
let n = z("a-input-search"), r = z("a-auto-complete");
|
|
1803
|
+
return I(), C(r, {
|
|
1804
1804
|
value: e.value,
|
|
1805
1805
|
loading: e.loading,
|
|
1806
1806
|
style: { width: "100%" },
|
|
@@ -1808,18 +1808,18 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1808
1808
|
"onUpdate:value": l,
|
|
1809
1809
|
onSearch: c
|
|
1810
1810
|
}, {
|
|
1811
|
-
option:
|
|
1812
|
-
default:
|
|
1811
|
+
option: G(({ value: e, label: t }) => [E("div", gt, B(t), 1), E("div", _t, B(e), 1)]),
|
|
1812
|
+
default: G(() => [k(n, {
|
|
1813
1813
|
placeholder: e.placeholder,
|
|
1814
1814
|
value: e.value,
|
|
1815
1815
|
size: "middle",
|
|
1816
1816
|
onSearch: c
|
|
1817
1817
|
}, {
|
|
1818
|
-
suffix:
|
|
1818
|
+
suffix: G(() => [e.loading ? (I(), C(V(J), { key: 0 })) : (I(), T("span", {
|
|
1819
1819
|
key: 1,
|
|
1820
1820
|
title: o(e.value)?.label,
|
|
1821
1821
|
class: "post-url-suffix"
|
|
1822
|
-
},
|
|
1822
|
+
}, B(o(e.value)?.label), 9, vt))]),
|
|
1823
1823
|
_: 1
|
|
1824
1824
|
}, 8, ["placeholder", "value"])]),
|
|
1825
1825
|
_: 1
|
|
@@ -1830,10 +1830,10 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1830
1830
|
]);
|
|
1831
1831
|
};
|
|
1832
1832
|
}
|
|
1833
|
-
}), [["__scopeId", "data-v-43638cfe"]]),
|
|
1833
|
+
}), [["__scopeId", "data-v-43638cfe"]]), bt = { class: "section-title" }, xt = { class: "group-header" }, St = { class: "group-title" }, Ct = { class: "cond-row" }, wt = { class: "row-no" }, Tt = { class: "cond-row" }, Et = { class: "cond-group" }, Dt = { class: "cond-row" }, Ot = { class: "row-no" }, kt = {
|
|
1834
1834
|
key: 0,
|
|
1835
1835
|
class: "cond-row"
|
|
1836
|
-
},
|
|
1836
|
+
}, At = /*#__PURE__*/ i(/* @__PURE__ */ A({
|
|
1837
1837
|
__name: "QueryParamsConfig",
|
|
1838
1838
|
props: {
|
|
1839
1839
|
config: {},
|
|
@@ -1854,11 +1854,11 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1854
1854
|
value: 4,
|
|
1855
1855
|
label: "上下文"
|
|
1856
1856
|
}
|
|
1857
|
-
], r = (e, t) => !e || (t?.label ?? "").toLowerCase().includes(e.toLowerCase()), i =
|
|
1858
|
-
let e = t.config?.type, n =
|
|
1859
|
-
return
|
|
1857
|
+
], r = (e, t) => !e || (t?.label ?? "").toLowerCase().includes(e.toLowerCase()), i = S(() => {
|
|
1858
|
+
let e = t.config?.type, n = We;
|
|
1859
|
+
return it.includes(e) ? n = Ge : at.includes(e) ? n = qe : nt.includes(e) && (n = Ke), Object.keys(Ue).filter((e) => n.includes(e)).map((e) => ({
|
|
1860
1860
|
value: e,
|
|
1861
|
-
label: `${
|
|
1861
|
+
label: `${Ue[e]}(${e})`
|
|
1862
1862
|
}));
|
|
1863
1863
|
}), a = () => {
|
|
1864
1864
|
Array.isArray(t.config.searchConditions) || (t.config.searchConditions = []), t.config.searchConditions.push([{
|
|
@@ -1897,83 +1897,83 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1897
1897
|
}
|
|
1898
1898
|
}, u = (e) => typeof e == "object" ? "json" : typeof e;
|
|
1899
1899
|
return (e, t) => {
|
|
1900
|
-
let d =
|
|
1901
|
-
return
|
|
1902
|
-
|
|
1903
|
-
default:
|
|
1904
|
-
t[5] ||=
|
|
1905
|
-
|
|
1900
|
+
let d = z("a-radio-button"), f = z("a-radio-group"), p = z("a-button"), m = z("a-col"), h = z("a-space"), g = z("a-select"), _ = z("a-input"), v = z("a-auto-complete"), y = z("a-input-number"), b = z("a-range-picker"), S = z("a-textarea"), D = z("a-tag");
|
|
1901
|
+
return I(), T(x, null, [
|
|
1902
|
+
k(m, { span: 24 }, {
|
|
1903
|
+
default: G(() => [E("div", bt, [
|
|
1904
|
+
t[5] ||= E("span", null, "查询参数", -1),
|
|
1905
|
+
k(f, {
|
|
1906
1906
|
value: e.config.queryType,
|
|
1907
1907
|
"onUpdate:value": t[0] ||= (t) => e.config.queryType = t,
|
|
1908
1908
|
size: "small"
|
|
1909
1909
|
}, {
|
|
1910
|
-
default:
|
|
1911
|
-
default:
|
|
1910
|
+
default: G(() => [k(d, { value: "simple" }, {
|
|
1911
|
+
default: G(() => t[1] ||= [O("简单查询")]),
|
|
1912
1912
|
_: 1
|
|
1913
|
-
}),
|
|
1914
|
-
default:
|
|
1913
|
+
}), k(d, { value: "advanced" }, {
|
|
1914
|
+
default: G(() => t[2] ||= [O("高级查询")]),
|
|
1915
1915
|
_: 1
|
|
1916
1916
|
})]),
|
|
1917
1917
|
_: 1
|
|
1918
1918
|
}, 8, ["value"]),
|
|
1919
|
-
e.config.queryType === "advanced" ? (
|
|
1919
|
+
e.config.queryType === "advanced" ? (I(), C(p, {
|
|
1920
1920
|
key: 0,
|
|
1921
1921
|
type: "primary",
|
|
1922
1922
|
size: "small",
|
|
1923
1923
|
onClick: a
|
|
1924
1924
|
}, {
|
|
1925
|
-
default:
|
|
1925
|
+
default: G(() => t[3] ||= [O(" + 添加查询条件分组 ")]),
|
|
1926
1926
|
_: 1
|
|
1927
|
-
})) : (
|
|
1927
|
+
})) : (I(), C(p, {
|
|
1928
1928
|
key: 1,
|
|
1929
1929
|
type: "primary",
|
|
1930
1930
|
size: "small",
|
|
1931
1931
|
onClick: c
|
|
1932
1932
|
}, {
|
|
1933
|
-
default:
|
|
1933
|
+
default: G(() => t[4] ||= [O(" + 添加查询条件 ")]),
|
|
1934
1934
|
_: 1
|
|
1935
1935
|
}))
|
|
1936
1936
|
])]),
|
|
1937
1937
|
_: 1
|
|
1938
1938
|
}),
|
|
1939
|
-
e.config.queryType === "advanced" ? (
|
|
1939
|
+
e.config.queryType === "advanced" ? (I(), C(m, {
|
|
1940
1940
|
key: 0,
|
|
1941
1941
|
span: 24
|
|
1942
1942
|
}, {
|
|
1943
|
-
default:
|
|
1943
|
+
default: G(() => [(I(!0), T(x, null, R(e.config.searchConditions || [], (a, c) => (I(), T("div", {
|
|
1944
1944
|
key: c,
|
|
1945
1945
|
class: "cond-group"
|
|
1946
|
-
}, [
|
|
1947
|
-
default:
|
|
1946
|
+
}, [E("div", xt, [E("span", St, "查询条件组 " + B(c + 1), 1), k(h, null, {
|
|
1947
|
+
default: G(() => [k(p, {
|
|
1948
1948
|
size: "small",
|
|
1949
1949
|
type: "link",
|
|
1950
1950
|
onClick: (e) => o(c)
|
|
1951
1951
|
}, {
|
|
1952
|
-
default:
|
|
1952
|
+
default: G(() => t[6] ||= [O(" + 添加查询条件 ")]),
|
|
1953
1953
|
_: 2
|
|
1954
|
-
}, 1032, ["onClick"]),
|
|
1954
|
+
}, 1032, ["onClick"]), k(p, {
|
|
1955
1955
|
size: "small",
|
|
1956
1956
|
type: "link",
|
|
1957
1957
|
danger: "",
|
|
1958
1958
|
onClick: (t) => e.config.searchConditions.splice(c, 1)
|
|
1959
1959
|
}, {
|
|
1960
|
-
default:
|
|
1960
|
+
default: G(() => t[7] ||= [O(" 删除分组 ")]),
|
|
1961
1961
|
_: 2
|
|
1962
1962
|
}, 1032, ["onClick"])]),
|
|
1963
1963
|
_: 2
|
|
1964
|
-
}, 1024)]), (
|
|
1964
|
+
}, 1024)]), (I(!0), T(x, null, R(a, (o, c) => (I(), T("div", {
|
|
1965
1965
|
key: c,
|
|
1966
1966
|
class: "cond-item"
|
|
1967
|
-
}, [
|
|
1968
|
-
|
|
1969
|
-
|
|
1967
|
+
}, [E("div", Ct, [
|
|
1968
|
+
E("span", wt, "(" + B(c + 1) + ")", 1),
|
|
1969
|
+
k(g, {
|
|
1970
1970
|
value: o.searchType,
|
|
1971
1971
|
"onUpdate:value": (e) => o.searchType = e,
|
|
1972
1972
|
style: { width: "130px" },
|
|
1973
1973
|
placeholder: "查询类型",
|
|
1974
1974
|
options: n
|
|
1975
1975
|
}, null, 8, ["value", "onUpdate:value"]),
|
|
1976
|
-
o.searchType === 1 || o.searchType === 4 ? (
|
|
1976
|
+
o.searchType === 1 || o.searchType === 4 ? (I(), C(_, {
|
|
1977
1977
|
key: 0,
|
|
1978
1978
|
value: o.select_name,
|
|
1979
1979
|
"onUpdate:value": (e) => o.select_name = e,
|
|
@@ -1983,8 +1983,8 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1983
1983
|
"value",
|
|
1984
1984
|
"onUpdate:value",
|
|
1985
1985
|
"placeholder"
|
|
1986
|
-
])) :
|
|
1987
|
-
|
|
1986
|
+
])) : w("", !0),
|
|
1987
|
+
k(v, {
|
|
1988
1988
|
value: o.field_name,
|
|
1989
1989
|
"onUpdate:value": (e) => o.field_name = e,
|
|
1990
1990
|
options: e.fieldOptions,
|
|
@@ -1998,20 +1998,20 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
1998
1998
|
"options",
|
|
1999
1999
|
"loading"
|
|
2000
2000
|
]),
|
|
2001
|
-
|
|
2001
|
+
k(p, {
|
|
2002
2002
|
type: "text",
|
|
2003
2003
|
danger: "",
|
|
2004
2004
|
onClick: (e) => a.splice(c, 1)
|
|
2005
2005
|
}, {
|
|
2006
|
-
default:
|
|
2006
|
+
default: G(() => t[8] ||= [O(" ✕ ")]),
|
|
2007
2007
|
_: 2
|
|
2008
2008
|
}, 1032, ["onClick"])
|
|
2009
|
-
]),
|
|
2010
|
-
|
|
2009
|
+
]), E("div", Tt, [
|
|
2010
|
+
k(g, {
|
|
2011
2011
|
value: o.format,
|
|
2012
2012
|
"onUpdate:value": (e) => o.format = e,
|
|
2013
2013
|
style: { width: "110px" },
|
|
2014
|
-
options:
|
|
2014
|
+
options: V(Ye).map((e) => ({
|
|
2015
2015
|
value: e,
|
|
2016
2016
|
label: e
|
|
2017
2017
|
}))
|
|
@@ -2020,7 +2020,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2020
2020
|
"onUpdate:value",
|
|
2021
2021
|
"options"
|
|
2022
2022
|
]),
|
|
2023
|
-
|
|
2023
|
+
k(g, {
|
|
2024
2024
|
value: o.operator,
|
|
2025
2025
|
"onUpdate:value": (e) => o.operator = e,
|
|
2026
2026
|
style: { width: "190px" },
|
|
@@ -2033,12 +2033,12 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2033
2033
|
"options",
|
|
2034
2034
|
"onChange"
|
|
2035
2035
|
]),
|
|
2036
|
-
|
|
2036
|
+
k(g, {
|
|
2037
2037
|
value: o.class_name,
|
|
2038
2038
|
"onUpdate:value": (e) => o.class_name = e,
|
|
2039
2039
|
style: { width: "110px" },
|
|
2040
2040
|
placeholder: "数值类型",
|
|
2041
|
-
options:
|
|
2041
|
+
options: V(Je).map((e) => ({
|
|
2042
2042
|
value: e,
|
|
2043
2043
|
label: e
|
|
2044
2044
|
})),
|
|
@@ -2049,84 +2049,84 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2049
2049
|
"options",
|
|
2050
2050
|
"onChange"
|
|
2051
2051
|
]),
|
|
2052
|
-
o.searchType === 3 ? (
|
|
2053
|
-
|
|
2052
|
+
o.searchType === 3 ? (I(), T(x, { key: 0 }, [(o.operator === "between" || o.operator === "notbetween") && o.class_name === "str" ? (I(), T(x, { key: 0 }, [
|
|
2053
|
+
k(_, {
|
|
2054
2054
|
value: o.value[0],
|
|
2055
2055
|
"onUpdate:value": (e) => o.value[0] = e,
|
|
2056
2056
|
style: { width: "110px" },
|
|
2057
2057
|
placeholder: "起"
|
|
2058
2058
|
}, null, 8, ["value", "onUpdate:value"]),
|
|
2059
|
-
t[9] ||=
|
|
2060
|
-
|
|
2059
|
+
t[9] ||= E("span", { class: "range-sep" }, "_", -1),
|
|
2060
|
+
k(_, {
|
|
2061
2061
|
value: o.value[1],
|
|
2062
2062
|
"onUpdate:value": (e) => o.value[1] = e,
|
|
2063
2063
|
style: { width: "110px" },
|
|
2064
2064
|
placeholder: "止"
|
|
2065
2065
|
}, null, 8, ["value", "onUpdate:value"])
|
|
2066
|
-
], 64)) : (o.operator === "between" || o.operator === "notbetween") && o.class_name === "int" ? (
|
|
2067
|
-
|
|
2066
|
+
], 64)) : (o.operator === "between" || o.operator === "notbetween") && o.class_name === "int" ? (I(), T(x, { key: 1 }, [
|
|
2067
|
+
k(y, {
|
|
2068
2068
|
value: o.value[0],
|
|
2069
2069
|
"onUpdate:value": (e) => o.value[0] = e,
|
|
2070
2070
|
style: { width: "110px" },
|
|
2071
2071
|
placeholder: "起"
|
|
2072
2072
|
}, null, 8, ["value", "onUpdate:value"]),
|
|
2073
|
-
t[10] ||=
|
|
2074
|
-
|
|
2073
|
+
t[10] ||= E("span", { class: "range-sep" }, "_", -1),
|
|
2074
|
+
k(y, {
|
|
2075
2075
|
value: o.value[1],
|
|
2076
2076
|
"onUpdate:value": (e) => o.value[1] = e,
|
|
2077
2077
|
style: { width: "110px" },
|
|
2078
2078
|
placeholder: "止"
|
|
2079
2079
|
}, null, 8, ["value", "onUpdate:value"])
|
|
2080
|
-
], 64)) : (o.operator === "between" || o.operator === "notbetween") && o.class_name === "datetime" ? (
|
|
2080
|
+
], 64)) : (o.operator === "between" || o.operator === "notbetween") && o.class_name === "datetime" ? (I(), C(b, {
|
|
2081
2081
|
key: 2,
|
|
2082
2082
|
value: o.value,
|
|
2083
2083
|
"onUpdate:value": (e) => o.value = e,
|
|
2084
2084
|
"show-time": "",
|
|
2085
2085
|
style: { width: "260px" }
|
|
2086
|
-
}, null, 8, ["value", "onUpdate:value"])) : o.class_name === "bool" ? (
|
|
2086
|
+
}, null, 8, ["value", "onUpdate:value"])) : o.class_name === "bool" ? (I(), C(g, {
|
|
2087
2087
|
key: 3,
|
|
2088
2088
|
value: o.value[0],
|
|
2089
2089
|
"onUpdate:value": (e) => o.value[0] = e,
|
|
2090
2090
|
style: { width: "110px" },
|
|
2091
|
-
options:
|
|
2091
|
+
options: V(Xe)
|
|
2092
2092
|
}, null, 8, [
|
|
2093
2093
|
"value",
|
|
2094
2094
|
"onUpdate:value",
|
|
2095
2095
|
"options"
|
|
2096
|
-
])) : o.operator === "not_blank_not_null" ? (
|
|
2096
|
+
])) : o.operator === "not_blank_not_null" ? (I(), C(_, {
|
|
2097
2097
|
key: 4,
|
|
2098
2098
|
value: "",
|
|
2099
2099
|
style: { width: "150px" },
|
|
2100
2100
|
disabled: "",
|
|
2101
2101
|
placeholder: "(无值)"
|
|
2102
|
-
})) : (
|
|
2102
|
+
})) : (I(), C(_, {
|
|
2103
2103
|
key: 5,
|
|
2104
2104
|
value: o.value[0],
|
|
2105
2105
|
"onUpdate:value": (e) => o.value[0] = e,
|
|
2106
2106
|
style: { width: "150px" },
|
|
2107
2107
|
placeholder: "值",
|
|
2108
2108
|
"allow-clear": ""
|
|
2109
|
-
}, null, 8, ["value", "onUpdate:value"]))], 64)) :
|
|
2109
|
+
}, null, 8, ["value", "onUpdate:value"]))], 64)) : w("", !0)
|
|
2110
2110
|
])]))), 128))]))), 128))]),
|
|
2111
2111
|
_: 1
|
|
2112
|
-
})) :
|
|
2113
|
-
e.config.queryType === "simple" ? (
|
|
2112
|
+
})) : w("", !0),
|
|
2113
|
+
e.config.queryType === "simple" ? (I(), C(m, {
|
|
2114
2114
|
key: 1,
|
|
2115
2115
|
span: 24
|
|
2116
2116
|
}, {
|
|
2117
|
-
default:
|
|
2117
|
+
default: G(() => [E("div", Et, [(I(!0), T(x, null, R(e.config.simpleSearchConditions || [], (i, a) => (I(), T("div", {
|
|
2118
2118
|
key: a,
|
|
2119
2119
|
class: "cond-item"
|
|
2120
|
-
}, [
|
|
2121
|
-
|
|
2122
|
-
|
|
2120
|
+
}, [E("div", Dt, [
|
|
2121
|
+
E("span", Ot, "(" + B(a + 1) + ")", 1),
|
|
2122
|
+
k(g, {
|
|
2123
2123
|
value: i.searchType,
|
|
2124
2124
|
"onUpdate:value": (e) => i.searchType = e,
|
|
2125
2125
|
style: { width: "130px" },
|
|
2126
2126
|
placeholder: "查询类型",
|
|
2127
2127
|
options: n
|
|
2128
2128
|
}, null, 8, ["value", "onUpdate:value"]),
|
|
2129
|
-
i.searchType === 1 || i.searchType === 4 ? (
|
|
2129
|
+
i.searchType === 1 || i.searchType === 4 ? (I(), C(_, {
|
|
2130
2130
|
key: 0,
|
|
2131
2131
|
value: i.select_name,
|
|
2132
2132
|
"onUpdate:value": (e) => i.select_name = e,
|
|
@@ -2136,8 +2136,8 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2136
2136
|
"value",
|
|
2137
2137
|
"onUpdate:value",
|
|
2138
2138
|
"placeholder"
|
|
2139
|
-
])) :
|
|
2140
|
-
|
|
2139
|
+
])) : w("", !0),
|
|
2140
|
+
k(v, {
|
|
2141
2141
|
value: i.field_name,
|
|
2142
2142
|
"onUpdate:value": (e) => i.field_name = e,
|
|
2143
2143
|
options: e.fieldOptions,
|
|
@@ -2151,15 +2151,15 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2151
2151
|
"options",
|
|
2152
2152
|
"loading"
|
|
2153
2153
|
]),
|
|
2154
|
-
|
|
2154
|
+
k(p, {
|
|
2155
2155
|
type: "text",
|
|
2156
2156
|
danger: "",
|
|
2157
2157
|
onClick: (t) => e.config.simpleSearchConditions.splice(a, 1)
|
|
2158
2158
|
}, {
|
|
2159
|
-
default:
|
|
2159
|
+
default: G(() => t[11] ||= [O(" ✕ ")]),
|
|
2160
2160
|
_: 2
|
|
2161
2161
|
}, 1032, ["onClick"])
|
|
2162
|
-
]), i.searchType === 3 ? (
|
|
2162
|
+
]), i.searchType === 3 ? (I(), T("div", kt, [k(S, {
|
|
2163
2163
|
value: typeof i.value == "object" ? JSON.stringify(i.value) : i.value,
|
|
2164
2164
|
placeholder: "请输入值(对象/数组/字符串)",
|
|
2165
2165
|
"auto-size": {
|
|
@@ -2168,19 +2168,19 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2168
2168
|
},
|
|
2169
2169
|
style: { flex: "1" },
|
|
2170
2170
|
onInput: (e) => l(e, i)
|
|
2171
|
-
}, null, 8, ["value", "onInput"]), i.value !== "" && i.value != null ? (
|
|
2171
|
+
}, null, 8, ["value", "onInput"]), i.value !== "" && i.value != null ? (I(), C(D, {
|
|
2172
2172
|
key: 0,
|
|
2173
2173
|
color: "blue"
|
|
2174
2174
|
}, {
|
|
2175
|
-
default:
|
|
2175
|
+
default: G(() => [O(B(u(i.value)), 1)]),
|
|
2176
2176
|
_: 2
|
|
2177
|
-
}, 1024)) :
|
|
2177
|
+
}, 1024)) : w("", !0)])) : w("", !0)]))), 128))])]),
|
|
2178
2178
|
_: 1
|
|
2179
|
-
})) :
|
|
2179
|
+
})) : w("", !0)
|
|
2180
2180
|
], 64);
|
|
2181
2181
|
};
|
|
2182
2182
|
}
|
|
2183
|
-
}), [["__scopeId", "data-v-8e61bc57"]]), $ = /* @__PURE__ */
|
|
2183
|
+
}), [["__scopeId", "data-v-8e61bc57"]]), $ = /* @__PURE__ */ A({
|
|
2184
2184
|
__name: "SelectionModeConfig",
|
|
2185
2185
|
props: {
|
|
2186
2186
|
config: {},
|
|
@@ -2188,39 +2188,39 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2188
2188
|
},
|
|
2189
2189
|
setup(e) {
|
|
2190
2190
|
return (e, t) => {
|
|
2191
|
-
let n =
|
|
2192
|
-
return
|
|
2193
|
-
default:
|
|
2194
|
-
default:
|
|
2191
|
+
let n = z("a-radio"), r = z("a-radio-group"), i = z("a-form-item"), a = z("a-col");
|
|
2192
|
+
return I(), C(a, { span: 12 }, {
|
|
2193
|
+
default: G(() => [k(i, { label: "单选多选" }, {
|
|
2194
|
+
default: G(() => [e.field === "mode" ? (I(), C(r, {
|
|
2195
2195
|
key: 0,
|
|
2196
2196
|
value: e.config.mode,
|
|
2197
2197
|
"onUpdate:value": t[0] ||= (t) => e.config.mode = t
|
|
2198
2198
|
}, {
|
|
2199
|
-
default:
|
|
2200
|
-
|
|
2201
|
-
default:
|
|
2199
|
+
default: G(() => [
|
|
2200
|
+
k(n, { value: "default" }, {
|
|
2201
|
+
default: G(() => t[2] ||= [O("单选")]),
|
|
2202
2202
|
_: 1
|
|
2203
2203
|
}),
|
|
2204
|
-
|
|
2205
|
-
default:
|
|
2204
|
+
k(n, { value: "multiple" }, {
|
|
2205
|
+
default: G(() => t[3] ||= [O("多选")]),
|
|
2206
2206
|
_: 1
|
|
2207
2207
|
}),
|
|
2208
|
-
|
|
2209
|
-
default:
|
|
2208
|
+
k(n, { value: "tags" }, {
|
|
2209
|
+
default: G(() => t[4] ||= [O("标签")]),
|
|
2210
2210
|
_: 1
|
|
2211
2211
|
})
|
|
2212
2212
|
]),
|
|
2213
2213
|
_: 1
|
|
2214
|
-
}, 8, ["value"])) : (
|
|
2214
|
+
}, 8, ["value"])) : (I(), C(r, {
|
|
2215
2215
|
key: 1,
|
|
2216
2216
|
value: e.config.multiple,
|
|
2217
2217
|
"onUpdate:value": t[1] ||= (t) => e.config.multiple = t
|
|
2218
2218
|
}, {
|
|
2219
|
-
default:
|
|
2220
|
-
default:
|
|
2219
|
+
default: G(() => [k(n, { value: !1 }, {
|
|
2220
|
+
default: G(() => t[5] ||= [O("单选")]),
|
|
2221
2221
|
_: 1
|
|
2222
|
-
}),
|
|
2223
|
-
default:
|
|
2222
|
+
}), k(n, { value: !0 }, {
|
|
2223
|
+
default: G(() => t[6] ||= [O("多选")]),
|
|
2224
2224
|
_: 1
|
|
2225
2225
|
})]),
|
|
2226
2226
|
_: 1
|
|
@@ -2231,23 +2231,23 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2231
2231
|
});
|
|
2232
2232
|
};
|
|
2233
2233
|
}
|
|
2234
|
-
}),
|
|
2234
|
+
}), jt = /* @__PURE__ */ A({
|
|
2235
2235
|
__name: "ShowSearchConfig",
|
|
2236
2236
|
props: { config: {} },
|
|
2237
2237
|
setup(e) {
|
|
2238
2238
|
return (e, t) => {
|
|
2239
|
-
let n =
|
|
2240
|
-
return
|
|
2241
|
-
default:
|
|
2242
|
-
default:
|
|
2239
|
+
let n = z("a-radio"), r = z("a-radio-group"), i = z("a-form-item"), a = z("a-col");
|
|
2240
|
+
return I(), C(a, { span: 12 }, {
|
|
2241
|
+
default: G(() => [k(i, { label: "可否搜索" }, {
|
|
2242
|
+
default: G(() => [k(r, {
|
|
2243
2243
|
value: e.config.show_search,
|
|
2244
2244
|
"onUpdate:value": t[0] ||= (t) => e.config.show_search = t
|
|
2245
2245
|
}, {
|
|
2246
|
-
default:
|
|
2247
|
-
default:
|
|
2246
|
+
default: G(() => [k(n, { value: !1 }, {
|
|
2247
|
+
default: G(() => t[1] ||= [O("否")]),
|
|
2248
2248
|
_: 1
|
|
2249
|
-
}),
|
|
2250
|
-
default:
|
|
2249
|
+
}), k(n, { value: !0 }, {
|
|
2250
|
+
default: G(() => t[2] ||= [O("是")]),
|
|
2251
2251
|
_: 1
|
|
2252
2252
|
})]),
|
|
2253
2253
|
_: 1
|
|
@@ -2258,9 +2258,9 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2258
2258
|
});
|
|
2259
2259
|
};
|
|
2260
2260
|
}
|
|
2261
|
-
}),
|
|
2261
|
+
}), Mt = { class: "row-no" }, Nt = { class: "row-no" }, Pt = { class: "section-title" }, Ft = /*#__PURE__*/ i(/* @__PURE__ */ A({
|
|
2262
2262
|
__name: "DataSourcePanel",
|
|
2263
|
-
props: /*@__PURE__*/
|
|
2263
|
+
props: /*@__PURE__*/ j({
|
|
2264
2264
|
config: {},
|
|
2265
2265
|
record: {}
|
|
2266
2266
|
}, {
|
|
@@ -2269,12 +2269,12 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2269
2269
|
}),
|
|
2270
2270
|
emits: ["update:initModelText"],
|
|
2271
2271
|
setup(e) {
|
|
2272
|
-
let t = e, n =
|
|
2272
|
+
let t = e, n = H(e, "initModelText"), i = S(() => st.includes(t.config?.type)), a = S(() => Qe.includes(t.config?.type)), s = r().currentOrg, c = L([]), l = L(!1), u = 0, d = 0, f = (0, Z.debounce)((e) => {
|
|
2273
2273
|
l.value = !0;
|
|
2274
2274
|
let n = ++d;
|
|
2275
2275
|
o(e, "/sys/base_query_url_list").then((r) => {
|
|
2276
2276
|
n === d && (c.value = [], r && r.data && r.data.length > 0 && r.data.forEach((e) => {
|
|
2277
|
-
t.config.postUrl === e.post_url &&
|
|
2277
|
+
t.config.postUrl === e.post_url && v(e.app, e.model_name), c.value.push({
|
|
2278
2278
|
value: e.post_url,
|
|
2279
2279
|
label: e.name,
|
|
2280
2280
|
data: e
|
|
@@ -2284,13 +2284,13 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2284
2284
|
n === d && (l.value = !1);
|
|
2285
2285
|
});
|
|
2286
2286
|
}, 500);
|
|
2287
|
-
|
|
2287
|
+
F(() => {
|
|
2288
2288
|
i.value && f({
|
|
2289
2289
|
org_id: s?.id,
|
|
2290
2290
|
is_tree: ["remotetreeselectpro", "remotecascaderpro"].includes(t.config.type)
|
|
2291
2291
|
});
|
|
2292
|
-
}),
|
|
2293
|
-
e &&
|
|
2292
|
+
}), W(() => t.config.type, (e) => {
|
|
2293
|
+
e && st.includes(e) && f({
|
|
2294
2294
|
org_id: s?.id,
|
|
2295
2295
|
is_tree: ["remotetreeselectpro", "remotecascaderpro"].includes(e)
|
|
2296
2296
|
});
|
|
@@ -2319,14 +2319,14 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2319
2319
|
field_name: e,
|
|
2320
2320
|
select_name: e
|
|
2321
2321
|
});
|
|
2322
|
-
})),
|
|
2323
|
-
}, h =
|
|
2322
|
+
})), v(n.app, n.model_name);
|
|
2323
|
+
}, h = L([]), g = L(!1), _ = (e, t, n = "") => {
|
|
2324
2324
|
n = n.replace("ID", ""), n &&= `${n}-`;
|
|
2325
2325
|
for (let r of e) t.push({
|
|
2326
2326
|
value: r.name,
|
|
2327
2327
|
label: `${n}${r.verbose_name}`
|
|
2328
2328
|
}), r.children && _(r.children, t, `${n}${r.verbose_name}`);
|
|
2329
|
-
},
|
|
2329
|
+
}, v = async (e, t) => {
|
|
2330
2330
|
if (e && t) {
|
|
2331
2331
|
g.value = !0;
|
|
2332
2332
|
try {
|
|
@@ -2340,21 +2340,21 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2340
2340
|
g.value = !1;
|
|
2341
2341
|
}
|
|
2342
2342
|
}
|
|
2343
|
-
},
|
|
2343
|
+
}, y = (e, t) => !e || (t?.label ?? "").toLowerCase().includes(e.toLowerCase()), b = (e) => {
|
|
2344
2344
|
Array.isArray(t.config[e]) || (t.config[e] = []), t.config[e].push("");
|
|
2345
|
-
},
|
|
2345
|
+
}, D = () => {
|
|
2346
2346
|
Array.isArray(t.config.required_condition) || (t.config.required_condition = []), t.config.required_condition.push({
|
|
2347
2347
|
key: "",
|
|
2348
2348
|
field_name: ""
|
|
2349
2349
|
});
|
|
2350
2350
|
};
|
|
2351
2351
|
return (e, t) => {
|
|
2352
|
-
let r =
|
|
2353
|
-
return
|
|
2354
|
-
default:
|
|
2355
|
-
|
|
2356
|
-
default:
|
|
2357
|
-
default:
|
|
2352
|
+
let r = z("a-form-item"), o = z("a-col"), s = z("a-radio"), u = z("a-radio-group"), d = z("a-input"), f = z("a-auto-complete"), _ = z("a-button"), v = z("a-select"), S = z("a-textarea"), A = z("a-row");
|
|
2353
|
+
return I(), C(A, { gutter: 16 }, {
|
|
2354
|
+
default: G(() => [i.value ? (I(), T(x, { key: 0 }, [
|
|
2355
|
+
k(o, { span: 24 }, {
|
|
2356
|
+
default: G(() => [k(r, { label: "数据源" }, {
|
|
2357
|
+
default: G(() => [k(yt, {
|
|
2358
2358
|
value: e.config.postUrl,
|
|
2359
2359
|
"onUpdate:value": t[0] ||= (t) => e.config.postUrl = t,
|
|
2360
2360
|
"item-list": c.value,
|
|
@@ -2371,27 +2371,27 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2371
2371
|
})]),
|
|
2372
2372
|
_: 1
|
|
2373
2373
|
}),
|
|
2374
|
-
|
|
2374
|
+
V(et).includes(e.config.type) ? (I(), C($, {
|
|
2375
2375
|
key: 0,
|
|
2376
2376
|
config: e.config,
|
|
2377
2377
|
field: "mode"
|
|
2378
|
-
}, null, 8, ["config"])) :
|
|
2378
|
+
}, null, 8, ["config"])) : V(tt).includes(e.config.type) ? (I(), C($, {
|
|
2379
2379
|
key: 1,
|
|
2380
2380
|
config: e.config,
|
|
2381
2381
|
field: "multiple"
|
|
2382
|
-
}, null, 8, ["config"])) :
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
default:
|
|
2386
|
-
default:
|
|
2382
|
+
}, null, 8, ["config"])) : w("", !0),
|
|
2383
|
+
k(jt, { config: e.config }, null, 8, ["config"]),
|
|
2384
|
+
k(o, { span: 12 }, {
|
|
2385
|
+
default: G(() => [k(r, { label: "显示类型" }, {
|
|
2386
|
+
default: G(() => [k(u, {
|
|
2387
2387
|
value: e.config.labelKeyType,
|
|
2388
2388
|
"onUpdate:value": t[1] ||= (t) => e.config.labelKeyType = t
|
|
2389
2389
|
}, {
|
|
2390
|
-
default:
|
|
2391
|
-
default:
|
|
2390
|
+
default: G(() => [k(s, { value: 1 }, {
|
|
2391
|
+
default: G(() => t[9] ||= [O("单字段")]),
|
|
2392
2392
|
_: 1
|
|
2393
|
-
}),
|
|
2394
|
-
default:
|
|
2393
|
+
}), k(s, { value: 2 }, {
|
|
2394
|
+
default: G(() => t[10] ||= [O("多字段")]),
|
|
2395
2395
|
_: 1
|
|
2396
2396
|
})]),
|
|
2397
2397
|
_: 1
|
|
@@ -2400,7 +2400,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2400
2400
|
})]),
|
|
2401
2401
|
_: 1
|
|
2402
2402
|
}),
|
|
2403
|
-
|
|
2403
|
+
k(ft, {
|
|
2404
2404
|
remote: "",
|
|
2405
2405
|
config: e.config,
|
|
2406
2406
|
options: h.value,
|
|
@@ -2410,12 +2410,12 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2410
2410
|
"options",
|
|
2411
2411
|
"loading"
|
|
2412
2412
|
]),
|
|
2413
|
-
e.config.labelKeyType === 2 ? (
|
|
2413
|
+
e.config.labelKeyType === 2 ? (I(), C(o, {
|
|
2414
2414
|
key: 2,
|
|
2415
2415
|
span: 12
|
|
2416
2416
|
}, {
|
|
2417
|
-
default:
|
|
2418
|
-
default:
|
|
2417
|
+
default: G(() => [k(r, { label: "间隔符号" }, {
|
|
2418
|
+
default: G(() => [k(d, {
|
|
2419
2419
|
value: e.config.labelSpace,
|
|
2420
2420
|
"onUpdate:value": t[2] ||= (t) => e.config.labelSpace = t,
|
|
2421
2421
|
"allow-clear": ""
|
|
@@ -2423,93 +2423,93 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2423
2423
|
_: 1
|
|
2424
2424
|
})]),
|
|
2425
2425
|
_: 1
|
|
2426
|
-
})) :
|
|
2427
|
-
e.config.labelKeyType === 2 ? (
|
|
2426
|
+
})) : w("", !0),
|
|
2427
|
+
e.config.labelKeyType === 2 ? (I(), C(o, {
|
|
2428
2428
|
key: 3,
|
|
2429
2429
|
span: 24
|
|
2430
2430
|
}, {
|
|
2431
|
-
default:
|
|
2432
|
-
default:
|
|
2431
|
+
default: G(() => [k(r, { label: "显示列表" }, {
|
|
2432
|
+
default: G(() => [(I(!0), T(x, null, R(e.config.labelKeyList || [], (n, r) => (I(), T("div", {
|
|
2433
2433
|
key: r,
|
|
2434
2434
|
class: "row-line"
|
|
2435
2435
|
}, [
|
|
2436
|
-
|
|
2437
|
-
|
|
2436
|
+
E("span", Mt, "(" + B(r + 1) + ")", 1),
|
|
2437
|
+
k(f, {
|
|
2438
2438
|
value: e.config.labelKeyList[r],
|
|
2439
2439
|
"onUpdate:value": (t) => e.config.labelKeyList[r] = t,
|
|
2440
2440
|
options: h.value,
|
|
2441
2441
|
loading: g.value,
|
|
2442
2442
|
placeholder: "请输入显示字段",
|
|
2443
|
-
"filter-option":
|
|
2443
|
+
"filter-option": y
|
|
2444
2444
|
}, null, 8, [
|
|
2445
2445
|
"value",
|
|
2446
2446
|
"onUpdate:value",
|
|
2447
2447
|
"options",
|
|
2448
2448
|
"loading"
|
|
2449
2449
|
]),
|
|
2450
|
-
|
|
2450
|
+
k(_, {
|
|
2451
2451
|
type: "link",
|
|
2452
2452
|
danger: "",
|
|
2453
2453
|
onClick: (t) => e.config.labelKeyList.splice(r, 1)
|
|
2454
2454
|
}, {
|
|
2455
|
-
default:
|
|
2455
|
+
default: G(() => t[11] ||= [O(" 删除 ")]),
|
|
2456
2456
|
_: 2
|
|
2457
2457
|
}, 1032, ["onClick"])
|
|
2458
|
-
]))), 128)),
|
|
2458
|
+
]))), 128)), k(_, {
|
|
2459
2459
|
size: "small",
|
|
2460
2460
|
type: "dashed",
|
|
2461
|
-
onClick: t[3] ||= (e) =>
|
|
2461
|
+
onClick: t[3] ||= (e) => b("labelKeyList")
|
|
2462
2462
|
}, {
|
|
2463
|
-
default:
|
|
2463
|
+
default: G(() => t[12] ||= [O(" + 添加显示字段 ")]),
|
|
2464
2464
|
_: 1
|
|
2465
2465
|
})]),
|
|
2466
2466
|
_: 1
|
|
2467
2467
|
})]),
|
|
2468
2468
|
_: 1
|
|
2469
|
-
})) :
|
|
2470
|
-
|
|
2471
|
-
default:
|
|
2472
|
-
default:
|
|
2469
|
+
})) : w("", !0),
|
|
2470
|
+
k(o, { span: 24 }, {
|
|
2471
|
+
default: G(() => [k(r, { label: "扩展查询字段" }, {
|
|
2472
|
+
default: G(() => [(I(!0), T(x, null, R(e.config.extendedFields || [], (n, r) => (I(), T("div", {
|
|
2473
2473
|
key: r,
|
|
2474
2474
|
class: "row-line"
|
|
2475
2475
|
}, [
|
|
2476
|
-
|
|
2477
|
-
|
|
2476
|
+
E("span", Nt, "(" + B(r + 1) + ")", 1),
|
|
2477
|
+
k(f, {
|
|
2478
2478
|
value: e.config.extendedFields[r],
|
|
2479
2479
|
"onUpdate:value": (t) => e.config.extendedFields[r] = t,
|
|
2480
2480
|
options: h.value,
|
|
2481
2481
|
loading: g.value,
|
|
2482
2482
|
placeholder: "请输入扩展查询字段",
|
|
2483
|
-
"filter-option":
|
|
2483
|
+
"filter-option": y
|
|
2484
2484
|
}, null, 8, [
|
|
2485
2485
|
"value",
|
|
2486
2486
|
"onUpdate:value",
|
|
2487
2487
|
"options",
|
|
2488
2488
|
"loading"
|
|
2489
2489
|
]),
|
|
2490
|
-
|
|
2490
|
+
k(_, {
|
|
2491
2491
|
type: "link",
|
|
2492
2492
|
danger: "",
|
|
2493
2493
|
onClick: (t) => e.config.extendedFields.splice(r, 1)
|
|
2494
2494
|
}, {
|
|
2495
|
-
default:
|
|
2495
|
+
default: G(() => t[13] ||= [O(" 删除 ")]),
|
|
2496
2496
|
_: 2
|
|
2497
2497
|
}, 1032, ["onClick"])
|
|
2498
|
-
]))), 128)),
|
|
2498
|
+
]))), 128)), k(_, {
|
|
2499
2499
|
size: "small",
|
|
2500
2500
|
type: "dashed",
|
|
2501
|
-
onClick: t[4] ||= (e) =>
|
|
2501
|
+
onClick: t[4] ||= (e) => b("extendedFields")
|
|
2502
2502
|
}, {
|
|
2503
|
-
default:
|
|
2503
|
+
default: G(() => t[14] ||= [O(" + 添加扩展查询字段 ")]),
|
|
2504
2504
|
_: 1
|
|
2505
2505
|
})]),
|
|
2506
2506
|
_: 1
|
|
2507
2507
|
})]),
|
|
2508
2508
|
_: 1
|
|
2509
2509
|
}),
|
|
2510
|
-
|
|
2511
|
-
default:
|
|
2512
|
-
default:
|
|
2510
|
+
k(o, { span: 24 }, {
|
|
2511
|
+
default: G(() => [k(r, { label: "默认值配置" }, {
|
|
2512
|
+
default: G(() => [k(v, {
|
|
2513
2513
|
value: e.config.defaultValueType,
|
|
2514
2514
|
"onUpdate:value": t[5] ||= (t) => e.config.defaultValueType = t,
|
|
2515
2515
|
style: { width: "200px" },
|
|
@@ -2528,7 +2528,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2528
2528
|
label: "全局值"
|
|
2529
2529
|
}
|
|
2530
2530
|
]
|
|
2531
|
-
}, null, 8, ["value"]), e.config.defaultValueType === "global" ? (
|
|
2531
|
+
}, null, 8, ["value"]), e.config.defaultValueType === "global" ? (I(), T(x, { key: 0 }, [k(d, {
|
|
2532
2532
|
value: e.config.globalDefaultKey,
|
|
2533
2533
|
"onUpdate:value": t[6] ||= (t) => e.config.globalDefaultKey = t,
|
|
2534
2534
|
placeholder: "键",
|
|
@@ -2536,7 +2536,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2536
2536
|
width: "200px",
|
|
2537
2537
|
"margin-left": "8px"
|
|
2538
2538
|
}
|
|
2539
|
-
}, null, 8, ["value"]),
|
|
2539
|
+
}, null, 8, ["value"]), k(d, {
|
|
2540
2540
|
value: e.config.globalDefaultField,
|
|
2541
2541
|
"onUpdate:value": t[7] ||= (t) => e.config.globalDefaultField = t,
|
|
2542
2542
|
placeholder: "字段名",
|
|
@@ -2544,12 +2544,12 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2544
2544
|
width: "260px",
|
|
2545
2545
|
"margin-left": "8px"
|
|
2546
2546
|
}
|
|
2547
|
-
}, null, 8, ["value"])], 64)) :
|
|
2547
|
+
}, null, 8, ["value"])], 64)) : w("", !0)]),
|
|
2548
2548
|
_: 1
|
|
2549
2549
|
})]),
|
|
2550
2550
|
_: 1
|
|
2551
2551
|
}),
|
|
2552
|
-
|
|
2552
|
+
k(At, {
|
|
2553
2553
|
config: e.config,
|
|
2554
2554
|
"field-options": h.value,
|
|
2555
2555
|
"field-options-loading": g.value
|
|
@@ -2558,44 +2558,44 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2558
2558
|
"field-options",
|
|
2559
2559
|
"field-options-loading"
|
|
2560
2560
|
]),
|
|
2561
|
-
|
|
2562
|
-
default:
|
|
2561
|
+
k(o, { span: 24 }, {
|
|
2562
|
+
default: G(() => [E("div", Pt, [t[16] ||= E("span", null, "全局切换配置", -1), k(_, {
|
|
2563
2563
|
type: "primary",
|
|
2564
2564
|
size: "small",
|
|
2565
|
-
onClick:
|
|
2565
|
+
onClick: D
|
|
2566
2566
|
}, {
|
|
2567
|
-
default:
|
|
2567
|
+
default: G(() => t[15] ||= [O(" + 添加全局切换 ")]),
|
|
2568
2568
|
_: 1
|
|
2569
|
-
})]), (
|
|
2569
|
+
})]), (I(!0), T(x, null, R(e.config.required_condition || [], (n, r) => (I(), T("div", {
|
|
2570
2570
|
key: r,
|
|
2571
2571
|
class: "row-line"
|
|
2572
2572
|
}, [
|
|
2573
|
-
|
|
2573
|
+
k(d, {
|
|
2574
2574
|
value: n.key,
|
|
2575
2575
|
"onUpdate:value": (e) => n.key = e,
|
|
2576
2576
|
placeholder: "键",
|
|
2577
2577
|
style: { width: "260px" }
|
|
2578
2578
|
}, null, 8, ["value", "onUpdate:value"]),
|
|
2579
|
-
|
|
2579
|
+
k(d, {
|
|
2580
2580
|
value: n.field_name,
|
|
2581
2581
|
"onUpdate:value": (e) => n.field_name = e,
|
|
2582
2582
|
placeholder: "字段名",
|
|
2583
2583
|
style: { width: "360px" }
|
|
2584
2584
|
}, null, 8, ["value", "onUpdate:value"]),
|
|
2585
|
-
|
|
2585
|
+
k(_, {
|
|
2586
2586
|
type: "link",
|
|
2587
2587
|
danger: "",
|
|
2588
2588
|
onClick: (t) => e.config.required_condition.splice(r, 1)
|
|
2589
2589
|
}, {
|
|
2590
|
-
default:
|
|
2590
|
+
default: G(() => t[17] ||= [O(" 删除 ")]),
|
|
2591
2591
|
_: 2
|
|
2592
2592
|
}, 1032, ["onClick"])
|
|
2593
2593
|
]))), 128))]),
|
|
2594
2594
|
_: 1
|
|
2595
2595
|
}),
|
|
2596
|
-
|
|
2597
|
-
default:
|
|
2598
|
-
default:
|
|
2596
|
+
k(o, { span: 24 }, {
|
|
2597
|
+
default: G(() => [k(r, { label: "初始参数:JSON" }, {
|
|
2598
|
+
default: G(() => [k(S, {
|
|
2599
2599
|
value: n.value,
|
|
2600
2600
|
"onUpdate:value": t[8] ||= (e) => n.value = e,
|
|
2601
2601
|
rows: 3,
|
|
@@ -2605,28 +2605,28 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2605
2605
|
})]),
|
|
2606
2606
|
_: 1
|
|
2607
2607
|
})
|
|
2608
|
-
], 64)) :
|
|
2608
|
+
], 64)) : w("", !0), a.value ? (I(), C(ht, {
|
|
2609
2609
|
key: 1,
|
|
2610
2610
|
config: e.config,
|
|
2611
2611
|
record: e.record
|
|
2612
|
-
}, null, 8, ["config", "record"])) :
|
|
2612
|
+
}, null, 8, ["config", "record"])) : w("", !0)]),
|
|
2613
2613
|
_: 1
|
|
2614
2614
|
});
|
|
2615
2615
|
};
|
|
2616
2616
|
}
|
|
2617
|
-
}), [["__scopeId", "data-v-b5e7a0d1"]]),
|
|
2617
|
+
}), [["__scopeId", "data-v-b5e7a0d1"]]), It = /* @__PURE__ */ A({
|
|
2618
2618
|
__name: "DateFormatConfig",
|
|
2619
2619
|
props: { config: {} },
|
|
2620
2620
|
setup(e) {
|
|
2621
2621
|
return (e, t) => {
|
|
2622
|
-
let n =
|
|
2623
|
-
return
|
|
2624
|
-
e.config.type === "datepicker" ? (
|
|
2622
|
+
let n = z("a-select"), r = z("a-form-item"), i = z("a-col"), a = z("a-switch"), o = z("a-input");
|
|
2623
|
+
return I(), T(x, null, [
|
|
2624
|
+
e.config.type === "datepicker" ? (I(), C(i, {
|
|
2625
2625
|
key: 0,
|
|
2626
2626
|
span: 12
|
|
2627
2627
|
}, {
|
|
2628
|
-
default:
|
|
2629
|
-
default:
|
|
2628
|
+
default: G(() => [k(r, { label: "选择粒度" }, {
|
|
2629
|
+
default: G(() => [k(n, {
|
|
2630
2630
|
value: e.config.picker,
|
|
2631
2631
|
"onUpdate:value": t[0] ||= (t) => e.config.picker = t,
|
|
2632
2632
|
"allow-clear": "",
|
|
@@ -2657,13 +2657,13 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2657
2657
|
_: 1
|
|
2658
2658
|
})]),
|
|
2659
2659
|
_: 1
|
|
2660
|
-
})) :
|
|
2661
|
-
e.config.type === "datepicker" ? (
|
|
2660
|
+
})) : w("", !0),
|
|
2661
|
+
e.config.type === "datepicker" ? (I(), C(i, {
|
|
2662
2662
|
key: 1,
|
|
2663
2663
|
span: 12
|
|
2664
2664
|
}, {
|
|
2665
|
-
default:
|
|
2666
|
-
default:
|
|
2665
|
+
default: G(() => [k(r, { label: "显示时间" }, {
|
|
2666
|
+
default: G(() => [k(a, {
|
|
2667
2667
|
checked: e.config.showTime,
|
|
2668
2668
|
"onUpdate:checked": t[1] ||= (t) => e.config.showTime = t,
|
|
2669
2669
|
"checked-children": "有",
|
|
@@ -2672,10 +2672,10 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2672
2672
|
_: 1
|
|
2673
2673
|
})]),
|
|
2674
2674
|
_: 1
|
|
2675
|
-
})) :
|
|
2676
|
-
|
|
2677
|
-
default:
|
|
2678
|
-
default:
|
|
2675
|
+
})) : w("", !0),
|
|
2676
|
+
k(i, { span: 12 }, {
|
|
2677
|
+
default: G(() => [k(r, { label: "时间格式" }, {
|
|
2678
|
+
default: G(() => [k(o, {
|
|
2679
2679
|
value: e.config.format,
|
|
2680
2680
|
"onUpdate:value": t[2] ||= (t) => e.config.format = t,
|
|
2681
2681
|
"allow-clear": ""
|
|
@@ -2684,9 +2684,9 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2684
2684
|
})]),
|
|
2685
2685
|
_: 1
|
|
2686
2686
|
}),
|
|
2687
|
-
|
|
2688
|
-
default:
|
|
2689
|
-
default:
|
|
2687
|
+
k(i, { span: 12 }, {
|
|
2688
|
+
default: G(() => [k(r, { label: "传值格式" }, {
|
|
2689
|
+
default: G(() => [k(o, {
|
|
2690
2690
|
value: e.config.valueFormat,
|
|
2691
2691
|
"onUpdate:value": t[3] ||= (t) => e.config.valueFormat = t,
|
|
2692
2692
|
"allow-clear": ""
|
|
@@ -2698,37 +2698,37 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2698
2698
|
], 64);
|
|
2699
2699
|
};
|
|
2700
2700
|
}
|
|
2701
|
-
}),
|
|
2701
|
+
}), Lt = /* @__PURE__ */ A({
|
|
2702
2702
|
__name: "DateSelectSetting",
|
|
2703
2703
|
props: { config: {} },
|
|
2704
2704
|
setup(e) {
|
|
2705
2705
|
return (e, t) => {
|
|
2706
|
-
let n =
|
|
2707
|
-
return
|
|
2708
|
-
default:
|
|
2706
|
+
let n = z("a-row");
|
|
2707
|
+
return I(), C(n, { gutter: 16 }, {
|
|
2708
|
+
default: G(() => [k(It, { config: e.config }, null, 8, ["config"])]),
|
|
2709
2709
|
_: 1
|
|
2710
2710
|
});
|
|
2711
2711
|
};
|
|
2712
2712
|
}
|
|
2713
|
-
}),
|
|
2713
|
+
}), Rt = /*#__PURE__*/ i(/* @__PURE__ */ A({
|
|
2714
2714
|
__name: "FlatSelectSetting",
|
|
2715
2715
|
props: { config: {} },
|
|
2716
2716
|
setup(e) {
|
|
2717
2717
|
return (e, t) => {
|
|
2718
|
-
let n =
|
|
2719
|
-
return
|
|
2720
|
-
default:
|
|
2721
|
-
|
|
2718
|
+
let n = z("a-col"), r = z("a-row");
|
|
2719
|
+
return I(), C(r, { gutter: 16 }, {
|
|
2720
|
+
default: G(() => [
|
|
2721
|
+
V(et).includes(e.config.type) ? (I(), C($, {
|
|
2722
2722
|
key: 0,
|
|
2723
2723
|
config: e.config,
|
|
2724
2724
|
field: "mode"
|
|
2725
|
-
}, null, 8, ["config"])) :
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
default:
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2725
|
+
}, null, 8, ["config"])) : w("", !0),
|
|
2726
|
+
k(jt, { config: e.config }, null, 8, ["config"]),
|
|
2727
|
+
k(n, { span: 24 }, {
|
|
2728
|
+
default: G(() => t[0] ||= [E("div", { class: "flat-hint" }, [
|
|
2729
|
+
O(" 本地静态选项(数值 / 显示文本)在「数据源」页的「选项列表」中维护;选项对象为 "),
|
|
2730
|
+
E("code", null, "{ value, label }"),
|
|
2731
|
+
O("。 ")
|
|
2732
2732
|
], -1)]),
|
|
2733
2733
|
_: 1
|
|
2734
2734
|
})
|
|
@@ -2737,16 +2737,16 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2737
2737
|
});
|
|
2738
2738
|
};
|
|
2739
2739
|
}
|
|
2740
|
-
}), [["__scopeId", "data-v-4bce532e"]]),
|
|
2740
|
+
}), [["__scopeId", "data-v-4bce532e"]]), zt = /* @__PURE__ */ A({
|
|
2741
2741
|
__name: "NumberRangeConfig",
|
|
2742
2742
|
props: { config: {} },
|
|
2743
2743
|
setup(e) {
|
|
2744
2744
|
return (e, t) => {
|
|
2745
|
-
let n =
|
|
2746
|
-
return
|
|
2747
|
-
|
|
2748
|
-
default:
|
|
2749
|
-
default:
|
|
2745
|
+
let n = z("a-input"), r = z("a-form-item"), i = z("a-col");
|
|
2746
|
+
return I(), T(x, null, [
|
|
2747
|
+
k(i, { span: 12 }, {
|
|
2748
|
+
default: G(() => [k(r, { label: "最小值" }, {
|
|
2749
|
+
default: G(() => [k(n, {
|
|
2750
2750
|
value: e.config.min,
|
|
2751
2751
|
"onUpdate:value": t[0] ||= (t) => e.config.min = t,
|
|
2752
2752
|
placeholder: "不限制",
|
|
@@ -2756,9 +2756,9 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2756
2756
|
})]),
|
|
2757
2757
|
_: 1
|
|
2758
2758
|
}),
|
|
2759
|
-
|
|
2760
|
-
default:
|
|
2761
|
-
default:
|
|
2759
|
+
k(i, { span: 12 }, {
|
|
2760
|
+
default: G(() => [k(r, { label: "最大值" }, {
|
|
2761
|
+
default: G(() => [k(n, {
|
|
2762
2762
|
value: e.config.max,
|
|
2763
2763
|
"onUpdate:value": t[1] ||= (t) => e.config.max = t,
|
|
2764
2764
|
placeholder: "不限制",
|
|
@@ -2768,9 +2768,9 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2768
2768
|
})]),
|
|
2769
2769
|
_: 1
|
|
2770
2770
|
}),
|
|
2771
|
-
|
|
2772
|
-
default:
|
|
2773
|
-
default:
|
|
2771
|
+
k(i, { span: 12 }, {
|
|
2772
|
+
default: G(() => [k(r, { label: "数值精度" }, {
|
|
2773
|
+
default: G(() => [k(n, {
|
|
2774
2774
|
value: e.config.precision,
|
|
2775
2775
|
"onUpdate:value": t[2] ||= (t) => e.config.precision = t,
|
|
2776
2776
|
type: "number"
|
|
@@ -2779,9 +2779,9 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2779
2779
|
})]),
|
|
2780
2780
|
_: 1
|
|
2781
2781
|
}),
|
|
2782
|
-
|
|
2783
|
-
default:
|
|
2784
|
-
default:
|
|
2782
|
+
k(i, { span: 12 }, {
|
|
2783
|
+
default: G(() => [k(r, { label: "步进数值" }, {
|
|
2784
|
+
default: G(() => [k(n, {
|
|
2785
2785
|
value: e.config.step,
|
|
2786
2786
|
"onUpdate:value": t[3] ||= (t) => e.config.step = t,
|
|
2787
2787
|
type: "number"
|
|
@@ -2793,16 +2793,16 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2793
2793
|
], 64);
|
|
2794
2794
|
};
|
|
2795
2795
|
}
|
|
2796
|
-
}),
|
|
2796
|
+
}), Bt = /* @__PURE__ */ A({
|
|
2797
2797
|
__name: "TextAddonConfig",
|
|
2798
2798
|
props: { config: {} },
|
|
2799
2799
|
setup(e) {
|
|
2800
2800
|
return (e, t) => {
|
|
2801
|
-
let n =
|
|
2802
|
-
return
|
|
2803
|
-
|
|
2804
|
-
default:
|
|
2805
|
-
default:
|
|
2801
|
+
let n = z("a-input-number"), r = z("a-form-item"), i = z("a-col"), a = z("a-input");
|
|
2802
|
+
return I(), T(x, null, [
|
|
2803
|
+
k(i, { span: 12 }, {
|
|
2804
|
+
default: G(() => [k(r, { label: "最大字符" }, {
|
|
2805
|
+
default: G(() => [k(n, {
|
|
2806
2806
|
value: e.config.maxlength,
|
|
2807
2807
|
"onUpdate:value": t[0] ||= (t) => e.config.maxlength = t,
|
|
2808
2808
|
style: { width: "100%" },
|
|
@@ -2812,9 +2812,9 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2812
2812
|
})]),
|
|
2813
2813
|
_: 1
|
|
2814
2814
|
}),
|
|
2815
|
-
|
|
2816
|
-
default:
|
|
2817
|
-
default:
|
|
2815
|
+
k(i, { span: 12 }, {
|
|
2816
|
+
default: G(() => [k(r, { label: "前缀标签" }, {
|
|
2817
|
+
default: G(() => [k(a, {
|
|
2818
2818
|
value: e.config.addonBefore,
|
|
2819
2819
|
"onUpdate:value": t[1] ||= (t) => e.config.addonBefore = t,
|
|
2820
2820
|
"allow-clear": ""
|
|
@@ -2823,9 +2823,9 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2823
2823
|
})]),
|
|
2824
2824
|
_: 1
|
|
2825
2825
|
}),
|
|
2826
|
-
|
|
2827
|
-
default:
|
|
2828
|
-
default:
|
|
2826
|
+
k(i, { span: 12 }, {
|
|
2827
|
+
default: G(() => [k(r, { label: "后缀标签" }, {
|
|
2828
|
+
default: G(() => [k(a, {
|
|
2829
2829
|
value: e.config.addonAfter,
|
|
2830
2830
|
"onUpdate:value": t[2] ||= (t) => e.config.addonAfter = t,
|
|
2831
2831
|
"allow-clear": ""
|
|
@@ -2837,41 +2837,41 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2837
2837
|
], 64);
|
|
2838
2838
|
};
|
|
2839
2839
|
}
|
|
2840
|
-
}),
|
|
2840
|
+
}), Vt = /* @__PURE__ */ A({
|
|
2841
2841
|
__name: "NumberInputSetting",
|
|
2842
2842
|
props: { config: {} },
|
|
2843
2843
|
setup(e) {
|
|
2844
2844
|
return (e, t) => {
|
|
2845
|
-
let n =
|
|
2846
|
-
return
|
|
2847
|
-
default:
|
|
2845
|
+
let n = z("a-row");
|
|
2846
|
+
return I(), C(n, { gutter: 16 }, {
|
|
2847
|
+
default: G(() => [V(rt).includes(e.config.type) ? (I(), C(Bt, {
|
|
2848
2848
|
key: 0,
|
|
2849
2849
|
config: e.config
|
|
2850
|
-
}, null, 8, ["config"])) :
|
|
2850
|
+
}, null, 8, ["config"])) : w("", !0), k(zt, { config: e.config }, null, 8, ["config"])]),
|
|
2851
2851
|
_: 1
|
|
2852
2852
|
});
|
|
2853
2853
|
};
|
|
2854
2854
|
}
|
|
2855
|
-
}),
|
|
2855
|
+
}), Ht = /*#__PURE__*/ i(/* @__PURE__ */ A({
|
|
2856
2856
|
__name: "RemoteSelectSetting",
|
|
2857
2857
|
props: { config: {} },
|
|
2858
2858
|
setup(e) {
|
|
2859
2859
|
return (e, t) => {
|
|
2860
|
-
let n =
|
|
2861
|
-
return
|
|
2862
|
-
default:
|
|
2863
|
-
|
|
2860
|
+
let n = z("a-col"), r = z("a-row");
|
|
2861
|
+
return I(), C(r, { gutter: 16 }, {
|
|
2862
|
+
default: G(() => [
|
|
2863
|
+
V(et).includes(e.config.type) ? (I(), C($, {
|
|
2864
2864
|
key: 0,
|
|
2865
2865
|
config: e.config,
|
|
2866
2866
|
field: "mode"
|
|
2867
|
-
}, null, 8, ["config"])) :
|
|
2867
|
+
}, null, 8, ["config"])) : V(tt).includes(e.config.type) ? (I(), C($, {
|
|
2868
2868
|
key: 1,
|
|
2869
2869
|
config: e.config,
|
|
2870
2870
|
field: "multiple"
|
|
2871
|
-
}, null, 8, ["config"])) :
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
default:
|
|
2871
|
+
}, null, 8, ["config"])) : w("", !0),
|
|
2872
|
+
k(jt, { config: e.config }, null, 8, ["config"]),
|
|
2873
|
+
k(n, { span: 24 }, {
|
|
2874
|
+
default: G(() => t[0] ||= [E("div", { class: "remote-hint" }, " 远程类组件的数据源接口、显示字段、查询参数(监听/固定/上下文)、全局切换等在「数据源」页配置。 ", -1)]),
|
|
2875
2875
|
_: 1
|
|
2876
2876
|
})
|
|
2877
2877
|
]),
|
|
@@ -2879,31 +2879,31 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2879
2879
|
});
|
|
2880
2880
|
};
|
|
2881
2881
|
}
|
|
2882
|
-
}), [["__scopeId", "data-v-a13b4b2a"]]),
|
|
2882
|
+
}), [["__scopeId", "data-v-a13b4b2a"]]), Ut = /* @__PURE__ */ A({
|
|
2883
2883
|
__name: "TextInputSetting",
|
|
2884
2884
|
props: { config: {} },
|
|
2885
2885
|
setup(e) {
|
|
2886
2886
|
return (e, t) => {
|
|
2887
|
-
let n =
|
|
2888
|
-
return
|
|
2889
|
-
default:
|
|
2887
|
+
let n = z("a-row");
|
|
2888
|
+
return I(), C(n, { gutter: 16 }, {
|
|
2889
|
+
default: G(() => [k(Bt, { config: e.config }, null, 8, ["config"])]),
|
|
2890
2890
|
_: 1
|
|
2891
2891
|
});
|
|
2892
2892
|
};
|
|
2893
2893
|
}
|
|
2894
|
-
}),
|
|
2894
|
+
}), Wt = {
|
|
2895
2895
|
key: 0,
|
|
2896
2896
|
class: "json-error"
|
|
2897
|
-
},
|
|
2897
|
+
}, Gt = /*#__PURE__*/ i(/* @__PURE__ */ A({
|
|
2898
2898
|
__name: "TreeDataConfig",
|
|
2899
2899
|
props: { config: {} },
|
|
2900
2900
|
setup(e) {
|
|
2901
|
-
let t = e, n =
|
|
2902
|
-
return
|
|
2901
|
+
let t = e, n = L(""), r = L("");
|
|
2902
|
+
return W(() => t.config, () => {
|
|
2903
2903
|
r.value = "";
|
|
2904
2904
|
let e = t.config?.options;
|
|
2905
2905
|
n.value = Array.isArray(e) ? JSON.stringify(e, null, 2) : "";
|
|
2906
|
-
}, { immediate: !0 }),
|
|
2906
|
+
}, { immediate: !0 }), W(n, (e) => {
|
|
2907
2907
|
if (!e || !e.trim()) {
|
|
2908
2908
|
r.value = "", t.config.options = [];
|
|
2909
2909
|
return;
|
|
@@ -2916,49 +2916,49 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2916
2916
|
r.value = "JSON 无效:" + (e?.message || "解析失败");
|
|
2917
2917
|
}
|
|
2918
2918
|
}), (e, t) => {
|
|
2919
|
-
let i =
|
|
2920
|
-
return
|
|
2921
|
-
default:
|
|
2922
|
-
default:
|
|
2919
|
+
let i = z("a-textarea"), a = z("a-form-item"), o = z("a-col");
|
|
2920
|
+
return I(), C(o, { span: 24 }, {
|
|
2921
|
+
default: G(() => [k(a, { label: "树形数据" }, {
|
|
2922
|
+
default: G(() => [k(i, {
|
|
2923
2923
|
value: n.value,
|
|
2924
2924
|
"onUpdate:value": t[0] ||= (e) => n.value = e,
|
|
2925
2925
|
rows: 6,
|
|
2926
2926
|
placeholder: "[{\"value\":\"1\",\"label\":\"父级1\",\"children\":[{\"value\":\"1-1\",\"label\":\"子级1-1\"}]}]"
|
|
2927
|
-
}, null, 8, ["value"]), r.value ? (
|
|
2927
|
+
}, null, 8, ["value"]), r.value ? (I(), T("div", Wt, B(r.value), 1)) : w("", !0)]),
|
|
2928
2928
|
_: 1
|
|
2929
2929
|
})]),
|
|
2930
2930
|
_: 1
|
|
2931
2931
|
});
|
|
2932
2932
|
};
|
|
2933
2933
|
}
|
|
2934
|
-
}), [["__scopeId", "data-v-58025b9d"]]),
|
|
2934
|
+
}), [["__scopeId", "data-v-58025b9d"]]), Kt = /* @__PURE__ */ A({
|
|
2935
2935
|
__name: "TreeSelectSetting",
|
|
2936
2936
|
props: { config: {} },
|
|
2937
2937
|
setup(e) {
|
|
2938
2938
|
return (e, t) => {
|
|
2939
|
-
let n =
|
|
2940
|
-
return
|
|
2941
|
-
default:
|
|
2942
|
-
|
|
2939
|
+
let n = z("a-row");
|
|
2940
|
+
return I(), C(n, { gutter: 16 }, {
|
|
2941
|
+
default: G(() => [
|
|
2942
|
+
k($, {
|
|
2943
2943
|
config: e.config,
|
|
2944
2944
|
field: "multiple"
|
|
2945
2945
|
}, null, 8, ["config"]),
|
|
2946
|
-
|
|
2947
|
-
|
|
2946
|
+
k(jt, { config: e.config }, null, 8, ["config"]),
|
|
2947
|
+
k(Gt, { config: e.config }, null, 8, ["config"])
|
|
2948
2948
|
]),
|
|
2949
2949
|
_: 1
|
|
2950
2950
|
});
|
|
2951
2951
|
};
|
|
2952
2952
|
}
|
|
2953
|
-
}),
|
|
2953
|
+
}), qt = { class: "csc-json-pane" }, Jt = { class: "json-toolbar" }, Yt = {
|
|
2954
2954
|
key: 1,
|
|
2955
2955
|
class: "json-tip"
|
|
2956
|
-
},
|
|
2956
|
+
}, Xt = { class: "json-editor-wrap" }, Zt = {
|
|
2957
2957
|
key: 0,
|
|
2958
2958
|
class: "adv-footer"
|
|
2959
|
-
},
|
|
2959
|
+
}, Qt = { class: "csc-drawer-footer" }, $t = 920, en = /*#__PURE__*/ i(/* @__PURE__ */ A({
|
|
2960
2960
|
__name: "ColumnSearchComponentModal",
|
|
2961
|
-
props: /*@__PURE__*/
|
|
2961
|
+
props: /*@__PURE__*/ j({
|
|
2962
2962
|
open: { type: Boolean },
|
|
2963
2963
|
record: {}
|
|
2964
2964
|
}, {
|
|
@@ -2970,13 +2970,13 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2970
2970
|
}),
|
|
2971
2971
|
emits: ["update:open"],
|
|
2972
2972
|
setup(e) {
|
|
2973
|
-
let t = e, n =
|
|
2974
|
-
|
|
2973
|
+
let t = e, n = H(e, "open"), r = S(() => st.includes(o.value?.type)), i = S(() => r.value || Qe.includes(o.value?.type)), a = L("props"), o = L({}), s = L(""), c = L(""), l = L(!1), u = L(""), d = L();
|
|
2974
|
+
W(() => t.open, (e) => {
|
|
2975
2975
|
if (!e) return;
|
|
2976
2976
|
a.value = "props";
|
|
2977
2977
|
let n = t.record?.advanced_search_component;
|
|
2978
|
-
n && typeof n == "object" && n.type ? (o.value =
|
|
2979
|
-
...(0, Z.cloneDeep)(
|
|
2978
|
+
n && typeof n == "object" && n.type ? (o.value = m({
|
|
2979
|
+
...(0, Z.cloneDeep)(ut[n.type] || {}),
|
|
2980
2980
|
...(0, Z.cloneDeep)(n)
|
|
2981
2981
|
}), o.value.type = n.type) : o.value = {}, s.value = o.value.init_model ? JSON.stringify(o.value.init_model, null, 2) : "", c.value = "", l.value = !1, u.value = "";
|
|
2982
2982
|
});
|
|
@@ -2988,11 +2988,11 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
2988
2988
|
else delete e.init_model;
|
|
2989
2989
|
return e;
|
|
2990
2990
|
};
|
|
2991
|
-
|
|
2992
|
-
t === "json" && u.value &&
|
|
2993
|
-
}),
|
|
2991
|
+
W(a, (e, t) => {
|
|
2992
|
+
t === "json" && u.value && q.warning("JSON 配置存在语法错误,未同步到表单"), e === "json" && !l.value && (c.value = JSON.stringify(f(), null, 2), u.value = ""), e === "json" && M(() => d.value?.handleCodeMirrorRefresh?.());
|
|
2993
|
+
}), W(o, () => {
|
|
2994
2994
|
o.value?.type && (l.value = !1, c.value = JSON.stringify(f(), null, 2));
|
|
2995
|
-
}, { deep: !0 }),
|
|
2995
|
+
}, { deep: !0 }), W(c, (e) => {
|
|
2996
2996
|
if (!e.trim()) {
|
|
2997
2997
|
u.value = "";
|
|
2998
2998
|
return;
|
|
@@ -3003,8 +3003,8 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3003
3003
|
u.value = "必须是包含 type 字符串键的 JSON 对象(如 {\"type\":\"input\", ...}),未同步到表单";
|
|
3004
3004
|
return;
|
|
3005
3005
|
}
|
|
3006
|
-
o.value =
|
|
3007
|
-
...(0, Z.cloneDeep)(
|
|
3006
|
+
o.value = m({
|
|
3007
|
+
...(0, Z.cloneDeep)(ut[t.type] || {}),
|
|
3008
3008
|
...t
|
|
3009
3009
|
}), s.value = o.value.init_model ? JSON.stringify(o.value.init_model, null, 2) : "", u.value = "", l.value = !1;
|
|
3010
3010
|
} catch (e) {
|
|
@@ -3015,40 +3015,40 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3015
3015
|
try {
|
|
3016
3016
|
c.value = JSON.stringify(JSON.parse(c.value), null, 2);
|
|
3017
3017
|
} catch {}
|
|
3018
|
-
},
|
|
3018
|
+
}, m = (e) => (e?.type && (ot.includes(e.type) ? Array.isArray(e.placeholder) || (e.placeholder = typeof e.placeholder == "string" && e.placeholder ? [e.placeholder, e.placeholder] : (0, Z.cloneDeep)(ut[e.type]?.placeholder) || ["开始", "结束"]) : Array.isArray(e.placeholder) ? e.placeholder = e.placeholder.filter(Boolean)[0] || "" : typeof e.placeholder != "string" && (e.placeholder = ut[e.type]?.placeholder ?? "")), e), h = (e) => {
|
|
3019
3019
|
if (!e) {
|
|
3020
3020
|
o.value = {};
|
|
3021
3021
|
return;
|
|
3022
3022
|
}
|
|
3023
3023
|
let t = o.value || {}, n = {};
|
|
3024
|
-
t.label && (n.label = t.label), t.disabled != null && (n.disabled = t.disabled),
|
|
3025
|
-
...(0, Z.cloneDeep)(
|
|
3024
|
+
t.label && (n.label = t.label), t.disabled != null && (n.disabled = t.disabled), ot.includes(t.type) ? Array.isArray(t.placeholder) && (n.placeholder = t.placeholder) : typeof t.placeholder == "string" && (n.placeholder = t.placeholder), t.allowClear != null && (n.allowClear = t.allowClear), o.value = m({
|
|
3025
|
+
...(0, Z.cloneDeep)(ut[e] || { type: e }),
|
|
3026
3026
|
...n
|
|
3027
3027
|
}), l.value = !1;
|
|
3028
|
-
},
|
|
3028
|
+
}, g = () => {
|
|
3029
3029
|
t.record.advanced_search_component = null, o.value = {}, n.value = !1;
|
|
3030
|
-
},
|
|
3030
|
+
}, v = () => {
|
|
3031
3031
|
if (!o.value?.type) {
|
|
3032
3032
|
n.value = !1;
|
|
3033
3033
|
return;
|
|
3034
3034
|
}
|
|
3035
3035
|
if (u.value) {
|
|
3036
|
-
|
|
3036
|
+
q.warning("JSON 配置存在语法错误,请修正后再保存");
|
|
3037
3037
|
return;
|
|
3038
3038
|
}
|
|
3039
3039
|
let e = (0, Z.cloneDeep)(o.value);
|
|
3040
3040
|
if (s.value.trim()) try {
|
|
3041
3041
|
e.init_model = JSON.parse(s.value.trim());
|
|
3042
3042
|
} catch {
|
|
3043
|
-
|
|
3043
|
+
q.warning("初始参数不是合法 JSON,请修正后再保存");
|
|
3044
3044
|
return;
|
|
3045
3045
|
}
|
|
3046
3046
|
else delete e.init_model;
|
|
3047
|
-
if (
|
|
3047
|
+
if (Qe.includes(e.type)) {
|
|
3048
3048
|
delete e.valueKey, delete e.labelKey;
|
|
3049
|
-
let t = (Array.isArray(e.options) ? e.options : []).filter((e) =>
|
|
3049
|
+
let t = (Array.isArray(e.options) ? e.options : []).filter((e) => lt(e) || Array.isArray(e?.options) && e.options.length > 0);
|
|
3050
3050
|
if (t.length === 0) {
|
|
3051
|
-
|
|
3051
|
+
q.warning("下拉选框/单选框/多选框至少需要一个选项,请在「数据源」页的「选项列表」中添加");
|
|
3052
3052
|
return;
|
|
3053
3053
|
}
|
|
3054
3054
|
e.options = t;
|
|
@@ -3063,86 +3063,86 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3063
3063
|
].forEach((t) => {
|
|
3064
3064
|
Array.isArray(e[t]) && e[t].length === 0 && delete e[t];
|
|
3065
3065
|
}), e.defaultValueType === "" && delete e.defaultValueType, t.record.advanced_search_component = e, l.value = !1, n.value = !1;
|
|
3066
|
-
},
|
|
3066
|
+
}, y = () => {
|
|
3067
3067
|
n.value = !1;
|
|
3068
3068
|
};
|
|
3069
3069
|
return (e, t) => {
|
|
3070
|
-
let r =
|
|
3071
|
-
return
|
|
3070
|
+
let r = z("a-divider"), l = z("a-tab-pane"), f = z("a-alert"), m = z("a-button"), b = z("a-tabs"), S = z("a-form"), D = z("a-drawer");
|
|
3071
|
+
return I(), C(D, {
|
|
3072
3072
|
title: `高级搜索组件 —— ${e.record?.title || e.record?.data_index || ""}`,
|
|
3073
3073
|
placement: "right",
|
|
3074
|
-
width:
|
|
3074
|
+
width: $t,
|
|
3075
3075
|
"root-class-name": "csc-drawer",
|
|
3076
3076
|
open: n.value,
|
|
3077
3077
|
"destroy-on-close": "",
|
|
3078
|
-
onClose:
|
|
3078
|
+
onClose: y
|
|
3079
3079
|
}, {
|
|
3080
|
-
footer:
|
|
3081
|
-
default:
|
|
3080
|
+
footer: G(() => [E("div", Qt, [k(m, { onClick: y }, {
|
|
3081
|
+
default: G(() => t[7] ||= [O(" 取消 ")]),
|
|
3082
3082
|
_: 1
|
|
3083
|
-
}),
|
|
3083
|
+
}), k(m, {
|
|
3084
3084
|
type: "primary",
|
|
3085
|
-
onClick:
|
|
3085
|
+
onClick: v
|
|
3086
3086
|
}, {
|
|
3087
|
-
default:
|
|
3087
|
+
default: G(() => t[8] ||= [O(" 确定 ")]),
|
|
3088
3088
|
_: 1
|
|
3089
3089
|
})])]),
|
|
3090
|
-
default:
|
|
3090
|
+
default: G(() => [k(S, {
|
|
3091
3091
|
class: "csc-body",
|
|
3092
3092
|
"label-col": { style: { width: "190px" } }
|
|
3093
3093
|
}, {
|
|
3094
|
-
default:
|
|
3095
|
-
t[6] ||=
|
|
3096
|
-
|
|
3094
|
+
default: G(() => [
|
|
3095
|
+
t[6] ||= E("div", { class: "adv-tip" }, " 「属性配置」= 基础 + 高级属性(按组件类型联动);远程类组件在「数据源」页配置接口、显示字段、查询条件, 本地静态选项类(下拉选框/单选框/多选框/分组下拉)在「数据源」页配置「选项列表」; 「JSON配置」可直接编辑整体配置对象(与表单双向同步,保存前校验合法性)。 运算符不在此配置——后端按组件类型自动补默认集。 ", -1),
|
|
3096
|
+
k(b, {
|
|
3097
3097
|
activeKey: a.value,
|
|
3098
3098
|
"onUpdate:activeKey": t[2] ||= (e) => a.value = e,
|
|
3099
3099
|
class: "csc-tabs",
|
|
3100
3100
|
type: "card",
|
|
3101
3101
|
size: "small"
|
|
3102
3102
|
}, {
|
|
3103
|
-
default:
|
|
3104
|
-
|
|
3103
|
+
default: G(() => [
|
|
3104
|
+
k(l, {
|
|
3105
3105
|
key: "props",
|
|
3106
3106
|
tab: "属性配置"
|
|
3107
3107
|
}, {
|
|
3108
|
-
default:
|
|
3108
|
+
default: G(() => [k(dt, {
|
|
3109
3109
|
config: o.value,
|
|
3110
3110
|
record: e.record,
|
|
3111
|
-
onTypeChange:
|
|
3112
|
-
}, null, 8, ["config", "record"]), o.value.type ? (
|
|
3111
|
+
onTypeChange: h
|
|
3112
|
+
}, null, 8, ["config", "record"]), o.value.type ? (I(), T(x, { key: 0 }, [k(r, {
|
|
3113
3113
|
class: "props-divider",
|
|
3114
3114
|
orientation: "left",
|
|
3115
3115
|
plain: ""
|
|
3116
3116
|
}, {
|
|
3117
|
-
default:
|
|
3117
|
+
default: G(() => t[3] ||= [O(" 高级属性 ")]),
|
|
3118
3118
|
_: 1
|
|
3119
|
-
}), o.value.type === "input" ? (
|
|
3119
|
+
}), o.value.type === "input" ? (I(), C(Ut, {
|
|
3120
3120
|
key: 0,
|
|
3121
3121
|
config: o.value
|
|
3122
|
-
}, null, 8, ["config"])) :
|
|
3122
|
+
}, null, 8, ["config"])) : V(it).includes(o.value.type) ? (I(), C(Vt, {
|
|
3123
3123
|
key: 1,
|
|
3124
3124
|
config: o.value
|
|
3125
|
-
}, null, 8, ["config"])) :
|
|
3125
|
+
}, null, 8, ["config"])) : V($e).includes(o.value.type) ? (I(), C(Rt, {
|
|
3126
3126
|
key: 2,
|
|
3127
3127
|
config: o.value
|
|
3128
|
-
}, null, 8, ["config"])) : ["treeselect", "cascader"].includes(o.value.type) ? (
|
|
3128
|
+
}, null, 8, ["config"])) : ["treeselect", "cascader"].includes(o.value.type) ? (I(), C(Kt, {
|
|
3129
3129
|
key: 3,
|
|
3130
3130
|
config: o.value
|
|
3131
|
-
}, null, 8, ["config"])) :
|
|
3131
|
+
}, null, 8, ["config"])) : V(at).includes(o.value.type) ? (I(), C(Lt, {
|
|
3132
3132
|
key: 4,
|
|
3133
3133
|
config: o.value
|
|
3134
|
-
}, null, 8, ["config"])) :
|
|
3134
|
+
}, null, 8, ["config"])) : V(st).includes(o.value.type) ? (I(), C(Ht, {
|
|
3135
3135
|
key: 5,
|
|
3136
3136
|
config: o.value
|
|
3137
|
-
}, null, 8, ["config"])) :
|
|
3137
|
+
}, null, 8, ["config"])) : w("", !0)], 64)) : w("", !0)]),
|
|
3138
3138
|
_: 1
|
|
3139
3139
|
}),
|
|
3140
|
-
|
|
3140
|
+
k(l, {
|
|
3141
3141
|
key: "ds",
|
|
3142
3142
|
tab: "数据源",
|
|
3143
3143
|
disabled: !i.value
|
|
3144
3144
|
}, {
|
|
3145
|
-
default:
|
|
3145
|
+
default: G(() => [i.value ? (I(), C(Ft, {
|
|
3146
3146
|
key: 0,
|
|
3147
3147
|
"init-model-text": s.value,
|
|
3148
3148
|
"onUpdate:initModelText": t[0] ||= (e) => s.value = e,
|
|
@@ -3152,28 +3152,28 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3152
3152
|
"init-model-text",
|
|
3153
3153
|
"config",
|
|
3154
3154
|
"record"
|
|
3155
|
-
])) :
|
|
3155
|
+
])) : w("", !0)]),
|
|
3156
3156
|
_: 1
|
|
3157
3157
|
}, 8, ["disabled"]),
|
|
3158
|
-
|
|
3158
|
+
k(l, {
|
|
3159
3159
|
key: "json",
|
|
3160
3160
|
tab: "JSON配置",
|
|
3161
3161
|
disabled: !o.value.type
|
|
3162
3162
|
}, {
|
|
3163
|
-
default:
|
|
3163
|
+
default: G(() => [E("div", qt, [E("div", Jt, [u.value ? (I(), C(f, {
|
|
3164
3164
|
key: 0,
|
|
3165
3165
|
type: "error",
|
|
3166
3166
|
"show-icon": "",
|
|
3167
3167
|
message: u.value,
|
|
3168
3168
|
banner: ""
|
|
3169
|
-
}, null, 8, ["message"])) : (
|
|
3169
|
+
}, null, 8, ["message"])) : (I(), T("span", Yt, "整体配置对象,与「属性配置」表单实时双向同步;保存时以此为最终值。")), k(m, {
|
|
3170
3170
|
size: "small",
|
|
3171
3171
|
disabled: !!u.value,
|
|
3172
3172
|
onClick: p
|
|
3173
3173
|
}, {
|
|
3174
|
-
default:
|
|
3174
|
+
default: G(() => t[4] ||= [O(" 格式化 ")]),
|
|
3175
3175
|
_: 1
|
|
3176
|
-
}, 8, ["disabled"])]),
|
|
3176
|
+
}, 8, ["disabled"])]), E("div", Xt, [k(_, {
|
|
3177
3177
|
ref_key: "jsonEditorRef",
|
|
3178
3178
|
ref: d,
|
|
3179
3179
|
editorValue: c.value,
|
|
@@ -3190,14 +3190,14 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3190
3190
|
]),
|
|
3191
3191
|
_: 1
|
|
3192
3192
|
}, 8, ["activeKey"]),
|
|
3193
|
-
o.value.type ? (
|
|
3193
|
+
o.value.type ? (I(), T("div", Zt, [k(m, {
|
|
3194
3194
|
size: "small",
|
|
3195
3195
|
danger: "",
|
|
3196
|
-
onClick:
|
|
3196
|
+
onClick: g
|
|
3197
3197
|
}, {
|
|
3198
|
-
default:
|
|
3198
|
+
default: G(() => t[5] ||= [O(" 清除配置(恢复按类型自动推导) ")]),
|
|
3199
3199
|
_: 1
|
|
3200
|
-
})])) :
|
|
3200
|
+
})])) : w("", !0)
|
|
3201
3201
|
]),
|
|
3202
3202
|
_: 1
|
|
3203
3203
|
})]),
|
|
@@ -3205,13 +3205,13 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3205
3205
|
}, 8, ["title", "open"]);
|
|
3206
3206
|
};
|
|
3207
3207
|
}
|
|
3208
|
-
}), [["__scopeId", "data-v-4e0bcd30"]]),
|
|
3208
|
+
}), [["__scopeId", "data-v-4e0bcd30"]]), tn = { class: "col-toolbar" }, nn = { key: 1 }, rn = {
|
|
3209
3209
|
key: 11,
|
|
3210
3210
|
class: "col-width-cell"
|
|
3211
|
-
},
|
|
3211
|
+
}, an = { key: 1 }, on = {
|
|
3212
3212
|
key: 16,
|
|
3213
3213
|
class: "default-sort-cell"
|
|
3214
|
-
},
|
|
3214
|
+
}, sn = /*#__PURE__*/ i(/* @__PURE__ */ A({
|
|
3215
3215
|
__name: "StepColumnConfig",
|
|
3216
3216
|
props: {
|
|
3217
3217
|
active: { type: Boolean },
|
|
@@ -3221,29 +3221,29 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3221
3221
|
},
|
|
3222
3222
|
emits: ["probeStart"],
|
|
3223
3223
|
setup(n, { expose: i, emit: a }) {
|
|
3224
|
-
let s = n, c = a, l =
|
|
3224
|
+
let s = n, c = a, l = S(() => s.model), u = r().currentOrg, d = (e, t) => e.filter((e) => e?.[t]).map((e) => ({
|
|
3225
3225
|
value: e[t],
|
|
3226
3226
|
label: `${e.name || e[t]}(${e[t]})`
|
|
3227
|
-
})), f =
|
|
3228
|
-
let e =
|
|
3229
|
-
e > 0 && (
|
|
3227
|
+
})), f = S(() => d(t(), "cellComponent")), p = S(() => d(e(), "cellSummaryComponent")), m = L([]), h = L(!1), g = L([]), _ = L(null), v = L(320), D = () => {
|
|
3228
|
+
let e = _.value?.clientHeight || 0;
|
|
3229
|
+
e > 0 && (v.value = e);
|
|
3230
3230
|
};
|
|
3231
|
-
|
|
3231
|
+
Y(_, (e) => {
|
|
3232
3232
|
let t = e[0]?.contentRect?.height || 0;
|
|
3233
|
-
t > 0 && (
|
|
3233
|
+
t > 0 && (v.value = t);
|
|
3234
3234
|
});
|
|
3235
|
-
let
|
|
3236
|
-
|
|
3237
|
-
e && (
|
|
3235
|
+
let A = L(!1);
|
|
3236
|
+
W(() => s.active, (e) => {
|
|
3237
|
+
e && (A.value = !0, M(D), m.value.length || R());
|
|
3238
3238
|
});
|
|
3239
|
-
let
|
|
3240
|
-
if (
|
|
3239
|
+
let j = L(!1), N = (e) => {
|
|
3240
|
+
if (j.value || s.formType === "edit" || e.some((e) => !!e.is_primary_key)) return;
|
|
3241
3241
|
let t = e.find((e) => String(e.data_index || "").trim().toLowerCase() === "id");
|
|
3242
|
-
t && (t.is_primary_key = !0,
|
|
3243
|
-
},
|
|
3244
|
-
|
|
3245
|
-
},
|
|
3246
|
-
let r =
|
|
3242
|
+
t && (t.is_primary_key = !0, j.value = !0);
|
|
3243
|
+
}, P = (e, t) => {
|
|
3244
|
+
j.value = !0, e.is_primary_key = !!t?.target?.checked;
|
|
3245
|
+
}, ee = (e, t, n) => {
|
|
3246
|
+
let r = ue[t] || "str", i = ["int", "float"].includes(r) && e !== "id";
|
|
3247
3247
|
return {
|
|
3248
3248
|
data_index: e,
|
|
3249
3249
|
title: e,
|
|
@@ -3264,28 +3264,28 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3264
3264
|
default_sort_order: null,
|
|
3265
3265
|
class_name: r,
|
|
3266
3266
|
sql_type: t || "",
|
|
3267
|
-
cell_component: i ?
|
|
3268
|
-
cell_component_params: i ? { pattern:
|
|
3267
|
+
cell_component: i ? fe : de[t] || "",
|
|
3268
|
+
cell_component_params: i ? { pattern: y } : null,
|
|
3269
3269
|
cell_summary_component: "",
|
|
3270
3270
|
cell_summary_component_params: null,
|
|
3271
3271
|
is_base_query: !0,
|
|
3272
3272
|
is_default_query: !0,
|
|
3273
3273
|
is_group_query: !1
|
|
3274
3274
|
};
|
|
3275
|
-
},
|
|
3275
|
+
}, te = L(!1), R = async () => {
|
|
3276
3276
|
if (!l.value.data_source_id || !l.value.sql) {
|
|
3277
|
-
|
|
3277
|
+
q.warning("请先在「基础配置」步骤选择数据源并填写 SQL");
|
|
3278
3278
|
return;
|
|
3279
3279
|
}
|
|
3280
|
-
|
|
3280
|
+
te.value = !0, c("probeStart");
|
|
3281
3281
|
try {
|
|
3282
|
-
let e =
|
|
3282
|
+
let e = X(await o({
|
|
3283
3283
|
org_id: u?.id,
|
|
3284
3284
|
data_source_id: l.value.data_source_id,
|
|
3285
3285
|
sql: l.value.sql
|
|
3286
3286
|
}, `${s.record.model_app}/probe_columns`))?.columns || [];
|
|
3287
3287
|
if (!e.length) {
|
|
3288
|
-
|
|
3288
|
+
q.warning("探测到 0 列,请检查 SQL 输出");
|
|
3289
3289
|
return;
|
|
3290
3290
|
}
|
|
3291
3291
|
let t = new Map(m.value.map((e) => [e.data_index, e])), n = [], r = /* @__PURE__ */ new Set();
|
|
@@ -3293,20 +3293,20 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3293
3293
|
if (r.has(e.name)) return;
|
|
3294
3294
|
r.add(e.name);
|
|
3295
3295
|
let a = t.get(e.name);
|
|
3296
|
-
a ? (a.class_name =
|
|
3296
|
+
a ? (a.class_name = ue[e.type] || a.class_name || "str", a.sql_type = e.type || a.sql_type || "", ["int", "float"].includes(a.class_name) && !a.cell_component && String(a.data_index || "").trim().toLowerCase() !== "id" && (a.cell_component = fe, a.cell_component_params = a.cell_component_params || { pattern: "#,##0.00" }), n.push(a)) : n.push(ee(e.name, e.type || "", i + 1));
|
|
3297
3297
|
}), m.value.forEach((e) => {
|
|
3298
3298
|
r.has(e.data_index) || n.push(e);
|
|
3299
|
-
}),
|
|
3299
|
+
}), N(n), m.value = n;
|
|
3300
3300
|
} finally {
|
|
3301
|
-
|
|
3301
|
+
te.value = !1;
|
|
3302
3302
|
}
|
|
3303
|
-
},
|
|
3303
|
+
}, H = (e) => {
|
|
3304
3304
|
e.is_default_sort && (e.default_sort_type = e.default_sort_type || "asc", e.default_sort_order = e.default_sort_order || 1);
|
|
3305
|
-
},
|
|
3305
|
+
}, U = async () => {
|
|
3306
3306
|
if (!(s.formType !== "edit" || s.record?.id == null)) {
|
|
3307
3307
|
h.value = !0;
|
|
3308
3308
|
try {
|
|
3309
|
-
m.value =
|
|
3309
|
+
m.value = re(await o({
|
|
3310
3310
|
org_id: u?.id,
|
|
3311
3311
|
filter_fields: ["view_id"],
|
|
3312
3312
|
view_id: s.record.id,
|
|
@@ -3316,21 +3316,21 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3316
3316
|
fixed: e.fixed || "",
|
|
3317
3317
|
auto_height: !!e.auto_height,
|
|
3318
3318
|
auto_width: !!e.auto_width
|
|
3319
|
-
})),
|
|
3319
|
+
})), g.value = [];
|
|
3320
3320
|
} catch {
|
|
3321
3321
|
m.value = [];
|
|
3322
3322
|
} finally {
|
|
3323
3323
|
h.value = !1;
|
|
3324
3324
|
}
|
|
3325
3325
|
}
|
|
3326
|
-
},
|
|
3327
|
-
m.value = m.value.filter((t) => t.data_index !== e.data_index),
|
|
3328
|
-
},
|
|
3329
|
-
|
|
3330
|
-
},
|
|
3331
|
-
|
|
3332
|
-
},
|
|
3333
|
-
he.value = e, ge.value = t,
|
|
3326
|
+
}, K = (e) => {
|
|
3327
|
+
m.value = m.value.filter((t) => t.data_index !== e.data_index), g.value.push(e.data_index);
|
|
3328
|
+
}, ne = L(!1), J = L(null), ie = (e) => {
|
|
3329
|
+
J.value = e, ne.value = !0;
|
|
3330
|
+
}, ae = (e) => (/* @__PURE__ */ new Set([...Object.keys(e?.content_map || {}), ...Object.keys(e?.color_map || {})])).size, oe = L(!1), se = L(null), ce = (e) => {
|
|
3331
|
+
se.value = e, oe.value = !0;
|
|
3332
|
+
}, le = L(!1), he = L(null), ge = L("cell_component_params"), _e = (e, t) => {
|
|
3333
|
+
he.value = e, ge.value = t, le.value = !0;
|
|
3334
3334
|
}, ve = (e) => Object.keys(e || {}).length, ye = (e, t, n) => {
|
|
3335
3335
|
if (!n) {
|
|
3336
3336
|
e[t] = null;
|
|
@@ -3340,7 +3340,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3340
3340
|
...e[t] || {},
|
|
3341
3341
|
pattern: n
|
|
3342
3342
|
};
|
|
3343
|
-
},
|
|
3343
|
+
}, be = L(!1);
|
|
3344
3344
|
return i({
|
|
3345
3345
|
buildColumnsPayload: () => m.value.map((e) => ({
|
|
3346
3346
|
data_index: e.data_index,
|
|
@@ -3372,82 +3372,82 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3372
3372
|
sql_type: e.sql_type || "",
|
|
3373
3373
|
is_primary_key: !!e.is_primary_key
|
|
3374
3374
|
})),
|
|
3375
|
-
getDeletedIndexes: () => [...
|
|
3375
|
+
getDeletedIndexes: () => [...g.value],
|
|
3376
3376
|
resetDeletedIndexes: () => {
|
|
3377
|
-
|
|
3377
|
+
g.value = [];
|
|
3378
3378
|
}
|
|
3379
|
-
}),
|
|
3380
|
-
s.formType === "edit" &&
|
|
3379
|
+
}), F(() => {
|
|
3380
|
+
s.formType === "edit" && U();
|
|
3381
3381
|
}), (e, t) => {
|
|
3382
|
-
let n =
|
|
3383
|
-
return
|
|
3384
|
-
|
|
3385
|
-
|
|
3382
|
+
let n = z("a-button"), r = z("a-input-number"), i = z("a-checkbox"), a = z("a-input"), o = z("a-select"), s = z("a-auto-complete"), c = z("a-radio-button"), u = z("a-radio-group"), d = z("a-switch"), g = z("a-popconfirm"), y = z("s-table");
|
|
3383
|
+
return I(), T(x, null, [
|
|
3384
|
+
E("div", tn, [
|
|
3385
|
+
k(n, {
|
|
3386
3386
|
size: "small",
|
|
3387
3387
|
disabled: !l.value.data_source_id || !l.value.sql,
|
|
3388
|
-
loading:
|
|
3389
|
-
onClick:
|
|
3388
|
+
loading: te.value,
|
|
3389
|
+
onClick: R
|
|
3390
3390
|
}, {
|
|
3391
|
-
default:
|
|
3391
|
+
default: G(() => t[5] ||= [O(" 列探测刷新 ")]),
|
|
3392
3392
|
_: 1
|
|
3393
3393
|
}, 8, ["disabled", "loading"]),
|
|
3394
|
-
|
|
3394
|
+
k(n, {
|
|
3395
3395
|
size: "small",
|
|
3396
3396
|
disabled: !m.value.length,
|
|
3397
|
-
onClick: t[0] ||= (e) =>
|
|
3397
|
+
onClick: t[0] ||= (e) => be.value = !0
|
|
3398
3398
|
}, {
|
|
3399
|
-
default:
|
|
3399
|
+
default: G(() => t[6] ||= [O(" 批量配置 ")]),
|
|
3400
3400
|
_: 1
|
|
3401
3401
|
}, 8, ["disabled"]),
|
|
3402
|
-
t[7] ||=
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3402
|
+
t[7] ||= E("span", { class: "meta-tip" }, [
|
|
3403
|
+
O(" 基于基础配置的 SQL + 数据源实时探测列(不落库);已有列的人工配置合并保留,SQL 新增列自动补默认行。视图与列配置在点「确定」时同时保存。主键 "),
|
|
3404
|
+
E("strong", null, "可多选"),
|
|
3405
|
+
O(" : 勾 1 列时表格行键就是该列,勾 0 列或多列时改用列表接口自动生成的稳定行键 (多列时由各主键值拼接而成),新建时探测到 "),
|
|
3406
|
+
E("code", null, "id"),
|
|
3407
|
+
O(" 列会自动选中(可改)。 ")
|
|
3408
3408
|
], -1)
|
|
3409
3409
|
]),
|
|
3410
|
-
|
|
3410
|
+
A.value ? (I(), T("div", {
|
|
3411
3411
|
key: 0,
|
|
3412
3412
|
ref_key: "colTableWrapRef",
|
|
3413
|
-
ref:
|
|
3413
|
+
ref: _,
|
|
3414
3414
|
class: "col-table-wrapper"
|
|
3415
|
-
}, [
|
|
3416
|
-
columns:
|
|
3415
|
+
}, [k(y, {
|
|
3416
|
+
columns: V(pe),
|
|
3417
3417
|
"data-source": m.value,
|
|
3418
3418
|
"row-key": "data_index",
|
|
3419
3419
|
size: "small",
|
|
3420
|
-
rowHeight:
|
|
3421
|
-
height:
|
|
3422
|
-
scroll: { x:
|
|
3420
|
+
rowHeight: V(36),
|
|
3421
|
+
height: v.value,
|
|
3422
|
+
scroll: { x: V(me) },
|
|
3423
3423
|
pagination: !1,
|
|
3424
3424
|
"range-selection": !1,
|
|
3425
3425
|
loading: h.value
|
|
3426
3426
|
}, {
|
|
3427
|
-
bodyCell:
|
|
3427
|
+
bodyCell: G(({ column: e, recordIndexs: l }) => [e.key === "column_order" ? (I(), C(r, {
|
|
3428
3428
|
key: 0,
|
|
3429
3429
|
value: m.value[l[0]].column_order,
|
|
3430
3430
|
"onUpdate:value": (e) => m.value[l[0]].column_order = e,
|
|
3431
3431
|
size: "small",
|
|
3432
3432
|
style: { width: "50px" },
|
|
3433
3433
|
min: 0
|
|
3434
|
-
}, null, 8, ["value", "onUpdate:value"])) : e.key === "is_primary_key" ? (
|
|
3434
|
+
}, null, 8, ["value", "onUpdate:value"])) : e.key === "is_primary_key" ? (I(), C(i, {
|
|
3435
3435
|
key: 1,
|
|
3436
3436
|
checked: !!m.value[l[0]].is_primary_key,
|
|
3437
|
-
onChange: (e) =>
|
|
3438
|
-
}, null, 8, ["checked", "onChange"])) : e.key === "title" ? (
|
|
3437
|
+
onChange: (e) => P(m.value[l[0]], e)
|
|
3438
|
+
}, null, 8, ["checked", "onChange"])) : e.key === "title" ? (I(), C(a, {
|
|
3439
3439
|
key: 2,
|
|
3440
3440
|
value: m.value[l[0]].title,
|
|
3441
3441
|
"onUpdate:value": (e) => m.value[l[0]].title = e,
|
|
3442
3442
|
size: "small",
|
|
3443
3443
|
"allow-clear": ""
|
|
3444
|
-
}, null, 8, ["value", "onUpdate:value"])) : e.key === "query_title" ? (
|
|
3444
|
+
}, null, 8, ["value", "onUpdate:value"])) : e.key === "query_title" ? (I(), C(a, {
|
|
3445
3445
|
key: 3,
|
|
3446
3446
|
value: m.value[l[0]].query_title,
|
|
3447
3447
|
"onUpdate:value": (e) => m.value[l[0]].query_title = e,
|
|
3448
3448
|
size: "small",
|
|
3449
3449
|
"allow-clear": ""
|
|
3450
|
-
}, null, 8, ["value", "onUpdate:value"])) : e.key === "cell_component" ? (
|
|
3450
|
+
}, null, 8, ["value", "onUpdate:value"])) : e.key === "cell_component" ? (I(), C(o, {
|
|
3451
3451
|
key: 4,
|
|
3452
3452
|
value: m.value[l[0]].cell_component,
|
|
3453
3453
|
"onUpdate:value": (e) => m.value[l[0]].cell_component = e,
|
|
@@ -3462,7 +3462,7 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3462
3462
|
"value",
|
|
3463
3463
|
"onUpdate:value",
|
|
3464
3464
|
"options"
|
|
3465
|
-
])) : e.key === "cell_summary_component" ? (
|
|
3465
|
+
])) : e.key === "cell_summary_component" ? (I(), T(x, { key: 5 }, [m.value[l[0]].summary ? (I(), C(o, {
|
|
3466
3466
|
key: 0,
|
|
3467
3467
|
value: m.value[l[0]].cell_summary_component,
|
|
3468
3468
|
"onUpdate:value": (e) => m.value[l[0]].cell_summary_component = e,
|
|
@@ -3477,12 +3477,12 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3477
3477
|
"value",
|
|
3478
3478
|
"onUpdate:value",
|
|
3479
3479
|
"options"
|
|
3480
|
-
])) : (
|
|
3480
|
+
])) : (I(), T("span", nn, "-"))], 64)) : e.key === "cell_params" ? (I(), T(x, { key: 6 }, [m.value[l[0]].cell_component === V("common_number") ? (I(), C(s, {
|
|
3481
3481
|
key: 0,
|
|
3482
3482
|
value: m.value[l[0]].cell_component_params?.pattern || "",
|
|
3483
3483
|
size: "small",
|
|
3484
3484
|
style: { width: "100%" },
|
|
3485
|
-
options:
|
|
3485
|
+
options: V(b),
|
|
3486
3486
|
placeholder: "#,##0.00",
|
|
3487
3487
|
"filter-option": (e, t) => String(t.value).includes(e),
|
|
3488
3488
|
onChange: (e) => ye(m.value[l[0]], "cell_component_params", e)
|
|
@@ -3491,73 +3491,73 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3491
3491
|
"options",
|
|
3492
3492
|
"filter-option",
|
|
3493
3493
|
"onChange"
|
|
3494
|
-
])) : (
|
|
3494
|
+
])) : (I(), C(n, {
|
|
3495
3495
|
key: 1,
|
|
3496
3496
|
size: "small",
|
|
3497
3497
|
style: { padding: "0 4px" },
|
|
3498
3498
|
onClick: (e) => _e(m.value[l[0]], "cell_component_params")
|
|
3499
3499
|
}, {
|
|
3500
|
-
default:
|
|
3500
|
+
default: G(() => [O(B(ve(m.value[l[0]].cell_component_params) ? "已配" : "配置"), 1)]),
|
|
3501
3501
|
_: 2
|
|
3502
|
-
}, 1032, ["onClick"]))], 64)) : e.key === "checked" ? (
|
|
3502
|
+
}, 1032, ["onClick"]))], 64)) : e.key === "checked" ? (I(), C(i, {
|
|
3503
3503
|
key: 7,
|
|
3504
3504
|
checked: m.value[l[0]].checked,
|
|
3505
3505
|
"onUpdate:checked": (e) => m.value[l[0]].checked = e
|
|
3506
|
-
}, null, 8, ["checked", "onUpdate:checked"])) : e.key === "resizable" ? (
|
|
3506
|
+
}, null, 8, ["checked", "onUpdate:checked"])) : e.key === "resizable" ? (I(), C(i, {
|
|
3507
3507
|
key: 8,
|
|
3508
3508
|
checked: m.value[l[0]].resizable,
|
|
3509
3509
|
"onUpdate:checked": (e) => m.value[l[0]].resizable = e
|
|
3510
|
-
}, null, 8, ["checked", "onUpdate:checked"])) : e.key === "fixed" ? (
|
|
3510
|
+
}, null, 8, ["checked", "onUpdate:checked"])) : e.key === "fixed" ? (I(), C(u, {
|
|
3511
3511
|
key: 9,
|
|
3512
3512
|
value: m.value[l[0]].fixed,
|
|
3513
3513
|
"onUpdate:value": (e) => m.value[l[0]].fixed = e,
|
|
3514
3514
|
size: "small"
|
|
3515
3515
|
}, {
|
|
3516
|
-
default:
|
|
3517
|
-
|
|
3518
|
-
default:
|
|
3516
|
+
default: G(() => [
|
|
3517
|
+
k(c, { value: "left" }, {
|
|
3518
|
+
default: G(() => t[8] ||= [O("左")]),
|
|
3519
3519
|
_: 1
|
|
3520
3520
|
}),
|
|
3521
|
-
|
|
3522
|
-
default:
|
|
3521
|
+
k(c, { value: "" }, {
|
|
3522
|
+
default: G(() => t[9] ||= [O("不固定")]),
|
|
3523
3523
|
_: 1
|
|
3524
3524
|
}),
|
|
3525
|
-
|
|
3526
|
-
default:
|
|
3525
|
+
k(c, { value: "right" }, {
|
|
3526
|
+
default: G(() => t[10] ||= [O("右")]),
|
|
3527
3527
|
_: 1
|
|
3528
3528
|
})
|
|
3529
3529
|
]),
|
|
3530
3530
|
_: 2
|
|
3531
|
-
}, 1032, ["value", "onUpdate:value"])) : e.key === "auto_height" ? (
|
|
3531
|
+
}, 1032, ["value", "onUpdate:value"])) : e.key === "auto_height" ? (I(), C(d, {
|
|
3532
3532
|
key: 10,
|
|
3533
3533
|
checked: m.value[l[0]].auto_height,
|
|
3534
3534
|
"onUpdate:checked": (e) => m.value[l[0]].auto_height = e,
|
|
3535
3535
|
"checked-children": "自动",
|
|
3536
3536
|
"un-checked-children": "固定"
|
|
3537
|
-
}, null, 8, ["checked", "onUpdate:checked"])) : e.key === "col_width" ? (
|
|
3537
|
+
}, null, 8, ["checked", "onUpdate:checked"])) : e.key === "col_width" ? (I(), T("div", rn, [k(d, {
|
|
3538
3538
|
checked: m.value[l[0]].auto_width,
|
|
3539
3539
|
"onUpdate:checked": (e) => m.value[l[0]].auto_width = e,
|
|
3540
3540
|
"checked-children": "自动",
|
|
3541
3541
|
"un-checked-children": "固定"
|
|
3542
|
-
}, null, 8, ["checked", "onUpdate:checked"]),
|
|
3542
|
+
}, null, 8, ["checked", "onUpdate:checked"]), k(r, {
|
|
3543
3543
|
value: m.value[l[0]].width,
|
|
3544
3544
|
"onUpdate:value": (e) => m.value[l[0]].width = e,
|
|
3545
3545
|
size: "small",
|
|
3546
3546
|
style: { width: "66px" },
|
|
3547
3547
|
min: 50,
|
|
3548
3548
|
placeholder: "px"
|
|
3549
|
-
}, null, 8, ["value", "onUpdate:value"])])) : e.key === "ellipsis" ? (
|
|
3549
|
+
}, null, 8, ["value", "onUpdate:value"])])) : e.key === "ellipsis" ? (I(), C(d, {
|
|
3550
3550
|
key: 12,
|
|
3551
3551
|
checked: m.value[l[0]].ellipsis,
|
|
3552
3552
|
"onUpdate:checked": (e) => m.value[l[0]].ellipsis = e,
|
|
3553
3553
|
"checked-children": "开启",
|
|
3554
3554
|
"un-checked-children": "关闭"
|
|
3555
|
-
}, null, 8, ["checked", "onUpdate:checked"])) : e.key === "cell_summary_params" ? (
|
|
3555
|
+
}, null, 8, ["checked", "onUpdate:checked"])) : e.key === "cell_summary_params" ? (I(), T(x, { key: 13 }, [m.value[l[0]].summary ? (I(), T(x, { key: 0 }, [m.value[l[0]].cell_summary_component === V("common_number") ? (I(), C(s, {
|
|
3556
3556
|
key: 0,
|
|
3557
3557
|
value: m.value[l[0]].cell_summary_component_params?.pattern || "",
|
|
3558
3558
|
size: "small",
|
|
3559
3559
|
style: { width: "100%" },
|
|
3560
|
-
options:
|
|
3560
|
+
options: V(b),
|
|
3561
3561
|
placeholder: "#,##0.00",
|
|
3562
3562
|
"filter-option": (e, t) => String(t.value).includes(e),
|
|
3563
3563
|
onChange: (e) => ye(m.value[l[0]], "cell_summary_component_params", e)
|
|
@@ -3566,31 +3566,31 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3566
3566
|
"options",
|
|
3567
3567
|
"filter-option",
|
|
3568
3568
|
"onChange"
|
|
3569
|
-
])) : (
|
|
3569
|
+
])) : (I(), C(n, {
|
|
3570
3570
|
key: 1,
|
|
3571
3571
|
size: "small",
|
|
3572
3572
|
style: { padding: "0 4px" },
|
|
3573
3573
|
onClick: (e) => _e(m.value[l[0]], "cell_summary_component_params")
|
|
3574
3574
|
}, {
|
|
3575
|
-
default:
|
|
3575
|
+
default: G(() => [O(B(ve(m.value[l[0]].cell_summary_component_params) ? "已配" : "配置"), 1)]),
|
|
3576
3576
|
_: 2
|
|
3577
|
-
}, 1032, ["onClick"]))], 64)) : (
|
|
3577
|
+
}, 1032, ["onClick"]))], 64)) : (I(), T("span", an, "-"))], 64)) : e.key === "summary" ? (I(), C(i, {
|
|
3578
3578
|
key: 14,
|
|
3579
3579
|
checked: m.value[l[0]].summary,
|
|
3580
3580
|
"onUpdate:checked": (e) => m.value[l[0]].summary = e
|
|
3581
|
-
}, null, 8, ["checked", "onUpdate:checked"])) : e.key === "is_sortable" ? (
|
|
3581
|
+
}, null, 8, ["checked", "onUpdate:checked"])) : e.key === "is_sortable" ? (I(), C(i, {
|
|
3582
3582
|
key: 15,
|
|
3583
3583
|
checked: m.value[l[0]].is_sortable,
|
|
3584
3584
|
"onUpdate:checked": (e) => m.value[l[0]].is_sortable = e
|
|
3585
|
-
}, null, 8, ["checked", "onUpdate:checked"])) : e.key === "default_sort" ? (
|
|
3585
|
+
}, null, 8, ["checked", "onUpdate:checked"])) : e.key === "default_sort" ? (I(), T("div", on, [k(i, {
|
|
3586
3586
|
checked: m.value[l[0]].is_default_sort,
|
|
3587
3587
|
"onUpdate:checked": (e) => m.value[l[0]].is_default_sort = e,
|
|
3588
|
-
onChange: (e) =>
|
|
3588
|
+
onChange: (e) => H(m.value[l[0]])
|
|
3589
3589
|
}, null, 8, [
|
|
3590
3590
|
"checked",
|
|
3591
3591
|
"onUpdate:checked",
|
|
3592
3592
|
"onChange"
|
|
3593
|
-
]), m.value[l[0]].is_default_sort ? (
|
|
3593
|
+
]), m.value[l[0]].is_default_sort ? (I(), T(x, { key: 0 }, [k(o, {
|
|
3594
3594
|
value: m.value[l[0]].default_sort_type,
|
|
3595
3595
|
"onUpdate:value": (e) => m.value[l[0]].default_sort_type = e,
|
|
3596
3596
|
size: "small",
|
|
@@ -3602,57 +3602,57 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3602
3602
|
value: "desc",
|
|
3603
3603
|
label: "降序"
|
|
3604
3604
|
}]
|
|
3605
|
-
}, null, 8, ["value", "onUpdate:value"]),
|
|
3605
|
+
}, null, 8, ["value", "onUpdate:value"]), k(r, {
|
|
3606
3606
|
value: m.value[l[0]].default_sort_order,
|
|
3607
3607
|
"onUpdate:value": (e) => m.value[l[0]].default_sort_order = e,
|
|
3608
3608
|
size: "small",
|
|
3609
3609
|
style: { width: "60px" },
|
|
3610
3610
|
min: 1,
|
|
3611
3611
|
placeholder: "顺序"
|
|
3612
|
-
}, null, 8, ["value", "onUpdate:value"])], 64)) :
|
|
3612
|
+
}, null, 8, ["value", "onUpdate:value"])], 64)) : w("", !0)])) : e.key === "map_color" ? (I(), C(n, {
|
|
3613
3613
|
key: 17,
|
|
3614
3614
|
size: "small",
|
|
3615
3615
|
style: { padding: "0 4px" },
|
|
3616
|
-
onClick: (e) =>
|
|
3616
|
+
onClick: (e) => ie(m.value[l[0]])
|
|
3617
3617
|
}, {
|
|
3618
|
-
default:
|
|
3618
|
+
default: G(() => [O(B(ae(m.value[l[0]]) ? `已配 ${ae(m.value[l[0]])} 项` : "配置"), 1)]),
|
|
3619
3619
|
_: 2
|
|
3620
|
-
}, 1032, ["onClick"])) : e.key === "adv_search" ? (
|
|
3620
|
+
}, 1032, ["onClick"])) : e.key === "adv_search" ? (I(), C(n, {
|
|
3621
3621
|
key: 18,
|
|
3622
3622
|
size: "small",
|
|
3623
3623
|
style: { padding: "0 4px" },
|
|
3624
|
-
onClick: (e) =>
|
|
3624
|
+
onClick: (e) => ce(m.value[l[0]])
|
|
3625
3625
|
}, {
|
|
3626
|
-
default:
|
|
3626
|
+
default: G(() => [O(B(m.value[l[0]].advanced_search_component?.type || "配置"), 1)]),
|
|
3627
3627
|
_: 2
|
|
3628
|
-
}, 1032, ["onClick"])) : e.key === "is_base_query" ? (
|
|
3628
|
+
}, 1032, ["onClick"])) : e.key === "is_base_query" ? (I(), C(i, {
|
|
3629
3629
|
key: 19,
|
|
3630
3630
|
checked: m.value[l[0]].is_base_query,
|
|
3631
3631
|
"onUpdate:checked": (e) => m.value[l[0]].is_base_query = e
|
|
3632
|
-
}, null, 8, ["checked", "onUpdate:checked"])) : e.key === "is_default_query" ? (
|
|
3632
|
+
}, null, 8, ["checked", "onUpdate:checked"])) : e.key === "is_default_query" ? (I(), C(i, {
|
|
3633
3633
|
key: 20,
|
|
3634
3634
|
checked: m.value[l[0]].is_default_query,
|
|
3635
3635
|
"onUpdate:checked": (e) => m.value[l[0]].is_default_query = e
|
|
3636
|
-
}, null, 8, ["checked", "onUpdate:checked"])) : e.key === "is_group_query" ? (
|
|
3636
|
+
}, null, 8, ["checked", "onUpdate:checked"])) : e.key === "is_group_query" ? (I(), C(i, {
|
|
3637
3637
|
key: 21,
|
|
3638
3638
|
checked: m.value[l[0]].is_group_query,
|
|
3639
3639
|
"onUpdate:checked": (e) => m.value[l[0]].is_group_query = e
|
|
3640
|
-
}, null, 8, ["checked", "onUpdate:checked"])) : e.key === "action" ? (
|
|
3640
|
+
}, null, 8, ["checked", "onUpdate:checked"])) : e.key === "action" ? (I(), C(g, {
|
|
3641
3641
|
key: 22,
|
|
3642
3642
|
title: "确认删除该列配置?",
|
|
3643
|
-
onConfirm: (e) =>
|
|
3643
|
+
onConfirm: (e) => K(m.value[l[0]])
|
|
3644
3644
|
}, {
|
|
3645
|
-
default:
|
|
3645
|
+
default: G(() => [k(n, {
|
|
3646
3646
|
type: "link",
|
|
3647
3647
|
danger: "",
|
|
3648
3648
|
size: "small",
|
|
3649
3649
|
style: { padding: "0" }
|
|
3650
3650
|
}, {
|
|
3651
|
-
default:
|
|
3651
|
+
default: G(() => t[11] ||= [O(" 删除 ")]),
|
|
3652
3652
|
_: 1
|
|
3653
3653
|
})]),
|
|
3654
3654
|
_: 2
|
|
3655
|
-
}, 1032, ["onConfirm"])) :
|
|
3655
|
+
}, 1032, ["onConfirm"])) : w("", !0)]),
|
|
3656
3656
|
_: 1
|
|
3657
3657
|
}, 8, [
|
|
3658
3658
|
"columns",
|
|
@@ -3661,20 +3661,20 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3661
3661
|
"height",
|
|
3662
3662
|
"scroll",
|
|
3663
3663
|
"loading"
|
|
3664
|
-
])], 512)) :
|
|
3665
|
-
|
|
3666
|
-
open:
|
|
3667
|
-
"onUpdate:open": t[1] ||= (e) =>
|
|
3668
|
-
record:
|
|
3664
|
+
])], 512)) : w("", !0),
|
|
3665
|
+
k(Ce, {
|
|
3666
|
+
open: ne.value,
|
|
3667
|
+
"onUpdate:open": t[1] ||= (e) => ne.value = e,
|
|
3668
|
+
record: J.value
|
|
3669
3669
|
}, null, 8, ["open", "record"]),
|
|
3670
|
-
|
|
3670
|
+
k(en, {
|
|
3671
3671
|
open: oe.value,
|
|
3672
3672
|
"onUpdate:open": t[2] ||= (e) => oe.value = e,
|
|
3673
|
-
record:
|
|
3673
|
+
record: se.value
|
|
3674
3674
|
}, null, 8, ["open", "record"]),
|
|
3675
|
-
|
|
3676
|
-
open:
|
|
3677
|
-
"onUpdate:open": t[3] ||= (e) =>
|
|
3675
|
+
k(He, {
|
|
3676
|
+
open: le.value,
|
|
3677
|
+
"onUpdate:open": t[3] ||= (e) => le.value = e,
|
|
3678
3678
|
record: he.value,
|
|
3679
3679
|
field: ge.value
|
|
3680
3680
|
}, null, 8, [
|
|
@@ -3682,35 +3682,35 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3682
3682
|
"record",
|
|
3683
3683
|
"field"
|
|
3684
3684
|
]),
|
|
3685
|
-
|
|
3686
|
-
open:
|
|
3687
|
-
"onUpdate:open": t[4] ||= (e) =>
|
|
3685
|
+
k(ze, {
|
|
3686
|
+
open: be.value,
|
|
3687
|
+
"onUpdate:open": t[4] ||= (e) => be.value = e,
|
|
3688
3688
|
rows: m.value
|
|
3689
3689
|
}, null, 8, ["open", "rows"])
|
|
3690
3690
|
], 64);
|
|
3691
3691
|
};
|
|
3692
3692
|
}
|
|
3693
|
-
}), [["__scopeId", "data-v-0862eba0"]]),
|
|
3693
|
+
}), [["__scopeId", "data-v-0862eba0"]]), cn = /*#__PURE__*/ i(/* @__PURE__ */ A({
|
|
3694
3694
|
__name: "StepMenu",
|
|
3695
3695
|
props: { model: {} },
|
|
3696
3696
|
setup(e) {
|
|
3697
|
-
let t = e, n =
|
|
3697
|
+
let t = e, n = S(() => t.model), r = {
|
|
3698
3698
|
name: "menu_project",
|
|
3699
3699
|
show_search: !0,
|
|
3700
3700
|
mode: "default",
|
|
3701
3701
|
postUrl: "/i18n/query_language_project_list"
|
|
3702
3702
|
};
|
|
3703
3703
|
return (e, t) => {
|
|
3704
|
-
let i =
|
|
3705
|
-
return
|
|
3706
|
-
default:
|
|
3707
|
-
|
|
3708
|
-
default:
|
|
3704
|
+
let i = z("a-form-item"), a = z("a-col"), o = z("a-row");
|
|
3705
|
+
return I(), C(o, { gutter: 16 }, {
|
|
3706
|
+
default: G(() => [
|
|
3707
|
+
k(a, { span: 12 }, {
|
|
3708
|
+
default: G(() => [k(i, {
|
|
3709
3709
|
label: "父级路由",
|
|
3710
3710
|
name: "parent_menu_id",
|
|
3711
3711
|
extra: "选择父级菜单;留空表示顶级菜单。保存时会直接写到该视图对应的菜单行"
|
|
3712
3712
|
}, {
|
|
3713
|
-
default:
|
|
3713
|
+
default: G(() => [k(g, {
|
|
3714
3714
|
value: n.value.parent_menu_id,
|
|
3715
3715
|
"onUpdate:value": t[0] ||= (e) => n.value.parent_menu_id = e,
|
|
3716
3716
|
"form-model": n.value,
|
|
@@ -3733,13 +3733,13 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3733
3733
|
})]),
|
|
3734
3734
|
_: 1
|
|
3735
3735
|
}),
|
|
3736
|
-
|
|
3737
|
-
default:
|
|
3736
|
+
k(a, { span: 12 }, {
|
|
3737
|
+
default: G(() => [k(i, {
|
|
3738
3738
|
label: "隶属项目",
|
|
3739
3739
|
name: "menu_project",
|
|
3740
3740
|
extra: "该视图菜单归属的模块/项目;留空 = 通用(所有项目可见)。同样同步到菜单行"
|
|
3741
3741
|
}, {
|
|
3742
|
-
default:
|
|
3742
|
+
default: G(() => [k(h, {
|
|
3743
3743
|
value: n.value.menu_project,
|
|
3744
3744
|
"onUpdate:value": t[1] ||= (e) => n.value.menu_project = e,
|
|
3745
3745
|
"form-model": n.value,
|
|
@@ -3752,13 +3752,13 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3752
3752
|
})]),
|
|
3753
3753
|
_: 1
|
|
3754
3754
|
}),
|
|
3755
|
-
|
|
3756
|
-
default:
|
|
3755
|
+
k(a, { span: 12 }, {
|
|
3756
|
+
default: G(() => [k(i, {
|
|
3757
3757
|
label: "菜单图标",
|
|
3758
3758
|
name: "menu_icon",
|
|
3759
3759
|
extra: "显示在菜单树里;留空保存 = 不使用图标"
|
|
3760
3760
|
}, {
|
|
3761
|
-
default:
|
|
3761
|
+
default: G(() => [k(V(v), {
|
|
3762
3762
|
value: n.value.menu_icon,
|
|
3763
3763
|
"onUpdate:value": t[2] ||= (e) => n.value.menu_icon = e,
|
|
3764
3764
|
placeholder: "请选择菜单图标"
|
|
@@ -3767,13 +3767,13 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3767
3767
|
})]),
|
|
3768
3768
|
_: 1
|
|
3769
3769
|
}),
|
|
3770
|
-
|
|
3771
|
-
default:
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3770
|
+
k(a, { span: 24 }, {
|
|
3771
|
+
default: G(() => t[3] ||= [E("div", { class: "step-menu-tip" }, [
|
|
3772
|
+
O(" 本步各项在保存时"),
|
|
3773
|
+
E("b", null, "直接写入该视图对应的菜单行"),
|
|
3774
|
+
O("(菜单不存在则自动新建); 菜单的"),
|
|
3775
|
+
E("b", null, "可见角色"),
|
|
3776
|
+
O("请在「菜单管理」里配该菜单的角色授权 —— SQL 视图自身已不再保存角色信息。 ")
|
|
3777
3777
|
], -1)]),
|
|
3778
3778
|
_: 1
|
|
3779
3779
|
})
|
|
@@ -3782,22 +3782,22 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3782
3782
|
});
|
|
3783
3783
|
};
|
|
3784
3784
|
}
|
|
3785
|
-
}), [["__scopeId", "data-v-40e6bb40"]]),
|
|
3785
|
+
}), [["__scopeId", "data-v-40e6bb40"]]), ln = [
|
|
3786
3786
|
"default_view_type",
|
|
3787
3787
|
"enable_view_types",
|
|
3788
3788
|
"view_display_type",
|
|
3789
3789
|
"is_pagination",
|
|
3790
3790
|
"pageSize",
|
|
3791
3791
|
"page_size_options"
|
|
3792
|
-
],
|
|
3792
|
+
], un = (e, t) => {
|
|
3793
3793
|
let n = {};
|
|
3794
3794
|
return Object.keys(t || {}).forEach((e) => {
|
|
3795
|
-
|
|
3795
|
+
ln.includes(e) || (n[e] = t[e]);
|
|
3796
3796
|
}), e.default_view_type = t.default_view_type ?? void 0, e.enable_view_types = Array.isArray(t.enable_view_types) ? t.enable_view_types : [], e.view_display_type = t.view_display_type ?? void 0, e.is_pagination = t.is_pagination ?? !0, e.pageSize = t.pageSize ?? void 0, e.page_size_options = Array.isArray(t.page_size_options) ? t.page_size_options : [], n;
|
|
3797
|
-
},
|
|
3797
|
+
}, dn = (e, t) => {
|
|
3798
3798
|
let n = { ...t };
|
|
3799
3799
|
return e.default_view_type ? n.default_view_type = e.default_view_type : delete n.default_view_type, e.enable_view_types && e.enable_view_types.length ? n.enable_view_types = e.enable_view_types : delete n.enable_view_types, e.view_display_type ? n.view_display_type = e.view_display_type : delete n.view_display_type, Array.isArray(e.enable_view_types) && e.enable_view_types.length && n.default_view_type && !e.enable_view_types.includes(n.default_view_type) && delete n.default_view_type, typeof e.is_pagination == "boolean" ? n.is_pagination = e.is_pagination : n.is_pagination = !0, e.pageSize == null ? delete n.pageSize : n.pageSize = e.pageSize, e.page_size_options && e.page_size_options.length ? n.page_size_options = e.page_size_options : delete n.page_size_options, n;
|
|
3800
|
-
},
|
|
3800
|
+
}, fn = { class: "step-pane" }, pn = { class: "step-pane" }, mn = { class: "step-pane step-pane--col" }, hn = { class: "step-pane" }, gn = { class: "config-footer" }, _n = /*#__PURE__*/ i(/* @__PURE__ */ A({
|
|
3801
3801
|
__name: "dbViewConfig",
|
|
3802
3802
|
props: {
|
|
3803
3803
|
title: {},
|
|
@@ -3805,9 +3805,9 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3805
3805
|
},
|
|
3806
3806
|
emits: ["cancel", "ok"],
|
|
3807
3807
|
setup(e, { emit: t }) {
|
|
3808
|
-
let i = e, a = t,
|
|
3809
|
-
|
|
3810
|
-
},
|
|
3808
|
+
let i = e, a = t, m = L(null), h = L(!1), g = L(!0), _ = L(i.record?.form_type || "create"), v = L(0), y = r().currentOrg, b = S(() => v.value === 2), x = L(""), w = () => {
|
|
3809
|
+
x.value = "";
|
|
3810
|
+
}, T = L(null), D = L(null), A = L({
|
|
3811
3811
|
name: void 0,
|
|
3812
3812
|
flag: void 0,
|
|
3813
3813
|
data_source_id: void 0,
|
|
@@ -3820,32 +3820,32 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3820
3820
|
is_pagination: !0,
|
|
3821
3821
|
pageSize: void 0,
|
|
3822
3822
|
page_size_options: []
|
|
3823
|
-
}),
|
|
3824
|
-
let e =
|
|
3823
|
+
}), j = he, M = async () => {
|
|
3824
|
+
let e = j[v.value] || [];
|
|
3825
3825
|
if (e.length) try {
|
|
3826
|
-
await
|
|
3826
|
+
await m.value?.validateFields(e);
|
|
3827
3827
|
} catch {
|
|
3828
3828
|
return;
|
|
3829
3829
|
}
|
|
3830
|
-
|
|
3831
|
-
},
|
|
3832
|
-
if (e <=
|
|
3833
|
-
|
|
3830
|
+
v.value < 3 && (v.value += 1);
|
|
3831
|
+
}, N = async (e) => {
|
|
3832
|
+
if (e <= v.value) {
|
|
3833
|
+
v.value = e;
|
|
3834
3834
|
return;
|
|
3835
3835
|
}
|
|
3836
|
-
if (
|
|
3837
|
-
let t =
|
|
3836
|
+
if (_.value !== "edit") return;
|
|
3837
|
+
let t = j[v.value] || [];
|
|
3838
3838
|
if (t.length) try {
|
|
3839
|
-
await
|
|
3839
|
+
await m.value?.validateFields(t);
|
|
3840
3840
|
} catch {
|
|
3841
3841
|
return;
|
|
3842
3842
|
}
|
|
3843
|
-
|
|
3844
|
-
},
|
|
3843
|
+
v.value = e;
|
|
3844
|
+
}, P = {}, te = async (e) => X(await o({
|
|
3845
3845
|
db_view_id: e,
|
|
3846
|
-
org_id:
|
|
3847
|
-
}, `${i.record.model_app}/get_db_view`)) || {},
|
|
3848
|
-
let e =
|
|
3846
|
+
org_id: y?.id
|
|
3847
|
+
}, `${i.record.model_app}/get_db_view`)) || {}, R = () => {
|
|
3848
|
+
let e = A.value;
|
|
3849
3849
|
return {
|
|
3850
3850
|
name: e.name,
|
|
3851
3851
|
flag: e.flag,
|
|
@@ -3854,72 +3854,74 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3854
3854
|
menu_project: e.menu_project || null,
|
|
3855
3855
|
menu_icon: e.menu_icon ?? "",
|
|
3856
3856
|
sql: e.sql,
|
|
3857
|
-
view_meta:
|
|
3857
|
+
view_meta: dn(e, P)
|
|
3858
3858
|
};
|
|
3859
|
-
},
|
|
3859
|
+
}, V = async () => {
|
|
3860
3860
|
try {
|
|
3861
|
-
if (
|
|
3862
|
-
let e =
|
|
3863
|
-
e.length && await
|
|
3864
|
-
} else await
|
|
3861
|
+
if (_.value === "edit") {
|
|
3862
|
+
let e = j[v.value] || [];
|
|
3863
|
+
e.length && await m.value?.validateFields(e);
|
|
3864
|
+
} else await m.value.validate();
|
|
3865
3865
|
let e = {
|
|
3866
|
-
...
|
|
3867
|
-
columns:
|
|
3868
|
-
deleted_data_indexes:
|
|
3866
|
+
...R(),
|
|
3867
|
+
columns: T.value?.buildColumnsPayload?.() ?? [],
|
|
3868
|
+
deleted_data_indexes: T.value?.getDeletedIndexes?.() ?? []
|
|
3869
3869
|
};
|
|
3870
|
-
|
|
3870
|
+
_.value === "edit" && (e.db_view_id = i.record.id), h.value = !0, await o({
|
|
3871
3871
|
...e,
|
|
3872
|
-
org_id:
|
|
3873
|
-
}, `${i.record.model_app}/save_view`),
|
|
3872
|
+
org_id: y?.id
|
|
3873
|
+
}, `${i.record.model_app}/save_view`), q.success("操作成功"), T.value?.resetDeletedIndexes?.(), n()?.emit("refresh"), a("ok");
|
|
3874
3874
|
} catch {} finally {
|
|
3875
|
-
|
|
3875
|
+
h.value = !1;
|
|
3876
3876
|
}
|
|
3877
|
-
},
|
|
3878
|
-
|
|
3879
|
-
},
|
|
3877
|
+
}, H = () => a("cancel"), W = () => {
|
|
3878
|
+
v.value < 3 ? M() : V();
|
|
3879
|
+
}, ne = async (e) => {
|
|
3880
3880
|
if (e) try {
|
|
3881
|
-
let t =
|
|
3882
|
-
org_id:
|
|
3881
|
+
let t = X(await o({
|
|
3882
|
+
org_id: y?.id,
|
|
3883
3883
|
flag: e
|
|
3884
3884
|
}, `${i.record.model_app}/get_db_view_menu`, !1, { skip_error: !0 })) || {};
|
|
3885
3885
|
if (!t.exists) return;
|
|
3886
|
-
|
|
3886
|
+
A.value.parent_menu_id = t.parent_id ?? void 0, A.value.menu_project = t.menu_project || void 0, A.value.menu_icon = t.icon || void 0;
|
|
3887
3887
|
} catch {}
|
|
3888
|
-
},
|
|
3889
|
-
let e = i.record?.id, t = (e == null ? i.record : await
|
|
3890
|
-
|
|
3891
|
-
...
|
|
3888
|
+
}, J = async () => {
|
|
3889
|
+
let e = i.record?.id, t = (e == null ? i.record : await te(e)) || {};
|
|
3890
|
+
A.value = {
|
|
3891
|
+
...A.value,
|
|
3892
3892
|
name: t.name || void 0,
|
|
3893
3893
|
flag: t.flag || void 0,
|
|
3894
3894
|
data_source_id: t.data_source_id ?? void 0,
|
|
3895
3895
|
sql: t.sql || void 0
|
|
3896
|
-
},
|
|
3897
|
-
},
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
error: "当前弹窗尚未选择数据源(第一步「基础配置」的「数据源」下拉)"
|
|
3902
|
-
};
|
|
3896
|
+
}, P = un(A.value, t.view_meta || {}), await ne(A.value.flag);
|
|
3897
|
+
}, Y = p({ sql: l({ description: "完整查询 SQL(单条只读 SELECT / WITH...SELECT / UNION,可用 {{org_id}} / {{person_id}} 模板变量)" }) }), ie = async () => re(await o({
|
|
3898
|
+
org_id: y?.id,
|
|
3899
|
+
is_pagination: !1
|
|
3900
|
+
}, `${i.record.model_app}/query_db_data_source_list`)), ae = async () => {
|
|
3903
3901
|
try {
|
|
3904
|
-
let
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3902
|
+
let e = await ie(), t = A.value.data_source_id, n = !1;
|
|
3903
|
+
if (!t && e.length > 0 && (t = e[0].id, A.value.data_source_id = t, n = !0), !t) return {
|
|
3904
|
+
ok: !1,
|
|
3905
|
+
error: "当前环境没有任何可选数据源,请先在「数据源管理」中新增"
|
|
3906
|
+
};
|
|
3907
|
+
let r = e.find((e) => e.id === t) || null;
|
|
3908
3908
|
return {
|
|
3909
3909
|
ok: !0,
|
|
3910
3910
|
data: {
|
|
3911
|
-
data_source_id:
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3911
|
+
data_source_id: t,
|
|
3912
|
+
auto_selected: n,
|
|
3913
|
+
data_source: r ? {
|
|
3914
|
+
id: r.id,
|
|
3915
|
+
name: r.name,
|
|
3916
|
+
db_type: r.db_type,
|
|
3917
|
+
db_host: r.db_host,
|
|
3918
|
+
db_port: r.db_port,
|
|
3919
|
+
db_name: r.db_name,
|
|
3920
|
+
db_schema: r.db_schema
|
|
3920
3921
|
} : null,
|
|
3921
|
-
|
|
3922
|
-
|
|
3922
|
+
data_source_count: e.length,
|
|
3923
|
+
current_step: v.value + 1,
|
|
3924
|
+
form_type: _.value
|
|
3923
3925
|
}
|
|
3924
3926
|
};
|
|
3925
3927
|
} catch {
|
|
@@ -3928,15 +3930,85 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3928
3930
|
error: "读取数据源列表失败"
|
|
3929
3931
|
};
|
|
3930
3932
|
}
|
|
3931
|
-
},
|
|
3933
|
+
}, oe = async () => {
|
|
3934
|
+
try {
|
|
3935
|
+
let e = await ie();
|
|
3936
|
+
return {
|
|
3937
|
+
ok: !0,
|
|
3938
|
+
data: {
|
|
3939
|
+
count: e.length,
|
|
3940
|
+
current_data_source_id: A.value.data_source_id ?? null,
|
|
3941
|
+
data_sources: e.map((e) => ({
|
|
3942
|
+
id: e.id,
|
|
3943
|
+
name: e.name,
|
|
3944
|
+
db_type: e.db_type,
|
|
3945
|
+
db_host: e.db_host,
|
|
3946
|
+
db_port: e.db_port,
|
|
3947
|
+
db_name: e.db_name,
|
|
3948
|
+
db_schema: e.db_schema
|
|
3949
|
+
}))
|
|
3950
|
+
}
|
|
3951
|
+
};
|
|
3952
|
+
} catch {
|
|
3953
|
+
return {
|
|
3954
|
+
ok: !1,
|
|
3955
|
+
error: "读取数据源列表失败"
|
|
3956
|
+
};
|
|
3957
|
+
}
|
|
3958
|
+
}, ce = async (e) => {
|
|
3959
|
+
try {
|
|
3960
|
+
let t = await ie();
|
|
3961
|
+
if (!t.length) return {
|
|
3962
|
+
ok: !1,
|
|
3963
|
+
error: "当前环境没有任何可选数据源,请先在「数据源管理」中新增"
|
|
3964
|
+
};
|
|
3965
|
+
let n = null, r = !1;
|
|
3966
|
+
if (e?.data_source_id != null) {
|
|
3967
|
+
if (n = t.find((t) => String(t.id) === String(e.data_source_id)), !n) return {
|
|
3968
|
+
ok: !1,
|
|
3969
|
+
error: `找不到 id=${e.data_source_id} 的数据源,可先调用「列出数据源」获取可选清单`
|
|
3970
|
+
};
|
|
3971
|
+
} else if (e?.name) {
|
|
3972
|
+
if (n = t.find((t) => String(t.name) === String(e.name).trim()), !n) {
|
|
3973
|
+
let n = t.map((e) => e.name).join("、");
|
|
3974
|
+
return {
|
|
3975
|
+
ok: !1,
|
|
3976
|
+
error: `找不到名称为「${e.name}」的数据源,现有数据源:${n}`
|
|
3977
|
+
};
|
|
3978
|
+
}
|
|
3979
|
+
} else n = t[0], r = !0;
|
|
3980
|
+
return A.value.data_source_id = n.id, {
|
|
3981
|
+
ok: !0,
|
|
3982
|
+
data: {
|
|
3983
|
+
selected: {
|
|
3984
|
+
id: n.id,
|
|
3985
|
+
name: n.name,
|
|
3986
|
+
db_type: n.db_type,
|
|
3987
|
+
db_host: n.db_host,
|
|
3988
|
+
db_port: n.db_port,
|
|
3989
|
+
db_name: n.db_name,
|
|
3990
|
+
db_schema: n.db_schema
|
|
3991
|
+
},
|
|
3992
|
+
auto_selected: r,
|
|
3993
|
+
count: t.length,
|
|
3994
|
+
current_step: v.value + 1
|
|
3995
|
+
}
|
|
3996
|
+
};
|
|
3997
|
+
} catch {
|
|
3998
|
+
return {
|
|
3999
|
+
ok: !1,
|
|
4000
|
+
error: "读取数据源列表失败"
|
|
4001
|
+
};
|
|
4002
|
+
}
|
|
4003
|
+
}, le = async (e) => {
|
|
3932
4004
|
let t = String(e?.sql ?? "").trim();
|
|
3933
4005
|
if (!t) return {
|
|
3934
4006
|
ok: !1,
|
|
3935
4007
|
error: "sql 不能为空"
|
|
3936
4008
|
};
|
|
3937
|
-
let n =
|
|
3938
|
-
|
|
3939
|
-
let r = await
|
|
4009
|
+
let n = v.value !== 0;
|
|
4010
|
+
v.value = 0, A.value.sql = t, x.value = "";
|
|
4011
|
+
let r = await D.value?.runPreview?.();
|
|
3940
4012
|
return {
|
|
3941
4013
|
ok: !0,
|
|
3942
4014
|
data: {
|
|
@@ -3948,22 +4020,50 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3948
4020
|
error: r.error || null
|
|
3949
4021
|
} : {
|
|
3950
4022
|
ran: !1,
|
|
3951
|
-
reason:
|
|
4023
|
+
reason: A.value.data_source_id ? "预览入口未就绪" : "尚未选择数据源"
|
|
3952
4024
|
}
|
|
3953
4025
|
}
|
|
3954
4026
|
};
|
|
3955
|
-
},
|
|
3956
|
-
|
|
3957
|
-
},
|
|
3958
|
-
|
|
4027
|
+
}, ue = [], de = () => {
|
|
4028
|
+
ue.forEach((e) => e()), ue.length = 0;
|
|
4029
|
+
}, fe = () => {
|
|
4030
|
+
de(), ue.push(c({
|
|
3959
4031
|
name: "dbview_config_data_source",
|
|
3960
4032
|
toolName: "page_dbview_config_data_source",
|
|
3961
4033
|
label: "读取当前所选数据源",
|
|
3962
|
-
description: "读取「视图配置」弹窗当前所选数据源的详情(名称 / 数据库类型 / 主机 / 端口 /
|
|
3963
|
-
promptGuidelines: [
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
4034
|
+
description: "读取「视图配置」弹窗当前所选数据源的详情(名称 / 数据库类型 / 主机 / 端口 / 库名)以及用户当前所在步骤。尚未选择数据源时会自动选中列表里的第一个并返回(auto_selected=true);列表为空时返回失败。",
|
|
4035
|
+
promptGuidelines: [
|
|
4036
|
+
"生成或修改 SQL 前先调用:数据库类型(mysql/oracle/tsql/postgres)决定 SQL 方言",
|
|
4037
|
+
"auto_selected=true 说明数据源是自动选的,回复用户时提一句「已自动选用数据源 X」",
|
|
4038
|
+
"data_source 为 null 说明下拉里找不到该数据源(可能已被删除),如实告知用户"
|
|
4039
|
+
],
|
|
4040
|
+
parameters: p({}),
|
|
4041
|
+
execute: ae
|
|
4042
|
+
}), c({
|
|
4043
|
+
name: "dbview_config_list_data_sources",
|
|
4044
|
+
toolName: "page_dbview_config_list_data_sources",
|
|
4045
|
+
label: "列出可选数据源",
|
|
4046
|
+
description: "列出「视图配置」弹窗当前可选的全部数据源(id / 名称 / 数据库类型 / 主机 / 端口 / 库名)及当前选中项。用户不确定有哪些库、或想按库名/类型挑选数据源时先调用。",
|
|
4047
|
+
promptGuidelines: ["用 db_type 判断 SQL 方言;要切换数据源用「选择数据源」能力", "count=0 时告知用户先到「数据源管理」新增,不要臆造数据源"],
|
|
4048
|
+
parameters: p({}),
|
|
4049
|
+
execute: oe
|
|
4050
|
+
}), c({
|
|
4051
|
+
name: "dbview_config_select_data_source",
|
|
4052
|
+
toolName: "page_dbview_config_select_data_source",
|
|
4053
|
+
label: "选择数据源",
|
|
4054
|
+
description: "替用户在「视图配置」弹窗里选中一个数据源(第一步下拉会即时回显):按 data_source_id(优先)或 name 指定;两者都省略时自动选第一个。选择后旧预览结果自动清空。",
|
|
4055
|
+
promptGuidelines: [
|
|
4056
|
+
"id 或 name 优先从「列出数据源」的结果里取,不要臆造",
|
|
4057
|
+
"两个参数都省略 = 自动选第一个(适合「随便用第一个库」的场景)",
|
|
4058
|
+
"选择完成后再走「写入查询SQL」,预览会按新数据源执行"
|
|
4059
|
+
],
|
|
4060
|
+
parameters: p({
|
|
4061
|
+
data_source_id: f(d([l(), s()], { description: "数据源 id(优先)。与 name 同时给时以 id 为准" })),
|
|
4062
|
+
name: f(l({ description: "按名称精确匹配选择数据源" }))
|
|
4063
|
+
}),
|
|
4064
|
+
write: !0,
|
|
4065
|
+
execute: ce
|
|
4066
|
+
}), c({
|
|
3967
4067
|
name: "dbview_config_set_sql",
|
|
3968
4068
|
toolName: "page_dbview_config_set_sql",
|
|
3969
4069
|
aliases: ["dbview_config_write_sql"],
|
|
@@ -3974,106 +4074,106 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
3974
4074
|
"可用模板变量 {{org_id}} / {{person_id}}",
|
|
3975
4075
|
"写入会整体覆盖输入框现有内容;写入后按返回的 preview 结果向用户说明(rows 为 0 或有 error 时如实说明)"
|
|
3976
4076
|
],
|
|
3977
|
-
parameters:
|
|
4077
|
+
parameters: Y,
|
|
3978
4078
|
timeoutMs: 6e4,
|
|
3979
|
-
execute:
|
|
3980
|
-
}),
|
|
4079
|
+
execute: le
|
|
4080
|
+
}), u({
|
|
3981
4081
|
label: "生成SQL",
|
|
3982
4082
|
sendDirect: !1,
|
|
3983
|
-
prompt: "请为当前视图生成查询 SQL
|
|
4083
|
+
prompt: "请为当前视图生成查询 SQL:先调用页面能力「读取当前所选数据源」确认数据库类型(未选数据源时会自动选用第一个;若用户指定了库名/类型,先用「列出数据源」查清单再用「选择数据源」切换),再按下面补充的需求生成单条只读 SELECT(可用 {{org_id}} / {{person_id}} 模板变量),最后调用页面能力「写入查询SQL」写入输入框(会自动预览)。需求:\n"
|
|
3984
4084
|
}));
|
|
3985
4085
|
};
|
|
3986
|
-
return
|
|
3987
|
-
|
|
3988
|
-
}),
|
|
3989
|
-
|
|
4086
|
+
return F(async () => {
|
|
4087
|
+
fe(), i.record?.form_type && (_.value = i.record.form_type), _.value === "edit" && await J();
|
|
4088
|
+
}), ee(() => {
|
|
4089
|
+
de();
|
|
3990
4090
|
}), (e, t) => {
|
|
3991
|
-
let n =
|
|
3992
|
-
return
|
|
4091
|
+
let n = z("a-step"), r = z("a-steps"), i = z("a-form"), a = z("a-button"), o = z("a-drawer");
|
|
4092
|
+
return I(), C(o, {
|
|
3993
4093
|
title: e.title,
|
|
3994
4094
|
width: 880,
|
|
3995
4095
|
placement: "left",
|
|
3996
4096
|
mask: !1,
|
|
3997
|
-
open:
|
|
4097
|
+
open: g.value,
|
|
3998
4098
|
bodyStyle: {
|
|
3999
4099
|
overflowY: "auto",
|
|
4000
4100
|
overflowX: "hidden",
|
|
4001
4101
|
padding: "0 24px"
|
|
4002
4102
|
},
|
|
4003
4103
|
"destroy-on-close": "",
|
|
4004
|
-
onClose:
|
|
4104
|
+
onClose: H
|
|
4005
4105
|
}, {
|
|
4006
|
-
footer:
|
|
4007
|
-
|
|
4008
|
-
disabled:
|
|
4009
|
-
onClick: t[1] ||= (e) => --
|
|
4106
|
+
footer: G(() => [E("div", gn, [
|
|
4107
|
+
k(a, {
|
|
4108
|
+
disabled: v.value === 0,
|
|
4109
|
+
onClick: t[1] ||= (e) => --v.value
|
|
4010
4110
|
}, {
|
|
4011
|
-
default:
|
|
4111
|
+
default: G(() => t[2] ||= [O(" 上一步 ")]),
|
|
4012
4112
|
_: 1
|
|
4013
4113
|
}, 8, ["disabled"]),
|
|
4014
|
-
|
|
4015
|
-
default:
|
|
4114
|
+
k(a, { onClick: H }, {
|
|
4115
|
+
default: G(() => t[3] ||= [O("取消")]),
|
|
4016
4116
|
_: 1
|
|
4017
4117
|
}),
|
|
4018
|
-
|
|
4118
|
+
k(a, {
|
|
4019
4119
|
type: "primary",
|
|
4020
|
-
loading:
|
|
4021
|
-
onClick:
|
|
4120
|
+
loading: h.value,
|
|
4121
|
+
onClick: W
|
|
4022
4122
|
}, {
|
|
4023
|
-
default:
|
|
4123
|
+
default: G(() => [O(B(v.value < 3 ? "下一步" : "确定"), 1)]),
|
|
4024
4124
|
_: 1
|
|
4025
4125
|
}, 8, ["loading"])
|
|
4026
4126
|
])]),
|
|
4027
|
-
default:
|
|
4028
|
-
current:
|
|
4127
|
+
default: G(() => [k(r, {
|
|
4128
|
+
current: v.value,
|
|
4029
4129
|
size: "small",
|
|
4030
4130
|
class: "config-steps",
|
|
4031
|
-
onChange:
|
|
4131
|
+
onChange: N
|
|
4032
4132
|
}, {
|
|
4033
|
-
default:
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4133
|
+
default: G(() => [
|
|
4134
|
+
k(n, { title: "基础配置" }),
|
|
4135
|
+
k(n, { title: "展示配置" }),
|
|
4136
|
+
k(n, { title: "列配置" }),
|
|
4137
|
+
k(n, { title: "菜单" })
|
|
4038
4138
|
]),
|
|
4039
4139
|
_: 1
|
|
4040
|
-
}, 8, ["current"]),
|
|
4140
|
+
}, 8, ["current"]), k(i, {
|
|
4041
4141
|
ref_key: "formRef",
|
|
4042
|
-
ref:
|
|
4043
|
-
model:
|
|
4142
|
+
ref: m,
|
|
4143
|
+
model: A.value,
|
|
4044
4144
|
layout: "vertical"
|
|
4045
4145
|
}, {
|
|
4046
|
-
default:
|
|
4047
|
-
|
|
4146
|
+
default: G(() => [
|
|
4147
|
+
K(E("div", fn, [k(se, {
|
|
4048
4148
|
ref_key: "basicStepRef",
|
|
4049
|
-
ref:
|
|
4050
|
-
"sql-error":
|
|
4051
|
-
"onUpdate:sqlError": t[0] ||= (e) =>
|
|
4052
|
-
model:
|
|
4149
|
+
ref: D,
|
|
4150
|
+
"sql-error": x.value,
|
|
4151
|
+
"onUpdate:sqlError": t[0] ||= (e) => x.value = e,
|
|
4152
|
+
model: A.value,
|
|
4053
4153
|
record: e.record,
|
|
4054
|
-
"form-type":
|
|
4154
|
+
"form-type": _.value
|
|
4055
4155
|
}, null, 8, [
|
|
4056
4156
|
"sql-error",
|
|
4057
4157
|
"model",
|
|
4058
4158
|
"record",
|
|
4059
4159
|
"form-type"
|
|
4060
|
-
])], 512), [[
|
|
4061
|
-
|
|
4062
|
-
|
|
4160
|
+
])], 512), [[U, v.value === 0]]),
|
|
4161
|
+
K(E("div", pn, [k(ge, { model: A.value }, null, 8, ["model"])], 512), [[U, v.value === 1]]),
|
|
4162
|
+
K(E("div", mn, [k(sn, {
|
|
4063
4163
|
ref_key: "colStepRef",
|
|
4064
|
-
ref:
|
|
4065
|
-
active:
|
|
4066
|
-
model:
|
|
4164
|
+
ref: T,
|
|
4165
|
+
active: b.value,
|
|
4166
|
+
model: A.value,
|
|
4067
4167
|
record: e.record,
|
|
4068
|
-
"form-type":
|
|
4069
|
-
onProbeStart:
|
|
4168
|
+
"form-type": _.value,
|
|
4169
|
+
onProbeStart: w
|
|
4070
4170
|
}, null, 8, [
|
|
4071
4171
|
"active",
|
|
4072
4172
|
"model",
|
|
4073
4173
|
"record",
|
|
4074
4174
|
"form-type"
|
|
4075
|
-
])], 512), [[
|
|
4076
|
-
|
|
4175
|
+
])], 512), [[U, b.value]]),
|
|
4176
|
+
K(E("div", hn, [k(cn, { model: A.value }, null, 8, ["model"])], 512), [[U, v.value === 3]])
|
|
4077
4177
|
]),
|
|
4078
4178
|
_: 1
|
|
4079
4179
|
}, 8, ["model"])]),
|
|
@@ -4081,6 +4181,6 @@ var K = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
|
|
|
4081
4181
|
}, 8, ["title", "open"]);
|
|
4082
4182
|
};
|
|
4083
4183
|
}
|
|
4084
|
-
}), [["__scopeId", "data-v-
|
|
4184
|
+
}), [["__scopeId", "data-v-d853b536"]]);
|
|
4085
4185
|
//#endregion
|
|
4086
|
-
export {
|
|
4186
|
+
export { _n as default };
|