From c18906f7bc4e8a03ab9a3750501470c0f21f19d5 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Thu, 13 Jun 2024 10:57:27 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix(=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6):?= =?UTF-8?q?=20=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/config/dev.ts | 2 +- core/core-frontend/package.json | 2 +- .../custom-component/v-query/Component.vue | 53 +++- .../custom-component/v-query/TextSearch.vue | 9 +- .../modules/data-visualization/dvMain.ts | 14 +- .../editor/editor-style/VQueryChartStyle.vue | 295 +++++++++++++----- .../datasource/form/ApiHttpRequestDraw.vue | 29 +- 7 files changed, 310 insertions(+), 94 deletions(-) diff --git a/core/core-frontend/config/dev.ts b/core/core-frontend/config/dev.ts index ca7bea35d7..b3beee730c 100644 --- a/core/core-frontend/config/dev.ts +++ b/core/core-frontend/config/dev.ts @@ -8,7 +8,7 @@ export default { }, // 使用 proxy 实例 '/api': { - target: 'http://localhost:8100', + target: 'https://de2.fit2cloud.com', changeOrigin: true, rewrite: path => path.replace(/^\/api/, 'de2api') } diff --git a/core/core-frontend/package.json b/core/core-frontend/package.json index 52c84a2245..57f0d3e610 100644 --- a/core/core-frontend/package.json +++ b/core/core-frontend/package.json @@ -27,7 +27,7 @@ "axios": "^1.3.3", "crypto-js": "^4.1.1", "dayjs": "^1.11.9", - "element-plus-secondary": "^0.5.9", + "element-plus-secondary": "^0.5.10", "element-resize-detector": "^1.2.4", "file-saver": "^2.0.5", "flv.js": "^1.6.2", diff --git a/core/core-frontend/src/custom-component/v-query/Component.vue b/core/core-frontend/src/custom-component/v-query/Component.vue index e660c25c6d..32d255d686 100644 --- a/core/core-frontend/src/custom-component/v-query/Component.vue +++ b/core/core-frontend/src/custom-component/v-query/Component.vue @@ -24,6 +24,7 @@ import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain' import { comInfo } from './com-info' import { useEmitt } from '@/hooks/web/useEmitt' import StyleInject from './StyleInject.vue' +import { backgroundSize } from 'html2canvas/dist/types/css/property-descriptors/background-size' const props = defineProps({ view: { type: Object, @@ -69,11 +70,23 @@ const defaultStyle = { titleShow: false, titleColor: '', textColorShow: false, - labelColor: '', bgColorShow: false, borderShow: false, labelColorShow: false, - title: '' + labelShow: true, + title: '', + labelColor: '#1f2329', + fontSize: '14', + fontWeight: '', + fontStyle: '', + fontSizeBtn: '14', + fontWeightBtn: '', + fontStyleBtn: '', + queryConditionWidth: 227, + nameboxSpacing: 8, + queryConditionSpacing: 16, + btnColor: '#3370ff', + labelColorBtn: '#ffffff' } const customStyle = reactive({ ...defaultStyle }) const snapshotStore = snapshotStoreWithOut() @@ -92,14 +105,25 @@ const setCustomStyle = val => { btnList, titleLayout, labelColor, - labelColorShow, text, bgColor, layout, titleShow, titleColor, textColorShow, - title + title, + fontSize, + fontWeight, + fontStyle, + fontSizeBtn, + fontWeightBtn, + fontStyleBtn, + queryConditionWidth, + nameboxSpacing, + queryConditionSpacing, + labelColorBtn, + btnColor, + labelShow } = val customStyle.background = bgColorShow ? bgColor || '' : '' customStyle.border = borderShow ? borderColor || '' : '' @@ -107,10 +131,22 @@ const setCustomStyle = val => { customStyle.layout = layout customStyle.titleShow = titleShow customStyle.titleColor = titleColor - customStyle.labelColor = labelColorShow ? labelColor || '' : '' + customStyle.labelColor = labelShow ? labelColor || '' : '' + customStyle.fontSize = labelShow ? fontSize || '14' : '14' + customStyle.fontWeight = labelShow ? fontWeight || '' : '' + customStyle.fontStyle = labelShow ? fontStyle || '' : '' customStyle.title = title customStyle.text = textColorShow ? text || '' : '' customStyle.titleLayout = titleLayout + customStyle.fontSizeBtn = fontSizeBtn || '14' + customStyle.fontWeightBtn = fontWeightBtn + customStyle.fontStyleBtn = fontStyleBtn + customStyle.queryConditionWidth = queryConditionWidth || 227 + customStyle.nameboxSpacing = nameboxSpacing || 8 + customStyle.queryConditionSpacing = queryConditionSpacing || 16 + customStyle.labelColorBtn = labelColorBtn || '#ffffff' + customStyle.labelShow = labelShow || true + customStyle.btnColor = btnColor || '#3370ff' } watch( @@ -431,7 +467,7 @@ const autoStyle = computed(() => {
-
+
{{ ele.name }} @@ -470,6 +506,11 @@ const autoStyle = computed(() => { diff --git a/core/core-frontend/src/custom-component/v-query/TextSearch.vue b/core/core-frontend/src/custom-component/v-query/TextSearch.vue index ac3b69fd8d..d14d0c6645 100644 --- a/core/core-frontend/src/custom-component/v-query/TextSearch.vue +++ b/core/core-frontend/src/custom-component/v-query/TextSearch.vue @@ -1,5 +1,7 @@