@fecp/designer 5.5.7 → 5.5.9
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/es/_virtual/_commonjsHelpers.mjs +0 -27
- package/es/designer/package.json.mjs +1 -1
- package/es/designer/src/packages/dataLinkage/index.vue.mjs +0 -1
- package/es/designer/src/packages/dataSource/dataSource.vue.mjs +7 -6
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +0 -1
- package/es/designer/src/packages/table/headerBtn.vue.mjs +0 -1
- package/es/designer/src/packages/utils/datasource.mjs +1 -2
- package/es/designer/src/utils/optionLoader.mjs +10 -9
- package/es/designer.css +79 -77
- package/es/node_modules/element-plus/es/utils/vue/icon.mjs +1 -1
- package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +1 -1
- package/es/packages/vue/src/components/table/TableFilter.vue.mjs +2 -2
- package/lib/_virtual/_commonjsHelpers.js +0 -27
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/packages/dataLinkage/index.vue.js +0 -1
- package/lib/designer/src/packages/dataSource/dataSource.vue.js +6 -5
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +0 -1
- package/lib/designer/src/packages/table/headerBtn.vue.js +0 -1
- package/lib/designer/src/packages/utils/datasource.js +6 -7
- package/lib/designer/src/utils/optionLoader.js +10 -9
- package/lib/designer.css +79 -77
- package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +1 -1
- package/lib/packages/vue/src/components/table/TableFilter.vue.js +2 -2
- package/package.json +1 -1
|
@@ -52,7 +52,7 @@ const _sfc_main = {
|
|
|
52
52
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
53
53
|
var _a;
|
|
54
54
|
useCssVars((_ctx) => ({
|
|
55
|
-
"
|
|
55
|
+
"04738910": `${config.value.collapseRows * 90}px`
|
|
56
56
|
}));
|
|
57
57
|
const props = __props;
|
|
58
58
|
const emit = __emit;
|
|
@@ -298,7 +298,7 @@ const _sfc_main = {
|
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
300
|
};
|
|
301
|
-
const TableFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
301
|
+
const TableFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9c6e8c47"]]);
|
|
302
302
|
export {
|
|
303
303
|
TableFilter as default
|
|
304
304
|
};
|
|
@@ -1,33 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
4
3
|
function getDefaultExportFromCjs(x) {
|
|
5
4
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
6
5
|
}
|
|
7
|
-
function getAugmentedNamespace(n) {
|
|
8
|
-
if (n.__esModule) return n;
|
|
9
|
-
var f = n.default;
|
|
10
|
-
if (typeof f == "function") {
|
|
11
|
-
var a = function a2() {
|
|
12
|
-
if (this instanceof a2) {
|
|
13
|
-
return Reflect.construct(f, arguments, this.constructor);
|
|
14
|
-
}
|
|
15
|
-
return f.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
a.prototype = f.prototype;
|
|
18
|
-
} else a = {};
|
|
19
|
-
Object.defineProperty(a, "__esModule", { value: true });
|
|
20
|
-
Object.keys(n).forEach(function(k) {
|
|
21
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
22
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function() {
|
|
25
|
-
return n[k];
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
return a;
|
|
30
|
-
}
|
|
31
|
-
exports.commonjsGlobal = commonjsGlobal;
|
|
32
|
-
exports.getAugmentedNamespace = getAugmentedNamespace;
|
|
33
6
|
exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
|
@@ -33,7 +33,6 @@ require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js
|
|
|
33
33
|
;/* empty css */
|
|
34
34
|
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
|
|
35
35
|
;/* empty css */
|
|
36
|
-
require("../../axios/config.js");
|
|
37
36
|
;/* empty css */
|
|
38
37
|
;/* empty css */
|
|
39
38
|
;/* empty css */
|
|
@@ -22,7 +22,6 @@ const ParamsConfig = require("../../components/ParamsConfig.vue2.js");
|
|
|
22
22
|
require("../../store/index.js");
|
|
23
23
|
const vue3JsonViewer = require("../../../../node_modules/vue3-json-viewer/dist/vue3-json-viewer.js");
|
|
24
24
|
;/* empty css */
|
|
25
|
-
const index$b = require("../../axios/index.js");
|
|
26
25
|
const env = require("../../utils/env.js");
|
|
27
26
|
;/* empty css */
|
|
28
27
|
;/* empty css */
|
|
@@ -66,6 +65,8 @@ const _sfc_main = {
|
|
|
66
65
|
requestConfigData: Object
|
|
67
66
|
},
|
|
68
67
|
setup(__props) {
|
|
68
|
+
const currentInstance = vue.getCurrentInstance();
|
|
69
|
+
const ctx = currentInstance.proxy;
|
|
69
70
|
const props = __props;
|
|
70
71
|
const activeName = vue.ref("requestConfig");
|
|
71
72
|
const loading = vue.ref(false);
|
|
@@ -113,12 +114,12 @@ const _sfc_main = {
|
|
|
113
114
|
if (requestConfig.method === "get") {
|
|
114
115
|
const queryString = new URLSearchParams(params).toString();
|
|
115
116
|
const url = queryString ? `${fullUrl}?${queryString}` : fullUrl;
|
|
116
|
-
res = await
|
|
117
|
+
res = await ctx.$http.get(url, loading.value);
|
|
117
118
|
} else {
|
|
118
119
|
if (requestConfig.contentType === "json") {
|
|
119
|
-
res = await
|
|
120
|
+
res = await ctx.$http.post(fullUrl, params, loading.value);
|
|
120
121
|
} else {
|
|
121
|
-
res = await
|
|
122
|
+
res = await ctx.$http.postForm(fullUrl, params, loading.value);
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
responseData.value = {
|
|
@@ -382,5 +383,5 @@ const _sfc_main = {
|
|
|
382
383
|
};
|
|
383
384
|
}
|
|
384
385
|
};
|
|
385
|
-
const DataSource = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
386
|
+
const DataSource = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-5c11127e"]]);
|
|
386
387
|
exports.default = DataSource;
|
|
@@ -94,7 +94,6 @@ require("../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
|
|
|
94
94
|
;/* empty css */
|
|
95
95
|
;/* empty css */
|
|
96
96
|
require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js");
|
|
97
|
-
require("../../axios/config.js");
|
|
98
97
|
;/* empty css */
|
|
99
98
|
;/* empty css */
|
|
100
99
|
;/* empty css */
|
|
@@ -93,7 +93,6 @@ const useAdvancedFilterDialog = require("../advancedFilter/useAdvancedFilterDial
|
|
|
93
93
|
;/* empty css */
|
|
94
94
|
;/* empty css */
|
|
95
95
|
require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js");
|
|
96
|
-
require("../../axios/config.js");
|
|
97
96
|
;/* empty css */
|
|
98
97
|
;/* empty css */
|
|
99
98
|
;/* empty css */
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const config = require("../../axios/config.js");
|
|
4
3
|
const vue = require("vue");
|
|
5
4
|
require("../../../../node_modules/element-plus/es/index.js");
|
|
6
5
|
;/* empty css */
|
|
@@ -9,7 +8,7 @@ require("../../../../node_modules/element-plus/es/index.js");
|
|
|
9
8
|
const index = require("../../../../node_modules/element-plus/es/components/message/index.js");
|
|
10
9
|
class DataSourceManager {
|
|
11
10
|
constructor(options = {}) {
|
|
12
|
-
this.http =
|
|
11
|
+
this.http = options.http;
|
|
13
12
|
this.params = options.params || {};
|
|
14
13
|
this.dataSources = options.dataSources || [];
|
|
15
14
|
this.currentDataSourceId = options.currentDataSourceId;
|
|
@@ -78,24 +77,24 @@ class DataSourceManager {
|
|
|
78
77
|
getRequestConfig() {
|
|
79
78
|
const currentDs = this.getCurrentDataSource();
|
|
80
79
|
if (!currentDs) return {};
|
|
81
|
-
const
|
|
80
|
+
const config = {
|
|
82
81
|
url: `/${currentDs.serverName}${currentDs.url}`,
|
|
83
82
|
method: currentDs.method
|
|
84
83
|
};
|
|
85
84
|
if (currentDs.contentType === "formData") {
|
|
86
|
-
|
|
85
|
+
config.headers = {
|
|
87
86
|
"Content-Type": "multipart/form-data"
|
|
88
87
|
};
|
|
89
88
|
} else if (currentDs.contentType === "formUrlencoded") {
|
|
90
|
-
|
|
89
|
+
config.headers = {
|
|
91
90
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
92
91
|
};
|
|
93
92
|
} else {
|
|
94
|
-
|
|
93
|
+
config.headers = {
|
|
95
94
|
"Content-Type": "application/json"
|
|
96
95
|
};
|
|
97
96
|
}
|
|
98
|
-
return
|
|
97
|
+
return config;
|
|
99
98
|
}
|
|
100
99
|
/**
|
|
101
100
|
* 发起请求
|
|
@@ -5,7 +5,7 @@ const datasource = require("../packages/utils/datasource.js");
|
|
|
5
5
|
const common = require("../packages/utils/common.js");
|
|
6
6
|
const simpleCache = require("./simpleCache.js");
|
|
7
7
|
const index = require("../api/index.js");
|
|
8
|
-
async function loadOptions(
|
|
8
|
+
async function loadOptions(ctx, config, callback) {
|
|
9
9
|
const { fieldType, optionConfig = {} } = config;
|
|
10
10
|
if (fieldType !== "select" && fieldType !== "multipleSelection" && fieldType !== "cascader" && fieldType !== "area" && fieldType !== "industry" && fieldType !== "radio" && fieldType !== "checkbox") {
|
|
11
11
|
const result = optionConfig.options || [];
|
|
@@ -15,7 +15,7 @@ async function loadOptions(ctx2, config, callback) {
|
|
|
15
15
|
const rawData = await simpleCache.getDataSourceWithConcurrencyControl(
|
|
16
16
|
"sysArea",
|
|
17
17
|
async () => {
|
|
18
|
-
const data = await index.default.getDataDicArea4Cascader(
|
|
18
|
+
const data = await index.default.getDataDicArea4Cascader(ctx.$http);
|
|
19
19
|
return data;
|
|
20
20
|
}
|
|
21
21
|
);
|
|
@@ -24,7 +24,7 @@ async function loadOptions(ctx2, config, callback) {
|
|
|
24
24
|
const rawData = await simpleCache.getDataSourceWithConcurrencyControl(
|
|
25
25
|
"sysIndustry",
|
|
26
26
|
async () => {
|
|
27
|
-
const data = await index.default.getDataDicTrade4Cascader(
|
|
27
|
+
const data = await index.default.getDataDicTrade4Cascader(ctx.$http);
|
|
28
28
|
return data;
|
|
29
29
|
}
|
|
30
30
|
);
|
|
@@ -44,6 +44,7 @@ async function loadOptions(ctx2, config, callback) {
|
|
|
44
44
|
try {
|
|
45
45
|
if (optionSource === "dataSource" && dataSourceValue) {
|
|
46
46
|
const result = await loadDataSourceOptions(
|
|
47
|
+
ctx,
|
|
47
48
|
dataSourceValue,
|
|
48
49
|
displayField,
|
|
49
50
|
valueField,
|
|
@@ -54,7 +55,7 @@ async function loadOptions(ctx2, config, callback) {
|
|
|
54
55
|
}
|
|
55
56
|
if (optionSource === "dictionary" && dictionaryValue) {
|
|
56
57
|
const result = await loadDictionaryOptions(
|
|
57
|
-
|
|
58
|
+
ctx,
|
|
58
59
|
dictionaryValue,
|
|
59
60
|
staticOptions
|
|
60
61
|
);
|
|
@@ -68,7 +69,7 @@ async function loadOptions(ctx2, config, callback) {
|
|
|
68
69
|
return staticOptions;
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
|
-
async function loadDataSourceOptions(dataSourceValue, displayField, valueField, fallbackOptions = []) {
|
|
72
|
+
async function loadDataSourceOptions(ctx, dataSourceValue, displayField, valueField, fallbackOptions = []) {
|
|
72
73
|
var _a, _b;
|
|
73
74
|
try {
|
|
74
75
|
const dataSources = common.getEditConfigDataSources();
|
|
@@ -107,11 +108,11 @@ async function loadDataSourceOptions(dataSourceValue, displayField, valueField,
|
|
|
107
108
|
return fallbackOptions;
|
|
108
109
|
}
|
|
109
110
|
}
|
|
110
|
-
async function loadDictionaryOptions(
|
|
111
|
+
async function loadDictionaryOptions(ctx, dictionaryValue, fallbackOptions = []) {
|
|
111
112
|
try {
|
|
112
113
|
const dictData = await simpleCache.getDictionaryWithConcurrencyControl(
|
|
113
114
|
dictionaryValue,
|
|
114
|
-
() => index.default.getDicDataByKey(
|
|
115
|
+
() => index.default.getDicDataByKey(ctx.$http, dictionaryValue)
|
|
115
116
|
);
|
|
116
117
|
const result = [];
|
|
117
118
|
for (const key in dictData) {
|
|
@@ -126,7 +127,7 @@ async function loadDictionaryOptions(ctx2, dictionaryValue, fallbackOptions = []
|
|
|
126
127
|
return fallbackOptions;
|
|
127
128
|
}
|
|
128
129
|
}
|
|
129
|
-
function useOptions(
|
|
130
|
+
function useOptions(ctx, config) {
|
|
130
131
|
const options = vue.ref([]);
|
|
131
132
|
const loading = vue.ref(false);
|
|
132
133
|
const configRef = isRef(config) ? config : vue.ref(config);
|
|
@@ -137,7 +138,7 @@ function useOptions(ctx2, config) {
|
|
|
137
138
|
if (!newConfig) return;
|
|
138
139
|
loading.value = true;
|
|
139
140
|
try {
|
|
140
|
-
const result = await loadOptions(
|
|
141
|
+
const result = await loadOptions(ctx, newConfig);
|
|
141
142
|
options.value = result;
|
|
142
143
|
} catch (error) {
|
|
143
144
|
console.error("加载选项失败:", error);
|