@fecp/designer 5.1.3 → 5.1.5
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/config-prod.js +1 -1
- package/es/designer.css +33 -33
- package/es/packages/designer/src/axios/config.mjs +5 -6
- package/es/packages/designer/src/layout/index.vue.mjs +12 -29
- package/es/packages/designer/src/packages/dataSource/dataSource.vue.mjs +3 -4
- package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
- package/lib/config-prod.js +1 -1
- package/lib/designer.css +33 -33
- package/lib/packages/designer/src/axios/config.js +5 -6
- package/lib/packages/designer/src/layout/index.vue.js +11 -28
- package/lib/packages/designer/src/packages/dataSource/dataSource.vue.js +3 -4
- package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { aes } from "./crypto.mjs";
|
|
2
2
|
import "../../../../node_modules/.pnpm/axios@1.8.4/node_modules/axios/index.mjs";
|
|
3
|
-
import envConfig from "../utils/env.mjs";
|
|
4
3
|
/* empty css */
|
|
5
4
|
/* empty css */
|
|
6
5
|
/* empty css */
|
|
@@ -12,8 +11,8 @@ import axios from "../../../../node_modules/.pnpm/axios@1.8.4/node_modules/axios
|
|
|
12
11
|
import { ElMessage } from "../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/message/index.mjs";
|
|
13
12
|
import { ElMessageBox } from "../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/message-box/index.mjs";
|
|
14
13
|
const service = axios.create({
|
|
15
|
-
baseURL:
|
|
16
|
-
timeout:
|
|
14
|
+
baseURL: $api_base_url,
|
|
15
|
+
timeout: $api_timeout
|
|
17
16
|
});
|
|
18
17
|
service.interceptors.request.use(
|
|
19
18
|
(config) => {
|
|
@@ -23,8 +22,8 @@ service.interceptors.request.use(
|
|
|
23
22
|
config.headers.token = window.$store.getters.token;
|
|
24
23
|
config.headers.refreshToken = window.$store.getters.refreshToken;
|
|
25
24
|
}
|
|
26
|
-
config.headers.crypto =
|
|
27
|
-
config.headers.sig =
|
|
25
|
+
config.headers.crypto = $data_crypto || false;
|
|
26
|
+
config.headers.sig = $data_verify_sign || false;
|
|
28
27
|
return config;
|
|
29
28
|
},
|
|
30
29
|
(error) => {
|
|
@@ -55,7 +54,7 @@ service.interceptors.response.use(
|
|
|
55
54
|
});
|
|
56
55
|
}
|
|
57
56
|
let responseData = response.data.data;
|
|
58
|
-
let isCrypto =
|
|
57
|
+
let isCrypto = $data_crypto || false;
|
|
59
58
|
if (isCrypto && responseData) {
|
|
60
59
|
let decryptData = aes.de(responseData);
|
|
61
60
|
let resultJson = JSON.parse(decryptData);
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
|
-
/* empty css */
|
|
4
3
|
/* empty css */
|
|
5
4
|
/* empty css */
|
|
6
5
|
/* empty css */
|
|
7
6
|
/* empty css */
|
|
8
7
|
/* empty css */
|
|
9
8
|
import "../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/theme-chalk/el-config-provider.css.mjs";
|
|
10
|
-
import { ref, computed, createBlock, openBlock, unref, withCtx, createElementBlock, createCommentVNode, createVNode, resolveDynamicComponent
|
|
9
|
+
import { ref, computed, createBlock, openBlock, unref, withCtx, createElementBlock, createCommentVNode, createVNode, resolveDynamicComponent } from "vue";
|
|
11
10
|
import zhCn from "../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/locale/lang/zh-cn.mjs";
|
|
12
|
-
import { useRoute, useRouter } from "../../../../node_modules/.pnpm/vue-router@4.5.0_vue@3.5.13_typescript@5.7.3_/node_modules/vue-router/dist/vue-router.mjs";
|
|
13
11
|
import LayoutAside from "./aside/index.vue.mjs";
|
|
14
12
|
import _sfc_main$1 from "./header/index.vue.mjs";
|
|
15
13
|
import LayoutProperty from "./property/index.vue.mjs";
|
|
@@ -25,7 +23,6 @@ import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
|
25
23
|
import { ElConfigProvider } from "../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/config-provider/index.mjs";
|
|
26
24
|
import { ElContainer, ElMain } from "../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/container/index.mjs";
|
|
27
25
|
import { ElResult } from "../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/result/index.mjs";
|
|
28
|
-
import { ElButton } from "../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/button/index.mjs";
|
|
29
26
|
const _hoisted_1 = {
|
|
30
27
|
key: 1,
|
|
31
28
|
class: "init-error-container"
|
|
@@ -33,18 +30,9 @@ const _hoisted_1 = {
|
|
|
33
30
|
const _sfc_main = {
|
|
34
31
|
__name: "index",
|
|
35
32
|
setup(__props) {
|
|
36
|
-
const
|
|
37
|
-
const router = useRouter();
|
|
38
|
-
const pkId = route.query.pkId;
|
|
33
|
+
const pkId = getUrlParam("pkId");
|
|
39
34
|
const isInitd = ref(0);
|
|
40
35
|
const compRef = ref(null);
|
|
41
|
-
function goBack() {
|
|
42
|
-
if (window.history.length > 1) {
|
|
43
|
-
router.back();
|
|
44
|
-
} else {
|
|
45
|
-
window.close();
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
36
|
if (!pkId) {
|
|
49
37
|
isInitd.value = -1;
|
|
50
38
|
} else {
|
|
@@ -94,11 +82,19 @@ const _sfc_main = {
|
|
|
94
82
|
var _a;
|
|
95
83
|
(_a = compRef.value) == null ? void 0 : _a.onFormDragMove(event);
|
|
96
84
|
}
|
|
85
|
+
function getUrlParam(key) {
|
|
86
|
+
const targetUrl = window.location.href;
|
|
87
|
+
const searchStr = targetUrl.split("?")[1] || "";
|
|
88
|
+
if (!searchStr) return null;
|
|
89
|
+
const params = new URLSearchParams(searchStr);
|
|
90
|
+
const values = params.getAll(key);
|
|
91
|
+
if (values.length === 0) return null;
|
|
92
|
+
return values.length === 1 ? values[0] : values;
|
|
93
|
+
}
|
|
97
94
|
return (_ctx, _cache) => {
|
|
98
95
|
const _component_el_config_provider = ElConfigProvider;
|
|
99
96
|
const _component_el_main = ElMain;
|
|
100
97
|
const _component_el_container = ElContainer;
|
|
101
|
-
const _component_el_button = ElButton;
|
|
102
98
|
const _component_el_result = ElResult;
|
|
103
99
|
return openBlock(), createBlock(_component_el_config_provider, { locale: unref(zhCn) }, {
|
|
104
100
|
default: withCtx(() => [
|
|
@@ -136,19 +132,6 @@ const _sfc_main = {
|
|
|
136
132
|
icon: "warning",
|
|
137
133
|
title: "缺少模板ID",
|
|
138
134
|
"sub-title": "请提供有效的模板ID(pkId)参数"
|
|
139
|
-
}, {
|
|
140
|
-
extra: withCtx(() => [
|
|
141
|
-
createVNode(_component_el_button, {
|
|
142
|
-
type: "primary",
|
|
143
|
-
onClick: goBack
|
|
144
|
-
}, {
|
|
145
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
146
|
-
createTextVNode("返回")
|
|
147
|
-
])),
|
|
148
|
-
_: 1
|
|
149
|
-
})
|
|
150
|
-
]),
|
|
151
|
-
_: 1
|
|
152
135
|
})
|
|
153
136
|
])) : createCommentVNode("", true)
|
|
154
137
|
]),
|
|
@@ -157,7 +140,7 @@ const _sfc_main = {
|
|
|
157
140
|
};
|
|
158
141
|
}
|
|
159
142
|
};
|
|
160
|
-
const layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
143
|
+
const layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1a439119"]]);
|
|
161
144
|
export {
|
|
162
145
|
layout as default
|
|
163
146
|
};
|
|
@@ -20,7 +20,6 @@ import "../../store/index.mjs";
|
|
|
20
20
|
import { JsonViewer as Q } from "../../../../../node_modules/.pnpm/vue3-json-viewer@2.4.1_vue@3.5.13_typescript@5.7.3_/node_modules/vue3-json-viewer/dist/vue3-json-viewer.mjs";
|
|
21
21
|
/* empty css */
|
|
22
22
|
import { get, post, postForm } from "../../axios/index.mjs";
|
|
23
|
-
import envConfig from "../../utils/env.mjs";
|
|
24
23
|
/* empty css */
|
|
25
24
|
/* empty css */
|
|
26
25
|
/* empty css */
|
|
@@ -64,10 +63,10 @@ const _sfc_main = {
|
|
|
64
63
|
const responseData = ref("");
|
|
65
64
|
const requestTime = ref(0);
|
|
66
65
|
const serversOptions = ref([]);
|
|
67
|
-
for (const key in
|
|
66
|
+
for (const key in $servers) {
|
|
68
67
|
serversOptions.value.push({
|
|
69
68
|
label: key,
|
|
70
|
-
value:
|
|
69
|
+
value: $servers[key]
|
|
71
70
|
});
|
|
72
71
|
}
|
|
73
72
|
watch(
|
|
@@ -359,7 +358,7 @@ const _sfc_main = {
|
|
|
359
358
|
};
|
|
360
359
|
}
|
|
361
360
|
};
|
|
362
|
-
const DataSource = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
361
|
+
const DataSource = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-361f30b7"]]);
|
|
363
362
|
export {
|
|
364
363
|
DataSource as default
|
|
365
364
|
};
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { createBlock, openBlock, withCtx, createVNode, renderSlot } from "vue";
|
|
9
|
-
/* empty css */
|
|
10
|
-
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
11
9
|
/* empty css */
|
|
12
10
|
/* empty css */
|
|
13
11
|
/* empty css */
|
|
14
12
|
/* empty css */
|
|
15
13
|
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
|
+
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
16
16
|
import { SwipeCell } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/swipe-cell/index.mjs";
|
|
17
17
|
import { showConfirmDialog } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/dialog/function-call.mjs";
|
|
18
18
|
import "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/dialog/index.mjs";
|