@jeecg/online 3.7.0-beta → 3.7.4-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-84cbd344.mjs +254 -0
- package/AiModal-26903538.mjs +84 -0
- package/AppForgetPassword-52443f23.mjs +310 -0
- package/AppLogin-ecf798fa.mjs +287 -0
- package/AppLoginHeader-4432c584.mjs +27 -0
- package/AppNameEmail-3303a037.mjs +180 -0
- package/AppRegister-79a62c59.mjs +303 -0
- package/AppTenant-f0bef7ca.mjs +373 -0
- package/AppThirdForm-fd8b4604.mjs +189 -0
- package/AuthButtonConfig-d5bffca0.mjs +156 -0
- package/AuthButtonTree-b0bd6c40.mjs +165 -0
- package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-d3b7afa4.mjs} +30 -29
- package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-f14a98d9.mjs} +47 -47
- package/AuthFieldConfig-f1e224cc.mjs +245 -0
- package/AuthFieldTree-5cc0da05.mjs +232 -0
- package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-32556109.mjs} +9 -8
- package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-364f1f67.mjs} +12 -11
- package/BuiltInButtonList-bb6cf95c.mjs +10 -0
- package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
- package/CgformAddressModal-1131274c.mjs +260 -0
- package/CgformCopyList-5fba0810.mjs +252 -0
- package/CgformModal-c4a4e0c2.mjs +667 -0
- package/{CgreportModal-5a23d089.mjs → CgreportModal-8a84aae5.mjs} +186 -172
- package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-8a938e3a.mjs} +37 -34
- package/CodeFileListModal-a924902a.mjs +159 -0
- package/CodeFileViewModal-405e2b58.mjs +253 -0
- package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
- package/CustomButtonList-c453b654.mjs +274 -0
- package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-1a45c7b7.mjs} +80 -72
- package/DbToOnlineModal-f28ff0a3.mjs +168 -0
- package/{DetailForm-4aa2570b.mjs → DetailForm-c592b8d8.mjs} +50 -49
- package/DropMenuItem-1e49abea.mjs +44 -0
- package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
- package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
- package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-dc4f9ade.mjs} +154 -138
- package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-984f045d.mjs} +67 -67
- package/ErrorTip-bb616e32.mjs +7 -0
- package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
- package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
- package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
- package/{FileSelectModal-38660e3c.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
- package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
- package/{IndexTable-1b496559.mjs → IndexTable-2ded2014.mjs} +28 -20
- package/JModalTip-a927f85d.mjs +49 -0
- package/JOnlineSearchSelect-04ec87d0.mjs +128 -0
- package/{LeftDepart-8ade4bf7.mjs → LeftDepart-52cb6743.mjs} +1 -1
- package/LeftRole-b0e0b496.mjs +86 -0
- package/{LeftUser-b4d1372a.mjs → LeftUser-dd4b10e2.mjs} +30 -30
- package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
- package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
- package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
- package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
- package/OnlCgformErpList-5c5acdaa.mjs +488 -0
- package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
- package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +106 -107
- package/OnlCgformInnerTableList-b283a525.mjs +474 -0
- package/OnlCgformTabList-91e3dd78.mjs +424 -0
- package/OnlineAutoList-84475f1b.mjs +513 -0
- package/OnlineAutoModal-95f46901.mjs +260 -0
- package/OnlineAutoTreeList-20b9ce04.mjs +523 -0
- package/OnlineCustomModal-c8b1e780.mjs +232 -0
- package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
- package/OnlineForm-58282699.mjs +1012 -0
- package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
- package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +10 -10
- package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-ad912560.mjs} +12 -12
- package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +10 -10
- package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
- package/OnlineQueryForm-9248341f.mjs +484 -0
- package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
- package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
- package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-8be879b9.mjs} +53 -54
- package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
- package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
- package/OnlineTabForm-1940e88b.mjs +814 -0
- package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
- package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-66e7b485.mjs} +169 -149
- package/PhoneLoginForm-86437a9d.mjs +214 -0
- package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-98ede18d.mjs} +64 -58
- package/{QueryTable-96b3dbd0.mjs → QueryTable-65d3f54f.mjs} +40 -37
- package/SetSwitchOptions-f914bc17.mjs +62 -0
- package/ShareAddView-657f0f8b.mjs +86 -0
- package/ShareEditView-1b945fd3.mjs +92 -0
- package/ShareView-222ed3d8.mjs +80 -0
- package/ShareView.vue_vue_type_script_setup_true_lang-44fbeaff.mjs +162 -0
- package/SingleView-23b0cb4e.mjs +68 -0
- package/SingleView.vue_vue_type_style_index_0_lang-e0f2f6c0.mjs +131 -0
- package/SuperQuery-46032e66.mjs +974 -0
- package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
- package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
- package/auth.api-53df4c33.mjs +41 -0
- package/{auth.data-22948e87.mjs → auth.data-626c5083.mjs} +68 -30
- package/button.data-fe45d43b.mjs +12 -0
- package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
- package/{enhance.data-3304d553.mjs → enhance.data-6601ff44.mjs} +9 -8
- package/index-19eaef11.mjs +11 -0
- package/index-1a2e8832.mjs +135 -0
- package/{index-581bef24.mjs → index-2fb8e07f.mjs} +59 -59
- package/index-5e89258d.mjs +8 -0
- package/index-9e1e1e53.mjs +57 -0
- package/{index-d2abb8a0.mjs → index-a039036e.mjs} +273 -262
- package/index-c5a79b0b.mjs +219 -0
- package/index-cce225be.mjs +110 -0
- package/index-f2c2d1cf.mjs +74 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/shareStore-7de6c7a6.mjs +67 -0
- package/style.css +1 -1
- package/useCgformList-f3cb9156.mjs +378 -0
- package/useExtendComponent-bb98e568.mjs +4460 -0
- package/useListButton-98908683.mjs +719 -0
- package/{useSchemas-47e45edc.mjs → useSchemas-b074f3a1.mjs} +88 -46
- package/useTableSync-075826a1.mjs +89 -0
- package/utils-9fce7606.mjs +16 -0
- package/AiModal-fe3988fb.mjs +0 -84
- package/AuthButtonConfig-d50a0a65.mjs +0 -134
- package/AuthButtonTree-589395ed.mjs +0 -156
- package/AuthFieldConfig-490fc0ab.mjs +0 -139
- package/AuthFieldTree-b7cd091e.mjs +0 -232
- package/CgformCopyList-8077ccc6.mjs +0 -250
- package/CgformModal-36faf29a.mjs +0 -621
- package/CodeFileListModal-0e26b7e0.mjs +0 -158
- package/CodeFileViewModal-9d4a5b5f.mjs +0 -248
- package/CodeGeneratorModal-b722d976.mjs +0 -238
- package/CustomButtonList-37639061.mjs +0 -381
- package/DbToOnlineModal-f49b9530.mjs +0 -166
- package/JModalTip-4a83aaed.mjs +0 -49
- package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
- package/LeftRole-7d8c5acc.mjs +0 -86
- package/OnlCgformErpList-30e416c8.mjs +0 -470
- package/OnlCgformErpSubTable-9a876058.mjs +0 -427
- package/OnlCgformInnerTableList-f89b6687.mjs +0 -458
- package/OnlCgformTabList-7a2f2c03.mjs +0 -408
- package/OnlineAutoList-46c6c8b9.mjs +0 -493
- package/OnlineAutoModal-971bef13.mjs +0 -236
- package/OnlineAutoTreeList-3b92454c.mjs +0 -502
- package/OnlineCustomModal-594244f3.mjs +0 -232
- package/OnlineForm-018981b2.mjs +0 -924
- package/OnlineFormUrlSuccess-af285b02.mjs +0 -59
- package/OnlineQueryForm-998c12a4.mjs +0 -444
- package/OnlineTabForm-9ad7d29a.mjs +0 -805
- package/SetSwitchOptions-a452fa0f.mjs +0 -62
- package/SuperQuery-cbfba908.mjs +0 -975
- package/auth.api-d3a6c4b3.mjs +0 -39
- package/index-173949bb.mjs +0 -57
- package/useCgformList-8755a94e.mjs +0 -426
- package/useExtendComponent-bb7cca20.mjs +0 -4295
- package/useListButton-7ddb9a46.mjs +0 -697
- package/useTableSync-f6089e8a.mjs +0 -87
- /package/{OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
|
@@ -26,23 +26,24 @@ var T = (e, t, o) => new Promise((p, l) => {
|
|
|
26
26
|
}, c = (f) => f.done ? p(f.value) : Promise.resolve(f.value).then(n, i);
|
|
27
27
|
c((o = o.apply(e, t)).next());
|
|
28
28
|
});
|
|
29
|
-
import P from "./LeftRole-
|
|
30
|
-
import j from "./LeftDepart-
|
|
31
|
-
import q from "./LeftUser-
|
|
32
|
-
import z from "./AuthFieldTree-
|
|
33
|
-
import G from "./AuthButtonTree-
|
|
34
|
-
import H from "./AuthDataTree-
|
|
29
|
+
import P from "./LeftRole-b0e0b496.mjs";
|
|
30
|
+
import j from "./LeftDepart-52cb6743.mjs";
|
|
31
|
+
import q from "./LeftUser-dd4b10e2.mjs";
|
|
32
|
+
import z from "./AuthFieldTree-5cc0da05.mjs";
|
|
33
|
+
import G from "./AuthButtonTree-b0bd6c40.mjs";
|
|
34
|
+
import H from "./AuthDataTree-f14a98d9.mjs";
|
|
35
35
|
import { defineComponent as J, ref as d, computed as Q, nextTick as L, resolveComponent as s, openBlock as b, createBlock as w, withCtx as u, createVNode as a, createElementBlock as W, Fragment as X, createCommentVNode as K } from "vue";
|
|
36
36
|
import { BasicModal as Y, useModalInner as Z } from "/@/components/Modal";
|
|
37
|
-
import { _ as x } from "./index-
|
|
37
|
+
import { _ as x } from "./index-9e1e1e53.mjs";
|
|
38
38
|
import "/@/utils/http/axios";
|
|
39
39
|
import "/@/components/Table";
|
|
40
40
|
import "/@/hooks/system/useListPage";
|
|
41
41
|
import "/@/api/common/api";
|
|
42
42
|
import "/@/hooks/web/useMessage";
|
|
43
|
-
import "./auth.api-
|
|
43
|
+
import "./auth.api-53df4c33.mjs";
|
|
44
44
|
import "@ant-design/icons-vue";
|
|
45
|
-
import "./auth.data-
|
|
45
|
+
import "./auth.data-626c5083.mjs";
|
|
46
|
+
import "/@/utils/index";
|
|
46
47
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
47
48
|
import "vue-router";
|
|
48
49
|
const ee = J({
|
|
@@ -267,7 +268,7 @@ function te(e, t, o, p, l, n) {
|
|
|
267
268
|
_: 1
|
|
268
269
|
}, 8, ["onCancel", "onRegister", "onOpenChange"]);
|
|
269
270
|
}
|
|
270
|
-
const
|
|
271
|
+
const Ae = /* @__PURE__ */ x(ee, [["render", te], ["__scopeId", "data-v-e2407ec1"]]);
|
|
271
272
|
export {
|
|
272
|
-
|
|
273
|
+
Ae as default
|
|
273
274
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { _ as o } from "./BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "/@/hooks/system/useListPage";
|
|
4
|
+
import "/@/components/Table";
|
|
5
|
+
import "/@/components/Modal";
|
|
6
|
+
import "/@/components/Form";
|
|
7
|
+
import "/@/utils/http/axios";
|
|
8
|
+
export {
|
|
9
|
+
o as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
var D = Object.defineProperty, E = Object.defineProperties;
|
|
2
|
+
var G = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var R = Object.getOwnPropertySymbols;
|
|
4
|
+
var Z = Object.prototype.hasOwnProperty, J = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var h = (e, t, n) => t in e ? D(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, y = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
Z.call(t, n) && h(e, n, t[n]);
|
|
8
|
+
if (R)
|
|
9
|
+
for (var n of R(t))
|
|
10
|
+
J.call(t, n) && h(e, n, t[n]);
|
|
11
|
+
return e;
|
|
12
|
+
}, P = (e, t) => E(e, G(t));
|
|
13
|
+
var S = (e, t, n) => new Promise((a, u) => {
|
|
14
|
+
var d = (r) => {
|
|
15
|
+
try {
|
|
16
|
+
m(n.next(r));
|
|
17
|
+
} catch (f) {
|
|
18
|
+
u(f);
|
|
19
|
+
}
|
|
20
|
+
}, v = (r) => {
|
|
21
|
+
try {
|
|
22
|
+
m(n.throw(r));
|
|
23
|
+
} catch (f) {
|
|
24
|
+
u(f);
|
|
25
|
+
}
|
|
26
|
+
}, m = (r) => r.done ? a(r.value) : Promise.resolve(r.value).then(d, v);
|
|
27
|
+
m((n = n.apply(e, t)).next());
|
|
28
|
+
});
|
|
29
|
+
import { defineComponent as K, computed as I, ref as Q, reactive as W, resolveComponent as M, openBlock as X, createBlock as Y, unref as i, withCtx as s, createVNode as c, createTextVNode as ee, normalizeProps as te, guardReactiveProps as oe, createElementVNode as ne, nextTick as le } from "vue";
|
|
30
|
+
import { useListPage as re } from "/@/hooks/system/useListPage";
|
|
31
|
+
import { BasicTable as ie, TableAction as ae } from "/@/components/Table";
|
|
32
|
+
import { useModalInner as ue, useModal as se, BasicModal as B } from "/@/components/Modal";
|
|
33
|
+
import { useForm as ce, BasicForm as de } from "/@/components/Form";
|
|
34
|
+
import { defHttp as p } from "/@/utils/http/axios";
|
|
35
|
+
const Ce = (e, t) => p.get({ url: "/online/cgform/button/list/" + e, params: t });
|
|
36
|
+
function Re(e) {
|
|
37
|
+
return p.delete(
|
|
38
|
+
{
|
|
39
|
+
url: "/online/cgform/button/deleteBatch",
|
|
40
|
+
params: {
|
|
41
|
+
ids: e.join(",")
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{ joinParamsToUrl: !0 }
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
const me = (e, t) => t ? p.put({ url: "/online/cgform/button/edit", params: e }) : p.post({ url: "/online/cgform/button/add", params: e }), fe = (e, t) => p.get({ url: "/online/cgform/button/builtInList/" + e, params: t });
|
|
48
|
+
function pe({ text: e }) {
|
|
49
|
+
return e ? "ant-design:" + e : "";
|
|
50
|
+
}
|
|
51
|
+
const be = [
|
|
52
|
+
{ title: "按钮编码", align: "center", dataIndex: "buttonCode" },
|
|
53
|
+
{ title: "按钮名称", align: "center", dataIndex: "buttonName" },
|
|
54
|
+
{
|
|
55
|
+
title: "按钮样式",
|
|
56
|
+
align: "center",
|
|
57
|
+
dataIndex: "buttonStyle",
|
|
58
|
+
customRender({ text: e, record: t }) {
|
|
59
|
+
if (e === "form") {
|
|
60
|
+
let n = t.optPosition;
|
|
61
|
+
return e + "(" + (n == "2" ? "底部" : "侧面") + ")";
|
|
62
|
+
} else
|
|
63
|
+
return e;
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{ title: "按钮类型", align: "center", dataIndex: "optType" },
|
|
67
|
+
{ title: "排序", align: "center", dataIndex: "orderNum" },
|
|
68
|
+
{
|
|
69
|
+
title: "按钮图标",
|
|
70
|
+
align: "center",
|
|
71
|
+
dataIndex: "buttonIcon",
|
|
72
|
+
customRender: ({ text: e }) => pe({ text: e })
|
|
73
|
+
},
|
|
74
|
+
{ title: "表达式", align: "center", dataIndex: "exp" },
|
|
75
|
+
{
|
|
76
|
+
title: "按钮状态",
|
|
77
|
+
align: "center",
|
|
78
|
+
dataIndex: "buttonStatus",
|
|
79
|
+
customRender({ text: e }) {
|
|
80
|
+
return e == 1 ? "激活" : "未激活";
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
], ge = ({ redoModalHeight: e }) => [
|
|
84
|
+
{
|
|
85
|
+
label: "按钮编码",
|
|
86
|
+
field: "buttonCode",
|
|
87
|
+
component: "Input",
|
|
88
|
+
required: !0,
|
|
89
|
+
// update-begin--author:liaozhiyang---date:20240521---for:【TV360X-139】按钮编码加上正则校验
|
|
90
|
+
dynamicRules: () => [
|
|
91
|
+
{
|
|
92
|
+
validator: (t, n) => new Promise((a, u) => {
|
|
93
|
+
/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(n) ? a() : u("编码只能包含字母、数字、下划线 (_) 和美元符号 ($)且不能以数字开头");
|
|
94
|
+
})
|
|
95
|
+
},
|
|
96
|
+
// update-begin--author:liaozhiyang---date:20240701---for:【TV360X-1693】自定义按钮编码排除sql和java系统内置编码
|
|
97
|
+
{
|
|
98
|
+
validator: (t, n) => new Promise((a, u) => {
|
|
99
|
+
["add", "edit", "detail", "delete", "batch_delete", "import", "export", "query", "reset", "bpm", "super_query", "form_confirm"].includes(n) ? u("不可使用内置按钮编码,请在“管理内置按钮”中修改内置按钮") : a();
|
|
100
|
+
})
|
|
101
|
+
}
|
|
102
|
+
// update-end--author:liaozhiyang---date:20240701---for:【TV360X-1693】自定义按钮编码排除sql和java系统内置编码
|
|
103
|
+
]
|
|
104
|
+
// update-end--author:liaozhiyang---date:20240521---for:【TV360X-139】按钮编码加上正则校验
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
label: "按钮名称",
|
|
108
|
+
field: "buttonName",
|
|
109
|
+
component: "Input",
|
|
110
|
+
required: !0
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
label: "按钮样式",
|
|
114
|
+
field: "buttonStyle",
|
|
115
|
+
component: "Select",
|
|
116
|
+
componentProps: {
|
|
117
|
+
options: [
|
|
118
|
+
{ label: "Link", value: "link" },
|
|
119
|
+
{ label: "Button", value: "button" },
|
|
120
|
+
{ label: "Form", value: "form" }
|
|
121
|
+
],
|
|
122
|
+
// update-begin--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
|
|
123
|
+
onChange: () => {
|
|
124
|
+
e();
|
|
125
|
+
}
|
|
126
|
+
// update-end--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
|
|
127
|
+
},
|
|
128
|
+
defaultValue: "link"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
label: "按钮位置",
|
|
132
|
+
field: "optPosition",
|
|
133
|
+
component: "Select",
|
|
134
|
+
componentProps: {
|
|
135
|
+
allowClear: !1,
|
|
136
|
+
options: [
|
|
137
|
+
// { label: '侧面', value: '1' },
|
|
138
|
+
{ label: "底部", value: "2" }
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
defaultValue: "2",
|
|
142
|
+
show: ({ model: t }) => t.buttonStyle === "form"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
label: "按钮类型",
|
|
146
|
+
field: "optType",
|
|
147
|
+
component: "Select",
|
|
148
|
+
componentProps: {
|
|
149
|
+
allowClear: !1,
|
|
150
|
+
options: [
|
|
151
|
+
{ label: "Js", value: "js" },
|
|
152
|
+
{ label: "Action", value: "action" }
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
defaultValue: "js"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
label: "排序",
|
|
159
|
+
field: "orderNum",
|
|
160
|
+
component: "InputNumber",
|
|
161
|
+
componentProps: {
|
|
162
|
+
style: "width: 100%"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
label: "按钮图标",
|
|
167
|
+
field: "buttonIcon",
|
|
168
|
+
// update-begin--author:liaozhiyang---date:20240528---for:【TV360X-136】按钮图标改成图标组件选择
|
|
169
|
+
component: "IconPicker",
|
|
170
|
+
componentProps: {
|
|
171
|
+
clearSelect: !0,
|
|
172
|
+
iconPrefixSave: !1
|
|
173
|
+
},
|
|
174
|
+
// update-end--author:liaozhiyang---date:20240528---for:【TV360X-136】按钮图标改成图标组件选择
|
|
175
|
+
ifShow: ({ values: t, model: n }) => t.buttonStyle == "button" || t.buttonStyle == "form"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
label: "表达式",
|
|
179
|
+
field: "exp",
|
|
180
|
+
component: "Input",
|
|
181
|
+
// update-begin--author:liaozhiyang---date:20240603---for:【TV360X-89】自定义按钮样式是link时,展示表达式配置
|
|
182
|
+
ifShow: ({ values: t, model: n }) => t.buttonStyle == "link" ? !0 : (n.exp = "", !1)
|
|
183
|
+
// update-end--author:liaozhiyang---date:20240603---for:【TV360X-89】自定义按钮样式是link时,展示表达式配置
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
label: "按钮状态",
|
|
187
|
+
field: "buttonStatus",
|
|
188
|
+
component: "RadioButtonGroup",
|
|
189
|
+
componentProps: {
|
|
190
|
+
options: [
|
|
191
|
+
{ label: "激活", value: "1" },
|
|
192
|
+
{ label: "未激活", value: "0" }
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
defaultValue: "1"
|
|
196
|
+
}
|
|
197
|
+
], _e = { style: { "margin-top": "20px" } }, he = /* @__PURE__ */ K({
|
|
198
|
+
__name: "BuiltInButtonList",
|
|
199
|
+
props: {
|
|
200
|
+
record: {
|
|
201
|
+
type: Object,
|
|
202
|
+
required: !0
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
emits: ["register"],
|
|
206
|
+
setup(e, { emit: t }) {
|
|
207
|
+
const n = e, a = I(() => {
|
|
208
|
+
var o;
|
|
209
|
+
return (o = n.record) == null ? void 0 : o.id;
|
|
210
|
+
}), u = I(() => {
|
|
211
|
+
var o;
|
|
212
|
+
return (o = n.record) == null ? void 0 : o.tableType;
|
|
213
|
+
}), d = I(() => u.value === 1), { tableContext: v } = re({
|
|
214
|
+
tableProps: {
|
|
215
|
+
api: (o) => S(this, null, function* () {
|
|
216
|
+
const l = yield fe(a.value, o);
|
|
217
|
+
return d.value ? l.filter((x) => !x.buttonCode.includes("sub_")) : l;
|
|
218
|
+
}),
|
|
219
|
+
columns: be.filter((o) => !["buttonStyle", "optType", "orderNum", "exp"].includes(o.dataIndex)),
|
|
220
|
+
canResize: !1,
|
|
221
|
+
useSearchForm: !1,
|
|
222
|
+
pagination: !1
|
|
223
|
+
}
|
|
224
|
+
}), [m, { reload: r }, { rowSelection: f }] = v, [T, { closeModal: N }] = ue(() => r()), [k, b] = se(), g = Q(!1), _ = W({
|
|
225
|
+
onRegister: k,
|
|
226
|
+
title: I(() => g != null && g.value ? "修改" : "新增"),
|
|
227
|
+
width: 600,
|
|
228
|
+
centered: !0,
|
|
229
|
+
confirmLoading: !1,
|
|
230
|
+
onOk: H,
|
|
231
|
+
onCancel: b.closeModal
|
|
232
|
+
});
|
|
233
|
+
let w = {};
|
|
234
|
+
const F = [
|
|
235
|
+
...ge({ redoModalHeight: b.redoModalHeight })
|
|
236
|
+
].filter((o) => ["buttonCode", "buttonName", "buttonIcon", "buttonStatus"].includes(o.field)).map((o) => o.field === "buttonCode" ? P(y({}, o), {
|
|
237
|
+
dynamicRules: () => [],
|
|
238
|
+
dynamicDisabled: () => !0
|
|
239
|
+
}) : o.field === "buttonIcon" ? P(y({}, o), {
|
|
240
|
+
ifShow: () => !0,
|
|
241
|
+
// 以下按钮不允许设置图标
|
|
242
|
+
dynamicDisabled: ({ values: l }) => ["bpm", "edit", "detail", "delete"].includes(l.buttonCode)
|
|
243
|
+
}) : o), [L, { resetFields: V, setFieldsValue: j, validate: A }] = ce({
|
|
244
|
+
// update-begin--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
|
|
245
|
+
schemas: F,
|
|
246
|
+
// update-end--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
|
|
247
|
+
showActionButtonGroup: !1
|
|
248
|
+
});
|
|
249
|
+
function q(o) {
|
|
250
|
+
return S(this, null, function* () {
|
|
251
|
+
var l;
|
|
252
|
+
g.value = o.isUpdate, w = y({}, (l = o.record) != null ? l : {}), b.openModal(), yield le(), yield V(), j(w);
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
function z(o) {
|
|
256
|
+
q({ isUpdate: !0, record: o });
|
|
257
|
+
}
|
|
258
|
+
function C() {
|
|
259
|
+
N();
|
|
260
|
+
}
|
|
261
|
+
function H() {
|
|
262
|
+
return S(this, null, function* () {
|
|
263
|
+
try {
|
|
264
|
+
_.confirmLoading = !0;
|
|
265
|
+
let o = yield A();
|
|
266
|
+
o = Object.assign({ cgformHeadId: a.value }, w, o);
|
|
267
|
+
const l = o.id != null;
|
|
268
|
+
yield me(o, l), r(), b.closeModal();
|
|
269
|
+
} finally {
|
|
270
|
+
_.confirmLoading = !1;
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
function O(o) {
|
|
275
|
+
return [
|
|
276
|
+
{
|
|
277
|
+
label: "编辑",
|
|
278
|
+
onClick: () => z(o)
|
|
279
|
+
}
|
|
280
|
+
];
|
|
281
|
+
}
|
|
282
|
+
return (o, l) => {
|
|
283
|
+
const x = M("a-button"), U = M("a-spin");
|
|
284
|
+
return X(), Y(i(B), {
|
|
285
|
+
onRegister: i(T),
|
|
286
|
+
title: "内置按钮",
|
|
287
|
+
width: 1200,
|
|
288
|
+
onCancel: C
|
|
289
|
+
}, {
|
|
290
|
+
footer: s(() => [
|
|
291
|
+
c(x, { onClick: C }, {
|
|
292
|
+
default: s(() => l[0] || (l[0] = [
|
|
293
|
+
ee("关闭")
|
|
294
|
+
])),
|
|
295
|
+
_: 1
|
|
296
|
+
})
|
|
297
|
+
]),
|
|
298
|
+
default: s(() => [
|
|
299
|
+
c(i(ie), {
|
|
300
|
+
onRegister: i(m),
|
|
301
|
+
rowSelection: i(f)
|
|
302
|
+
}, {
|
|
303
|
+
action: s(({ record: $ }) => [
|
|
304
|
+
c(i(ae), {
|
|
305
|
+
actions: O($)
|
|
306
|
+
}, null, 8, ["actions"])
|
|
307
|
+
]),
|
|
308
|
+
_: 1
|
|
309
|
+
}, 8, ["onRegister", "rowSelection"]),
|
|
310
|
+
c(i(B), te(oe(_)), {
|
|
311
|
+
default: s(() => [
|
|
312
|
+
c(U, {
|
|
313
|
+
spinning: _.confirmLoading
|
|
314
|
+
}, {
|
|
315
|
+
default: s(() => [
|
|
316
|
+
ne("div", _e, [
|
|
317
|
+
c(i(de), { onRegister: i(L) }, null, 8, ["onRegister"])
|
|
318
|
+
])
|
|
319
|
+
]),
|
|
320
|
+
_: 1
|
|
321
|
+
}, 8, ["spinning"])
|
|
322
|
+
]),
|
|
323
|
+
_: 1
|
|
324
|
+
}, 16)
|
|
325
|
+
]),
|
|
326
|
+
_: 1
|
|
327
|
+
}, 8, ["onRegister"]);
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
export {
|
|
332
|
+
he as _,
|
|
333
|
+
be as c,
|
|
334
|
+
Re as d,
|
|
335
|
+
ge as f,
|
|
336
|
+
Ce as l,
|
|
337
|
+
me as s
|
|
338
|
+
};
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { defineComponent as O, computed as m, ref as I, reactive as C, resolveComponent as d, openBlock as N, createElementBlock as E, Fragment as S, createVNode as a, unref as b, withCtx as t, createElementVNode as r, createTextVNode as v, createBlock as V, createCommentVNode as K, mergeProps as j } from "vue";
|
|
2
|
+
import { useModalInner as q, BasicModal as U } from "/@/components/Modal";
|
|
3
|
+
import { p as F } from "./utils-9fce7606.mjs";
|
|
4
|
+
import { copyTextToClipboard as P } from "/@/hooks/web/useCopyToClipboard";
|
|
5
|
+
import { getToken as R } from "/@/utils/auth";
|
|
6
|
+
import { useMessage as D } from "/@/hooks/web/useMessage";
|
|
7
|
+
import { buildUUID as H } from "/@/utils/uuid";
|
|
8
|
+
import { _ as J } from "./index-9e1e1e53.mjs";
|
|
9
|
+
import "./cgform.data-0ca62d09.mjs";
|
|
10
|
+
import "/@/utils/dict";
|
|
11
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
12
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
13
|
+
import "vue-router";
|
|
14
|
+
const z = { class: "content" }, Q = ["href"], G = ["href"], W = ["href"], X = /* @__PURE__ */ O({
|
|
15
|
+
__name: "CgformAddressModal",
|
|
16
|
+
setup(Y) {
|
|
17
|
+
const { createMessage: y } = D(), g = m(() => R()), c = I(["def"]), p = I(!1), i = C({
|
|
18
|
+
title: "",
|
|
19
|
+
content: "",
|
|
20
|
+
copyText: "",
|
|
21
|
+
copyTitle: "",
|
|
22
|
+
formId: ""
|
|
23
|
+
}), [T] = q((o) => {
|
|
24
|
+
Object.assign(i, o, {
|
|
25
|
+
formId: o.record.id
|
|
26
|
+
});
|
|
27
|
+
const e = F(o.record);
|
|
28
|
+
p.value = e.enableExternalLink === 1, p.value ? c.value = ["def", "external"] : c.value = ["def"];
|
|
29
|
+
}), l = m(() => {
|
|
30
|
+
const o = {};
|
|
31
|
+
if (p.value) {
|
|
32
|
+
const e = `/online/cgform/share/${i.formId}`;
|
|
33
|
+
o.add = `${e}/add`, o.edit = `${e}/u/{dataId}`, o.detail = `${e}/d/{dataId}`;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
list: i.content,
|
|
37
|
+
extLink: o
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
function h() {
|
|
41
|
+
const o = `-- 插入菜单
|
|
42
|
+
INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
|
|
43
|
+
VALUES ('${H()}', NULL, '${i.copyTitle}', '${i.copyText}', '1', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 0, 1, 0, 0, 0, NULL, '1', 0, 0, 'admin', null, NULL, NULL, 0)
|
|
44
|
+
`;
|
|
45
|
+
B(o);
|
|
46
|
+
}
|
|
47
|
+
function B(o) {
|
|
48
|
+
const e = P(o);
|
|
49
|
+
return e ? y.success("复制成功!") : y.error("复制失败!"), e;
|
|
50
|
+
}
|
|
51
|
+
const n = C({
|
|
52
|
+
base: "",
|
|
53
|
+
value: "",
|
|
54
|
+
visible: !1
|
|
55
|
+
}), $ = m(() => n.value ? n.base.replace(/{dataId}/, n.value) + "?token=" + g.value : void 0), w = m(() => ({
|
|
56
|
+
title: "请输入dataId",
|
|
57
|
+
minHeight: 120,
|
|
58
|
+
centered: !0,
|
|
59
|
+
canFullscreen: !1,
|
|
60
|
+
onOk: () => n.visible = !1,
|
|
61
|
+
onCancel: () => n.visible = !1
|
|
62
|
+
}));
|
|
63
|
+
function k(o) {
|
|
64
|
+
n.base = o, n.value = "", n.visible = !0;
|
|
65
|
+
}
|
|
66
|
+
function A() {
|
|
67
|
+
if (!n.value) {
|
|
68
|
+
y.warn("请输入dataId");
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
n.visible = !1;
|
|
72
|
+
}
|
|
73
|
+
return (o, e) => {
|
|
74
|
+
const u = d("a-input"), f = d("a-col"), _ = d("a-row"), x = d("a-button"), L = d("a-collapse-panel"), M = d("a-collapse");
|
|
75
|
+
return N(), E(S, null, [
|
|
76
|
+
a(b(U), {
|
|
77
|
+
onRegister: b(T),
|
|
78
|
+
title: "配置地址",
|
|
79
|
+
width: 750,
|
|
80
|
+
canFullscreen: !1,
|
|
81
|
+
showOkBtn: !1,
|
|
82
|
+
cancelText: "关闭"
|
|
83
|
+
}, {
|
|
84
|
+
default: t(() => [
|
|
85
|
+
r("div", z, [
|
|
86
|
+
a(M, {
|
|
87
|
+
activeKey: c.value,
|
|
88
|
+
"onUpdate:activeKey": e[2] || (e[2] = (s) => c.value = s),
|
|
89
|
+
class: "j-collapse",
|
|
90
|
+
bordered: !1,
|
|
91
|
+
ghost: ""
|
|
92
|
+
}, {
|
|
93
|
+
default: t(() => [
|
|
94
|
+
a(L, {
|
|
95
|
+
key: "def",
|
|
96
|
+
header: "配置地址",
|
|
97
|
+
class: "j-collapse-panel no-header"
|
|
98
|
+
}, {
|
|
99
|
+
default: t(() => [
|
|
100
|
+
a(_, { style: { "margin-bottom": "8px" } }, {
|
|
101
|
+
default: t(() => [
|
|
102
|
+
a(f, { span: 24 }, {
|
|
103
|
+
default: t(() => [
|
|
104
|
+
a(u, {
|
|
105
|
+
readOnly: !0,
|
|
106
|
+
addonBefore: "数据列表地址",
|
|
107
|
+
value: l.value.list
|
|
108
|
+
}, {
|
|
109
|
+
addonAfter: t(() => [
|
|
110
|
+
r("a", {
|
|
111
|
+
href: l.value.list,
|
|
112
|
+
target: "_blank"
|
|
113
|
+
}, "打开", 8, Q)
|
|
114
|
+
]),
|
|
115
|
+
_: 1
|
|
116
|
+
}, 8, ["value"])
|
|
117
|
+
]),
|
|
118
|
+
_: 1
|
|
119
|
+
})
|
|
120
|
+
]),
|
|
121
|
+
_: 1
|
|
122
|
+
}),
|
|
123
|
+
a(x, {
|
|
124
|
+
class: "copy-sql",
|
|
125
|
+
type: "primary",
|
|
126
|
+
size: "small",
|
|
127
|
+
onClick: h
|
|
128
|
+
}, {
|
|
129
|
+
default: t(() => e[5] || (e[5] = [
|
|
130
|
+
v("复制菜单SQL")
|
|
131
|
+
])),
|
|
132
|
+
_: 1
|
|
133
|
+
})
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
}),
|
|
137
|
+
p.value ? (N(), V(L, {
|
|
138
|
+
key: "external",
|
|
139
|
+
header: "外部链接"
|
|
140
|
+
}, {
|
|
141
|
+
default: t(() => [
|
|
142
|
+
a(_, { style: { "margin-bottom": "8px" } }, {
|
|
143
|
+
default: t(() => [
|
|
144
|
+
a(f, { span: 24 }, {
|
|
145
|
+
default: t(() => [
|
|
146
|
+
a(u, {
|
|
147
|
+
readOnly: !0,
|
|
148
|
+
addonBefore: "外部新增地址",
|
|
149
|
+
value: l.value.extLink.add
|
|
150
|
+
}, {
|
|
151
|
+
addonAfter: t(() => [
|
|
152
|
+
r("a", {
|
|
153
|
+
href: l.value.extLink.add + "?token=" + g.value,
|
|
154
|
+
target: "_blank"
|
|
155
|
+
}, "打开", 8, G)
|
|
156
|
+
]),
|
|
157
|
+
_: 1
|
|
158
|
+
}, 8, ["value"])
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
})
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
}),
|
|
165
|
+
a(_, { style: { "margin-bottom": "8px" } }, {
|
|
166
|
+
default: t(() => [
|
|
167
|
+
a(f, { span: 24 }, {
|
|
168
|
+
default: t(() => [
|
|
169
|
+
a(u, {
|
|
170
|
+
readOnly: !0,
|
|
171
|
+
addonBefore: "外部修改地址",
|
|
172
|
+
value: l.value.extLink.edit
|
|
173
|
+
}, {
|
|
174
|
+
addonAfter: t(() => [
|
|
175
|
+
r("a", {
|
|
176
|
+
onClick: e[0] || (e[0] = (s) => k(l.value.extLink.edit))
|
|
177
|
+
}, "打开")
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
}, 8, ["value"])
|
|
181
|
+
]),
|
|
182
|
+
_: 1
|
|
183
|
+
})
|
|
184
|
+
]),
|
|
185
|
+
_: 1
|
|
186
|
+
}),
|
|
187
|
+
a(_, { style: { "margin-bottom": "8px" } }, {
|
|
188
|
+
default: t(() => [
|
|
189
|
+
a(f, { span: 24 }, {
|
|
190
|
+
default: t(() => [
|
|
191
|
+
a(u, {
|
|
192
|
+
readOnly: !0,
|
|
193
|
+
addonBefore: "外部详情地址",
|
|
194
|
+
value: l.value.extLink.detail
|
|
195
|
+
}, {
|
|
196
|
+
addonAfter: t(() => [
|
|
197
|
+
r("a", {
|
|
198
|
+
onClick: e[1] || (e[1] = (s) => k(l.value.extLink.detail))
|
|
199
|
+
}, "打开")
|
|
200
|
+
]),
|
|
201
|
+
_: 1
|
|
202
|
+
}, 8, ["value"])
|
|
203
|
+
]),
|
|
204
|
+
_: 1
|
|
205
|
+
})
|
|
206
|
+
]),
|
|
207
|
+
_: 1
|
|
208
|
+
}),
|
|
209
|
+
e[6] || (e[6] = r("div", { style: { "text-align": "right", color: "red" } }, [
|
|
210
|
+
v("注意:"),
|
|
211
|
+
r("span", { style: { "font-weight": "bold" } }, "{dataId}"),
|
|
212
|
+
v(" 为数据id")
|
|
213
|
+
], -1))
|
|
214
|
+
]),
|
|
215
|
+
_: 1
|
|
216
|
+
})) : K("", !0)
|
|
217
|
+
]),
|
|
218
|
+
_: 1
|
|
219
|
+
}, 8, ["activeKey"])
|
|
220
|
+
])
|
|
221
|
+
]),
|
|
222
|
+
_: 1
|
|
223
|
+
}, 8, ["onRegister"]),
|
|
224
|
+
a(b(U), j({
|
|
225
|
+
visible: n.visible,
|
|
226
|
+
"onUpdate:visible": e[4] || (e[4] = (s) => n.visible = s)
|
|
227
|
+
}, w.value), {
|
|
228
|
+
footer: t(() => [
|
|
229
|
+
r("a", {
|
|
230
|
+
href: $.value,
|
|
231
|
+
target: "_blank"
|
|
232
|
+
}, [
|
|
233
|
+
a(x, {
|
|
234
|
+
type: "primary",
|
|
235
|
+
onClick: A
|
|
236
|
+
}, {
|
|
237
|
+
default: t(() => e[7] || (e[7] = [
|
|
238
|
+
v("确定")
|
|
239
|
+
])),
|
|
240
|
+
_: 1
|
|
241
|
+
})
|
|
242
|
+
], 8, W)
|
|
243
|
+
]),
|
|
244
|
+
default: t(() => [
|
|
245
|
+
a(u, {
|
|
246
|
+
placeholder: "请输入dataId",
|
|
247
|
+
value: n.value,
|
|
248
|
+
"onUpdate:value": e[3] || (e[3] = (s) => n.value = s)
|
|
249
|
+
}, null, 8, ["value"])
|
|
250
|
+
]),
|
|
251
|
+
_: 1
|
|
252
|
+
}, 16, ["visible"])
|
|
253
|
+
], 64);
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
const pe = /* @__PURE__ */ J(X, [["__scopeId", "data-v-f786f675"]]);
|
|
258
|
+
export {
|
|
259
|
+
pe as default
|
|
260
|
+
};
|