@jeecg/online 1.0.1 → 3.4.3-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.js +14 -7
- package/AuthButtonTree.js +3 -5
- package/AuthDataConfig.js +9 -6
- package/AuthDataTree.js +3 -5
- package/AuthFieldConfig.js +15 -12
- package/AuthFieldTree.js +24 -18
- package/AuthManagerDrawer.js +1 -1
- package/AuthSetterModal.js +1 -0
- package/CgformCopyList.js +34 -22
- package/CgformModal.js +57 -50
- package/CgreportModal.js +32 -39
- package/CheckDictTable.js +144 -24
- package/CodeFileListModal.js +175 -0
- package/CodeFileViewModal.js +325 -0
- package/CodeGeneratorModal.js +41 -38
- package/CustomButtonList.js +19 -22
- package/DBAttributeTable.js +248 -12
- package/DbToOnlineModal.js +27 -25
- package/DetailForm.js +605 -0
- package/EnhanceJavaModal.js +11 -17
- package/EnhanceJsHistory.js +6 -8
- package/EnhanceJsModal.js +9 -16
- package/EnhanceSqlModal.js +11 -17
- package/ExtendConfigModal.js +24 -15
- package/ForeignKeyTable.js +4 -3
- package/FormSchemaFactory.js +163 -30
- package/IndexTable.js +6 -5
- package/JModalTip.js +54 -0
- package/JOnlineSearchSelect.js +18 -10
- package/LeftDepart.js +1 -1
- package/LeftRole.js +7 -4
- package/LeftUser.js +7 -4
- package/LinkTableConfigModal.js +289 -0
- package/LinkTableFieldConfigModal.js +218 -0
- package/LinkTableListPiece.js +36 -0
- package/ModalFormDemo.js +3 -2
- package/OnlineAutoList.js +154 -55
- package/OnlineAutoModal.js +88 -131
- package/OnlineAutoTreeList.js +93 -53
- package/OnlineCustomModal.js +30 -14
- package/OnlineDetailModal.js +184 -0
- package/OnlineForm.js +259 -141
- package/OnlineFormDetail.js +326 -0
- package/OnlineQueryForm.js +72 -40
- package/OnlineSearchFormItem.js +26 -18
- package/OnlineSelectCascade.js +67 -53
- package/OnlineSubFormDetail.js +167 -0
- package/OnlineSuperQuery.js +69 -74
- package/OnlineSuperQueryValComponent.js +1 -0
- package/OnlineSuperQueryValComponent.vue_vue_type_script_lang.js +1 -17
- package/PageAttributeTable.js +233 -30
- package/ProcessOnlineForm.js +41 -16
- package/QueryTable.js +4 -3
- package/README.md +3 -8
- package/_arrayPush.js +5 -3
- package/{cloneDeep.js → _baseClone.js} +5 -9
- package/_baseSlice.js +18 -0
- package/_commonjsHelpers.js +5 -0
- package/_flatRest.js +174 -0
- package/auth.data.js +1 -3
- package/cgform.data.js +18 -9
- package/enhance.api.js +27 -18
- package/index.js +16 -6
- package/index2.js +48 -45
- package/index3.js +29 -26
- package/isArray.js +1 -1
- package/omit.js +60 -0
- package/package.json +1 -1
- package/pick.js +3 -173
- package/style.css +1 -1
- package/toString.js +2 -2
- package/useAutoForm.js +3437 -3791
- package/useCgformList.js +44 -31
- package/{useTableColumns.js → useListButton.js} +212 -407
- package/useOnlineTest.js +5 -26827
- package/useSchemas.js +364 -230
- package/useTableSync.js +19 -7
- package/ChartAutoRender.js +0 -69
- package/ChartDoubleRender.js +0 -154
- package/ChartSingleRender.js +0 -132
- package/ChartTabsRender.js +0 -218
- package/ErrorTip.js +0 -21
- package/FieldTable.js +0 -185
- package/GraphreportAutoChart.js +0 -352
- package/GraphreportList.js +0 -239
- package/GraphreportModal.js +0 -559
- package/OnlineSubForm.js +0 -200
- package/ParamsTable.js +0 -71
- package/graphreport.api.js +0 -23
- package/useChartRender.js +0 -405
- package/useMessageOnline.js +0 -71
package/OnlineAutoModal.js
CHANGED
|
@@ -18,32 +18,52 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18
18
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
import { defineComponent, ref,
|
|
22
|
-
import { BasicModal
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
25
|
-
import
|
|
21
|
+
import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
22
|
+
import { BasicModal } from "/@/components/Modal";
|
|
23
|
+
import OnlineForm from "./OnlineForm.js";
|
|
24
|
+
import { k as useAutoModal } from "./useAutoForm.js";
|
|
25
|
+
import CommentPanel from "/@/components/jeecg/comment/CommentPanel.vue";
|
|
26
26
|
import { _ as _export_sfc } from "./index.js";
|
|
27
|
+
import "/@/hooks/web/useMessage";
|
|
28
|
+
import "/@/components/Form/index";
|
|
27
29
|
import "./FormSchemaFactory.js";
|
|
28
30
|
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
31
|
+
import "/@/utils/http/axios";
|
|
32
|
+
import "/@/utils";
|
|
33
|
+
import "/@/components/Loading";
|
|
34
|
+
import "/@/components/jeecg/JVxeTable/types";
|
|
35
|
+
import "/@/utils/auth";
|
|
36
|
+
import "@ant-design/icons-vue";
|
|
37
|
+
import "/@/hooks/core/useContext";
|
|
38
|
+
import "/@/utils/mitt";
|
|
39
|
+
import "./pick.js";
|
|
40
|
+
import "./_flatRest.js";
|
|
41
|
+
import "./isArray.js";
|
|
42
|
+
import "./toString.js";
|
|
43
|
+
import "./_arrayPush.js";
|
|
44
|
+
import "./omit.js";
|
|
45
|
+
import "./_baseClone.js";
|
|
46
|
+
import "./_baseSlice.js";
|
|
29
47
|
import "/@/views/system/user/user.api";
|
|
48
|
+
import "./_commonjsHelpers.js";
|
|
30
49
|
import "/@/store/modules/user";
|
|
31
|
-
import "/@/utils";
|
|
32
50
|
import "/@/utils/desform/customExpression";
|
|
33
51
|
import "/@/components/Form/src/componentMap";
|
|
34
52
|
import "./OnlineSelectCascade.js";
|
|
35
|
-
import "/@/hooks/web/useMessage";
|
|
36
53
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
37
54
|
import "vue-router";
|
|
38
|
-
import "/@/
|
|
39
|
-
import "/@/
|
|
40
|
-
import "
|
|
41
|
-
import "
|
|
42
|
-
import "
|
|
43
|
-
import "
|
|
44
|
-
import "
|
|
45
|
-
|
|
46
|
-
|
|
55
|
+
import "/@/store/modules/permission";
|
|
56
|
+
import "/@/utils/propTypes";
|
|
57
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
58
|
+
import "/@/utils/common/compUtils";
|
|
59
|
+
import "/@/components/Table";
|
|
60
|
+
import "/@/hooks/system/useListPage";
|
|
61
|
+
import "/@/components/Form/src/utils/Area";
|
|
62
|
+
import "/@/components/Preview/index";
|
|
63
|
+
import "./LinkTableListPiece.js";
|
|
64
|
+
import "./JModalTip.js";
|
|
65
|
+
import "ant-design-vue";
|
|
66
|
+
import "@vueuse/core";
|
|
47
67
|
const _sfc_main = defineComponent({
|
|
48
68
|
name: "OnlineModal",
|
|
49
69
|
props: {
|
|
@@ -54,46 +74,42 @@ const _sfc_main = defineComponent({
|
|
|
54
74
|
},
|
|
55
75
|
components: {
|
|
56
76
|
BasicModal,
|
|
57
|
-
OnlineForm
|
|
77
|
+
OnlineForm,
|
|
78
|
+
CommentPanel
|
|
58
79
|
},
|
|
59
|
-
emits: ["success", "register"],
|
|
80
|
+
emits: ["success", "register", "formConfig"],
|
|
60
81
|
setup(props, { emit }) {
|
|
61
82
|
console.log("\u8FDB\u5165\u8868\u5355\u5F39\u6846\u300B\u300B\u300B\u300Bmodal");
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
})
|
|
89
|
-
function
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
if (extConfig.modelFullscreen == 1) {
|
|
93
|
-
setModalProps({ defaultFullscreen: true });
|
|
94
|
-
} else {
|
|
95
|
-
setModalProps({ defaultFullscreen: false });
|
|
96
|
-
}
|
|
83
|
+
const commentPanelRef = ref();
|
|
84
|
+
function reloadComment() {
|
|
85
|
+
if (commentPanelRef.value)
|
|
86
|
+
commentPanelRef.value.reload();
|
|
87
|
+
}
|
|
88
|
+
const {
|
|
89
|
+
title,
|
|
90
|
+
modalWidth,
|
|
91
|
+
registerModal,
|
|
92
|
+
closeModal,
|
|
93
|
+
cgButtonList,
|
|
94
|
+
handleCgButtonClick,
|
|
95
|
+
disableSubmit,
|
|
96
|
+
handleSubmit,
|
|
97
|
+
submitLoading,
|
|
98
|
+
handleCancel,
|
|
99
|
+
handleFormConfig,
|
|
100
|
+
onlineFormCompRef,
|
|
101
|
+
formTemplate,
|
|
102
|
+
isTreeForm,
|
|
103
|
+
pidFieldName,
|
|
104
|
+
renderSuccess,
|
|
105
|
+
formRendered,
|
|
106
|
+
tableName,
|
|
107
|
+
formDataId,
|
|
108
|
+
enableComment
|
|
109
|
+
} = useAutoModal(false, { emit }, reloadComment);
|
|
110
|
+
function handleSuccess(formData) {
|
|
111
|
+
emit("success", formData);
|
|
112
|
+
closeModal();
|
|
97
113
|
}
|
|
98
114
|
watch(() => props.id, renderFormItems, { immediate: true });
|
|
99
115
|
function renderFormItems() {
|
|
@@ -103,83 +119,12 @@ const _sfc_main = defineComponent({
|
|
|
103
119
|
return;
|
|
104
120
|
}
|
|
105
121
|
console.log("\u91CD\u65B0\u6E32\u67D3\u8868\u5355\u300B\u300B\u300B\u300Bmodal");
|
|
106
|
-
|
|
107
|
-
let dataFormTemplate = result.head.formTemplate;
|
|
108
|
-
formTemplate.value = dataFormTemplate ? Number(dataFormTemplate) : 1;
|
|
109
|
-
cgButtonList.value = result.cgButtonList;
|
|
110
|
-
isTreeForm.value = result.head.isTree === "Y";
|
|
111
|
-
pidFieldName.value = result.head.treeParentIdField || "";
|
|
112
|
-
nextTick(() => __async(this, null, function* () {
|
|
113
|
-
let myForm = yield getRefPromise(onlineFormCompRef);
|
|
114
|
-
myForm.createRootProperties(result);
|
|
115
|
-
}));
|
|
122
|
+
yield handleFormConfig(props.id, {});
|
|
116
123
|
});
|
|
117
124
|
}
|
|
118
|
-
function loadFormItems() {
|
|
119
|
-
let url = `/online/cgform/api/getFormItem/${props.id}`;
|
|
120
|
-
return new Promise((resolve, reject) => {
|
|
121
|
-
defHttp.get({ url }, { isTransformResponse: false }).then((res) => {
|
|
122
|
-
console.log("\u8868\u5355\u7ED3\u679C\u300B\u300Bmodal:", res);
|
|
123
|
-
if (res.success) {
|
|
124
|
-
resolve(res.result);
|
|
125
|
-
} else {
|
|
126
|
-
reject(res.message);
|
|
127
|
-
}
|
|
128
|
-
}).catch(() => {
|
|
129
|
-
reject();
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
const modalWidth = computed(() => {
|
|
134
|
-
let diff = 200 * (formTemplate.value - 1);
|
|
135
|
-
let width = (!unref(single) ? one2ManyWidth : singleWidth) + diff;
|
|
136
|
-
width = calcModalMixWidth(width);
|
|
137
|
-
let minWidth = modalMinWidth.value;
|
|
138
|
-
console.log({ minWidth });
|
|
139
|
-
if (minWidth && width < minWidth) {
|
|
140
|
-
width = minWidth;
|
|
141
|
-
}
|
|
142
|
-
console.log({ width });
|
|
143
|
-
return width;
|
|
144
|
-
});
|
|
145
|
-
function calcModalMixWidth(width) {
|
|
146
|
-
let minWidth = extConfigJson.modalMinWidth;
|
|
147
|
-
if (minWidth != null && minWidth !== "") {
|
|
148
|
-
try {
|
|
149
|
-
minWidth = Number.parseInt(minWidth);
|
|
150
|
-
if (width < minWidth) {
|
|
151
|
-
return minWidth;
|
|
152
|
-
}
|
|
153
|
-
} catch (e) {
|
|
154
|
-
console.warn("error modalMinWidth value: ", minWidth);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
return width;
|
|
158
|
-
}
|
|
159
|
-
const isUpdate = ref(false);
|
|
160
|
-
const single = ref(true);
|
|
161
|
-
const extConfigJson = reactive({});
|
|
162
|
-
function handleCgButtonClick(optType, buttonCode) {
|
|
163
|
-
onlineFormCompRef.value.handleCgButtonClick(optType, buttonCode);
|
|
164
|
-
}
|
|
165
|
-
function handleSubmit() {
|
|
166
|
-
submitLoading.value = true;
|
|
167
|
-
setTimeout(() => {
|
|
168
|
-
submitLoading.value = false;
|
|
169
|
-
}, 1500);
|
|
170
|
-
onlineFormCompRef.value.handleSubmit();
|
|
171
|
-
}
|
|
172
|
-
function handleCancel() {
|
|
173
|
-
closeModal();
|
|
174
|
-
}
|
|
175
|
-
function handleSuccess(formData) {
|
|
176
|
-
emit("success", formData);
|
|
177
|
-
closeModal();
|
|
178
|
-
}
|
|
179
125
|
const that = {
|
|
180
126
|
title,
|
|
181
127
|
onlineFormCompRef,
|
|
182
|
-
formRendered,
|
|
183
128
|
renderSuccess,
|
|
184
129
|
registerModal,
|
|
185
130
|
handleSubmit,
|
|
@@ -192,21 +137,26 @@ const _sfc_main = defineComponent({
|
|
|
192
137
|
handleCgButtonClick,
|
|
193
138
|
isTreeForm,
|
|
194
139
|
pidFieldName,
|
|
195
|
-
submitLoading
|
|
140
|
+
submitLoading,
|
|
141
|
+
tableName,
|
|
142
|
+
formDataId,
|
|
143
|
+
enableComment,
|
|
144
|
+
commentPanelRef
|
|
196
145
|
};
|
|
197
146
|
return that;
|
|
198
147
|
}
|
|
199
148
|
});
|
|
200
|
-
const _hoisted_1 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
|
|
201
|
-
const _hoisted_2 = /* @__PURE__ */ createTextVNode("\u5173\u95ED");
|
|
202
149
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
203
150
|
const _component_a_button = resolveComponent("a-button");
|
|
204
151
|
const _component_online_form = resolveComponent("online-form");
|
|
152
|
+
const _component_comment_panel = resolveComponent("comment-panel");
|
|
205
153
|
const _component_BasicModal = resolveComponent("BasicModal");
|
|
206
154
|
return openBlock(), createBlock(_component_BasicModal, mergeProps({
|
|
207
155
|
title: _ctx.title,
|
|
156
|
+
enableComment: _ctx.enableComment,
|
|
208
157
|
width: _ctx.modalWidth
|
|
209
158
|
}, _ctx.$attrs, {
|
|
159
|
+
height: 600,
|
|
210
160
|
onRegister: _ctx.registerModal,
|
|
211
161
|
wrapClassName: "jeecg-online-modal",
|
|
212
162
|
onOk: _ctx.handleSubmit
|
|
@@ -232,7 +182,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
232
182
|
loading: _ctx.submitLoading
|
|
233
183
|
}, {
|
|
234
184
|
default: withCtx(() => [
|
|
235
|
-
|
|
185
|
+
createTextVNode("\u786E\u5B9A")
|
|
236
186
|
]),
|
|
237
187
|
_: 1
|
|
238
188
|
}, 8, ["onClick", "loading"])) : createCommentVNode("", true),
|
|
@@ -241,11 +191,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
241
191
|
onClick: _ctx.handleCancel
|
|
242
192
|
}, {
|
|
243
193
|
default: withCtx(() => [
|
|
244
|
-
|
|
194
|
+
createTextVNode("\u5173\u95ED")
|
|
245
195
|
]),
|
|
246
196
|
_: 1
|
|
247
197
|
}, 8, ["onClick"])
|
|
248
198
|
]),
|
|
199
|
+
comment: withCtx(() => [
|
|
200
|
+
createVNode(_component_comment_panel, {
|
|
201
|
+
ref: "commentPanelRef",
|
|
202
|
+
tableName: _ctx.tableName,
|
|
203
|
+
dataId: _ctx.formDataId
|
|
204
|
+
}, null, 8, ["tableName", "dataId"])
|
|
205
|
+
]),
|
|
249
206
|
default: withCtx(() => [
|
|
250
207
|
createVNode(_component_online_form, {
|
|
251
208
|
ref: "onlineFormCompRef",
|
|
@@ -259,7 +216,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
259
216
|
}, null, 8, ["id", "disabled", "form-template", "isTree", "pidField", "onRendered", "onSuccess"])
|
|
260
217
|
]),
|
|
261
218
|
_: 1
|
|
262
|
-
}, 16, ["title", "width", "onRegister", "onOk"]);
|
|
219
|
+
}, 16, ["title", "enableComment", "width", "onRegister", "onOk"]);
|
|
263
220
|
}
|
|
264
221
|
var OnlineAutoModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
265
222
|
export { OnlineAutoModal as default };
|
package/OnlineAutoTreeList.js
CHANGED
|
@@ -21,46 +21,69 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21
21
|
import { BasicTable, TableAction } from "/@/components/Table";
|
|
22
22
|
import { useMessage } from "/@/hooks/web/useMessage";
|
|
23
23
|
import OnlineAutoModal from "./OnlineAutoModal.js";
|
|
24
|
+
import OnlineDetailModal from "./OnlineDetailModal.js";
|
|
24
25
|
import OnlineCustomModal from "./OnlineCustomModal.js";
|
|
25
|
-
import { ref, watch, resolveComponent, openBlock, createElementBlock, createVNode, normalizeClass, withCtx,
|
|
26
|
+
import { ref, watch, resolveComponent, openBlock, createElementBlock, createVNode, createBlock, normalizeClass, withCtx, createTextVNode, createCommentVNode, Fragment, renderList, toDisplayString, withDirectives, vShow, createElementVNode, mergeProps, toHandlers, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
|
|
26
27
|
import JImportModal from "/@/components/Form/src/jeecg/components/JImportModal.vue";
|
|
27
|
-
import { u as useOnlineTableContext, a as useListButton
|
|
28
|
-
import {
|
|
28
|
+
import { u as useOnlineTableContext, a as useListButton } from "./useListButton.js";
|
|
29
|
+
import { c as useEnhance, j as useTableColumns, g as getRefPromise } from "./useAutoForm.js";
|
|
29
30
|
import { defHttp } from "/@/utils/http/axios";
|
|
30
31
|
import OnlineQueryForm from "./OnlineQueryForm.js";
|
|
31
32
|
import OnlineSuperQuery from "./OnlineSuperQuery.js";
|
|
32
33
|
import { _ as _export_sfc } from "./index.js";
|
|
33
34
|
import "/@/components/Modal";
|
|
34
|
-
import "./
|
|
35
|
+
import "./OnlineForm.js";
|
|
36
|
+
import "/@/components/Form/index";
|
|
35
37
|
import "./FormSchemaFactory.js";
|
|
36
38
|
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
39
|
+
import "/@/utils";
|
|
40
|
+
import "/@/components/Loading";
|
|
41
|
+
import "/@/components/jeecg/JVxeTable/types";
|
|
42
|
+
import "/@/utils/auth";
|
|
43
|
+
import "@ant-design/icons-vue";
|
|
44
|
+
import "/@/hooks/core/useContext";
|
|
45
|
+
import "/@/utils/mitt";
|
|
46
|
+
import "./pick.js";
|
|
47
|
+
import "./_flatRest.js";
|
|
48
|
+
import "./isArray.js";
|
|
49
|
+
import "./toString.js";
|
|
50
|
+
import "./_arrayPush.js";
|
|
51
|
+
import "./omit.js";
|
|
52
|
+
import "./_baseClone.js";
|
|
53
|
+
import "./_baseSlice.js";
|
|
37
54
|
import "/@/views/system/user/user.api";
|
|
55
|
+
import "./_commonjsHelpers.js";
|
|
38
56
|
import "/@/store/modules/user";
|
|
39
|
-
import "/@/utils";
|
|
40
57
|
import "/@/utils/desform/customExpression";
|
|
41
58
|
import "/@/components/Form/src/componentMap";
|
|
42
59
|
import "./OnlineSelectCascade.js";
|
|
43
60
|
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
44
61
|
import "vue-router";
|
|
45
|
-
import "/@/
|
|
46
|
-
import "/@/
|
|
47
|
-
import "
|
|
48
|
-
import "./pick.js";
|
|
49
|
-
import "./isArray.js";
|
|
50
|
-
import "./toString.js";
|
|
51
|
-
import "./_arrayPush.js";
|
|
62
|
+
import "/@/store/modules/permission";
|
|
63
|
+
import "/@/utils/propTypes";
|
|
64
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
52
65
|
import "/@/utils/common/compUtils";
|
|
66
|
+
import "/@/hooks/system/useListPage";
|
|
67
|
+
import "/@/components/Form/src/utils/Area";
|
|
68
|
+
import "/@/components/Preview/index";
|
|
69
|
+
import "./LinkTableListPiece.js";
|
|
70
|
+
import "./JModalTip.js";
|
|
71
|
+
import "ant-design-vue";
|
|
72
|
+
import "@vueuse/core";
|
|
73
|
+
import "/@/components/jeecg/comment/CommentPanel.vue";
|
|
74
|
+
import "./OnlineFormDetail.js";
|
|
75
|
+
import "./DetailForm.js";
|
|
76
|
+
import "/@/utils/dict";
|
|
77
|
+
import "/@/utils/dict/index";
|
|
78
|
+
import "/@/api/common/api";
|
|
79
|
+
import "./OnlineSubFormDetail.js";
|
|
80
|
+
import "/@/router";
|
|
53
81
|
import "/@/utils/cache";
|
|
54
82
|
import "/@/hooks/core/onMountedOrActivated";
|
|
55
|
-
import "ant-design-vue";
|
|
56
83
|
import "/@/hooks/system/useMethods";
|
|
57
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
58
|
-
import "/@/components/Form/src/utils/Area";
|
|
59
|
-
import "/@/components/Preview/index";
|
|
60
84
|
import "./OnlineSuperQueryValComponent.vue_vue_type_script_lang.js";
|
|
61
85
|
import "/@/components/Form/src/helper";
|
|
62
86
|
import "/@/utils/is";
|
|
63
|
-
import "@ant-design/icons-vue";
|
|
64
87
|
var OnlineAutoTreeList_vue_vue_type_style_index_0_lang = "";
|
|
65
88
|
const _sfc_main = {
|
|
66
89
|
name: "DefaultOnlineList",
|
|
@@ -71,7 +94,8 @@ const _sfc_main = {
|
|
|
71
94
|
JImportModal,
|
|
72
95
|
OnlineQueryForm,
|
|
73
96
|
OnlineSuperQuery,
|
|
74
|
-
OnlineCustomModal
|
|
97
|
+
OnlineCustomModal,
|
|
98
|
+
OnlineDetailModal
|
|
75
99
|
},
|
|
76
100
|
setup() {
|
|
77
101
|
const { createMessage: $message } = useMessage();
|
|
@@ -94,7 +118,10 @@ const _sfc_main = {
|
|
|
94
118
|
registerCustomModal,
|
|
95
119
|
getTreeDataByResult,
|
|
96
120
|
expandedRowKeys,
|
|
97
|
-
handleExpandedRowsChange
|
|
121
|
+
handleExpandedRowsChange,
|
|
122
|
+
tableReloading,
|
|
123
|
+
onlineExtConfigJson,
|
|
124
|
+
handleFormConfig
|
|
98
125
|
} = useOnlineTableContext();
|
|
99
126
|
if (!ID.value) {
|
|
100
127
|
$message.warning("\u5730\u5740\u9519\u8BEF, \u914D\u7F6EID\u4E0D\u5B58\u5728!");
|
|
@@ -121,8 +148,9 @@ const _sfc_main = {
|
|
|
121
148
|
getDropDownActions,
|
|
122
149
|
getActions,
|
|
123
150
|
initButtonList,
|
|
124
|
-
initButtonSwitch
|
|
125
|
-
|
|
151
|
+
initButtonSwitch,
|
|
152
|
+
registerDetailModal
|
|
153
|
+
} = useListButton(onlineTableContext, onlineExtConfigJson);
|
|
126
154
|
const {
|
|
127
155
|
columns,
|
|
128
156
|
actionColumn,
|
|
@@ -137,10 +165,14 @@ const _sfc_main = {
|
|
|
137
165
|
handleColumnResult,
|
|
138
166
|
hrefComponent,
|
|
139
167
|
viewOnlineCellImage
|
|
140
|
-
} = useTableColumns(onlineTableContext);
|
|
141
|
-
watch(
|
|
142
|
-
|
|
143
|
-
|
|
168
|
+
} = useTableColumns(onlineTableContext, onlineExtConfigJson);
|
|
169
|
+
watch(
|
|
170
|
+
ID,
|
|
171
|
+
() => {
|
|
172
|
+
initAutoList();
|
|
173
|
+
},
|
|
174
|
+
{ immediate: true }
|
|
175
|
+
);
|
|
144
176
|
function initAutoList() {
|
|
145
177
|
return __async(this, null, function* () {
|
|
146
178
|
loading.value = true;
|
|
@@ -170,7 +202,10 @@ const _sfc_main = {
|
|
|
170
202
|
}
|
|
171
203
|
}
|
|
172
204
|
function onQueryFormLoaded(json) {
|
|
173
|
-
|
|
205
|
+
return __async(this, null, function* () {
|
|
206
|
+
yield getRefPromise(superQueryButtonRef);
|
|
207
|
+
superQueryButtonRef.value.init(json);
|
|
208
|
+
});
|
|
174
209
|
}
|
|
175
210
|
function handleExpand(expanded, record) {
|
|
176
211
|
let expandedRowKeysValue = expandedRowKeys.value;
|
|
@@ -238,7 +273,7 @@ const _sfc_main = {
|
|
|
238
273
|
}
|
|
239
274
|
const addChildButton = (record) => {
|
|
240
275
|
return {
|
|
241
|
-
label: "\u6DFB\u52A0\
|
|
276
|
+
label: "\u6DFB\u52A0\u4E0B\u7EA7",
|
|
242
277
|
onClick: handleAddChild.bind(null, record)
|
|
243
278
|
};
|
|
244
279
|
};
|
|
@@ -295,6 +330,8 @@ const _sfc_main = {
|
|
|
295
330
|
registerCustomModal,
|
|
296
331
|
registerImportModal,
|
|
297
332
|
importUrl,
|
|
333
|
+
handleFormConfig,
|
|
334
|
+
tableReloading,
|
|
298
335
|
handleSubmitFlow,
|
|
299
336
|
hrefComponent,
|
|
300
337
|
viewOnlineCellImage,
|
|
@@ -303,28 +340,24 @@ const _sfc_main = {
|
|
|
303
340
|
searchReset,
|
|
304
341
|
handleExpand,
|
|
305
342
|
expandedRowKeys,
|
|
306
|
-
handleExpandedRowsChange
|
|
343
|
+
handleExpandedRowsChange,
|
|
344
|
+
registerDetailModal
|
|
307
345
|
};
|
|
308
346
|
return that;
|
|
309
347
|
}
|
|
310
348
|
};
|
|
311
349
|
const _hoisted_1 = { class: "p-2" };
|
|
312
|
-
const _hoisted_2 =
|
|
313
|
-
const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u5BFC\u5165");
|
|
314
|
-
const _hoisted_4 = /* @__PURE__ */ createTextVNode(" \u5BFC\u51FA");
|
|
315
|
-
const _hoisted_5 = /* @__PURE__ */ createTextVNode(" \u6279\u91CF\u5220\u9664");
|
|
316
|
-
const _hoisted_6 = {
|
|
350
|
+
const _hoisted_2 = {
|
|
317
351
|
key: 0,
|
|
318
352
|
style: { "font-size": "12px", "font-style": "italic" }
|
|
319
353
|
};
|
|
320
|
-
const
|
|
321
|
-
const _hoisted_8 = {
|
|
354
|
+
const _hoisted_3 = {
|
|
322
355
|
key: 0,
|
|
323
356
|
style: { "font-size": "12px", "font-style": "italic" }
|
|
324
357
|
};
|
|
325
|
-
const
|
|
326
|
-
const
|
|
327
|
-
const
|
|
358
|
+
const _hoisted_4 = ["src", "onClick"];
|
|
359
|
+
const _hoisted_5 = ["innerHTML"];
|
|
360
|
+
const _hoisted_6 = ["title"];
|
|
328
361
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
329
362
|
const _component_online_query_form = resolveComponent("online-query-form");
|
|
330
363
|
const _component_a_button = resolveComponent("a-button");
|
|
@@ -335,6 +368,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
335
368
|
const _component_JImportModal = resolveComponent("JImportModal");
|
|
336
369
|
const _component_a_modal = resolveComponent("a-modal");
|
|
337
370
|
const _component_online_custom_modal = resolveComponent("online-custom-modal");
|
|
371
|
+
const _component_online_detail_modal = resolveComponent("online-detail-modal");
|
|
338
372
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
339
373
|
createVNode(_component_online_query_form, {
|
|
340
374
|
ref: "onlineQueryFormOuter",
|
|
@@ -342,7 +376,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
342
376
|
onSearch: _ctx.queryWithCondition,
|
|
343
377
|
onLoaded: _ctx.onQueryFormLoaded
|
|
344
378
|
}, null, 8, ["id", "onSearch", "onLoaded"]),
|
|
345
|
-
|
|
379
|
+
!_ctx.tableReloading ? (openBlock(), createBlock(_component_BasicTable, {
|
|
380
|
+
key: 0,
|
|
346
381
|
ref: "onlineTreeTableRef",
|
|
347
382
|
isTreeTable: true,
|
|
348
383
|
expandedRowKeys: _ctx.expandedRowKeys,
|
|
@@ -373,7 +408,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
373
408
|
onClick: _ctx.handleAdd
|
|
374
409
|
}, {
|
|
375
410
|
default: withCtx(() => [
|
|
376
|
-
|
|
411
|
+
createTextVNode("\u65B0\u589E")
|
|
377
412
|
]),
|
|
378
413
|
_: 1
|
|
379
414
|
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
@@ -384,7 +419,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
384
419
|
onClick: _ctx.onImportExcel
|
|
385
420
|
}, {
|
|
386
421
|
default: withCtx(() => [
|
|
387
|
-
|
|
422
|
+
createTextVNode("\u5BFC\u5165")
|
|
388
423
|
]),
|
|
389
424
|
_: 1
|
|
390
425
|
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
@@ -395,7 +430,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
395
430
|
onClick: _ctx.onExportExcel
|
|
396
431
|
}, {
|
|
397
432
|
default: withCtx(() => [
|
|
398
|
-
|
|
433
|
+
createTextVNode(" \u5BFC\u51FA")
|
|
399
434
|
]),
|
|
400
435
|
_: 1
|
|
401
436
|
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
@@ -430,7 +465,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
430
465
|
onClick: _ctx.handleBatchDelete
|
|
431
466
|
}, {
|
|
432
467
|
default: withCtx(() => [
|
|
433
|
-
|
|
468
|
+
createTextVNode(" \u6279\u91CF\u5220\u9664")
|
|
434
469
|
]),
|
|
435
470
|
_: 1
|
|
436
471
|
}, 8, ["onClick"])), [
|
|
@@ -444,7 +479,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
444
479
|
}, null, 8, ["status", "onSearch"])) : createCommentVNode("", true)
|
|
445
480
|
]),
|
|
446
481
|
fileSlot: withCtx(({ text }) => [
|
|
447
|
-
!text ? (openBlock(), createElementBlock("span",
|
|
482
|
+
!text ? (openBlock(), createElementBlock("span", _hoisted_2, "\u65E0\u6587\u4EF6")) : (openBlock(), createBlock(_component_a_button, {
|
|
448
483
|
key: 1,
|
|
449
484
|
ghost: true,
|
|
450
485
|
type: "primary",
|
|
@@ -453,27 +488,27 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
453
488
|
onClick: ($event) => _ctx.downloadRowFile(text)
|
|
454
489
|
}, {
|
|
455
490
|
default: withCtx(() => [
|
|
456
|
-
|
|
491
|
+
createTextVNode(" \u4E0B\u8F7D ")
|
|
457
492
|
]),
|
|
458
493
|
_: 2
|
|
459
494
|
}, 1032, ["onClick"]))
|
|
460
495
|
]),
|
|
461
496
|
imgSlot: withCtx(({ text }) => [
|
|
462
|
-
!text ? (openBlock(), createElementBlock("span",
|
|
497
|
+
!text ? (openBlock(), createElementBlock("span", _hoisted_3, "\u65E0\u56FE\u7247")) : (openBlock(), createElementBlock("img", {
|
|
463
498
|
key: 1,
|
|
464
499
|
src: _ctx.getImgView(text),
|
|
465
500
|
alt: "\u56FE\u7247\u4E0D\u5B58\u5728",
|
|
466
501
|
class: "online-cell-image",
|
|
467
502
|
onClick: ($event) => _ctx.viewOnlineCellImage(text)
|
|
468
|
-
}, null, 8,
|
|
503
|
+
}, null, 8, _hoisted_4))
|
|
469
504
|
]),
|
|
470
505
|
htmlSlot: withCtx(({ text }) => [
|
|
471
|
-
createElementVNode("div", { innerHTML: text }, null, 8,
|
|
506
|
+
createElementVNode("div", { innerHTML: text }, null, 8, _hoisted_5)
|
|
472
507
|
]),
|
|
473
508
|
pcaSlot: withCtx(({ text }) => [
|
|
474
509
|
createElementVNode("div", {
|
|
475
510
|
title: _ctx.getPcaText(text)
|
|
476
|
-
}, toDisplayString(_ctx.getPcaText(text)), 9,
|
|
511
|
+
}, toDisplayString(_ctx.getPcaText(text)), 9, _hoisted_6)
|
|
477
512
|
]),
|
|
478
513
|
dateSlot: withCtx(({ text }) => [
|
|
479
514
|
createElementVNode("span", null, toDisplayString(_ctx.getFormatDate(text)), 1)
|
|
@@ -485,12 +520,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
485
520
|
}, null, 8, ["actions", "dropDownActions"])
|
|
486
521
|
]),
|
|
487
522
|
_: 1
|
|
488
|
-
}, 8, ["expandedRowKeys", "onExpandedRowsChange", "onExpand", "loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"]),
|
|
523
|
+
}, 8, ["expandedRowKeys", "onExpandedRowsChange", "onExpand", "loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])) : createCommentVNode("", true),
|
|
489
524
|
createVNode(_component_OnlineAutoModal, {
|
|
490
525
|
id: _ctx.ID,
|
|
491
526
|
onRegister: _ctx.registerModal,
|
|
492
|
-
onSuccess: _ctx.handlerFormSuccess
|
|
493
|
-
|
|
527
|
+
onSuccess: _ctx.handlerFormSuccess,
|
|
528
|
+
onFormConfig: _ctx.handleFormConfig
|
|
529
|
+
}, null, 8, ["id", "onRegister", "onSuccess", "onFormConfig"]),
|
|
494
530
|
createVNode(_component_JImportModal, {
|
|
495
531
|
onRegister: _ctx.registerImportModal,
|
|
496
532
|
url: _ctx.importUrl(),
|
|
@@ -506,7 +542,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
506
542
|
createVNode(_component_online_custom_modal, {
|
|
507
543
|
onRegister: _ctx.registerCustomModal,
|
|
508
544
|
onSuccess: _ctx.reload
|
|
509
|
-
}, null, 8, ["onRegister", "onSuccess"])
|
|
545
|
+
}, null, 8, ["onRegister", "onSuccess"]),
|
|
546
|
+
createVNode(_component_online_detail_modal, {
|
|
547
|
+
id: _ctx.ID,
|
|
548
|
+
onRegister: _ctx.registerDetailModal
|
|
549
|
+
}, null, 8, ["id", "onRegister"])
|
|
510
550
|
]);
|
|
511
551
|
}
|
|
512
552
|
var OnlineAutoTreeList = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|