@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/ProcessOnlineForm.js
DELETED
|
@@ -1,208 +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 { O as OnlineForm } from "./OnlineForm.js";
|
|
22
|
-
import { defineComponent, ref, watch, nextTick, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createTextVNode, createCommentVNode } from "vue";
|
|
23
|
-
import { defHttp } from "/@/utils/http/axios";
|
|
24
|
-
import { g as getRefPromise } from "./useExtendComponent.js";
|
|
25
|
-
import { _ as _export_sfc } from "./index.js";
|
|
26
|
-
import "/@/hooks/web/useMessage";
|
|
27
|
-
import "/@/components/Form/index";
|
|
28
|
-
import "/@/utils";
|
|
29
|
-
import "/@/components/Loading";
|
|
30
|
-
import "/@/components/jeecg/JVxeTable/types";
|
|
31
|
-
import "/@/utils/auth";
|
|
32
|
-
import "@ant-design/icons-vue";
|
|
33
|
-
import "/@/hooks/core/useContext";
|
|
34
|
-
import "/@/utils/mitt";
|
|
35
|
-
import "/@/components/Modal";
|
|
36
|
-
import "/@/utils/cache";
|
|
37
|
-
import "/@/utils/common/compUtils";
|
|
38
|
-
import "/@/store/modules/user";
|
|
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";
|
|
47
|
-
import "/@/components/Form/src/componentMap";
|
|
48
|
-
import "/@/utils/propTypes";
|
|
49
|
-
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
50
|
-
import "/@/views/system/user/user.api";
|
|
51
|
-
import "./_commonjsHelpers.js";
|
|
52
|
-
import "/@/utils/desform/customExpression";
|
|
53
|
-
import "/@/store/modules/permission";
|
|
54
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
55
|
-
import "/@/components/Table";
|
|
56
|
-
import "/@/hooks/system/useListPage";
|
|
57
|
-
import "vue-router";
|
|
58
|
-
import "/@/components/Form/src/utils/Area";
|
|
59
|
-
import "/@/components/Preview/index";
|
|
60
|
-
import "./LinkTableListPiece.js";
|
|
61
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
62
|
-
import "./OnlineSelectCascade.js";
|
|
63
|
-
import "./JModalTip.js";
|
|
64
|
-
import "ant-design-vue";
|
|
65
|
-
import "@vueuse/core";
|
|
66
|
-
var ProcessOnlineForm_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
67
|
-
const _sfc_main = defineComponent({
|
|
68
|
-
name: "ProcessOnlineForm",
|
|
69
|
-
inheritAttrs: false,
|
|
70
|
-
components: {
|
|
71
|
-
OnlineForm
|
|
72
|
-
},
|
|
73
|
-
props: {
|
|
74
|
-
dataId: {
|
|
75
|
-
type: String,
|
|
76
|
-
default: ""
|
|
77
|
-
},
|
|
78
|
-
tableName: {
|
|
79
|
-
type: String,
|
|
80
|
-
default: ""
|
|
81
|
-
},
|
|
82
|
-
taskId: {
|
|
83
|
-
type: String,
|
|
84
|
-
default: ""
|
|
85
|
-
},
|
|
86
|
-
disabled: {
|
|
87
|
-
type: Boolean,
|
|
88
|
-
default: false
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
setup(props) {
|
|
92
|
-
const onlineFormCompRef = ref();
|
|
93
|
-
const formId = ref("");
|
|
94
|
-
const formTemplate = ref(1);
|
|
95
|
-
const isTreeForm = ref(false);
|
|
96
|
-
const pidFieldName = ref("");
|
|
97
|
-
const spinLoading = ref(false);
|
|
98
|
-
watch(
|
|
99
|
-
() => props.tableName,
|
|
100
|
-
(val) => {
|
|
101
|
-
if (!val) {
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
loadFormItems();
|
|
105
|
-
},
|
|
106
|
-
{ immediate: true }
|
|
107
|
-
);
|
|
108
|
-
function loadFormItems() {
|
|
109
|
-
return __async(this, null, function* () {
|
|
110
|
-
spinLoading.value = true;
|
|
111
|
-
const url = `/online/cgform/api/getFormItemBytbname/${props.tableName}`;
|
|
112
|
-
const params = { taskId: props.taskId };
|
|
113
|
-
try {
|
|
114
|
-
let result = yield defHttp.get({ url, params });
|
|
115
|
-
console.log("\u52A8\u6001\u8868\u5355\u67E5\u8BE2\u7ED3\u679C\u662F\uFF1A", result);
|
|
116
|
-
formId.value = result.head.id;
|
|
117
|
-
formTemplate.value = Number(result.head.formTemplate || 1);
|
|
118
|
-
isTreeForm.value = result.head.isTree === "Y";
|
|
119
|
-
pidFieldName.value = result.head.treeParentIdField || "";
|
|
120
|
-
yield nextTick(() => __async(this, null, function* () {
|
|
121
|
-
let myForm = yield getRefPromise(onlineFormCompRef);
|
|
122
|
-
myForm.createRootProperties(result);
|
|
123
|
-
}));
|
|
124
|
-
} catch (e) {
|
|
125
|
-
console.error("\u6D41\u7A0B\u8868\u5355\u67E5\u8BE2\u5F02\u5E38", e);
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
function renderSuccess() {
|
|
130
|
-
return __async(this, null, function* () {
|
|
131
|
-
let myForm = yield getRefPromise(onlineFormCompRef);
|
|
132
|
-
spinLoading.value = false;
|
|
133
|
-
myForm.show(true, {
|
|
134
|
-
id: props.dataId
|
|
135
|
-
});
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
const buttonLoading = ref(false);
|
|
139
|
-
function handleSubmit() {
|
|
140
|
-
return __async(this, null, function* () {
|
|
141
|
-
buttonLoading.value = true;
|
|
142
|
-
onlineFormCompRef.value.handleSubmit();
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
function handleSuccess() {
|
|
146
|
-
buttonLoading.value = false;
|
|
147
|
-
}
|
|
148
|
-
return {
|
|
149
|
-
onlineFormCompRef,
|
|
150
|
-
formId,
|
|
151
|
-
formTemplate,
|
|
152
|
-
isTreeForm,
|
|
153
|
-
pidFieldName,
|
|
154
|
-
renderSuccess,
|
|
155
|
-
handleSuccess,
|
|
156
|
-
handleSubmit,
|
|
157
|
-
buttonLoading,
|
|
158
|
-
spinLoading
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
const _hoisted_1 = { class: "cust-onl-form" };
|
|
163
|
-
const _hoisted_2 = {
|
|
164
|
-
key: 0,
|
|
165
|
-
style: { "width": "100%", "text-align": "center", "margin-top": "5px" }
|
|
166
|
-
};
|
|
167
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
168
|
-
const _component_a_button = resolveComponent("a-button");
|
|
169
|
-
const _component_online_form = resolveComponent("online-form");
|
|
170
|
-
const _component_a_spin = resolveComponent("a-spin");
|
|
171
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
172
|
-
createVNode(_component_a_spin, { spinning: _ctx.spinLoading }, {
|
|
173
|
-
default: withCtx(() => [
|
|
174
|
-
createVNode(_component_online_form, {
|
|
175
|
-
ref: "onlineFormCompRef",
|
|
176
|
-
id: _ctx.formId,
|
|
177
|
-
disabled: _ctx.disabled,
|
|
178
|
-
"form-template": _ctx.formTemplate,
|
|
179
|
-
isTree: _ctx.isTreeForm,
|
|
180
|
-
pidField: _ctx.pidFieldName,
|
|
181
|
-
onRendered: _ctx.renderSuccess,
|
|
182
|
-
onSuccess: _ctx.handleSuccess
|
|
183
|
-
}, {
|
|
184
|
-
bottom: withCtx(() => [
|
|
185
|
-
!_ctx.disabled && !_ctx.spinLoading ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
186
|
-
createVNode(_component_a_button, {
|
|
187
|
-
preIcon: "ant-design:check",
|
|
188
|
-
style: { "width": "126px" },
|
|
189
|
-
type: "primary",
|
|
190
|
-
onClick: _ctx.handleSubmit,
|
|
191
|
-
loading: _ctx.buttonLoading
|
|
192
|
-
}, {
|
|
193
|
-
default: withCtx(() => [
|
|
194
|
-
createTextVNode(" \u63D0 \u4EA4 ")
|
|
195
|
-
]),
|
|
196
|
-
_: 1
|
|
197
|
-
}, 8, ["onClick", "loading"])
|
|
198
|
-
])) : createCommentVNode("", true)
|
|
199
|
-
]),
|
|
200
|
-
_: 1
|
|
201
|
-
}, 8, ["id", "disabled", "form-template", "isTree", "pidField", "onRendered", "onSuccess"])
|
|
202
|
-
]),
|
|
203
|
-
_: 1
|
|
204
|
-
}, 8, ["spinning"])
|
|
205
|
-
]);
|
|
206
|
-
}
|
|
207
|
-
var ProcessOnlineForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9b256bc4"]]);
|
|
208
|
-
export { ProcessOnlineForm as default };
|
package/QueryTable.js
DELETED
|
@@ -1,129 +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, resolveComponent, openBlock, createBlock, mergeProps } from "vue";
|
|
21
|
-
import { JVxeTypes } from "/@/components/jeecg/JVxeTable/types";
|
|
22
|
-
import { u as useTableSync } from "./useTableSync.js";
|
|
23
|
-
import { _ as _export_sfc } from "./index.js";
|
|
24
|
-
import "./cgform.data.js";
|
|
25
|
-
import "/@/utils/dict";
|
|
26
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
27
|
-
import "/@/utils/uuid";
|
|
28
|
-
import "./pick.js";
|
|
29
|
-
import "./_flatRest.js";
|
|
30
|
-
import "./isArray.js";
|
|
31
|
-
import "./toString.js";
|
|
32
|
-
import "./_arrayPush.js";
|
|
33
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
34
|
-
import "/@/hooks/web/useMessage";
|
|
35
|
-
import "vue-router";
|
|
36
|
-
const _sfc_main = defineComponent({
|
|
37
|
-
name: "QueryTable",
|
|
38
|
-
emits: ["query"],
|
|
39
|
-
setup(_, { emit }) {
|
|
40
|
-
const columns = ref([
|
|
41
|
-
{ title: "\u5B57\u6BB5\u540D\u79F0", key: "dbFieldName", width: 130 },
|
|
42
|
-
{ title: "\u5B57\u6BB5\u5907\u6CE8", key: "dbFieldTxt", width: 130 },
|
|
43
|
-
{
|
|
44
|
-
title: "\u63A7\u4EF6\u7C7B\u578B",
|
|
45
|
-
key: "queryShowType",
|
|
46
|
-
width: 170,
|
|
47
|
-
type: JVxeTypes.select,
|
|
48
|
-
options: [
|
|
49
|
-
{ title: "\u6587\u672C\u6846", value: "text" },
|
|
50
|
-
{ title: "\u65E5\u671F(yyyy-MM-dd)", value: "date" },
|
|
51
|
-
{ title: "\u65E5\u671F\uFF08yyyy-MM-dd HH:mm:ss\uFF09", value: "datetime" },
|
|
52
|
-
{ title: "\u65F6\u95F4\uFF08HH:mm:ss\uFF09", value: "time" },
|
|
53
|
-
{ title: "\u4E0B\u62C9\u6846", value: "list" },
|
|
54
|
-
{ title: "\u4E0B\u62C9\u591A\u9009\u6846", value: "list_multi" },
|
|
55
|
-
{ title: "\u4E0B\u62C9\u641C\u7D22\u6846", value: "sel_search" },
|
|
56
|
-
{ title: "\u5206\u7C7B\u5B57\u5178\u6811", value: "cat_tree" },
|
|
57
|
-
{ title: "Popup\u5F39\u6846", value: "popup" },
|
|
58
|
-
{ title: "\u90E8\u95E8\u9009\u62E9", value: "sel_depart" },
|
|
59
|
-
{ title: "\u7528\u6237\u9009\u62E9", value: "sel_user" },
|
|
60
|
-
{ title: "\u7701\u5E02\u533A\u7EC4\u4EF6", value: "pca" },
|
|
61
|
-
{ title: "\u81EA\u5B9A\u4E49\u6811\u63A7\u4EF6", value: "sel_tree" }
|
|
62
|
-
],
|
|
63
|
-
defaultValue: "text",
|
|
64
|
-
placeholder: "\u8BF7\u9009\u62E9${title}"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
title: "\u5B57\u5178Table",
|
|
68
|
-
key: "queryDictTable",
|
|
69
|
-
width: 130,
|
|
70
|
-
type: JVxeTypes.textarea,
|
|
71
|
-
defaultValue: ""
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
title: "\u5B57\u5178Code",
|
|
75
|
-
key: "queryDictField",
|
|
76
|
-
width: 130,
|
|
77
|
-
type: JVxeTypes.input,
|
|
78
|
-
defaultValue: ""
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
title: "\u5B57\u5178Text",
|
|
82
|
-
key: "queryDictText",
|
|
83
|
-
width: 130,
|
|
84
|
-
type: JVxeTypes.input,
|
|
85
|
-
defaultValue: ""
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
title: "\u9ED8\u8BA4\u503C",
|
|
89
|
-
key: "queryDefVal",
|
|
90
|
-
width: 130,
|
|
91
|
-
type: JVxeTypes.input,
|
|
92
|
-
defaultValue: ""
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
title: "\u662F\u5426\u542F\u7528",
|
|
96
|
-
key: "queryConfigFlag",
|
|
97
|
-
minWidth: 80,
|
|
98
|
-
type: JVxeTypes.checkbox,
|
|
99
|
-
customValue: ["1", "0"],
|
|
100
|
-
defaultChecked: false
|
|
101
|
-
}
|
|
102
|
-
]);
|
|
103
|
-
const setup = useTableSync(columns);
|
|
104
|
-
function handleChange({ row, column, value }) {
|
|
105
|
-
if (column.key === "queryConfigFlag") {
|
|
106
|
-
if (value === "1") {
|
|
107
|
-
emit("query", row.id);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
return __spreadProps(__spreadValues({}, setup), { columns, handleChange });
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
115
|
-
const _component_JVxeTable = resolveComponent("JVxeTable");
|
|
116
|
-
return openBlock(), createBlock(_component_JVxeTable, mergeProps({
|
|
117
|
-
ref: "tableRef",
|
|
118
|
-
rowNumber: "",
|
|
119
|
-
keyboardEdit: "",
|
|
120
|
-
maxHeight: _ctx.tableHeight.noToolbar,
|
|
121
|
-
loading: _ctx.loading,
|
|
122
|
-
columns: _ctx.columns,
|
|
123
|
-
dataSource: _ctx.dataSource,
|
|
124
|
-
disabledRows: { dbFieldName: ["id", "has_child"] },
|
|
125
|
-
onValueChange: _ctx.handleChange
|
|
126
|
-
}, _ctx.tableProps), null, 16, ["maxHeight", "loading", "columns", "dataSource", "onValueChange"]);
|
|
127
|
-
}
|
|
128
|
-
var QueryTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
129
|
-
export { QueryTable as default };
|