sag-ubmp-pc 1.0.33 → 1.0.35
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/sag-ubmp-pc.es.js +105 -105
- package/dist/sag-ubmp-pc.umd.js +3 -3
- package/package.json +1 -1
package/dist/sag-ubmp-pc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Ae, { trim as ke, debounce as jt } from "xe-utils";
|
|
2
|
-
import { inject as ge, ref as $, h as Te, getCurrentInstance as ql, nextTick as ut, reactive as te, defineComponent as
|
|
2
|
+
import { inject as ge, ref as $, h as Te, getCurrentInstance as ql, nextTick as ut, reactive as te, defineComponent as J, createVNode as q, openBlock as w, createElementBlock as I, Fragment as fe, createBlock as j, unref as b, createCommentVNode as z, onMounted as oe, resolveComponent as L, isRef as ft, createSlots as we, withCtx as B, defineAsyncComponent as Dl, computed as Bl, resolveDynamicComponent as Nl, mergeProps as ee, createElementVNode as K, toDisplayString as ae, useAttrs as El, provide as Tn, useSlots as Be, watch as he, withDirectives as Mn, createTextVNode as de, renderList as Pe, renderSlot as re, vShow as Vn, toHandlers as Rl, normalizeProps as Ll, guardReactiveProps as Ul, normalizeStyle as me } from "vue";
|
|
3
3
|
import { Modal as Il, notification as kt, message as Fl, Spin as Hl } from "ant-design-vue";
|
|
4
4
|
import T from "dayjs";
|
|
5
5
|
const pt = "SAG_UBMP_PC$", st = {
|
|
@@ -1353,7 +1353,7 @@ function go() {
|
|
|
1353
1353
|
var e = $e.getTwoToneColors();
|
|
1354
1354
|
return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
|
|
1355
1355
|
}
|
|
1356
|
-
var ho =
|
|
1356
|
+
var ho = J({
|
|
1357
1357
|
name: "InsertStyles",
|
|
1358
1358
|
setup: function() {
|
|
1359
1359
|
return no(), function() {
|
|
@@ -2189,7 +2189,7 @@ const Vi = (e) => {
|
|
|
2189
2189
|
onCancel() {
|
|
2190
2190
|
}
|
|
2191
2191
|
});
|
|
2192
|
-
},
|
|
2192
|
+
}, X = (e, t) => e != null && e !== "" ? e : t, $i = (e, t, n) => {
|
|
2193
2193
|
e ? kt.success({
|
|
2194
2194
|
message: "操作成功",
|
|
2195
2195
|
description: t && t !== "操作成功" ? t : ""
|
|
@@ -2276,7 +2276,7 @@ function zi(e) {
|
|
|
2276
2276
|
const O = m.params.requestType;
|
|
2277
2277
|
!c(O) || typeof O == "string" ? O === "custom" ? l.onButtonClickModule({ $gridRef: t.value, gridOptions: a, formData: r, column: m, row: f }) : p(f, m) : O({ gridRef: t, gridOptions: a, formData: r, column: m, row: f });
|
|
2278
2278
|
}, p = (f, m) => {
|
|
2279
|
-
if (n.title =
|
|
2279
|
+
if (n.title = X(m.params.title, o.title), n.width = X(m.params.width, o.width), n.height = X(m.params.height, o.height), n.maximize = X(m.params.maximize, !1), n.autoLoad = X(m.params.autoLoad, !1), n.componentVue = X(m.params.componentVue, o.componentVue), n.componentUrl = m.params.requestUrl, n.componentVue)
|
|
2280
2280
|
f[A.buttonKeyName] = m.params;
|
|
2281
2281
|
else {
|
|
2282
2282
|
let O = ne(l.ctxPath, n.componentUrl);
|
|
@@ -2292,7 +2292,7 @@ function zi(e) {
|
|
|
2292
2292
|
return;
|
|
2293
2293
|
if (m.requestType === Ue || m.requestType === tt) {
|
|
2294
2294
|
let g = m.requestUrl;
|
|
2295
|
-
const S =
|
|
2295
|
+
const S = X(m.componentVue, o.componentVue);
|
|
2296
2296
|
if ((!S || m.requestType === tt) && (g = ne(l.ctxPath, g), m.requestRow && g.split("?").length > 1)) {
|
|
2297
2297
|
const v = ji(g.split("?")[1]);
|
|
2298
2298
|
for (const x in v) {
|
|
@@ -2300,8 +2300,8 @@ function zi(e) {
|
|
|
2300
2300
|
if (a.checkboxConfig) {
|
|
2301
2301
|
let F = [];
|
|
2302
2302
|
for (const N in _)
|
|
2303
|
-
for (const
|
|
2304
|
-
|
|
2303
|
+
for (const W in _[N])
|
|
2304
|
+
W === D && _[N][W] && (F[_[N][W]] = _[N][W]);
|
|
2305
2305
|
let U = "";
|
|
2306
2306
|
for (const N in F)
|
|
2307
2307
|
U = (U ? U + "," : "") + N;
|
|
@@ -2311,7 +2311,7 @@ function zi(e) {
|
|
|
2311
2311
|
}
|
|
2312
2312
|
}
|
|
2313
2313
|
if (m.requestType === Ue) {
|
|
2314
|
-
if (n.title =
|
|
2314
|
+
if (n.title = X(m.title, o.title), n.width = X(m.width, o.width), n.height = X(m.height, o.height), n.maximize = X(m.maximize, !1), n.autoLoad = X(m.autoLoad, !0), n.componentVue = S, n.componentUrl = g, n.componentParams = {}, m.requestRow)
|
|
2315
2315
|
if (a.checkboxConfig)
|
|
2316
2316
|
if (m.requestRadio)
|
|
2317
2317
|
_[0][A.buttonKeyName] = m, n.componentParams = _[0];
|
|
@@ -2353,7 +2353,7 @@ function zi(e) {
|
|
|
2353
2353
|
}, h = (f, m) => {
|
|
2354
2354
|
if (f.requestType === Ue || f.requestType === tt) {
|
|
2355
2355
|
let O = f.requestUrl;
|
|
2356
|
-
const _ =
|
|
2356
|
+
const _ = X(f.componentVue, o.componentVue);
|
|
2357
2357
|
let g = !1;
|
|
2358
2358
|
if (_)
|
|
2359
2359
|
g = !0;
|
|
@@ -2368,7 +2368,7 @@ function zi(e) {
|
|
|
2368
2368
|
else
|
|
2369
2369
|
g = !0;
|
|
2370
2370
|
if (g)
|
|
2371
|
-
f.requestType === Ue ? (m[A.buttonKeyName] = f, n.title =
|
|
2371
|
+
f.requestType === Ue ? (m[A.buttonKeyName] = f, n.title = X(f.title, o.title), n.width = X(f.width, o.width), n.height = X(f.height, o.height), n.maximize = X(f.maximize, !1), n.autoLoad = X(f.autoLoad, !0), n.componentVue = _, n.componentUrl = O, n.componentParams = m, n.visible = !0) : window.open(O, "_blank");
|
|
2372
2372
|
else {
|
|
2373
2373
|
De("该单据没有相应数据,无法进行本次操作");
|
|
2374
2374
|
return;
|
|
@@ -2450,36 +2450,36 @@ function qi(e) {
|
|
|
2450
2450
|
}, F, x, D, n, o);
|
|
2451
2451
|
if (typeof g == "string") {
|
|
2452
2452
|
g = ne(u.ctxPath, d.requestDownload);
|
|
2453
|
-
let
|
|
2454
|
-
Object.keys(N).forEach((
|
|
2455
|
-
c(N[
|
|
2456
|
-
}), le("导出表格参数", [g,
|
|
2453
|
+
let W = "";
|
|
2454
|
+
Object.keys(N).forEach((Q) => {
|
|
2455
|
+
c(N[Q]) && (typeof N[Q] == "string" && (W += "&" + Q + "=" + N[Q]), typeof N[Q] == "object" && Array.isArray(N[Q]) && (W += "&" + Q + "=" + N[Q].join(",")));
|
|
2456
|
+
}), le("导出表格参数", [g, W]), Vi(g + W);
|
|
2457
2457
|
} else
|
|
2458
|
-
l.loading = !0, N.exportFlag = !0, r(N, d.requestData, !0).then(async (
|
|
2459
|
-
if (
|
|
2458
|
+
l.loading = !0, N.exportFlag = !0, r(N, d.requestData, !0).then(async (W) => {
|
|
2459
|
+
if (W == null || W.rows.length == 0) {
|
|
2460
2460
|
l.loading = !1;
|
|
2461
2461
|
return;
|
|
2462
2462
|
}
|
|
2463
|
-
if (
|
|
2463
|
+
if (W.recordCount >= 25e3) {
|
|
2464
2464
|
l.loading = !1, De("查询结果超过25000条,请重新调整查询条件后重新导出!");
|
|
2465
2465
|
return;
|
|
2466
2466
|
}
|
|
2467
2467
|
setTimeout(() => {
|
|
2468
2468
|
if (m && typeof m == "function") {
|
|
2469
|
-
const
|
|
2469
|
+
const Q = {
|
|
2470
2470
|
filename: u.templateTitle + (/* @__PURE__ */ new Date()).getTime(),
|
|
2471
2471
|
sheetName: u.templateTitle,
|
|
2472
|
-
data:
|
|
2472
|
+
data: W.rows,
|
|
2473
2473
|
columns: c(l.params.exportColumns) ? l.params.exportColumns : g,
|
|
2474
|
-
mergeCells: i(
|
|
2474
|
+
mergeCells: i(W.rows)
|
|
2475
2475
|
};
|
|
2476
|
-
m(
|
|
2476
|
+
m(Q), l.loading = !1;
|
|
2477
2477
|
} else {
|
|
2478
|
-
const
|
|
2478
|
+
const Q = W.rows.concat([]), E = {
|
|
2479
2479
|
filename: u.templateTitle + (/* @__PURE__ */ new Date()).getTime(),
|
|
2480
2480
|
sheetName: u.templateTitle,
|
|
2481
2481
|
type: "xlsx",
|
|
2482
|
-
data:
|
|
2482
|
+
data: Q,
|
|
2483
2483
|
message: !1,
|
|
2484
2484
|
columns: c(l.params.exportColumns) ? l.params.exportColumns : l.columns,
|
|
2485
2485
|
isFooter: p.isFooter,
|
|
@@ -2514,7 +2514,7 @@ function qi(e) {
|
|
|
2514
2514
|
const _ = s.tableColumns, g = s.tableColumnsExtra;
|
|
2515
2515
|
if (O) {
|
|
2516
2516
|
const S = Jl(m, u.templateType);
|
|
2517
|
-
c(S) ? (l.params.switchType = S.switchType, l.columns = S.switchType === "1" ? _ : g, l.showOverflow = S.switchShowOverflow) : (l.params.switchType = "1", l.columns = _, l.showOverflow =
|
|
2517
|
+
c(S) ? (l.params.switchType = S.switchType, l.columns = S.switchType === "1" ? _ : g, l.showOverflow = S.switchShowOverflow) : (l.params.switchType = "1", l.columns = _, l.showOverflow = X(s.showOverflow, !0));
|
|
2518
2518
|
} else
|
|
2519
2519
|
l.params.switchType = l.params.switchType === "1" ? "2" : "1", l.columns = l.params.switchType === "2" ? g : _, l.showOverflow = !l.showOverflow, Gl(m, u.templateType, {
|
|
2520
2520
|
switchType: l.params.switchType,
|
|
@@ -2528,7 +2528,7 @@ function qi(e) {
|
|
|
2528
2528
|
}
|
|
2529
2529
|
};
|
|
2530
2530
|
}
|
|
2531
|
-
const Ve = /* @__PURE__ */
|
|
2531
|
+
const Ve = /* @__PURE__ */ J({
|
|
2532
2532
|
__name: "AntdOutlind",
|
|
2533
2533
|
props: {
|
|
2534
2534
|
icon: { type: String, default: null }
|
|
@@ -2751,7 +2751,7 @@ const vt = /* @__PURE__ */ gl(Hi), Yi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2751
2751
|
toMoney: $t,
|
|
2752
2752
|
stringFormat: Ji,
|
|
2753
2753
|
truncateFormat: it
|
|
2754
|
-
}, Zi = /* @__PURE__ */
|
|
2754
|
+
}, Zi = /* @__PURE__ */ J({
|
|
2755
2755
|
__name: "AntdDateRange",
|
|
2756
2756
|
props: {
|
|
2757
2757
|
value: {
|
|
@@ -2829,7 +2829,7 @@ const vt = /* @__PURE__ */ gl(Hi), Yi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2829
2829
|
}, null, 8, ["value", "presets", "locale", "format", "picker", "size"]);
|
|
2830
2830
|
};
|
|
2831
2831
|
}
|
|
2832
|
-
}), Qi = /* @__PURE__ */
|
|
2832
|
+
}), Qi = /* @__PURE__ */ J({
|
|
2833
2833
|
__name: "AntdDatePicker",
|
|
2834
2834
|
props: {
|
|
2835
2835
|
value: {
|
|
@@ -2878,7 +2878,7 @@ const vt = /* @__PURE__ */ gl(Hi), Yi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2878
2878
|
}, null, 8, ["value", "locale", "format", "picker", "size", "allowClear"]);
|
|
2879
2879
|
};
|
|
2880
2880
|
}
|
|
2881
|
-
}), Xi = /* @__PURE__ */
|
|
2881
|
+
}), Xi = /* @__PURE__ */ J({
|
|
2882
2882
|
__name: "AntdInput",
|
|
2883
2883
|
props: {
|
|
2884
2884
|
value: { type: String, default: null },
|
|
@@ -2892,7 +2892,7 @@ const vt = /* @__PURE__ */ gl(Hi), Yi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2892
2892
|
},
|
|
2893
2893
|
emits: ["update:value"],
|
|
2894
2894
|
setup(e, { expose: t, emit: n }) {
|
|
2895
|
-
const a = e, l = ge(ve), r = je(l?.size), o = $(null), i =
|
|
2895
|
+
const a = e, l = ge(ve), r = je(l?.size), o = $(null), i = X(a.placeholder, "请输入" + a.title), u = n, s = () => {
|
|
2896
2896
|
u("update:value", o.value);
|
|
2897
2897
|
};
|
|
2898
2898
|
return t({
|
|
@@ -2919,7 +2919,7 @@ const vt = /* @__PURE__ */ gl(Hi), Yi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2919
2919
|
}, null, 8, ["value", "placeholder", "disabled", "type", "size"]);
|
|
2920
2920
|
};
|
|
2921
2921
|
}
|
|
2922
|
-
}), Ki = { class: "sag-vxe-page-ant-selectPull" }, eu = /* @__PURE__ */
|
|
2922
|
+
}), Ki = { class: "sag-vxe-page-ant-selectPull" }, eu = /* @__PURE__ */ J({
|
|
2923
2923
|
__name: "AntdSelect",
|
|
2924
2924
|
props: {
|
|
2925
2925
|
value: { type: [String, Array, Object], default: null },
|
|
@@ -2976,7 +2976,7 @@ const vt = /* @__PURE__ */ gl(Hi), Yi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2976
2976
|
]);
|
|
2977
2977
|
};
|
|
2978
2978
|
}
|
|
2979
|
-
}), tu = { class: "sag-vxe-page-ant-selectPull" }, nu = /* @__PURE__ */
|
|
2979
|
+
}), tu = { class: "sag-vxe-page-ant-selectPull" }, nu = /* @__PURE__ */ J({
|
|
2980
2980
|
__name: "AntdSelectPull",
|
|
2981
2981
|
props: {
|
|
2982
2982
|
value: { type: String, default: null },
|
|
@@ -3057,7 +3057,7 @@ const vt = /* @__PURE__ */ gl(Hi), Yi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3057
3057
|
]);
|
|
3058
3058
|
};
|
|
3059
3059
|
}
|
|
3060
|
-
}), au = { class: "sag-vxe-page-ant-selectPull" }, lu = /* @__PURE__ */
|
|
3060
|
+
}), au = { class: "sag-vxe-page-ant-selectPull" }, lu = /* @__PURE__ */ J({
|
|
3061
3061
|
__name: "AntdSelectList",
|
|
3062
3062
|
props: {
|
|
3063
3063
|
value: { type: [String, Array, Object], default: null },
|
|
@@ -3119,7 +3119,7 @@ const vt = /* @__PURE__ */ gl(Hi), Yi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3119
3119
|
]);
|
|
3120
3120
|
};
|
|
3121
3121
|
}
|
|
3122
|
-
}), ru = { class: "sag-vxe-page-ant-selectPull" }, ou = /* @__PURE__ */
|
|
3122
|
+
}), ru = { class: "sag-vxe-page-ant-selectPull" }, ou = /* @__PURE__ */ J({
|
|
3123
3123
|
__name: "AntdCascader",
|
|
3124
3124
|
props: {
|
|
3125
3125
|
value: { type: String, default: null },
|
|
@@ -3242,7 +3242,7 @@ function du(e) {
|
|
|
3242
3242
|
} else
|
|
3243
3243
|
return Aa(e);
|
|
3244
3244
|
}
|
|
3245
|
-
const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left": "5px" } }, mu = { style: { float: "right", "padding-right": "15px", "padding-bottom": "3px" } }, gu = ["src"], hu = /* @__PURE__ */
|
|
3245
|
+
const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left": "5px" } }, mu = { style: { float: "right", "padding-right": "15px", "padding-bottom": "3px" } }, gu = ["src"], hu = /* @__PURE__ */ J({
|
|
3246
3246
|
name: "SagVxeDialog",
|
|
3247
3247
|
inheritAttrs: !1,
|
|
3248
3248
|
__name: "AntdModal",
|
|
@@ -3333,7 +3333,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3333
3333
|
]);
|
|
3334
3334
|
};
|
|
3335
3335
|
}
|
|
3336
|
-
}), vu = /* @__PURE__ */
|
|
3336
|
+
}), vu = /* @__PURE__ */ J({
|
|
3337
3337
|
__name: "VxeInput",
|
|
3338
3338
|
props: {
|
|
3339
3339
|
value: { type: String, default: null },
|
|
@@ -3346,7 +3346,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3346
3346
|
},
|
|
3347
3347
|
emits: ["update:value"],
|
|
3348
3348
|
setup(e, { expose: t, emit: n }) {
|
|
3349
|
-
const a = e, l = ge(ve), r = $(null), o =
|
|
3349
|
+
const a = e, l = ge(ve), r = $(null), o = X(a.placeholder, "请输入" + a.title), i = n, u = (h) => {
|
|
3350
3350
|
p(h.value);
|
|
3351
3351
|
}, s = () => r.value, p = (h) => {
|
|
3352
3352
|
r.value = h, i("update:value", r.value);
|
|
@@ -3371,7 +3371,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3371
3371
|
}, null, 8, ["model-value", "placeholder", "disabled", "size"]);
|
|
3372
3372
|
};
|
|
3373
3373
|
}
|
|
3374
|
-
}), bu = /* @__PURE__ */
|
|
3374
|
+
}), bu = /* @__PURE__ */ J({
|
|
3375
3375
|
__name: "VxeSelect",
|
|
3376
3376
|
props: {
|
|
3377
3377
|
value: { type: String, default: null },
|
|
@@ -3435,7 +3435,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3435
3435
|
}), null, 16, ["modelValue", "size"]);
|
|
3436
3436
|
};
|
|
3437
3437
|
}
|
|
3438
|
-
}), yu = /* @__PURE__ */
|
|
3438
|
+
}), yu = /* @__PURE__ */ J({
|
|
3439
3439
|
__name: "VxeSelectPull",
|
|
3440
3440
|
props: {
|
|
3441
3441
|
value: { type: String, default: null },
|
|
@@ -3508,7 +3508,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3508
3508
|
}), null, 16, ["modelValue", "size"]);
|
|
3509
3509
|
};
|
|
3510
3510
|
}
|
|
3511
|
-
}), Su = /* @__PURE__ */
|
|
3511
|
+
}), Su = /* @__PURE__ */ J({
|
|
3512
3512
|
__name: "VxeSelectList",
|
|
3513
3513
|
props: {
|
|
3514
3514
|
value: { type: String, default: null },
|
|
@@ -3567,7 +3567,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3567
3567
|
}), null, 16, ["modelValue", "size"]);
|
|
3568
3568
|
};
|
|
3569
3569
|
}
|
|
3570
|
-
}), Ou = /* @__PURE__ */
|
|
3570
|
+
}), Ou = /* @__PURE__ */ J({
|
|
3571
3571
|
__name: "ExportExcel",
|
|
3572
3572
|
emits: ["export"],
|
|
3573
3573
|
setup(e, { emit: t }) {
|
|
@@ -3681,7 +3681,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3681
3681
|
});
|
|
3682
3682
|
};
|
|
3683
3683
|
}
|
|
3684
|
-
}), wu = { class: "sag-vxe-page-search-wrapper" }, _u = { class: "sag-vxe-page-table-wrapper" }, Cu = ["onClick"], xu = { style: { "font-weight": "bold" } }, Pu = { key: 0 }, ku = ["onClick"], Au = { key: 1 }, Tu = { style: { display: "inline" } }, Mu = { key: 0 }, Vu = ["onClick"], $u = ["onClick"], ju = { key: 0 }, zu = { key: 1 }, qu = { key: 2 }, Ta = /* @__PURE__ */
|
|
3684
|
+
}), wu = { class: "sag-vxe-page-search-wrapper" }, _u = { class: "sag-vxe-page-table-wrapper" }, Cu = ["onClick"], xu = { style: { "font-weight": "bold" } }, Pu = { key: 0 }, ku = ["onClick"], Au = { key: 1 }, Tu = { style: { display: "inline" } }, Mu = { key: 0 }, Vu = ["onClick"], $u = ["onClick"], ju = { key: 0 }, zu = { key: 1 }, qu = { key: 2 }, Ta = /* @__PURE__ */ J({
|
|
3685
3685
|
name: "SagVxePage",
|
|
3686
3686
|
inheritAttrs: !1,
|
|
3687
3687
|
__name: "SagVxePage",
|
|
@@ -3820,7 +3820,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3820
3820
|
pageSizePlacement: M.toString(l?.templateTable?.pagerConfig?.pageSizePlacement, "top")
|
|
3821
3821
|
}), f = A.application + "_" + r.templateType, m = "sag_vxe_page_div_panel_" + f;
|
|
3822
3822
|
Tn(ve, r), Tn(Yi, () => document.getElementById(b(m)));
|
|
3823
|
-
const O = Object.keys(Be()), _ = O.filter((k) => k.startsWith("items_")), g = O.filter((k) => k.startsWith("cols_")), S = O.filter((k) => k.startsWith("tools_")), v = $(), x = $(!0), D = $(!1), F = $("none"), U = $(["1"]), N = $(0),
|
|
3823
|
+
const O = Object.keys(Be()), _ = O.filter((k) => k.startsWith("items_")), g = O.filter((k) => k.startsWith("cols_")), S = O.filter((k) => k.startsWith("tools_")), v = $(), x = $(!0), D = $(!1), F = $("none"), U = $(["1"]), N = $(0), W = je(r.size), Q = $(), E = te({}), ie = $([]), We = $(), bt = $([]), yt = n, be = (k, C) => {
|
|
3824
3824
|
ie.value[C] = k;
|
|
3825
3825
|
}, ze = async () => {
|
|
3826
3826
|
const k = v.value;
|
|
@@ -3834,9 +3834,9 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3834
3834
|
u.storage && $n(r.application, r.templateType, {}), Ze(bt.value[0].children, ie, E), yt("resetValue");
|
|
3835
3835
|
}, bl = () => {
|
|
3836
3836
|
ut(() => {
|
|
3837
|
-
zn(
|
|
3837
|
+
zn(Q.value, G, s.clientScale);
|
|
3838
3838
|
});
|
|
3839
|
-
},
|
|
3839
|
+
}, G = te({
|
|
3840
3840
|
size: r.size,
|
|
3841
3841
|
minHeight: s.minHeight,
|
|
3842
3842
|
maxHeight: s.maxHeight,
|
|
@@ -3887,22 +3887,22 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3887
3887
|
},
|
|
3888
3888
|
querySuccess: (k) => {
|
|
3889
3889
|
const { page: C, sort: R, sorts: H, filters: Z, form: se, response: _e } = k;
|
|
3890
|
-
p?.isMerge && (
|
|
3890
|
+
p?.isMerge && (G.mergeCells = On(_e?.rows)), yt("search", _e, { $gridRef: v.value, gridOptions: G });
|
|
3891
3891
|
}
|
|
3892
3892
|
}
|
|
3893
3893
|
},
|
|
3894
3894
|
footerMethod: s.footerMethod
|
|
3895
3895
|
}), St = $(!1), yl = () => {
|
|
3896
3896
|
ct("确定要强制显示数据内容吗?", () => {
|
|
3897
|
-
p?.isMerge ?
|
|
3897
|
+
p?.isMerge ? G.mergeCells = null : G.spanMethod = jn({}), G.virtualYConfig = { enabled: !0 }, St.value = !0, ze();
|
|
3898
3898
|
});
|
|
3899
3899
|
}, yn = async (k, C, R) => {
|
|
3900
3900
|
if (F.value = "none", St.value)
|
|
3901
|
-
return St.value = !1,
|
|
3901
|
+
return St.value = !1, G.params.data;
|
|
3902
3902
|
{
|
|
3903
3903
|
D.value = !0, r.onLoadBeforeModule && r.onLoadBeforeModule({
|
|
3904
3904
|
$gridRef: v.value,
|
|
3905
|
-
gridOptions:
|
|
3905
|
+
gridOptions: G,
|
|
3906
3906
|
queryParams: k,
|
|
3907
3907
|
exportFlag: R
|
|
3908
3908
|
});
|
|
@@ -3915,10 +3915,10 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3915
3915
|
}, 1e3);
|
|
3916
3916
|
});
|
|
3917
3917
|
if (H.success) {
|
|
3918
|
-
if (
|
|
3918
|
+
if (G.params.dataSum = H.data?.dataSum, p?.mergeKey) {
|
|
3919
3919
|
if (!R && H.data.rows.length > 800)
|
|
3920
|
-
return F.value = "more",
|
|
3921
|
-
p?.isMerge || (
|
|
3920
|
+
return F.value = "more", G.params.data = Sn(H.data), null;
|
|
3921
|
+
p?.isMerge || (G.virtualYConfig = { enabled: !1 });
|
|
3922
3922
|
}
|
|
3923
3923
|
return Sn(H.data);
|
|
3924
3924
|
} else
|
|
@@ -3954,9 +3954,9 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3954
3954
|
}
|
|
3955
3955
|
}
|
|
3956
3956
|
}, wl = (k) => {
|
|
3957
|
-
|
|
3957
|
+
G.params.currentRow = k?.row;
|
|
3958
3958
|
}, _l = () => {
|
|
3959
|
-
|
|
3959
|
+
G.params.currentRow = null;
|
|
3960
3960
|
}, Sn = (k) => {
|
|
3961
3961
|
const C = p?.seqKey, R = p?.mergeKey;
|
|
3962
3962
|
if (R && C) {
|
|
@@ -3966,7 +3966,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
3966
3966
|
}
|
|
3967
3967
|
return r.onLoadAfterModule ? r.onLoadAfterModule({
|
|
3968
3968
|
$gridRef: v.value,
|
|
3969
|
-
gridOptions:
|
|
3969
|
+
gridOptions: G,
|
|
3970
3970
|
data: k
|
|
3971
3971
|
}) : k;
|
|
3972
3972
|
}, On = (k) => {
|
|
@@ -4000,7 +4000,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4000
4000
|
}
|
|
4001
4001
|
}), wn = ({ row: k }) => {
|
|
4002
4002
|
const C = p?.mergeKey;
|
|
4003
|
-
if (k?.[C] ===
|
|
4003
|
+
if (k?.[C] === G.params.currentRow?.[C])
|
|
4004
4004
|
return {
|
|
4005
4005
|
backgroundColor: p?.backgroundColor
|
|
4006
4006
|
};
|
|
@@ -4013,7 +4013,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4013
4013
|
}, { clickFormButton: Pl, clickTableButton: Ge, clickHerf: _n } = zi({
|
|
4014
4014
|
gridRef: v,
|
|
4015
4015
|
targetModal: a,
|
|
4016
|
-
gridOptions:
|
|
4016
|
+
gridOptions: G,
|
|
4017
4017
|
pageOptions: r,
|
|
4018
4018
|
formData: E,
|
|
4019
4019
|
pageModal: i
|
|
@@ -4021,7 +4021,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4021
4021
|
formRef: We,
|
|
4022
4022
|
formData: E,
|
|
4023
4023
|
gridRef: v,
|
|
4024
|
-
gridOptions:
|
|
4024
|
+
gridOptions: G,
|
|
4025
4025
|
loadData: yn,
|
|
4026
4026
|
pageOptions: r,
|
|
4027
4027
|
templateItemRefs: ie,
|
|
@@ -4050,13 +4050,13 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4050
4050
|
const R = s.tableColumnsExtra;
|
|
4051
4051
|
R && Object.keys(R).forEach((H) => R[H].fixed = !1);
|
|
4052
4052
|
}
|
|
4053
|
-
xn(r.application, !0), s.rowType === "checkbox" ?
|
|
4053
|
+
xn(r.application, !0), s.rowType === "checkbox" ? G.checkboxConfig = { highlight: !0 } : s.rowType === "radio" ? G.radioConfig = { highlight: !0 } : G.rowConfig.isCurrent = !0;
|
|
4054
4054
|
const k = s.pageSizes;
|
|
4055
|
-
k && k.length > 0 &&
|
|
4055
|
+
k && k.length > 0 && G.pagerConfig && (G.pagerConfig.pageSizes = k), s.editConfig && (G.editConfig = {
|
|
4056
4056
|
trigger: "click",
|
|
4057
4057
|
mode: "row",
|
|
4058
4058
|
showStatus: !0
|
|
4059
|
-
}), c(p) && c(p.mergeKey) && (
|
|
4059
|
+
}), c(p) && c(p.mergeKey) && (G.cellStyle = wn, G.params.mergeField = p.mergeKey, p.isMerge ? G.columnDragConfig.dragStartMethod = () => !1 : (G.virtualYConfig = { enabled: !1 }, G.spanMethod = jn(p))), x.value = !1;
|
|
4060
4060
|
}, Tl = (k, C) => k && k.length > 0 ? k && C ? k.some((R) => Re(C[R.buttonName]) && Re(R.auth)) : !0 : !1;
|
|
4061
4061
|
oe(async () => {
|
|
4062
4062
|
if (le("加载页面模板", r), await Al(), u.storage) {
|
|
@@ -4077,7 +4077,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4077
4077
|
r.onMountedModule && await r.onMountedModule({
|
|
4078
4078
|
$formRef: We.value,
|
|
4079
4079
|
$gridRef: v.value,
|
|
4080
|
-
gridOptions:
|
|
4080
|
+
gridOptions: G,
|
|
4081
4081
|
pageOptions: r,
|
|
4082
4082
|
formData: E
|
|
4083
4083
|
}), xl(), await ze(), Pn();
|
|
@@ -4086,7 +4086,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4086
4086
|
le("屏幕高度出现变化,重新计算表格高度"), s.clientScale === 1 && N.value == 0 && (window.onresize = () => {
|
|
4087
4087
|
N.value = document.body.clientWidth;
|
|
4088
4088
|
}), ut(() => {
|
|
4089
|
-
zn(
|
|
4089
|
+
zn(Q.value, G, s.clientScale);
|
|
4090
4090
|
});
|
|
4091
4091
|
}, A.templateTable.lazyComputdHeightTime);
|
|
4092
4092
|
s.clientScale === 1 && he(
|
|
@@ -4097,14 +4097,14 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4097
4097
|
{ deep: !0, immediate: !0 }
|
|
4098
4098
|
);
|
|
4099
4099
|
const Ml = (k) => {
|
|
4100
|
-
a.title =
|
|
4100
|
+
a.title = X(k.title, A.targetModal.title), a.width = X(k.width, A.targetModal.width), a.height = X(k.height, A.targetModal.height), a.maximize = X(k.maximize, !1), a.autoLoad = X(k.autoLoad, !1), a.componentVue = X(k.componentVue, A.targetModal.componentVue), a.componentParams = k.componentParams, a.componentUrl = k.componentUrl, a.visible = !0;
|
|
4101
4101
|
}, kn = () => {
|
|
4102
4102
|
a.visible = !1, a.autoLoad && ze();
|
|
4103
4103
|
}, Vl = (k) => {
|
|
4104
4104
|
a.visible = !1;
|
|
4105
4105
|
const C = a.componentParams;
|
|
4106
4106
|
yt("submit", { data: k, params: C, button: C[A.buttonKeyName] });
|
|
4107
|
-
}, $l = async () => await ml(v,
|
|
4107
|
+
}, $l = async () => await ml(v, G), jl = async () => {
|
|
4108
4108
|
const k = v.value;
|
|
4109
4109
|
if (k) {
|
|
4110
4110
|
const { pager: C, filter: R, form: H, sort: Z } = k.getProxyInfo();
|
|
@@ -4125,7 +4125,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4125
4125
|
getFormData: jl,
|
|
4126
4126
|
setFormData: An,
|
|
4127
4127
|
setExportColumns: (k) => {
|
|
4128
|
-
|
|
4128
|
+
G.params.exportColumns = k;
|
|
4129
4129
|
}
|
|
4130
4130
|
}), (k, C) => {
|
|
4131
4131
|
const R = L("a-button"), H = L("a-space"), Z = L("vxe-form"), se = L("a-collapse-panel"), _e = L("a-collapse"), Oe = L("a-menu-item"), ue = L("a-menu"), qe = L("a-dropdown"), Ce = L("vxe-button"), zl = L("vxe-grid");
|
|
@@ -4143,7 +4143,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4143
4143
|
default: B(() => [
|
|
4144
4144
|
q(se, {
|
|
4145
4145
|
ref_key: "formCardRef",
|
|
4146
|
-
ref:
|
|
4146
|
+
ref: Q,
|
|
4147
4147
|
key: "1",
|
|
4148
4148
|
header: "查询条件",
|
|
4149
4149
|
align: "left",
|
|
@@ -4169,7 +4169,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4169
4169
|
default: B(() => [
|
|
4170
4170
|
q(R, {
|
|
4171
4171
|
type: "primary",
|
|
4172
|
-
size: b(
|
|
4172
|
+
size: b(W),
|
|
4173
4173
|
onClick: C[0] || (C[0] = (P) => ze()),
|
|
4174
4174
|
disabled: D.value
|
|
4175
4175
|
}, {
|
|
@@ -4179,7 +4179,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4179
4179
|
_: 1
|
|
4180
4180
|
}, 8, ["size", "disabled"]),
|
|
4181
4181
|
q(R, {
|
|
4182
|
-
size: b(
|
|
4182
|
+
size: b(W),
|
|
4183
4183
|
onClick: C[1] || (C[1] = (P) => bn())
|
|
4184
4184
|
}, {
|
|
4185
4185
|
default: B(() => C[6] || (C[6] = [
|
|
@@ -4299,7 +4299,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4299
4299
|
q(zl, ee({
|
|
4300
4300
|
ref_key: "gridRef",
|
|
4301
4301
|
ref: v
|
|
4302
|
-
},
|
|
4302
|
+
}, G, Rl(Cl), {
|
|
4303
4303
|
size: r.size,
|
|
4304
4304
|
id: f,
|
|
4305
4305
|
style: { "z-index": "1" },
|
|
@@ -4420,7 +4420,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4420
4420
|
b(Re)(P.auth) ? (w(), j(R, {
|
|
4421
4421
|
key: 0,
|
|
4422
4422
|
round: "",
|
|
4423
|
-
size: b(
|
|
4423
|
+
size: b(W),
|
|
4424
4424
|
type: b(M).toString(P.status, "primary"),
|
|
4425
4425
|
onClick: (V) => b(Pl)(P)
|
|
4426
4426
|
}, {
|
|
@@ -4528,7 +4528,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4528
4528
|
install: (e, t) => {
|
|
4529
4529
|
e.component(Ta.name, Ta);
|
|
4530
4530
|
}
|
|
4531
|
-
}, Ma = /* @__PURE__ */
|
|
4531
|
+
}, Ma = /* @__PURE__ */ J({
|
|
4532
4532
|
name: "SagAntdDatePicker",
|
|
4533
4533
|
inheritAttrs: !1,
|
|
4534
4534
|
__name: "SagAntdDatePicker",
|
|
@@ -4599,7 +4599,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4599
4599
|
install: (e, t) => {
|
|
4600
4600
|
e.component(Ma.name, Ma);
|
|
4601
4601
|
}
|
|
4602
|
-
}, Va = /* @__PURE__ */
|
|
4602
|
+
}, Va = /* @__PURE__ */ J({
|
|
4603
4603
|
name: "SagAntdDateRange",
|
|
4604
4604
|
inheritAttrs: !1,
|
|
4605
4605
|
__name: "SagAntdDateRange",
|
|
@@ -4686,7 +4686,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4686
4686
|
install: (e, t) => {
|
|
4687
4687
|
e.component(Va.name, Va);
|
|
4688
4688
|
}
|
|
4689
|
-
}, $a = /* @__PURE__ */
|
|
4689
|
+
}, $a = /* @__PURE__ */ J({
|
|
4690
4690
|
name: "SagAntdButton",
|
|
4691
4691
|
inheritAttrs: !1,
|
|
4692
4692
|
__name: "SagAntdButton",
|
|
@@ -4733,7 +4733,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4733
4733
|
install: (e, t) => {
|
|
4734
4734
|
e.component($a.name, $a);
|
|
4735
4735
|
}
|
|
4736
|
-
}, Du = { class: "sag-antd-cascader-wrapper" }, ja = /* @__PURE__ */
|
|
4736
|
+
}, Du = { class: "sag-antd-cascader-wrapper" }, ja = /* @__PURE__ */ J({
|
|
4737
4737
|
name: "SagAntdCascader",
|
|
4738
4738
|
inheritAttrs: !1,
|
|
4739
4739
|
__name: "SagAntdCascader",
|
|
@@ -4807,7 +4807,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4807
4807
|
install: (e, t) => {
|
|
4808
4808
|
e.component(ja.name, ja);
|
|
4809
4809
|
}
|
|
4810
|
-
}, Bu = { key: 1 }, za = /* @__PURE__ */
|
|
4810
|
+
}, Bu = { key: 1 }, za = /* @__PURE__ */ J({
|
|
4811
4811
|
name: "SagAntdCard",
|
|
4812
4812
|
inheritAttrs: !1,
|
|
4813
4813
|
__name: "SagAntdCard",
|
|
@@ -4864,7 +4864,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4864
4864
|
install: (e, t) => {
|
|
4865
4865
|
e.component(za.name, za);
|
|
4866
4866
|
}
|
|
4867
|
-
}, Nu = { key: 1 }, Eu = { key: 1 }, qa = /* @__PURE__ */
|
|
4867
|
+
}, Nu = { key: 1 }, Eu = { key: 1 }, qa = /* @__PURE__ */ J({
|
|
4868
4868
|
name: "SagAntdInput",
|
|
4869
4869
|
inheritAttrs: !1,
|
|
4870
4870
|
__name: "SagAntdInput",
|
|
@@ -4944,7 +4944,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
4944
4944
|
install: (e, t) => {
|
|
4945
4945
|
e.component(qa.name, qa);
|
|
4946
4946
|
}
|
|
4947
|
-
}, Ru = { key: 1 }, Lu = { key: 1 }, Da = /* @__PURE__ */
|
|
4947
|
+
}, Ru = { key: 1 }, Lu = { key: 1 }, Da = /* @__PURE__ */ J({
|
|
4948
4948
|
name: "SagAntdInputNumber",
|
|
4949
4949
|
inheritAttrs: !1,
|
|
4950
4950
|
__name: "SagAntdInputNumber",
|
|
@@ -5034,7 +5034,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5034
5034
|
install: (e, t) => {
|
|
5035
5035
|
e.component(Da.name, Da);
|
|
5036
5036
|
}
|
|
5037
|
-
}, Ba = /* @__PURE__ */
|
|
5037
|
+
}, Ba = /* @__PURE__ */ J({
|
|
5038
5038
|
name: "SagAntdInputSearch",
|
|
5039
5039
|
inheritAttrs: !1,
|
|
5040
5040
|
__name: "SagAntdInputSearch",
|
|
@@ -5088,7 +5088,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5088
5088
|
install: (e, t) => {
|
|
5089
5089
|
e.component(Ba.name, Ba);
|
|
5090
5090
|
}
|
|
5091
|
-
}, Na = /* @__PURE__ */
|
|
5091
|
+
}, Na = /* @__PURE__ */ J({
|
|
5092
5092
|
name: "SagAntdTextarea",
|
|
5093
5093
|
inheritAttrs: !1,
|
|
5094
5094
|
__name: "SagAntdTextarea",
|
|
@@ -5154,7 +5154,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5154
5154
|
install: (e, t) => {
|
|
5155
5155
|
e.component(Na.name, Na);
|
|
5156
5156
|
}
|
|
5157
|
-
}, Uu = { class: "vxe-form-ant-select" }, Ea = /* @__PURE__ */
|
|
5157
|
+
}, Uu = { class: "vxe-form-ant-select" }, Ea = /* @__PURE__ */ J({
|
|
5158
5158
|
name: "SagAntdSelect",
|
|
5159
5159
|
inheritAttrs: !1,
|
|
5160
5160
|
__name: "SagAntdSelect",
|
|
@@ -5251,7 +5251,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5251
5251
|
install: (e, t) => {
|
|
5252
5252
|
e.component(Ea.name, Ea);
|
|
5253
5253
|
}
|
|
5254
|
-
}, Iu = { class: "vxe-form-ant-select" }, Ra = /* @__PURE__ */
|
|
5254
|
+
}, Iu = { class: "vxe-form-ant-select" }, Ra = /* @__PURE__ */ J({
|
|
5255
5255
|
name: "SagAntdSelectList",
|
|
5256
5256
|
inheritAttrs: !1,
|
|
5257
5257
|
__name: "SagAntdSelectList",
|
|
@@ -5287,15 +5287,15 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5287
5287
|
},
|
|
5288
5288
|
emits: ["update:value", "update:label", "change", "query"],
|
|
5289
5289
|
setup(e, { expose: t, emit: n }) {
|
|
5290
|
-
const a = e, l = $(a.value ? a.value : a.multiple ? [] : null), r = $(a.label ? a.label : a.multiple ? [] : null), o = $(a.multiple ? {} : null), i = $([]), u = $(!1), s = n, p = "请输入" + a.title + "搜索", d = async () => {
|
|
5290
|
+
const a = e, l = $(a.value ? a.value : a.multiple ? [] : null), r = $(a.label ? a.label : a.multiple ? [] : null), o = $(a.multiple ? {} : null), i = $([]), u = $(!1), s = n, p = "请输入" + a.title + "搜索", d = async (U, N = "0") => {
|
|
5291
5291
|
if (a.corpFilter && !c(a.corpId))
|
|
5292
5292
|
return i.value = [], [];
|
|
5293
|
-
let
|
|
5294
|
-
Object.assign(
|
|
5295
|
-
const
|
|
5296
|
-
return u.value = !1, i.value =
|
|
5293
|
+
let W = { corpId: a.corpId, searchValue: U, searchByKey: N };
|
|
5294
|
+
Object.assign(W, a.requestParams), i.value = [], u.value = !0;
|
|
5295
|
+
const Q = await Ee(a.requestUrl, W);
|
|
5296
|
+
return u.value = !1, i.value = Q, Q;
|
|
5297
5297
|
}, h = jt(() => {
|
|
5298
|
-
d().then((U) => {
|
|
5298
|
+
d(null).then((U) => {
|
|
5299
5299
|
s("query", U);
|
|
5300
5300
|
});
|
|
5301
5301
|
}, 300), y = (U) => {
|
|
@@ -5305,12 +5305,12 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5305
5305
|
}, f = (U, N) => N.label.toLowerCase().indexOf(ke(U).toLowerCase()) >= 0, m = async (U) => {
|
|
5306
5306
|
if (l.value = U, a.multiple) {
|
|
5307
5307
|
const N = [];
|
|
5308
|
-
l.value.forEach((
|
|
5309
|
-
let
|
|
5310
|
-
|
|
5308
|
+
l.value.forEach((W) => {
|
|
5309
|
+
let Q = i.value.filter((E) => E.value === W);
|
|
5310
|
+
Q.length === 1 && (N.push(Q[0].label), o.value[W] = Q[0]);
|
|
5311
5311
|
}), r.value = N;
|
|
5312
5312
|
} else {
|
|
5313
|
-
let N = i.value.filter((
|
|
5313
|
+
let N = i.value.filter((W) => W.value === U);
|
|
5314
5314
|
N.length === 1 ? (r.value = N[0].label, o.value = N[0]) : (r.value = null, o.value = null);
|
|
5315
5315
|
}
|
|
5316
5316
|
}, O = () => r.value, _ = () => l.value, g = (U) => {
|
|
@@ -5325,15 +5325,15 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5325
5325
|
S(), i.value = [], await h();
|
|
5326
5326
|
}, D = (U = !1) => {
|
|
5327
5327
|
s("update:value", l.value), s("update:label", r.value), U && s("change", o.value);
|
|
5328
|
-
}, F = (U, N) => a.multiple ? c(U) && !c(N) || !c(U) && c(N) ? !0 : !c(U) && !c(N) || U.length !== N.length ? !1 : !U.every((
|
|
5328
|
+
}, F = (U, N) => a.multiple ? c(U) && !c(N) || !c(U) && c(N) ? !0 : !c(U) && !c(N) || U.length !== N.length ? !1 : !U.every((W, Q) => W === N[Q]) : U !== N;
|
|
5329
5329
|
return he(
|
|
5330
5330
|
() => [a.corpId, a.value],
|
|
5331
|
-
async ([U, N], [
|
|
5332
|
-
const E = U !==
|
|
5333
|
-
E && (S(), await d()), ie && g(N);
|
|
5331
|
+
async ([U, N], [W, Q]) => {
|
|
5332
|
+
const E = U !== W, ie = F(N, l.value);
|
|
5333
|
+
E && (S(), await d(N, "1")), ie && g(N);
|
|
5334
5334
|
}
|
|
5335
5335
|
), oe(async () => {
|
|
5336
|
-
d();
|
|
5336
|
+
d(null);
|
|
5337
5337
|
}), t({
|
|
5338
5338
|
getName: O,
|
|
5339
5339
|
getValue: _,
|
|
@@ -5341,9 +5341,9 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5341
5341
|
clear: v,
|
|
5342
5342
|
reload: x
|
|
5343
5343
|
}), (U, N) => {
|
|
5344
|
-
const
|
|
5344
|
+
const W = L("a-spin"), Q = L("a-select");
|
|
5345
5345
|
return w(), I("div", Iu, [
|
|
5346
|
-
q(
|
|
5346
|
+
q(Q, {
|
|
5347
5347
|
value: l.value,
|
|
5348
5348
|
"onUpdate:value": N[0] || (N[0] = (E) => l.value = E),
|
|
5349
5349
|
placeholder: p,
|
|
@@ -5361,7 +5361,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5361
5361
|
u.value ? {
|
|
5362
5362
|
name: "notFoundContent",
|
|
5363
5363
|
fn: B(() => [
|
|
5364
|
-
q(
|
|
5364
|
+
q(W, { size: "small" })
|
|
5365
5365
|
]),
|
|
5366
5366
|
key: "0"
|
|
5367
5367
|
} : void 0
|
|
@@ -5373,7 +5373,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5373
5373
|
install: (e, t) => {
|
|
5374
5374
|
e.component(Ra.name, Ra);
|
|
5375
5375
|
}
|
|
5376
|
-
}, Fu = { class: "vxe-form-ant-select" }, La = /* @__PURE__ */
|
|
5376
|
+
}, Fu = { class: "vxe-form-ant-select" }, La = /* @__PURE__ */ J({
|
|
5377
5377
|
name: "SagAntdSelectPull",
|
|
5378
5378
|
inheritAttrs: !1,
|
|
5379
5379
|
__name: "SagAntdSelectPull",
|
|
@@ -5489,7 +5489,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5489
5489
|
install: (e, t) => {
|
|
5490
5490
|
e.component(La.name, La);
|
|
5491
5491
|
}
|
|
5492
|
-
}, Hu = { key: 1 }, Ua = /* @__PURE__ */
|
|
5492
|
+
}, Hu = { key: 1 }, Ua = /* @__PURE__ */ J({
|
|
5493
5493
|
name: "SagAntdPanel",
|
|
5494
5494
|
inheritAttrs: !1,
|
|
5495
5495
|
__name: "SagAntdPanel",
|
|
@@ -5535,7 +5535,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5535
5535
|
install: (e, t) => {
|
|
5536
5536
|
e.component(Ua.name, Ua);
|
|
5537
5537
|
}
|
|
5538
|
-
}, Yu = { class: "sag-antd-space-wrapper" }, Ia = /* @__PURE__ */
|
|
5538
|
+
}, Yu = { class: "sag-antd-space-wrapper" }, Ia = /* @__PURE__ */ J({
|
|
5539
5539
|
name: "SagAntdSpace",
|
|
5540
5540
|
inheritAttrs: !1,
|
|
5541
5541
|
__name: "SagAntdSpace",
|
|
@@ -5548,7 +5548,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5548
5548
|
install: (e, t) => {
|
|
5549
5549
|
e.component(Ia.name, Ia);
|
|
5550
5550
|
}
|
|
5551
|
-
}, Fa = /* @__PURE__ */
|
|
5551
|
+
}, Fa = /* @__PURE__ */ J({
|
|
5552
5552
|
name: "SagAntdSwitch",
|
|
5553
5553
|
inheritAttrs: !1,
|
|
5554
5554
|
__name: "SagAntdSwitch",
|
|
@@ -5591,7 +5591,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5591
5591
|
install: (e, t) => {
|
|
5592
5592
|
e.component(Fa.name, Fa);
|
|
5593
5593
|
}
|
|
5594
|
-
}, Ha = /* @__PURE__ */
|
|
5594
|
+
}, Ha = /* @__PURE__ */ J({
|
|
5595
5595
|
name: "SagAntdTab",
|
|
5596
5596
|
inheritAttrs: !1,
|
|
5597
5597
|
__name: "SagAntdTab",
|
|
@@ -5673,7 +5673,7 @@ const fu = { id: "div_view_modal" }, pu = { style: { color: "red", "padding-left
|
|
|
5673
5673
|
install: (e, t) => {
|
|
5674
5674
|
e.component(Ha.name, Ha);
|
|
5675
5675
|
}
|
|
5676
|
-
}, Ya = /* @__PURE__ */
|
|
5676
|
+
}, Ya = /* @__PURE__ */ J({
|
|
5677
5677
|
name: "SagAntdOutlined",
|
|
5678
5678
|
inheritAttrs: !1,
|
|
5679
5679
|
__name: "SagAntdOutlined",
|