@jeecg/online 1.0.1
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/AuthButtonConfig.js +140 -0
- package/AuthButtonTree.js +183 -0
- package/AuthDataConfig.js +243 -0
- package/AuthDataTree.js +160 -0
- package/AuthFieldConfig.js +167 -0
- package/AuthFieldTree.js +273 -0
- package/AuthManagerDrawer.js +125 -0
- package/AuthSetterModal.js +317 -0
- package/CgformCopyList.js +253 -0
- package/CgformModal.js +748 -0
- package/CgreportModal.js +673 -0
- package/ChartAutoRender.js +69 -0
- package/ChartDoubleRender.js +154 -0
- package/ChartSingleRender.js +132 -0
- package/ChartTabsRender.js +218 -0
- package/CheckDictTable.js +121 -0
- package/CodeGeneratorModal.js +293 -0
- package/CustomButtonList.js +413 -0
- package/DBAttributeTable.js +278 -0
- package/DbToOnlineModal.js +190 -0
- package/EnhanceJavaModal.js +304 -0
- package/EnhanceJsHistory.js +231 -0
- package/EnhanceJsModal.js +293 -0
- package/EnhanceSqlModal.js +305 -0
- package/ErrorTip.js +21 -0
- package/ExtendConfigModal.js +142 -0
- package/FieldTable.js +185 -0
- package/FileSelectModal.js +102 -0
- package/ForeignKeyTable.js +78 -0
- package/FormSchemaFactory.js +938 -0
- package/GraphreportAutoChart.js +352 -0
- package/GraphreportList.js +239 -0
- package/GraphreportModal.js +559 -0
- package/IndexTable.js +96 -0
- package/JOnlineSearchSelect.js +107 -0
- package/LICENSE +7 -0
- package/LeftDepart.js +96 -0
- package/LeftRole.js +95 -0
- package/LeftUser.js +114 -0
- package/ModalFormDemo.js +84 -0
- package/OnlineAutoList.js +410 -0
- package/OnlineAutoModal.js +265 -0
- package/OnlineAutoTreeList.js +513 -0
- package/OnlineCustomModal.js +269 -0
- package/OnlineForm.js +809 -0
- package/OnlineQueryForm.js +442 -0
- package/OnlineSearchFormItem.js +428 -0
- package/OnlineSelectCascade.js +217 -0
- package/OnlineSubForm.js +200 -0
- package/OnlineSuperQuery.js +912 -0
- package/OnlineSuperQueryValComponent.js +8 -0
- package/OnlineSuperQueryValComponent.vue_vue_type_script_lang.js +172 -0
- package/PageAttributeTable.js +242 -0
- package/ParamsTable.js +71 -0
- package/ProcessOnlineForm.js +183 -0
- package/QueryTable.js +128 -0
- package/README.md +23 -0
- package/_arrayPush.js +276 -0
- package/auth.api.js +43 -0
- package/auth.data.js +144 -0
- package/cgform.data.js +235 -0
- package/cloneDeep.js +475 -0
- package/enhance.api.js +120 -0
- package/enhance.data.js +196 -0
- package/graphreport.api.js +23 -0
- package/index.js +64 -0
- package/index2.js +336 -0
- package/index3.js +799 -0
- package/isArray.js +47 -0
- package/main.index.js +6 -0
- package/package.json +6 -0
- package/pick.js +238 -0
- package/style.css +1 -0
- package/toString.js +31 -0
- package/useAutoForm.js +4274 -0
- package/useCgformList.js +353 -0
- package/useChartRender.js +405 -0
- package/useMessageOnline.js +71 -0
- package/useOnlineTest.js +26866 -0
- package/useSchemas.js +505 -0
- package/useTableColumns.js +1154 -0
- package/useTableSync.js +105 -0
package/enhance.data.js
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { computed } from "vue";
|
|
2
|
+
import { o as onlineDefaultButton } from "./cgform.data.js";
|
|
3
|
+
function useJavaColumns(btnList) {
|
|
4
|
+
let columns = [
|
|
5
|
+
{
|
|
6
|
+
title: "\u9875\u9762\u6309\u94AE",
|
|
7
|
+
align: "center",
|
|
8
|
+
dataIndex: "buttonCode",
|
|
9
|
+
customRender: ({ text }) => renderButtonText(text, btnList.value)
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
title: "\u4E8B\u4EF6\u72B6\u6001",
|
|
13
|
+
align: "center",
|
|
14
|
+
dataIndex: "event",
|
|
15
|
+
customRender: ({ text }) => text == "start" ? "\u5F00\u59CB" : "\u7ED3\u675F"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
title: "\u7C7B\u578B",
|
|
19
|
+
align: "center",
|
|
20
|
+
dataIndex: "cgJavaType",
|
|
21
|
+
customRender: ({ text }) => {
|
|
22
|
+
if (text == "spring") {
|
|
23
|
+
return "spring-key";
|
|
24
|
+
} else if (text === "class") {
|
|
25
|
+
return "java-class";
|
|
26
|
+
} else if (text === "http") {
|
|
27
|
+
return "http-api";
|
|
28
|
+
} else {
|
|
29
|
+
return text;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
title: "\u5185\u5BB9",
|
|
35
|
+
align: "center",
|
|
36
|
+
dataIndex: "cgJavaValue"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
title: "\u662F\u5426\u751F\u6548",
|
|
40
|
+
align: "center",
|
|
41
|
+
dataIndex: "activeStatus",
|
|
42
|
+
customRender: ({ text }) => {
|
|
43
|
+
if (text == "1") {
|
|
44
|
+
return "\u6709\u6548";
|
|
45
|
+
} else {
|
|
46
|
+
return "\u65E0\u6548";
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
];
|
|
51
|
+
return { columns };
|
|
52
|
+
}
|
|
53
|
+
function useJavaFormSchemas(btnList) {
|
|
54
|
+
const formSchemas = computed(() => {
|
|
55
|
+
return [
|
|
56
|
+
{
|
|
57
|
+
label: "\u9875\u9762\u6309\u94AE",
|
|
58
|
+
field: "buttonCode",
|
|
59
|
+
component: "Select",
|
|
60
|
+
componentProps: {
|
|
61
|
+
options: [
|
|
62
|
+
{ label: "\u65B0\u589E", value: "add" },
|
|
63
|
+
{ label: "\u7F16\u8F91", value: "edit" },
|
|
64
|
+
{ label: "\u5220\u9664", value: "delete" },
|
|
65
|
+
{ label: "\u5BFC\u5165", value: "import" },
|
|
66
|
+
{ label: "\u5BFC\u51FA", value: "export" },
|
|
67
|
+
{ label: "\u67E5\u8BE2", value: "query" },
|
|
68
|
+
...btnList.value.map((item) => ({ label: item.buttonName, value: item.buttonCode }))
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
defaultValue: "add"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: "\u4E8B\u4EF6\u72B6\u6001",
|
|
75
|
+
field: "event",
|
|
76
|
+
component: "RadioButtonGroup",
|
|
77
|
+
componentProps: {
|
|
78
|
+
options: [
|
|
79
|
+
{ label: "\u5F00\u59CB", value: "start" },
|
|
80
|
+
{ label: "\u7ED3\u675F", value: "end" }
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
defaultValue: "end"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
label: "\u7C7B\u578B",
|
|
87
|
+
field: "cgJavaType",
|
|
88
|
+
component: "RadioButtonGroup",
|
|
89
|
+
componentProps: {
|
|
90
|
+
options: [
|
|
91
|
+
{ label: "spring-key", value: "spring" },
|
|
92
|
+
{ label: "java-class", value: "class" },
|
|
93
|
+
{ label: "http-api", value: "http" }
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
defaultValue: "spring"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
label: "\u5185\u5BB9",
|
|
100
|
+
field: "cgJavaValue",
|
|
101
|
+
component: "Input",
|
|
102
|
+
required: true
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
label: "\u662F\u5426\u751F\u6548",
|
|
106
|
+
field: "activeStatus",
|
|
107
|
+
component: "RadioButtonGroup",
|
|
108
|
+
componentProps: {
|
|
109
|
+
options: [
|
|
110
|
+
{ label: "\u6709\u6548", value: "1" },
|
|
111
|
+
{ label: "\u65E0\u6548", value: "0" }
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
defaultValue: "1"
|
|
115
|
+
}
|
|
116
|
+
];
|
|
117
|
+
});
|
|
118
|
+
return { formSchemas };
|
|
119
|
+
}
|
|
120
|
+
function useSqlColumns(btnList) {
|
|
121
|
+
let columns = [
|
|
122
|
+
{
|
|
123
|
+
title: "\u9875\u9762\u6309\u94AE",
|
|
124
|
+
align: "center",
|
|
125
|
+
dataIndex: "buttonCode",
|
|
126
|
+
customRender: ({ text }) => renderButtonText(text, btnList.value)
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
title: "\u589E\u5F3ASQL",
|
|
130
|
+
align: "center",
|
|
131
|
+
dataIndex: "cgbSql",
|
|
132
|
+
ellipsis: true
|
|
133
|
+
}
|
|
134
|
+
];
|
|
135
|
+
return { columns };
|
|
136
|
+
}
|
|
137
|
+
function useSqlFormSchemas(btnList) {
|
|
138
|
+
const formSchemas = computed(() => {
|
|
139
|
+
return [
|
|
140
|
+
{
|
|
141
|
+
label: "\u9875\u9762\u6309\u94AE",
|
|
142
|
+
field: "buttonCode",
|
|
143
|
+
component: "Select",
|
|
144
|
+
componentProps: {
|
|
145
|
+
options: [
|
|
146
|
+
{ label: "\u65B0\u589E", value: "add" },
|
|
147
|
+
{ label: "\u7F16\u8F91", value: "edit" },
|
|
148
|
+
{ label: "\u5220\u9664", value: "delete" },
|
|
149
|
+
...btnList.value.map((item) => ({ label: item.buttonName, value: item.buttonCode }))
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
defaultValue: "add"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
label: "\u589E\u5F3ASQL",
|
|
156
|
+
field: "cgbSql",
|
|
157
|
+
component: "JCodeEditor",
|
|
158
|
+
componentProps: {
|
|
159
|
+
language: "sql",
|
|
160
|
+
placeholder: "\u8BF7\u8F93\u5165SQL\u8BED\u53E5",
|
|
161
|
+
languageChange: false,
|
|
162
|
+
lineNumbers: false,
|
|
163
|
+
fullScreen: true,
|
|
164
|
+
minHeight: 320
|
|
165
|
+
},
|
|
166
|
+
defaultValue: ""
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
label: "\u63CF\u8FF0",
|
|
170
|
+
field: "content",
|
|
171
|
+
component: "InputTextArea",
|
|
172
|
+
defaultValue: ""
|
|
173
|
+
}
|
|
174
|
+
];
|
|
175
|
+
});
|
|
176
|
+
return { formSchemas };
|
|
177
|
+
}
|
|
178
|
+
function renderButtonText(text, btnList) {
|
|
179
|
+
let str = text;
|
|
180
|
+
for (let item of onlineDefaultButton) {
|
|
181
|
+
if (item.code === text) {
|
|
182
|
+
str = item.title;
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
if (!str) {
|
|
187
|
+
for (let item of btnList) {
|
|
188
|
+
if (item.buttonCode === text) {
|
|
189
|
+
str = item.buttonName;
|
|
190
|
+
break;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
return str;
|
|
195
|
+
}
|
|
196
|
+
export { useJavaColumns as a, useSqlFormSchemas as b, useSqlColumns as c, useJavaFormSchemas as u };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defHttp } from "/@/utils/http/axios";
|
|
2
|
+
var Api = /* @__PURE__ */ ((Api2) => {
|
|
3
|
+
Api2["list"] = "/online/graphreport/head/list";
|
|
4
|
+
Api2["delete"] = "/online/graphreport/head/delete";
|
|
5
|
+
Api2["deleteBatch"] = "/online/graphreport/head/deleteBatch";
|
|
6
|
+
Api2["exportXls"] = "/online/graphreport/head/exportXls";
|
|
7
|
+
Api2["importXls"] = "/online/graphreport/head/importExcel";
|
|
8
|
+
Api2["paramsList"] = "/online/graphreport/params/listByHeadId";
|
|
9
|
+
Api2["getChartsData"] = "/online/graphreport/api/getChartsData";
|
|
10
|
+
Api2["getParamsInfo"] = "/online/graphreport/params/listByHeadId";
|
|
11
|
+
return Api2;
|
|
12
|
+
})(Api || {});
|
|
13
|
+
const list = (params) => defHttp.get({ url: "/online/graphreport/head/list", params });
|
|
14
|
+
function doBatchDelete(idList) {
|
|
15
|
+
return defHttp.delete({
|
|
16
|
+
url: "/online/graphreport/head/deleteBatch",
|
|
17
|
+
params: { ids: idList.join(",") }
|
|
18
|
+
}, { joinParamsToUrl: true });
|
|
19
|
+
}
|
|
20
|
+
const queryParamsList = (headId) => defHttp.get({ url: "/online/graphreport/params/listByHeadId", params: { headId } });
|
|
21
|
+
const getChartsData = (params) => defHttp.get({ url: "/online/graphreport/api/getChartsData", params });
|
|
22
|
+
const getParamsInfo = (params) => defHttp.get({ url: "/online/graphreport/params/listByHeadId", params });
|
|
23
|
+
export { Api as A, getChartsData as a, doBatchDelete as d, getParamsInfo as g, list as l, queryParamsList as q };
|
package/index.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
const import_meta = {};
|
|
2
|
+
import JPopupOnlReport from "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
3
|
+
import { defineComponent, resolveComponent, openBlock, createElementBlock, createVNode } from "vue";
|
|
4
|
+
import { useMessage } from "/@/hooks/web/useMessage";
|
|
5
|
+
import { useRoute } from "vue-router";
|
|
6
|
+
var _export_sfc = (sfc, props) => {
|
|
7
|
+
const target = sfc.__vccOpts || sfc;
|
|
8
|
+
for (const [key, val] of props) {
|
|
9
|
+
target[key] = val;
|
|
10
|
+
}
|
|
11
|
+
return target;
|
|
12
|
+
};
|
|
13
|
+
const _sfc_main = defineComponent({
|
|
14
|
+
name: "OnlCgReportList",
|
|
15
|
+
components: {
|
|
16
|
+
JPopupOnlReport
|
|
17
|
+
},
|
|
18
|
+
setup(props, { emit, refs }) {
|
|
19
|
+
useMessage();
|
|
20
|
+
const route = useRoute();
|
|
21
|
+
const path = route.path;
|
|
22
|
+
const id = path.substr(path.lastIndexOf("/") + 1);
|
|
23
|
+
return {
|
|
24
|
+
id
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
const _hoisted_1 = { class: "p-2" };
|
|
29
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
30
|
+
const _component_JPopupOnlReport = resolveComponent("JPopupOnlReport");
|
|
31
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
32
|
+
createVNode(_component_JPopupOnlReport, {
|
|
33
|
+
id: _ctx.id,
|
|
34
|
+
clickToRowSelect: false
|
|
35
|
+
}, null, 8, ["id"])
|
|
36
|
+
]);
|
|
37
|
+
}
|
|
38
|
+
var OnlCgReportList = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
39
|
+
var OnlCgReportList$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
40
|
+
__proto__: null,
|
|
41
|
+
"default": OnlCgReportList
|
|
42
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
43
|
+
console.log("node_modules import.meta: ", import_meta);
|
|
44
|
+
var index = {
|
|
45
|
+
install(app, options) {
|
|
46
|
+
app.provide("baseImport", options.baseImport);
|
|
47
|
+
app.component("OnlCgReportList", OnlCgReportList);
|
|
48
|
+
console.log("--- online init ----");
|
|
49
|
+
},
|
|
50
|
+
getViews() {
|
|
51
|
+
return { "./src/views/super/online/cgform/CgformCopyList.vue": () => import("./CgformCopyList.js"), "./src/views/super/online/cgform/index.vue": () => import("./index2.js"), "./src/views/super/online/cgreport/index.vue": () => import("./index3.js"), "./src/views/super/online/graphreport/GraphreportList.vue": () => import("./GraphreportList.js"), "./src/views/super/online/cgform/components/CgformModal.vue": () => import("./CgformModal.js").then(function(n) {
|
|
52
|
+
return n.f;
|
|
53
|
+
}), "./src/views/super/online/cgform/components/CodeGeneratorModal.vue": () => import("./CodeGeneratorModal.js"), "./src/views/super/online/cgform/components/DbToOnlineModal.vue": () => import("./DbToOnlineModal.js"), "./src/views/super/online/cgform/components/ExtendConfigModal.vue": () => import("./ExtendConfigModal.js"), "./src/views/super/online/cgform/components/FileSelectModal.vue": () => import("./FileSelectModal.js"), "./src/views/super/online/cgform/hooks/useMessageOnline.tsx": () => import("./useMessageOnline.js"), "./src/views/super/online/cgreport/auto/OnlCgReportList.vue": () => Promise.resolve().then(function() {
|
|
54
|
+
return OnlCgReportList$1;
|
|
55
|
+
}), "./src/views/super/online/cgreport/components/CgreportModal.vue": () => import("./CgreportModal.js").then(function(n) {
|
|
56
|
+
return n.C;
|
|
57
|
+
}), "./src/views/super/online/cgreport/demo/ModalFormDemo.vue": () => import("./ModalFormDemo.js"), "./src/views/super/online/graphreport/auto/GraphreportAutoChart.vue": () => import("./GraphreportAutoChart.js"), "./src/views/super/online/graphreport/components/GraphreportModal.vue": () => import("./GraphreportModal.js"), "./src/views/super/online/cgform/auto/comp/JOnlineSearchSelect.vue": () => import("./JOnlineSearchSelect.js"), "./src/views/super/online/cgform/auto/comp/OnlineForm.vue": () => import("./OnlineForm.js").then(function(n) {
|
|
58
|
+
return n.a;
|
|
59
|
+
}), "./src/views/super/online/cgform/auto/comp/OnlineQueryForm.vue": () => import("./OnlineQueryForm.js"), "./src/views/super/online/cgform/auto/comp/OnlineSearchFormItem.vue": () => import("./OnlineSearchFormItem.js"), "./src/views/super/online/cgform/auto/comp/OnlineSelectCascade.vue": () => import("./OnlineSelectCascade.js"), "./src/views/super/online/cgform/auto/comp/OnlineSubForm.vue": () => import("./OnlineSubForm.js"), "./src/views/super/online/cgform/auto/comp/OnlineSuperQuery.vue": () => import("./OnlineSuperQuery.js"), "./src/views/super/online/cgform/auto/comp/OnlineSuperQueryValComponent.vue": () => import("./OnlineSuperQueryValComponent.js"), "./src/views/super/online/cgform/auto/comp/ProcessOnlineForm.vue": () => import("./ProcessOnlineForm.js"), "./src/views/super/online/cgform/auto/default/OnlineAutoList.vue": () => import("./OnlineAutoList.js"), "./src/views/super/online/cgform/auto/default/OnlineAutoModal.vue": () => import("./OnlineAutoModal.js"), "./src/views/super/online/cgform/auto/default/OnlineCustomModal.vue": () => import("./OnlineCustomModal.js"), "./src/views/super/online/cgform/auto/tree/OnlineAutoTreeList.vue": () => import("./OnlineAutoTreeList.js"), "./src/views/super/online/cgform/components/auth/AuthManagerDrawer.vue": () => import("./AuthManagerDrawer.js"), "./src/views/super/online/cgform/components/auth/AuthSetterModal.vue": () => import("./AuthSetterModal.js"), "./src/views/super/online/cgform/components/button/CustomButtonList.vue": () => import("./CustomButtonList.js"), "./src/views/super/online/cgform/components/enhance/EnhanceJavaModal.vue": () => import("./EnhanceJavaModal.js"), "./src/views/super/online/cgform/components/enhance/EnhanceJsHistory.vue": () => import("./EnhanceJsHistory.js").then(function(n) {
|
|
60
|
+
return n.a;
|
|
61
|
+
}), "./src/views/super/online/cgform/components/enhance/EnhanceJsModal.vue": () => import("./EnhanceJsModal.js"), "./src/views/super/online/cgform/components/enhance/EnhanceSqlModal.vue": () => import("./EnhanceSqlModal.js"), "./src/views/super/online/cgform/components/tables/CheckDictTable.vue": () => import("./CheckDictTable.js"), "./src/views/super/online/cgform/components/tables/DBAttributeTable.vue": () => import("./DBAttributeTable.js"), "./src/views/super/online/cgform/components/tables/ForeignKeyTable.vue": () => import("./ForeignKeyTable.js"), "./src/views/super/online/cgform/components/tables/IndexTable.vue": () => import("./IndexTable.js"), "./src/views/super/online/cgform/components/tables/PageAttributeTable.vue": () => import("./PageAttributeTable.js"), "./src/views/super/online/cgform/components/tables/QueryTable.vue": () => import("./QueryTable.js"), "./src/views/super/online/graphreport/auto/components/ErrorTip.vue": () => import("./ErrorTip.js"), "./src/views/super/online/graphreport/components/tables/FieldTable.vue": () => import("./FieldTable.js"), "./src/views/super/online/graphreport/components/tables/ParamsTable.vue": () => import("./ParamsTable.js"), "./src/views/super/online/cgform/components/auth/manager/AuthButtonConfig.vue": () => import("./AuthButtonConfig.js"), "./src/views/super/online/cgform/components/auth/manager/AuthDataConfig.vue": () => import("./AuthDataConfig.js"), "./src/views/super/online/cgform/components/auth/manager/AuthFieldConfig.vue": () => import("./AuthFieldConfig.js"), "./src/views/super/online/cgform/components/auth/setter/AuthButtonTree.vue": () => import("./AuthButtonTree.js"), "./src/views/super/online/cgform/components/auth/setter/AuthDataTree.vue": () => import("./AuthDataTree.js"), "./src/views/super/online/cgform/components/auth/setter/AuthFieldTree.vue": () => import("./AuthFieldTree.js"), "./src/views/super/online/cgform/components/auth/setter/LeftDepart.vue": () => import("./LeftDepart.js"), "./src/views/super/online/cgform/components/auth/setter/LeftRole.vue": () => import("./LeftRole.js"), "./src/views/super/online/cgform/components/auth/setter/LeftUser.vue": () => import("./LeftUser.js"), "./src/views/super/online/graphreport/auto/components/render/ChartAutoRender.vue": () => import("./ChartAutoRender.js"), "./src/views/super/online/graphreport/auto/components/render/ChartDoubleRender.vue": () => import("./ChartDoubleRender.js"), "./src/views/super/online/graphreport/auto/components/render/ChartSingleRender.vue": () => import("./ChartSingleRender.js"), "./src/views/super/online/graphreport/auto/components/render/ChartTabsRender.vue": () => import("./ChartTabsRender.js") };
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
export { _export_sfc as _, index as i };
|
package/index2.js
ADDED
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, resolveDirective, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, createVNode, withCtx, withDirectives, createBlock, createCommentVNode, createTextVNode } from "vue";
|
|
2
|
+
import { BasicTable, TableAction } from "/@/components/Table";
|
|
3
|
+
import { C as CgformModal } from "./CgformModal.js";
|
|
4
|
+
import DbToOnlineModal from "./DbToOnlineModal.js";
|
|
5
|
+
import CodeGeneratorModal from "./CodeGeneratorModal.js";
|
|
6
|
+
import CustomButtonList from "./CustomButtonList.js";
|
|
7
|
+
import EnhanceJsModal from "./EnhanceJsModal.js";
|
|
8
|
+
import EnhanceJavaModal from "./EnhanceJavaModal.js";
|
|
9
|
+
import EnhanceSqlModal from "./EnhanceSqlModal.js";
|
|
10
|
+
import AuthManagerDrawer from "./AuthManagerDrawer.js";
|
|
11
|
+
import AuthSetterModal from "./AuthSetterModal.js";
|
|
12
|
+
import { u as useCgformList } from "./useCgformList.js";
|
|
13
|
+
import { C as CgformPageType } from "./useOnlineTest.js";
|
|
14
|
+
import { c as columns, s as searchFormSchema } from "./cgform.data.js";
|
|
15
|
+
import { _ as _export_sfc } from "./index.js";
|
|
16
|
+
import "/@/components/Modal";
|
|
17
|
+
import "/@/components/Form/index";
|
|
18
|
+
import "/@/hooks/web/useMessage";
|
|
19
|
+
import "./useSchemas.js";
|
|
20
|
+
import "ant-design-vue";
|
|
21
|
+
import "@ant-design/icons-vue";
|
|
22
|
+
import "/@/utils/common/compUtils";
|
|
23
|
+
import "./DBAttributeTable.js";
|
|
24
|
+
import "/@/components/jeecg/JVxeTable/types";
|
|
25
|
+
import "./useTableSync.js";
|
|
26
|
+
import "./pick.js";
|
|
27
|
+
import "./isArray.js";
|
|
28
|
+
import "./toString.js";
|
|
29
|
+
import "./_arrayPush.js";
|
|
30
|
+
import "/@/utils/dict";
|
|
31
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
32
|
+
import "/@/utils/uuid";
|
|
33
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
34
|
+
import "vue-router";
|
|
35
|
+
import "./PageAttributeTable.js";
|
|
36
|
+
import "./CheckDictTable.js";
|
|
37
|
+
import "./ForeignKeyTable.js";
|
|
38
|
+
import "./IndexTable.js";
|
|
39
|
+
import "./QueryTable.js";
|
|
40
|
+
import "./ExtendConfigModal.js";
|
|
41
|
+
import "/@/components/Form";
|
|
42
|
+
import "/@/utils/http/axios";
|
|
43
|
+
import "/@/utils";
|
|
44
|
+
import "./useAutoForm.js";
|
|
45
|
+
import "./FormSchemaFactory.js";
|
|
46
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
47
|
+
import "/@/views/system/user/user.api";
|
|
48
|
+
import "/@/store/modules/user";
|
|
49
|
+
import "/@/utils/desform/customExpression";
|
|
50
|
+
import "/@/components/Form/src/componentMap";
|
|
51
|
+
import "./OnlineSelectCascade.js";
|
|
52
|
+
import "/@/hooks/system/useListPage";
|
|
53
|
+
import "/@/utils/file/download";
|
|
54
|
+
import "./FileSelectModal.js";
|
|
55
|
+
import "./useMessageOnline.js";
|
|
56
|
+
import "/@/utils/is";
|
|
57
|
+
import "/@/utils/cache";
|
|
58
|
+
import "./EnhanceJsHistory.js";
|
|
59
|
+
import "/@/utils/dateUtil";
|
|
60
|
+
import "/@/store";
|
|
61
|
+
import "pinia";
|
|
62
|
+
import "./enhance.api.js";
|
|
63
|
+
import "./enhance.data.js";
|
|
64
|
+
import "/@/components/Drawer";
|
|
65
|
+
import "./AuthFieldConfig.js";
|
|
66
|
+
import "./auth.api.js";
|
|
67
|
+
import "./auth.data.js";
|
|
68
|
+
import "./AuthButtonConfig.js";
|
|
69
|
+
import "./cloneDeep.js";
|
|
70
|
+
import "./AuthDataConfig.js";
|
|
71
|
+
import "./LeftRole.js";
|
|
72
|
+
import "./LeftDepart.js";
|
|
73
|
+
import "/@/api/common/api";
|
|
74
|
+
import "./LeftUser.js";
|
|
75
|
+
import "./AuthFieldTree.js";
|
|
76
|
+
import "./AuthButtonTree.js";
|
|
77
|
+
import "./AuthDataTree.js";
|
|
78
|
+
import "/@/hooks/web/useCopyModal";
|
|
79
|
+
const _sfc_main = defineComponent({
|
|
80
|
+
name: "CgformIndex",
|
|
81
|
+
components: {
|
|
82
|
+
BasicTable,
|
|
83
|
+
TableAction,
|
|
84
|
+
CgformModal,
|
|
85
|
+
DbToOnlineModal,
|
|
86
|
+
CodeGeneratorModal,
|
|
87
|
+
CustomButtonList,
|
|
88
|
+
EnhanceJsModal,
|
|
89
|
+
EnhanceJavaModal,
|
|
90
|
+
EnhanceSqlModal,
|
|
91
|
+
AuthManagerDrawer,
|
|
92
|
+
AuthSetterModal
|
|
93
|
+
},
|
|
94
|
+
setup() {
|
|
95
|
+
const {
|
|
96
|
+
pageContext,
|
|
97
|
+
onAdd,
|
|
98
|
+
onDeleteBatch,
|
|
99
|
+
onImportDbTable,
|
|
100
|
+
onGenerateCode,
|
|
101
|
+
onShowCustomButton,
|
|
102
|
+
onShowEnhanceJs,
|
|
103
|
+
onShowEnhanceSql,
|
|
104
|
+
onShowEnhanceJava,
|
|
105
|
+
getTableAction,
|
|
106
|
+
getDropDownAction,
|
|
107
|
+
registerAuthManagerDrawer,
|
|
108
|
+
registerAuthSetterModal,
|
|
109
|
+
registerCustomButtonModal,
|
|
110
|
+
registerEnhanceJsModal,
|
|
111
|
+
registerEnhanceSqlModal,
|
|
112
|
+
registerEnhanceJavaModal,
|
|
113
|
+
registerCgformModal,
|
|
114
|
+
registerDbToOnlineModal,
|
|
115
|
+
registerCodeGeneratorModal
|
|
116
|
+
} = useCgformList({
|
|
117
|
+
pageType: CgformPageType.normal,
|
|
118
|
+
designScope: "online-cgform-list",
|
|
119
|
+
columns,
|
|
120
|
+
formSchemas: searchFormSchema
|
|
121
|
+
});
|
|
122
|
+
const { prefixCls, tableContext } = pageContext;
|
|
123
|
+
const [registerTable, { reload }, { rowSelection, selectedRowKeys }] = tableContext;
|
|
124
|
+
return {
|
|
125
|
+
prefixCls,
|
|
126
|
+
reload,
|
|
127
|
+
rowSelection,
|
|
128
|
+
selectedRowKeys,
|
|
129
|
+
onAdd,
|
|
130
|
+
onDeleteBatch,
|
|
131
|
+
onImportDbTable,
|
|
132
|
+
onGenerateCode,
|
|
133
|
+
onShowCustomButton,
|
|
134
|
+
onShowEnhanceJs,
|
|
135
|
+
onShowEnhanceSql,
|
|
136
|
+
onShowEnhanceJava,
|
|
137
|
+
getTableAction,
|
|
138
|
+
getDropDownAction,
|
|
139
|
+
registerAuthManagerDrawer,
|
|
140
|
+
registerAuthSetterModal,
|
|
141
|
+
registerCustomButtonModal,
|
|
142
|
+
registerEnhanceJsModal,
|
|
143
|
+
registerEnhanceSqlModal,
|
|
144
|
+
registerEnhanceJavaModal,
|
|
145
|
+
registerTable,
|
|
146
|
+
registerCgformModal,
|
|
147
|
+
registerDbToOnlineModal,
|
|
148
|
+
registerCodeGeneratorModal
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
const _hoisted_1 = /* @__PURE__ */ createTextVNode("\u65B0\u589E");
|
|
153
|
+
const _hoisted_2 = /* @__PURE__ */ createTextVNode("\u81EA\u5B9A\u4E49\u6309\u94AE");
|
|
154
|
+
const _hoisted_3 = /* @__PURE__ */ createTextVNode("JS\u589E\u5F3A");
|
|
155
|
+
const _hoisted_4 = /* @__PURE__ */ createTextVNode(" SQL\u589E\u5F3A ");
|
|
156
|
+
const _hoisted_5 = /* @__PURE__ */ createTextVNode("JAVA\u589E\u5F3A");
|
|
157
|
+
const _hoisted_6 = /* @__PURE__ */ createTextVNode("\u5BFC\u5165\u6570\u636E\u5E93\u8868");
|
|
158
|
+
const _hoisted_7 = /* @__PURE__ */ createTextVNode(" \u4EE3\u7801\u751F\u6210 ");
|
|
159
|
+
const _hoisted_8 = /* @__PURE__ */ createTextVNode("\u9AD8\u7EA7\u67E5\u8BE2\uFF1F");
|
|
160
|
+
const _hoisted_9 = /* @__PURE__ */ createElementVNode("span", null, "\u5220\u9664", -1);
|
|
161
|
+
const _hoisted_10 = /* @__PURE__ */ createElementVNode("span", null, "\u6279\u91CF\u64CD\u4F5C", -1);
|
|
162
|
+
const _hoisted_11 = {
|
|
163
|
+
key: 0,
|
|
164
|
+
style: { "color": "limegreen" }
|
|
165
|
+
};
|
|
166
|
+
const _hoisted_12 = {
|
|
167
|
+
key: 1,
|
|
168
|
+
style: { "color": "red" }
|
|
169
|
+
};
|
|
170
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
171
|
+
const _component_a_button = resolveComponent("a-button");
|
|
172
|
+
const _component_a_icon = resolveComponent("a-icon");
|
|
173
|
+
const _component_a_menu_item = resolveComponent("a-menu-item");
|
|
174
|
+
const _component_a_menu = resolveComponent("a-menu");
|
|
175
|
+
const _component_a_dropdown = resolveComponent("a-dropdown");
|
|
176
|
+
const _component_TableAction = resolveComponent("TableAction");
|
|
177
|
+
const _component_BasicTable = resolveComponent("BasicTable");
|
|
178
|
+
const _component_CgformModal = resolveComponent("CgformModal");
|
|
179
|
+
const _component_DbToOnlineModal = resolveComponent("DbToOnlineModal");
|
|
180
|
+
const _component_CodeGeneratorModal = resolveComponent("CodeGeneratorModal");
|
|
181
|
+
const _component_CustomButtonList = resolveComponent("CustomButtonList");
|
|
182
|
+
const _component_EnhanceJsModal = resolveComponent("EnhanceJsModal");
|
|
183
|
+
const _component_EnhanceJavaModal = resolveComponent("EnhanceJavaModal");
|
|
184
|
+
const _component_EnhanceSqlModal = resolveComponent("EnhanceSqlModal");
|
|
185
|
+
const _component_AuthManagerDrawer = resolveComponent("AuthManagerDrawer");
|
|
186
|
+
const _component_AuthSetterModal = resolveComponent("AuthSetterModal");
|
|
187
|
+
const _directive_auth = resolveDirective("auth");
|
|
188
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
189
|
+
createElementVNode("div", {
|
|
190
|
+
class: normalizeClass(_ctx.prefixCls)
|
|
191
|
+
}, [
|
|
192
|
+
createVNode(_component_BasicTable, {
|
|
193
|
+
onRegister: _ctx.registerTable,
|
|
194
|
+
rowSelection: _ctx.rowSelection
|
|
195
|
+
}, {
|
|
196
|
+
tableTitle: withCtx(() => [
|
|
197
|
+
createVNode(_component_a_button, {
|
|
198
|
+
onClick: _ctx.onAdd,
|
|
199
|
+
type: "primary",
|
|
200
|
+
preIcon: "ant-design:plus"
|
|
201
|
+
}, {
|
|
202
|
+
default: withCtx(() => [
|
|
203
|
+
_hoisted_1
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
}, 8, ["onClick"]),
|
|
207
|
+
createVNode(_component_a_button, {
|
|
208
|
+
onClick: _ctx.onShowCustomButton,
|
|
209
|
+
type: "primary",
|
|
210
|
+
preIcon: "ant-design:highlight"
|
|
211
|
+
}, {
|
|
212
|
+
default: withCtx(() => [
|
|
213
|
+
_hoisted_2
|
|
214
|
+
]),
|
|
215
|
+
_: 1
|
|
216
|
+
}, 8, ["onClick"]),
|
|
217
|
+
createVNode(_component_a_button, {
|
|
218
|
+
onClick: _ctx.onShowEnhanceJs,
|
|
219
|
+
type: "primary",
|
|
220
|
+
preIcon: "ant-design:strikethrough"
|
|
221
|
+
}, {
|
|
222
|
+
default: withCtx(() => [
|
|
223
|
+
_hoisted_3
|
|
224
|
+
]),
|
|
225
|
+
_: 1
|
|
226
|
+
}, 8, ["onClick"]),
|
|
227
|
+
withDirectives((openBlock(), createBlock(_component_a_button, {
|
|
228
|
+
onClick: _ctx.onShowEnhanceSql,
|
|
229
|
+
type: "primary",
|
|
230
|
+
preIcon: "ant-design:filter"
|
|
231
|
+
}, {
|
|
232
|
+
default: withCtx(() => [
|
|
233
|
+
_hoisted_4
|
|
234
|
+
]),
|
|
235
|
+
_: 1
|
|
236
|
+
}, 8, ["onClick"])), [
|
|
237
|
+
[_directive_auth, "online:sql"]
|
|
238
|
+
]),
|
|
239
|
+
createVNode(_component_a_button, {
|
|
240
|
+
onClick: _ctx.onShowEnhanceJava,
|
|
241
|
+
type: "primary",
|
|
242
|
+
preIcon: "ant-design:tool"
|
|
243
|
+
}, {
|
|
244
|
+
default: withCtx(() => [
|
|
245
|
+
_hoisted_5
|
|
246
|
+
]),
|
|
247
|
+
_: 1
|
|
248
|
+
}, 8, ["onClick"]),
|
|
249
|
+
createVNode(_component_a_button, {
|
|
250
|
+
onClick: _ctx.onImportDbTable,
|
|
251
|
+
type: "primary",
|
|
252
|
+
preIcon: "ant-design:database"
|
|
253
|
+
}, {
|
|
254
|
+
default: withCtx(() => [
|
|
255
|
+
_hoisted_6
|
|
256
|
+
]),
|
|
257
|
+
_: 1
|
|
258
|
+
}, 8, ["onClick"]),
|
|
259
|
+
createVNode(_component_a_button, {
|
|
260
|
+
onClick: _ctx.onGenerateCode,
|
|
261
|
+
type: "primary",
|
|
262
|
+
preIcon: "bx:bx-code-alt"
|
|
263
|
+
}, {
|
|
264
|
+
default: withCtx(() => [
|
|
265
|
+
_hoisted_7
|
|
266
|
+
]),
|
|
267
|
+
_: 1
|
|
268
|
+
}, 8, ["onClick"]),
|
|
269
|
+
createVNode(_component_a_button, { type: "primary" }, {
|
|
270
|
+
default: withCtx(() => [
|
|
271
|
+
_hoisted_8
|
|
272
|
+
]),
|
|
273
|
+
_: 1
|
|
274
|
+
}),
|
|
275
|
+
_ctx.selectedRowKeys.length > 0 ? (openBlock(), createBlock(_component_a_dropdown, { key: 0 }, {
|
|
276
|
+
overlay: withCtx(() => [
|
|
277
|
+
createVNode(_component_a_menu, null, {
|
|
278
|
+
default: withCtx(() => [
|
|
279
|
+
createVNode(_component_a_menu_item, {
|
|
280
|
+
key: "1",
|
|
281
|
+
onClick: _ctx.onDeleteBatch
|
|
282
|
+
}, {
|
|
283
|
+
default: withCtx(() => [
|
|
284
|
+
createVNode(_component_a_icon, { type: "delete" }),
|
|
285
|
+
_hoisted_9
|
|
286
|
+
]),
|
|
287
|
+
_: 1
|
|
288
|
+
}, 8, ["onClick"])
|
|
289
|
+
]),
|
|
290
|
+
_: 1
|
|
291
|
+
})
|
|
292
|
+
]),
|
|
293
|
+
default: withCtx(() => [
|
|
294
|
+
createVNode(_component_a_button, null, {
|
|
295
|
+
default: withCtx(() => [
|
|
296
|
+
_hoisted_10,
|
|
297
|
+
createVNode(_component_a_icon, { type: "down" })
|
|
298
|
+
]),
|
|
299
|
+
_: 1
|
|
300
|
+
})
|
|
301
|
+
]),
|
|
302
|
+
_: 1
|
|
303
|
+
})) : createCommentVNode("", true)
|
|
304
|
+
]),
|
|
305
|
+
dbSync: withCtx(({ text }) => [
|
|
306
|
+
text === "Y" ? (openBlock(), createElementBlock("span", _hoisted_11, "\u5DF2\u540C\u6B65")) : createCommentVNode("", true),
|
|
307
|
+
text === "N" ? (openBlock(), createElementBlock("span", _hoisted_12, "\u672A\u540C\u6B65")) : createCommentVNode("", true)
|
|
308
|
+
]),
|
|
309
|
+
action: withCtx(({ record }) => [
|
|
310
|
+
createVNode(_component_TableAction, {
|
|
311
|
+
actions: _ctx.getTableAction(record),
|
|
312
|
+
dropDownActions: _ctx.getDropDownAction(record)
|
|
313
|
+
}, null, 8, ["actions", "dropDownActions"])
|
|
314
|
+
]),
|
|
315
|
+
_: 1
|
|
316
|
+
}, 8, ["onRegister", "rowSelection"])
|
|
317
|
+
], 2),
|
|
318
|
+
createVNode(_component_CgformModal, {
|
|
319
|
+
onRegister: _ctx.registerCgformModal,
|
|
320
|
+
onSuccess: _ctx.reload
|
|
321
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
322
|
+
createVNode(_component_DbToOnlineModal, {
|
|
323
|
+
onRegister: _ctx.registerDbToOnlineModal,
|
|
324
|
+
onSuccess: _ctx.reload
|
|
325
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
326
|
+
createVNode(_component_CodeGeneratorModal, { onRegister: _ctx.registerCodeGeneratorModal }, null, 8, ["onRegister"]),
|
|
327
|
+
createVNode(_component_CustomButtonList, { onRegister: _ctx.registerCustomButtonModal }, null, 8, ["onRegister"]),
|
|
328
|
+
createVNode(_component_EnhanceJsModal, { onRegister: _ctx.registerEnhanceJsModal }, null, 8, ["onRegister"]),
|
|
329
|
+
createVNode(_component_EnhanceJavaModal, { onRegister: _ctx.registerEnhanceJavaModal }, null, 8, ["onRegister"]),
|
|
330
|
+
createVNode(_component_EnhanceSqlModal, { onRegister: _ctx.registerEnhanceSqlModal }, null, 8, ["onRegister"]),
|
|
331
|
+
createVNode(_component_AuthManagerDrawer, { onRegister: _ctx.registerAuthManagerDrawer }, null, 8, ["onRegister"]),
|
|
332
|
+
createVNode(_component_AuthSetterModal, { onRegister: _ctx.registerAuthSetterModal }, null, 8, ["onRegister"])
|
|
333
|
+
], 64);
|
|
334
|
+
}
|
|
335
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
336
|
+
export { index as default };
|