lyflowchart 1.0.154 → 1.0.161
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/{ActionsConfig-gWnpd8yJ.js → ActionsConfig-Bx0tgz1e.js} +1 -1
- package/dist/{ApprovalEditorModal-BsHxlueJ.js → ApprovalEditorModal-CGZEehE6.js} +1 -1
- package/dist/{Cell_click_approve-CzEatC97.js → Cell_click_approve-D4BAdjen.js} +1 -1
- package/dist/{approval-DD00xYMY.js → approval-DOumm1tc.js} +1 -1
- package/dist/{approval-ekd9_mwq.js → approval-TIlcTs-h.js} +2 -2
- package/dist/{approvalHistory-DsHMvx1n.js → approvalHistory-BYTbTSXf.js} +2 -2
- package/dist/{approvalPageConfig-DsoxsuXo.js → approvalPageConfig-Yn3tPl7r.js} +7 -7
- package/dist/{approveLeftConfig-Cskh4ezK.js → approveLeftConfig-BKDdM87m.js} +1 -1
- package/dist/{columnTables-a7yfMH5Q.js → columnTables-Drq0OCcY.js} +255 -214
- package/dist/components/approval/components/TableSummary.vue.d.ts +20 -0
- package/dist/components/approval/components/approvalPageConfig/ColumnConfig.vue.d.ts +6 -6
- package/dist/components/approval/components/approvalPageConfig/searchConfig.vue.d.ts +7 -7
- package/dist/components/approval/components/columnDataList.vue.d.ts +26 -2
- package/dist/components/approval/components/columnTables.vue.d.ts +26 -2
- package/dist/components/approval/components/drawerDataList.vue.d.ts +26 -2
- package/dist/components/approval/components/drawerTablesList.vue.d.ts +26 -2
- package/dist/components/approval/components/modelTablesList.vue.d.ts +26 -2
- package/dist/components/approval/components/table.vue.d.ts +27 -3
- package/dist/components/approval/dbViewAdapter.d.ts +40 -0
- package/dist/components/approval/typing.d.ts +4 -1
- package/dist/{core-BY-t0ghx.js → core-fRduuqmc.js} +4 -4
- package/dist/dbViewAdapter-ByVGSDgn.js +25 -0
- package/dist/{debugCode-CTU6KCej.js → debugCode-ZiYZUq5N.js} +2 -2
- package/dist/index.js +5 -5
- package/dist/{leftColumn-Dzw2Dk6g.js → leftColumn-Bn1KoLRy.js} +2 -2
- package/dist/lyflowchart.css +1 -1
- package/dist/{middleColumn-CTOCcPnB.js → middleColumn-Cdx9-JfV.js} +1 -1
- package/dist/{tableConfig-CMhKXmQF.js → tableConfig-B6bfpf7X.js} +593 -569
- package/dist/{tableModal-LuDGonFy.js → tableModal-DJ4BgjcA.js} +1 -1
- package/package.json +1 -1
- /package/dist/{JsonTags-DQdw3WxB.js → JsonTags-BQZ9jIF_.js} +0 -0
- /package/dist/{approvalHistoryViewModal-UzVPPpNH.js → approvalHistoryViewModal-D3_z9bf3.js} +0 -0
- /package/dist/{codeHistoryViewModal-BIktV_o6.js → codeHistoryViewModal-DnNI_S8C.js} +0 -0
- /package/dist/{dataStoreSettingHistoryViewModal-DjSRPgQC.js → dataStoreSettingHistoryViewModal-Bwf0Kbvh.js} +0 -0
- /package/dist/{debugCode-dD1YnQSD.js → debugCode-_6PzXpbO.js} +0 -0
- /package/dist/{default-CFd6cRxl.js → default-BNQ2XYku.js} +0 -0
- /package/dist/{example_code-DKjqP7KK.js → example_code-Bqj9GjMk.js} +0 -0
- /package/dist/{flowHistoryViewModal-CaGj3LP4.js → flowHistoryViewModal-CVg7Wn7_.js} +0 -0
- /package/dist/{settingsState-CI81PG-i.js → settingsState-Bz7q-7ZJ.js} +0 -0
- /package/dist/{v0001-OaBeBCXI.js → v0001-iEj36Rvz.js} +0 -0
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { On as e } from "./viewer-BDGXjryM.js";
|
|
2
2
|
import { b as t, h as n, l as r, m as i, o as a, p as o, r as s, s as c, u as l, y as u } from "./init-plugin-CpYzRii0.js";
|
|
3
3
|
import { A as d, D as f, E as p, a as m, f as h, i as g, m as _, n as v, r as y, s as b, t as x, v as S } from "./utils-DRldFEoM.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { a as C, i as w, n as T, o as E, t as D } from "./dbViewAdapter-ByVGSDgn.js";
|
|
5
|
+
import { r as ee } from "./settingsState-Bz7q-7ZJ.js";
|
|
6
|
+
import { t as te } from "./JsonTags-BQZ9jIF_.js";
|
|
7
|
+
import { n as O, t as k } from "./ActionsConfig-Bx0tgz1e.js";
|
|
8
|
+
import { Fragment as A, computed as j, createBlock as M, createCommentVNode as N, createElementBlock as P, createElementVNode as F, createTextVNode as I, createVNode as L, defineComponent as R, nextTick as z, normalizeClass as B, normalizeStyle as V, onMounted as H, onUnmounted as ne, openBlock as U, reactive as W, ref as G, renderList as K, resolveComponent as q, toDisplayString as J, watch as Y, withCtx as X, withKeys as re, withModifiers as ie } from "vue";
|
|
9
|
+
import { CheckOutlined as ae, CloseCircleOutlined as oe, CloseOutlined as se, EditOutlined as Z, LeftSquareOutlined as Q, LeftSquareTwoTone as ce, PlusOutlined as le, RightSquareOutlined as ue, RightSquareTwoTone as de } from "@ant-design/icons-vue";
|
|
9
10
|
import { message as $ } from "ant-design-vue";
|
|
10
|
-
import { cloneDeep as
|
|
11
|
-
import { useI18n as
|
|
11
|
+
import { cloneDeep as fe, debounce as pe, isEqual as me } from "lodash";
|
|
12
|
+
import { useI18n as he } from "vue-i18n";
|
|
12
13
|
//#region src/components/approval/components/approvalPageConfig/JsonInput.vue?vue&type=script&lang.ts
|
|
13
|
-
var
|
|
14
|
+
var ge = R({
|
|
14
15
|
name: "JsonInput",
|
|
15
16
|
props: {
|
|
16
17
|
value: {
|
|
@@ -35,7 +36,7 @@ var de = F({
|
|
|
35
36
|
emits: ["update:value"],
|
|
36
37
|
setup(e, { emit: t }) {
|
|
37
38
|
return {
|
|
38
|
-
displayValue:
|
|
39
|
+
displayValue: j(() => {
|
|
39
40
|
let t = e.value;
|
|
40
41
|
if (typeof t == "string") return t;
|
|
41
42
|
if (t == null) return "";
|
|
@@ -45,7 +46,7 @@ var de = F({
|
|
|
45
46
|
return String(t);
|
|
46
47
|
}
|
|
47
48
|
}),
|
|
48
|
-
valueType:
|
|
49
|
+
valueType: j(() => {
|
|
49
50
|
let t = e.value;
|
|
50
51
|
return t === null ? "null" : t === void 0 || t === "" ? "" : typeof t;
|
|
51
52
|
}),
|
|
@@ -62,19 +63,19 @@ var de = F({
|
|
|
62
63
|
}
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
|
-
}),
|
|
66
|
+
}), _e = {
|
|
66
67
|
key: 0,
|
|
67
68
|
class: "json-type"
|
|
68
69
|
};
|
|
69
|
-
function
|
|
70
|
-
let o =
|
|
71
|
-
return
|
|
70
|
+
function ve(e, t, n, r, i, a) {
|
|
71
|
+
let o = q("a-input");
|
|
72
|
+
return U(), M(o, {
|
|
72
73
|
value: e.displayValue,
|
|
73
74
|
placeholder: e.placeholder,
|
|
74
|
-
style:
|
|
75
|
+
style: V(e.style),
|
|
75
76
|
"onUpdate:value": e.updateValue
|
|
76
77
|
}, {
|
|
77
|
-
addonAfter:
|
|
78
|
+
addonAfter: X(() => [e.valueType ? (U(), P("span", _e, J(e.valueType), 1)) : N("", !0)]),
|
|
78
79
|
_: 1
|
|
79
80
|
}, 8, [
|
|
80
81
|
"value",
|
|
@@ -85,11 +86,11 @@ function pe(e, t, n, r, i, a) {
|
|
|
85
86
|
}
|
|
86
87
|
//#endregion
|
|
87
88
|
//#region src/components/approval/components/approvalPageConfig/ConditionFieldMulType.vue?vue&type=script&lang.ts
|
|
88
|
-
var
|
|
89
|
+
var ye = R({
|
|
89
90
|
name: "ConditionFieldMulType",
|
|
90
91
|
components: {
|
|
91
|
-
JsonTags:
|
|
92
|
-
JsonInput: /* @__PURE__ */ t(
|
|
92
|
+
JsonTags: te,
|
|
93
|
+
JsonInput: /* @__PURE__ */ t(ge, [["render", ve], ["__scopeId", "data-v-903e450b"]])
|
|
93
94
|
},
|
|
94
95
|
props: {
|
|
95
96
|
value: {
|
|
@@ -119,7 +120,7 @@ var me = F({
|
|
|
119
120
|
},
|
|
120
121
|
emits: ["update:value"],
|
|
121
122
|
setup(e, { emit: t }) {
|
|
122
|
-
let n =
|
|
123
|
+
let n = j(() => _(e.operator) ?? 0), r = j(() => {
|
|
123
124
|
let { width: t, ...n } = e.style || {};
|
|
124
125
|
return {
|
|
125
126
|
...n,
|
|
@@ -174,7 +175,7 @@ var me = F({
|
|
|
174
175
|
};
|
|
175
176
|
return {
|
|
176
177
|
handleSelectChange: o,
|
|
177
|
-
options:
|
|
178
|
+
options: j(() => {
|
|
178
179
|
if (e.source_type === "global") return S;
|
|
179
180
|
if (e.source_type === "form") return c(e.formData?.dynamicFieldList || [], e.batch_form_key_path || []);
|
|
180
181
|
}),
|
|
@@ -188,9 +189,9 @@ var me = F({
|
|
|
188
189
|
});
|
|
189
190
|
//#endregion
|
|
190
191
|
//#region src/components/approval/components/approvalPageConfig/ConditionFieldMulType.vue
|
|
191
|
-
function
|
|
192
|
-
let o =
|
|
193
|
-
return e.source_type && e.source_type !== "fixed" ? (
|
|
192
|
+
function be(e, t, n, r, i, a) {
|
|
193
|
+
let o = q("a-cascader"), s = q("JsonInput"), c = q("JsonTags");
|
|
194
|
+
return e.source_type && e.source_type !== "fixed" ? (U(), M(o, {
|
|
194
195
|
key: 0,
|
|
195
196
|
value: e.value,
|
|
196
197
|
"field-names": {
|
|
@@ -203,49 +204,49 @@ function he(e, t, n, r, i, a) {
|
|
|
203
204
|
onChange: e.handleSelectChange,
|
|
204
205
|
onClear: t[0] ||= (t) => e.handleSelectChange(null),
|
|
205
206
|
"default-value": [],
|
|
206
|
-
style:
|
|
207
|
+
style: V(e.style),
|
|
207
208
|
size: "small"
|
|
208
209
|
}, null, 8, [
|
|
209
210
|
"value",
|
|
210
211
|
"options",
|
|
211
212
|
"onChange",
|
|
212
213
|
"style"
|
|
213
|
-
])) : e.paramsCount === 1 ? (
|
|
214
|
+
])) : e.paramsCount === 1 ? (U(), M(s, {
|
|
214
215
|
key: 1,
|
|
215
216
|
value: e.value?.[0],
|
|
216
217
|
"onUpdate:value": e.handleSingleChange,
|
|
217
|
-
style:
|
|
218
|
+
style: V(e.style),
|
|
218
219
|
size: "small",
|
|
219
220
|
placeholder: "输入值"
|
|
220
221
|
}, null, 8, [
|
|
221
222
|
"value",
|
|
222
223
|
"onUpdate:value",
|
|
223
224
|
"style"
|
|
224
|
-
])) : e.paramsCount === 2 ? (
|
|
225
|
+
])) : e.paramsCount === 2 ? (U(), P("div", {
|
|
225
226
|
key: 2,
|
|
226
227
|
class: "between-inputs",
|
|
227
|
-
style:
|
|
228
|
+
style: V(e.style)
|
|
228
229
|
}, [
|
|
229
|
-
|
|
230
|
+
L(s, {
|
|
230
231
|
value: e.value?.[0],
|
|
231
232
|
"onUpdate:value": t[1] ||= (t) => e.handleBetweenChange(0, t),
|
|
232
|
-
style:
|
|
233
|
+
style: V(e.halfStyle),
|
|
233
234
|
size: "small",
|
|
234
235
|
placeholder: "起始值"
|
|
235
236
|
}, null, 8, ["value", "style"]),
|
|
236
|
-
t[3] ||=
|
|
237
|
-
|
|
237
|
+
t[3] ||= F("span", { class: "between-separator" }, "~", -1),
|
|
238
|
+
L(s, {
|
|
238
239
|
value: e.value?.[1],
|
|
239
240
|
"onUpdate:value": t[2] ||= (t) => e.handleBetweenChange(1, t),
|
|
240
|
-
style:
|
|
241
|
+
style: V(e.halfStyle),
|
|
241
242
|
size: "small",
|
|
242
243
|
placeholder: "结束值"
|
|
243
244
|
}, null, 8, ["value", "style"])
|
|
244
|
-
], 4)) : (
|
|
245
|
+
], 4)) : (U(), M(c, {
|
|
245
246
|
key: 3,
|
|
246
247
|
value: e.value || [],
|
|
247
248
|
"onUpdate:value": e.handleInputChange,
|
|
248
|
-
style:
|
|
249
|
+
style: V(e.style),
|
|
249
250
|
size: "small",
|
|
250
251
|
placeholder: "输入值"
|
|
251
252
|
}, null, 8, [
|
|
@@ -256,12 +257,12 @@ function he(e, t, n, r, i, a) {
|
|
|
256
257
|
}
|
|
257
258
|
//#endregion
|
|
258
259
|
//#region src/components/approval/components/approvalPageConfig/BaseConditions.vue?vue&type=script&lang.ts
|
|
259
|
-
var
|
|
260
|
+
var xe = R({
|
|
260
261
|
name: "BasicQueryConditions",
|
|
261
262
|
components: {
|
|
262
|
-
JsonTags:
|
|
263
|
-
ConditionFieldMulType: /* @__PURE__ */ t(
|
|
264
|
-
PlusOutlined:
|
|
263
|
+
JsonTags: te,
|
|
264
|
+
ConditionFieldMulType: /* @__PURE__ */ t(ye, [["render", be], ["__scopeId", "data-v-33c78a2c"]]),
|
|
265
|
+
PlusOutlined: le
|
|
265
266
|
},
|
|
266
267
|
props: {
|
|
267
268
|
dataSource: {
|
|
@@ -279,7 +280,7 @@ var ge = F({
|
|
|
279
280
|
},
|
|
280
281
|
emits: ["update:dataSource"],
|
|
281
282
|
setup(e, { emit: t }) {
|
|
282
|
-
let n = l(), r =
|
|
283
|
+
let n = l(), r = G([]), i = () => ({
|
|
283
284
|
field_name: "",
|
|
284
285
|
operator: void 0,
|
|
285
286
|
class_name: void 0,
|
|
@@ -299,9 +300,9 @@ var ge = F({
|
|
|
299
300
|
label: `${t} (${e})`,
|
|
300
301
|
value: e
|
|
301
302
|
}));
|
|
302
|
-
return
|
|
303
|
+
return Y(() => e.modelType, async (e) => {
|
|
303
304
|
r.value = await h(e);
|
|
304
|
-
}, { immediate: !0 }),
|
|
305
|
+
}, { immediate: !0 }), H(() => {
|
|
305
306
|
if (e.dataSource?.length > 0) {
|
|
306
307
|
if (!Array.isArray(e.dataSource[0])) {
|
|
307
308
|
let t = [...e.dataSource];
|
|
@@ -318,36 +319,36 @@ var ge = F({
|
|
|
318
319
|
operatorOptions: d
|
|
319
320
|
};
|
|
320
321
|
}
|
|
321
|
-
}),
|
|
322
|
+
}), Se = { class: "group-header" }, Ce = { class: "group-title" }, we = { class: "item-index" }, Te = { class: "config-body" }, Ee = { class: "condition-value" }, De = { class: "condition-value-type" }, Oe = { class: "condition-value-input" }, ke = { class: "config-actions" }, Ae = {
|
|
322
323
|
key: 0,
|
|
323
324
|
class: "group-or"
|
|
324
325
|
};
|
|
325
|
-
function
|
|
326
|
-
let o =
|
|
327
|
-
return
|
|
326
|
+
function je(e, t, n, r, i, a) {
|
|
327
|
+
let o = q("a-button"), s = q("column-name-field"), c = q("a-form-item"), l = q("a-col"), u = q("a-select"), d = q("a-select-option"), f = q("a-row"), p = q("ConditionFieldMulType"), m = q("a-form"), h = q("delete-outlined"), g = q("plus-outlined");
|
|
328
|
+
return U(), P("div", null, [(U(!0), P(A, null, K(e.dataSource, (n, r) => (U(), P("div", {
|
|
328
329
|
key: r,
|
|
329
330
|
class: "condition-group"
|
|
330
331
|
}, [
|
|
331
|
-
|
|
332
|
+
F("div", Se, [F("span", Ce, "条件组 " + J(r + 1), 1), L(o, {
|
|
332
333
|
type: "link",
|
|
333
334
|
danger: "",
|
|
334
335
|
size: "small",
|
|
335
336
|
onClick: (t) => e.removeGroup(r)
|
|
336
337
|
}, {
|
|
337
|
-
default:
|
|
338
|
+
default: X(() => [...t[0] ||= [I(" 删除条件组 ", -1)]]),
|
|
338
339
|
_: 1
|
|
339
340
|
}, 8, ["onClick"])]),
|
|
340
|
-
(
|
|
341
|
+
(U(!0), P(A, null, K(n, (n, i) => (U(), P("div", {
|
|
341
342
|
key: i,
|
|
342
343
|
class: "condition-item"
|
|
343
344
|
}, [
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
default:
|
|
347
|
-
default:
|
|
348
|
-
|
|
349
|
-
default:
|
|
350
|
-
default:
|
|
345
|
+
F("div", we, "(" + J(i + 1) + ")", 1),
|
|
346
|
+
F("div", Te, [L(m, { layout: "vertical" }, {
|
|
347
|
+
default: X(() => [L(f, { gutter: 16 }, {
|
|
348
|
+
default: X(() => [
|
|
349
|
+
L(l, { span: 8 }, {
|
|
350
|
+
default: X(() => [L(c, { label: "字段" }, {
|
|
351
|
+
default: X(() => [L(s, {
|
|
351
352
|
value: n.field_name,
|
|
352
353
|
"onUpdate:value": (e) => n.field_name = e,
|
|
353
354
|
columnNameList: e.columnNameList
|
|
@@ -360,9 +361,9 @@ function Ee(e, t, n, r, i, a) {
|
|
|
360
361
|
}, 1024)]),
|
|
361
362
|
_: 2
|
|
362
363
|
}, 1024),
|
|
363
|
-
|
|
364
|
-
default:
|
|
365
|
-
default:
|
|
364
|
+
L(l, { span: 8 }, {
|
|
365
|
+
default: X(() => [L(c, { label: "运算符" }, {
|
|
366
|
+
default: X(() => [L(u, {
|
|
366
367
|
"show-search": "",
|
|
367
368
|
value: n.operator,
|
|
368
369
|
"onUpdate:value": (e) => n.operator = e,
|
|
@@ -377,41 +378,41 @@ function Ee(e, t, n, r, i, a) {
|
|
|
377
378
|
}, 1024)]),
|
|
378
379
|
_: 2
|
|
379
380
|
}, 1024),
|
|
380
|
-
|
|
381
|
-
default:
|
|
382
|
-
default:
|
|
381
|
+
L(l, { span: 8 }, {
|
|
382
|
+
default: X(() => [L(c, { label: "数据类型" }, {
|
|
383
|
+
default: X(() => [L(u, {
|
|
383
384
|
"show-search": "",
|
|
384
385
|
value: n.class_name,
|
|
385
386
|
"onUpdate:value": (e) => n.class_name = e,
|
|
386
387
|
placeholder: "请选择数据类型"
|
|
387
388
|
}, {
|
|
388
|
-
default:
|
|
389
|
-
|
|
390
|
-
default:
|
|
389
|
+
default: X(() => [
|
|
390
|
+
L(d, { value: "int" }, {
|
|
391
|
+
default: X(() => [...t[1] ||= [I("整数(int)", -1)]]),
|
|
391
392
|
_: 1
|
|
392
393
|
}),
|
|
393
|
-
|
|
394
|
-
default:
|
|
394
|
+
L(d, { value: "float" }, {
|
|
395
|
+
default: X(() => [...t[2] ||= [I("浮点数(float)", -1)]]),
|
|
395
396
|
_: 1
|
|
396
397
|
}),
|
|
397
|
-
|
|
398
|
-
default:
|
|
398
|
+
L(d, { value: "str" }, {
|
|
399
|
+
default: X(() => [...t[3] ||= [I("字符串(str)", -1)]]),
|
|
399
400
|
_: 1
|
|
400
401
|
}),
|
|
401
|
-
|
|
402
|
-
default:
|
|
402
|
+
L(d, { value: "bool" }, {
|
|
403
|
+
default: X(() => [...t[4] ||= [I("布尔值(bool)", -1)]]),
|
|
403
404
|
_: 1
|
|
404
405
|
}),
|
|
405
|
-
|
|
406
|
-
default:
|
|
406
|
+
L(d, { value: "date" }, {
|
|
407
|
+
default: X(() => [...t[5] ||= [I("日期(date)", -1)]]),
|
|
407
408
|
_: 1
|
|
408
409
|
}),
|
|
409
|
-
|
|
410
|
-
default:
|
|
410
|
+
L(d, { value: "datetime" }, {
|
|
411
|
+
default: X(() => [...t[6] ||= [I("日期时间(datetime)", -1)]]),
|
|
411
412
|
_: 1
|
|
412
413
|
}),
|
|
413
|
-
|
|
414
|
-
default:
|
|
414
|
+
L(d, { value: "time" }, {
|
|
415
|
+
default: X(() => [...t[7] ||= [I("时间(time)", -1)]]),
|
|
415
416
|
_: 1
|
|
416
417
|
})
|
|
417
418
|
]),
|
|
@@ -423,23 +424,23 @@ function Ee(e, t, n, r, i, a) {
|
|
|
423
424
|
}, 1024)
|
|
424
425
|
]),
|
|
425
426
|
_: 2
|
|
426
|
-
}, 1024),
|
|
427
|
-
default:
|
|
427
|
+
}, 1024), L(c, { label: "比较值" }, {
|
|
428
|
+
default: X(() => [F("div", Ee, [F("div", De, [L(u, {
|
|
428
429
|
value: n.value_type,
|
|
429
430
|
"onUpdate:value": (e) => n.value_type = e,
|
|
430
431
|
placeholder: "请选择",
|
|
431
432
|
style: { width: "100px" },
|
|
432
433
|
size: "small"
|
|
433
434
|
}, {
|
|
434
|
-
default:
|
|
435
|
-
default:
|
|
435
|
+
default: X(() => [L(d, { value: "global" }, {
|
|
436
|
+
default: X(() => [...t[8] ||= [I("全局字段", -1)]]),
|
|
436
437
|
_: 1
|
|
437
|
-
}),
|
|
438
|
-
default:
|
|
438
|
+
}), L(d, { value: "fixed" }, {
|
|
439
|
+
default: X(() => [...t[9] ||= [I("固定值", -1)]]),
|
|
439
440
|
_: 1
|
|
440
441
|
})]),
|
|
441
442
|
_: 1
|
|
442
|
-
}, 8, ["value", "onUpdate:value"])]),
|
|
443
|
+
}, 8, ["value", "onUpdate:value"])]), F("div", Oe, [L(p, {
|
|
443
444
|
value: n.value,
|
|
444
445
|
"onUpdate:value": (e) => n.value = e,
|
|
445
446
|
source_type: n.value_type,
|
|
@@ -457,29 +458,29 @@ function Ee(e, t, n, r, i, a) {
|
|
|
457
458
|
}, 1024)]),
|
|
458
459
|
_: 2
|
|
459
460
|
}, 1024)]),
|
|
460
|
-
|
|
461
|
+
F("div", ke, [L(h, {
|
|
461
462
|
onClick: (t) => e.removeCondition(r, i),
|
|
462
463
|
class: "delete-icon"
|
|
463
464
|
}, null, 8, ["onClick"])])
|
|
464
465
|
]))), 128)),
|
|
465
|
-
|
|
466
|
+
L(o, {
|
|
466
467
|
type: "link",
|
|
467
468
|
onClick: (t) => e.addCondition(r)
|
|
468
469
|
}, {
|
|
469
|
-
default:
|
|
470
|
+
default: X(() => [...t[10] ||= [I(" 添加条件 ", -1)]]),
|
|
470
471
|
_: 1
|
|
471
472
|
}, 8, ["onClick"]),
|
|
472
|
-
r < e.dataSource.length - 1 ? (
|
|
473
|
-
]))), 128)),
|
|
473
|
+
r < e.dataSource.length - 1 ? (U(), P("div", Ae, [...t[11] ||= [F("span", null, "或", -1)]])) : N("", !0)
|
|
474
|
+
]))), 128)), L(o, {
|
|
474
475
|
type: "dashed",
|
|
475
476
|
block: "",
|
|
476
477
|
onClick: e.addGroup
|
|
477
478
|
}, {
|
|
478
|
-
default:
|
|
479
|
+
default: X(() => [L(g), t[12] ||= I(" 添加条件组(组与组之间为“或”关系,组内条件为“与”关系) ", -1)]),
|
|
479
480
|
_: 1
|
|
480
481
|
}, 8, ["onClick"])]);
|
|
481
482
|
}
|
|
482
|
-
var
|
|
483
|
+
var Me = /* @__PURE__ */ t(xe, [["render", je], ["__scopeId", "data-v-b0aa1e4b"]]), Ne = R({
|
|
483
484
|
name: "BaseColumns",
|
|
484
485
|
props: { value: {
|
|
485
486
|
type: String,
|
|
@@ -488,7 +489,7 @@ var De = /* @__PURE__ */ t(ge, [["render", Ee], ["__scopeId", "data-v-b0aa1e4b"]
|
|
|
488
489
|
components: {},
|
|
489
490
|
emits: ["update:value", "change"],
|
|
490
491
|
setup(e, { emit: t }) {
|
|
491
|
-
let n =
|
|
492
|
+
let n = G(!1), r = G(e.value);
|
|
492
493
|
return {
|
|
493
494
|
onEdit: n,
|
|
494
495
|
tmpValue: r,
|
|
@@ -496,7 +497,7 @@ var De = /* @__PURE__ */ t(ge, [["render", Ee], ["__scopeId", "data-v-b0aa1e4b"]
|
|
|
496
497
|
r.value = e.value, n.value = !0;
|
|
497
498
|
},
|
|
498
499
|
save: () => {
|
|
499
|
-
t("update:value", r.value), n.value = !1,
|
|
500
|
+
t("update:value", r.value), n.value = !1, z(() => {
|
|
500
501
|
t("change", r.value);
|
|
501
502
|
});
|
|
502
503
|
},
|
|
@@ -505,30 +506,30 @@ var De = /* @__PURE__ */ t(ge, [["render", Ee], ["__scopeId", "data-v-b0aa1e4b"]
|
|
|
505
506
|
}
|
|
506
507
|
};
|
|
507
508
|
}
|
|
508
|
-
}),
|
|
509
|
+
}), Pe = { class: "editable-cell" }, Fe = {
|
|
509
510
|
key: 0,
|
|
510
511
|
class: "editable-cell-input-wrapper"
|
|
511
|
-
},
|
|
512
|
+
}, Ie = {
|
|
512
513
|
key: 1,
|
|
513
514
|
class: "editable-cell-text-wrapper"
|
|
514
515
|
};
|
|
515
|
-
function
|
|
516
|
-
let o =
|
|
517
|
-
return
|
|
516
|
+
function Le(e, t, n, r, i, a) {
|
|
517
|
+
let o = q("a-input"), s = q("check-outlined"), c = q("edit-outlined");
|
|
518
|
+
return U(), P("div", Pe, [e.onEdit ? (U(), P("div", Fe, [L(o, {
|
|
518
519
|
value: e.tmpValue,
|
|
519
520
|
"onUpdate:value": t[0] ||= (t) => e.tmpValue = t,
|
|
520
521
|
size: "small",
|
|
521
522
|
onPressEnter: t[1] ||= (t) => e.save(),
|
|
522
|
-
onKeyup: t[2] ||=
|
|
523
|
-
}, null, 8, ["value"]),
|
|
523
|
+
onKeyup: t[2] ||= re((t) => e.cancel(), ["esc"])
|
|
524
|
+
}, null, 8, ["value"]), L(s, {
|
|
524
525
|
class: "editable-cell-icon-check",
|
|
525
526
|
onClick: t[3] ||= (t) => e.save()
|
|
526
|
-
})])) : (
|
|
527
|
+
})])) : (U(), P("div", Ie, [I(J(e.value || " ") + " ", 1), L(c, {
|
|
527
528
|
class: "editable-cell-icon",
|
|
528
529
|
onClick: t[4] ||= (t) => e.edit()
|
|
529
530
|
})]))]);
|
|
530
531
|
}
|
|
531
|
-
var
|
|
532
|
+
var Re = /* @__PURE__ */ t(Ne, [["render", Le], ["__scopeId", "data-v-85d6a01a"]]), ze = R({
|
|
532
533
|
name: "BaseColumns",
|
|
533
534
|
props: {
|
|
534
535
|
dataSource: {
|
|
@@ -541,17 +542,17 @@ var Ne = /* @__PURE__ */ t(Oe, [["render", Me], ["__scopeId", "data-v-85d6a01a"]
|
|
|
541
542
|
}
|
|
542
543
|
},
|
|
543
544
|
components: {
|
|
544
|
-
LeftSquareOutlined:
|
|
545
|
-
LeftSquareTwoTone:
|
|
546
|
-
RightSquareOutlined:
|
|
547
|
-
RightSquareTwoTone:
|
|
548
|
-
CheckOutlined:
|
|
549
|
-
EditOutlined:
|
|
550
|
-
cellEdit:
|
|
545
|
+
LeftSquareOutlined: Q,
|
|
546
|
+
LeftSquareTwoTone: ce,
|
|
547
|
+
RightSquareOutlined: ue,
|
|
548
|
+
RightSquareTwoTone: de,
|
|
549
|
+
CheckOutlined: ae,
|
|
550
|
+
EditOutlined: Z,
|
|
551
|
+
cellEdit: Re
|
|
551
552
|
},
|
|
552
553
|
emits: ["update:dataSource"],
|
|
553
554
|
setup(e, { emit: t }) {
|
|
554
|
-
let { t: i } =
|
|
555
|
+
let { t: i } = he(), o = G(0), c = u().currentOrg, l = G([]), f = G([]), m = G([]), h = G([]), g = G({}), _ = G({}), v = [{
|
|
555
556
|
title: i("列名称"),
|
|
556
557
|
dataIndex: "title",
|
|
557
558
|
key: "title",
|
|
@@ -634,9 +635,9 @@ var Ne = /* @__PURE__ */ t(Oe, [["render", Me], ["__scopeId", "data-v-85d6a01a"]
|
|
|
634
635
|
},
|
|
635
636
|
{
|
|
636
637
|
title: "合计组件",
|
|
637
|
-
dataIndex: "
|
|
638
|
+
dataIndex: "approve_cellSummaryComponent",
|
|
638
639
|
width: 280,
|
|
639
|
-
key: "
|
|
640
|
+
key: "approve_cellSummaryComponent"
|
|
640
641
|
},
|
|
641
642
|
{
|
|
642
643
|
title: "合计参数",
|
|
@@ -644,21 +645,21 @@ var Ne = /* @__PURE__ */ t(Oe, [["render", Me], ["__scopeId", "data-v-85d6a01a"]
|
|
|
644
645
|
width: 300,
|
|
645
646
|
key: "summaryParams"
|
|
646
647
|
}
|
|
647
|
-
], x =
|
|
648
|
+
], x = pe(() => {
|
|
648
649
|
o.value = window.innerHeight - 165;
|
|
649
650
|
}, 200), S = () => {
|
|
650
651
|
t("update:dataSource", m.value);
|
|
651
652
|
};
|
|
652
|
-
function
|
|
653
|
+
function E(e, t) {
|
|
653
654
|
e.disabled = !1, e.name != null && t.has(e.name) && (e.disabled = !0), e.children && Array.isArray(e.children) && e.children.forEach((e) => {
|
|
654
|
-
|
|
655
|
+
E(e, t);
|
|
655
656
|
});
|
|
656
657
|
}
|
|
657
|
-
let
|
|
658
|
+
let D = (e) => {
|
|
658
659
|
e.forEach((e) => {
|
|
659
|
-
g.value[e.name] = e, Array.isArray(e.children) &&
|
|
660
|
+
g.value[e.name] = e, Array.isArray(e.children) && D(e.children);
|
|
660
661
|
});
|
|
661
|
-
},
|
|
662
|
+
}, ee = () => {
|
|
662
663
|
let e = /* @__PURE__ */ new Set();
|
|
663
664
|
function t(n) {
|
|
664
665
|
n.forEach((n) => {
|
|
@@ -666,24 +667,29 @@ var Ne = /* @__PURE__ */ t(Oe, [["render", Me], ["__scopeId", "data-v-85d6a01a"]
|
|
|
666
667
|
});
|
|
667
668
|
}
|
|
668
669
|
t(m.value), f.value.forEach((t) => {
|
|
669
|
-
|
|
670
|
+
E(t, e);
|
|
670
671
|
}), f.value = [].concat(f.value);
|
|
671
672
|
};
|
|
672
|
-
|
|
673
|
+
H(async () => {
|
|
673
674
|
if (window.addEventListener("resize", x), x(), m.value = e.dataSource || [], e.modelType) {
|
|
674
|
-
let t = e.modelType.split("-"), n =
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
675
|
+
let t = e.modelType.split("-"), n = [];
|
|
676
|
+
if (w(e.modelType)) n = C((await T(e.modelType, c?.id)).baseColumns);
|
|
677
|
+
else {
|
|
678
|
+
let e = `${t[0]}/obtain_${t[1]}_column_data`;
|
|
679
|
+
n = d(await a({
|
|
680
|
+
org_id: c?.id,
|
|
681
|
+
is_base_column: !0
|
|
682
|
+
}, e, !1, { skip_error: !0 }) || []);
|
|
683
|
+
}
|
|
684
|
+
f.value = n, D(f.value);
|
|
679
685
|
}
|
|
680
|
-
|
|
681
|
-
}),
|
|
686
|
+
Q(), ee(), S();
|
|
687
|
+
}), ne(() => {
|
|
682
688
|
window.removeEventListener("resize", x);
|
|
683
689
|
});
|
|
684
|
-
let
|
|
690
|
+
let te = (e) => {
|
|
685
691
|
if (e.record.disabled) return { style: { background: "#cbcbcb" } };
|
|
686
|
-
},
|
|
692
|
+
}, O = W({
|
|
687
693
|
type: "checkbox",
|
|
688
694
|
onChange: (e) => {
|
|
689
695
|
l.value = e;
|
|
@@ -692,7 +698,7 @@ var Ne = /* @__PURE__ */ t(Oe, [["render", Me], ["__scopeId", "data-v-85d6a01a"]
|
|
|
692
698
|
disabled: e.disabled,
|
|
693
699
|
name: e.name
|
|
694
700
|
})
|
|
695
|
-
}),
|
|
701
|
+
}), k = W({
|
|
696
702
|
type: "checkbox",
|
|
697
703
|
onChange: (e) => {
|
|
698
704
|
h.value = e;
|
|
@@ -701,19 +707,20 @@ var Ne = /* @__PURE__ */ t(Oe, [["render", Me], ["__scopeId", "data-v-85d6a01a"]
|
|
|
701
707
|
disabled: e.dataIndex === "index" || e.dataIndex === "action",
|
|
702
708
|
name: e.dataIndex
|
|
703
709
|
})
|
|
704
|
-
}),
|
|
710
|
+
}), A = (e, t) => {
|
|
705
711
|
let n = {};
|
|
706
712
|
return Object.keys(t).forEach((r) => {
|
|
707
713
|
e[r] !== void 0 && (n[t[r]] = e[r]);
|
|
708
714
|
}), n;
|
|
709
|
-
},
|
|
715
|
+
}, j = (e) => {
|
|
710
716
|
e.forEach((e) => {
|
|
711
717
|
if (l.value.indexOf(e.name) > -1) {
|
|
712
718
|
let t = {};
|
|
713
|
-
t =
|
|
719
|
+
t = A(e, {
|
|
714
720
|
verbose_name: "title",
|
|
715
721
|
name: "dataIndex",
|
|
716
722
|
cell_component: "cellComponent",
|
|
723
|
+
cellComponent: "cellComponent",
|
|
717
724
|
cellComponentParams: "cellComponentParams",
|
|
718
725
|
filterMultiple: "filterMultiple",
|
|
719
726
|
contentMap: "contentMap",
|
|
@@ -721,40 +728,40 @@ var Ne = /* @__PURE__ */ t(Oe, [["render", Me], ["__scopeId", "data-v-85d6a01a"]
|
|
|
721
728
|
filters: "filters",
|
|
722
729
|
sorter: "sorter",
|
|
723
730
|
summary: "approve_summary",
|
|
724
|
-
cellSummaryComponent: "
|
|
731
|
+
cellSummaryComponent: "approve_cellSummaryComponent",
|
|
725
732
|
cellSummaryComponentParams: "cellSummaryComponentParams"
|
|
726
733
|
}), t.fixed = void 0, t.autoHeight = !1, t.autoWidth = !1, t.width = 150, t.resizable = !0, e.disabled = !0, e.cellComponent ? t.ellipsis = !1 : t.ellipsis = !0, m.value.push(t);
|
|
727
734
|
}
|
|
728
|
-
e.children && Array.isArray(e.children) &&
|
|
735
|
+
e.children && Array.isArray(e.children) && j(e.children);
|
|
729
736
|
});
|
|
730
|
-
},
|
|
731
|
-
|
|
732
|
-
},
|
|
737
|
+
}, M = () => {
|
|
738
|
+
j(f.value), l.value.length = 0, f.value = [].concat(f.value), m.value = [].concat(m.value), S();
|
|
739
|
+
}, N = (e) => {
|
|
733
740
|
e.forEach((e) => {
|
|
734
|
-
h.value.indexOf(e.name) > -1 && (e.disabled = !1), e.children && Array.isArray(e.children) &&
|
|
741
|
+
h.value.indexOf(e.name) > -1 && (e.disabled = !1), e.children && Array.isArray(e.children) && N(e.children);
|
|
735
742
|
});
|
|
736
|
-
},
|
|
737
|
-
m.value = m.value.filter((e) => h.value.indexOf(e.dataIndex) == -1),
|
|
738
|
-
},
|
|
743
|
+
}, P = () => {
|
|
744
|
+
m.value = m.value.filter((e) => h.value.indexOf(e.dataIndex) == -1), N(f.value), h.value.length = 0, m.value = [].concat(m.value), f.value = [].concat(f.value), S(), Q();
|
|
745
|
+
}, F = (e, t) => {
|
|
739
746
|
let n, r = (e, t, i) => {
|
|
740
747
|
for (let a of t) if (a.dataIndex === i) return n = e, n;
|
|
741
748
|
else if (a.children && a.children.length > 0 && (n = r(a.dataIndex, a.children, i), n !== void 0)) return n;
|
|
742
749
|
};
|
|
743
750
|
return r(null, e, t);
|
|
744
|
-
},
|
|
751
|
+
}, I = ({ record: e, preTargetInfo: t, nextTargetInfo: n }) => new Promise((r, i) => {
|
|
745
752
|
if (t) {
|
|
746
|
-
let n =
|
|
747
|
-
t.record.dataIndex == n || n ==
|
|
748
|
-
} else
|
|
753
|
+
let n = F(m.value, e.dataIndex);
|
|
754
|
+
t.record.dataIndex == n || n == F(m.value, t.record.dataIndex) ? r(!0) : i();
|
|
755
|
+
} else F(m.value, e.dataIndex) == F(m.value, n.record.dataIndex) ? r(!0) : i();
|
|
749
756
|
}).then(() => {
|
|
750
757
|
setTimeout(() => {
|
|
751
758
|
S();
|
|
752
759
|
}, 200);
|
|
753
|
-
}),
|
|
760
|
+
}), L = () => {
|
|
754
761
|
m.value = [].concat(m.value), S();
|
|
755
|
-
},
|
|
756
|
-
|
|
757
|
-
},
|
|
762
|
+
}, R = (e) => {
|
|
763
|
+
L();
|
|
764
|
+
}, z = n(), B = (e, t) => String(t.value).includes(e), V = (e, t, n) => {
|
|
758
765
|
if (!n) {
|
|
759
766
|
e[t] = null;
|
|
760
767
|
return;
|
|
@@ -763,9 +770,9 @@ var Ne = /* @__PURE__ */ t(Oe, [["render", Me], ["__scopeId", "data-v-85d6a01a"]
|
|
|
763
770
|
...e[t] || {},
|
|
764
771
|
pattern: n
|
|
765
772
|
};
|
|
766
|
-
},
|
|
767
|
-
J = t, Y = n, K.value = e == null ? "" : JSON.stringify(e, null, 2), q.value = "",
|
|
768
|
-
},
|
|
773
|
+
}, U = G(!1), K = G(""), q = G(""), J = null, Y = "", X = (e) => Object.keys(e || {}).length, re = (e, t, n) => {
|
|
774
|
+
J = t, Y = n, K.value = e == null ? "" : JSON.stringify(e, null, 2), q.value = "", U.value = !0;
|
|
775
|
+
}, ie = (e) => {
|
|
769
776
|
let t = e.target?.value ?? "";
|
|
770
777
|
if (K.value = t, !t.trim()) {
|
|
771
778
|
q.value = "";
|
|
@@ -777,47 +784,47 @@ var Ne = /* @__PURE__ */ t(Oe, [["render", Me], ["__scopeId", "data-v-85d6a01a"]
|
|
|
777
784
|
} catch {
|
|
778
785
|
q.value = "JSON 格式错误";
|
|
779
786
|
}
|
|
780
|
-
},
|
|
787
|
+
}, ae = () => {
|
|
781
788
|
if (q.value) return;
|
|
782
789
|
let e = K.value.trim();
|
|
783
|
-
J && Y && (J[Y] = e ? JSON.parse(e) : null,
|
|
784
|
-
},
|
|
790
|
+
J && Y && (J[Y] = e ? JSON.parse(e) : null, L()), U.value = !1;
|
|
791
|
+
}, oe = (e, t) => {
|
|
785
792
|
let n = e;
|
|
786
793
|
return t.forEach((e) => {
|
|
787
794
|
!Array.isArray(n) && n.children && (n = n.children), n = n[e];
|
|
788
795
|
}), n;
|
|
789
|
-
},
|
|
796
|
+
}, se = (e) => {
|
|
790
797
|
let t = g.value[e.dataIndex];
|
|
791
798
|
if (t) {
|
|
792
799
|
let n = {
|
|
793
800
|
filters: "filters",
|
|
794
801
|
sorter: "sorter",
|
|
795
802
|
summary: "summary",
|
|
796
|
-
cellSummaryComponent: "
|
|
797
|
-
}, r =
|
|
803
|
+
cellSummaryComponent: "approve_cellSummaryComponent"
|
|
804
|
+
}, r = A(t, n), i = A(e, Object.values(n).reduce((e, t) => (e[t] = t, e), {})), a = me(r, i);
|
|
798
805
|
return a || console.log(`${e.dataIndex} 字段配置不一致`, r, i), a;
|
|
799
806
|
}
|
|
800
807
|
return !0;
|
|
801
|
-
},
|
|
808
|
+
}, Z = (e) => {
|
|
802
809
|
let t = {};
|
|
803
810
|
return e.forEach((e) => {
|
|
804
|
-
|
|
811
|
+
se(e) || (t[e.dataIndex] = e), e.children && Array.isArray(e.children) && Object.assign(t, Z(e.children));
|
|
805
812
|
}), t;
|
|
806
|
-
},
|
|
807
|
-
_.value =
|
|
808
|
-
},
|
|
809
|
-
|
|
810
|
-
},
|
|
813
|
+
}, Q = () => {
|
|
814
|
+
_.value = Z(m.value);
|
|
815
|
+
}, ce = (e) => {
|
|
816
|
+
le(e), S(), Q();
|
|
817
|
+
}, le = (e) => {
|
|
811
818
|
let t = g.value[e.dataIndex];
|
|
812
819
|
if (t) {
|
|
813
|
-
let n =
|
|
820
|
+
let n = A(t, {
|
|
814
821
|
filterMultiple: "filterMultiple",
|
|
815
822
|
contentMap: "contentMap",
|
|
816
823
|
colorMap: "colorMap",
|
|
817
824
|
filters: "filters",
|
|
818
825
|
sorter: "sorter",
|
|
819
826
|
summary: "summary",
|
|
820
|
-
cellSummaryComponent: "
|
|
827
|
+
cellSummaryComponent: "approve_cellSummaryComponent"
|
|
821
828
|
});
|
|
822
829
|
Object.assign(e, n);
|
|
823
830
|
}
|
|
@@ -826,70 +833,70 @@ var Ne = /* @__PURE__ */ t(Oe, [["render", Me], ["__scopeId", "data-v-85d6a01a"]
|
|
|
826
833
|
selectedRowKeys: l,
|
|
827
834
|
allColumnsData: f,
|
|
828
835
|
columns: y,
|
|
829
|
-
rowSelection:
|
|
836
|
+
rowSelection: O,
|
|
830
837
|
baseColumns: b,
|
|
831
838
|
baseColumnList: m,
|
|
832
|
-
baseRowSelection:
|
|
839
|
+
baseRowSelection: k,
|
|
833
840
|
baseSelectKeys: h,
|
|
834
841
|
defaultColumns: v,
|
|
835
842
|
cellComponentList: s(),
|
|
836
843
|
cellSummaryComponentList: r(),
|
|
837
844
|
COMMON_NUMBER_COMPONENT: "common_number",
|
|
838
|
-
numfmtPatternPresets:
|
|
839
|
-
filterPattern:
|
|
840
|
-
onPatternChange:
|
|
841
|
-
jsonStrModalOpen:
|
|
845
|
+
numfmtPatternPresets: z,
|
|
846
|
+
filterPattern: B,
|
|
847
|
+
onPatternChange: V,
|
|
848
|
+
jsonStrModalOpen: U,
|
|
842
849
|
jsonStrText: K,
|
|
843
850
|
jsonStrError: q,
|
|
844
|
-
onJsonInput:
|
|
845
|
-
handleJsonStrModalOk:
|
|
846
|
-
openJsonStrModal:
|
|
851
|
+
onJsonInput: ie,
|
|
852
|
+
handleJsonStrModalOk: ae,
|
|
853
|
+
openJsonStrModal: re,
|
|
847
854
|
paramCount: X,
|
|
848
|
-
customCell:
|
|
849
|
-
goRight:
|
|
850
|
-
goLeft:
|
|
851
|
-
onRowDragEnd:
|
|
852
|
-
changeBaseColumnList:
|
|
853
|
-
updateBaseColumn:
|
|
854
|
-
getRawRecord:
|
|
855
|
+
customCell: te,
|
|
856
|
+
goRight: M,
|
|
857
|
+
goLeft: P,
|
|
858
|
+
onRowDragEnd: I,
|
|
859
|
+
changeBaseColumnList: L,
|
|
860
|
+
updateBaseColumn: le,
|
|
861
|
+
getRawRecord: oe,
|
|
855
862
|
changedFields: _,
|
|
856
863
|
updateAllBaseColumn: () => {
|
|
857
864
|
Object.values(_.value).forEach((e) => {
|
|
858
|
-
|
|
859
|
-
}), S(),
|
|
865
|
+
le(e);
|
|
866
|
+
}), S(), Q();
|
|
860
867
|
},
|
|
861
|
-
handleUpdateBaseColumn:
|
|
868
|
+
handleUpdateBaseColumn: ce,
|
|
862
869
|
copyClick: (e) => {
|
|
863
870
|
e.column.key !== "operation" && (p(e.text), e.hidePopup());
|
|
864
871
|
},
|
|
865
|
-
changeCellComponent:
|
|
872
|
+
changeCellComponent: R,
|
|
866
873
|
height: o,
|
|
867
874
|
emitData: S,
|
|
868
875
|
fieldMap: g
|
|
869
876
|
};
|
|
870
877
|
}
|
|
871
|
-
}),
|
|
878
|
+
}), Be = { class: "column-title-container" }, Ve = { class: "column-title" }, He = { style: { width: "30px" } }, Ue = { class: "column-title-container" }, We = { class: "column-title" }, Ge = { class: "base-column-table" }, Ke = {
|
|
872
879
|
key: 1,
|
|
873
880
|
class: "default-sort-tip"
|
|
874
|
-
},
|
|
881
|
+
}, qe = {
|
|
875
882
|
key: 0,
|
|
876
883
|
class: "json-error-tip"
|
|
877
884
|
};
|
|
878
|
-
function
|
|
879
|
-
let o =
|
|
880
|
-
return
|
|
881
|
-
default:
|
|
885
|
+
function Je(e, t, n, r, i, a) {
|
|
886
|
+
let o = q("copy-outlined"), s = q("a-button"), c = q("a-space-compact"), l = q("s-table"), u = q("a-col"), d = q("left-square-outlined"), f = q("left-square-two-tone"), p = q("right-square-outlined"), m = q("right-square-two-tone"), h = q("cell-edit"), g = q("WarningOutlined"), _ = q("a-select-option"), v = q("a-select"), y = q("a-input-number"), b = q("a-row"), x = q("a-radio-button"), S = q("a-radio-group"), C = q("a-switch"), w = q("a-auto-complete"), T = q("a-layout-sider"), E = q("a-layout"), D = q("a-textarea"), ee = q("a-modal");
|
|
887
|
+
return U(), P(A, null, [L(E, { class: "antTabs" }, {
|
|
888
|
+
default: X(() => [L(T, {
|
|
882
889
|
width: "100%",
|
|
883
|
-
style:
|
|
890
|
+
style: V({
|
|
884
891
|
backgroundColor: "white",
|
|
885
892
|
overflowY: "auto",
|
|
886
893
|
height: e.height + "px"
|
|
887
894
|
})
|
|
888
895
|
}, {
|
|
889
|
-
default:
|
|
890
|
-
default:
|
|
891
|
-
|
|
892
|
-
default:
|
|
896
|
+
default: X(() => [L(b, { style: { height: "100%" } }, {
|
|
897
|
+
default: X(() => [
|
|
898
|
+
L(u, { span: 6 }, {
|
|
899
|
+
default: X(() => [F("div", Be, [F("div", Ve, J(e.$t("可选列")), 1)]), L(l, {
|
|
893
900
|
selectedRowKeys: e.selectedRowKeys,
|
|
894
901
|
"onUpdate:selectedRowKeys": t[0] ||= (t) => e.selectedRowKeys = t,
|
|
895
902
|
autoRowHeight: !0,
|
|
@@ -909,16 +916,16 @@ function Ue(e, t, n, r, i, a) {
|
|
|
909
916
|
stripe: "",
|
|
910
917
|
"summary-fixed": ""
|
|
911
918
|
}, {
|
|
912
|
-
bodyCell:
|
|
913
|
-
contextmenuPopup:
|
|
914
|
-
default:
|
|
919
|
+
bodyCell: X(({ column: e, index: t, text: n, record: r }) => [F("span", null, J(n), 1)]),
|
|
920
|
+
contextmenuPopup: X((t) => [L(c, { direction: "vertical" }, {
|
|
921
|
+
default: X(() => [L(s, {
|
|
915
922
|
block: "",
|
|
916
923
|
size: "small",
|
|
917
924
|
type: "text",
|
|
918
925
|
onClick: (n) => e.copyClick(t, "cell")
|
|
919
926
|
}, {
|
|
920
|
-
icon:
|
|
921
|
-
default:
|
|
927
|
+
icon: X(() => [L(o)]),
|
|
928
|
+
default: X(() => [I(" " + J(e.$t("复制")), 1)]),
|
|
922
929
|
_: 1
|
|
923
930
|
}, 8, ["onClick"])]),
|
|
924
931
|
_: 2
|
|
@@ -934,45 +941,45 @@ function Ue(e, t, n, r, i, a) {
|
|
|
934
941
|
])]),
|
|
935
942
|
_: 1
|
|
936
943
|
}),
|
|
937
|
-
|
|
938
|
-
default:
|
|
944
|
+
L(u, { span: 1 }, {
|
|
945
|
+
default: X(() => [F("div", { style: V({
|
|
939
946
|
display: "flex",
|
|
940
947
|
alignItems: "center",
|
|
941
948
|
justifyContent: "center",
|
|
942
949
|
height: e.height + "px"
|
|
943
|
-
}) }, [
|
|
944
|
-
e.baseSelectKeys.length === 0 ? (
|
|
950
|
+
}) }, [F("div", He, [
|
|
951
|
+
e.baseSelectKeys.length === 0 ? (U(), M(d, {
|
|
945
952
|
key: 0,
|
|
946
953
|
style: {
|
|
947
954
|
color: "#999999",
|
|
948
955
|
"font-size": "25px"
|
|
949
956
|
}
|
|
950
|
-
})) :
|
|
951
|
-
e.baseSelectKeys.length > 0 ? (
|
|
957
|
+
})) : N("", !0),
|
|
958
|
+
e.baseSelectKeys.length > 0 ? (U(), M(f, {
|
|
952
959
|
key: 1,
|
|
953
960
|
style: { "font-size": "25px" },
|
|
954
961
|
onClick: e.goLeft
|
|
955
|
-
}, null, 8, ["onClick"])) :
|
|
956
|
-
e.selectedRowKeys.length === 0 ? (
|
|
962
|
+
}, null, 8, ["onClick"])) : N("", !0),
|
|
963
|
+
e.selectedRowKeys.length === 0 ? (U(), M(p, {
|
|
957
964
|
key: 2,
|
|
958
965
|
style: {
|
|
959
966
|
color: "#999999",
|
|
960
967
|
"font-size": "25px"
|
|
961
968
|
}
|
|
962
|
-
})) :
|
|
963
|
-
e.selectedRowKeys.length > 0 ? (
|
|
969
|
+
})) : N("", !0),
|
|
970
|
+
e.selectedRowKeys.length > 0 ? (U(), M(m, {
|
|
964
971
|
key: 3,
|
|
965
972
|
style: { "font-size": "25px" },
|
|
966
973
|
onClick: e.goRight
|
|
967
|
-
}, null, 8, ["onClick"])) :
|
|
974
|
+
}, null, 8, ["onClick"])) : N("", !0)
|
|
968
975
|
])], 4)]),
|
|
969
976
|
_: 1
|
|
970
977
|
}),
|
|
971
|
-
|
|
978
|
+
L(u, {
|
|
972
979
|
span: 17,
|
|
973
980
|
class: "base-column-content"
|
|
974
981
|
}, {
|
|
975
|
-
default:
|
|
982
|
+
default: X(() => [F("div", Ue, [F("div", We, J(e.$t("列设置")), 1)]), F("div", Ge, [L(l, {
|
|
976
983
|
bordered: !0,
|
|
977
984
|
columns: e.baseColumns,
|
|
978
985
|
rowHeight: 30,
|
|
@@ -990,8 +997,8 @@ function Ue(e, t, n, r, i, a) {
|
|
|
990
997
|
x: "100%"
|
|
991
998
|
}
|
|
992
999
|
}, {
|
|
993
|
-
bodyCell:
|
|
994
|
-
n.dataIndex === "title" ? (
|
|
1000
|
+
bodyCell: X(({ column: n, index: r, text: i, record: a, recordIndexs: o }) => [
|
|
1001
|
+
n.dataIndex === "title" ? (U(), M(h, {
|
|
995
1002
|
key: 0,
|
|
996
1003
|
value: e.getRawRecord(e.baseColumnList, o).title,
|
|
997
1004
|
"onUpdate:value": (t) => e.getRawRecord(e.baseColumnList, o).title = t,
|
|
@@ -1000,18 +1007,18 @@ function Ue(e, t, n, r, i, a) {
|
|
|
1000
1007
|
"value",
|
|
1001
1008
|
"onUpdate:value",
|
|
1002
1009
|
"onChange"
|
|
1003
|
-
])) :
|
|
1004
|
-
n.dataIndex === "dataIndex" ? (
|
|
1010
|
+
])) : N("", !0),
|
|
1011
|
+
n.dataIndex === "dataIndex" ? (U(), P(A, { key: 1 }, [I(J(i) + " ", 1), e.fieldMap && !e.fieldMap[i] ? (U(), M(g, {
|
|
1005
1012
|
key: 0,
|
|
1006
1013
|
title: "列参数不存在",
|
|
1007
1014
|
style: { color: "#faad14" }
|
|
1008
|
-
})) :
|
|
1009
|
-
n.dataIndex === "defaultSort" ? (
|
|
1015
|
+
})) : N("", !0)], 64)) : N("", !0),
|
|
1016
|
+
n.dataIndex === "defaultSort" ? (U(), P(A, { key: 2 }, [a.sorter ? (U(), M(b, {
|
|
1010
1017
|
key: 0,
|
|
1011
1018
|
gutter: 8
|
|
1012
1019
|
}, {
|
|
1013
|
-
default:
|
|
1014
|
-
default:
|
|
1020
|
+
default: X(() => [L(u, { span: 12 }, {
|
|
1021
|
+
default: X(() => [L(v, {
|
|
1015
1022
|
value: a.defaultSortOrder,
|
|
1016
1023
|
"onUpdate:value": (e) => a.defaultSortOrder = e,
|
|
1017
1024
|
onChange: e.changeBaseColumnList,
|
|
@@ -1019,17 +1026,17 @@ function Ue(e, t, n, r, i, a) {
|
|
|
1019
1026
|
size: "small",
|
|
1020
1027
|
allowClear: ""
|
|
1021
1028
|
}, {
|
|
1022
|
-
default:
|
|
1029
|
+
default: X(() => [L(_, {
|
|
1023
1030
|
key: "ascend",
|
|
1024
1031
|
value: "ascend"
|
|
1025
1032
|
}, {
|
|
1026
|
-
default:
|
|
1033
|
+
default: X(() => [I(J(e.$t("升序")), 1)]),
|
|
1027
1034
|
_: 1
|
|
1028
|
-
}),
|
|
1035
|
+
}), L(_, {
|
|
1029
1036
|
key: "descend",
|
|
1030
1037
|
value: "descend"
|
|
1031
1038
|
}, {
|
|
1032
|
-
default:
|
|
1039
|
+
default: X(() => [I(J(e.$t("降序")), 1)]),
|
|
1033
1040
|
_: 1
|
|
1034
1041
|
})]),
|
|
1035
1042
|
_: 1
|
|
@@ -1039,8 +1046,8 @@ function Ue(e, t, n, r, i, a) {
|
|
|
1039
1046
|
"onChange"
|
|
1040
1047
|
])]),
|
|
1041
1048
|
_: 2
|
|
1042
|
-
}, 1024),
|
|
1043
|
-
default:
|
|
1049
|
+
}, 1024), L(u, { span: 12 }, {
|
|
1050
|
+
default: X(() => [a.defaultSortOrder ? (U(), M(y, {
|
|
1044
1051
|
key: 0,
|
|
1045
1052
|
size: "small",
|
|
1046
1053
|
value: a.defaultSortIndex,
|
|
@@ -1054,29 +1061,29 @@ function Ue(e, t, n, r, i, a) {
|
|
|
1054
1061
|
"value",
|
|
1055
1062
|
"onUpdate:value",
|
|
1056
1063
|
"onClick"
|
|
1057
|
-
])) :
|
|
1064
|
+
])) : N("", !0)]),
|
|
1058
1065
|
_: 2
|
|
1059
1066
|
}, 1024)]),
|
|
1060
1067
|
_: 2
|
|
1061
|
-
}, 1024)) : (
|
|
1062
|
-
n.dataIndex === "fixed" ? (
|
|
1068
|
+
}, 1024)) : (U(), P("div", Ke, " 不支持排序 "))], 64)) : N("", !0),
|
|
1069
|
+
n.dataIndex === "fixed" ? (U(), P(A, { key: 3 }, [a?.is_children ? N("", !0) : (U(), M(S, {
|
|
1063
1070
|
key: 0,
|
|
1064
1071
|
value: a.fixed,
|
|
1065
1072
|
"onUpdate:value": (e) => a.fixed = e,
|
|
1066
1073
|
size: "small",
|
|
1067
1074
|
onClick: e.changeBaseColumnList
|
|
1068
1075
|
}, {
|
|
1069
|
-
default:
|
|
1070
|
-
|
|
1071
|
-
default:
|
|
1076
|
+
default: X(() => [
|
|
1077
|
+
L(x, { value: "left" }, {
|
|
1078
|
+
default: X(() => [...t[3] ||= [I(J("左"), -1)]]),
|
|
1072
1079
|
_: 1
|
|
1073
1080
|
}),
|
|
1074
|
-
|
|
1075
|
-
default:
|
|
1081
|
+
L(x, { value: void 0 }, {
|
|
1082
|
+
default: X(() => [...t[4] ||= [I(J("不固定"), -1)]]),
|
|
1076
1083
|
_: 1
|
|
1077
1084
|
}),
|
|
1078
|
-
|
|
1079
|
-
default:
|
|
1085
|
+
L(x, { value: "right" }, {
|
|
1086
|
+
default: X(() => [...t[5] ||= [I(J("右"), -1)]]),
|
|
1080
1087
|
_: 1
|
|
1081
1088
|
})
|
|
1082
1089
|
]),
|
|
@@ -1085,8 +1092,8 @@ function Ue(e, t, n, r, i, a) {
|
|
|
1085
1092
|
"value",
|
|
1086
1093
|
"onUpdate:value",
|
|
1087
1094
|
"onClick"
|
|
1088
|
-
]))], 64)) :
|
|
1089
|
-
n.dataIndex === "autoHeight" ? (
|
|
1095
|
+
]))], 64)) : N("", !0),
|
|
1096
|
+
n.dataIndex === "autoHeight" ? (U(), P(A, { key: 4 }, [a.children && a.children.length > 0 ? N("", !0) : (U(), M(C, {
|
|
1090
1097
|
key: 0,
|
|
1091
1098
|
checked: a.autoHeight,
|
|
1092
1099
|
"onUpdate:checked": (e) => a.autoHeight = e,
|
|
@@ -1099,8 +1106,8 @@ function Ue(e, t, n, r, i, a) {
|
|
|
1099
1106
|
"checked",
|
|
1100
1107
|
"onUpdate:checked",
|
|
1101
1108
|
"onClick"
|
|
1102
|
-
]))], 64)) :
|
|
1103
|
-
n.dataIndex === "autoWidth" ? (
|
|
1109
|
+
]))], 64)) : N("", !0),
|
|
1110
|
+
n.dataIndex === "autoWidth" ? (U(), P(A, { key: 5 }, [!(a.children && a.children.length > 0) && a?.resizable ? (U(), M(C, {
|
|
1104
1111
|
key: 0,
|
|
1105
1112
|
checked: a.autoWidth,
|
|
1106
1113
|
"onUpdate:checked": (e) => a.autoWidth = e,
|
|
@@ -1115,8 +1122,8 @@ function Ue(e, t, n, r, i, a) {
|
|
|
1115
1122
|
"checked-children",
|
|
1116
1123
|
"un-checked-children",
|
|
1117
1124
|
"onClick"
|
|
1118
|
-
])) :
|
|
1119
|
-
n.dataIndex === "approve_summary" ? (
|
|
1125
|
+
])) : N("", !0)], 64)) : N("", !0),
|
|
1126
|
+
n.dataIndex === "approve_summary" ? (U(), M(C, {
|
|
1120
1127
|
key: 6,
|
|
1121
1128
|
checked: a.approve_summary,
|
|
1122
1129
|
"onUpdate:checked": (e) => a.approve_summary = e,
|
|
@@ -1127,8 +1134,8 @@ function Ue(e, t, n, r, i, a) {
|
|
|
1127
1134
|
"checked",
|
|
1128
1135
|
"onUpdate:checked",
|
|
1129
1136
|
"onClick"
|
|
1130
|
-
])) :
|
|
1131
|
-
n.dataIndex === "ellipsis" ? (
|
|
1137
|
+
])) : N("", !0),
|
|
1138
|
+
n.dataIndex === "ellipsis" ? (U(), P(A, { key: 7 }, [!(a.children && a.children.length > 0) && a?.resizable ? (U(), M(C, {
|
|
1132
1139
|
key: 0,
|
|
1133
1140
|
checked: a.ellipsis,
|
|
1134
1141
|
"onUpdate:checked": (e) => a.ellipsis = e,
|
|
@@ -1143,8 +1150,8 @@ function Ue(e, t, n, r, i, a) {
|
|
|
1143
1150
|
"checked-children",
|
|
1144
1151
|
"un-checked-children",
|
|
1145
1152
|
"onClick"
|
|
1146
|
-
])) :
|
|
1147
|
-
n.dataIndex === "cellComponent" ? (
|
|
1153
|
+
])) : N("", !0)], 64)) : N("", !0),
|
|
1154
|
+
n.dataIndex === "cellComponent" ? (U(), M(v, {
|
|
1148
1155
|
key: 8,
|
|
1149
1156
|
value: a.cellComponent,
|
|
1150
1157
|
"onUpdate:value": (e) => a.cellComponent = e,
|
|
@@ -1156,11 +1163,11 @@ function Ue(e, t, n, r, i, a) {
|
|
|
1156
1163
|
style: { width: "180px" },
|
|
1157
1164
|
onChange: (t) => e.changeCellComponent(a)
|
|
1158
1165
|
}, {
|
|
1159
|
-
default:
|
|
1166
|
+
default: X(() => [(U(!0), P(A, null, K(e.cellComponentList, (t) => (U(), M(_, {
|
|
1160
1167
|
key: t.cellComponent,
|
|
1161
1168
|
value: t.cellComponent
|
|
1162
1169
|
}, {
|
|
1163
|
-
default:
|
|
1170
|
+
default: X(() => [I(J(e.$t(t.name) + "(" + t.cellComponent + ")"), 1)]),
|
|
1164
1171
|
_: 2
|
|
1165
1172
|
}, 1032, ["value"]))), 128))]),
|
|
1166
1173
|
_: 1
|
|
@@ -1169,8 +1176,8 @@ function Ue(e, t, n, r, i, a) {
|
|
|
1169
1176
|
"onUpdate:value",
|
|
1170
1177
|
"placeholder",
|
|
1171
1178
|
"onChange"
|
|
1172
|
-
])) :
|
|
1173
|
-
n.dataIndex === "cellParams" ? (
|
|
1179
|
+
])) : N("", !0),
|
|
1180
|
+
n.dataIndex === "cellParams" ? (U(), P(A, { key: 9 }, [a.cellComponent === e.COMMON_NUMBER_COMPONENT ? (U(), M(w, {
|
|
1174
1181
|
key: 0,
|
|
1175
1182
|
value: a.cellComponentParams?.pattern || "",
|
|
1176
1183
|
size: "small",
|
|
@@ -1184,18 +1191,18 @@ function Ue(e, t, n, r, i, a) {
|
|
|
1184
1191
|
"options",
|
|
1185
1192
|
"filter-option",
|
|
1186
1193
|
"onChange"
|
|
1187
|
-
])) : (
|
|
1194
|
+
])) : (U(), M(s, {
|
|
1188
1195
|
key: 1,
|
|
1189
1196
|
size: "small",
|
|
1190
1197
|
onClick: (t) => e.openJsonStrModal(a.cellComponentParams, a, "cellComponentParams")
|
|
1191
1198
|
}, {
|
|
1192
|
-
default:
|
|
1199
|
+
default: X(() => [I(J(e.paramCount(a.cellComponentParams) ? e.$t("已配") : e.$t("配置")), 1)]),
|
|
1193
1200
|
_: 2
|
|
1194
|
-
}, 1032, ["onClick"]))], 64)) :
|
|
1195
|
-
n.dataIndex === "
|
|
1201
|
+
}, 1032, ["onClick"]))], 64)) : N("", !0),
|
|
1202
|
+
n.dataIndex === "approve_cellSummaryComponent" ? (U(), M(v, {
|
|
1196
1203
|
key: 10,
|
|
1197
|
-
value: a.
|
|
1198
|
-
"onUpdate:value": (e) => a.
|
|
1204
|
+
value: a.approve_cellSummaryComponent,
|
|
1205
|
+
"onUpdate:value": (e) => a.approve_cellSummaryComponent = e,
|
|
1199
1206
|
"allow-clear": !0,
|
|
1200
1207
|
dropdownMatchSelectWidth: !1,
|
|
1201
1208
|
placeholder: e.$t("请选择"),
|
|
@@ -1204,11 +1211,11 @@ function Ue(e, t, n, r, i, a) {
|
|
|
1204
1211
|
style: { width: "160px" },
|
|
1205
1212
|
onChange: e.changeBaseColumnList
|
|
1206
1213
|
}, {
|
|
1207
|
-
default:
|
|
1214
|
+
default: X(() => [(U(!0), P(A, null, K(e.cellSummaryComponentList, (t) => (U(), M(_, {
|
|
1208
1215
|
key: t.cellSummaryComponent,
|
|
1209
1216
|
value: t.cellSummaryComponent
|
|
1210
1217
|
}, {
|
|
1211
|
-
default:
|
|
1218
|
+
default: X(() => [I(J(e.$t(t.name) + "(" + t.cellSummaryComponent + ")"), 1)]),
|
|
1212
1219
|
_: 2
|
|
1213
1220
|
}, 1032, ["value"]))), 128))]),
|
|
1214
1221
|
_: 1
|
|
@@ -1217,8 +1224,8 @@ function Ue(e, t, n, r, i, a) {
|
|
|
1217
1224
|
"onUpdate:value",
|
|
1218
1225
|
"placeholder",
|
|
1219
1226
|
"onChange"
|
|
1220
|
-
])) :
|
|
1221
|
-
n.dataIndex === "summaryParams" ? (
|
|
1227
|
+
])) : N("", !0),
|
|
1228
|
+
n.dataIndex === "summaryParams" ? (U(), P(A, { key: 11 }, [a.approve_cellSummaryComponent === e.COMMON_NUMBER_COMPONENT ? (U(), M(w, {
|
|
1222
1229
|
key: 0,
|
|
1223
1230
|
value: a.cellSummaryComponentParams?.pattern || "",
|
|
1224
1231
|
size: "small",
|
|
@@ -1232,32 +1239,32 @@ function Ue(e, t, n, r, i, a) {
|
|
|
1232
1239
|
"options",
|
|
1233
1240
|
"filter-option",
|
|
1234
1241
|
"onChange"
|
|
1235
|
-
])) : (
|
|
1242
|
+
])) : (U(), M(s, {
|
|
1236
1243
|
key: 1,
|
|
1237
1244
|
size: "small",
|
|
1238
1245
|
onClick: (t) => e.openJsonStrModal(a.cellSummaryComponentParams, a, "cellSummaryComponentParams")
|
|
1239
1246
|
}, {
|
|
1240
|
-
default:
|
|
1247
|
+
default: X(() => [I(J(e.paramCount(a.cellSummaryComponentParams) ? e.$t("已配") : e.$t("配置")), 1)]),
|
|
1241
1248
|
_: 2
|
|
1242
|
-
}, 1032, ["onClick"]))], 64)) :
|
|
1243
|
-
n.dataIndex === "action" ? (
|
|
1249
|
+
}, 1032, ["onClick"]))], 64)) : N("", !0),
|
|
1250
|
+
n.dataIndex === "action" ? (U(), P(A, { key: 12 }, [e.changedFields[a.dataIndex] ? (U(), M(s, {
|
|
1244
1251
|
key: 0,
|
|
1245
1252
|
type: "link",
|
|
1246
1253
|
onClick: (t) => e.handleUpdateBaseColumn(e.getRawRecord(e.baseColumnList, o))
|
|
1247
1254
|
}, {
|
|
1248
|
-
default:
|
|
1255
|
+
default: X(() => [I(J(e.$t("更新")), 1)]),
|
|
1249
1256
|
_: 1
|
|
1250
|
-
}, 8, ["onClick"])) :
|
|
1257
|
+
}, 8, ["onClick"])) : N("", !0)], 64)) : N("", !0)
|
|
1251
1258
|
]),
|
|
1252
|
-
contextmenuPopup:
|
|
1253
|
-
default:
|
|
1259
|
+
contextmenuPopup: X((t) => [L(c, { direction: "vertical" }, {
|
|
1260
|
+
default: X(() => [L(s, {
|
|
1254
1261
|
block: "",
|
|
1255
1262
|
size: "small",
|
|
1256
1263
|
type: "text",
|
|
1257
1264
|
onClick: (n) => e.copyClick(t, "cell")
|
|
1258
1265
|
}, {
|
|
1259
|
-
icon:
|
|
1260
|
-
default:
|
|
1266
|
+
icon: X(() => [L(o)]),
|
|
1267
|
+
default: X(() => [I(" " + J(e.$t("复制")), 1)]),
|
|
1261
1268
|
_: 1
|
|
1262
1269
|
}, 8, ["onClick"])]),
|
|
1263
1270
|
_: 2
|
|
@@ -1279,7 +1286,7 @@ function Ue(e, t, n, r, i, a) {
|
|
|
1279
1286
|
_: 1
|
|
1280
1287
|
}, 8, ["style"])]),
|
|
1281
1288
|
_: 1
|
|
1282
|
-
}),
|
|
1289
|
+
}), L(ee, {
|
|
1283
1290
|
open: e.jsonStrModalOpen,
|
|
1284
1291
|
"onUpdate:open": t[2] ||= (t) => e.jsonStrModalOpen = t,
|
|
1285
1292
|
title: e.$t("编辑参数(JSON)"),
|
|
@@ -1287,16 +1294,16 @@ function Ue(e, t, n, r, i, a) {
|
|
|
1287
1294
|
"destroy-on-close": "",
|
|
1288
1295
|
onOk: e.handleJsonStrModalOk
|
|
1289
1296
|
}, {
|
|
1290
|
-
default:
|
|
1297
|
+
default: X(() => [L(D, {
|
|
1291
1298
|
rows: 8,
|
|
1292
1299
|
value: e.jsonStrText,
|
|
1293
|
-
class:
|
|
1300
|
+
class: B({ "json-error": !!e.jsonStrError }),
|
|
1294
1301
|
onInput: e.onJsonInput
|
|
1295
1302
|
}, null, 8, [
|
|
1296
1303
|
"value",
|
|
1297
1304
|
"class",
|
|
1298
1305
|
"onInput"
|
|
1299
|
-
]), e.jsonStrError ? (
|
|
1306
|
+
]), e.jsonStrError ? (U(), P("div", qe, J(e.jsonStrError), 1)) : N("", !0)]),
|
|
1300
1307
|
_: 1
|
|
1301
1308
|
}, 8, [
|
|
1302
1309
|
"open",
|
|
@@ -1304,7 +1311,7 @@ function Ue(e, t, n, r, i, a) {
|
|
|
1304
1311
|
"onOk"
|
|
1305
1312
|
])], 64);
|
|
1306
1313
|
}
|
|
1307
|
-
var
|
|
1314
|
+
var Ye = /* @__PURE__ */ t(ze, [["render", Je], ["__scopeId", "data-v-d3413a14"]]), Xe = R({
|
|
1308
1315
|
name: "OperatorSelect",
|
|
1309
1316
|
props: { record: {
|
|
1310
1317
|
type: Object,
|
|
@@ -1317,7 +1324,7 @@ var We = /* @__PURE__ */ t(Pe, [["render", Ue], ["__scopeId", "data-v-52abe38d"]
|
|
|
1317
1324
|
changeOperatorList: (e) => {
|
|
1318
1325
|
t("change", e);
|
|
1319
1326
|
},
|
|
1320
|
-
operator_list:
|
|
1327
|
+
operator_list: j(() => {
|
|
1321
1328
|
let t = [];
|
|
1322
1329
|
return e.record.options && e.record.options.length > 0 ? (t = [
|
|
1323
1330
|
"in",
|
|
@@ -1332,9 +1339,9 @@ var We = /* @__PURE__ */ t(Pe, [["render", Ue], ["__scopeId", "data-v-52abe38d"]
|
|
|
1332
1339
|
});
|
|
1333
1340
|
//#endregion
|
|
1334
1341
|
//#region src/components/approval/components/approvalPageConfig/operatorSelect.vue
|
|
1335
|
-
function
|
|
1336
|
-
let o =
|
|
1337
|
-
return
|
|
1342
|
+
function Ze(e, t, n, r, i, a) {
|
|
1343
|
+
let o = q("a-select-option"), s = q("a-select");
|
|
1344
|
+
return U(), M(s, {
|
|
1338
1345
|
value: e.record.operator_list,
|
|
1339
1346
|
"onUpdate:value": t[0] ||= (t) => e.record.operator_list = t,
|
|
1340
1347
|
"allow-clear": !0,
|
|
@@ -1347,14 +1354,14 @@ function Ke(e, t, n, r, i, a) {
|
|
|
1347
1354
|
style: { width: "100%" },
|
|
1348
1355
|
onChange: t[1] ||= (t) => e.changeOperatorList(e.record)
|
|
1349
1356
|
}, {
|
|
1350
|
-
default:
|
|
1351
|
-
default:
|
|
1357
|
+
default: X(() => [(U(!0), P(A, null, K(e.operator_list, (t) => (U(), M(o, { value: t }, {
|
|
1358
|
+
default: X(() => [I(J(e.get_operator_type_map(e.record.format, t)) + "(" + J(t) + ") ", 1)]),
|
|
1352
1359
|
_: 2
|
|
1353
1360
|
}, 1032, ["value"]))), 256))]),
|
|
1354
1361
|
_: 1
|
|
1355
1362
|
}, 8, ["value"]);
|
|
1356
1363
|
}
|
|
1357
|
-
var
|
|
1364
|
+
var Qe = /* @__PURE__ */ t(Xe, [["render", Ze]]), $e = R({
|
|
1358
1365
|
name: "DefaultOperatorSelect",
|
|
1359
1366
|
props: { record: {
|
|
1360
1367
|
type: Object,
|
|
@@ -1366,16 +1373,16 @@ var qe = /* @__PURE__ */ t(Ge, [["render", Ke]]), Je = F({
|
|
|
1366
1373
|
changeDefaultOperator: (e) => {
|
|
1367
1374
|
t("change", e);
|
|
1368
1375
|
},
|
|
1369
|
-
operator_list:
|
|
1376
|
+
operator_list: j(() => e.record.operator_list),
|
|
1370
1377
|
get_operator_type_map: f
|
|
1371
1378
|
};
|
|
1372
1379
|
}
|
|
1373
1380
|
});
|
|
1374
1381
|
//#endregion
|
|
1375
1382
|
//#region src/components/approval/components/approvalPageConfig/defaultOperatorSelect.vue
|
|
1376
|
-
function
|
|
1377
|
-
let o =
|
|
1378
|
-
return
|
|
1383
|
+
function et(e, t, n, r, i, a) {
|
|
1384
|
+
let o = q("a-select-option"), s = q("a-select");
|
|
1385
|
+
return U(), M(s, {
|
|
1379
1386
|
value: e.record.default_operator,
|
|
1380
1387
|
"onUpdate:value": t[0] ||= (t) => e.record.default_operator = t,
|
|
1381
1388
|
"allow-clear": !0,
|
|
@@ -1386,14 +1393,14 @@ function Ye(e, t, n, r, i, a) {
|
|
|
1386
1393
|
style: { width: "100%" },
|
|
1387
1394
|
onChange: t[1] ||= (t) => e.changeDefaultOperator(e.record)
|
|
1388
1395
|
}, {
|
|
1389
|
-
default:
|
|
1390
|
-
default:
|
|
1396
|
+
default: X(() => [(U(!0), P(A, null, K(e.record.operator_list, (t) => (U(), M(o, { value: t }, {
|
|
1397
|
+
default: X(() => [I(J(e.get_operator_type_map(e.record.format, t)) + "(" + J(t) + ") ", 1)]),
|
|
1391
1398
|
_: 2
|
|
1392
1399
|
}, 1032, ["value"]))), 256))]),
|
|
1393
1400
|
_: 1
|
|
1394
1401
|
}, 8, ["value"]);
|
|
1395
1402
|
}
|
|
1396
|
-
var
|
|
1403
|
+
var tt = /* @__PURE__ */ t($e, [["render", et]]), nt = [{
|
|
1397
1404
|
title: "参数",
|
|
1398
1405
|
dataIndex: "name",
|
|
1399
1406
|
checked: !0,
|
|
@@ -1405,7 +1412,7 @@ var Xe = /* @__PURE__ */ t(Je, [["render", Ye]]), Ze = [{
|
|
|
1405
1412
|
checked: !0,
|
|
1406
1413
|
width: 100,
|
|
1407
1414
|
ellipsis: !0
|
|
1408
|
-
}],
|
|
1415
|
+
}], rt = [
|
|
1409
1416
|
{
|
|
1410
1417
|
title: "列名称",
|
|
1411
1418
|
dataIndex: "label",
|
|
@@ -1444,7 +1451,7 @@ var Xe = /* @__PURE__ */ t(Je, [["render", Ye]]), Ze = [{
|
|
|
1444
1451
|
key: "default_operator",
|
|
1445
1452
|
width: 100
|
|
1446
1453
|
}
|
|
1447
|
-
],
|
|
1454
|
+
], it = R({
|
|
1448
1455
|
name: "BaseSearch",
|
|
1449
1456
|
props: {
|
|
1450
1457
|
record: {
|
|
@@ -1457,25 +1464,25 @@ var Xe = /* @__PURE__ */ t(Je, [["render", Ye]]), Ze = [{
|
|
|
1457
1464
|
}
|
|
1458
1465
|
},
|
|
1459
1466
|
components: {
|
|
1460
|
-
CloseCircleOutlined:
|
|
1461
|
-
LeftSquareOutlined:
|
|
1462
|
-
LeftSquareTwoTone:
|
|
1463
|
-
RightSquareOutlined:
|
|
1464
|
-
RightSquareTwoTone:
|
|
1465
|
-
CheckOutlined:
|
|
1466
|
-
EditOutlined:
|
|
1467
|
-
OperatorSelect:
|
|
1468
|
-
DefaultOperatorSelect:
|
|
1469
|
-
cellEdit:
|
|
1467
|
+
CloseCircleOutlined: oe,
|
|
1468
|
+
LeftSquareOutlined: Q,
|
|
1469
|
+
LeftSquareTwoTone: ce,
|
|
1470
|
+
RightSquareOutlined: ue,
|
|
1471
|
+
RightSquareTwoTone: de,
|
|
1472
|
+
CheckOutlined: ae,
|
|
1473
|
+
EditOutlined: Z,
|
|
1474
|
+
OperatorSelect: Qe,
|
|
1475
|
+
DefaultOperatorSelect: tt,
|
|
1476
|
+
cellEdit: Re
|
|
1470
1477
|
},
|
|
1471
1478
|
emits: ["update:record"],
|
|
1472
1479
|
setup(e, { emit: t }) {
|
|
1473
|
-
let n = o(), r = i(), s =
|
|
1480
|
+
let n = o(), r = i(), s = G(0), c = u().currentOrg, l = G([]), d = W({}), f = G([]), p = G([]), m = G([]), h = G([]), g = G({}), _ = G({}), v = () => {
|
|
1474
1481
|
let e = [];
|
|
1475
|
-
e =
|
|
1482
|
+
e = fe(p.value), e.forEach((e) => {
|
|
1476
1483
|
delete e.dataIndex;
|
|
1477
1484
|
}), t("update:record", e);
|
|
1478
|
-
}, y =
|
|
1485
|
+
}, y = pe(() => {
|
|
1479
1486
|
s.value = window.innerHeight - 165;
|
|
1480
1487
|
}, 200);
|
|
1481
1488
|
function b(e, t) {
|
|
@@ -1502,22 +1509,27 @@ var Xe = /* @__PURE__ */ t(Je, [["render", Ye]]), Ze = [{
|
|
|
1502
1509
|
b(t, e);
|
|
1503
1510
|
}), f.value = [].concat(f.value), p.value = [].concat(p.value);
|
|
1504
1511
|
};
|
|
1505
|
-
|
|
1512
|
+
H(async () => {
|
|
1506
1513
|
window.addEventListener("resize", y), y();
|
|
1507
|
-
let t =
|
|
1514
|
+
let t = fe(e.record) || [];
|
|
1508
1515
|
if (t.forEach((e) => {
|
|
1509
1516
|
e.operator_list ||= [], !e.dataIndex && e.field_name && (e.dataIndex = e.field_name);
|
|
1510
1517
|
}), p.value = t, console.log(p.value), e.modelType) {
|
|
1511
|
-
let t = e.modelType.split("-"), n =
|
|
1512
|
-
|
|
1518
|
+
let t = e.modelType.split("-"), n = [];
|
|
1519
|
+
if (w(e.modelType)) n = E((await T(e.modelType, c?.id)).base_search_condition_config_list);
|
|
1520
|
+
else {
|
|
1521
|
+
let e = `${t[0]}/obtain_${t[1]}_column_data`;
|
|
1522
|
+
n = x(await a({ org_id: c?.id }, e, !1, { skip_error: !0 }) || []);
|
|
1523
|
+
}
|
|
1524
|
+
f.value = n, U(f.value);
|
|
1513
1525
|
}
|
|
1514
1526
|
J(), S();
|
|
1515
|
-
}),
|
|
1527
|
+
}), ne(() => {
|
|
1516
1528
|
window.removeEventListener("resize", y);
|
|
1517
1529
|
});
|
|
1518
1530
|
let C = (e) => {
|
|
1519
1531
|
if (e.record.disabled) return { style: { background: "#cbcbcb" } };
|
|
1520
|
-
},
|
|
1532
|
+
}, D = W({
|
|
1521
1533
|
type: "checkbox",
|
|
1522
1534
|
onChange: (e) => {
|
|
1523
1535
|
m.value = e;
|
|
@@ -1526,7 +1538,7 @@ var Xe = /* @__PURE__ */ t(Je, [["render", Ye]]), Ze = [{
|
|
|
1526
1538
|
disabled: e.children !== void 0,
|
|
1527
1539
|
name: e.dataIndex
|
|
1528
1540
|
})
|
|
1529
|
-
}),
|
|
1541
|
+
}), ee = W({
|
|
1530
1542
|
type: "checkbox",
|
|
1531
1543
|
onChange: (e) => {
|
|
1532
1544
|
l.value = e;
|
|
@@ -1535,27 +1547,27 @@ var Xe = /* @__PURE__ */ t(Je, [["render", Ye]]), Ze = [{
|
|
|
1535
1547
|
disabled: e.disabled,
|
|
1536
1548
|
name: e.name
|
|
1537
1549
|
})
|
|
1538
|
-
}),
|
|
1550
|
+
}), te = (e, t) => {
|
|
1539
1551
|
let n, r = (e, t, i) => {
|
|
1540
1552
|
for (let a of t) if (a.dataIndex === i) return n = e, n;
|
|
1541
1553
|
else if (a.children && a.children.length > 0 && (n = r(a.dataIndex, a.children, i), n !== void 0)) return n;
|
|
1542
1554
|
};
|
|
1543
1555
|
return r(null, e, t);
|
|
1544
|
-
},
|
|
1545
|
-
let i =
|
|
1556
|
+
}, O = ({ record: e, insertToRowKey: t }) => new Promise((n, r) => {
|
|
1557
|
+
let i = te(p.value, e.dataIndex);
|
|
1546
1558
|
i != null && t != null || i == null && t == null ? n(!0) : r();
|
|
1547
1559
|
}).then(() => {
|
|
1548
1560
|
setTimeout(() => {
|
|
1549
1561
|
v();
|
|
1550
1562
|
}, 200);
|
|
1551
|
-
}),
|
|
1563
|
+
}), k = (e) => {
|
|
1552
1564
|
e.forEach((e) => {
|
|
1553
|
-
m.value.indexOf(e.name) > -1 && (e.disabled = !1), e.children && Array.isArray(e.children) &&
|
|
1565
|
+
m.value.indexOf(e.name) > -1 && (e.disabled = !1), e.children && Array.isArray(e.children) && k(e.children);
|
|
1554
1566
|
});
|
|
1555
|
-
},
|
|
1567
|
+
}, A = () => {
|
|
1556
1568
|
let e = p.value.filter((e) => m.value.indexOf(e.dataIndex) == -1);
|
|
1557
|
-
|
|
1558
|
-
},
|
|
1569
|
+
k(f.value), m.value.length = 0, p.value = [].concat(e), f.value = [].concat(f.value), v(), J();
|
|
1570
|
+
}, j = (e) => {
|
|
1559
1571
|
e.forEach((e) => {
|
|
1560
1572
|
if (l.value.indexOf(e.name) > -1) {
|
|
1561
1573
|
e.disabled = !0;
|
|
@@ -1566,42 +1578,42 @@ var Xe = /* @__PURE__ */ t(Je, [["render", Ye]]), Ze = [{
|
|
|
1566
1578
|
"notin"
|
|
1567
1579
|
], e.type === "boolean" ? t.class_name = "bool" : t.class_name = e.type, t.format = "choices") : e.type == "int" ? (t.format = "input", t.operator_list = n[e.type], t.class_name = "int") : e.type == "float" ? (t.format = "input", t.operator_list = n[e.type], t.class_name = "float") : e.type == "str" ? (t.format = "input", t.operator_list = n[e.type], t.class_name = "str") : e.type == "remote" ? (t.format = "remote", t.operator_list = n[e.type], t.class_name = "int", t.postUrl = e.postUrl) : e.type == "datetime" ? (t.format = "input", t.operator_list = n[e.type], t.class_name = "datetime") : e.type == "date" ? (t.format = "input", t.operator_list = n[e.type], t.class_name = "date") : e.type == "time" ? (t.format = "input", t.operator_list = n[e.type], t.class_name = "time") : (t.format = "input", t.operator_list = n.str, t.class_name = "str"), p.value.push(t);
|
|
1568
1580
|
}
|
|
1569
|
-
e.children && Array.isArray(e.children) &&
|
|
1581
|
+
e.children && Array.isArray(e.children) && j(e.children);
|
|
1570
1582
|
});
|
|
1571
|
-
},
|
|
1572
|
-
|
|
1573
|
-
}, M = (e) => {
|
|
1574
|
-
delete d[e];
|
|
1583
|
+
}, M = () => {
|
|
1584
|
+
j(f.value), l.value.length = 0, f.value = [].concat(f.value), p.value = [].concat(p.value), v();
|
|
1575
1585
|
}, N = (e) => {
|
|
1576
|
-
d[e]
|
|
1586
|
+
delete d[e];
|
|
1577
1587
|
}, P = (e) => {
|
|
1588
|
+
d[e] = e;
|
|
1589
|
+
}, F = (e) => {
|
|
1578
1590
|
delete d[e];
|
|
1579
1591
|
let t = [];
|
|
1580
1592
|
p.value.forEach((n) => {
|
|
1581
1593
|
e == n.dataIndex && (t = n.children);
|
|
1582
1594
|
}), p.value = p.value.filter((t) => t.dataIndex !== e), p.value.length > 0 && p.value[p.value.length - 1].children.push(...t), p.value = [].concat(p.value), v();
|
|
1583
|
-
},
|
|
1595
|
+
}, I = () => {
|
|
1584
1596
|
p.value = [].concat(p.value), v();
|
|
1585
|
-
},
|
|
1597
|
+
}, L = (e) => e?.children && e.children.length >= 0 ? [] : e?.options && e.options.length > 0 ? [{
|
|
1586
1598
|
name: "下拉选框",
|
|
1587
1599
|
value: "select"
|
|
1588
|
-
}] : r[e.class_name] ? r[e.class_name].type : [],
|
|
1600
|
+
}] : r[e.class_name] ? r[e.class_name].type : [], R = (e) => {
|
|
1589
1601
|
e.operator_list.includes(e.default_operator) || (e.default_operator = null), e.default_operator ||= e.operator_list?.[0], v();
|
|
1590
|
-
},
|
|
1602
|
+
}, z = (e) => {
|
|
1591
1603
|
v();
|
|
1592
|
-
},
|
|
1604
|
+
}, B = (e, t) => {
|
|
1593
1605
|
let n = e;
|
|
1594
1606
|
return t.forEach((e) => {
|
|
1595
1607
|
!Array.isArray(n) && n.children && (n = n.children), n = n[e];
|
|
1596
1608
|
}), n;
|
|
1597
|
-
},
|
|
1609
|
+
}, V = (e, t) => {
|
|
1598
1610
|
let n = {};
|
|
1599
1611
|
return Object.keys(t).forEach((r) => {
|
|
1600
1612
|
e[r] !== void 0 && (n[t[r]] = e[r]);
|
|
1601
1613
|
}), n;
|
|
1602
|
-
},
|
|
1614
|
+
}, U = (e) => {
|
|
1603
1615
|
e.forEach((e) => {
|
|
1604
|
-
g.value[e.name] = e, Array.isArray(e.children) &&
|
|
1616
|
+
g.value[e.name] = e, Array.isArray(e.children) && U(e.children);
|
|
1605
1617
|
});
|
|
1606
1618
|
}, K = (e) => {
|
|
1607
1619
|
let t = g.value[e.field_name];
|
|
@@ -1609,7 +1621,7 @@ var Xe = /* @__PURE__ */ t(Je, [["render", Ye]]), Ze = [{
|
|
|
1609
1621
|
let n = {
|
|
1610
1622
|
options: "options",
|
|
1611
1623
|
required_condition: "required_condition"
|
|
1612
|
-
}, r =
|
|
1624
|
+
}, r = V(t, n), i = V(e, Object.values(n).reduce((e, t) => (e[t] = t, e), {})), a = me(r, i);
|
|
1613
1625
|
return a || console.log(`${e.field_name} 字段配置不一致`, r, i), a;
|
|
1614
1626
|
}
|
|
1615
1627
|
return !0;
|
|
@@ -1627,7 +1639,7 @@ var Xe = /* @__PURE__ */ t(Je, [["render", Ye]]), Ze = [{
|
|
|
1627
1639
|
}, X = (e) => {
|
|
1628
1640
|
let t = g.value[e.field_name];
|
|
1629
1641
|
if (t) {
|
|
1630
|
-
let n =
|
|
1642
|
+
let n = V(t, {
|
|
1631
1643
|
options: "options",
|
|
1632
1644
|
required_condition: "required_condition"
|
|
1633
1645
|
});
|
|
@@ -1637,26 +1649,26 @@ var Xe = /* @__PURE__ */ t(Je, [["render", Ye]]), Ze = [{
|
|
|
1637
1649
|
return {
|
|
1638
1650
|
selectedRowKeys: l,
|
|
1639
1651
|
dataSource: f,
|
|
1640
|
-
columns:
|
|
1641
|
-
baseColumns:
|
|
1652
|
+
columns: nt,
|
|
1653
|
+
baseColumns: rt,
|
|
1642
1654
|
baseDataSource: p,
|
|
1643
1655
|
open: d,
|
|
1644
|
-
rowSelection:
|
|
1645
|
-
baseRowSelection:
|
|
1656
|
+
rowSelection: ee,
|
|
1657
|
+
baseRowSelection: D,
|
|
1646
1658
|
baseSelectedRowKeys: m,
|
|
1647
1659
|
baseExpandedRowKeys: h,
|
|
1648
1660
|
emitData: v,
|
|
1649
1661
|
customCell: C,
|
|
1650
|
-
toLeft:
|
|
1651
|
-
toRight:
|
|
1652
|
-
baseRowDragEnd:
|
|
1653
|
-
cancel:
|
|
1654
|
-
handleDelete:
|
|
1655
|
-
deleteRecord:
|
|
1656
|
-
changeBase:
|
|
1657
|
-
getType:
|
|
1658
|
-
changeOperatorList:
|
|
1659
|
-
changeDefaultOperator:
|
|
1662
|
+
toLeft: A,
|
|
1663
|
+
toRight: M,
|
|
1664
|
+
baseRowDragEnd: O,
|
|
1665
|
+
cancel: N,
|
|
1666
|
+
handleDelete: P,
|
|
1667
|
+
deleteRecord: F,
|
|
1668
|
+
changeBase: I,
|
|
1669
|
+
getType: L,
|
|
1670
|
+
changeOperatorList: R,
|
|
1671
|
+
changeDefaultOperator: z,
|
|
1660
1672
|
changedFields: _,
|
|
1661
1673
|
updateAllBaseSearch: () => {
|
|
1662
1674
|
Object.values(_.value).forEach((e) => {
|
|
@@ -1664,24 +1676,24 @@ var Xe = /* @__PURE__ */ t(Je, [["render", Ye]]), Ze = [{
|
|
|
1664
1676
|
}), v(), J();
|
|
1665
1677
|
},
|
|
1666
1678
|
handleUpdateBaseColumn: Y,
|
|
1667
|
-
getRawRecord:
|
|
1679
|
+
getRawRecord: B,
|
|
1668
1680
|
height: s,
|
|
1669
1681
|
fieldMap: g
|
|
1670
1682
|
};
|
|
1671
1683
|
}
|
|
1672
|
-
}),
|
|
1673
|
-
function
|
|
1674
|
-
let o =
|
|
1675
|
-
return
|
|
1684
|
+
}), at = { style: { width: "30px" } };
|
|
1685
|
+
function ot(e, t, n, r, i, a) {
|
|
1686
|
+
let o = q("s-table"), s = q("a-col"), c = q("left-square-outlined"), l = q("left-square-two-tone"), u = q("right-square-outlined"), d = q("right-square-two-tone"), f = q("cell-edit"), p = q("WarningOutlined"), m = q("a-select-option"), h = q("a-select"), g = q("OperatorSelect"), _ = q("DefaultOperatorSelect"), v = q("a-button"), y = q("a-row");
|
|
1687
|
+
return U(), M(y, {
|
|
1676
1688
|
class: "antTabs",
|
|
1677
|
-
style:
|
|
1689
|
+
style: V({ height: e.height + "px" })
|
|
1678
1690
|
}, {
|
|
1679
|
-
default:
|
|
1680
|
-
|
|
1691
|
+
default: X(() => [
|
|
1692
|
+
L(s, {
|
|
1681
1693
|
span: 7,
|
|
1682
1694
|
style: { height: "100%" }
|
|
1683
1695
|
}, {
|
|
1684
|
-
default:
|
|
1696
|
+
default: X(() => [t[3] ||= F("div", { class: "column-title-container" }, [F("div", { class: "column-title" }, "基础数据")], -1), L(o, {
|
|
1685
1697
|
selectedRowKeys: e.selectedRowKeys,
|
|
1686
1698
|
"onUpdate:selectedRowKeys": t[0] ||= (t) => e.selectedRowKeys = t,
|
|
1687
1699
|
autoRowHeight: !0,
|
|
@@ -1701,7 +1713,7 @@ function tt(e, t, n, r, i, a) {
|
|
|
1701
1713
|
stripe: "",
|
|
1702
1714
|
"summary-fixed": ""
|
|
1703
1715
|
}, {
|
|
1704
|
-
bodyCell:
|
|
1716
|
+
bodyCell: X(({ column: e, index: t, text: n, record: r }) => [F("span", null, J(n), 1)]),
|
|
1705
1717
|
_: 1
|
|
1706
1718
|
}, 8, [
|
|
1707
1719
|
"selectedRowKeys",
|
|
@@ -1713,42 +1725,42 @@ function tt(e, t, n, r, i, a) {
|
|
|
1713
1725
|
])]),
|
|
1714
1726
|
_: 1
|
|
1715
1727
|
}),
|
|
1716
|
-
|
|
1717
|
-
default:
|
|
1728
|
+
L(s, { span: 1 }, {
|
|
1729
|
+
default: X(() => [F("div", { style: V({
|
|
1718
1730
|
display: "flex",
|
|
1719
1731
|
alignItems: "center",
|
|
1720
1732
|
justifyContent: "center",
|
|
1721
1733
|
height: e.height + "px"
|
|
1722
|
-
}) }, [
|
|
1723
|
-
e.baseSelectedRowKeys.length === 0 ? (
|
|
1734
|
+
}) }, [F("div", at, [
|
|
1735
|
+
e.baseSelectedRowKeys.length === 0 ? (U(), M(c, {
|
|
1724
1736
|
key: 0,
|
|
1725
1737
|
style: {
|
|
1726
1738
|
color: "#999999",
|
|
1727
1739
|
"font-size": "25px"
|
|
1728
1740
|
}
|
|
1729
|
-
})) :
|
|
1730
|
-
e.baseSelectedRowKeys.length > 0 ? (
|
|
1741
|
+
})) : N("", !0),
|
|
1742
|
+
e.baseSelectedRowKeys.length > 0 ? (U(), M(l, {
|
|
1731
1743
|
key: 1,
|
|
1732
1744
|
style: { "font-size": "25px" },
|
|
1733
1745
|
onClick: e.toLeft
|
|
1734
|
-
}, null, 8, ["onClick"])) :
|
|
1735
|
-
e.selectedRowKeys.length === 0 ? (
|
|
1746
|
+
}, null, 8, ["onClick"])) : N("", !0),
|
|
1747
|
+
e.selectedRowKeys.length === 0 ? (U(), M(u, {
|
|
1736
1748
|
key: 2,
|
|
1737
1749
|
style: {
|
|
1738
1750
|
color: "#999999",
|
|
1739
1751
|
"font-size": "25px"
|
|
1740
1752
|
}
|
|
1741
|
-
})) :
|
|
1742
|
-
e.selectedRowKeys.length > 0 ? (
|
|
1753
|
+
})) : N("", !0),
|
|
1754
|
+
e.selectedRowKeys.length > 0 ? (U(), M(d, {
|
|
1743
1755
|
key: 3,
|
|
1744
1756
|
style: { "font-size": "25px" },
|
|
1745
1757
|
onClick: e.toRight
|
|
1746
|
-
}, null, 8, ["onClick"])) :
|
|
1758
|
+
}, null, 8, ["onClick"])) : N("", !0)
|
|
1747
1759
|
])], 4)]),
|
|
1748
1760
|
_: 1
|
|
1749
1761
|
}),
|
|
1750
|
-
|
|
1751
|
-
default:
|
|
1762
|
+
L(s, { span: 16 }, {
|
|
1763
|
+
default: X(() => [t[5] ||= F("div", { class: "column-title-container" }, [F("div", { class: "column-title" }, "基础列设置")], -1), L(o, {
|
|
1752
1764
|
bordered: !0,
|
|
1753
1765
|
columns: e.baseColumns,
|
|
1754
1766
|
rowHeight: 30,
|
|
@@ -1766,8 +1778,8 @@ function tt(e, t, n, r, i, a) {
|
|
|
1766
1778
|
scroll: { y: e.height - 90 },
|
|
1767
1779
|
size: "small"
|
|
1768
1780
|
}, {
|
|
1769
|
-
bodyCell:
|
|
1770
|
-
n.dataIndex === "label" ? (
|
|
1781
|
+
bodyCell: X(({ column: n, index: r, text: i, record: a, recordIndexs: o }) => [
|
|
1782
|
+
n.dataIndex === "label" ? (U(), M(f, {
|
|
1771
1783
|
key: 0,
|
|
1772
1784
|
value: e.getRawRecord(e.baseDataSource, o).label,
|
|
1773
1785
|
"onUpdate:value": (t) => e.getRawRecord(e.baseDataSource, o).label = t,
|
|
@@ -1776,13 +1788,13 @@ function tt(e, t, n, r, i, a) {
|
|
|
1776
1788
|
"value",
|
|
1777
1789
|
"onUpdate:value",
|
|
1778
1790
|
"onChange"
|
|
1779
|
-
])) :
|
|
1780
|
-
n.dataIndex === "field_name" ? (
|
|
1791
|
+
])) : N("", !0),
|
|
1792
|
+
n.dataIndex === "field_name" ? (U(), P(A, { key: 1 }, [I(J(i) + " ", 1), e.fieldMap && !e.fieldMap[i] ? (U(), M(p, {
|
|
1781
1793
|
key: 0,
|
|
1782
1794
|
title: "查询参数不存在",
|
|
1783
1795
|
style: { color: "#faad14" }
|
|
1784
|
-
})) :
|
|
1785
|
-
n.dataIndex === "type" ? (
|
|
1796
|
+
})) : N("", !0)], 64)) : N("", !0),
|
|
1797
|
+
n.dataIndex === "type" ? (U(), M(h, {
|
|
1786
1798
|
key: 2,
|
|
1787
1799
|
value: a.type,
|
|
1788
1800
|
"onUpdate:value": (e) => a.type = e,
|
|
@@ -1794,11 +1806,11 @@ function tt(e, t, n, r, i, a) {
|
|
|
1794
1806
|
style: { width: "100%" },
|
|
1795
1807
|
onChange: e.changeBase
|
|
1796
1808
|
}, {
|
|
1797
|
-
default:
|
|
1809
|
+
default: X(() => [(U(!0), P(A, null, K(e.getType(a), (e) => (U(), M(m, {
|
|
1798
1810
|
key: e.value,
|
|
1799
1811
|
value: e.value
|
|
1800
1812
|
}, {
|
|
1801
|
-
default:
|
|
1813
|
+
default: X(() => [I(J(e.name), 1)]),
|
|
1802
1814
|
_: 2
|
|
1803
1815
|
}, 1032, ["value"]))), 128))]),
|
|
1804
1816
|
_: 2
|
|
@@ -1806,25 +1818,25 @@ function tt(e, t, n, r, i, a) {
|
|
|
1806
1818
|
"value",
|
|
1807
1819
|
"onUpdate:value",
|
|
1808
1820
|
"onChange"
|
|
1809
|
-
])) :
|
|
1810
|
-
n.dataIndex === "operator_list" ? (
|
|
1821
|
+
])) : N("", !0),
|
|
1822
|
+
n.dataIndex === "operator_list" ? (U(), P(A, { key: 3 }, [!a.children || a.children.length === 0 ? (U(), M(g, {
|
|
1811
1823
|
key: 0,
|
|
1812
1824
|
record: a,
|
|
1813
1825
|
onChange: e.changeOperatorList
|
|
1814
|
-
}, null, 8, ["record", "onChange"])) :
|
|
1815
|
-
n.dataIndex === "default_operator" ? (
|
|
1826
|
+
}, null, 8, ["record", "onChange"])) : N("", !0)], 64)) : N("", !0),
|
|
1827
|
+
n.dataIndex === "default_operator" ? (U(), P(A, { key: 4 }, [!a.children || a.children.length === 0 ? (U(), M(_, {
|
|
1816
1828
|
key: 0,
|
|
1817
1829
|
record: a,
|
|
1818
1830
|
onChange: e.changeDefaultOperator
|
|
1819
|
-
}, null, 8, ["record", "onChange"])) :
|
|
1820
|
-
n.dataIndex === "action" ? (
|
|
1831
|
+
}, null, 8, ["record", "onChange"])) : N("", !0)], 64)) : N("", !0),
|
|
1832
|
+
n.dataIndex === "action" ? (U(), P(A, { key: 5 }, [e.changedFields[a.field_name] ? (U(), M(v, {
|
|
1821
1833
|
key: 0,
|
|
1822
1834
|
type: "link",
|
|
1823
1835
|
onClick: (t) => e.handleUpdateBaseColumn(e.getRawRecord(e.baseDataSource, o))
|
|
1824
1836
|
}, {
|
|
1825
|
-
default:
|
|
1837
|
+
default: X(() => [...t[4] ||= [I(" 更新 ", -1)]]),
|
|
1826
1838
|
_: 1
|
|
1827
|
-
}, 8, ["onClick"])) :
|
|
1839
|
+
}, 8, ["onClick"])) : N("", !0)], 64)) : N("", !0)
|
|
1828
1840
|
]),
|
|
1829
1841
|
_: 1
|
|
1830
1842
|
}, 8, [
|
|
@@ -1842,10 +1854,10 @@ function tt(e, t, n, r, i, a) {
|
|
|
1842
1854
|
_: 1
|
|
1843
1855
|
}, 8, ["style"]);
|
|
1844
1856
|
}
|
|
1845
|
-
var
|
|
1857
|
+
var st = /* @__PURE__ */ t(it, [["render", ot], ["__scopeId", "data-v-31481551"]]), ct = {
|
|
1846
1858
|
tables: "左侧栏表格",
|
|
1847
1859
|
data_list: "右侧栏表格"
|
|
1848
|
-
},
|
|
1860
|
+
}, lt = "未保存页面配置,需保存后才能同步", ut = R({
|
|
1849
1861
|
name: "configSync",
|
|
1850
1862
|
props: {
|
|
1851
1863
|
dataSource: {
|
|
@@ -1858,15 +1870,15 @@ var nt = /* @__PURE__ */ t($e, [["render", tt], ["__scopeId", "data-v-2b292566"]
|
|
|
1858
1870
|
}
|
|
1859
1871
|
},
|
|
1860
1872
|
setup(e) {
|
|
1861
|
-
let t =
|
|
1873
|
+
let t = ee(), n = G(!1), r = G(!1), i = G([]), o = G([]), s = G([]), l = G({}), u = g.map((e) => ({
|
|
1862
1874
|
label: m[e] || e,
|
|
1863
1875
|
value: e
|
|
1864
|
-
})), d =
|
|
1876
|
+
})), d = G([...x, ...g]), f = j(() => x.every((e) => d.value.includes(e))), p = j(() => !f.value && x.some((e) => d.value.includes(e))), h = (e) => {
|
|
1865
1877
|
e ? d.value = [...new Set([...d.value, ...x])] : d.value = d.value.filter((e) => !x.includes(e));
|
|
1866
|
-
}, _ =
|
|
1878
|
+
}, _ = G("standard"), S = Object.keys(y).map((e) => ({
|
|
1867
1879
|
label: y[e],
|
|
1868
1880
|
value: e
|
|
1869
|
-
})),
|
|
1881
|
+
})), C = j(() => _.value === "append" ? "目标节点没有该表格时,把该表的全部配置完整追加进去(未勾选的配置块也会一并写入)" : "目标节点没有该表格时,忽略这个同步项"), w = j(() => ct[e.tableType] || e.tableType), T = j(() => o.value.map((e) => l.value[e]).filter((e) => !!e)), E = () => {
|
|
1870
1882
|
let e = t.selectNode, n = c();
|
|
1871
1883
|
return !e?.id || !e?.state || !n ? null : {
|
|
1872
1884
|
org_id: Number(n),
|
|
@@ -1874,12 +1886,12 @@ var nt = /* @__PURE__ */ t($e, [["render", tt], ["__scopeId", "data-v-2b292566"]
|
|
|
1874
1886
|
menu_flag: e.state,
|
|
1875
1887
|
name: e.name || e.state
|
|
1876
1888
|
};
|
|
1877
|
-
},
|
|
1889
|
+
}, D = j(() => E()), te = j(() => !!e.dataSource?.id && !!D.value && T.value.length > 0 && d.value.length > 0), O = G([]), k = G({}), A = G({}), M = G(""), N = (e, n, r) => {
|
|
1878
1890
|
let i = [];
|
|
1879
1891
|
for (let a of e || []) {
|
|
1880
1892
|
let e = a.is_flow_node ? `flow_node_${n}_${a.id}` : `flow_org_${n}_${a.id}`, o = !!a.is_flow_node && a.menu_flag === t.selectNode?.state && `${a.org_id ?? n}` == `${c() ?? ""}`;
|
|
1881
|
-
if (o && (
|
|
1882
|
-
let s =
|
|
1893
|
+
if (o && (M.value = e), a.is_flow_node && o) continue;
|
|
1894
|
+
let s = N(a.children || [], n, r);
|
|
1883
1895
|
if (a.is_flow_node) {
|
|
1884
1896
|
let t = a.page_setting_saved !== !1, o = {
|
|
1885
1897
|
key: e,
|
|
@@ -1906,16 +1918,16 @@ var nt = /* @__PURE__ */ t($e, [["render", tt], ["__scopeId", "data-v-2b292566"]
|
|
|
1906
1918
|
});
|
|
1907
1919
|
}
|
|
1908
1920
|
return i;
|
|
1909
|
-
},
|
|
1921
|
+
}, P = (e, t, n = []) => {
|
|
1910
1922
|
for (let r of e) {
|
|
1911
1923
|
if (r.key === t) return n;
|
|
1912
1924
|
if (r.children?.length) {
|
|
1913
|
-
let e =
|
|
1925
|
+
let e = P(r.children, t, [...n, r.key]);
|
|
1914
1926
|
if (e) return e;
|
|
1915
1927
|
}
|
|
1916
1928
|
}
|
|
1917
1929
|
return null;
|
|
1918
|
-
},
|
|
1930
|
+
}, F = (e, t) => {
|
|
1919
1931
|
for (let n of e) {
|
|
1920
1932
|
if (n.key === t) {
|
|
1921
1933
|
let e = [], t = (n) => {
|
|
@@ -1924,14 +1936,14 @@ var nt = /* @__PURE__ */ t($e, [["render", tt], ["__scopeId", "data-v-2b292566"]
|
|
|
1924
1936
|
return t(n.children || []), e;
|
|
1925
1937
|
}
|
|
1926
1938
|
if (n.children?.length) {
|
|
1927
|
-
let e =
|
|
1939
|
+
let e = F(n.children, t);
|
|
1928
1940
|
if (e !== null) return e;
|
|
1929
1941
|
}
|
|
1930
1942
|
}
|
|
1931
1943
|
return null;
|
|
1932
|
-
},
|
|
1933
|
-
l.value = {},
|
|
1934
|
-
let t = `${e.id}`.replace("org_", ""), n = `org_${t}`, r =
|
|
1944
|
+
}, I = () => {
|
|
1945
|
+
l.value = {}, M.value = "", i.value = O.value.map((e) => {
|
|
1946
|
+
let t = `${e.id}`.replace("org_", ""), n = `org_${t}`, r = k.value[t], i = r ? N(r, t, e.name) : [];
|
|
1935
1947
|
return {
|
|
1936
1948
|
key: n,
|
|
1937
1949
|
title: e.name,
|
|
@@ -1940,56 +1952,56 @@ var nt = /* @__PURE__ */ t($e, [["render", tt], ["__scopeId", "data-v-2b292566"]
|
|
|
1940
1952
|
children: i
|
|
1941
1953
|
};
|
|
1942
1954
|
}), o.value = o.value.filter((e) => !!l.value[e]);
|
|
1943
|
-
},
|
|
1955
|
+
}, L = async (e) => {
|
|
1944
1956
|
let t = e.replace("org_", "");
|
|
1945
|
-
if (!(
|
|
1946
|
-
|
|
1947
|
-
...
|
|
1957
|
+
if (!(k.value[t] || A.value[e])) {
|
|
1958
|
+
A.value = {
|
|
1959
|
+
...A.value,
|
|
1948
1960
|
[e]: !0
|
|
1949
1961
|
};
|
|
1950
1962
|
try {
|
|
1951
1963
|
let e = await a({ org_id: t }, "/approve/query_org_flow_tree");
|
|
1952
|
-
|
|
1953
|
-
...
|
|
1964
|
+
k.value = {
|
|
1965
|
+
...k.value,
|
|
1954
1966
|
[t]: e?.data || []
|
|
1955
|
-
},
|
|
1967
|
+
}, I();
|
|
1956
1968
|
} catch (e) {
|
|
1957
1969
|
$.error(e?.message || "加载该组织下的流程节点失败");
|
|
1958
1970
|
} finally {
|
|
1959
|
-
let t = { ...
|
|
1960
|
-
delete t[e],
|
|
1971
|
+
let t = { ...A.value };
|
|
1972
|
+
delete t[e], A.value = t;
|
|
1961
1973
|
}
|
|
1962
1974
|
}
|
|
1963
|
-
},
|
|
1975
|
+
}, R = async () => {
|
|
1964
1976
|
n.value = !0;
|
|
1965
1977
|
try {
|
|
1966
|
-
|
|
1978
|
+
O.value = (await a({}, "/approve/query_sync_org_list"))?.data || [], I(), await z();
|
|
1967
1979
|
} catch (e) {
|
|
1968
1980
|
$.error(e?.message || "加载组织列表失败");
|
|
1969
1981
|
} finally {
|
|
1970
1982
|
n.value = !1;
|
|
1971
1983
|
}
|
|
1972
|
-
},
|
|
1984
|
+
}, z = async () => {
|
|
1973
1985
|
let e = `${c() ?? ""}`;
|
|
1974
1986
|
if (!e) return;
|
|
1975
1987
|
let t = `org_${e}`;
|
|
1976
|
-
if (!
|
|
1977
|
-
s.value = [...new Set([...s.value, t])], await
|
|
1988
|
+
if (!O.value.some((e) => `${e.id}` === t)) return;
|
|
1989
|
+
s.value = [...new Set([...s.value, t])], await L(t);
|
|
1978
1990
|
let n = Object.values(l.value).filter((t) => `${t.org_id}` === e && t.page_setting_saved);
|
|
1979
1991
|
if (n.length > 0) {
|
|
1980
1992
|
let e = n.map((e) => e.key);
|
|
1981
1993
|
o.value = [...new Set([...o.value, ...e])];
|
|
1982
1994
|
let t = new Set(s.value);
|
|
1983
|
-
for (let e of n) for (let n of
|
|
1995
|
+
for (let e of n) for (let n of P(i.value, e.key) || []) t.add(n);
|
|
1984
1996
|
s.value = [...t];
|
|
1985
1997
|
}
|
|
1986
1998
|
};
|
|
1987
|
-
|
|
1988
|
-
|
|
1999
|
+
Y(() => t.selectNode?.state, () => {
|
|
2000
|
+
O.value.length > 0 && I();
|
|
1989
2001
|
});
|
|
1990
|
-
let
|
|
1991
|
-
return
|
|
1992
|
-
|
|
2002
|
+
let B = 0;
|
|
2003
|
+
return H(() => {
|
|
2004
|
+
R();
|
|
1993
2005
|
}), {
|
|
1994
2006
|
treeLoading: n,
|
|
1995
2007
|
syncing: r,
|
|
@@ -2003,21 +2015,21 @@ var nt = /* @__PURE__ */ t($e, [["render", tt], ["__scopeId", "data-v-2b292566"]
|
|
|
2003
2015
|
toggleBase: h,
|
|
2004
2016
|
syncMode: _,
|
|
2005
2017
|
syncModeOptions: S,
|
|
2006
|
-
syncModeTip:
|
|
2007
|
-
tableTypeText:
|
|
2008
|
-
sourceInfo:
|
|
2009
|
-
targets:
|
|
2010
|
-
canSync:
|
|
2018
|
+
syncModeTip: C,
|
|
2019
|
+
tableTypeText: w,
|
|
2020
|
+
sourceInfo: D,
|
|
2021
|
+
targets: T,
|
|
2022
|
+
canSync: te,
|
|
2011
2023
|
handleCheck: (e) => {
|
|
2012
2024
|
let t = Array.isArray(e) ? e : e?.checked || [];
|
|
2013
2025
|
o.value = t.filter((e) => !!l.value[e]);
|
|
2014
|
-
let n = ++
|
|
2015
|
-
r.length !== 0 && Promise.all(r.map((e) =>
|
|
2016
|
-
if (n !==
|
|
2026
|
+
let n = ++B, r = t.filter((e) => e.startsWith("org_") && !k.value[e.replace("org_", "")]);
|
|
2027
|
+
r.length !== 0 && Promise.all(r.map((e) => L(e))).then(() => {
|
|
2028
|
+
if (n !== B) return;
|
|
2017
2029
|
let e = [];
|
|
2018
2030
|
for (let n of r) {
|
|
2019
2031
|
if (!t.includes(n)) continue;
|
|
2020
|
-
let r =
|
|
2032
|
+
let r = F(i.value, n) || [];
|
|
2021
2033
|
e.push(...r);
|
|
2022
2034
|
}
|
|
2023
2035
|
e.length > 0 && (o.value = [...new Set([...o.value, ...e])]);
|
|
@@ -2026,7 +2038,7 @@ var nt = /* @__PURE__ */ t($e, [["render", tt], ["__scopeId", "data-v-2b292566"]
|
|
|
2026
2038
|
handleExpand: (e) => {
|
|
2027
2039
|
let t = Array.isArray(e) ? e : [];
|
|
2028
2040
|
s.value = t;
|
|
2029
|
-
for (let e of t) e.startsWith("org_") &&
|
|
2041
|
+
for (let e of t) e.startsWith("org_") && L(e);
|
|
2030
2042
|
},
|
|
2031
2043
|
removeTarget: (e) => {
|
|
2032
2044
|
o.value = o.value.filter((t) => t !== e);
|
|
@@ -2036,16 +2048,16 @@ var nt = /* @__PURE__ */ t($e, [["render", tt], ["__scopeId", "data-v-2b292566"]
|
|
|
2036
2048
|
$.warning("当前表格没有「表格标识」,请先在「基础属性」里设置后再同步");
|
|
2037
2049
|
return;
|
|
2038
2050
|
}
|
|
2039
|
-
let t =
|
|
2051
|
+
let t = E();
|
|
2040
2052
|
if (!t) {
|
|
2041
2053
|
$.warning("未识别当前流程节点,请先在左侧重新选择流程节点");
|
|
2042
2054
|
return;
|
|
2043
2055
|
}
|
|
2044
|
-
if (
|
|
2056
|
+
if (T.value.length === 0) {
|
|
2045
2057
|
$.warning("请选择目标流程节点");
|
|
2046
2058
|
return;
|
|
2047
2059
|
}
|
|
2048
|
-
let n =
|
|
2060
|
+
let n = T.value.filter((e) => !e.page_setting_saved).map((e) => e.name);
|
|
2049
2061
|
if (n.length > 0) {
|
|
2050
2062
|
$.warning(`${n.join("、")} 未保存页面配置,需保存后才能同步`);
|
|
2051
2063
|
return;
|
|
@@ -2064,7 +2076,7 @@ var nt = /* @__PURE__ */ t($e, [["render", tt], ["__scopeId", "data-v-2b292566"]
|
|
|
2064
2076
|
let n = (await a({
|
|
2065
2077
|
sync_mode: _.value,
|
|
2066
2078
|
source: t,
|
|
2067
|
-
targets:
|
|
2079
|
+
targets: T.value.map((e) => ({
|
|
2068
2080
|
org_id: e.org_id,
|
|
2069
2081
|
node_id: e.node_id,
|
|
2070
2082
|
menu_flag: e.menu_flag,
|
|
@@ -2086,17 +2098,17 @@ var nt = /* @__PURE__ */ t($e, [["render", tt], ["__scopeId", "data-v-2b292566"]
|
|
|
2086
2098
|
r.value = !1;
|
|
2087
2099
|
}
|
|
2088
2100
|
},
|
|
2089
|
-
UNSAVED_HINT:
|
|
2101
|
+
UNSAVED_HINT: lt
|
|
2090
2102
|
};
|
|
2091
2103
|
}
|
|
2092
|
-
}),
|
|
2104
|
+
}), dt = { class: "config-sync" }, ft = { class: "sync-body" }, pt = { class: "sync-panel sync-panel-tree" }, mt = { class: "sync-tree-wrap" }, ht = { class: "sync-panel sync-panel-field" }, gt = { class: "sync-source" }, _t = { class: "sync-section" }, vt = { class: "sync-mode-tip" }, yt = { class: "sync-section" }, bt = { class: "sync-section" }, xt = { class: "sync-targets" }, St = { class: "sync-targets-title" }, Ct = {
|
|
2093
2105
|
key: 0,
|
|
2094
2106
|
class: "sync-targets-list"
|
|
2095
|
-
},
|
|
2096
|
-
function
|
|
2097
|
-
let o =
|
|
2098
|
-
return
|
|
2099
|
-
default:
|
|
2107
|
+
}, wt = { class: "sync-actions" };
|
|
2108
|
+
function Tt(e, t, n, r, i, a) {
|
|
2109
|
+
let o = q("exclamation-circle-outlined"), s = q("a-tooltip"), c = q("a-tree"), l = q("a-empty"), u = q("a-spin"), d = q("a-radio"), f = q("a-radio-group"), p = q("a-checkbox"), m = q("a-checkbox-group"), h = q("a-tag"), g = q("a-button");
|
|
2110
|
+
return U(), P("div", dt, [F("div", ft, [F("div", pt, [t[3] ||= F("div", { class: "sync-panel-header" }, [F("span", { class: "sync-panel-title" }, "目标流程节点"), F("span", { class: "sync-panel-tip" }, " 勾选组织/流程组织即选中其下全部流程节点;未保存页面配置的节点置灰不可选 ")], -1), L(u, { spinning: e.treeLoading }, {
|
|
2111
|
+
default: X(() => [F("div", mt, [e.treeData.length > 0 ? (U(), M(c, {
|
|
2100
2112
|
key: 0,
|
|
2101
2113
|
checkable: "",
|
|
2102
2114
|
selectable: !1,
|
|
@@ -2107,16 +2119,16 @@ function bt(e, t, n, r, i, a) {
|
|
|
2107
2119
|
onCheck: e.handleCheck,
|
|
2108
2120
|
onExpand: e.handleExpand
|
|
2109
2121
|
}, {
|
|
2110
|
-
title:
|
|
2122
|
+
title: X(({ title: n, dataRef: r }) => [F("span", null, J(n), 1), r.unsaved ? (U(), M(s, {
|
|
2111
2123
|
key: 0,
|
|
2112
2124
|
title: e.UNSAVED_HINT
|
|
2113
2125
|
}, {
|
|
2114
|
-
default:
|
|
2126
|
+
default: X(() => [L(o, {
|
|
2115
2127
|
class: "sync-unsaved-icon",
|
|
2116
|
-
onClick: t[0] ||=
|
|
2128
|
+
onClick: t[0] ||= ie(() => {}, ["stop"])
|
|
2117
2129
|
})]),
|
|
2118
2130
|
_: 1
|
|
2119
|
-
}, 8, ["title"])) :
|
|
2131
|
+
}, 8, ["title"])) : N("", !0)]),
|
|
2120
2132
|
_: 1
|
|
2121
2133
|
}, 8, [
|
|
2122
2134
|
"checked-keys",
|
|
@@ -2124,86 +2136,86 @@ function bt(e, t, n, r, i, a) {
|
|
|
2124
2136
|
"tree-data",
|
|
2125
2137
|
"onCheck",
|
|
2126
2138
|
"onExpand"
|
|
2127
|
-
])) : e.treeLoading ?
|
|
2139
|
+
])) : e.treeLoading ? N("", !0) : (U(), M(l, {
|
|
2128
2140
|
key: 1,
|
|
2129
2141
|
description: "没有可同步的流程节点"
|
|
2130
2142
|
}))])]),
|
|
2131
2143
|
_: 1
|
|
2132
|
-
}, 8, ["spinning"])]),
|
|
2133
|
-
t[14] ||=
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2144
|
+
}, 8, ["spinning"])]), F("div", ht, [
|
|
2145
|
+
t[14] ||= F("div", { class: "sync-panel-header" }, [F("span", { class: "sync-panel-title" }, "同步项"), F("span", { class: "sync-panel-tip" }, "勾选需要同步过去的配置块")], -1),
|
|
2146
|
+
F("div", gt, [
|
|
2147
|
+
F("div", null, "来源:" + J(e.tableTypeText) + "「" + J(e.dataSource?.title || "-") + "」", 1),
|
|
2148
|
+
F("div", null, [I(" 类型:" + J(e.tableType) + " 表格标识: ", 1), F("span", { class: B({ "sync-error-text": !e.dataSource?.id }) }, J(e.dataSource?.id || "未设置"), 3)]),
|
|
2149
|
+
F("div", null, [t[4] ||= I(" 来源节点: ", -1), F("span", { class: B({ "sync-error-text": !e.sourceInfo }) }, J(e.sourceInfo ? `${e.sourceInfo.name}(组织 ${e.sourceInfo.org_id} / 节点 ${e.sourceInfo.node_id})` : "未识别,请先在左侧重新选择流程节点"), 3)])
|
|
2138
2150
|
]),
|
|
2139
|
-
|
|
2140
|
-
t[7] ||=
|
|
2141
|
-
|
|
2151
|
+
F("div", _t, [
|
|
2152
|
+
t[7] ||= F("div", { class: "sync-section-title" }, "同步类型", -1),
|
|
2153
|
+
L(f, {
|
|
2142
2154
|
value: e.syncMode,
|
|
2143
2155
|
"onUpdate:value": t[1] ||= (t) => e.syncMode = t
|
|
2144
2156
|
}, {
|
|
2145
|
-
default:
|
|
2146
|
-
default:
|
|
2157
|
+
default: X(() => [L(d, { value: "standard" }, {
|
|
2158
|
+
default: X(() => [...t[5] ||= [I("标准同步", -1)]]),
|
|
2147
2159
|
_: 1
|
|
2148
|
-
}),
|
|
2149
|
-
default:
|
|
2160
|
+
}), L(d, { value: "append" }, {
|
|
2161
|
+
default: X(() => [...t[6] ||= [I("自动追加配置", -1)]]),
|
|
2150
2162
|
_: 1
|
|
2151
2163
|
})]),
|
|
2152
2164
|
_: 1
|
|
2153
2165
|
}, 8, ["value"]),
|
|
2154
|
-
|
|
2166
|
+
F("div", vt, J(e.syncModeTip), 1)
|
|
2155
2167
|
]),
|
|
2156
|
-
|
|
2157
|
-
t[9] ||=
|
|
2158
|
-
|
|
2168
|
+
F("div", yt, [
|
|
2169
|
+
t[9] ||= F("div", { class: "sync-section-title" }, "基础配置", -1),
|
|
2170
|
+
L(p, {
|
|
2159
2171
|
checked: e.baseChecked,
|
|
2160
2172
|
indeterminate: e.baseIndeterminate,
|
|
2161
2173
|
"onUpdate:checked": e.toggleBase
|
|
2162
2174
|
}, {
|
|
2163
|
-
default:
|
|
2175
|
+
default: X(() => [...t[8] ||= [I(" 随同步写入基础配置 ", -1)]]),
|
|
2164
2176
|
_: 1
|
|
2165
2177
|
}, 8, [
|
|
2166
2178
|
"checked",
|
|
2167
2179
|
"indeterminate",
|
|
2168
2180
|
"onUpdate:checked"
|
|
2169
2181
|
]),
|
|
2170
|
-
t[10] ||=
|
|
2182
|
+
t[10] ||= F("div", { class: "sync-mode-tip" }, "含:名称、是否为标准模型查询、列表URL、模型、查询参数", -1)
|
|
2171
2183
|
]),
|
|
2172
|
-
|
|
2184
|
+
F("div", bt, [t[11] ||= F("div", { class: "sync-section-title" }, "表格配置块", -1), L(m, {
|
|
2173
2185
|
value: e.fields,
|
|
2174
2186
|
"onUpdate:value": t[2] ||= (t) => e.fields = t,
|
|
2175
2187
|
options: e.tableFieldOptions,
|
|
2176
2188
|
class: "sync-options"
|
|
2177
2189
|
}, null, 8, ["value", "options"])]),
|
|
2178
|
-
|
|
2190
|
+
F("div", xt, [F("div", St, "已选目标:" + J(e.targets.length) + " 个节点", 1), e.targets.length > 0 ? (U(), P("div", Ct, [(U(!0), P(A, null, K(e.targets, (t) => (U(), M(h, {
|
|
2179
2191
|
key: t.key,
|
|
2180
2192
|
closable: "",
|
|
2181
2193
|
onClose: (n) => e.removeTarget(t.key)
|
|
2182
2194
|
}, {
|
|
2183
|
-
default:
|
|
2195
|
+
default: X(() => [I(J(t.org_name) + " / " + J(t.name), 1)]),
|
|
2184
2196
|
_: 2
|
|
2185
|
-
}, 1032, ["onClose"]))), 128))])) :
|
|
2186
|
-
|
|
2197
|
+
}, 1032, ["onClose"]))), 128))])) : N("", !0)]),
|
|
2198
|
+
F("div", wt, [L(g, {
|
|
2187
2199
|
type: "primary",
|
|
2188
2200
|
loading: e.syncing,
|
|
2189
2201
|
disabled: !e.canSync,
|
|
2190
2202
|
onClick: e.handleSync
|
|
2191
2203
|
}, {
|
|
2192
|
-
default:
|
|
2204
|
+
default: X(() => [...t[12] ||= [I(" 同步 ", -1)]]),
|
|
2193
2205
|
_: 1
|
|
2194
2206
|
}, 8, [
|
|
2195
2207
|
"loading",
|
|
2196
2208
|
"disabled",
|
|
2197
2209
|
"onClick"
|
|
2198
|
-
]), t[13] ||=
|
|
2210
|
+
]), t[13] ||= F("span", { class: "sync-actions-tip" }, " 同步只写入目标节点,当前节点不会被修改,同步后需在目标节点重新进入页面查看 ", -1)])
|
|
2199
2211
|
])])]);
|
|
2200
2212
|
}
|
|
2201
|
-
var
|
|
2213
|
+
var Et = /* @__PURE__ */ t(ut, [["render", Tt], ["__scopeId", "data-v-79b74022"]]), Dt = R({
|
|
2202
2214
|
name: "ConfirmInput",
|
|
2203
2215
|
components: {
|
|
2204
|
-
EditOutlined:
|
|
2205
|
-
CheckOutlined:
|
|
2206
|
-
CloseOutlined:
|
|
2216
|
+
EditOutlined: Z,
|
|
2217
|
+
CheckOutlined: ae,
|
|
2218
|
+
CloseOutlined: se
|
|
2207
2219
|
},
|
|
2208
2220
|
props: { value: {
|
|
2209
2221
|
type: String,
|
|
@@ -2211,18 +2223,18 @@ var xt = /* @__PURE__ */ t(at, [["render", bt], ["__scopeId", "data-v-79b74022"]
|
|
|
2211
2223
|
} },
|
|
2212
2224
|
emits: ["update:value", "change"],
|
|
2213
2225
|
setup(e, { emit: t }) {
|
|
2214
|
-
let n =
|
|
2215
|
-
return
|
|
2226
|
+
let n = G(!1), r = G(""), i = G(null);
|
|
2227
|
+
return Y(() => e.value, () => {
|
|
2216
2228
|
n.value = !1;
|
|
2217
2229
|
}), {
|
|
2218
2230
|
isEditing: n,
|
|
2219
2231
|
editedValue: r,
|
|
2220
2232
|
inputRef: i,
|
|
2221
2233
|
handleEdit: async () => {
|
|
2222
|
-
n.value = !0, r.value = e.value, await
|
|
2234
|
+
n.value = !0, r.value = e.value, await z(), i.value?.focus();
|
|
2223
2235
|
},
|
|
2224
2236
|
handleConfirm: () => {
|
|
2225
|
-
r.value !== e.value && t("update:value", r.value), n.value = !1,
|
|
2237
|
+
r.value !== e.value && t("update:value", r.value), n.value = !1, z(() => {
|
|
2226
2238
|
t("change", r.value);
|
|
2227
2239
|
});
|
|
2228
2240
|
},
|
|
@@ -2231,11 +2243,11 @@ var xt = /* @__PURE__ */ t(at, [["render", bt], ["__scopeId", "data-v-79b74022"]
|
|
|
2231
2243
|
}
|
|
2232
2244
|
};
|
|
2233
2245
|
}
|
|
2234
|
-
}),
|
|
2235
|
-
function
|
|
2236
|
-
let o =
|
|
2237
|
-
return
|
|
2238
|
-
|
|
2246
|
+
}), Ot = { class: "confirm-input-wrapper" }, kt = { class: "display-span" };
|
|
2247
|
+
function At(e, t, n, r, i, a) {
|
|
2248
|
+
let o = q("edit-outlined"), s = q("a-input"), c = q("check-outlined"), l = q("close-outlined");
|
|
2249
|
+
return U(), P("div", Ot, [e.isEditing ? (U(), P(A, { key: 1 }, [
|
|
2250
|
+
L(s, {
|
|
2239
2251
|
ref: "inputRef",
|
|
2240
2252
|
value: e.editedValue,
|
|
2241
2253
|
"onUpdate:value": t[0] ||= (t) => e.editedValue = t,
|
|
@@ -2243,31 +2255,31 @@ function Tt(e, t, n, r, i, a) {
|
|
|
2243
2255
|
style: { "flex-grow": "1" },
|
|
2244
2256
|
onPressEnter: e.handleConfirm
|
|
2245
2257
|
}, null, 8, ["value", "onPressEnter"]),
|
|
2246
|
-
|
|
2258
|
+
L(c, {
|
|
2247
2259
|
class: "action-icon",
|
|
2248
2260
|
onClick: e.handleConfirm
|
|
2249
2261
|
}, null, 8, ["onClick"]),
|
|
2250
|
-
|
|
2262
|
+
L(l, {
|
|
2251
2263
|
class: "action-icon",
|
|
2252
2264
|
onClick: e.handleCancel
|
|
2253
2265
|
}, null, 8, ["onClick"])
|
|
2254
|
-
], 64)) : (
|
|
2266
|
+
], 64)) : (U(), P(A, { key: 0 }, [F("span", kt, J(e.value || "\xA0"), 1), L(o, {
|
|
2255
2267
|
class: "edit-icon",
|
|
2256
2268
|
onClick: e.handleEdit
|
|
2257
2269
|
}, null, 8, ["onClick"])], 64))]);
|
|
2258
2270
|
}
|
|
2259
2271
|
//#endregion
|
|
2260
2272
|
//#region src/components/approval/components/approvalPageConfig/tableConfig.vue?vue&type=script&lang.ts
|
|
2261
|
-
var
|
|
2273
|
+
var jt = R({
|
|
2262
2274
|
name: "tableConfig",
|
|
2263
2275
|
components: {
|
|
2264
|
-
BaseConditions:
|
|
2265
|
-
ButtonConfig:
|
|
2266
|
-
ColumnConfig:
|
|
2267
|
-
searchConfig:
|
|
2268
|
-
configSync:
|
|
2269
|
-
confirmInput: /* @__PURE__ */ t(
|
|
2270
|
-
JsonText:
|
|
2276
|
+
BaseConditions: Me,
|
|
2277
|
+
ButtonConfig: k,
|
|
2278
|
+
ColumnConfig: Ye,
|
|
2279
|
+
searchConfig: st,
|
|
2280
|
+
configSync: Et,
|
|
2281
|
+
confirmInput: /* @__PURE__ */ t(Dt, [["render", At], ["__scopeId", "data-v-aa92417a"]]),
|
|
2282
|
+
JsonText: O
|
|
2271
2283
|
},
|
|
2272
2284
|
props: {
|
|
2273
2285
|
dataSource: {
|
|
@@ -2290,25 +2302,37 @@ var Et = F({
|
|
|
2290
2302
|
},
|
|
2291
2303
|
emits: ["update:dataSource", "change_id"],
|
|
2292
2304
|
setup(e, { emit: t }) {
|
|
2293
|
-
let n =
|
|
2305
|
+
let n = G("1"), r = G(!1), i = G(null), o = G(!1), s = G(null), c = (t) => {
|
|
2294
2306
|
e.dataSource.is_normal_model = t;
|
|
2295
|
-
}, l =
|
|
2307
|
+
}, l = G([]), d = async () => {
|
|
2296
2308
|
let e = (await a({}, "sys/base_model_list", !1, { skip_error: !0 }))?.data;
|
|
2297
2309
|
e && e.length > 0 && (l.value = e.map((e) => ({
|
|
2298
2310
|
label: `${e.name}(${e.value})`,
|
|
2299
2311
|
value: e.value
|
|
2300
2312
|
})));
|
|
2313
|
+
let t = u().currentOrg?.id;
|
|
2314
|
+
((await a({ org_id: t }, "/db_view/query_db_view_menu_list", !1, { skip_error: !0 }))?.list || []).filter((e) => e.org_id === t).forEach((e) => {
|
|
2315
|
+
l.value.push({
|
|
2316
|
+
label: `${e.name}(db_view-${e.flag})`,
|
|
2317
|
+
value: `db_view-${e.flag}`
|
|
2318
|
+
});
|
|
2319
|
+
});
|
|
2301
2320
|
};
|
|
2302
|
-
return
|
|
2303
|
-
|
|
2321
|
+
return H(() => {
|
|
2322
|
+
d();
|
|
2304
2323
|
}), {
|
|
2305
2324
|
activeKey: n,
|
|
2306
2325
|
showColumnConfig: r,
|
|
2307
2326
|
handleIsNormalModelChange: c,
|
|
2308
2327
|
handleModelTypeChange: (n) => {
|
|
2309
|
-
e.dataSource.modelType = n
|
|
2310
|
-
|
|
2311
|
-
|
|
2328
|
+
if (e.dataSource.modelType = n, w(n)) e.dataSource.list_url = D(n), e.dataSource.id = n, T(n, u().currentOrg?.id).then((t) => {
|
|
2329
|
+
e.dataSource.rowKey = t.rowKey || "_id";
|
|
2330
|
+
});
|
|
2331
|
+
else {
|
|
2332
|
+
let t = n.split("-"), r = t[0], i = t[1];
|
|
2333
|
+
e.dataSource.list_url = `/${r}/query_${i}_list`;
|
|
2334
|
+
}
|
|
2335
|
+
e.dataSource.id = n, t("change_id", e.dataSource);
|
|
2312
2336
|
},
|
|
2313
2337
|
handleListUrlChange: (t) => {
|
|
2314
2338
|
e.dataSource.modelType = null;
|
|
@@ -2316,7 +2340,7 @@ var Et = F({
|
|
|
2316
2340
|
modelTypeOptions: l,
|
|
2317
2341
|
ColumnConfigDataSource: i,
|
|
2318
2342
|
openColumnConfig: () => {
|
|
2319
|
-
i.value =
|
|
2343
|
+
i.value = fe(e.dataSource.columns || []), r.value = !0;
|
|
2320
2344
|
},
|
|
2321
2345
|
confirmColumnConfig: () => {
|
|
2322
2346
|
t("update:dataSource", {
|
|
@@ -2327,7 +2351,7 @@ var Et = F({
|
|
|
2327
2351
|
showSearchConfig: o,
|
|
2328
2352
|
SearchConfigDataSource: s,
|
|
2329
2353
|
openSearchConfig: () => {
|
|
2330
|
-
s.value =
|
|
2354
|
+
s.value = fe(e.dataSource.search_config || []), o.value = !0;
|
|
2331
2355
|
},
|
|
2332
2356
|
confirmSearchConfig: () => {
|
|
2333
2357
|
t("update:dataSource", {
|
|
@@ -2347,90 +2371,90 @@ var Et = F({
|
|
|
2347
2371
|
}
|
|
2348
2372
|
};
|
|
2349
2373
|
}
|
|
2350
|
-
}),
|
|
2351
|
-
function
|
|
2352
|
-
let o =
|
|
2353
|
-
return
|
|
2354
|
-
|
|
2374
|
+
}), Mt = /* @__PURE__ */ e({ default: () => Ft }), Nt = { key: 1 };
|
|
2375
|
+
function Pt(e, t, n, r, i, a) {
|
|
2376
|
+
let o = q("a-button"), s = q("a-space"), c = q("confirm-input"), l = q("a-form-item"), u = q("a-input"), d = q("a-switch"), f = q("a-select"), p = q("json-text"), m = q("a-form"), h = q("a-tab-pane"), g = q("BaseConditions"), _ = q("ButtonConfig"), v = q("config-sync"), y = q("a-tabs"), b = q("ColumnConfig"), x = q("a-modal"), S = q("search-config");
|
|
2377
|
+
return U(), P(A, null, [
|
|
2378
|
+
L(y, {
|
|
2355
2379
|
activeKey: e.activeKey,
|
|
2356
2380
|
"onUpdate:activeKey": t[10] ||= (t) => e.activeKey = t
|
|
2357
2381
|
}, {
|
|
2358
|
-
rightExtra:
|
|
2359
|
-
default:
|
|
2382
|
+
rightExtra: X(() => [L(s, { size: 20 }, {
|
|
2383
|
+
default: X(() => [L(o, {
|
|
2360
2384
|
type: "primary",
|
|
2361
2385
|
onClick: e.openColumnConfig
|
|
2362
2386
|
}, {
|
|
2363
|
-
default:
|
|
2387
|
+
default: X(() => [...t[15] ||= [I(" 列配置 ", -1)]]),
|
|
2364
2388
|
_: 1
|
|
2365
|
-
}, 8, ["onClick"]),
|
|
2389
|
+
}, 8, ["onClick"]), L(o, {
|
|
2366
2390
|
type: "primary",
|
|
2367
2391
|
onClick: e.openSearchConfig
|
|
2368
2392
|
}, {
|
|
2369
|
-
default:
|
|
2393
|
+
default: X(() => [...t[16] ||= [I(" 查询配置 ", -1)]]),
|
|
2370
2394
|
_: 1
|
|
2371
2395
|
}, 8, ["onClick"])]),
|
|
2372
2396
|
_: 1
|
|
2373
2397
|
})]),
|
|
2374
|
-
default:
|
|
2375
|
-
|
|
2398
|
+
default: X(() => [
|
|
2399
|
+
L(h, {
|
|
2376
2400
|
key: "1",
|
|
2377
2401
|
tab: "基础属性"
|
|
2378
2402
|
}, {
|
|
2379
|
-
default:
|
|
2380
|
-
default:
|
|
2381
|
-
|
|
2382
|
-
default:
|
|
2403
|
+
default: X(() => [L(m, { model: e.dataSource }, {
|
|
2404
|
+
default: X(() => [
|
|
2405
|
+
L(l, { label: "表格标识" }, {
|
|
2406
|
+
default: X(() => [L(c, {
|
|
2383
2407
|
value: e.dataSource.id,
|
|
2384
2408
|
"onUpdate:value": e.handleChangeId
|
|
2385
2409
|
}, null, 8, ["value", "onUpdate:value"])]),
|
|
2386
2410
|
_: 1
|
|
2387
2411
|
}),
|
|
2388
|
-
|
|
2389
|
-
default:
|
|
2412
|
+
L(l, { label: "名称" }, {
|
|
2413
|
+
default: X(() => [L(u, {
|
|
2390
2414
|
value: e.dataSource.title,
|
|
2391
2415
|
"onUpdate:value": t[0] ||= (t) => e.dataSource.title = t
|
|
2392
2416
|
}, null, 8, ["value"])]),
|
|
2393
2417
|
_: 1
|
|
2394
2418
|
}),
|
|
2395
|
-
|
|
2396
|
-
default:
|
|
2419
|
+
L(l, { label: "组名" }, {
|
|
2420
|
+
default: X(() => [L(u, {
|
|
2397
2421
|
value: e.dataSource.group_title,
|
|
2398
2422
|
"onUpdate:value": t[1] ||= (t) => e.dataSource.group_title = t
|
|
2399
2423
|
}, null, 8, ["value"])]),
|
|
2400
2424
|
_: 1
|
|
2401
2425
|
}),
|
|
2402
|
-
|
|
2403
|
-
default:
|
|
2426
|
+
L(l, { label: "是否隐藏" }, {
|
|
2427
|
+
default: X(() => [L(d, {
|
|
2404
2428
|
checked: e.dataSource.is_hidden,
|
|
2405
2429
|
"onUpdate:checked": t[2] ||= (t) => e.dataSource.is_hidden = t
|
|
2406
2430
|
}, null, 8, ["checked"])]),
|
|
2407
2431
|
_: 1
|
|
2408
2432
|
}),
|
|
2409
|
-
|
|
2410
|
-
default:
|
|
2433
|
+
L(l, { label: "是否为标准模型查询" }, {
|
|
2434
|
+
default: X(() => [L(d, {
|
|
2411
2435
|
checked: e.dataSource.is_normal_model,
|
|
2412
2436
|
"onUpdate:checked": t[3] ||= (t) => e.dataSource.is_normal_model = t
|
|
2413
2437
|
}, null, 8, ["checked"])]),
|
|
2414
2438
|
_: 1
|
|
2415
2439
|
}),
|
|
2416
|
-
|
|
2417
|
-
default:
|
|
2440
|
+
L(l, { label: "是否为多选" }, {
|
|
2441
|
+
default: X(() => [L(d, {
|
|
2418
2442
|
checked: e.dataSource.rowSelectionType || "checkbox",
|
|
2419
2443
|
"onUpdate:checked": t[4] ||= (t) => e.dataSource.rowSelectionType = t,
|
|
2420
2444
|
checkedValue: "checkbox",
|
|
2421
2445
|
"un-checked-value": "radio"
|
|
2422
2446
|
}, {
|
|
2423
|
-
checkedChildren:
|
|
2424
|
-
unCheckedChildren:
|
|
2447
|
+
checkedChildren: X(() => [...t[17] ||= [I("多选", -1)]]),
|
|
2448
|
+
unCheckedChildren: X(() => [...t[18] ||= [I("单选", -1)]]),
|
|
2425
2449
|
_: 1
|
|
2426
2450
|
}, 8, ["checked"])]),
|
|
2427
2451
|
_: 1
|
|
2428
2452
|
}),
|
|
2429
|
-
e.dataSource.is_normal_model ? (
|
|
2453
|
+
e.dataSource.is_normal_model ? (U(), M(l, {
|
|
2430
2454
|
key: 0,
|
|
2431
2455
|
label: "模型"
|
|
2432
2456
|
}, {
|
|
2433
|
-
default:
|
|
2457
|
+
default: X(() => [L(f, {
|
|
2434
2458
|
value: e.dataSource.modelType,
|
|
2435
2459
|
onChange: e.handleModelTypeChange,
|
|
2436
2460
|
"show-search": "",
|
|
@@ -2443,9 +2467,9 @@ function kt(e, t, n, r, i, a) {
|
|
|
2443
2467
|
"filter-option"
|
|
2444
2468
|
])]),
|
|
2445
2469
|
_: 1
|
|
2446
|
-
})) :
|
|
2447
|
-
|
|
2448
|
-
default:
|
|
2470
|
+
})) : N("", !0),
|
|
2471
|
+
L(l, { label: "列表URL" }, {
|
|
2472
|
+
default: X(() => [e.dataSource.is_normal_model ? (U(), P("span", Nt, J(e.dataSource.list_url), 1)) : (U(), M(u, {
|
|
2449
2473
|
key: 0,
|
|
2450
2474
|
value: e.dataSource.list_url,
|
|
2451
2475
|
"onUpdate:value": t[5] ||= (t) => e.dataSource.list_url = t,
|
|
@@ -2453,14 +2477,14 @@ function kt(e, t, n, r, i, a) {
|
|
|
2453
2477
|
}, null, 8, ["value", "onChange"]))]),
|
|
2454
2478
|
_: 1
|
|
2455
2479
|
}),
|
|
2456
|
-
|
|
2457
|
-
default:
|
|
2458
|
-
default:
|
|
2480
|
+
L(l, { label: "查询参数" }, {
|
|
2481
|
+
default: X(() => [L(l, { label: "我发起的审批" }, {
|
|
2482
|
+
default: X(() => [L(d, {
|
|
2459
2483
|
checked: e.dataSource.query_params?.is_my_send,
|
|
2460
2484
|
onChange: e.isMySendChange
|
|
2461
2485
|
}, null, 8, ["checked", "onChange"])]),
|
|
2462
2486
|
_: 1
|
|
2463
|
-
}),
|
|
2487
|
+
}), L(p, {
|
|
2464
2488
|
value: e.dataSource.query_params,
|
|
2465
2489
|
"onUpdate:value": t[6] ||= (t) => e.dataSource.query_params = t,
|
|
2466
2490
|
rows: 3
|
|
@@ -2472,11 +2496,11 @@ function kt(e, t, n, r, i, a) {
|
|
|
2472
2496
|
}, 8, ["model"])]),
|
|
2473
2497
|
_: 1
|
|
2474
2498
|
}),
|
|
2475
|
-
|
|
2499
|
+
L(h, {
|
|
2476
2500
|
key: "3",
|
|
2477
2501
|
tab: "基础查询条件"
|
|
2478
2502
|
}, {
|
|
2479
|
-
default:
|
|
2503
|
+
default: X(() => [L(g, {
|
|
2480
2504
|
"model-type": e.dataSource.modelType,
|
|
2481
2505
|
"data-source": e.dataSource.base_conditions,
|
|
2482
2506
|
"onUpdate:dataSource": t[7] ||= (t) => e.dataSource.base_conditions = t,
|
|
@@ -2488,41 +2512,41 @@ function kt(e, t, n, r, i, a) {
|
|
|
2488
2512
|
])]),
|
|
2489
2513
|
_: 1
|
|
2490
2514
|
}),
|
|
2491
|
-
|
|
2515
|
+
L(h, {
|
|
2492
2516
|
key: "5",
|
|
2493
2517
|
tab: "底部按钮配置"
|
|
2494
2518
|
}, {
|
|
2495
|
-
default:
|
|
2519
|
+
default: X(() => [L(_, {
|
|
2496
2520
|
"data-source": e.dataSource.actions,
|
|
2497
2521
|
"onUpdate:dataSource": t[8] ||= (t) => e.dataSource.actions = t
|
|
2498
2522
|
}, null, 8, ["data-source"])]),
|
|
2499
2523
|
_: 1
|
|
2500
2524
|
}),
|
|
2501
|
-
|
|
2525
|
+
L(h, {
|
|
2502
2526
|
key: "6",
|
|
2503
2527
|
tab: "行按钮配置"
|
|
2504
2528
|
}, {
|
|
2505
|
-
default:
|
|
2529
|
+
default: X(() => [L(_, {
|
|
2506
2530
|
"data-source": e.dataSource.row_actions,
|
|
2507
2531
|
"onUpdate:dataSource": t[9] ||= (t) => e.dataSource.row_actions = t
|
|
2508
2532
|
}, null, 8, ["data-source"])]),
|
|
2509
2533
|
_: 1
|
|
2510
2534
|
}),
|
|
2511
|
-
|
|
2535
|
+
L(h, {
|
|
2512
2536
|
key: "7",
|
|
2513
2537
|
tab: "配置同步"
|
|
2514
2538
|
}, {
|
|
2515
|
-
default:
|
|
2539
|
+
default: X(() => [e.activeKey === "7" ? (U(), M(v, {
|
|
2516
2540
|
key: 0,
|
|
2517
2541
|
"data-source": e.dataSource,
|
|
2518
2542
|
"table-type": e.tableType
|
|
2519
|
-
}, null, 8, ["data-source", "table-type"])) :
|
|
2543
|
+
}, null, 8, ["data-source", "table-type"])) : N("", !0)]),
|
|
2520
2544
|
_: 1
|
|
2521
2545
|
})
|
|
2522
2546
|
]),
|
|
2523
2547
|
_: 1
|
|
2524
2548
|
}, 8, ["activeKey"]),
|
|
2525
|
-
|
|
2549
|
+
L(x, {
|
|
2526
2550
|
visible: e.showColumnConfig,
|
|
2527
2551
|
"onUpdate:visible": t[12] ||= (t) => e.showColumnConfig = t,
|
|
2528
2552
|
title: "列配置",
|
|
@@ -2531,15 +2555,15 @@ function kt(e, t, n, r, i, a) {
|
|
|
2531
2555
|
destroyOnClose: !0,
|
|
2532
2556
|
onOk: e.confirmColumnConfig
|
|
2533
2557
|
}, {
|
|
2534
|
-
default:
|
|
2558
|
+
default: X(() => [e.showColumnConfig ? (U(), M(b, {
|
|
2535
2559
|
key: 0,
|
|
2536
2560
|
"data-source": e.ColumnConfigDataSource,
|
|
2537
2561
|
"onUpdate:dataSource": t[11] ||= (t) => e.ColumnConfigDataSource = t,
|
|
2538
2562
|
"model-type": e.dataSource.modelType
|
|
2539
|
-
}, null, 8, ["data-source", "model-type"])) :
|
|
2563
|
+
}, null, 8, ["data-source", "model-type"])) : N("", !0)]),
|
|
2540
2564
|
_: 1
|
|
2541
2565
|
}, 8, ["visible", "onOk"]),
|
|
2542
|
-
|
|
2566
|
+
L(x, {
|
|
2543
2567
|
visible: e.showSearchConfig,
|
|
2544
2568
|
"onUpdate:visible": t[14] ||= (t) => e.showSearchConfig = t,
|
|
2545
2569
|
title: "查询配置",
|
|
@@ -2548,16 +2572,16 @@ function kt(e, t, n, r, i, a) {
|
|
|
2548
2572
|
destroyOnClose: !0,
|
|
2549
2573
|
onOk: e.confirmSearchConfig
|
|
2550
2574
|
}, {
|
|
2551
|
-
default:
|
|
2575
|
+
default: X(() => [e.showSearchConfig ? (U(), M(S, {
|
|
2552
2576
|
key: 0,
|
|
2553
2577
|
record: e.SearchConfigDataSource,
|
|
2554
2578
|
"onUpdate:record": t[13] ||= (t) => e.SearchConfigDataSource = t,
|
|
2555
2579
|
"model-type": e.dataSource.modelType
|
|
2556
|
-
}, null, 8, ["record", "model-type"])) :
|
|
2580
|
+
}, null, 8, ["record", "model-type"])) : N("", !0)]),
|
|
2557
2581
|
_: 1
|
|
2558
2582
|
}, 8, ["visible", "onOk"])
|
|
2559
2583
|
], 64);
|
|
2560
2584
|
}
|
|
2561
|
-
var
|
|
2585
|
+
var Ft = /* @__PURE__ */ t(jt, [["render", Pt], ["__scopeId", "data-v-5c5e6329"]]);
|
|
2562
2586
|
//#endregion
|
|
2563
|
-
export {
|
|
2587
|
+
export { Mt as n, Me as r, Ft as t };
|