@jeecg/online 1.0.1 → 3.4.3-GA
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 +609 -0
- package/EnhanceJavaModal.js +11 -17
- package/EnhanceJsHistory.js +6 -8
- package/EnhanceJsModal.js +16 -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 +92 -131
- package/OnlineAutoTreeList.js +93 -53
- package/OnlineCustomModal.js +30 -14
- package/OnlineDetailModal.js +184 -0
- package/OnlineForm.js +274 -141
- package/OnlineFormDetail.js +326 -0
- package/OnlineQueryForm.js +72 -40
- package/OnlineSearchFormItem.js +26 -18
- package/OnlineSelectCascade.js +37 -26
- package/OnlineSubFormDetail.js +167 -0
- package/OnlineSuperQuery.js +70 -75
- 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 +27 -8
- package/index2.js +48 -45
- package/index3.js +29 -26
- package/isArray.js +1 -1
- package/main.index.js +2 -2
- 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 +3457 -3791
- package/useCgformList.js +44 -31
- package/{useTableColumns.js → useListButton.js} +218 -409
- package/useOnlineTest.js +5 -26827
- package/useSchemas.js +382 -234
- 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/LICENSE +0 -7
- 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/FormSchemaFactory.js
CHANGED
|
@@ -37,20 +37,22 @@ var __async = (__this, __arguments, generator) => {
|
|
|
37
37
|
import { UploadTypeEnum } from "/@/components/Form/src/jeecg/components/JUpload";
|
|
38
38
|
const SUBMIT_FLOW_KEY = "jeecg_submit_form_and_flow";
|
|
39
39
|
const SUBMIT_FLOW_ID = "flow_submit_id";
|
|
40
|
+
const ONL_FORM_TABLE_NAME = "online_form_table_name";
|
|
40
41
|
const VALIDATE_FAILED = "validate-failed";
|
|
41
42
|
const SETUP = "setup";
|
|
42
43
|
const ENHANCEJS = "EnhanceJS";
|
|
43
44
|
const FORM_VIEW_TO_QUERY_VIEW = {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
password: "text",
|
|
46
|
+
file: "text",
|
|
47
|
+
image: "text",
|
|
48
|
+
textarea: "text",
|
|
49
|
+
umeditor: "text",
|
|
50
|
+
markdown: "text",
|
|
51
|
+
checkbox: "list_multi",
|
|
52
|
+
radio: "list"
|
|
52
53
|
};
|
|
53
54
|
const POP_CONTAINER = ".jeecg-online-modal .ant-modal-content";
|
|
55
|
+
const ONL_AUTH_PRE = "online_";
|
|
54
56
|
class IFormSchema {
|
|
55
57
|
constructor(key, data) {
|
|
56
58
|
this._data = data;
|
|
@@ -70,6 +72,7 @@ class IFormSchema {
|
|
|
70
72
|
this.schemaProp = {};
|
|
71
73
|
this.searchForm = false;
|
|
72
74
|
this.disabled = false;
|
|
75
|
+
this.popContainer = "";
|
|
73
76
|
this.handleWidgetAttr(data);
|
|
74
77
|
}
|
|
75
78
|
getFormItemSchema() {
|
|
@@ -81,7 +84,13 @@ class IFormSchema {
|
|
|
81
84
|
let fs = {
|
|
82
85
|
field: this.field,
|
|
83
86
|
label: this.label,
|
|
84
|
-
|
|
87
|
+
labelLength: 4,
|
|
88
|
+
component: "Input",
|
|
89
|
+
itemProps: {
|
|
90
|
+
labelCol: {
|
|
91
|
+
class: "online-form-label"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
85
94
|
};
|
|
86
95
|
let rules = this.getRule();
|
|
87
96
|
if (rules.length > 0 && this.onlyValidator) {
|
|
@@ -154,12 +163,12 @@ class IFormSchema {
|
|
|
154
163
|
rules.push({ required: true, message: msg });
|
|
155
164
|
}
|
|
156
165
|
}
|
|
157
|
-
if (
|
|
166
|
+
if ("sel_user" == view) {
|
|
158
167
|
if (pattern === "only" && this.onlyValidator) {
|
|
159
168
|
rules.push({ validator: this.onlyValidator });
|
|
160
169
|
}
|
|
161
170
|
}
|
|
162
|
-
if (
|
|
171
|
+
if ("list" === view || "radio" === view || "markdown" === view || "pca" === view || view.indexOf("sel") >= 0 || "time" === view) {
|
|
163
172
|
return rules;
|
|
164
173
|
}
|
|
165
174
|
if (view.indexOf("upload") >= 0 || view.indexOf("file") >= 0 || view.indexOf("image") >= 0) {
|
|
@@ -192,17 +201,17 @@ class IFormSchema {
|
|
|
192
201
|
schema.componentProps.disabled = true;
|
|
193
202
|
}
|
|
194
203
|
if (!schema.componentProps.hasOwnProperty("onChange")) {
|
|
195
|
-
schema.componentProps["onChange"] = (value) => {
|
|
204
|
+
schema.componentProps["onChange"] = (value, formData) => {
|
|
196
205
|
if (value instanceof Event) {
|
|
197
206
|
value = value.target.value;
|
|
198
207
|
}
|
|
199
208
|
if (value instanceof Array) {
|
|
200
209
|
value = value.join(",");
|
|
201
210
|
}
|
|
202
|
-
if (!this.formRef.value.$formValueChange) {
|
|
211
|
+
if (!this.formRef || !this.formRef.value || !this.formRef.value.$formValueChange) {
|
|
203
212
|
console.log("\u5F53\u524D\u8868\u5355\u65E0\u6CD5\u89E6\u53D1change\u4E8B\u4EF6,field\uFF1A" + this.field);
|
|
204
213
|
} else {
|
|
205
|
-
this.formRef.value.$formValueChange(this.field, value);
|
|
214
|
+
this.formRef.value.$formValueChange(this.field, value, formData);
|
|
206
215
|
}
|
|
207
216
|
};
|
|
208
217
|
}
|
|
@@ -232,6 +241,8 @@ class IFormSchema {
|
|
|
232
241
|
getPopContainer() {
|
|
233
242
|
if (this.searchForm === true) {
|
|
234
243
|
return "body";
|
|
244
|
+
} else if (this.popContainer) {
|
|
245
|
+
return `.${this.popContainer} .ant-modal-content`;
|
|
235
246
|
} else {
|
|
236
247
|
return POP_CONTAINER;
|
|
237
248
|
}
|
|
@@ -245,6 +256,14 @@ class IFormSchema {
|
|
|
245
256
|
}
|
|
246
257
|
}
|
|
247
258
|
}
|
|
259
|
+
setCustomPopContainer(modalClass) {
|
|
260
|
+
this.popContainer = modalClass;
|
|
261
|
+
}
|
|
262
|
+
getLinkFieldInfo() {
|
|
263
|
+
return "";
|
|
264
|
+
}
|
|
265
|
+
setOtherInfo(_arg) {
|
|
266
|
+
}
|
|
248
267
|
}
|
|
249
268
|
class InputWidget extends IFormSchema {
|
|
250
269
|
getItem() {
|
|
@@ -276,6 +295,9 @@ class DateWidget extends IFormSchema {
|
|
|
276
295
|
valueFormat: this.format,
|
|
277
296
|
style: {
|
|
278
297
|
width: "100%"
|
|
298
|
+
},
|
|
299
|
+
getPopupContainer: (_node) => {
|
|
300
|
+
return this.getModalAsContainer();
|
|
279
301
|
}
|
|
280
302
|
}
|
|
281
303
|
});
|
|
@@ -285,23 +307,48 @@ class SelectWidget extends IFormSchema {
|
|
|
285
307
|
constructor(key, data) {
|
|
286
308
|
super(key, data);
|
|
287
309
|
this.options = this.getOptions(data["enum"]);
|
|
310
|
+
this.dictTable = data["dictTable"];
|
|
311
|
+
this.dictText = data["dictText"];
|
|
312
|
+
this.dictCode = data["dictCode"];
|
|
288
313
|
}
|
|
289
314
|
getItem() {
|
|
290
315
|
let item = super.getItem();
|
|
316
|
+
let component = this.getFormComponent();
|
|
317
|
+
let componentProps = this.getComponentProps();
|
|
291
318
|
return Object.assign({}, item, {
|
|
292
|
-
component
|
|
293
|
-
componentProps
|
|
294
|
-
options: this.options,
|
|
295
|
-
allowClear: true,
|
|
296
|
-
style: {
|
|
297
|
-
width: "100%"
|
|
298
|
-
},
|
|
299
|
-
getPopupContainer: (_node) => {
|
|
300
|
-
return this.getModalAsContainer();
|
|
301
|
-
}
|
|
302
|
-
}
|
|
319
|
+
component,
|
|
320
|
+
componentProps
|
|
303
321
|
});
|
|
304
322
|
}
|
|
323
|
+
getFormComponent() {
|
|
324
|
+
if (this.options.length > 0) {
|
|
325
|
+
return "Select";
|
|
326
|
+
} else {
|
|
327
|
+
return "JDictSelectTag";
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
getComponentProps() {
|
|
331
|
+
let props = {
|
|
332
|
+
allowClear: true,
|
|
333
|
+
style: {
|
|
334
|
+
width: "100%"
|
|
335
|
+
},
|
|
336
|
+
getPopupContainer: (_node) => {
|
|
337
|
+
return this.getModalAsContainer();
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
if (this.options.length > 0) {
|
|
341
|
+
props["options"] = this.options;
|
|
342
|
+
} else {
|
|
343
|
+
if (!this.dictTable) {
|
|
344
|
+
props["dictCode"] = this.dictCode;
|
|
345
|
+
} else {
|
|
346
|
+
let temp = `${this.dictTable},${this.dictText},${this.dictCode}`;
|
|
347
|
+
props["dictCode"] = encodeURI(temp);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
return props;
|
|
351
|
+
}
|
|
305
352
|
getOptions(array) {
|
|
306
353
|
if (!array || array.length == 0) {
|
|
307
354
|
return [];
|
|
@@ -496,9 +543,10 @@ class TreeCategoryWidget extends IFormSchema {
|
|
|
496
543
|
multiple: this.multi,
|
|
497
544
|
pid: pidValue,
|
|
498
545
|
back: this.textField,
|
|
499
|
-
onChange: (
|
|
546
|
+
onChange: (val, backVal) => {
|
|
500
547
|
if (this.formRef) {
|
|
501
548
|
this.formRef.value.setFieldsValue(backVal);
|
|
549
|
+
this.formRef.value.$formValueChange(this.field, val);
|
|
502
550
|
}
|
|
503
551
|
}
|
|
504
552
|
};
|
|
@@ -572,7 +620,11 @@ class EditorWidget extends IFormSchema {
|
|
|
572
620
|
let item = super.getItem();
|
|
573
621
|
return Object.assign({}, item, {
|
|
574
622
|
component: "JEditor",
|
|
575
|
-
componentProps: {
|
|
623
|
+
componentProps: {
|
|
624
|
+
options: {
|
|
625
|
+
auto_focus: false
|
|
626
|
+
}
|
|
627
|
+
}
|
|
576
628
|
});
|
|
577
629
|
}
|
|
578
630
|
}
|
|
@@ -852,6 +904,83 @@ class NumberWidget extends IFormSchema {
|
|
|
852
904
|
return props;
|
|
853
905
|
}
|
|
854
906
|
}
|
|
907
|
+
class LinkTableWidget extends IFormSchema {
|
|
908
|
+
constructor(key, data) {
|
|
909
|
+
super(key, data);
|
|
910
|
+
this.dictTable = data.dictTable;
|
|
911
|
+
this.dictText = data.dictText;
|
|
912
|
+
this.dictCode = data.dictCode;
|
|
913
|
+
this.view = data.view;
|
|
914
|
+
this.componentString = "";
|
|
915
|
+
this.linkFields = [];
|
|
916
|
+
}
|
|
917
|
+
getItem() {
|
|
918
|
+
let item = super.getItem();
|
|
919
|
+
const componentProps = this.getComponentProps();
|
|
920
|
+
return Object.assign({}, item, {
|
|
921
|
+
component: this.componentString,
|
|
922
|
+
componentProps
|
|
923
|
+
});
|
|
924
|
+
}
|
|
925
|
+
getComponentProps() {
|
|
926
|
+
let props = {
|
|
927
|
+
textField: this.dictText,
|
|
928
|
+
tableName: this.dictTable,
|
|
929
|
+
valueField: this.dictCode
|
|
930
|
+
};
|
|
931
|
+
let extend = this.getExtendData();
|
|
932
|
+
if (extend.multiSelect) {
|
|
933
|
+
props["multi"] = true;
|
|
934
|
+
} else {
|
|
935
|
+
props["multi"] = false;
|
|
936
|
+
}
|
|
937
|
+
if (extend.imageField) {
|
|
938
|
+
props["imageField"] = extend.imageField;
|
|
939
|
+
} else {
|
|
940
|
+
props["imageField"] = "";
|
|
941
|
+
}
|
|
942
|
+
if (extend.showType == "select") {
|
|
943
|
+
this.componentString = "LinkTableSelect";
|
|
944
|
+
let popContainer = this.getPopContainer();
|
|
945
|
+
props["popContainer"] = popContainer;
|
|
946
|
+
} else {
|
|
947
|
+
this.componentString = "LinkTableCard";
|
|
948
|
+
}
|
|
949
|
+
if (this.linkFields.length > 0) {
|
|
950
|
+
props["linkFields"] = this.linkFields;
|
|
951
|
+
}
|
|
952
|
+
return props;
|
|
953
|
+
}
|
|
954
|
+
setOtherInfo(arr) {
|
|
955
|
+
this.linkFields = arr;
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
class LinkTableFieldWidget extends IFormSchema {
|
|
959
|
+
constructor(key, data) {
|
|
960
|
+
super(key, data);
|
|
961
|
+
this.dictTable = data["dictTable"];
|
|
962
|
+
this.dictText = data["dictText"];
|
|
963
|
+
}
|
|
964
|
+
getItem() {
|
|
965
|
+
let item = super.getItem();
|
|
966
|
+
return Object.assign({}, item, {
|
|
967
|
+
componentProps: {
|
|
968
|
+
readOnly: true,
|
|
969
|
+
allowClear: false,
|
|
970
|
+
disabled: true,
|
|
971
|
+
style: {
|
|
972
|
+
background: "none",
|
|
973
|
+
color: "rgba(0, 0, 0, 0.85)",
|
|
974
|
+
border: "none"
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
});
|
|
978
|
+
}
|
|
979
|
+
getLinkFieldInfo() {
|
|
980
|
+
let arr = [this.dictTable, `${this.field},${this.dictText}`];
|
|
981
|
+
return arr;
|
|
982
|
+
}
|
|
983
|
+
}
|
|
855
984
|
class FormSchemaFactory {
|
|
856
985
|
static createFormSchema(key, data) {
|
|
857
986
|
let view = data.view;
|
|
@@ -899,6 +1028,10 @@ class FormSchemaFactory {
|
|
|
899
1028
|
return new TreeSelectWidget(key, data);
|
|
900
1029
|
case "switch":
|
|
901
1030
|
return new SwitchWidget(key, data);
|
|
1031
|
+
case "link_table":
|
|
1032
|
+
return new LinkTableWidget(key, data);
|
|
1033
|
+
case "link_table_field":
|
|
1034
|
+
return new LinkTableFieldWidget(key, data);
|
|
902
1035
|
case "slot":
|
|
903
1036
|
return new SlotWidget(key, data);
|
|
904
1037
|
case "hidden":
|
|
@@ -914,9 +1047,9 @@ class FormSchemaFactory {
|
|
|
914
1047
|
static createSlotFormSchema(key, data) {
|
|
915
1048
|
let slotFs = new SlotWidget(key, data);
|
|
916
1049
|
let view = data.view;
|
|
917
|
-
if (
|
|
1050
|
+
if ("date" == view) {
|
|
918
1051
|
slotFs.groupDate();
|
|
919
|
-
} else if (
|
|
1052
|
+
} else if ("datetime" == view) {
|
|
920
1053
|
slotFs.groupDatetime();
|
|
921
1054
|
} else {
|
|
922
1055
|
let type = data.type;
|
|
@@ -935,4 +1068,4 @@ class FormSchemaFactory {
|
|
|
935
1068
|
};
|
|
936
1069
|
}
|
|
937
1070
|
}
|
|
938
|
-
export { ENHANCEJS as E, FormSchemaFactory as F, SUBMIT_FLOW_KEY as S, VALIDATE_FAILED as V,
|
|
1071
|
+
export { ENHANCEJS as E, FormSchemaFactory as F, ONL_FORM_TABLE_NAME as O, SUBMIT_FLOW_KEY as S, VALIDATE_FAILED as V, ONL_AUTH_PRE as a, SUBMIT_FLOW_ID as b, FORM_VIEW_TO_QUERY_VIEW as c, SETUP as d };
|
package/IndexTable.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, resolveComponent, openBlock, createBlock } from "vue";
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, mergeProps } from "vue";
|
|
2
2
|
import { JVxeTypes } from "/@/components/jeecg/JVxeTable/types";
|
|
3
3
|
import { u as useTableSync } from "./useTableSync.js";
|
|
4
4
|
import { _ as _export_sfc } from "./index.js";
|
|
@@ -7,6 +7,7 @@ import "/@/utils/dict";
|
|
|
7
7
|
import "/@/utils/dict/JDictSelectUtil";
|
|
8
8
|
import "/@/utils/uuid";
|
|
9
9
|
import "./pick.js";
|
|
10
|
+
import "./_flatRest.js";
|
|
10
11
|
import "./isArray.js";
|
|
11
12
|
import "./toString.js";
|
|
12
13
|
import "./_arrayPush.js";
|
|
@@ -59,7 +60,7 @@ const _sfc_main = defineComponent({
|
|
|
59
60
|
}
|
|
60
61
|
]);
|
|
61
62
|
const setup = useTableSync(columns);
|
|
62
|
-
const { tableRef, loading, dataSource, tableHeight, setDataSource, validateData } = setup;
|
|
63
|
+
const { tableRef, loading, dataSource, tableHeight, tableProps, setDataSource, validateData } = setup;
|
|
63
64
|
function syncTable(dbTable) {
|
|
64
65
|
let options = [];
|
|
65
66
|
let data = dbTable.value.tableRef.getTableData();
|
|
@@ -73,12 +74,12 @@ const _sfc_main = defineComponent({
|
|
|
73
74
|
});
|
|
74
75
|
columns.value[1].options = options;
|
|
75
76
|
}
|
|
76
|
-
return { tableRef, loading, dataSource, columns, tableHeight, syncTable, setDataSource, validateData };
|
|
77
|
+
return { tableRef, loading, dataSource, columns, tableHeight, tableProps, syncTable, setDataSource, validateData };
|
|
77
78
|
}
|
|
78
79
|
});
|
|
79
80
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
80
81
|
const _component_JVxeTable = resolveComponent("JVxeTable");
|
|
81
|
-
return openBlock(), createBlock(_component_JVxeTable, {
|
|
82
|
+
return openBlock(), createBlock(_component_JVxeTable, mergeProps({
|
|
82
83
|
ref: "tableRef",
|
|
83
84
|
rowNumber: "",
|
|
84
85
|
rowSelection: "",
|
|
@@ -90,7 +91,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
90
91
|
columns: _ctx.columns,
|
|
91
92
|
dataSource: _ctx.dataSource,
|
|
92
93
|
toolbar: _ctx.actionButton
|
|
93
|
-
}, null,
|
|
94
|
+
}, _ctx.tableProps), null, 16, ["maxHeight", "loading", "columns", "dataSource", "toolbar"]);
|
|
94
95
|
}
|
|
95
96
|
var IndexTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
96
97
|
export { IndexTable as default };
|
package/JModalTip.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { computed, openBlock, createElementBlock, createElementVNode, createCommentVNode, pushScopeId, popScopeId } from "vue";
|
|
2
|
+
import { _ as _export_sfc } from "./index.js";
|
|
3
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
4
|
+
import "/@/hooks/web/useMessage";
|
|
5
|
+
import "vue-router";
|
|
6
|
+
var JModalTip_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7
|
+
const _sfc_main = {
|
|
8
|
+
name: "JModalTip",
|
|
9
|
+
props: {
|
|
10
|
+
visible: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: false
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
emits: ["save", "cancel"],
|
|
16
|
+
setup(props) {
|
|
17
|
+
const flag = computed(() => {
|
|
18
|
+
return props.visible;
|
|
19
|
+
});
|
|
20
|
+
return {
|
|
21
|
+
flag
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const _withScopeId = (n) => (pushScopeId("data-v-c18755ca"), n = n(), popScopeId(), n);
|
|
26
|
+
const _hoisted_1 = {
|
|
27
|
+
key: 0,
|
|
28
|
+
class: "jeecg-update-tip-bar"
|
|
29
|
+
};
|
|
30
|
+
const _hoisted_2 = { class: "container" };
|
|
31
|
+
const _hoisted_3 = { class: "outer" };
|
|
32
|
+
const _hoisted_4 = { class: "inner" };
|
|
33
|
+
const _hoisted_5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "tip" }, "\u6B63\u5728\u4FEE\u6539\u8868\u5355\u6570\u636E \xB7\xB7\xB7", -1));
|
|
34
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
35
|
+
return $setup.flag ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
36
|
+
createElementVNode("div", _hoisted_2, [
|
|
37
|
+
createElementVNode("div", _hoisted_3, [
|
|
38
|
+
createElementVNode("div", _hoisted_4, [
|
|
39
|
+
_hoisted_5,
|
|
40
|
+
createElementVNode("div", {
|
|
41
|
+
class: "cancel",
|
|
42
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("cancel"))
|
|
43
|
+
}, "\u53D6\u6D88"),
|
|
44
|
+
createElementVNode("div", {
|
|
45
|
+
class: "save",
|
|
46
|
+
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("save"))
|
|
47
|
+
}, "\u4FDD\u5B58")
|
|
48
|
+
])
|
|
49
|
+
])
|
|
50
|
+
])
|
|
51
|
+
])) : createCommentVNode("", true);
|
|
52
|
+
}
|
|
53
|
+
var JModalTip = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-c18755ca"]]);
|
|
54
|
+
export { JModalTip as default };
|
package/JOnlineSearchSelect.js
CHANGED
|
@@ -27,16 +27,24 @@ const _sfc_main = {
|
|
|
27
27
|
setup(props, { emit }) {
|
|
28
28
|
let selected = ref("");
|
|
29
29
|
let selectOptions = ref([]);
|
|
30
|
-
watch(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
30
|
+
watch(
|
|
31
|
+
() => props.value,
|
|
32
|
+
(newVal) => {
|
|
33
|
+
if (!newVal) {
|
|
34
|
+
selected.value = void 0;
|
|
35
|
+
} else {
|
|
36
|
+
selected.value = newVal;
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{ immediate: true }
|
|
40
|
+
);
|
|
41
|
+
watch(
|
|
42
|
+
() => props.sql,
|
|
43
|
+
() => {
|
|
44
|
+
resetOptions();
|
|
45
|
+
},
|
|
46
|
+
{ immediate: true }
|
|
47
|
+
);
|
|
40
48
|
const handleSearch = useDebounceFn(searchByKeyword, 800);
|
|
41
49
|
function searchByKeyword(keyword = "") {
|
|
42
50
|
let params = {
|
package/LeftDepart.js
CHANGED
|
@@ -84,7 +84,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
84
84
|
}, {
|
|
85
85
|
depIcon: withCtx(({ selected }) => [
|
|
86
86
|
createVNode(_component_a_icon, {
|
|
87
|
-
style: normalizeStyle({
|
|
87
|
+
style: normalizeStyle({ color: selected ? "blue" : "" }),
|
|
88
88
|
type: "apartment"
|
|
89
89
|
}, null, 8, ["style"])
|
|
90
90
|
]),
|
package/LeftRole.js
CHANGED
|
@@ -59,10 +59,13 @@ const _sfc_main = defineComponent({
|
|
|
59
59
|
const [registerTable, { clearSelectedRowKeys }, { rowSelection }] = tableContext;
|
|
60
60
|
function loadData(params) {
|
|
61
61
|
return __async(this, null, function* () {
|
|
62
|
-
let { code, success, result, message } = yield defHttp.get(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
let { code, success, result, message } = yield defHttp.get(
|
|
63
|
+
{
|
|
64
|
+
url: "/sys/role/list",
|
|
65
|
+
params
|
|
66
|
+
},
|
|
67
|
+
{ isTransformResponse: false }
|
|
68
|
+
);
|
|
66
69
|
if (success) {
|
|
67
70
|
return result;
|
|
68
71
|
}
|
package/LeftUser.js
CHANGED
|
@@ -78,10 +78,13 @@ const _sfc_main = defineComponent({
|
|
|
78
78
|
const [registerTable, { clearSelectedRowKeys }, { rowSelection }] = tableContext;
|
|
79
79
|
function loadData(params) {
|
|
80
80
|
return __async(this, null, function* () {
|
|
81
|
-
let { code, success, result, message } = yield defHttp.get(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
let { code, success, result, message } = yield defHttp.get(
|
|
82
|
+
{
|
|
83
|
+
url: "/sys/user/list",
|
|
84
|
+
params
|
|
85
|
+
},
|
|
86
|
+
{ isTransformResponse: false }
|
|
87
|
+
);
|
|
85
88
|
if (success) {
|
|
86
89
|
return result;
|
|
87
90
|
}
|