@jeecg/online 3.9.0-beta2 → 3.9.1-RC
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/{AccountLoginForm-634a76b1.mjs → AccountLoginForm-BXyvcSds.mjs} +50 -53
- package/{AiModal-204a2146.mjs → AiModal-BgVzn074.mjs} +18 -20
- package/{AppForgetPassword-f9a6258a.mjs → AppForgetPassword-B-2CvL62.mjs} +59 -63
- package/AppLogin-BMBmx2oq.mjs +272 -0
- package/AppLoginHeader-BtKXOMRR.mjs +23 -0
- package/{AppNameEmail-54026ea8.mjs → AppNameEmail-DCqMNjaK.mjs} +20 -24
- package/{AppRegister-043efc45.mjs → AppRegister-C5iH-245.mjs} +33 -37
- package/{AppTenant-c7bb8700.mjs → AppTenant-etPXeUcW.mjs} +49 -55
- package/AppThirdForm-NMob-JaS.mjs +185 -0
- package/AuthButtonConfig-zUioaGwn.mjs +155 -0
- package/AuthButtonTree-DYZwphe6.mjs +159 -0
- package/{AuthDataConfig-3cd10ca2.mjs → AuthDataConfig-uQ5WT7rx.mjs} +57 -62
- package/AuthDataTree-Cr28_YKx.mjs +134 -0
- package/{AuthFieldConfig-bb65f78b.mjs → AuthFieldConfig-DjdaPIXF.mjs} +95 -101
- package/{AuthFieldTree-3e38b12b.mjs → AuthFieldTree-DHmnDQ0I.mjs} +94 -99
- package/AuthManagerDrawer-DUb6QylS.mjs +108 -0
- package/{AuthSetterModal-f176c221.mjs → AuthSetterModal-BBFdNv1M.mjs} +89 -100
- package/BuiltInButtonList-Cgg5maxI.mjs +4 -0
- package/{BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs → BuiltInButtonList.vue_vue_type_script_setup_true_lang-5-4hU0bi.mjs} +8 -8
- package/{CgformAddressModal-a3903b24.mjs → CgformAddressModal-BVoww1fk.mjs} +57 -63
- package/CgformCopyList-7e96RMbJ.mjs +176 -0
- package/{CgformModal-115710a6.mjs → CgformModal-RH-Tr08S.mjs} +240 -241
- package/{CgreportAigcModal-3bef8abe.mjs → CgreportAigcModal-rEfIpPF9.mjs} +35 -38
- package/{CgreportModal-0cc48587.mjs → CgreportModal-Bajb_3ku.mjs} +49 -50
- package/{CheckDictTable-65157c48.mjs → CheckDictTable-BxJFrctQ.mjs} +44 -52
- package/{CodeFileListModal-305c1a62.mjs → CodeFileListModal-C3uqsFvi.mjs} +32 -36
- package/{CodeFileViewModal-320d7acf.mjs → CodeFileViewModal-bEtZDbAY.mjs} +78 -81
- package/CodeGeneratorModal-ZWEIXRbY.mjs +291 -0
- package/{CustomButtonList-98db8fd2.mjs → CustomButtonList-7wjonhtu.mjs} +82 -85
- package/{DBAttributeTable-56701599.mjs → DBAttributeTable-DA2XttIQ.mjs} +50 -60
- package/{DbToOnlineModal-a82cdeb5.mjs → DbToOnlineModal-CDVqmEJH.mjs} +43 -45
- package/DetailForm-CnfJBMys.mjs +472 -0
- package/{DropMenuItem-b3a9cd6a.mjs → DropMenuItem-D8YWMle-.mjs} +8 -11
- package/EnhanceJavaModal-W8_oGY-U.mjs +255 -0
- package/{EnhanceJsHistory-bb6ba865.mjs → EnhanceJsHistory-ZzXedCNI.mjs} +48 -49
- package/{EnhanceJsModal-b0527cbf.mjs → EnhanceJsModal-Djb5ItH4.mjs} +95 -104
- package/EnhanceSqlModal-DxPdRcQc.mjs +258 -0
- package/ErrorTip-BDS1uxkW.mjs +4 -0
- package/{ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs → ErrorTip.vue_vue_type_script_setup_true_lang-Bl9zMjvW.mjs} +11 -11
- package/ExtendConfigModal-CxJIWvV4.mjs +102 -0
- package/{FieldExtendJsonModal-536e6d5b.mjs → FieldExtendJsonModal-Bvmbb6yd.mjs} +27 -30
- package/{FileSelectModal-eb026170.mjs → FileSelectModal-DXqL5msQ.mjs} +27 -31
- package/{ForeignKeyTable-97a5827f.mjs → ForeignKeyTable-D6AlLbfd.mjs} +17 -25
- package/{IndexTable-4d350e4e.mjs → IndexTable-B7ef6Aox.mjs} +9 -17
- package/JModalTip-DHrn6ksJ.mjs +46 -0
- package/{JOnlineSearchSelect-ffeac61d.mjs → JOnlineSearchSelect-CAv2Dm9V.mjs} +21 -23
- package/{LeftDepart-a727aab7.mjs → LeftDepart-BC1jpYJP.mjs} +8 -11
- package/{LeftRole-b533dcf6.mjs → LeftRole-sq_2p6Qk.mjs} +16 -19
- package/{LeftUser-aaac52cb.mjs → LeftUser-CYh4PBgd.mjs} +7 -10
- package/{LinkTableConfigModal-4053b62d.mjs → LinkTableConfigModal-BOWs0A5-.mjs} +38 -40
- package/{LinkTableFieldConfigModal-93552099.mjs → LinkTableFieldConfigModal-D7FTBP3E.mjs} +50 -52
- package/LinkTableListPiece-Bfu6vfo0.mjs +31 -0
- package/{ModalFormDemo-b8478356.mjs → ModalFormDemo-C1qQT6lj.mjs} +13 -16
- package/{OnlCgformErpList-b0605798.mjs → OnlCgformErpList-CavWG8GK.mjs} +139 -199
- package/OnlCgformErpSubTable-D3QM8oWi.mjs +382 -0
- package/OnlCgformInnerSubTable-BqmooFqy.mjs +213 -0
- package/OnlCgformInnerTableList-Dr1KdoSC.mjs +421 -0
- package/OnlCgformTabList-DCy3oudh.mjs +371 -0
- package/OnlineAutoList-C4pkORGb.mjs +500 -0
- package/OnlineAutoModal-Cuf_wcbU.mjs +222 -0
- package/{OnlineAutoTreeList-624106c1.mjs → OnlineAutoTreeList-LDE9Sm7X.mjs} +124 -181
- package/OnlineCustomModal-Jz4MxkH0.mjs +209 -0
- package/OnlineDetailModal-So0YEah1.mjs +160 -0
- package/{OnlineForm-86b5966d.mjs → OnlineForm-CvcbzRIZ.mjs} +47 -73
- package/OnlineFormDetail-KaD6cV31.mjs +321 -0
- package/OnlineFormUrlAdd-CktstdFD.mjs +86 -0
- package/OnlineFormUrlDetail-C4qptuTQ.mjs +85 -0
- package/OnlineFormUrlEdit-C06vTiM_.mjs +84 -0
- package/{OnlineFormUrlSuccess-0c2431a4.mjs → OnlineFormUrlSuccess-Cvbte2lW.mjs} +27 -30
- package/{OnlineQueryForm-3017a4ca.mjs → OnlineQueryForm-6E1IRi95.mjs} +139 -167
- package/{OnlineSearchFormItem-1b54585f.mjs → OnlineSearchFormItem-CdRuXQPu.mjs} +112 -118
- package/{OnlineSelectCascade-fab4426d.mjs → OnlineSelectCascade-O7iXAgdH.mjs} +31 -33
- package/OnlineSubFormDetail-DcMpAk8Z.mjs +109 -0
- package/OnlineTabAutoModal-DSOVDlOz.mjs +285 -0
- package/OnlineTabDetailModal-OXQ_2VLI.mjs +187 -0
- package/{OnlineTabForm-5c04cbc5.mjs → OnlineTabForm-Cg3_IX2H.mjs} +228 -253
- package/OnlineTabFormDetail-BgFkUkva.mjs +299 -0
- package/{PageAttributeTable-18aabf81.mjs → PageAttributeTable-C803SekP.mjs} +46 -59
- package/{PhoneLoginForm-4a9d7869.mjs → PhoneLoginForm-8a0Uehov.mjs} +40 -43
- package/ProcessOnlineForm-COeEaGc8.mjs +182 -0
- package/{QueryTable-342fd89a.mjs → QueryTable-DHYaYbKC.mjs} +23 -31
- package/SetSwitchOptions-B4Q6l-54.mjs +58 -0
- package/ShareAddView-CxZuNTQB.mjs +11 -0
- package/ShareEditView-Dqdzjmpc.mjs +17 -0
- package/ShareView-B9TiMmkR.mjs +4 -0
- package/{ShareView.vue_vue_type_script_setup_true_lang-9ea579c2.mjs → ShareView.vue_vue_type_script_setup_true_lang-BCdP9KMD.mjs} +21 -21
- package/SingleView-BDXeMLV-.mjs +4 -0
- package/{SingleView.vue_vue_type_style_index_0_lang-24d417dc.mjs → SingleView.vue_vue_type_style_index_0_lang-D3QcMcYT.mjs} +27 -27
- package/{SuperQuery-270b0968.mjs → SuperQuery-CgkajEWI.mjs} +342 -370
- package/SuperQueryValComponent-UO10kRg5.mjs +4 -0
- package/TaskOpinionList-C8rcU6ee.mjs +10 -0
- package/{aiModal-e7362c3f.mjs → aiModal-DTU-w5Xx.mjs} +33 -36
- package/{enhance.data-6601ff44.mjs → enhance.data-DRCzy5Bx.mjs} +5 -5
- package/index-0kQBIHx0.mjs +58 -0
- package/{index-b811abb9.mjs → index-B1H394jP.mjs} +35 -38
- package/index-CXD6__bJ.mjs +195 -0
- package/{index-6d1a78e2.mjs → index-DIjQbz6A.mjs} +37 -41
- package/{index-e2c3e6f3.mjs → index-Dbr1qL3H.mjs} +474 -608
- package/{index-19eaef11.mjs → index-dmWvLQET.mjs} +2 -2
- package/{index-d95bb7c2.mjs → index-pGbTziKP.mjs} +32 -44
- package/{index-b5fe9bd4.mjs → index-siZ6JDIW.mjs} +17 -20
- package/main.index.js +8 -9
- package/online.css +1 -0
- package/package.json +1 -1
- package/{useCgformList-6d5547ff.mjs → useCgformList-_o9GP7ca.mjs} +3 -3
- package/useExtendComponent-P9wrWQwT.mjs +4479 -0
- package/{useListButton-73071548.mjs → useListButton-DyOAscwT.mjs} +7 -9
- package/{useSchemas-b074f3a1.mjs → useSchemas-svH7q1tm.mjs} +69 -42
- package/{useTableSync-dbfba20e.mjs → useTableSync-BAWujyoc.mjs} +1 -1
- package/{utils-9fce7606.mjs → utils-DcQ65Qmw.mjs} +1 -1
- package/AppLogin-bf783eab.mjs +0 -287
- package/AppLoginHeader-55594326.mjs +0 -27
- package/AppThirdForm-5e7e1144.mjs +0 -189
- package/AuthButtonConfig-4887be0d.mjs +0 -160
- package/AuthButtonTree-7e47b44b.mjs +0 -165
- package/AuthDataTree-714c259c.mjs +0 -139
- package/AuthManagerDrawer-dee39b07.mjs +0 -119
- package/BuiltInButtonList-bb6cf95c.mjs +0 -10
- package/CgformCopyList-4be1000f.mjs +0 -259
- package/CodeGeneratorModal-2ba18bd1.mjs +0 -298
- package/DetailForm-7d4f630e.mjs +0 -497
- package/EnhanceJavaModal-469e645e.mjs +0 -264
- package/EnhanceSqlModal-c6e8bce1.mjs +0 -268
- package/ErrorTip-bb616e32.mjs +0 -7
- package/ExtendConfigModal-7b00b49a.mjs +0 -117
- package/JModalTip-c3e6726c.mjs +0 -49
- package/LinkTableListPiece-0f4ca559.mjs +0 -34
- package/OnlCgformErpSubTable-89699bc9.mjs +0 -443
- package/OnlCgformInnerSubTable-f2722f77.mjs +0 -269
- package/OnlCgformInnerTableList-992aa7e9.mjs +0 -481
- package/OnlCgformTabList-882a0e0c.mjs +0 -431
- package/OnlineAutoList-caedb54a.mjs +0 -558
- package/OnlineAutoModal-a0d1a6b8.mjs +0 -260
- package/OnlineCustomModal-f4e17bed.mjs +0 -246
- package/OnlineDetailModal-35394778.mjs +0 -198
- package/OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs +0 -1
- package/OnlineFormDetail-4b3ad130.mjs +0 -349
- package/OnlineFormUrlAdd-708c91fb.mjs +0 -116
- package/OnlineFormUrlDetail-5c8efaeb.mjs +0 -121
- package/OnlineFormUrlEdit-8f08474e.mjs +0 -114
- package/OnlineSubFormDetail-bbc48c3e.mjs +0 -147
- package/OnlineTabAutoModal-b0f9fce8.mjs +0 -319
- package/OnlineTabDetailModal-401a26ad.mjs +0 -226
- package/OnlineTabFormDetail-2a28febf.mjs +0 -328
- package/ProcessOnlineForm-0ddce4fb.mjs +0 -218
- package/SetSwitchOptions-e1d5a6b4.mjs +0 -62
- package/ShareAddView-a5154da3.mjs +0 -88
- package/ShareEditView-cf761cf3.mjs +0 -94
- package/ShareView-3b2f5457.mjs +0 -82
- package/SingleView-3cab20a9.mjs +0 -70
- package/SuperQueryValComponent-5a9ccfd4.mjs +0 -8
- package/TaskOpinionList-60cf4080.mjs +0 -13
- package/index-740b2c4a.mjs +0 -57
- package/index-8fd12d0f.mjs +0 -219
- package/style.css +0 -1
- package/useExtendComponent-95ce0719.mjs +0 -4460
- /package/{SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs → SuperQueryValComponent.vue_vue_type_script_lang-BM-iwlLi.mjs} +0 -0
- /package/{auth.api-53df4c33.mjs → auth.api-2QmzY0ji.mjs} +0 -0
- /package/{auth.data-e44c7975.mjs → auth.data-Cp8D9uZ7.mjs} +0 -0
- /package/{button.data-fe45d43b.mjs → button.data-CyUX77GQ.mjs} +0 -0
- /package/{cgform.data-0ca62d09.mjs → cgform.data-CviSPXEg.mjs} +0 -0
- /package/{cgformState-d9f8ec42.mjs → cgformState-CUyRXfhW.mjs} +0 -0
- /package/{constant-fa63bd66.mjs → constant-DnbpmwZg.mjs} +0 -0
- /package/{enhance.api-138e6826.mjs → enhance.api-BqHb-YGL.mjs} +0 -0
- /package/{index-5e89258d.mjs → index-aVGkB_J9.mjs} +0 -0
- /package/{shareStore-7de6c7a6.mjs → shareStore-k-kzyga5.mjs} +0 -0
- /package/{useCustomHook-3a17a690.mjs → useCustomHook-B35kFqDB.mjs} +0 -0
- /package/{useFormUrl-2ee1a82d.mjs → useFormUrl-D8ASmaz6.mjs} +0 -0
- /package/{useOnlinePopEvent-687070b7.mjs → useOnlinePopEvent-FOvbs0Ta.mjs} +0 -0
- /package/{useOnlineTest-e4bd8be3.mjs → useOnlineTest-_onDRxjY.mjs} +0 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
var c = (r, m, n) => new Promise((f, i) => {
|
|
2
|
+
var p = (o) => {
|
|
3
|
+
try {
|
|
4
|
+
a(n.next(o));
|
|
5
|
+
} catch (s) {
|
|
6
|
+
i(s);
|
|
7
|
+
}
|
|
8
|
+
}, e = (o) => {
|
|
9
|
+
try {
|
|
10
|
+
a(n.throw(o));
|
|
11
|
+
} catch (s) {
|
|
12
|
+
i(s);
|
|
13
|
+
}
|
|
14
|
+
}, a = (o) => o.done ? f(o.value) : Promise.resolve(o.value).then(p, e);
|
|
15
|
+
a((n = n.apply(r, m)).next());
|
|
16
|
+
});
|
|
17
|
+
import { defineComponent as B, nextTick as b, resolveComponent as h, createBlock as T, openBlock as j, withCtx as L, createVNode as P } from "vue";
|
|
18
|
+
import { BasicModal as R, useModalInner as U } from "/@/components/Modal";
|
|
19
|
+
import { BasicForm as O, useForm as Q } from "/@/components/Form";
|
|
20
|
+
import { useMessage as x } from "/@/hooks/web/useMessage";
|
|
21
|
+
import { a as V } from "./useSchemas-svH7q1tm.mjs";
|
|
22
|
+
import { _ as $ } from "./index-0kQBIHx0.mjs";
|
|
23
|
+
const v = B({
|
|
24
|
+
name: "CgformExtConfigModel",
|
|
25
|
+
components: { BasicModal: R, BasicForm: O },
|
|
26
|
+
props: {
|
|
27
|
+
parentForm: {
|
|
28
|
+
type: Object,
|
|
29
|
+
required: !0
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
emits: ["register", "ok"],
|
|
33
|
+
setup(r, { emit: m }) {
|
|
34
|
+
const { createMessage: n } = x(), { formSchemas: f } = V(r, {
|
|
35
|
+
onJoinQueryChange: M,
|
|
36
|
+
onReportPrintShowChange: y,
|
|
37
|
+
onFormLabelLengthShow: _
|
|
38
|
+
}), [i, { resetFields: p, setFieldsValue: e, getFieldsValue: a, clearValidate: o, validate: s }] = Q({
|
|
39
|
+
schemas: f,
|
|
40
|
+
showActionButtonGroup: !1,
|
|
41
|
+
labelAlign: "right"
|
|
42
|
+
}), [w, { closeModal: d }] = U((t) => c(null, null, function* () {
|
|
43
|
+
yield p(), yield e(t.extConfigJson);
|
|
44
|
+
}));
|
|
45
|
+
function C() {
|
|
46
|
+
return c(this, null, function* () {
|
|
47
|
+
yield o(), yield b();
|
|
48
|
+
try {
|
|
49
|
+
const t = yield s();
|
|
50
|
+
m("ok", t), d();
|
|
51
|
+
} catch (t) {
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function F() {
|
|
56
|
+
d();
|
|
57
|
+
}
|
|
58
|
+
const u = "{{ window._CONFIG['domianURL'] }}/jmreport/view/{积木报表ID}";
|
|
59
|
+
function y(t) {
|
|
60
|
+
return c(this, null, function* () {
|
|
61
|
+
let l = a().reportPrintUrl;
|
|
62
|
+
t === 0 ? l === u && (yield e({ reportPrintUrl: "" })) : t === 1 && l === "" && (yield e({ reportPrintUrl: u })), o("reportPrintUrl");
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function _(t) {
|
|
66
|
+
return c(this, null, function* () {
|
|
67
|
+
t == 0 && (yield e({ formLabelLength: null })), yield o("formLabelLength");
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function M(t) {
|
|
71
|
+
if (t === 1) {
|
|
72
|
+
let { themeTemplate: l, isTree: k, tableType: g } = r.parentForm.getFieldsValue(["themeTemplate", "isTree", "tableType"]);
|
|
73
|
+
l === "erp" && (n.warning("请注意:erp风格不支持联合查询,配置无效!"), e({ joinQuery: 0 })), l === "innerTable" && (n.warning("请注意:内嵌风格不支持联合查询,配置无效!"), e({ joinQuery: 0 })), g === 1 ? (n.warning("请注意:单表不支持联合查询,配置无效!"), e({ joinQuery: 0 })) : g === 3 ? (n.warning("请注意:当前表为附表,请在对应主表配置!"), e({ joinQuery: 0 })) : k === "Y" && (n.warning("请注意:树形列表不支持联合查询,配置无效!"), e({ joinQuery: 0 }));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
handleOk: C,
|
|
78
|
+
handleCancel: F,
|
|
79
|
+
registerModal: w,
|
|
80
|
+
registerForm: i
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
function I(r, m, n, f, i, p) {
|
|
85
|
+
const e = h("BasicForm"), a = h("BasicModal");
|
|
86
|
+
return j(), T(a, {
|
|
87
|
+
onRegister: r.registerModal,
|
|
88
|
+
title: "表单扩展配置项",
|
|
89
|
+
width: 1e3,
|
|
90
|
+
onOk: r.handleOk,
|
|
91
|
+
onCancel: r.handleCancel
|
|
92
|
+
}, {
|
|
93
|
+
default: L(() => [
|
|
94
|
+
P(e, { onRegister: r.registerForm }, null, 8, ["onRegister"])
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
}, 8, ["onRegister", "onOk", "onCancel"]);
|
|
98
|
+
}
|
|
99
|
+
const D = /* @__PURE__ */ $(v, [["render", I], ["__scopeId", "data-v-f3d939e5"]]);
|
|
100
|
+
export {
|
|
101
|
+
D as default
|
|
102
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var P = Object.defineProperty, G = Object.defineProperties;
|
|
2
2
|
var I = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var L = Object.getOwnPropertySymbols;
|
|
4
4
|
var T = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var F = (t, a, n) => a in t ? P(t, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[a] = n, _ = (t, a) => {
|
|
6
6
|
for (var n in a || (a = {}))
|
|
7
|
-
T.call(a, n) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
V.call(a, n) &&
|
|
7
|
+
T.call(a, n) && F(t, n, a[n]);
|
|
8
|
+
if (L)
|
|
9
|
+
for (var n of L(a))
|
|
10
|
+
V.call(a, n) && F(t, n, a[n]);
|
|
11
11
|
return t;
|
|
12
12
|
}, N = (t, a) => G(t, I(a));
|
|
13
|
-
var R = (t, a, n) => new Promise((
|
|
13
|
+
var R = (t, a, n) => new Promise((m, i) => {
|
|
14
14
|
var l = (r) => {
|
|
15
15
|
try {
|
|
16
16
|
p(n.next(r));
|
|
@@ -23,20 +23,17 @@ var R = (t, a, n) => new Promise((f, i) => {
|
|
|
23
23
|
} catch (c) {
|
|
24
24
|
i(c);
|
|
25
25
|
}
|
|
26
|
-
}, p = (r) => r.done ?
|
|
26
|
+
}, p = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(l, d);
|
|
27
27
|
p((n = n.apply(t, a)).next());
|
|
28
28
|
});
|
|
29
|
-
import { defineComponent as C, ref as
|
|
29
|
+
import { defineComponent as C, ref as f, reactive as j, toRaw as K, toRefs as $, resolveComponent as w, createBlock as A, openBlock as D, mergeProps as J, withCtx as y, createVNode as O } from "vue";
|
|
30
30
|
import { BasicModal as U, useModalInner as Y } from "/@/components/Modal";
|
|
31
|
-
import q from "./SetSwitchOptions-
|
|
31
|
+
import q from "./SetSwitchOptions-B4Q6l-54.mjs";
|
|
32
32
|
import { BasicForm as H, useForm as W } from "/@/components/Form/index";
|
|
33
33
|
import { pick as z } from "lodash-es";
|
|
34
|
-
import { L as x } from "./constant-
|
|
34
|
+
import { L as x } from "./constant-DnbpmwZg.mjs";
|
|
35
35
|
import { isArray as Q } from "/@/utils/is";
|
|
36
|
-
import { _ as X } from "./index-
|
|
37
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
38
|
-
import "/@/hooks/web/useMessage";
|
|
39
|
-
import "vue-router";
|
|
36
|
+
import { _ as X } from "./index-0kQBIHx0.mjs";
|
|
40
37
|
const Z = C({
|
|
41
38
|
name: "FieldExtendJsonModal",
|
|
42
39
|
components: {
|
|
@@ -46,8 +43,8 @@ const Z = C({
|
|
|
46
43
|
},
|
|
47
44
|
emits: ["success", "register"],
|
|
48
45
|
setup(t, { emit: a }) {
|
|
49
|
-
const n =
|
|
50
|
-
function
|
|
46
|
+
const n = f(!1);
|
|
47
|
+
function m() {
|
|
51
48
|
i.uploadnum = 0, i.showLength = "", i.popupMulti = !0, i.multiSelect = !0, i.store = "", i.text = "", i.orderRule = "", i.validateError = "", i.labelLength = x;
|
|
52
49
|
}
|
|
53
50
|
const i = j({
|
|
@@ -60,7 +57,7 @@ const Z = C({
|
|
|
60
57
|
orderRule: "",
|
|
61
58
|
validateError: "",
|
|
62
59
|
labelLength: x
|
|
63
|
-
}), l =
|
|
60
|
+
}), l = f(""), d = f(""), p = f("0"), r = f(""), c = [
|
|
64
61
|
{
|
|
65
62
|
label: "rowKey",
|
|
66
63
|
field: "rowKey",
|
|
@@ -200,13 +197,13 @@ const Z = C({
|
|
|
200
197
|
ifShow: () => l.value === "switch"
|
|
201
198
|
}
|
|
202
199
|
// update-end--author:liaozhiyang---date:20240308---for:【TV360X-25】扩展参数配置中增加开关是否选项配置
|
|
203
|
-
], [h, { validate: b, setFieldsValue: v, resetFields:
|
|
200
|
+
], [h, { validate: b, setFieldsValue: v, resetFields: M }] = W({
|
|
204
201
|
schemas: c,
|
|
205
202
|
showActionButtonGroup: !1,
|
|
206
203
|
labelAlign: "right",
|
|
207
204
|
labelWidth: 100
|
|
208
|
-
}), [
|
|
209
|
-
if (
|
|
205
|
+
}), [k, { closeModal: B }] = Y((e) => R(null, null, function* () {
|
|
206
|
+
if (m(), e.jsonStr) {
|
|
210
207
|
let o = JSON.parse(e.jsonStr);
|
|
211
208
|
e.fieldShowType === "switch" && Q(o) && o.length == 2 && (i.switchOptions = o), Object.keys(o).map((u) => {
|
|
212
209
|
i[u] = o[u];
|
|
@@ -214,8 +211,8 @@ const Z = C({
|
|
|
214
211
|
} else
|
|
215
212
|
e.fieldShowType === "switch" && (i.switchOptions = ["Y", "N"]);
|
|
216
213
|
l.value = e.fieldShowType, d.value = e.id, p.value = e.sortFlag, r.value = e.dbType;
|
|
217
|
-
let s =
|
|
218
|
-
yield
|
|
214
|
+
let s = K(i);
|
|
215
|
+
yield M(), yield v(N(_({}, s), {
|
|
219
216
|
rowKey: e.id
|
|
220
217
|
}));
|
|
221
218
|
}));
|
|
@@ -229,22 +226,22 @@ const Z = C({
|
|
|
229
226
|
}
|
|
230
227
|
for (let u in o)
|
|
231
228
|
o[u] === "" && delete o[u];
|
|
232
|
-
a("success", o, e.rowKey),
|
|
229
|
+
a("success", o, e.rowKey), B();
|
|
233
230
|
});
|
|
234
231
|
}
|
|
235
232
|
return _({
|
|
236
233
|
spinningLoading: n,
|
|
237
|
-
registerModal:
|
|
234
|
+
registerModal: k,
|
|
238
235
|
registerForm: h,
|
|
239
236
|
fieldShowType: l,
|
|
240
237
|
rowKey: d,
|
|
241
238
|
handleSubmit: E
|
|
242
|
-
},
|
|
239
|
+
}, $(i));
|
|
243
240
|
}
|
|
244
241
|
});
|
|
245
|
-
function ee(t, a, n,
|
|
242
|
+
function ee(t, a, n, m, i, l) {
|
|
246
243
|
const d = w("SetSwitchOptions"), p = w("BasicForm"), r = w("a-spin"), c = w("BasicModal");
|
|
247
|
-
return
|
|
244
|
+
return D(), A(c, J({ wrapClassName: "field-extend-config-modal" }, t.$attrs, {
|
|
248
245
|
title: "字段扩展配置项",
|
|
249
246
|
onRegister: t.registerModal,
|
|
250
247
|
keyboard: "",
|
|
@@ -271,7 +268,7 @@ function ee(t, a, n, f, i, l) {
|
|
|
271
268
|
_: 1
|
|
272
269
|
}, 16, ["onRegister", "onOk"]);
|
|
273
270
|
}
|
|
274
|
-
const
|
|
271
|
+
const pe = /* @__PURE__ */ X(Z, [["render", ee]]);
|
|
275
272
|
export {
|
|
276
|
-
|
|
273
|
+
pe as default
|
|
277
274
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var u = (e,
|
|
2
|
-
var
|
|
1
|
+
var u = (e, c, o) => new Promise((n, a) => {
|
|
2
|
+
var i = (t) => {
|
|
3
3
|
try {
|
|
4
4
|
l(o.next(t));
|
|
5
5
|
} catch (r) {
|
|
@@ -11,26 +11,23 @@ var u = (e, i, o) => new Promise((n, a) => {
|
|
|
11
11
|
} catch (r) {
|
|
12
12
|
a(r);
|
|
13
13
|
}
|
|
14
|
-
}, l = (t) => t.done ? n(t.value) : Promise.resolve(t.value).then(
|
|
15
|
-
l((o = o.apply(e,
|
|
14
|
+
}, l = (t) => t.done ? n(t.value) : Promise.resolve(t.value).then(i, s);
|
|
15
|
+
l((o = o.apply(e, c)).next());
|
|
16
16
|
});
|
|
17
|
-
import { defineComponent as R, ref as f, resolveComponent as p,
|
|
17
|
+
import { defineComponent as R, ref as f, resolveComponent as p, createBlock as h, openBlock as v, withCtx as m, createVNode as g, createElementVNode as k, createCommentVNode as D, createTextVNode as w } from "vue";
|
|
18
18
|
import { defHttp as y } from "/@/utils/http/axios";
|
|
19
|
-
import { BasicModal as
|
|
20
|
-
import { _ as
|
|
21
|
-
|
|
22
|
-
import "/@/hooks/web/useMessage";
|
|
23
|
-
import "vue-router";
|
|
24
|
-
const E = R({
|
|
19
|
+
import { BasicModal as b, useModalInner as B } from "/@/components/Modal";
|
|
20
|
+
import { _ as T } from "./index-0kQBIHx0.mjs";
|
|
21
|
+
const V = R({
|
|
25
22
|
name: "FileSelectModal",
|
|
26
|
-
components: { BasicModal:
|
|
23
|
+
components: { BasicModal: b },
|
|
27
24
|
emits: ["select", "register"],
|
|
28
|
-
setup(e, { emit:
|
|
29
|
-
const o = f(!0), n = f([]), a = f(""),
|
|
25
|
+
setup(e, { emit: c }) {
|
|
26
|
+
const o = f(!0), n = f([]), a = f(""), i = f(!1), [s, { closeModal: l }] = B(() => u(null, null, function* () {
|
|
30
27
|
a.value = "", n.value.length === 0 && _();
|
|
31
28
|
}));
|
|
32
29
|
function t() {
|
|
33
|
-
|
|
30
|
+
c("select", a.value), l();
|
|
34
31
|
}
|
|
35
32
|
function r() {
|
|
36
33
|
l();
|
|
@@ -41,11 +38,11 @@ const E = R({
|
|
|
41
38
|
url: "/online/cgform/head/rootFile"
|
|
42
39
|
/* rootFileUrl */
|
|
43
40
|
}).finally(() => {
|
|
44
|
-
o.value = !1,
|
|
41
|
+
o.value = !1, i.value = !0;
|
|
45
42
|
});
|
|
46
43
|
});
|
|
47
44
|
}
|
|
48
|
-
function
|
|
45
|
+
function C(d) {
|
|
49
46
|
return u(this, null, function* () {
|
|
50
47
|
if (d.dataRef.children)
|
|
51
48
|
return;
|
|
@@ -55,16 +52,15 @@ const E = R({
|
|
|
55
52
|
d.dataRef.children = yield y.get({ url: "/online/cgform/head/fileTree", params: M }), n.value = [...n.value];
|
|
56
53
|
});
|
|
57
54
|
}
|
|
58
|
-
function
|
|
55
|
+
function S(d) {
|
|
59
56
|
a.value = d[0];
|
|
60
57
|
}
|
|
61
|
-
return { loading: o, treeData: n, onLoadData:
|
|
62
|
-
a.value = "",
|
|
63
|
-
}, directoryTreeShow:
|
|
58
|
+
return { loading: o, treeData: n, onLoadData: C, onSelect: S, onSubmit: t, onCancel: r, registerModal: s, hanldeRefresh: () => {
|
|
59
|
+
a.value = "", i.value = !1, _();
|
|
60
|
+
}, directoryTreeShow: i };
|
|
64
61
|
}
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
function V(e, i, o, n, a, c) {
|
|
62
|
+
}), $ = { class: "btnArea" };
|
|
63
|
+
function F(e, c, o, n, a, i) {
|
|
68
64
|
const s = p("a-button"), l = p("a-directory-tree"), t = p("a-spin"), r = p("BasicModal");
|
|
69
65
|
return v(), h(r, {
|
|
70
66
|
onRegister: e.registerModal,
|
|
@@ -76,11 +72,11 @@ function V(e, i, o, n, a, c) {
|
|
|
76
72
|
default: m(() => [
|
|
77
73
|
g(t, { spinning: e.loading }, {
|
|
78
74
|
default: m(() => [
|
|
79
|
-
k("div",
|
|
75
|
+
k("div", $, [
|
|
80
76
|
g(s, { onClick: e.hanldeRefresh }, {
|
|
81
|
-
default: m(() =>
|
|
82
|
-
|
|
83
|
-
])),
|
|
77
|
+
default: m(() => [...c[0] || (c[0] = [
|
|
78
|
+
w("刷新", -1)
|
|
79
|
+
])]),
|
|
84
80
|
_: 1
|
|
85
81
|
}, 8, ["onClick"])
|
|
86
82
|
]),
|
|
@@ -89,7 +85,7 @@ function V(e, i, o, n, a, c) {
|
|
|
89
85
|
treeData: e.treeData,
|
|
90
86
|
loadData: e.onLoadData,
|
|
91
87
|
onSelect: e.onSelect
|
|
92
|
-
}, null, 8, ["treeData", "loadData", "onSelect"])) :
|
|
88
|
+
}, null, 8, ["treeData", "loadData", "onSelect"])) : D("", !0)
|
|
93
89
|
]),
|
|
94
90
|
_: 1
|
|
95
91
|
}, 8, ["spinning"])
|
|
@@ -97,7 +93,7 @@ function V(e, i, o, n, a, c) {
|
|
|
97
93
|
_: 1
|
|
98
94
|
}, 8, ["onRegister", "onOk", "onCancel"]);
|
|
99
95
|
}
|
|
100
|
-
const
|
|
96
|
+
const H = /* @__PURE__ */ T(V, [["render", F], ["__scopeId", "data-v-102e9e9f"]]);
|
|
101
97
|
export {
|
|
102
|
-
|
|
98
|
+
H as default
|
|
103
99
|
};
|
|
@@ -1,27 +1,19 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var s = Object.defineProperty, u = Object.defineProperties;
|
|
2
|
+
var p = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var a = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var m = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var n = (e, t, o) => t in e ? s(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, l = (e, t) => {
|
|
6
6
|
for (var o in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
m.call(t, o) && n(e, o, t[o]);
|
|
8
8
|
if (a)
|
|
9
9
|
for (var o of a(t))
|
|
10
|
-
c.call(t, o) &&
|
|
10
|
+
c.call(t, o) && n(e, o, t[o]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
import { defineComponent as b, ref as f, resolveComponent as y,
|
|
14
|
-
import { JVxeTypes as
|
|
15
|
-
import { u as k } from "./useTableSync-
|
|
16
|
-
import { _ as w } from "./index-
|
|
17
|
-
import "./cgform.data-0ca62d09.mjs";
|
|
18
|
-
import "/@/utils/dict";
|
|
19
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
20
|
-
import "/@/utils/uuid";
|
|
21
|
-
import "lodash-es";
|
|
22
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
23
|
-
import "/@/hooks/web/useMessage";
|
|
24
|
-
import "vue-router";
|
|
12
|
+
}, i = (e, t) => u(e, p(t));
|
|
13
|
+
import { defineComponent as b, ref as f, resolveComponent as y, createBlock as h, openBlock as g, mergeProps as T } from "vue";
|
|
14
|
+
import { JVxeTypes as r } from "/@/components/jeecg/JVxeTable/types";
|
|
15
|
+
import { u as k } from "./useTableSync-BAWujyoc.mjs";
|
|
16
|
+
import { _ as w } from "./index-0kQBIHx0.mjs";
|
|
25
17
|
const F = b({
|
|
26
18
|
name: "ForeignKeyTable",
|
|
27
19
|
props: {
|
|
@@ -35,23 +27,23 @@ const F = b({
|
|
|
35
27
|
title: "主表名",
|
|
36
28
|
key: "mainTable",
|
|
37
29
|
width: 280,
|
|
38
|
-
type:
|
|
30
|
+
type: r.input,
|
|
39
31
|
defaultValue: ""
|
|
40
32
|
},
|
|
41
33
|
{
|
|
42
34
|
title: "主表字段",
|
|
43
35
|
key: "mainField",
|
|
44
36
|
width: 280,
|
|
45
|
-
type:
|
|
37
|
+
type: r.input,
|
|
46
38
|
defaultValue: ""
|
|
47
39
|
}
|
|
48
40
|
]), t = k(e);
|
|
49
|
-
return
|
|
41
|
+
return i(l({}, t), { columns: e });
|
|
50
42
|
}
|
|
51
43
|
});
|
|
52
44
|
function _(e, t, o, B, V, S) {
|
|
53
45
|
const d = y("JVxeTable");
|
|
54
|
-
return
|
|
46
|
+
return g(), h(d, T({
|
|
55
47
|
ref: "tableRef",
|
|
56
48
|
rowNumber: "",
|
|
57
49
|
keyboardEdit: "",
|
|
@@ -63,7 +55,7 @@ function _(e, t, o, B, V, S) {
|
|
|
63
55
|
disabledRows: { dbFieldName: ["id", "has_child"] }
|
|
64
56
|
}, e.tableProps), null, 16, ["maxHeight", "loading", "columns", "dataSource", "disabled"]);
|
|
65
57
|
}
|
|
66
|
-
const
|
|
58
|
+
const C = /* @__PURE__ */ w(F, [["render", _]]);
|
|
67
59
|
export {
|
|
68
|
-
|
|
60
|
+
C as default
|
|
69
61
|
};
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import { defineComponent as f, ref as b, resolveComponent as g,
|
|
1
|
+
import { defineComponent as f, ref as b, resolveComponent as g, createBlock as h, openBlock as y, mergeProps as $ } from "vue";
|
|
2
2
|
import { JVxeTypes as o } from "/@/components/jeecg/JVxeTable/types";
|
|
3
|
-
import { u as T } from "./useTableSync-
|
|
4
|
-
import { _ as v } from "./index-
|
|
5
|
-
import "./cgform.data-0ca62d09.mjs";
|
|
6
|
-
import "/@/utils/dict";
|
|
7
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
8
|
-
import "/@/utils/uuid";
|
|
9
|
-
import "lodash-es";
|
|
10
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
11
|
-
import "/@/hooks/web/useMessage";
|
|
12
|
-
import "vue-router";
|
|
3
|
+
import { u as T } from "./useTableSync-BAWujyoc.mjs";
|
|
4
|
+
import { _ as v } from "./index-0kQBIHx0.mjs";
|
|
13
5
|
const x = f({
|
|
14
6
|
name: "IndexTable",
|
|
15
7
|
components: {},
|
|
@@ -62,7 +54,7 @@ const x = f({
|
|
|
62
54
|
placeholder: "请选择${title}",
|
|
63
55
|
validateRules: [{ required: !0, message: "请选择${title}" }]
|
|
64
56
|
}
|
|
65
|
-
]), l = T(e), { tableRef: r, loading:
|
|
57
|
+
]), l = T(e), { tableRef: r, loading: n, dataSource: i, tableHeight: u, tableProps: t, setDataSource: d, validateData: p } = l;
|
|
66
58
|
function m(c) {
|
|
67
59
|
let s = [];
|
|
68
60
|
c.value.tableRef.getTableData().forEach((a) => {
|
|
@@ -72,12 +64,12 @@ const x = f({
|
|
|
72
64
|
});
|
|
73
65
|
}), e.value[1].options = s;
|
|
74
66
|
}
|
|
75
|
-
return { tableRef: r, loading:
|
|
67
|
+
return { tableRef: r, loading: n, dataSource: i, columns: e, tableHeight: u, tableProps: t, syncTable: m, setDataSource: d, validateData: p };
|
|
76
68
|
}
|
|
77
69
|
});
|
|
78
|
-
function S(e, l, r,
|
|
70
|
+
function S(e, l, r, n, i, u) {
|
|
79
71
|
const t = g("JVxeTable");
|
|
80
|
-
return
|
|
72
|
+
return y(), h(t, $({
|
|
81
73
|
ref: "tableRef",
|
|
82
74
|
rowNumber: "",
|
|
83
75
|
rowSelection: "",
|
|
@@ -91,7 +83,7 @@ function S(e, l, r, i, n, u) {
|
|
|
91
83
|
toolbar: e.actionButton
|
|
92
84
|
}, e.tableProps), null, 16, ["maxHeight", "loading", "columns", "dataSource", "toolbar"]);
|
|
93
85
|
}
|
|
94
|
-
const
|
|
86
|
+
const w = /* @__PURE__ */ v(x, [["render", S]]);
|
|
95
87
|
export {
|
|
96
|
-
|
|
88
|
+
w as default
|
|
97
89
|
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { computed as i, createElementBlock as l, createCommentVNode as r, openBlock as c, normalizeClass as d, createElementVNode as s } from "vue";
|
|
2
|
+
import { useAppInject as p } from "/@/hooks/web/useAppInject";
|
|
3
|
+
import { _ as m } from "./index-0kQBIHx0.mjs";
|
|
4
|
+
const f = {
|
|
5
|
+
name: "JModalTip",
|
|
6
|
+
props: {
|
|
7
|
+
visible: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: !1
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
emits: ["save", "cancel"],
|
|
13
|
+
setup(t) {
|
|
14
|
+
const { getIsMobile: e } = p();
|
|
15
|
+
return {
|
|
16
|
+
flag: i(() => t.visible),
|
|
17
|
+
getIsMobile: e
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}, v = { class: "container" }, u = { class: "outer" }, _ = { class: "inner" };
|
|
21
|
+
function b(t, e, n, o, g, $) {
|
|
22
|
+
return o.flag ? (c(), l("div", {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: d(["jeecg-update-tip-bar", { mobile: o.getIsMobile }])
|
|
25
|
+
}, [
|
|
26
|
+
s("div", v, [
|
|
27
|
+
s("div", u, [
|
|
28
|
+
s("div", _, [
|
|
29
|
+
e[2] || (e[2] = s("span", { class: "tip" }, "正在修改表单数据 ···", -1)),
|
|
30
|
+
s("div", {
|
|
31
|
+
class: "cancel",
|
|
32
|
+
onClick: e[0] || (e[0] = (a) => t.$emit("cancel"))
|
|
33
|
+
}, "取消"),
|
|
34
|
+
s("div", {
|
|
35
|
+
class: "save",
|
|
36
|
+
onClick: e[1] || (e[1] = (a) => t.$emit("save"))
|
|
37
|
+
}, "保存")
|
|
38
|
+
])
|
|
39
|
+
])
|
|
40
|
+
])
|
|
41
|
+
], 2)) : r("", !0);
|
|
42
|
+
}
|
|
43
|
+
const M = /* @__PURE__ */ m(f, [["render", b], ["__scopeId", "data-v-dc9246f4"]]);
|
|
44
|
+
export {
|
|
45
|
+
M as default
|
|
46
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var f = (i, p, o) => new Promise((t, n) => {
|
|
2
2
|
var u = (a) => {
|
|
3
3
|
try {
|
|
4
4
|
e(o.next(a));
|
|
@@ -17,10 +17,8 @@ var h = (i, p, o) => new Promise((t, n) => {
|
|
|
17
17
|
import { useDebounceFn as O } from "@vueuse/core";
|
|
18
18
|
import { defHttp as P } from "/@/utils/http/axios";
|
|
19
19
|
import { useMessage as k } from "/@/hooks/web/useMessage";
|
|
20
|
-
import {
|
|
21
|
-
import { _ as L } from "./index-
|
|
22
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
23
|
-
import "vue-router";
|
|
20
|
+
import { resolveComponent as S, createBlock as _, openBlock as h, withCtx as y, createElementBlock as B, Fragment as D, renderList as H, createTextVNode as I, toDisplayString as q, ref as m, watch as w } from "vue";
|
|
21
|
+
import { _ as L } from "./index-0kQBIHx0.mjs";
|
|
24
22
|
const { createMessage: N } = k(), T = {
|
|
25
23
|
name: "JOnlineSearchSelect",
|
|
26
24
|
props: {
|
|
@@ -43,16 +41,16 @@ const { createMessage: N } = k(), T = {
|
|
|
43
41
|
setup(i, { emit: p }) {
|
|
44
42
|
let o = m(""), t = m([]), n = !0, u = !1, c = "";
|
|
45
43
|
const e = m(1);
|
|
46
|
-
|
|
44
|
+
w(
|
|
47
45
|
() => i.value,
|
|
48
46
|
(l) => {
|
|
49
47
|
l ? o.value = l : o.value = void 0;
|
|
50
48
|
},
|
|
51
49
|
{ immediate: !0 }
|
|
52
|
-
),
|
|
50
|
+
), w(
|
|
53
51
|
() => i.fieldId,
|
|
54
52
|
() => {
|
|
55
|
-
|
|
53
|
+
g();
|
|
56
54
|
},
|
|
57
55
|
{ immediate: !0 }
|
|
58
56
|
);
|
|
@@ -60,14 +58,14 @@ const { createMessage: N } = k(), T = {
|
|
|
60
58
|
c = l, e.value = 1, n = !0, s(l);
|
|
61
59
|
}, 800);
|
|
62
60
|
function s(l = "") {
|
|
63
|
-
return
|
|
61
|
+
return f(this, null, function* () {
|
|
64
62
|
let d = {
|
|
65
63
|
keyword: l,
|
|
66
64
|
fieldId: i.fieldId,
|
|
67
65
|
pageSize: 10,
|
|
68
66
|
pageNo: e.value
|
|
69
|
-
}
|
|
70
|
-
yield P.get({ url:
|
|
67
|
+
};
|
|
68
|
+
yield P.get({ url: "/online/cgreport/api/getReportDictList", params: d }, { isTransformResponse: !1 }).then((r) => {
|
|
71
69
|
r.success ? r.result && r.result.length > 0 ? (e.value == 1 ? t.value = [...r.result] : t.value.push(...r.result), e.value++) : (e.value == 1 && (t.value = []), n = !1) : N.warning(r.message);
|
|
72
70
|
}).catch(() => {
|
|
73
71
|
e.value != 1 && e.value--;
|
|
@@ -75,9 +73,9 @@ const { createMessage: N } = k(), T = {
|
|
|
75
73
|
});
|
|
76
74
|
}
|
|
77
75
|
function C(l) {
|
|
78
|
-
p("update:value", l), (!l || l == "") &&
|
|
76
|
+
p("update:value", l), (!l || l == "") && g();
|
|
79
77
|
}
|
|
80
|
-
function
|
|
78
|
+
function g() {
|
|
81
79
|
t.value = [], e.value = 1, n = !0, c = "", s();
|
|
82
80
|
}
|
|
83
81
|
return {
|
|
@@ -85,9 +83,9 @@ const { createMessage: N } = k(), T = {
|
|
|
85
83
|
handleSearch: a,
|
|
86
84
|
handleChange: C,
|
|
87
85
|
selected: o,
|
|
88
|
-
handlePopupScroll: (l) =>
|
|
89
|
-
const { target: d } = l, { scrollTop:
|
|
90
|
-
!u && n &&
|
|
86
|
+
handlePopupScroll: (l) => f(null, null, function* () {
|
|
87
|
+
const { target: d } = l, { scrollTop: v, scrollHeight: r, clientHeight: x } = d;
|
|
88
|
+
!u && n && v + x >= r - 10 && (u = !0, s(c).finally(() => {
|
|
91
89
|
u = !1;
|
|
92
90
|
}));
|
|
93
91
|
})
|
|
@@ -95,8 +93,8 @@ const { createMessage: N } = k(), T = {
|
|
|
95
93
|
}
|
|
96
94
|
};
|
|
97
95
|
function F(i, p, o, t, n, u) {
|
|
98
|
-
const c =
|
|
99
|
-
return
|
|
96
|
+
const c = S("a-select-option"), e = S("a-select");
|
|
97
|
+
return h(), _(e, {
|
|
100
98
|
value: t.selected,
|
|
101
99
|
placeholder: o.placeholder,
|
|
102
100
|
"show-search": "",
|
|
@@ -109,11 +107,11 @@ function F(i, p, o, t, n, u) {
|
|
|
109
107
|
onPopupScroll: t.handlePopupScroll,
|
|
110
108
|
allowClear: ""
|
|
111
109
|
}, {
|
|
112
|
-
default:
|
|
113
|
-
(
|
|
110
|
+
default: y(() => [
|
|
111
|
+
(h(!0), B(D, null, H(t.selectOptions, (a) => (h(), _(c, {
|
|
114
112
|
key: a.value
|
|
115
113
|
}, {
|
|
116
|
-
default:
|
|
114
|
+
default: y(() => [
|
|
117
115
|
I(q(a.text), 1)
|
|
118
116
|
]),
|
|
119
117
|
_: 2
|
|
@@ -122,7 +120,7 @@ function F(i, p, o, t, n, u) {
|
|
|
122
120
|
_: 1
|
|
123
121
|
}, 8, ["value", "placeholder", "onSearch", "onChange", "onPopupScroll"]);
|
|
124
122
|
}
|
|
125
|
-
const
|
|
123
|
+
const j = /* @__PURE__ */ L(T, [["render", F]]);
|
|
126
124
|
export {
|
|
127
|
-
|
|
125
|
+
j as default
|
|
128
126
|
};
|