@jeecg/online 3.7.4 → 3.9.0-beta
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-d2fed52f.mjs → AccountLoginForm-cbc75a49.mjs} +1 -1
- package/{AiModal-fbe4b68a.mjs → AiModal-5bec5218.mjs} +1 -1
- package/{AppForgetPassword-3b3bec82.mjs → AppForgetPassword-dbc8377e.mjs} +2 -2
- package/{AppLogin-cd2e2a87.mjs → AppLogin-786949d3.mjs} +9 -9
- package/{AppLoginHeader-9b5be678.mjs → AppLoginHeader-37034b2f.mjs} +1 -1
- package/{AppNameEmail-b4e32ae8.mjs → AppNameEmail-7c6a1406.mjs} +2 -2
- package/{AppRegister-7117b66a.mjs → AppRegister-29a00a9d.mjs} +3 -3
- package/{AppTenant-5817729b.mjs → AppTenant-92890383.mjs} +2 -2
- package/{AppThirdForm-d14fb5e5.mjs → AppThirdForm-760064e5.mjs} +1 -1
- package/{AuthButtonConfig-5e3b6d72.mjs → AuthButtonConfig-78180aec.mjs} +50 -46
- package/{AuthButtonTree-7b4ec967.mjs → AuthButtonTree-62c8e70c.mjs} +2 -2
- package/{AuthDataConfig-48ee9228.mjs → AuthDataConfig-c978c469.mjs} +2 -2
- package/{AuthDataTree-02b3ba05.mjs → AuthDataTree-0647a06c.mjs} +1 -1
- package/{AuthFieldConfig-562cc6b6.mjs → AuthFieldConfig-558283bc.mjs} +2 -2
- package/{AuthFieldTree-2d458c0c.mjs → AuthFieldTree-106db4e2.mjs} +1 -1
- package/{AuthManagerDrawer-38299230.mjs → AuthManagerDrawer-ec5190d2.mjs} +5 -5
- package/{AuthSetterModal-78b06703.mjs → AuthSetterModal-90a76886.mjs} +8 -8
- package/CgformAddressModal-690b8940.mjs +263 -0
- package/CgformCopyList-af9c99a4.mjs +260 -0
- package/{CgformModal-12951453.mjs → CgformModal-b04a492a.mjs} +73 -70
- package/CgreportAigcModal-8fdcbd31.mjs +211 -0
- package/{CgreportModal-bfeb93ed.mjs → CgreportModal-da62724c.mjs} +123 -119
- package/{CheckDictTable-3c1e59e0.mjs → CheckDictTable-7320189b.mjs} +2 -2
- package/{CodeFileListModal-71752603.mjs → CodeFileListModal-e5ec210d.mjs} +2 -2
- package/CodeFileViewModal-09053f3a.mjs +269 -0
- package/CodeGeneratorModal-aba790e3.mjs +298 -0
- package/{CustomButtonList-22b5cdb3.mjs → CustomButtonList-704e6d1c.mjs} +1 -1
- package/{DBAttributeTable-eb25565c.mjs → DBAttributeTable-4a65c897.mjs} +176 -131
- package/{DbToOnlineModal-049b4bbd.mjs → DbToOnlineModal-cc398c70.mjs} +1 -1
- package/{DetailForm-c127c27f.mjs → DetailForm-a2bf8c33.mjs} +165 -153
- package/{DropMenuItem-b1a8f47d.mjs → DropMenuItem-884f9464.mjs} +1 -1
- package/{EnhanceJavaModal-1a4d696b.mjs → EnhanceJavaModal-fe8d475d.mjs} +1 -1
- package/{EnhanceJsHistory-48cf43ad.mjs → EnhanceJsHistory-95ca545c.mjs} +2 -2
- package/{EnhanceJsModal-0e1f15f8.mjs → EnhanceJsModal-742b0ee2.mjs} +17 -16
- package/{EnhanceSqlModal-6a1aa471.mjs → EnhanceSqlModal-6e36bc4f.mjs} +1 -1
- package/{ExtendConfigModal-37af21a5.mjs → ExtendConfigModal-74d657c7.mjs} +2 -2
- package/{FieldExtendJsonModal-9441e08e.mjs → FieldExtendJsonModal-fe7f7902.mjs} +2 -2
- package/{FileSelectModal-04490919.mjs → FileSelectModal-cf41604b.mjs} +1 -1
- package/{ForeignKeyTable-06300a47.mjs → ForeignKeyTable-4a59ded1.mjs} +2 -2
- package/{IndexTable-79bddd5c.mjs → IndexTable-87d67830.mjs} +2 -2
- package/{JModalTip-192fafa1.mjs → JModalTip-5401f43d.mjs} +1 -1
- package/{JOnlineSearchSelect-9abcf657.mjs → JOnlineSearchSelect-d8c57973.mjs} +1 -1
- package/{LeftDepart-35d78655.mjs → LeftDepart-463bf432.mjs} +1 -1
- package/{LeftRole-9d88976d.mjs → LeftRole-1631d3d4.mjs} +1 -1
- package/{LeftUser-04c89aea.mjs → LeftUser-5774a5db.mjs} +1 -1
- package/{LinkTableConfigModal-5f94ef13.mjs → LinkTableConfigModal-1bab1423.mjs} +1 -1
- package/{LinkTableFieldConfigModal-40753de5.mjs → LinkTableFieldConfigModal-49470140.mjs} +1 -1
- package/{LinkTableListPiece-179035c7.mjs → LinkTableListPiece-47f4286c.mjs} +1 -1
- package/{ModalFormDemo-3a85920c.mjs → ModalFormDemo-dbd0aa28.mjs} +1 -1
- package/OnlCgformErpList-35ad1d6e.mjs +528 -0
- package/{OnlCgformErpSubTable-3515150b.mjs → OnlCgformErpSubTable-5093d438.mjs} +45 -42
- package/{OnlCgformInnerSubTable-13e888c6.mjs → OnlCgformInnerSubTable-f1dc90db.mjs} +108 -103
- package/{OnlCgformInnerTableList-2e8f853c.mjs → OnlCgformInnerTableList-1b82a7da.mjs} +163 -155
- package/{OnlCgformTabList-583ac15f.mjs → OnlCgformTabList-d66d1261.mjs} +163 -155
- package/OnlineAutoList-fbba2a52.mjs +559 -0
- package/{OnlineAutoModal-c0743caf.mjs → OnlineAutoModal-68909692.mjs} +11 -10
- package/OnlineAutoTreeList-5153f09d.mjs +533 -0
- package/OnlineCustomModal-b5f8c799.mjs +247 -0
- package/{OnlineDetailModal-785e848e.mjs → OnlineDetailModal-ac078a9a.mjs} +45 -43
- package/OnlineForm-20604e4f.mjs +1080 -0
- package/OnlineFormDetail-719118b6.mjs +350 -0
- package/{OnlineFormUrlAdd-905bf251.mjs → OnlineFormUrlAdd-5b675f48.mjs} +14 -12
- package/{OnlineFormUrlDetail-a9dd2bfa.mjs → OnlineFormUrlDetail-91156bf2.mjs} +22 -19
- package/{OnlineFormUrlEdit-b8941f05.mjs → OnlineFormUrlEdit-fb810de6.mjs} +14 -12
- package/{OnlineFormUrlSuccess-ecaf6a21.mjs → OnlineFormUrlSuccess-302ecb21.mjs} +1 -1
- package/{OnlineQueryForm-ca6186a3.mjs → OnlineQueryForm-5eeceb51.mjs} +120 -120
- package/{OnlineSearchFormItem-5c503a51.mjs → OnlineSearchFormItem-5536a1a6.mjs} +2 -2
- package/{OnlineSelectCascade-a3e686b3.mjs → OnlineSelectCascade-180e8c9a.mjs} +61 -55
- package/{OnlineSubFormDetail-be1ad3b9.mjs → OnlineSubFormDetail-4d64e7be.mjs} +48 -44
- package/{OnlineTabAutoModal-fb59b573.mjs → OnlineTabAutoModal-c127ed50.mjs} +10 -9
- package/{OnlineTabDetailModal-4b9c4838.mjs → OnlineTabDetailModal-e4e9f7e3.mjs} +39 -37
- package/{OnlineTabForm-89389384.mjs → OnlineTabForm-827e7089.mjs} +26 -25
- package/OnlineTabFormDetail-0f96377e.mjs +329 -0
- package/{PageAttributeTable-345b97fe.mjs → PageAttributeTable-5703e2f1.mjs} +6 -6
- package/{PhoneLoginForm-8ca7e2d4.mjs → PhoneLoginForm-15dc68ed.mjs} +52 -52
- package/ProcessOnlineForm-1fcbe0af.mjs +219 -0
- package/{QueryTable-f0a88d78.mjs → QueryTable-26c9ee22.mjs} +2 -2
- package/{SetSwitchOptions-cdcb22a1.mjs → SetSwitchOptions-a3428177.mjs} +1 -1
- package/{ShareAddView-f713c0a5.mjs → ShareAddView-0512e884.mjs} +25 -22
- package/{ShareEditView-691764ad.mjs → ShareEditView-b89dfbd3.mjs} +25 -22
- package/{ShareView-df344a8d.mjs → ShareView-faf1a0ab.mjs} +23 -20
- package/{ShareView.vue_vue_type_script_setup_true_lang-560459c9.mjs → ShareView.vue_vue_type_script_setup_true_lang-d1597c0d.mjs} +2 -2
- package/{SingleView-ad0287d6.mjs → SingleView-21d3a558.mjs} +18 -15
- package/{SingleView.vue_vue_type_style_index_0_lang-ce96670b.mjs → SingleView.vue_vue_type_style_index_0_lang-914483d0.mjs} +4 -4
- package/{SuperQuery-2b293e3b.mjs → SuperQuery-c95f86ee.mjs} +69 -67
- package/TaskOpinionList-73ecb3c8.mjs +101 -0
- package/aiModal-b44fa135.mjs +175 -0
- package/{auth.data-626c5083.mjs → auth.data-e44c7975.mjs} +10 -9
- package/button.data-fe45d43b.mjs +12 -0
- package/dayjs.min-eea532a3.mjs +301 -0
- package/{index-d6f9ada7.mjs → index-02f6dc7d.mjs} +2 -2
- package/{index-bef7fe2d.mjs → index-22a99f2e.mjs} +1 -1
- package/{index-181f8344.mjs → index-26940246.mjs} +3 -3
- package/{index-3c7392a4.mjs → index-30da2fc0.mjs} +136 -128
- package/index-391aec04.mjs +268 -0
- package/index-94b6319e.mjs +57 -0
- package/{index-93341e02.mjs → index-abbfd327.mjs} +2 -2
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-aaa30c8c.mjs +410 -0
- package/{useCustomHook-acb00837.mjs → useCustomHook-3a17a690.mjs} +11 -9
- package/useExtendComponent-ad499dff.mjs +4164 -0
- package/useListButton-308458cd.mjs +765 -0
- package/{useSchemas-f1819e54.mjs → useSchemas-b074f3a1.mjs} +72 -72
- package/{useTableSync-075826a1.mjs → useTableSync-dbfba20e.mjs} +31 -31
- package/CgformAddressModal-1b9cbe19.mjs +0 -260
- package/CgformCopyList-580bba0f.mjs +0 -252
- package/CodeFileViewModal-eb803769.mjs +0 -253
- package/CodeGeneratorModal-2fe1e920.mjs +0 -281
- package/OnlCgformErpList-8fd15fc1.mjs +0 -488
- package/OnlineAutoList-36ec0957.mjs +0 -513
- package/OnlineAutoTreeList-1cd718be.mjs +0 -523
- package/OnlineCustomModal-661ee850.mjs +0 -232
- package/OnlineForm-c1fb38eb.mjs +0 -1012
- package/OnlineFormDetail-50186870.mjs +0 -342
- package/OnlineTabFormDetail-72173ae4.mjs +0 -327
- package/ProcessOnlineForm-485b5679.mjs +0 -188
- package/README.md +0 -26
- package/index-3ccda826.mjs +0 -239
- package/index-f3683351.mjs +0 -57
- package/useCgformList-13c8aab7.mjs +0 -378
- package/useExtendComponent-3f5734ca.mjs +0 -4459
- package/useListButton-ee23874a.mjs +0 -719
- /package/{OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs} +0 -0
|
@@ -2,7 +2,7 @@ var ze = Object.defineProperty, Xe = Object.defineProperties;
|
|
|
2
2
|
var We = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var re = Object.getOwnPropertySymbols;
|
|
4
4
|
var Ze = Object.prototype.hasOwnProperty, ea = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var ue = (a, l, c) => l in a ? ze(a, l, { enumerable: !0, configurable: !0, writable: !0, value: c }) : a[l] = c,
|
|
5
|
+
var ue = (a, l, c) => l in a ? ze(a, l, { enumerable: !0, configurable: !0, writable: !0, value: c }) : a[l] = c, P = (a, l) => {
|
|
6
6
|
for (var c in l || (l = {}))
|
|
7
7
|
Ze.call(l, c) && ue(a, c, l[c]);
|
|
8
8
|
if (re)
|
|
@@ -26,28 +26,28 @@ var D = (a, l, c) => new Promise((E, h) => {
|
|
|
26
26
|
}, F = (T) => T.done ? E(T.value) : Promise.resolve(T.value).then(g, w);
|
|
27
27
|
F((c = c.apply(a, l)).next());
|
|
28
28
|
});
|
|
29
|
-
import { defineComponent as aa, ref as y, computed as ce, provide as be, reactive as ta, nextTick as Z, toRaw as la, resolveComponent as m, openBlock as _, createBlock as ee, mergeProps as na, withCtx as b, createElementVNode as
|
|
29
|
+
import { defineComponent as aa, ref as y, computed as ce, provide as be, reactive as ta, nextTick as Z, toRaw as la, resolveComponent as m, openBlock as _, createBlock as ee, mergeProps as na, withCtx as b, createElementVNode as M, createVNode as u, createTextVNode as B, createElementBlock as ae, Fragment as oa, renderList as ia, toDisplayString as sa, createCommentVNode as te } from "vue";
|
|
30
30
|
import { Icon as ra } from "/@/components/Icon";
|
|
31
31
|
import { BasicModal as ua, useModalInner as da, useModal as ca } from "/@/components/Modal";
|
|
32
32
|
import { BasicForm as ba, useForm as fa } from "/@/components/Form/index";
|
|
33
33
|
import { useMessage as ma } from "/@/hooks/web/useMessage";
|
|
34
|
-
import { u as pa } from "./useSchemas-
|
|
35
|
-
import ga from "./DBAttributeTable-
|
|
36
|
-
import Ta from "./PageAttributeTable-
|
|
37
|
-
import ya from "./CheckDictTable-
|
|
38
|
-
import va from "./ForeignKeyTable-
|
|
39
|
-
import ha from "./IndexTable-
|
|
40
|
-
import Fa from "./QueryTable-
|
|
41
|
-
import Ca from "./ExtendConfigModal-
|
|
42
|
-
import { u as Da, E as wa, a as Ba, V as
|
|
34
|
+
import { u as pa } from "./useSchemas-b074f3a1.mjs";
|
|
35
|
+
import ga from "./DBAttributeTable-4a65c897.mjs";
|
|
36
|
+
import Ta from "./PageAttributeTable-5703e2f1.mjs";
|
|
37
|
+
import ya from "./CheckDictTable-7320189b.mjs";
|
|
38
|
+
import va from "./ForeignKeyTable-4a59ded1.mjs";
|
|
39
|
+
import ha from "./IndexTable-87d67830.mjs";
|
|
40
|
+
import Fa from "./QueryTable-26c9ee22.mjs";
|
|
41
|
+
import Ca from "./ExtendConfigModal-74d657c7.mjs";
|
|
42
|
+
import { u as Da, E as wa, a as Ba, V as j } from "./cgform.data-0ca62d09.mjs";
|
|
43
43
|
import { defHttp as v } from "/@/utils/http/axios";
|
|
44
44
|
import { simpleDebounce as ka } from "/@/utils/common/compUtils";
|
|
45
45
|
import { u as Ia } from "./useOnlineTest-e4bd8be3.mjs";
|
|
46
46
|
import { buildUUID as Ra } from "/@/utils/uuid";
|
|
47
|
-
import { sleep as
|
|
48
|
-
import { g as Sa } from "./useExtendComponent-
|
|
47
|
+
import { sleep as q } from "/@/utils";
|
|
48
|
+
import { g as Sa } from "./useExtendComponent-ad499dff.mjs";
|
|
49
49
|
import { p as _a } from "./utils-9fce7606.mjs";
|
|
50
|
-
import { _ as Ea } from "./index-
|
|
50
|
+
import { _ as Ea } from "./index-94b6319e.mjs";
|
|
51
51
|
const dt = (a) => v.get({ url: "/online/cgform/head/list", params: a }), ct = (a) => fe(a, 0), bt = (a) => v.delete(
|
|
52
52
|
{ url: "/online/cgform/head/removeRecord", params: { id: a } },
|
|
53
53
|
{ joinParamsToUrl: !0 }
|
|
@@ -67,11 +67,11 @@ function fe(a, l) {
|
|
|
67
67
|
{ joinParamsToUrl: !0 }
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
|
-
const pt = (a, l) => v.post({ url: `/online/cgform/api/doDbSynch/${a}/${l}`, timeout: 12e3, timeoutErrorMessage: "同步数据库超时,已自动刷新" }), gt = (a) => v.post({ url: `/online/cgform/head/copyOnline?code=${a}` }), Tt = (a, l, c) => v.get({ url: `/online/cgform/head/copyOnlineTable/${a}`, params:
|
|
70
|
+
const pt = (a, l) => v.post({ url: `/online/cgform/api/doDbSynch/${a}/${l}`, timeout: 12e3, timeoutErrorMessage: "同步数据库超时,已自动刷新" }), gt = (a) => v.post({ url: `/online/cgform/head/copyOnline?code=${a}` }), Tt = (a, l, c) => v.get({ url: `/online/cgform/head/copyOnlineTable/${a}`, params: P({ tableName: l }, c) }), x = {
|
|
71
71
|
// 查询表字段 e3e3NcxzbUiGa53YYVXxWc8ADo5ISgQGx/gaZwERF91oAryDlivjqBv3wqRArgChupi+Y/Gg/swwGEyL0PuVFg==
|
|
72
|
-
doQueryField: (a, l) => v.get({ url: "/online/cgform/field/listByHeadId", params:
|
|
72
|
+
doQueryField: (a, l) => v.get({ url: "/online/cgform/field/listByHeadId", params: P({ headId: a }, l) }),
|
|
73
73
|
// 查询表index配置
|
|
74
|
-
doQueryIndexes: (a, l) => v.get({ url: "/online/cgform/index/listByHeadId", params:
|
|
74
|
+
doQueryIndexes: (a, l) => v.get({ url: "/online/cgform/index/listByHeadId", params: P({ headId: a }, l) }),
|
|
75
75
|
// 新增或修改
|
|
76
76
|
doSaveOrUpdate: (a, l) => l ? v.put({ url: "/online/cgform/api/editAll", params: a }) : v.post({ url: "/online/cgform/api/addAll", params: a }),
|
|
77
77
|
//只是修改表配置不改字段
|
|
@@ -121,13 +121,13 @@ const pt = (a, l) => v.post({ url: `/online/cgform/api/doDbSynch/${a}/${l}`, tim
|
|
|
121
121
|
schemas: J,
|
|
122
122
|
showActionButtonGroup: !1,
|
|
123
123
|
labelAlign: "right"
|
|
124
|
-
}), { resetFields:
|
|
124
|
+
}), { resetFields: L, setFieldsValue: U, validate: G } = R, [Y, { closeModal: z }] = da((e) => {
|
|
125
125
|
var t;
|
|
126
126
|
h.value = (t = e == null ? void 0 : e.isUpdate) != null ? t : !1, h.value ? oe(e == null ? void 0 : e.record) : he();
|
|
127
|
-
}),
|
|
127
|
+
}), O = y("");
|
|
128
128
|
let s = ta({});
|
|
129
129
|
const X = ka(() => Re(), 150);
|
|
130
|
-
let le = [], ne = !1,
|
|
130
|
+
let le = [], ne = !1, $ = !1, I = [];
|
|
131
131
|
const { aiTestMode: me, aiTestTable: pe, aiTableList: ge, initVirtualData: Te, tableJsonGetHelper: ye, refreshCacheTableName: ve } = Ia();
|
|
132
132
|
function he() {
|
|
133
133
|
oe({});
|
|
@@ -135,7 +135,7 @@ const pt = (a, l) => v.post({ url: `/online/cgform/api/doDbSynch/${a}/${l}`, tim
|
|
|
135
135
|
function oe(e) {
|
|
136
136
|
return D(this, null, function* () {
|
|
137
137
|
var t;
|
|
138
|
-
if (F.value = !1, p.value = "dbTable", yield
|
|
138
|
+
if (F.value = !1, p.value = "dbTable", yield L(), g = Object.assign({}, e), we(g), k.value = "", ye(g), De(g), U(g), O.value = g.tableName, q(1, () => A.value = !1), h.value)
|
|
139
139
|
(t = d.dbTable.value) == null || t.setDataSource([]), yield Fe(g.id), yield Ce(g.id), Sa(d.pageTable).then(() => {
|
|
140
140
|
d.pageTable.value.changePageType(g.tableType == 3);
|
|
141
141
|
});
|
|
@@ -149,7 +149,7 @@ const pt = (a, l) => v.post({ url: `/online/cgform/api/doDbSynch/${a}/${l}`, tim
|
|
|
149
149
|
return D(this, null, function* () {
|
|
150
150
|
T.value = !0;
|
|
151
151
|
try {
|
|
152
|
-
let t = yield
|
|
152
|
+
let t = yield x.doQueryField(e);
|
|
153
153
|
T.value = !1, yield ie(t);
|
|
154
154
|
} finally {
|
|
155
155
|
T.value = !1;
|
|
@@ -158,7 +158,7 @@ const pt = (a, l) => v.post({ url: `/online/cgform/api/doDbSynch/${a}/${l}`, tim
|
|
|
158
158
|
}
|
|
159
159
|
function Ce(e) {
|
|
160
160
|
return D(this, null, function* () {
|
|
161
|
-
let t = yield
|
|
161
|
+
let t = yield x.doQueryIndexes(e);
|
|
162
162
|
d.idxTable.value.setDataSource(t);
|
|
163
163
|
});
|
|
164
164
|
}
|
|
@@ -170,12 +170,12 @@ const pt = (a, l) => v.post({ url: `/online/cgform/api/doDbSynch/${a}/${l}`, tim
|
|
|
170
170
|
}), N.value = s;
|
|
171
171
|
}
|
|
172
172
|
function we(e) {
|
|
173
|
-
|
|
173
|
+
$ = e.isTree == "Y", ne = e.tableType === 2;
|
|
174
174
|
}
|
|
175
175
|
function ie(e, t) {
|
|
176
176
|
return D(this, null, function* () {
|
|
177
177
|
const { dbTable: n, pageTable: o, checkTable: r, fkTable: i, queryTable: f } = d;
|
|
178
|
-
n.value || (yield Z(), yield
|
|
178
|
+
n.value || (yield Z(), yield q(1)), n.value.setDataSource(e, t), setTimeout(() => {
|
|
179
179
|
o.value.setDataSource(e, t), r.value.setDataSource(e, t), i.value.setDataSource(e, t), f.value.setDataSource(e, t);
|
|
180
180
|
}, 10);
|
|
181
181
|
});
|
|
@@ -187,10 +187,10 @@ const pt = (a, l) => v.post({ url: `/online/cgform/api/doDbSynch/${a}/${l}`, tim
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
function ke(e) {
|
|
190
|
-
e === 1 &&
|
|
190
|
+
e === 1 && U({ themeTemplate: "normal" }), d.pageTable.value.changePageType(e == 3);
|
|
191
191
|
}
|
|
192
192
|
function Ie(e) {
|
|
193
|
-
e === "Y" ? Le() :
|
|
193
|
+
e === "Y" ? Le() : Ue();
|
|
194
194
|
}
|
|
195
195
|
function W() {
|
|
196
196
|
X();
|
|
@@ -234,12 +234,12 @@ const pt = (a, l) => v.post({ url: `/online/cgform/api/doDbSynch/${a}/${l}`, tim
|
|
|
234
234
|
d.pageTable.value.enableQuery(e);
|
|
235
235
|
}
|
|
236
236
|
function Le() {
|
|
237
|
-
if (
|
|
237
|
+
if (!$) {
|
|
238
238
|
let { dbTable: e, pageTable: t, checkTable: n } = d, o = Ba();
|
|
239
239
|
o = o.filter((r) => !e.value.tableRef.getTableData().map((f) => f.dbFieldName).includes(r.dbFieldName)), I = [], o.forEach((r) => {
|
|
240
240
|
let i = Ra() + "__tempId";
|
|
241
241
|
I.push(i), r.id = i;
|
|
242
|
-
}), e.value.tableRef.addRows(o, { setActive: !1 }), t.value.tableRef.addRows(o, { setActive: !1 }), n.value.tableRef.addRows(o, { setActive: !1 }), Z(() => W()),
|
|
242
|
+
}), e.value.tableRef.addRows(o, { setActive: !1 }), t.value.tableRef.addRows(o, { setActive: !1 }), n.value.tableRef.addRows(o, { setActive: !1 }), Z(() => W()), $ = !0;
|
|
243
243
|
}
|
|
244
244
|
Z(() => {
|
|
245
245
|
R.setFieldsValue({
|
|
@@ -248,24 +248,24 @@ const pt = (a, l) => v.post({ url: `/online/cgform/api/doDbSynch/${a}/${l}`, tim
|
|
|
248
248
|
});
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function Ue() {
|
|
252
252
|
if (I && I.length > 0) {
|
|
253
253
|
let { dbTable: e } = d;
|
|
254
|
-
e.value.tableDeleteLines(I), I = [],
|
|
254
|
+
e.value.tableDeleteLines(I), I = [], $ = !1;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function $e() {
|
|
258
258
|
let e = {};
|
|
259
259
|
return new Promise((t, n) => {
|
|
260
260
|
G().then(
|
|
261
261
|
(o) => t({ values: o }),
|
|
262
|
-
() => n(
|
|
262
|
+
() => n(j)
|
|
263
263
|
);
|
|
264
264
|
}).then((t) => (Object.assign(e, t), Qe())).then((t) => {
|
|
265
265
|
Object.assign(e, t);
|
|
266
|
-
let n =
|
|
267
|
-
return
|
|
268
|
-
}).catch((t) => (t ===
|
|
266
|
+
let n = Ve(e);
|
|
267
|
+
return qe(n);
|
|
268
|
+
}).catch((t) => (t === j || (t == null ? void 0 : t.code) === j ? c.warning("校验未通过") : t != null && t.msg && c.warning(t.msg), Promise.reject(null)));
|
|
269
269
|
}
|
|
270
270
|
function Qe() {
|
|
271
271
|
return new Promise((e, t) => D(this, null, function* () {
|
|
@@ -275,14 +275,14 @@ const pt = (a, l) => v.post({ url: `/online/cgform/api/doDbSynch/${a}/${l}`, tim
|
|
|
275
275
|
try {
|
|
276
276
|
o[i] = yield f.value.validateData(i);
|
|
277
277
|
} catch (C) {
|
|
278
|
-
C.code ===
|
|
278
|
+
C.code === j && (p.value = C.activeKey), t(C);
|
|
279
279
|
return;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
e(o);
|
|
283
283
|
}));
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function Ve(e) {
|
|
286
286
|
let t = {
|
|
287
287
|
head: {},
|
|
288
288
|
fields: [],
|
|
@@ -297,11 +297,11 @@ const pt = (a, l) => v.post({ url: `/online/cgform/api/doDbSynch/${a}/${l}`, tim
|
|
|
297
297
|
i = Object.assign(C, i);
|
|
298
298
|
let Q = e.fkTable.tableData[o];
|
|
299
299
|
i = Object.assign(Q, i);
|
|
300
|
-
let
|
|
301
|
-
i = Object.assign(
|
|
300
|
+
let V = e.queryTable.tableData[o];
|
|
301
|
+
i = Object.assign(V, i), r == null || r === "" ? delete i.id : i.id = r, [].concat(le, I).includes(i.id) && delete i.id, t.fields.push(i);
|
|
302
302
|
}), t.deleteFieldIds = e.dbTable.deleteIds, t.indexs = e.idxTable.tableData, t.deleteIndexIds = e.idxTable.deleteIds, t;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function qe(e) {
|
|
305
305
|
return new Promise((t, n) => {
|
|
306
306
|
let o = e.fields, r = !0;
|
|
307
307
|
if (o && o.length > 0) {
|
|
@@ -315,18 +315,18 @@ const pt = (a, l) => v.post({ url: `/online/cgform/api/doDbSynch/${a}/${l}`, tim
|
|
|
315
315
|
r ? t(e) : n({
|
|
316
316
|
code: -1,
|
|
317
317
|
msg: "外键只允许配置一个!",
|
|
318
|
-
error:
|
|
318
|
+
error: j
|
|
319
319
|
});
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
|
-
function
|
|
323
|
-
F.value = !0,
|
|
322
|
+
function xe() {
|
|
323
|
+
F.value = !0, $e().then(
|
|
324
324
|
(e) => D(this, null, function* () {
|
|
325
325
|
var t;
|
|
326
326
|
if (e.fields && e.fields.length > 0)
|
|
327
327
|
for (let n of e.fields)
|
|
328
328
|
n.dbFieldName = n.dbFieldName.toLowerCase().trim();
|
|
329
|
-
(t = e.head) != null && t.tableName && (e.head.tableName = e.head.tableName.toLowerCase().trim()), yield
|
|
329
|
+
(t = e.head) != null && t.tableName && (e.head.tableName = e.head.tableName.toLowerCase().trim()), yield x.doSaveOrUpdate(e, h.value), ve(O.value, e.head.tableName), l("success"), q(1, () => se());
|
|
330
330
|
}),
|
|
331
331
|
(e) => {
|
|
332
332
|
}
|
|
@@ -343,7 +343,7 @@ const pt = (a, l) => v.post({ url: `/online/cgform/api/doDbSynch/${a}/${l}`, tim
|
|
|
343
343
|
id: g.id,
|
|
344
344
|
extConfigJson: JSON.stringify(t)
|
|
345
345
|
};
|
|
346
|
-
yield
|
|
346
|
+
yield x.editHead(n), l("success");
|
|
347
347
|
}
|
|
348
348
|
});
|
|
349
349
|
}
|
|
@@ -353,7 +353,7 @@ const pt = (a, l) => v.post({ url: `/online/cgform/api/doDbSynch/${a}/${l}`, tim
|
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
355
|
function se() {
|
|
356
|
-
A.value = !0,
|
|
356
|
+
A.value = !0, q(1, () => z());
|
|
357
357
|
}
|
|
358
358
|
const Ye = () => {
|
|
359
359
|
const e = k.value.trim();
|
|
@@ -363,9 +363,9 @@ const pt = (a, l) => v.post({ url: `/online/cgform/api/doDbSynch/${a}/${l}`, tim
|
|
|
363
363
|
if (r == -1 ? i = o.findIndex((C) => C.dbFieldName.includes(k.value) || C.dbFieldTxt.includes(k.value)) : i = r, i != -1) {
|
|
364
364
|
const f = o[i];
|
|
365
365
|
n.scrollToRow(f).then(() => {
|
|
366
|
-
const { refTableBody: C } = n.getRefMaps(), Q = C.value,
|
|
367
|
-
if (
|
|
368
|
-
const S =
|
|
366
|
+
const { refTableBody: C } = n.getRefMaps(), Q = C.value, V = Q ? Q.$el : null;
|
|
367
|
+
if (V) {
|
|
368
|
+
const S = V.querySelector(`[rowid="${n.getRowid(f)}"]`);
|
|
369
369
|
S && (S.classList.add("customHighlight"), setTimeout(() => {
|
|
370
370
|
S == null || S.classList.remove("customHighlight");
|
|
371
371
|
}, 1e3));
|
|
@@ -376,7 +376,7 @@ const pt = (a, l) => v.post({ url: `/online/cgform/api/doDbSynch/${a}/${l}`, tim
|
|
|
376
376
|
} else
|
|
377
377
|
c.warning("请输入字段名称或字段备注~");
|
|
378
378
|
};
|
|
379
|
-
return de(
|
|
379
|
+
return de(P({}, d), {
|
|
380
380
|
modalRef: E,
|
|
381
381
|
title: w,
|
|
382
382
|
confirmLoading: F,
|
|
@@ -386,7 +386,7 @@ const pt = (a, l) => v.post({ url: `/online/cgform/api/doDbSynch/${a}/${l}`, tim
|
|
|
386
386
|
extConfigJson: s,
|
|
387
387
|
formAction: R,
|
|
388
388
|
hideTabs: A,
|
|
389
|
-
onSubmit:
|
|
389
|
+
onSubmit: xe,
|
|
390
390
|
onTabsChange: Be,
|
|
391
391
|
onTableAdded: Se,
|
|
392
392
|
onTableRemoved: _e,
|
|
@@ -408,7 +408,8 @@ const pt = (a, l) => v.post({ url: `/online/cgform/api/doDbSynch/${a}/${l}`, tim
|
|
|
408
408
|
onTableSyncDbIsNull: Me,
|
|
409
409
|
isUpdate: h,
|
|
410
410
|
positioning: k,
|
|
411
|
-
handlePositioning: Ye
|
|
411
|
+
handlePositioning: Ye,
|
|
412
|
+
oldTableName: O
|
|
412
413
|
});
|
|
413
414
|
}
|
|
414
415
|
});
|
|
@@ -416,9 +417,9 @@ const Na = { style: { flex: "1", "text-align": "right" } }, Oa = { class: "foote
|
|
|
416
417
|
key: 1,
|
|
417
418
|
class: "positioning-area"
|
|
418
419
|
};
|
|
419
|
-
function
|
|
420
|
-
const w = m("a-button"), F = m("BasicForm"), T = m("DBAttributeTable"), p = m("a-tab-pane"), A = m("PageAttributeTable"), d = m("CheckDictTable"), K = m("ForeignKeyTable"), N = m("IndexTable"), k = m("Icon"), J = m("a-tooltip"), H = m("QueryTable"), R = m("a-tabs"),
|
|
421
|
-
return _(), ee(
|
|
420
|
+
function Ua(a, l, c, E, h, g) {
|
|
421
|
+
const w = m("a-button"), F = m("BasicForm"), T = m("DBAttributeTable"), p = m("a-tab-pane"), A = m("PageAttributeTable"), d = m("CheckDictTable"), K = m("ForeignKeyTable"), N = m("IndexTable"), k = m("Icon"), J = m("a-tooltip"), H = m("QueryTable"), R = m("a-tabs"), L = m("a-spin"), U = m("a-select-option"), G = m("a-select"), Y = m("a-input"), z = m("ExtendConfigModal"), O = m("BasicModal");
|
|
422
|
+
return _(), ee(O, na({
|
|
422
423
|
ref: "modalRef",
|
|
423
424
|
title: a.title,
|
|
424
425
|
width: 1200,
|
|
@@ -430,8 +431,8 @@ function $a(a, l, c, E, h, g) {
|
|
|
430
431
|
onRegister: a.registerModal
|
|
431
432
|
}), {
|
|
432
433
|
footer: b(() => [
|
|
433
|
-
|
|
434
|
-
|
|
434
|
+
M("div", Oa, [
|
|
435
|
+
M("div", Pa, [
|
|
435
436
|
u(w, { onClick: a.onCancel }, {
|
|
436
437
|
default: b(() => l[6] || (l[6] = [
|
|
437
438
|
B("关闭")
|
|
@@ -450,7 +451,7 @@ function $a(a, l, c, E, h, g) {
|
|
|
450
451
|
_: 1
|
|
451
452
|
}, 8, ["loading", "onClick"])
|
|
452
453
|
]),
|
|
453
|
-
|
|
454
|
+
M("div", Ma, [
|
|
454
455
|
a.aiTestMode && !a.isUpdate ? (_(), ae("div", ja, [
|
|
455
456
|
u(G, {
|
|
456
457
|
value: a.aiTestTable,
|
|
@@ -460,7 +461,7 @@ function $a(a, l, c, E, h, g) {
|
|
|
460
461
|
style: { width: "300px", margin: "0 10px 0 0", "text-align": "left" }
|
|
461
462
|
}, {
|
|
462
463
|
default: b(() => [
|
|
463
|
-
(_(!0), ae(oa, null, ia(a.aiTableList, (s, X) => (_(), ee(
|
|
464
|
+
(_(!0), ae(oa, null, ia(a.aiTableList, (s, X) => (_(), ee(U, {
|
|
464
465
|
key: X,
|
|
465
466
|
value: s.name
|
|
466
467
|
}, {
|
|
@@ -506,14 +507,14 @@ function $a(a, l, c, E, h, g) {
|
|
|
506
507
|
])
|
|
507
508
|
]),
|
|
508
509
|
default: b(() => [
|
|
509
|
-
u(
|
|
510
|
+
u(L, {
|
|
510
511
|
wrapperClassName: "p-2",
|
|
511
512
|
spinning: a.confirmLoading
|
|
512
513
|
}, {
|
|
513
514
|
default: b(() => [
|
|
514
515
|
u(F, { onRegister: a.registerForm }, {
|
|
515
516
|
extConfigButton: b(() => [
|
|
516
|
-
|
|
517
|
+
M("div", Na, [
|
|
517
518
|
u(w, {
|
|
518
519
|
preIcon: "ant-design:setting",
|
|
519
520
|
onClick: a.onOpenExtConfig
|
|
@@ -527,7 +528,7 @@ function $a(a, l, c, E, h, g) {
|
|
|
527
528
|
]),
|
|
528
529
|
_: 1
|
|
529
530
|
}, 8, ["onRegister"]),
|
|
530
|
-
u(
|
|
531
|
+
u(L, {
|
|
531
532
|
spinning: a.tableLoading || a.hideTabs
|
|
532
533
|
}, {
|
|
533
534
|
default: b(() => [
|
|
@@ -547,6 +548,8 @@ function $a(a, l, c, E, h, g) {
|
|
|
547
548
|
default: b(() => [
|
|
548
549
|
u(T, {
|
|
549
550
|
ref: "dbTable",
|
|
551
|
+
isUpdate: a.isUpdate,
|
|
552
|
+
tableName: a.oldTableName,
|
|
550
553
|
actionButton: a.actionButton,
|
|
551
554
|
onAdded: a.onTableAdded,
|
|
552
555
|
onRemoved: a.onTableRemoved,
|
|
@@ -555,7 +558,7 @@ function $a(a, l, c, E, h, g) {
|
|
|
555
558
|
onSyncDbType: a.onTableSyncDbType,
|
|
556
559
|
onSyncDbIsPersist: a.onTableSyncDbIsPersist,
|
|
557
560
|
onSyncDbIsNull: a.onTableSyncDbIsNull
|
|
558
|
-
}, null, 8, ["actionButton", "onAdded", "onRemoved", "onDragged", "onInserted", "onSyncDbType", "onSyncDbIsPersist", "onSyncDbIsNull"])
|
|
561
|
+
}, null, 8, ["isUpdate", "tableName", "actionButton", "onAdded", "onRemoved", "onDragged", "onInserted", "onSyncDbType", "onSyncDbIsPersist", "onSyncDbIsNull"])
|
|
559
562
|
]),
|
|
560
563
|
_: 1
|
|
561
564
|
}),
|
|
@@ -610,7 +613,7 @@ function $a(a, l, c, E, h, g) {
|
|
|
610
613
|
forceRender: ""
|
|
611
614
|
}, {
|
|
612
615
|
tab: b(() => [
|
|
613
|
-
|
|
616
|
+
M("span", null, [
|
|
614
617
|
l[5] || (l[5] = B(" 个性查询配置 ")),
|
|
615
618
|
u(J, null, {
|
|
616
619
|
title: b(() => l[4] || (l[4] = [
|
|
@@ -649,17 +652,17 @@ function $a(a, l, c, E, h, g) {
|
|
|
649
652
|
_: 1
|
|
650
653
|
}, 16, ["title", "confirmLoading", "onCancel", "onRegister"]);
|
|
651
654
|
}
|
|
652
|
-
const
|
|
655
|
+
const $a = /* @__PURE__ */ Ea(Aa, [["render", Ua], ["__scopeId", "data-v-d76be52c"]]), yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
653
656
|
__proto__: null,
|
|
654
|
-
default:
|
|
657
|
+
default: $a
|
|
655
658
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
656
659
|
export {
|
|
657
|
-
|
|
660
|
+
$a as C,
|
|
658
661
|
pt as a,
|
|
659
662
|
Tt as b,
|
|
660
|
-
|
|
663
|
+
bt as c,
|
|
661
664
|
gt as d,
|
|
662
|
-
|
|
665
|
+
mt as e,
|
|
663
666
|
ct as f,
|
|
664
667
|
ft as g,
|
|
665
668
|
yt as h,
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
var F = Object.defineProperty, R = Object.defineProperties;
|
|
2
|
+
var U = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var I = Object.getOwnPropertySymbols;
|
|
4
|
+
var G = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var L = (n, o, t) => o in n ? F(n, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[o] = t, h = (n, o) => {
|
|
6
|
+
for (var t in o || (o = {}))
|
|
7
|
+
G.call(o, t) && L(n, t, o[t]);
|
|
8
|
+
if (I)
|
|
9
|
+
for (var t of I(o))
|
|
10
|
+
H.call(o, t) && L(n, t, o[t]);
|
|
11
|
+
return n;
|
|
12
|
+
}, O = (n, o) => R(n, U(o));
|
|
13
|
+
var S = (n, o, t) => new Promise((x, v) => {
|
|
14
|
+
var m = (l) => {
|
|
15
|
+
try {
|
|
16
|
+
i(t.next(l));
|
|
17
|
+
} catch (u) {
|
|
18
|
+
v(u);
|
|
19
|
+
}
|
|
20
|
+
}, r = (l) => {
|
|
21
|
+
try {
|
|
22
|
+
i(t.throw(l));
|
|
23
|
+
} catch (u) {
|
|
24
|
+
v(u);
|
|
25
|
+
}
|
|
26
|
+
}, i = (l) => l.done ? x(l.value) : Promise.resolve(l.value).then(m, r);
|
|
27
|
+
i((t = t.apply(n, o)).next());
|
|
28
|
+
});
|
|
29
|
+
import { defineComponent as Y, ref as T, computed as j, unref as w, resolveComponent as g, openBlock as k, createBlock as $, mergeProps as J, withCtx as s, createVNode as p, createTextVNode as y, createElementVNode as _, createElementBlock as K, Fragment as Q, renderList as X, toDisplayString as Z } from "vue";
|
|
30
|
+
import { useModalInner as ee, BasicModal as te } from "/@/components/Modal";
|
|
31
|
+
import { debounce as oe } from "lodash-es";
|
|
32
|
+
import { useAttrs as ne } from "/@/hooks/core/useAttrs";
|
|
33
|
+
import { useMessage as ae } from "/@/hooks/web/useMessage";
|
|
34
|
+
import { defHttp as re } from "/@/utils/http/axios";
|
|
35
|
+
import { getDictItems as le } from "/@/api/common/api";
|
|
36
|
+
import { _ as se } from "./index-94b6319e.mjs";
|
|
37
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
38
|
+
import "vue-router";
|
|
39
|
+
const ie = { class: "aiWrap" }, ce = /* @__PURE__ */ Y({
|
|
40
|
+
__name: "CgreportAigcModal",
|
|
41
|
+
emits: ["register", "generate"],
|
|
42
|
+
setup(n, { emit: o }) {
|
|
43
|
+
const t = n, x = o, v = ne(), { createMessage: m } = ae(), r = T({
|
|
44
|
+
prompt: "",
|
|
45
|
+
cgformTableName: void 0
|
|
46
|
+
}), i = T(!0), [l, { closeModal: u, setModalProps: q }] = ee(() => {
|
|
47
|
+
B(), M(!1), r.value.prompt = "", r.value.cgformTableName = void 0;
|
|
48
|
+
}), z = j(() => {
|
|
49
|
+
let a = {
|
|
50
|
+
width: 600,
|
|
51
|
+
height: 240,
|
|
52
|
+
title: "通过Ai生成报表",
|
|
53
|
+
maskClosable: !1,
|
|
54
|
+
canFullscreen: !1,
|
|
55
|
+
confirmLoading: w(i)
|
|
56
|
+
};
|
|
57
|
+
return O(h(h(h({}, a), w(v)), t), {
|
|
58
|
+
onCancel: close,
|
|
59
|
+
onRegister: l
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
function M(a) {
|
|
63
|
+
i.value = a, q({ confirmLoading: a });
|
|
64
|
+
}
|
|
65
|
+
const V = oe(function(a) {
|
|
66
|
+
B(a);
|
|
67
|
+
}, 500), P = T([]);
|
|
68
|
+
function B(a = "") {
|
|
69
|
+
const d = `${a ? `table_txt like '%25${a}%25' and ` : ""}is_db_synch='Y' and (table_type = 1 or table_type = 2)`;
|
|
70
|
+
le(`onl_cgform_head,table_txt,table_name,${d} order by create_time desc`).then((f) => {
|
|
71
|
+
P.value = f;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function W() {
|
|
75
|
+
return S(this, null, function* () {
|
|
76
|
+
yield D();
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function D() {
|
|
80
|
+
return S(this, null, function* () {
|
|
81
|
+
const { cgformTableName: a, prompt: e } = r.value;
|
|
82
|
+
if (!a) {
|
|
83
|
+
m.warning("请选择Online表单");
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
if (!e) {
|
|
87
|
+
m.warning("请输入报表需求");
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
M(!0);
|
|
91
|
+
try {
|
|
92
|
+
const d = "/online/cgreport/head/api/aigc?cgformTableName=" + a + "&prompt=" + e, { success: b, result: f, message: N } = yield re.post({ url: d, timeout: 6e4 }, { isTransformResponse: !1 });
|
|
93
|
+
if (b) {
|
|
94
|
+
const { code: A, name: C, cgrSql: c } = f;
|
|
95
|
+
A && C && c ? (x("generate", f), u()) : m.warn("生成失败,Ai开小差了,请稍后重试…");
|
|
96
|
+
} else
|
|
97
|
+
m.error(N);
|
|
98
|
+
} finally {
|
|
99
|
+
M(!1);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function E() {
|
|
104
|
+
u();
|
|
105
|
+
}
|
|
106
|
+
return (a, e) => {
|
|
107
|
+
const d = g("a-select-option"), b = g("a-select"), f = g("a-textarea"), N = g("a-space"), A = g("a-spin"), C = g("a-button");
|
|
108
|
+
return k(), $(w(te), J(z.value, { destroyOnClose: "" }), {
|
|
109
|
+
footer: s(() => [
|
|
110
|
+
p(C, { onClick: E }, {
|
|
111
|
+
default: s(() => e[5] || (e[5] = [
|
|
112
|
+
y("关闭")
|
|
113
|
+
])),
|
|
114
|
+
_: 1
|
|
115
|
+
}),
|
|
116
|
+
p(C, {
|
|
117
|
+
type: "primary",
|
|
118
|
+
loading: i.value,
|
|
119
|
+
preIcon: "carbon:ai-generate",
|
|
120
|
+
onClick: W
|
|
121
|
+
}, {
|
|
122
|
+
default: s(() => e[6] || (e[6] = [
|
|
123
|
+
y(" 立即生成 ")
|
|
124
|
+
])),
|
|
125
|
+
_: 1
|
|
126
|
+
}, 8, ["loading"])
|
|
127
|
+
]),
|
|
128
|
+
default: s(() => [
|
|
129
|
+
p(A, {
|
|
130
|
+
wrapperClassName: "p-2",
|
|
131
|
+
spinning: i.value
|
|
132
|
+
}, {
|
|
133
|
+
default: s(() => [
|
|
134
|
+
_("div", ie, [
|
|
135
|
+
e[3] || (e[3] = _("div", { class: "titleArea" }, [
|
|
136
|
+
_("svg", {
|
|
137
|
+
t: "1707100353985",
|
|
138
|
+
class: "icon",
|
|
139
|
+
viewBox: "0 0 1024 1024",
|
|
140
|
+
version: "1.1",
|
|
141
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
142
|
+
"p-id": "4235",
|
|
143
|
+
width: "26",
|
|
144
|
+
height: "26"
|
|
145
|
+
}, [
|
|
146
|
+
_("path", {
|
|
147
|
+
d: "M512 64C264.8 64 64 264.8 64 512s200.8 448 448 448 448-200.8 448-448S759.2 64 512 64z m32 704h-64v-64h64v64z m11.2-203.2l-5.6 4.8c-3.2 2.4-5.6 8-5.6 12.8v58.4h-64v-58.4c0-24.8 11.2-48 29.6-63.2l5.6-4.8c56-44.8 83.2-68 83.2-108C598.4 358.4 560 320 512 320c-49.6 0-86.4 36.8-86.4 86.4h-64C361.6 322.4 428 256 512 256c83.2 0 150.4 67.2 150.4 150.4 0 72.8-49.6 112.8-107.2 158.4z",
|
|
148
|
+
"p-id": "4236",
|
|
149
|
+
fill: "currentColor"
|
|
150
|
+
})
|
|
151
|
+
]),
|
|
152
|
+
_("h3", null, "创建报表需要专业建议?试试AI智能建表吧")
|
|
153
|
+
], -1)),
|
|
154
|
+
e[4] || (e[4] = _("p", { class: "tip" }, "请选择Online表单,并输入报表需求,例如:统计男生女生各自的数量", -1)),
|
|
155
|
+
p(N, {
|
|
156
|
+
class: "content",
|
|
157
|
+
direction: "vertical"
|
|
158
|
+
}, {
|
|
159
|
+
default: s(() => [
|
|
160
|
+
p(b, {
|
|
161
|
+
value: r.value.cgformTableName,
|
|
162
|
+
"onUpdate:value": e[0] || (e[0] = (c) => r.value.cgformTableName = c),
|
|
163
|
+
placeholder: "请选择Online表单",
|
|
164
|
+
"show-search": "",
|
|
165
|
+
"filter-option": !1,
|
|
166
|
+
"not-found-content": "没有符合的表单",
|
|
167
|
+
style: { width: "100%" },
|
|
168
|
+
onSearch: w(V)
|
|
169
|
+
}, {
|
|
170
|
+
default: s(() => [
|
|
171
|
+
(k(!0), K(Q, null, X(P.value, (c) => (k(), $(d, {
|
|
172
|
+
value: c.value
|
|
173
|
+
}, {
|
|
174
|
+
default: s(() => [
|
|
175
|
+
y(Z(c.text), 1)
|
|
176
|
+
]),
|
|
177
|
+
_: 2
|
|
178
|
+
}, 1032, ["value"]))), 256)),
|
|
179
|
+
p(d, { value: "2" }, {
|
|
180
|
+
default: s(() => e[2] || (e[2] = [
|
|
181
|
+
y("女")
|
|
182
|
+
])),
|
|
183
|
+
_: 1
|
|
184
|
+
})
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
}, 8, ["value", "onSearch"]),
|
|
188
|
+
p(f, {
|
|
189
|
+
value: r.value.prompt,
|
|
190
|
+
"onUpdate:value": e[1] || (e[1] = (c) => r.value.prompt = c),
|
|
191
|
+
valueModifiers: { trim: !0 },
|
|
192
|
+
placeholder: "请输入报表需求",
|
|
193
|
+
rows: 3
|
|
194
|
+
}, null, 8, ["value"])
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
})
|
|
198
|
+
])
|
|
199
|
+
]),
|
|
200
|
+
_: 1
|
|
201
|
+
}, 8, ["spinning"])
|
|
202
|
+
]),
|
|
203
|
+
_: 1
|
|
204
|
+
}, 16);
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
const we = /* @__PURE__ */ se(ce, [["__scopeId", "data-v-ffba591e"]]);
|
|
209
|
+
export {
|
|
210
|
+
we as default
|
|
211
|
+
};
|