@jeecg/online 1.0.1 → 3.4.3
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 +15 -9
- package/AuthButtonTree.js +4 -7
- package/AuthDataConfig.js +10 -8
- package/AuthDataTree.js +4 -7
- package/AuthFieldConfig.js +16 -14
- package/AuthFieldTree.js +25 -20
- package/AuthManagerDrawer.js +2 -3
- package/AuthSetterModal.js +2 -2
- package/CgformCopyList.js +34 -24
- package/CgformModal.js +57 -50
- package/CgreportModal.js +32 -39
- package/CheckDictTable.js +146 -26
- package/CodeFileListModal.js +174 -0
- package/CodeFileViewModal.js +324 -0
- package/CodeGeneratorModal.js +42 -40
- package/CustomButtonList.js +19 -23
- package/DBAttributeTable.js +250 -14
- package/DbToOnlineModal.js +28 -27
- package/DetailForm.js +607 -0
- package/EnhanceJavaModal.js +12 -19
- package/EnhanceJsHistory.js +6 -8
- package/EnhanceJsModal.js +17 -18
- package/EnhanceSqlModal.js +12 -19
- package/ExtendConfigModal.js +26 -17
- package/FileSelectModal.js +1 -2
- package/ForeignKeyTable.js +6 -5
- package/FormSchemaFactory.js +163 -30
- package/IndexTable.js +8 -7
- package/JModalTip.js +54 -0
- package/LeftDepart.js +3 -3
- package/LeftRole.js +8 -6
- package/LeftUser.js +8 -6
- package/LinkTableConfigModal.js +288 -0
- package/LinkTableFieldConfigModal.js +217 -0
- package/LinkTableListPiece.js +36 -0
- package/ModalFormDemo.js +4 -4
- package/OnlCgReportList.js +34 -0
- package/OnlineAutoList.js +155 -58
- package/OnlineAutoModal.js +91 -132
- package/OnlineAutoTreeList.js +92 -54
- package/OnlineCustomModal.js +31 -17
- package/OnlineDetailModal.js +182 -0
- package/OnlineForm.js +272 -141
- package/OnlineFormDetail.js +324 -0
- package/OnlineQueryForm.js +72 -42
- package/OnlineSearchFormItem.js +28 -23
- package/OnlineSubFormDetail.js +165 -0
- package/OnlineSuperQuery.js +72 -76
- package/OnlineSuperQueryValComponent.js +1 -0
- package/OnlineSuperQueryValComponent.vue_vue_type_script_lang.js +1 -17
- package/PageAttributeTable.js +233 -31
- package/ProcessOnlineForm.js +41 -18
- package/QueryTable.js +6 -5
- 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 +358 -34
- package/index2.js +49 -48
- package/index3.js +29 -26
- package/isArray.js +1 -1
- package/main.index.js +3 -3
- 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 -3792
- 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/JOnlineSearchSelect.js +0 -107
- package/LICENSE +0 -7
- package/OnlineSelectCascade.js +0 -217
- 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/OnlineSelectCascade.js
DELETED
|
@@ -1,217 +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 { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString } from "vue";
|
|
22
|
-
import { defHttp } from "/@/utils/http/axios";
|
|
23
|
-
import { useMessage } from "/@/hooks/web/useMessage";
|
|
24
|
-
import { _ as _export_sfc } from "./index.js";
|
|
25
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
26
|
-
import "vue-router";
|
|
27
|
-
const SELECT_OPTIONS_URL = "/online/cgform/api/querySelectOptions";
|
|
28
|
-
const _sfc_main = defineComponent({
|
|
29
|
-
name: "OnlineSelectCascade",
|
|
30
|
-
props: {
|
|
31
|
-
table: { type: String, default: "" },
|
|
32
|
-
txt: { type: String, default: "" },
|
|
33
|
-
store: { type: String, default: "" },
|
|
34
|
-
idField: { type: String, default: "" },
|
|
35
|
-
pidField: { type: String, default: "" },
|
|
36
|
-
pidValue: { type: String, default: "-1" },
|
|
37
|
-
origin: { type: Boolean, default: false },
|
|
38
|
-
condition: { type: String, default: "" },
|
|
39
|
-
value: { type: String, default: "" },
|
|
40
|
-
isNumber: { type: Boolean, default: false },
|
|
41
|
-
placeholder: { type: String, default: "\u8BF7\u9009\u62E9" }
|
|
42
|
-
},
|
|
43
|
-
emits: ["change", "next"],
|
|
44
|
-
setup(props, { emit }) {
|
|
45
|
-
const { createMessage: $message } = useMessage();
|
|
46
|
-
const selectedValue = ref("");
|
|
47
|
-
const dictOptions = ref([]);
|
|
48
|
-
const optionsLoad = ref(true);
|
|
49
|
-
function handleChange(value) {
|
|
50
|
-
console.log("handleChange", value);
|
|
51
|
-
let temp = value || "";
|
|
52
|
-
emit("change", temp);
|
|
53
|
-
valueChangeThenEmitNext(temp);
|
|
54
|
-
}
|
|
55
|
-
watch(() => props.condition, (val) => {
|
|
56
|
-
optionsLoad.value = true;
|
|
57
|
-
if (val) {
|
|
58
|
-
loadOptions();
|
|
59
|
-
}
|
|
60
|
-
}, { immediate: true });
|
|
61
|
-
watch(() => props.pidValue, (val) => {
|
|
62
|
-
if (val === "-1") {
|
|
63
|
-
dictOptions.value = [];
|
|
64
|
-
} else {
|
|
65
|
-
loadOptions();
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
watch(() => props.value, (newVal, oldVal) => {
|
|
69
|
-
console.log("\u503C\u6539\u53D8\u4E8B\u4EF6", newVal, oldVal);
|
|
70
|
-
if (!newVal) {
|
|
71
|
-
selectedValue.value = [];
|
|
72
|
-
if (oldVal) {
|
|
73
|
-
emit("change", "");
|
|
74
|
-
emit("next", "-1");
|
|
75
|
-
}
|
|
76
|
-
} else {
|
|
77
|
-
selectedValue.value = newVal;
|
|
78
|
-
}
|
|
79
|
-
if (newVal && !oldVal) {
|
|
80
|
-
handleFirstValueSetting(newVal);
|
|
81
|
-
}
|
|
82
|
-
}, { immediate: true });
|
|
83
|
-
function handleFirstValueSetting(value) {
|
|
84
|
-
return __async(this, null, function* () {
|
|
85
|
-
if (props.idField === props.store) {
|
|
86
|
-
emit("next", value);
|
|
87
|
-
} else {
|
|
88
|
-
if (props.origin === true) {
|
|
89
|
-
yield getSelfOptions();
|
|
90
|
-
valueChangeThenEmitNext(value);
|
|
91
|
-
} else {
|
|
92
|
-
let arr = yield loadValueText();
|
|
93
|
-
valueChangeThenEmitNext(value, arr);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
function loadOptions() {
|
|
99
|
-
let params = getQueryParams();
|
|
100
|
-
if (props.origin === true) {
|
|
101
|
-
params["condition"] = props.condition;
|
|
102
|
-
} else {
|
|
103
|
-
params["pidValue"] = props.pidValue;
|
|
104
|
-
}
|
|
105
|
-
console.log("\u8BF7\u6C42\u53C2\u6570", params);
|
|
106
|
-
dictOptions.value = [];
|
|
107
|
-
defHttp.get({ url: SELECT_OPTIONS_URL, params }, { isTransformResponse: false }).then((res) => {
|
|
108
|
-
if (res.success) {
|
|
109
|
-
dictOptions.value = [...res.result];
|
|
110
|
-
console.log("\u8BF7\u6C42\u7ED3\u679C", res.result, dictOptions);
|
|
111
|
-
} else {
|
|
112
|
-
$message.warning("\u8054\u52A8\u7EC4\u4EF6\u6570\u636E\u52A0\u8F7D\u5931\u8D25,\u8BF7\u68C0\u67E5\u914D\u7F6E!");
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
function getQueryParams() {
|
|
117
|
-
let params = {
|
|
118
|
-
table: props.table,
|
|
119
|
-
txt: props.txt,
|
|
120
|
-
key: props.store,
|
|
121
|
-
idField: props.idField,
|
|
122
|
-
pidField: props.pidField
|
|
123
|
-
};
|
|
124
|
-
return params;
|
|
125
|
-
}
|
|
126
|
-
function loadValueText() {
|
|
127
|
-
return new Promise((resolve) => {
|
|
128
|
-
if (!props.value) {
|
|
129
|
-
selectedValue.value = [];
|
|
130
|
-
resolve([]);
|
|
131
|
-
} else {
|
|
132
|
-
let params = getQueryParams();
|
|
133
|
-
if (props.isNumber === true) {
|
|
134
|
-
params["condition"] = `${props.store} = ${props.value}`;
|
|
135
|
-
} else {
|
|
136
|
-
params["condition"] = `${props.store} = '${props.value}'`;
|
|
137
|
-
}
|
|
138
|
-
defHttp.get({ url: SELECT_OPTIONS_URL, params }, { isTransformResponse: false }).then((res) => {
|
|
139
|
-
if (res.success) {
|
|
140
|
-
resolve(res.result);
|
|
141
|
-
} else {
|
|
142
|
-
$message.warning("\u8054\u52A8\u7EC4\u4EF6\u6570\u636E\u52A0\u8F7D\u5931\u8D25,\u8BF7\u68C0\u67E5\u914D\u7F6E!");
|
|
143
|
-
resolve([]);
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
function getSelfOptions() {
|
|
150
|
-
return new Promise((resolve) => {
|
|
151
|
-
let index = 0;
|
|
152
|
-
(function next(index2) {
|
|
153
|
-
if (index2 > 10) {
|
|
154
|
-
resolve([]);
|
|
155
|
-
}
|
|
156
|
-
let arr = dictOptions.value;
|
|
157
|
-
if (arr && arr.length > 0) {
|
|
158
|
-
resolve(arr);
|
|
159
|
-
} else {
|
|
160
|
-
setTimeout(() => {
|
|
161
|
-
next(index2++);
|
|
162
|
-
}, 300);
|
|
163
|
-
}
|
|
164
|
-
})(index);
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
function valueChangeThenEmitNext(value, arr = []) {
|
|
168
|
-
if (value && value.length > 0) {
|
|
169
|
-
if (!arr || arr.length == 0) {
|
|
170
|
-
arr = dictOptions.value;
|
|
171
|
-
}
|
|
172
|
-
let selected = arr.filter((item) => item.store === value);
|
|
173
|
-
if (selected && selected.length > 0) {
|
|
174
|
-
let id = selected[0].id;
|
|
175
|
-
emit("next", id);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
return {
|
|
180
|
-
selectedValue,
|
|
181
|
-
dictOptions,
|
|
182
|
-
handleChange
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
|
-
const _hoisted_1 = ["title"];
|
|
187
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
188
|
-
const _component_a_select_option = resolveComponent("a-select-option");
|
|
189
|
-
const _component_a_select = resolveComponent("a-select");
|
|
190
|
-
return openBlock(), createBlock(_component_a_select, {
|
|
191
|
-
placeholder: _ctx.placeholder,
|
|
192
|
-
value: _ctx.selectedValue,
|
|
193
|
-
onChange: _ctx.handleChange,
|
|
194
|
-
allowClear: "",
|
|
195
|
-
style: { "width": "100%" }
|
|
196
|
-
}, {
|
|
197
|
-
default: withCtx(() => [
|
|
198
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dictOptions, (item, index) => {
|
|
199
|
-
return openBlock(), createBlock(_component_a_select_option, {
|
|
200
|
-
key: index,
|
|
201
|
-
value: item.store
|
|
202
|
-
}, {
|
|
203
|
-
default: withCtx(() => [
|
|
204
|
-
createElementVNode("span", {
|
|
205
|
-
style: { "display": "inline-block", "width": "100%" },
|
|
206
|
-
title: item.label
|
|
207
|
-
}, toDisplayString(item.label), 9, _hoisted_1)
|
|
208
|
-
]),
|
|
209
|
-
_: 2
|
|
210
|
-
}, 1032, ["value"]);
|
|
211
|
-
}), 128))
|
|
212
|
-
]),
|
|
213
|
-
_: 1
|
|
214
|
-
}, 8, ["placeholder", "value", "onChange"]);
|
|
215
|
-
}
|
|
216
|
-
var OnlineSelectCascade = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
217
|
-
export { OnlineSelectCascade as default };
|
package/OnlineSubForm.js
DELETED
|
@@ -1,200 +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 { useMessage } from "/@/hooks/web/useMessage";
|
|
22
|
-
import { ref, watch, resolveComponent, openBlock, createBlock, unref, toRaw } from "vue";
|
|
23
|
-
import { BasicForm, useForm } from "/@/components/Form/index";
|
|
24
|
-
import { defHttp } from "/@/utils/http/axios";
|
|
25
|
-
import { a as useFormItems, g as getRefPromise, l as loadFormFieldsDefVal } from "./useAutoForm.js";
|
|
26
|
-
import { Loading } from "/@/components/Loading";
|
|
27
|
-
import { _ as _export_sfc } from "./index.js";
|
|
28
|
-
import "./FormSchemaFactory.js";
|
|
29
|
-
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
30
|
-
import "/@/views/system/user/user.api";
|
|
31
|
-
import "/@/store/modules/user";
|
|
32
|
-
import "/@/utils";
|
|
33
|
-
import "/@/utils/desform/customExpression";
|
|
34
|
-
import "/@/components/Form/src/componentMap";
|
|
35
|
-
import "./OnlineSelectCascade.js";
|
|
36
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
37
|
-
import "vue-router";
|
|
38
|
-
const baseUrl = "/online/cgform/api/subform";
|
|
39
|
-
const _sfc_main = {
|
|
40
|
-
name: "OnlineSubForm",
|
|
41
|
-
components: {
|
|
42
|
-
BasicForm,
|
|
43
|
-
Loading
|
|
44
|
-
},
|
|
45
|
-
props: {
|
|
46
|
-
properties: {
|
|
47
|
-
type: Object,
|
|
48
|
-
required: true
|
|
49
|
-
},
|
|
50
|
-
mainId: {
|
|
51
|
-
type: String,
|
|
52
|
-
default: ""
|
|
53
|
-
},
|
|
54
|
-
table: {
|
|
55
|
-
type: String,
|
|
56
|
-
default: ""
|
|
57
|
-
},
|
|
58
|
-
formTemplate: {
|
|
59
|
-
type: Number,
|
|
60
|
-
default: 1
|
|
61
|
-
},
|
|
62
|
-
requiredFields: {
|
|
63
|
-
type: Array,
|
|
64
|
-
default: []
|
|
65
|
-
},
|
|
66
|
-
isUpdate: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: false
|
|
69
|
-
},
|
|
70
|
-
disabled: {
|
|
71
|
-
type: Boolean,
|
|
72
|
-
default: false
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
emits: ["formChange"],
|
|
76
|
-
setup(props, { emit }) {
|
|
77
|
-
console.log("\u8FDB\u5165online\u5B50\u8868\u8868\u5355\u9875\u9762\u300B\u300B\u300B\u300B" + props.table);
|
|
78
|
-
const onlineFormRef = ref(null);
|
|
79
|
-
const formRendered = ref(false);
|
|
80
|
-
useMessage();
|
|
81
|
-
const { formSchemas, defaultValueFields, changeDataIfArray2String, tableName, dbData, checkOnlyFieldValue, fieldDisplayStatus, createFormSchemas, baseColProps } = useFormItems(props, onlineFormRef);
|
|
82
|
-
const [registerForm, { setProps, validate, resetFields, setFieldsValue, getFieldsValue }] = useForm({
|
|
83
|
-
schemas: formSchemas,
|
|
84
|
-
showActionButtonGroup: false,
|
|
85
|
-
baseColProps
|
|
86
|
-
});
|
|
87
|
-
watch(() => props.table, () => {
|
|
88
|
-
tableName.value = props.table;
|
|
89
|
-
}, { immediate: true });
|
|
90
|
-
watch(() => props.properties, (valueObj) => {
|
|
91
|
-
console.log("\u4E3B\u8868properties\u6539\u53D8", props.properties);
|
|
92
|
-
formRendered.value = false;
|
|
93
|
-
addFormChangeEvent();
|
|
94
|
-
createFormSchemas(props.properties, props.requiredFields, checkOnlyFieldValue);
|
|
95
|
-
formRendered.value = true;
|
|
96
|
-
}, { deep: true, immediate: true });
|
|
97
|
-
watch(() => props.mainId, (valueObj) => {
|
|
98
|
-
console.log("\u4E3B\u8868ID\u6539\u53D8", props.mainId);
|
|
99
|
-
setTimeout(() => {
|
|
100
|
-
resetSubForm();
|
|
101
|
-
}, 100);
|
|
102
|
-
}, { immediate: true });
|
|
103
|
-
watch(() => props.disabled, (val) => {
|
|
104
|
-
setProps({ disabled: val });
|
|
105
|
-
});
|
|
106
|
-
function addFormChangeEvent() {
|
|
107
|
-
return __async(this, null, function* () {
|
|
108
|
-
let formRefObject = yield getRefPromise(onlineFormRef);
|
|
109
|
-
formRefObject.$formValueChange = (field, value) => {
|
|
110
|
-
let emitArgument = { [field]: value };
|
|
111
|
-
emit("formChange", emitArgument);
|
|
112
|
-
};
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
function handleDefaultValue() {
|
|
116
|
-
if (unref(props.isUpdate) === false) {
|
|
117
|
-
let fieldProperties = toRaw(defaultValueFields[tableName.value]);
|
|
118
|
-
loadFormFieldsDefVal(fieldProperties, (values) => {
|
|
119
|
-
setFieldsValue(values);
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
function resetSubForm() {
|
|
124
|
-
return __async(this, null, function* () {
|
|
125
|
-
yield getRefPromise(formRendered);
|
|
126
|
-
yield resetFields();
|
|
127
|
-
handleDefaultValue();
|
|
128
|
-
const { table, mainId } = props;
|
|
129
|
-
if (!table || !mainId) {
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
let values = yield loadData(table, mainId);
|
|
133
|
-
dbData.value = values;
|
|
134
|
-
yield setFieldsValue(values);
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
function loadData(table, mainId) {
|
|
138
|
-
let url = `${baseUrl}/${table}/${mainId}`;
|
|
139
|
-
return new Promise((resolve, reject) => {
|
|
140
|
-
defHttp.get({ url }, { isTransformResponse: false }).then((res) => {
|
|
141
|
-
console.log(res);
|
|
142
|
-
if (res.success) {
|
|
143
|
-
resolve(res.result);
|
|
144
|
-
} else {
|
|
145
|
-
console.log(res.message);
|
|
146
|
-
reject();
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
}).finally(() => {
|
|
150
|
-
dbData.value = "";
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
function getAll() {
|
|
154
|
-
return new Promise((resolve, reject) => {
|
|
155
|
-
validate().then(() => {
|
|
156
|
-
let formData = getFieldsValue();
|
|
157
|
-
formData = changeDataIfArray2String(formData);
|
|
158
|
-
resolve(formData);
|
|
159
|
-
}).catch((e) => {
|
|
160
|
-
reject(e);
|
|
161
|
-
});
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
function getFormEvent() {
|
|
165
|
-
let row = getFieldsValue();
|
|
166
|
-
if (!row.id) {
|
|
167
|
-
row.id = "sub-change-temp-id";
|
|
168
|
-
}
|
|
169
|
-
return {
|
|
170
|
-
row,
|
|
171
|
-
target: context
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
function setValues(values) {
|
|
175
|
-
setFieldsValue(values);
|
|
176
|
-
}
|
|
177
|
-
const context = {
|
|
178
|
-
onlineFormRef,
|
|
179
|
-
baseColProps,
|
|
180
|
-
formSchemas,
|
|
181
|
-
registerForm,
|
|
182
|
-
setFieldsValue,
|
|
183
|
-
getFieldsValue,
|
|
184
|
-
getFormEvent,
|
|
185
|
-
setValues,
|
|
186
|
-
getAll,
|
|
187
|
-
sh: fieldDisplayStatus
|
|
188
|
-
};
|
|
189
|
-
return context;
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
193
|
-
const _component_BasicForm = resolveComponent("BasicForm");
|
|
194
|
-
return openBlock(), createBlock(_component_BasicForm, {
|
|
195
|
-
ref: "onlineFormRef",
|
|
196
|
-
onRegister: _ctx.registerForm
|
|
197
|
-
}, null, 8, ["onRegister"]);
|
|
198
|
-
}
|
|
199
|
-
var OnlineSubForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
200
|
-
export { OnlineSubForm as default };
|
package/ParamsTable.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, createElementVNode } from "vue";
|
|
2
|
-
import { JVxeTypes } from "/@/components/jeecg/JVxeTable/types";
|
|
3
|
-
import { _ as _export_sfc } from "./index.js";
|
|
4
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
5
|
-
import "/@/hooks/web/useMessage";
|
|
6
|
-
import "vue-router";
|
|
7
|
-
const _sfc_main = defineComponent({
|
|
8
|
-
name: "FieldTable",
|
|
9
|
-
props: {
|
|
10
|
-
loading: Boolean,
|
|
11
|
-
dataSource: Array
|
|
12
|
-
},
|
|
13
|
-
setup() {
|
|
14
|
-
const tableRef = ref();
|
|
15
|
-
const columns = ref([
|
|
16
|
-
{
|
|
17
|
-
title: "\u53C2\u6570",
|
|
18
|
-
key: "paramName",
|
|
19
|
-
width: 230,
|
|
20
|
-
type: JVxeTypes.input,
|
|
21
|
-
defaultValue: "",
|
|
22
|
-
placeholder: "\u8BF7\u8F93\u5165${title}",
|
|
23
|
-
validateRules: [{ required: true, message: "${title}\u4E0D\u80FD\u4E3A\u7A7A" }]
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
title: "\u53C2\u6570\u6587\u672C",
|
|
27
|
-
key: "paramTxt",
|
|
28
|
-
width: 230,
|
|
29
|
-
type: JVxeTypes.input,
|
|
30
|
-
defaultValue: "",
|
|
31
|
-
placeholder: "\u8BF7\u8F93\u5165${title}",
|
|
32
|
-
validateRules: [{ required: true, message: "${title}\u4E0D\u80FD\u4E3A\u7A7A" }]
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
title: "\u9ED8\u8BA4\u503C",
|
|
36
|
-
key: "paramValue",
|
|
37
|
-
type: JVxeTypes.input,
|
|
38
|
-
defaultValue: "",
|
|
39
|
-
placeholder: "\u8BF7\u8F93\u5165${title}"
|
|
40
|
-
}
|
|
41
|
-
]);
|
|
42
|
-
return { tableRef, columns };
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
const _hoisted_1 = /* @__PURE__ */ createElementVNode("br", null, null, -1);
|
|
46
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
47
|
-
const _component_a_alert = resolveComponent("a-alert");
|
|
48
|
-
const _component_JVxeTable = resolveComponent("JVxeTable");
|
|
49
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
50
|
-
createVNode(_component_a_alert, {
|
|
51
|
-
type: "info",
|
|
52
|
-
showIcon: "",
|
|
53
|
-
message: "\u76EE\u524D\u53EA\u6709SQL\u6A21\u5F0F\u624D\u652F\u6301\u62A5\u8868\u53C2\u6570\uFF01"
|
|
54
|
-
}),
|
|
55
|
-
_hoisted_1,
|
|
56
|
-
createVNode(_component_JVxeTable, {
|
|
57
|
-
ref: "tableRef",
|
|
58
|
-
toolbar: "",
|
|
59
|
-
rowNumber: "",
|
|
60
|
-
rowSelection: "",
|
|
61
|
-
dragSort: "",
|
|
62
|
-
sortKey: "orderNum",
|
|
63
|
-
loading: _ctx.loading,
|
|
64
|
-
columns: _ctx.columns,
|
|
65
|
-
dataSource: _ctx.dataSource,
|
|
66
|
-
height: 336
|
|
67
|
-
}, null, 8, ["loading", "columns", "dataSource"])
|
|
68
|
-
], 64);
|
|
69
|
-
}
|
|
70
|
-
var ParamsTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
71
|
-
export { ParamsTable as default };
|
package/graphreport.api.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { defHttp } from "/@/utils/http/axios";
|
|
2
|
-
var Api = /* @__PURE__ */ ((Api2) => {
|
|
3
|
-
Api2["list"] = "/online/graphreport/head/list";
|
|
4
|
-
Api2["delete"] = "/online/graphreport/head/delete";
|
|
5
|
-
Api2["deleteBatch"] = "/online/graphreport/head/deleteBatch";
|
|
6
|
-
Api2["exportXls"] = "/online/graphreport/head/exportXls";
|
|
7
|
-
Api2["importXls"] = "/online/graphreport/head/importExcel";
|
|
8
|
-
Api2["paramsList"] = "/online/graphreport/params/listByHeadId";
|
|
9
|
-
Api2["getChartsData"] = "/online/graphreport/api/getChartsData";
|
|
10
|
-
Api2["getParamsInfo"] = "/online/graphreport/params/listByHeadId";
|
|
11
|
-
return Api2;
|
|
12
|
-
})(Api || {});
|
|
13
|
-
const list = (params) => defHttp.get({ url: "/online/graphreport/head/list", params });
|
|
14
|
-
function doBatchDelete(idList) {
|
|
15
|
-
return defHttp.delete({
|
|
16
|
-
url: "/online/graphreport/head/deleteBatch",
|
|
17
|
-
params: { ids: idList.join(",") }
|
|
18
|
-
}, { joinParamsToUrl: true });
|
|
19
|
-
}
|
|
20
|
-
const queryParamsList = (headId) => defHttp.get({ url: "/online/graphreport/params/listByHeadId", params: { headId } });
|
|
21
|
-
const getChartsData = (params) => defHttp.get({ url: "/online/graphreport/api/getChartsData", params });
|
|
22
|
-
const getParamsInfo = (params) => defHttp.get({ url: "/online/graphreport/params/listByHeadId", params });
|
|
23
|
-
export { Api as A, getChartsData as a, doBatchDelete as d, getParamsInfo as g, list as l, queryParamsList as q };
|