@jeecg/online 3.5.3-beta3 → 3.6.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/AuthButtonConfig-b6a674fa.mjs +125 -0
- package/AuthButtonTree-09e57bc4.mjs +156 -0
- package/AuthDataConfig-6e7e61ec.mjs +212 -0
- package/AuthDataTree-e83286c5.mjs +139 -0
- package/AuthFieldConfig-f1ec2708.mjs +139 -0
- package/AuthFieldTree-bb72e21f.mjs +232 -0
- package/AuthManagerDrawer-28a2d108.mjs +114 -0
- package/AuthSetterModal-2990d553.mjs +261 -0
- package/CgformCopyList-36a4cbf0.mjs +246 -0
- package/CgformModal-7399a5ac.mjs +611 -0
- package/CgreportModal-2eb9c9e1.mjs +13 -0
- package/CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs +566 -0
- package/CheckDictTable-3a8a54b3.mjs +211 -0
- package/CodeFileListModal-72f0d3bb.mjs +158 -0
- package/CodeFileViewModal-9eb88c47.mjs +244 -0
- package/CodeGeneratorModal-a89958f5.mjs +233 -0
- package/CustomButtonList-c44aec5a.mjs +363 -0
- package/DBAttributeTable-7d285e8d.mjs +473 -0
- package/DbToOnlineModal-d23cbeb1.mjs +160 -0
- package/DetailForm-2901d215.mjs +461 -0
- package/EnhanceJavaModal-153899a9.mjs +264 -0
- package/EnhanceJsHistory-7f5db3b1.mjs +184 -0
- package/EnhanceJsModal-c2fb75b8.mjs +311 -0
- package/EnhanceSqlModal-965e9b0a.mjs +268 -0
- package/ExtendConfigModal-8f08466f.mjs +111 -0
- package/FieldExtendJsonModal-adfcf5a7.mjs +219 -0
- package/FileSelectModal-432d4521.mjs +103 -0
- package/ForeignKeyTable-faab7ccf.mjs +69 -0
- package/IndexTable-0a2d3718.mjs +89 -0
- package/JModalTip-e1938b49.mjs +46 -0
- package/JOnlineSearchSelect-7e908492.mjs +95 -0
- package/LeftDepart-54f245b3.mjs +82 -0
- package/LeftRole-c138f892.mjs +86 -0
- package/LeftUser-9c812f8a.mjs +105 -0
- package/LinkTableConfigModal-c2c5c7e6.mjs +230 -0
- package/LinkTableFieldConfigModal-a3553b1f.mjs +176 -0
- package/LinkTableListPiece-7f793b08.mjs +34 -0
- package/ModalFormDemo-65685b0e.mjs +78 -0
- package/OnlCgformErpList-52c87ed3.mjs +449 -0
- package/OnlCgformErpSubTable-6e7fb17b.mjs +398 -0
- package/OnlCgformInnerSubTable-f0727b8f.mjs +248 -0
- package/OnlCgformInnerTableList-9f89c173.mjs +430 -0
- package/OnlCgformTabList-15516315.mjs +390 -0
- package/OnlineAutoList-63a0224f.mjs +474 -0
- package/OnlineAutoModal-ffe19c3f.mjs +206 -0
- package/OnlineAutoTreeList-317c7105.mjs +495 -0
- package/OnlineCustomModal-3939ce78.mjs +227 -0
- package/OnlineDetailModal-bfb1375f.mjs +177 -0
- package/OnlineForm-069f6092.mjs +749 -0
- package/OnlineFormDetail-ad5735fb.mjs +296 -0
- package/OnlineQueryForm-0771c80f.mjs +385 -0
- package/OnlineSearchFormItem-0db5834f.mjs +348 -0
- package/OnlineSelectCascade-a05c30f4.mjs +159 -0
- package/OnlineSubFormDetail-583d01eb.mjs +142 -0
- package/OnlineTabAutoModal-747e071d.mjs +253 -0
- package/OnlineTabDetailModal-887f0174.mjs +222 -0
- package/OnlineTabForm-b1dcd4b4.mjs +765 -0
- package/OnlineTabFormDetail-8e494a96.mjs +323 -0
- package/PageAttributeTable-5966b201.mjs +404 -0
- package/ProcessOnlineForm-4382bea7.mjs +177 -0
- package/QueryTable-6e8053ad.mjs +115 -0
- package/README.md +2 -1
- package/SuperQuery-78db6998.mjs +841 -0
- package/SuperQueryValComponent-471110b5.mjs +8 -0
- package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
- package/auth.api-d3a6c4b3.mjs +39 -0
- package/auth.data-8be5c9e3.mjs +141 -0
- package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
- package/constant-754f1a9d.mjs +9 -0
- package/enhance.api-138e6826.mjs +104 -0
- package/enhance.data-efc7e155.mjs +175 -0
- package/index-0a93652b.mjs +237 -0
- package/index-7e9a23f2.mjs +1494 -0
- package/index-b70302f2.mjs +56 -0
- package/main.index.js +7 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-0c603af1.mjs +424 -0
- package/useCustomHook-acb00837.mjs +53 -0
- package/useExtendComponent-aa1cdfc8.mjs +3917 -0
- package/useListButton-0f18bf6a.mjs +671 -0
- package/useOnlinePopEvent-687070b7.mjs +19 -0
- package/useOnlineTest-e4bd8be3.mjs +42 -0
- package/useSchemas-43429d80.mjs +685 -0
- package/useTableSync-774c3774.mjs +87 -0
- package/AuthButtonConfig.js +0 -147
- package/AuthButtonTree.js +0 -183
- package/AuthDataConfig.js +0 -246
- package/AuthDataTree.js +0 -160
- package/AuthFieldConfig.js +0 -170
- package/AuthFieldTree.js +0 -281
- package/AuthManagerDrawer.js +0 -125
- package/AuthSetterModal.js +0 -316
- package/CgformCopyList.js +0 -266
- package/CgformModal.js +0 -780
- package/CgreportModal.js +0 -667
- package/CheckDictTable.js +0 -242
- package/CodeFileListModal.js +0 -175
- package/CodeFileViewModal.js +0 -325
- package/CodeGeneratorModal.js +0 -297
- package/CustomButtonList.js +0 -410
- package/DBAttributeTable.js +0 -526
- package/DbToOnlineModal.js +0 -192
- package/DetailForm.js +0 -608
- package/EnhanceJavaModal.js +0 -298
- package/EnhanceJsHistory.js +0 -229
- package/EnhanceJsModal.js +0 -293
- package/EnhanceSqlModal.js +0 -299
- package/ExtendConfigModal.js +0 -151
- package/FieldExtendJsonModal.js +0 -283
- package/FileSelectModal.js +0 -102
- package/ForeignKeyTable.js +0 -79
- package/IndexTable.js +0 -97
- package/JModalTip.js +0 -54
- package/JOnlineSearchSelect.js +0 -115
- package/LICENSE +0 -9
- package/LeftDepart.js +0 -96
- package/LeftRole.js +0 -98
- package/LeftUser.js +0 -117
- package/LinkTableConfigModal.js +0 -289
- package/LinkTableFieldConfigModal.js +0 -218
- package/LinkTableListPiece.js +0 -36
- package/ModalFormDemo.js +0 -85
- package/OnlineAutoList.js +0 -523
- package/OnlineAutoModal.js +0 -226
- package/OnlineAutoTreeList.js +0 -552
- package/OnlineCustomModal.js +0 -286
- package/OnlineDetailModal.js +0 -190
- package/OnlineForm.js +0 -1016
- package/OnlineFormDetail.js +0 -347
- package/OnlineQueryForm.js +0 -484
- package/OnlineSearchFormItem.js +0 -436
- package/OnlineSelectCascade.js +0 -228
- package/OnlineSubFormDetail.js +0 -166
- package/PageAttributeTable.js +0 -486
- package/ProcessOnlineForm.js +0 -208
- package/QueryTable.js +0 -129
- package/SuperQuery.js +0 -1020
- package/SuperQueryValComponent.js +0 -8
- package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -168
- package/_arrayPush.js +0 -278
- package/_baseClone.js +0 -471
- package/_baseSlice.js +0 -18
- package/_commonjsHelpers.js +0 -5
- package/_flatRest.js +0 -174
- package/auth.api.js +0 -43
- package/auth.data.js +0 -142
- package/clipboard.js +0 -565
- package/enhance.api.js +0 -129
- package/enhance.data.js +0 -196
- package/index.js +0 -87
- package/index2.js +0 -340
- package/index3.js +0 -264
- package/isArray.js +0 -47
- package/omit.js +0 -60
- package/pick.js +0 -68
- package/toString.js +0 -31
- package/useCgformList.js +0 -470
- package/useExtendComponent.js +0 -5205
- package/useListButton.js +0 -923
- package/useOnlineTest.js +0 -44
- package/useSchemas.js +0 -653
- package/useTableSync.js +0 -117
package/CheckDictTable.js
DELETED
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, normalizeClass, withDirectives, createElementVNode, vShow } from "vue";
|
|
21
|
-
import { JVxeTypes } from "/@/components/jeecg/JVxeTable/types";
|
|
22
|
-
import { u as useTableSync } from "./useTableSync.js";
|
|
23
|
-
import { useMessage } from "/@/hooks/web/useMessage";
|
|
24
|
-
import { useJPrompt } from "/@/components/jeecg/JPrompt";
|
|
25
|
-
import { useDesign } from "/@/hooks/web/useDesign";
|
|
26
|
-
import { _ as _export_sfc } from "./index.js";
|
|
27
|
-
import "./cgform.data.js";
|
|
28
|
-
import "/@/utils/dict";
|
|
29
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
30
|
-
import "/@/utils/uuid";
|
|
31
|
-
import "./pick.js";
|
|
32
|
-
import "./_flatRest.js";
|
|
33
|
-
import "./isArray.js";
|
|
34
|
-
import "./toString.js";
|
|
35
|
-
import "./_arrayPush.js";
|
|
36
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
37
|
-
import "vue-router";
|
|
38
|
-
var CheckDictTable_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
39
|
-
const _sfc_main = defineComponent({
|
|
40
|
-
name: "CheckDictTable",
|
|
41
|
-
components: {
|
|
42
|
-
VNodes: (_, { attrs }) => attrs.vnodes
|
|
43
|
-
},
|
|
44
|
-
setup() {
|
|
45
|
-
const { prefixCls } = useDesign("cgform-check-dict-table");
|
|
46
|
-
const { createMessage: $message } = useMessage();
|
|
47
|
-
const columns = ref([
|
|
48
|
-
{ title: "\u5B57\u6BB5\u540D\u79F0", key: "dbFieldName", width: 100 },
|
|
49
|
-
{ title: "\u5B57\u6BB5\u5907\u6CE8", key: "dbFieldTxt", width: 100 },
|
|
50
|
-
{
|
|
51
|
-
title: "\u5B57\u6BB5Href",
|
|
52
|
-
key: "fieldHref",
|
|
53
|
-
width: 130,
|
|
54
|
-
type: JVxeTypes.input,
|
|
55
|
-
defaultValue: ""
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
title: "\u9A8C\u8BC1\u89C4\u5219",
|
|
59
|
-
key: "fieldValidType",
|
|
60
|
-
width: 170,
|
|
61
|
-
type: JVxeTypes.slot,
|
|
62
|
-
slotName: "fieldValidType",
|
|
63
|
-
allowInput: true,
|
|
64
|
-
defaultValue: "",
|
|
65
|
-
placeholder: "\u7A7A"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
title: "\u6821\u9A8C\u5FC5\u586B",
|
|
69
|
-
key: "fieldMustInput",
|
|
70
|
-
width: 80,
|
|
71
|
-
type: JVxeTypes.checkbox,
|
|
72
|
-
align: "center",
|
|
73
|
-
customValue: ["1", "0"],
|
|
74
|
-
defaultChecked: false
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
title: "\u5B57\u5178Table",
|
|
78
|
-
key: "dictTable",
|
|
79
|
-
width: 280,
|
|
80
|
-
type: JVxeTypes.textarea,
|
|
81
|
-
defaultValue: ""
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
title: "\u5B57\u5178Code",
|
|
85
|
-
key: "dictField",
|
|
86
|
-
width: 280,
|
|
87
|
-
type: JVxeTypes.input,
|
|
88
|
-
defaultValue: ""
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
title: "\u5B57\u5178Text",
|
|
92
|
-
key: "dictText",
|
|
93
|
-
width: 280,
|
|
94
|
-
type: JVxeTypes.input,
|
|
95
|
-
defaultValue: ""
|
|
96
|
-
}
|
|
97
|
-
]);
|
|
98
|
-
const setup = useTableSync(columns);
|
|
99
|
-
const validTypeOptions = ref([
|
|
100
|
-
{ label: "\u7A7A", value: "" },
|
|
101
|
-
{ label: "\u552F\u4E00\u6821\u9A8C", value: "only" },
|
|
102
|
-
{ label: "6\u523016\u4F4D\u6570\u5B57", value: "n6-16" },
|
|
103
|
-
{ label: "6\u523018\u4F4D\u5B57\u6BCD", value: "s6-18" },
|
|
104
|
-
{ label: "6\u523016\u4F4D\u4EFB\u610F\u5B57\u7B26", value: "*6-16" },
|
|
105
|
-
{ label: "\u7F51\u5740", value: "url" },
|
|
106
|
-
{ label: "\u7535\u5B50\u90AE\u4EF6", value: "e" },
|
|
107
|
-
{ label: "\u624B\u673A\u53F7\u7801", value: "m" },
|
|
108
|
-
{ label: "\u90AE\u653F\u7F16\u7801", value: "p" },
|
|
109
|
-
{ label: "\u5B57\u6BCD", value: "s" },
|
|
110
|
-
{ label: "\u6570\u5B57", value: "n" },
|
|
111
|
-
{ label: "\u6574\u6570", value: "z" },
|
|
112
|
-
{ label: "\u975E\u7A7A", value: "*" },
|
|
113
|
-
{ label: "\u91D1\u989D", value: "money" }
|
|
114
|
-
]);
|
|
115
|
-
const validTypeValues = computed(() => {
|
|
116
|
-
return validTypeOptions.value.map((opt) => opt.value);
|
|
117
|
-
});
|
|
118
|
-
const { createJPrompt } = useJPrompt();
|
|
119
|
-
function isCustomRegexp(value) {
|
|
120
|
-
return value != null && !validTypeValues.value.includes(value);
|
|
121
|
-
}
|
|
122
|
-
function onAddCustomRegexp(props) {
|
|
123
|
-
createJPrompt({
|
|
124
|
-
title: "\u81EA\u5B9A\u4E49\u6B63\u5219\u8868\u8FBE\u5F0F",
|
|
125
|
-
placeholder: "\u8BF7\u8F93\u5165\u6B63\u5219\u8868\u8FBE\u5F0F",
|
|
126
|
-
rules: [{ required: true, message: "\u6B63\u5219\u8868\u8FBE\u5F0F\u4E0D\u80FD\u4E3A\u7A7A\uFF01" }, { validator: validatorCustomRegexp }],
|
|
127
|
-
onOk: (value) => {
|
|
128
|
-
props.triggerChange(value);
|
|
129
|
-
$message.success("\u6DFB\u52A0\u6210\u529F");
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
function onChangeCustomRegexp(props) {
|
|
134
|
-
createJPrompt({
|
|
135
|
-
title: "\u4FEE\u6539\u81EA\u5B9A\u4E49\u6B63\u5219\u8868\u8FBE\u5F0F",
|
|
136
|
-
defaultValue: props.value,
|
|
137
|
-
placeholder: "\u8BF7\u8F93\u5165\u6B63\u5219\u8868\u8FBE\u5F0F",
|
|
138
|
-
rules: [{ required: true, message: "\u6B63\u5219\u8868\u8FBE\u5F0F\u4E0D\u80FD\u4E3A\u7A7A\uFF01" }, { validator: validatorCustomRegexp }],
|
|
139
|
-
onOk: (value) => {
|
|
140
|
-
props.triggerChange(value);
|
|
141
|
-
if (value !== props.value) {
|
|
142
|
-
$message.success("\u4FEE\u6539\u6210\u529F");
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
function validatorCustomRegexp(_, value) {
|
|
148
|
-
if (isCustomRegexp(value)) {
|
|
149
|
-
return Promise.resolve();
|
|
150
|
-
} else {
|
|
151
|
-
return Promise.reject("\u5F53\u524D\u6821\u9A8C\u5DF2\u5B58\u5728");
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
return __spreadProps(__spreadValues({}, setup), {
|
|
155
|
-
prefixCls,
|
|
156
|
-
columns,
|
|
157
|
-
isCustomRegexp,
|
|
158
|
-
validTypeOptions,
|
|
159
|
-
validTypeValues,
|
|
160
|
-
onAddCustomRegexp,
|
|
161
|
-
onChangeCustomRegexp
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
const _hoisted_1 = {
|
|
166
|
-
class: "custom-option-list rc-virtual-list-holder-inner",
|
|
167
|
-
style: { "border-top": "1px solid #dfdfdf" }
|
|
168
|
-
};
|
|
169
|
-
const _hoisted_2 = ["onClick"];
|
|
170
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
171
|
-
const _component_VNodes = resolveComponent("VNodes");
|
|
172
|
-
const _component_a_select = resolveComponent("a-select");
|
|
173
|
-
const _component_a_col = resolveComponent("a-col");
|
|
174
|
-
const _component_a_button = resolveComponent("a-button");
|
|
175
|
-
const _component_a_row = resolveComponent("a-row");
|
|
176
|
-
const _component_JVxeTable = resolveComponent("JVxeTable");
|
|
177
|
-
return openBlock(), createBlock(_component_JVxeTable, mergeProps({
|
|
178
|
-
ref: "tableRef",
|
|
179
|
-
rowNumber: "",
|
|
180
|
-
keyboardEdit: "",
|
|
181
|
-
class: [_ctx.prefixCls],
|
|
182
|
-
maxHeight: _ctx.tableHeight.noToolbar,
|
|
183
|
-
loading: _ctx.loading,
|
|
184
|
-
columns: _ctx.columns,
|
|
185
|
-
dataSource: _ctx.dataSource,
|
|
186
|
-
disabledRows: { dbFieldName: ["id", "has_child"] }
|
|
187
|
-
}, _ctx.tableProps), {
|
|
188
|
-
fieldValidType: withCtx((props) => [
|
|
189
|
-
createVNode(_component_a_row, {
|
|
190
|
-
type: "flex",
|
|
191
|
-
class: normalizeClass(["row-valid-type", { full: !_ctx.isCustomRegexp(props.value) }])
|
|
192
|
-
}, {
|
|
193
|
-
default: withCtx(() => [
|
|
194
|
-
createVNode(_component_a_col, {
|
|
195
|
-
class: normalizeClass(["left"])
|
|
196
|
-
}, {
|
|
197
|
-
default: withCtx(() => [
|
|
198
|
-
createVNode(_component_a_select, {
|
|
199
|
-
value: props.value,
|
|
200
|
-
options: _ctx.validTypeOptions,
|
|
201
|
-
placeholder: "\u7A7A",
|
|
202
|
-
style: { "width": "100%" },
|
|
203
|
-
onChange: props.triggerChange
|
|
204
|
-
}, {
|
|
205
|
-
dropdownRender: withCtx(({ menuNode }) => [
|
|
206
|
-
createVNode(_component_VNodes, { vnodes: menuNode }, null, 8, ["vnodes"]),
|
|
207
|
-
withDirectives(createElementVNode("div", _hoisted_1, [
|
|
208
|
-
createElementVNode("div", {
|
|
209
|
-
class: "ant-select-item ant-select-item-option",
|
|
210
|
-
title: "\u4F7F\u7528\u81EA\u5B9A\u4E49\u6B63\u5219\u8868\u8FBE\u5F0F\u4F5C\u4E3A\u6821\u9A8C\u89C4\u5219",
|
|
211
|
-
onClick: ($event) => _ctx.onAddCustomRegexp(props)
|
|
212
|
-
}, " \u6B63\u5219\u8868\u8FBE\u5F0F ", 8, _hoisted_2)
|
|
213
|
-
], 512), [
|
|
214
|
-
[vShow, !_ctx.isCustomRegexp(props.value)]
|
|
215
|
-
])
|
|
216
|
-
]),
|
|
217
|
-
_: 2
|
|
218
|
-
}, 1032, ["value", "options", "onChange"])
|
|
219
|
-
]),
|
|
220
|
-
_: 2
|
|
221
|
-
}, 1024),
|
|
222
|
-
createVNode(_component_a_col, {
|
|
223
|
-
class: "right",
|
|
224
|
-
title: "\u4FEE\u6539\u81EA\u5B9A\u4E49\u6B63\u5219\u8868\u8FBE\u5F0F"
|
|
225
|
-
}, {
|
|
226
|
-
default: withCtx(() => [
|
|
227
|
-
createVNode(_component_a_button, {
|
|
228
|
-
preIcon: "ant-design:edit",
|
|
229
|
-
onClick: () => _ctx.onChangeCustomRegexp(props)
|
|
230
|
-
}, null, 8, ["onClick"])
|
|
231
|
-
]),
|
|
232
|
-
_: 2
|
|
233
|
-
}, 1024)
|
|
234
|
-
]),
|
|
235
|
-
_: 2
|
|
236
|
-
}, 1032, ["class"])
|
|
237
|
-
]),
|
|
238
|
-
_: 1
|
|
239
|
-
}, 16, ["class", "maxHeight", "loading", "columns", "dataSource"]);
|
|
240
|
-
}
|
|
241
|
-
var CheckDictTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-68f6d466"]]);
|
|
242
|
-
export { CheckDictTable as default };
|
package/CodeFileListModal.js
DELETED
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
var __async = (__this, __arguments, generator) => {
|
|
2
|
-
return new Promise((resolve, reject) => {
|
|
3
|
-
var fulfilled = (value) => {
|
|
4
|
-
try {
|
|
5
|
-
step(generator.next(value));
|
|
6
|
-
} catch (e) {
|
|
7
|
-
reject(e);
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
var rejected = (value) => {
|
|
11
|
-
try {
|
|
12
|
-
step(generator.throw(value));
|
|
13
|
-
} catch (e) {
|
|
14
|
-
reject(e);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
18
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
import { ref, reactive, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createTextVNode, createElementVNode, normalizeStyle, renderList, toDisplayString } from "vue";
|
|
22
|
-
import { defHttp } from "/@/utils/http/axios";
|
|
23
|
-
import "/@/components/Form";
|
|
24
|
-
import { BasicModal, useModalInner, useModal } from "/@/components/Modal";
|
|
25
|
-
import { InfoCircleTwoTone } from "@ant-design/icons-vue";
|
|
26
|
-
import CodeFileViewModal from "./CodeFileViewModal.js";
|
|
27
|
-
import { useMessage } from "/@/hooks/web/useMessage";
|
|
28
|
-
import { downloadByData } from "/@/utils/file/download";
|
|
29
|
-
import { _ as _export_sfc } from "./index.js";
|
|
30
|
-
import "ant-design-vue";
|
|
31
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
32
|
-
import "vue-router";
|
|
33
|
-
const _sfc_main = {
|
|
34
|
-
name: "CodeFileListModal",
|
|
35
|
-
components: {
|
|
36
|
-
BasicModal,
|
|
37
|
-
InfoCircleTwoTone,
|
|
38
|
-
CodeFileViewModal
|
|
39
|
-
},
|
|
40
|
-
emits: ["register"],
|
|
41
|
-
setup() {
|
|
42
|
-
const { createMessage: $message } = useMessage();
|
|
43
|
-
const codeList = ref([]);
|
|
44
|
-
const height = window.innerHeight - 150;
|
|
45
|
-
const divStyle = reactive({
|
|
46
|
-
overflowY: "auto",
|
|
47
|
-
maxHeight: height + "px"
|
|
48
|
-
});
|
|
49
|
-
const loading = ref(false);
|
|
50
|
-
const tableName = ref("");
|
|
51
|
-
const pathKey = ref("");
|
|
52
|
-
const [registerModal, { closeModal }] = useModalInner((data) => __async(this, null, function* () {
|
|
53
|
-
codeList.value = data.codeList;
|
|
54
|
-
tableName.value = data.tableName;
|
|
55
|
-
pathKey.value = data.pathKey;
|
|
56
|
-
}));
|
|
57
|
-
function handleClose() {
|
|
58
|
-
closeModal();
|
|
59
|
-
}
|
|
60
|
-
function onDownloadGenerateCode() {
|
|
61
|
-
let codeFileList = codeList.value;
|
|
62
|
-
if (!codeFileList || codeFileList.length == 0) {
|
|
63
|
-
$message.warning("\u65E0\u4EE3\u7801\uFF01");
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
let temp = codeFileList.join(",");
|
|
67
|
-
return defHttp.post(
|
|
68
|
-
{
|
|
69
|
-
url: "/online/cgform/api/downGenerateCode",
|
|
70
|
-
params: {
|
|
71
|
-
fileList: encodeURI(temp),
|
|
72
|
-
pathKey: pathKey.value
|
|
73
|
-
},
|
|
74
|
-
responseType: "blob"
|
|
75
|
-
},
|
|
76
|
-
{ isTransformResponse: false }
|
|
77
|
-
).then((data) => {
|
|
78
|
-
if (!data || data.size == 0) {
|
|
79
|
-
$message.warning("\u5BFC\u51FA\u4EE3\u7801\u5931\u8D25\uFF01");
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
let fileName = "\u5BFC\u5230\u751F\u6210\u4EE3\u7801_" + tableName.value + "_" + new Date().getTime() + ".zip";
|
|
83
|
-
downloadByData(data, fileName, "application/zip");
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
const [registerCodeViewModal, { openModal }] = useModal();
|
|
87
|
-
function handleView() {
|
|
88
|
-
let temp = codeList.value;
|
|
89
|
-
openModal(true, {
|
|
90
|
-
codeList: temp,
|
|
91
|
-
pathKey: pathKey.value
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
return {
|
|
95
|
-
registerModal,
|
|
96
|
-
registerCodeViewModal,
|
|
97
|
-
divStyle,
|
|
98
|
-
codeList,
|
|
99
|
-
onDownloadGenerateCode,
|
|
100
|
-
handleClose,
|
|
101
|
-
handleView,
|
|
102
|
-
loading
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
const _hoisted_1 = /* @__PURE__ */ createElementVNode("br", null, null, -1);
|
|
107
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
108
|
-
const _component_info_circle_two_tone = resolveComponent("info-circle-two-tone");
|
|
109
|
-
const _component_a_button = resolveComponent("a-button");
|
|
110
|
-
const _component_BasicModal = resolveComponent("BasicModal");
|
|
111
|
-
const _component_code_file_view_modal = resolveComponent("code-file-view-modal");
|
|
112
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
113
|
-
createVNode(_component_BasicModal, {
|
|
114
|
-
onRegister: $setup.registerModal,
|
|
115
|
-
width: 1200,
|
|
116
|
-
defaultFullscreen: false,
|
|
117
|
-
canFullscreen: false
|
|
118
|
-
}, {
|
|
119
|
-
title: withCtx(() => [
|
|
120
|
-
createVNode(_component_info_circle_two_tone),
|
|
121
|
-
createTextVNode(" \u4EE3\u7801\u751F\u6210\u7ED3\u679C ")
|
|
122
|
-
]),
|
|
123
|
-
footer: withCtx(() => [
|
|
124
|
-
createVNode(_component_a_button, { onClick: $setup.handleClose }, {
|
|
125
|
-
default: withCtx(() => [
|
|
126
|
-
createTextVNode("\u5173\u95ED")
|
|
127
|
-
]),
|
|
128
|
-
_: 1
|
|
129
|
-
}, 8, ["onClick"]),
|
|
130
|
-
createVNode(_component_a_button, {
|
|
131
|
-
type: "primary",
|
|
132
|
-
ghost: "",
|
|
133
|
-
onClick: $setup.handleView
|
|
134
|
-
}, {
|
|
135
|
-
default: withCtx(() => [
|
|
136
|
-
createTextVNode("\u5728\u7EBF\u9884\u89C8")
|
|
137
|
-
]),
|
|
138
|
-
_: 1
|
|
139
|
-
}, 8, ["onClick"]),
|
|
140
|
-
createVNode(_component_a_button, {
|
|
141
|
-
type: "primary",
|
|
142
|
-
onClick: $setup.onDownloadGenerateCode,
|
|
143
|
-
loading: $setup.loading
|
|
144
|
-
}, {
|
|
145
|
-
default: withCtx(() => [
|
|
146
|
-
createTextVNode("\u4E0B\u8F7D\u5230\u672C\u5730")
|
|
147
|
-
]),
|
|
148
|
-
_: 1
|
|
149
|
-
}, 8, ["onClick", "loading"])
|
|
150
|
-
]),
|
|
151
|
-
default: withCtx(() => [
|
|
152
|
-
createElementVNode("div", {
|
|
153
|
-
style: normalizeStyle($setup.divStyle)
|
|
154
|
-
}, [
|
|
155
|
-
createElementVNode("p", null, [
|
|
156
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList($setup.codeList, (item) => {
|
|
157
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
158
|
-
createTextVNode(toDisplayString(item), 1),
|
|
159
|
-
_hoisted_1
|
|
160
|
-
], 64);
|
|
161
|
-
}), 256))
|
|
162
|
-
])
|
|
163
|
-
], 4)
|
|
164
|
-
]),
|
|
165
|
-
_: 1
|
|
166
|
-
}, 8, ["onRegister"]),
|
|
167
|
-
createVNode(_component_code_file_view_modal, {
|
|
168
|
-
onRegister: $setup.registerCodeViewModal,
|
|
169
|
-
onDownload: $setup.onDownloadGenerateCode,
|
|
170
|
-
onClose: $setup.handleClose
|
|
171
|
-
}, null, 8, ["onRegister", "onDownload", "onClose"])
|
|
172
|
-
], 64);
|
|
173
|
-
}
|
|
174
|
-
var CodeFileListModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
175
|
-
export { CodeFileListModal as default };
|