@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
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode } from "vue";
|
|
2
|
+
import { defHttp } from "/@/utils/http/axios";
|
|
3
|
+
import { BasicTable } from "/@/components/Table";
|
|
4
|
+
import { BasicModal, useModalInner } from "/@/components/Modal";
|
|
5
|
+
import { useListTable } from "/@/hooks/system/useListPage";
|
|
6
|
+
import { useMessage } from "/@/hooks/web/useMessage";
|
|
7
|
+
import { _ as _export_sfc } from "./index.js";
|
|
8
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
9
|
+
import "vue-router";
|
|
10
|
+
const _sfc_main = defineComponent({
|
|
11
|
+
name: "TransDb2Online",
|
|
12
|
+
components: { BasicModal, BasicTable },
|
|
13
|
+
emits: ["success", "register"],
|
|
14
|
+
setup(_, { emit }) {
|
|
15
|
+
const { createMessage: $message } = useMessage();
|
|
16
|
+
const emptyText = ref("\u6682\u65E0\u6570\u636E");
|
|
17
|
+
const confirmLoading = ref(false);
|
|
18
|
+
const btnLoading = ref(false);
|
|
19
|
+
const metaSource = ref([]);
|
|
20
|
+
const dataSource = ref([]);
|
|
21
|
+
const [registerModal, { closeModal }] = useModalInner(() => {
|
|
22
|
+
btnLoading.value = false;
|
|
23
|
+
emptyText.value = "\u6682\u65E0\u6570\u636E";
|
|
24
|
+
selectedRowKeys.value = [];
|
|
25
|
+
queryTables();
|
|
26
|
+
});
|
|
27
|
+
const [registerTable, { setPagination }, { rowSelection, selectedRowKeys }] = useListTable({
|
|
28
|
+
bordered: true,
|
|
29
|
+
columns: [
|
|
30
|
+
{ title: "\u8868\u540D", align: "left", dataIndex: "id" }
|
|
31
|
+
],
|
|
32
|
+
dataSource,
|
|
33
|
+
maxHeight: 300,
|
|
34
|
+
locale: { emptyText },
|
|
35
|
+
pagination: {
|
|
36
|
+
showQuickJumper: false,
|
|
37
|
+
showSizeChanger: false
|
|
38
|
+
},
|
|
39
|
+
clickToRowSelect: true,
|
|
40
|
+
showIndexColumn: true,
|
|
41
|
+
showActionColumn: false,
|
|
42
|
+
formConfig: {
|
|
43
|
+
schemas: [
|
|
44
|
+
{
|
|
45
|
+
label: "\u8868\u540D",
|
|
46
|
+
field: "tableName",
|
|
47
|
+
component: "Input",
|
|
48
|
+
componentProps: {
|
|
49
|
+
style: { width: "100%" },
|
|
50
|
+
placeholder: "\u8BF7\u8F93\u5165\u8868\u540D\u4EE5\u6A21\u7CCA\u7B5B\u9009",
|
|
51
|
+
onChange: (e) => searchFilter(e.target.value)
|
|
52
|
+
},
|
|
53
|
+
disabledLabelWidth: true,
|
|
54
|
+
itemProps: {
|
|
55
|
+
labelCol: { sm: 24, md: 4 },
|
|
56
|
+
wrapperCol: { sm: 24, md: 20 }
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
baseColProps: { xs: 24, sm: 24, md: 24, lg: 24, xl: 24, xxl: 24 },
|
|
61
|
+
showActionButtonGroup: false
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
function queryTables() {
|
|
65
|
+
confirmLoading.value = true;
|
|
66
|
+
return defHttp.get({
|
|
67
|
+
url: "/online/cgform/head/queryTables/"
|
|
68
|
+
}, {
|
|
69
|
+
errorMessageMode: "none"
|
|
70
|
+
}).then((result) => {
|
|
71
|
+
dataSource.value = result;
|
|
72
|
+
metaSource.value = [...result];
|
|
73
|
+
return result;
|
|
74
|
+
}, (e) => {
|
|
75
|
+
if (e.message == "noadminauth") {
|
|
76
|
+
emptyText.value = "\u975Eadmin\u7528\u6237\u65E0\u6743\u9650\u64CD\u4F5C\uFF01";
|
|
77
|
+
$message.warn(emptyText.value);
|
|
78
|
+
} else {
|
|
79
|
+
console.error(e);
|
|
80
|
+
}
|
|
81
|
+
dataSource.value = [];
|
|
82
|
+
metaSource.value = [];
|
|
83
|
+
}).finally(() => {
|
|
84
|
+
confirmLoading.value = false;
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function searchFilter(keyword) {
|
|
88
|
+
if (metaSource.value.length === 0)
|
|
89
|
+
return;
|
|
90
|
+
if (!keyword) {
|
|
91
|
+
dataSource.value = [...metaSource.value];
|
|
92
|
+
} else {
|
|
93
|
+
dataSource.value = metaSource.value.filter((item) => item.id.toLowerCase().includes(keyword.toLowerCase()));
|
|
94
|
+
emptyText.value = dataSource.value.length === 0 ? "\u65E0\u7B5B\u9009\u7ED3\u679C" : "\u6682\u65E0\u6570\u636E";
|
|
95
|
+
}
|
|
96
|
+
setPagination({ current: 1 });
|
|
97
|
+
}
|
|
98
|
+
function handleCancel() {
|
|
99
|
+
closeModal();
|
|
100
|
+
}
|
|
101
|
+
function handleTrans() {
|
|
102
|
+
if (!selectedRowKeys.value || selectedRowKeys.value.length == 0) {
|
|
103
|
+
$message.warning("\u8BF7\u9009\u62E9\u4E00\u5F20\u8868");
|
|
104
|
+
return;
|
|
105
|
+
} else {
|
|
106
|
+
btnLoading.value = true;
|
|
107
|
+
let tbNames = selectedRowKeys.value.join(",");
|
|
108
|
+
defHttp.post({ url: "/online/cgform/head/transTables/" + tbNames }).then(() => {
|
|
109
|
+
closeModal();
|
|
110
|
+
emit("success");
|
|
111
|
+
}).finally(() => btnLoading.value = false);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return {
|
|
115
|
+
emptyText,
|
|
116
|
+
confirmLoading,
|
|
117
|
+
btnLoading,
|
|
118
|
+
metaSource,
|
|
119
|
+
handleTrans,
|
|
120
|
+
handleCancel,
|
|
121
|
+
queryTables,
|
|
122
|
+
registerModal,
|
|
123
|
+
registerTable,
|
|
124
|
+
rowSelection,
|
|
125
|
+
selectedRowKeys
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
const _hoisted_1 = /* @__PURE__ */ createElementVNode("div", null, [
|
|
130
|
+
/* @__PURE__ */ createTextVNode(" \u6CE8\uFF1A\u5BFC\u5165\u8868\u4F1A\u6392\u9664\u914D\u7F6E\u524D\u7F00\u8868 "),
|
|
131
|
+
/* @__PURE__ */ createElementVNode("a", {
|
|
132
|
+
href: "http://doc.jeecg.com/2043924",
|
|
133
|
+
target: "_blank"
|
|
134
|
+
}, " \u53C2\u8003\u6587\u6863")
|
|
135
|
+
], -1);
|
|
136
|
+
const _hoisted_2 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
|
|
137
|
+
const _hoisted_3 = /* @__PURE__ */ createTextVNode(" \u751F\u6210\u8868\u5355 ");
|
|
138
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
139
|
+
const _component_BasicTable = resolveComponent("BasicTable");
|
|
140
|
+
const _component_a_spin = resolveComponent("a-spin");
|
|
141
|
+
const _component_a_button = resolveComponent("a-button");
|
|
142
|
+
const _component_BasicModal = resolveComponent("BasicModal");
|
|
143
|
+
return openBlock(), createBlock(_component_BasicModal, {
|
|
144
|
+
onRegister: _ctx.registerModal,
|
|
145
|
+
width: 500,
|
|
146
|
+
title: "\u4ECE\u6570\u636E\u5E93\u5BFC\u5165\u8868\u5355",
|
|
147
|
+
confirmLoading: _ctx.confirmLoading,
|
|
148
|
+
onCancel: _ctx.handleCancel
|
|
149
|
+
}, {
|
|
150
|
+
footer: withCtx(() => [
|
|
151
|
+
createVNode(_component_a_button, { onClick: _ctx.handleCancel }, {
|
|
152
|
+
default: withCtx(() => [
|
|
153
|
+
_hoisted_2
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
}, 8, ["onClick"]),
|
|
157
|
+
createVNode(_component_a_button, {
|
|
158
|
+
onClick: _ctx.handleTrans,
|
|
159
|
+
type: "primary",
|
|
160
|
+
preIcon: "ant-design:swap",
|
|
161
|
+
loading: _ctx.confirmLoading || _ctx.btnLoading
|
|
162
|
+
}, {
|
|
163
|
+
default: withCtx(() => [
|
|
164
|
+
_hoisted_3
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
}, 8, ["onClick", "loading"])
|
|
168
|
+
]),
|
|
169
|
+
default: withCtx(() => [
|
|
170
|
+
createVNode(_component_a_spin, { spinning: _ctx.confirmLoading }, {
|
|
171
|
+
default: withCtx(() => [
|
|
172
|
+
createVNode(_component_BasicTable, {
|
|
173
|
+
onRegister: _ctx.registerTable,
|
|
174
|
+
rowSelection: _ctx.rowSelection,
|
|
175
|
+
onTableRedo: _ctx.queryTables
|
|
176
|
+
}, {
|
|
177
|
+
tableTitle: withCtx(() => [
|
|
178
|
+
_hoisted_1
|
|
179
|
+
]),
|
|
180
|
+
_: 1
|
|
181
|
+
}, 8, ["onRegister", "rowSelection", "onTableRedo"])
|
|
182
|
+
]),
|
|
183
|
+
_: 1
|
|
184
|
+
}, 8, ["spinning"])
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
}, 8, ["onRegister", "confirmLoading", "onCancel"]);
|
|
188
|
+
}
|
|
189
|
+
var DbToOnlineModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
190
|
+
export { DbToOnlineModal as default };
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
var __async = (__this, __arguments, generator) => {
|
|
18
|
+
return new Promise((resolve, reject) => {
|
|
19
|
+
var fulfilled = (value) => {
|
|
20
|
+
try {
|
|
21
|
+
step(generator.next(value));
|
|
22
|
+
} catch (e) {
|
|
23
|
+
reject(e);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
var rejected = (value) => {
|
|
27
|
+
try {
|
|
28
|
+
step(generator.throw(value));
|
|
29
|
+
} catch (e) {
|
|
30
|
+
reject(e);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
34
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
import { defineComponent, ref, reactive, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, createCommentVNode, normalizeProps, guardReactiveProps, createTextVNode, nextTick } from "vue";
|
|
38
|
+
import { BasicModal, useModalInner, useModal } from "/@/components/Modal";
|
|
39
|
+
import { BasicForm, useForm } from "/@/components/Form";
|
|
40
|
+
import { BasicTable, TableAction } from "/@/components/Table";
|
|
41
|
+
import { useListPage } from "/@/hooks/system/useListPage";
|
|
42
|
+
import { u as useOnlineTest } from "./useOnlineTest.js";
|
|
43
|
+
import { u as useJavaFormSchemas, a as useJavaColumns } from "./enhance.data.js";
|
|
44
|
+
import { a as getEnhanceJavaByCode, b as saveEnhanceJava, d as doEnhanceJavaBatchDelete } from "./enhance.api.js";
|
|
45
|
+
import { _ as _export_sfc } from "./index.js";
|
|
46
|
+
import "/@/utils/http/axios";
|
|
47
|
+
import "/@/hooks/web/useMessage";
|
|
48
|
+
import "/@/utils/cache";
|
|
49
|
+
import "./cgform.data.js";
|
|
50
|
+
import "/@/utils/dict";
|
|
51
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
52
|
+
import "/@/utils/uuid";
|
|
53
|
+
import "/@/utils/is";
|
|
54
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
55
|
+
import "vue-router";
|
|
56
|
+
const _sfc_main = defineComponent({
|
|
57
|
+
name: "EnhanceJavaModal",
|
|
58
|
+
components: { BasicModal, BasicTable, BasicForm, TableAction },
|
|
59
|
+
emits: ["register"],
|
|
60
|
+
setup() {
|
|
61
|
+
const code = ref("");
|
|
62
|
+
const btnList = ref([]);
|
|
63
|
+
const { columns } = useJavaColumns(btnList);
|
|
64
|
+
const { doRequest, doDeleteRecord, tableContext } = useListPage({
|
|
65
|
+
tableProps: {
|
|
66
|
+
api: (params) => __async(this, null, function* () {
|
|
67
|
+
let { dataSource, btnList: $btnList } = yield getEnhanceJavaByCode(code.value, params);
|
|
68
|
+
btnList.value = $btnList;
|
|
69
|
+
return dataSource;
|
|
70
|
+
}),
|
|
71
|
+
columns,
|
|
72
|
+
canResize: false,
|
|
73
|
+
useSearchForm: false,
|
|
74
|
+
beforeFetch(params) {
|
|
75
|
+
return Object.assign(params, { column: "orderNum", order: "asc" });
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
const [registerTable, { reload }, { rowSelection, selectedRowKeys }] = tableContext;
|
|
80
|
+
const [registerModal, { closeModal }] = useModalInner((data) => __async(this, null, function* () {
|
|
81
|
+
code.value = data.row.id;
|
|
82
|
+
reload();
|
|
83
|
+
}));
|
|
84
|
+
const { aiTestMode, genEnhanceJavaData } = useOnlineTest({}, { reload }, null);
|
|
85
|
+
const [registerFormModal, formModal] = useModal();
|
|
86
|
+
const isUpdate = ref(false);
|
|
87
|
+
const formModalProps = reactive({
|
|
88
|
+
onRegister: registerFormModal,
|
|
89
|
+
title: computed(() => (isUpdate == null ? void 0 : isUpdate.value) ? "\u4FEE\u6539" : "\u65B0\u589E"),
|
|
90
|
+
width: 800,
|
|
91
|
+
confirmLoading: false,
|
|
92
|
+
bodyStyle: { height: "350px" },
|
|
93
|
+
onOk: onSubmit,
|
|
94
|
+
onCancel: formModal.closeModal
|
|
95
|
+
});
|
|
96
|
+
let formRecord = {};
|
|
97
|
+
const { formSchemas } = useJavaFormSchemas(btnList);
|
|
98
|
+
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
|
|
99
|
+
schemas: formSchemas,
|
|
100
|
+
showActionButtonGroup: false
|
|
101
|
+
});
|
|
102
|
+
function onCancel() {
|
|
103
|
+
closeModal();
|
|
104
|
+
}
|
|
105
|
+
function openFormModal(data) {
|
|
106
|
+
return __async(this, null, function* () {
|
|
107
|
+
var _a;
|
|
108
|
+
isUpdate.value = data.isUpdate;
|
|
109
|
+
formRecord = __spreadValues({}, (_a = data.record) != null ? _a : {});
|
|
110
|
+
formModal.openModal();
|
|
111
|
+
yield nextTick();
|
|
112
|
+
yield resetFields();
|
|
113
|
+
setFieldsValue(formRecord);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
function onAdd() {
|
|
117
|
+
openFormModal({ isUpdate: false });
|
|
118
|
+
}
|
|
119
|
+
function onEdit(record) {
|
|
120
|
+
openFormModal({ isUpdate: true, record });
|
|
121
|
+
}
|
|
122
|
+
function onGenEnhanceJavaData() {
|
|
123
|
+
genEnhanceJavaData(code.value);
|
|
124
|
+
}
|
|
125
|
+
function onBatchDelete() {
|
|
126
|
+
return __async(this, null, function* () {
|
|
127
|
+
doRequest(() => doEnhanceJavaBatchDelete(selectedRowKeys.value));
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
function onSubmit() {
|
|
131
|
+
return __async(this, null, function* () {
|
|
132
|
+
try {
|
|
133
|
+
formModalProps.confirmLoading = true;
|
|
134
|
+
let values = yield validate();
|
|
135
|
+
values = Object.assign({}, formRecord, values);
|
|
136
|
+
yield saveEnhanceJava(code.value, values, isUpdate.value);
|
|
137
|
+
reload();
|
|
138
|
+
formModal.closeModal();
|
|
139
|
+
} finally {
|
|
140
|
+
formModalProps.confirmLoading = false;
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
function getTableAction(record) {
|
|
145
|
+
return [
|
|
146
|
+
{
|
|
147
|
+
label: "\u7F16\u8F91",
|
|
148
|
+
onClick: () => onEdit(record)
|
|
149
|
+
}
|
|
150
|
+
];
|
|
151
|
+
}
|
|
152
|
+
function getDropDownAction(record) {
|
|
153
|
+
return [
|
|
154
|
+
{
|
|
155
|
+
label: "\u5220\u9664",
|
|
156
|
+
popConfirm: {
|
|
157
|
+
title: "\u786E\u5B9A\u5220\u9664\u5417\uFF1F",
|
|
158
|
+
placement: "left",
|
|
159
|
+
confirm: () => doDeleteRecord(() => doEnhanceJavaBatchDelete([record.id]))
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
];
|
|
163
|
+
}
|
|
164
|
+
return {
|
|
165
|
+
rowSelection,
|
|
166
|
+
selectedRowKeys,
|
|
167
|
+
aiTestMode,
|
|
168
|
+
onCancel,
|
|
169
|
+
onAdd,
|
|
170
|
+
onGenEnhanceJavaData,
|
|
171
|
+
onBatchDelete,
|
|
172
|
+
getTableAction,
|
|
173
|
+
getDropDownAction,
|
|
174
|
+
formModalProps,
|
|
175
|
+
registerModal,
|
|
176
|
+
registerTable,
|
|
177
|
+
registerForm
|
|
178
|
+
};
|
|
179
|
+
},
|
|
180
|
+
computed: {
|
|
181
|
+
tableScroll() {
|
|
182
|
+
let height = window.innerHeight;
|
|
183
|
+
return {
|
|
184
|
+
y: height - 320
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
const _hoisted_1 = /* @__PURE__ */ createTextVNode("\u65B0\u589E");
|
|
190
|
+
const _hoisted_2 = /* @__PURE__ */ createTextVNode(" \u5220\u9664 ");
|
|
191
|
+
const _hoisted_3 = /* @__PURE__ */ createTextVNode(" \u6279\u91CF\u64CD\u4F5C ");
|
|
192
|
+
const _hoisted_4 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
|
|
193
|
+
const _hoisted_5 = {
|
|
194
|
+
key: 0,
|
|
195
|
+
style: { "float": "left" }
|
|
196
|
+
};
|
|
197
|
+
const _hoisted_6 = /* @__PURE__ */ createTextVNode("\u751F\u6210\u6D4B\u8BD5\u6570\u636E");
|
|
198
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
199
|
+
const _component_a_button = resolveComponent("a-button");
|
|
200
|
+
const _component_a_icon = resolveComponent("a-icon");
|
|
201
|
+
const _component_a_menu_item = resolveComponent("a-menu-item");
|
|
202
|
+
const _component_a_menu = resolveComponent("a-menu");
|
|
203
|
+
const _component_a_dropdown = resolveComponent("a-dropdown");
|
|
204
|
+
const _component_TableAction = resolveComponent("TableAction");
|
|
205
|
+
const _component_BasicTable = resolveComponent("BasicTable");
|
|
206
|
+
const _component_BasicForm = resolveComponent("BasicForm");
|
|
207
|
+
const _component_a_spin = resolveComponent("a-spin");
|
|
208
|
+
const _component_BasicModal = resolveComponent("BasicModal");
|
|
209
|
+
return openBlock(), createBlock(_component_BasicModal, {
|
|
210
|
+
onRegister: _ctx.registerModal,
|
|
211
|
+
title: "JAVA\u589E\u5F3A",
|
|
212
|
+
width: 1200,
|
|
213
|
+
defaultFullscreen: "",
|
|
214
|
+
onCancel: _ctx.onCancel
|
|
215
|
+
}, {
|
|
216
|
+
footer: withCtx(() => [
|
|
217
|
+
createVNode(_component_a_button, { onClick: _ctx.onCancel }, {
|
|
218
|
+
default: withCtx(() => [
|
|
219
|
+
_hoisted_4
|
|
220
|
+
]),
|
|
221
|
+
_: 1
|
|
222
|
+
}, 8, ["onClick"]),
|
|
223
|
+
_ctx.aiTestMode ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
224
|
+
createVNode(_component_a_button, { onClick: _ctx.onGenEnhanceJavaData }, {
|
|
225
|
+
default: withCtx(() => [
|
|
226
|
+
_hoisted_6
|
|
227
|
+
]),
|
|
228
|
+
_: 1
|
|
229
|
+
}, 8, ["onClick"])
|
|
230
|
+
])) : createCommentVNode("", true)
|
|
231
|
+
]),
|
|
232
|
+
default: withCtx(() => [
|
|
233
|
+
createVNode(_component_BasicTable, {
|
|
234
|
+
onRegister: _ctx.registerTable,
|
|
235
|
+
rowSelection: _ctx.rowSelection
|
|
236
|
+
}, {
|
|
237
|
+
tableTitle: withCtx(() => [
|
|
238
|
+
createVNode(_component_a_button, {
|
|
239
|
+
onClick: _ctx.onAdd,
|
|
240
|
+
type: "primary",
|
|
241
|
+
preIcon: "ant-design:plus"
|
|
242
|
+
}, {
|
|
243
|
+
default: withCtx(() => [
|
|
244
|
+
_hoisted_1
|
|
245
|
+
]),
|
|
246
|
+
_: 1
|
|
247
|
+
}, 8, ["onClick"]),
|
|
248
|
+
_ctx.selectedRowKeys.length > 0 ? (openBlock(), createBlock(_component_a_dropdown, { key: 0 }, {
|
|
249
|
+
overlay: withCtx(() => [
|
|
250
|
+
createVNode(_component_a_menu, null, {
|
|
251
|
+
default: withCtx(() => [
|
|
252
|
+
createVNode(_component_a_menu_item, {
|
|
253
|
+
key: "1",
|
|
254
|
+
onClick: _ctx.onBatchDelete
|
|
255
|
+
}, {
|
|
256
|
+
default: withCtx(() => [
|
|
257
|
+
createVNode(_component_a_icon, { type: "delete" }),
|
|
258
|
+
_hoisted_2
|
|
259
|
+
]),
|
|
260
|
+
_: 1
|
|
261
|
+
}, 8, ["onClick"])
|
|
262
|
+
]),
|
|
263
|
+
_: 1
|
|
264
|
+
})
|
|
265
|
+
]),
|
|
266
|
+
default: withCtx(() => [
|
|
267
|
+
createVNode(_component_a_button, { style: { "margin-left": "8px" } }, {
|
|
268
|
+
default: withCtx(() => [
|
|
269
|
+
_hoisted_3,
|
|
270
|
+
createVNode(_component_a_icon, { type: "down" })
|
|
271
|
+
]),
|
|
272
|
+
_: 1
|
|
273
|
+
})
|
|
274
|
+
]),
|
|
275
|
+
_: 1
|
|
276
|
+
})) : createCommentVNode("", true)
|
|
277
|
+
]),
|
|
278
|
+
action: withCtx(({ record }) => [
|
|
279
|
+
createVNode(_component_TableAction, {
|
|
280
|
+
actions: _ctx.getTableAction(record),
|
|
281
|
+
dropDownActions: _ctx.getDropDownAction(record)
|
|
282
|
+
}, null, 8, ["actions", "dropDownActions"])
|
|
283
|
+
]),
|
|
284
|
+
_: 1
|
|
285
|
+
}, 8, ["onRegister", "rowSelection"]),
|
|
286
|
+
createVNode(_component_BasicModal, normalizeProps(guardReactiveProps(_ctx.formModalProps)), {
|
|
287
|
+
default: withCtx(() => [
|
|
288
|
+
createVNode(_component_a_spin, {
|
|
289
|
+
spinning: _ctx.formModalProps.confirmLoading
|
|
290
|
+
}, {
|
|
291
|
+
default: withCtx(() => [
|
|
292
|
+
createVNode(_component_BasicForm, { onRegister: _ctx.registerForm }, null, 8, ["onRegister"])
|
|
293
|
+
]),
|
|
294
|
+
_: 1
|
|
295
|
+
}, 8, ["spinning"])
|
|
296
|
+
]),
|
|
297
|
+
_: 1
|
|
298
|
+
}, 16)
|
|
299
|
+
]),
|
|
300
|
+
_: 1
|
|
301
|
+
}, 8, ["onRegister", "onCancel"]);
|
|
302
|
+
}
|
|
303
|
+
var EnhanceJavaModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
304
|
+
export { EnhanceJavaModal as default };
|