未跟踪文件提交
6
core/core-frontend/src/assets/svg/Excel-remote-ds.svg
Normal file
@ -0,0 +1,6 @@
|
||||
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M16 5.33335C16 3.86059 17.1939 2.66669 18.6667 2.66669H26.6667C28.1394 2.66669 29.3333 3.86059 29.3333 5.33335V13.3334C29.3333 14.8061 28.1394 16 26.6667 16H18.6667C17.1939 16 16 14.8061 16 13.3334V5.33335ZM18.6667 5.33335V13.3334H26.6667V5.33335H18.6667Z" fill="#34C724"/>
|
||||
<path d="M2.66666 18.6667C2.66666 17.1939 3.86057 16 5.33333 16H13.3333C14.8061 16 16 17.1939 16 18.6667V26.6667C16 28.1394 14.8061 29.3334 13.3333 29.3334H5.33333C3.86057 29.3334 2.66666 28.1394 2.66666 26.6667V18.6667ZM5.33333 18.6667V26.6667H13.3333V18.6667H5.33333Z" fill="#34C724"/>
|
||||
<path d="M4 9.33335C4 5.65146 6.98477 2.66669 10.6667 2.66669H13.3333V5.33335H10.6667C8.45753 5.33335 6.66666 7.12422 6.66666 9.33335H8.46364C8.80538 9.33335 8.98975 9.7342 8.76735 9.99367L5.63703 13.6457C5.4774 13.8319 5.18927 13.8319 5.02963 13.6457L1.89932 9.99367C1.67691 9.7342 1.86128 9.33335 2.20302 9.33335H4Z" fill="#34C724"/>
|
||||
<path d="M28 22.6667C28 26.3486 25.0152 29.3334 21.3333 29.3334H18.6667V26.6667H21.3333C23.5425 26.6667 25.3333 24.8758 25.3333 22.6667V22H23.5364C23.1946 22 23.0102 21.5992 23.2327 21.3397L26.363 17.6877C26.5226 17.5014 26.8107 17.5014 26.9704 17.6877L30.1007 21.3397C30.3231 21.5992 30.1387 22 29.797 22H28V22.6667Z" fill="#34C724"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
15
core/core-frontend/src/assets/svg/bullet-graph-dark.svg
Normal file
@ -0,0 +1,15 @@
|
||||
<svg width="80" height="56" viewBox="0 0 80 56" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 2.00391V53.0016V54.0016H4V2.00391H7Z" fill="#434343"/>
|
||||
<path d="M9.5 14C9.22386 14 9 13.7761 9 13.5V6.5C9 6.22386 9.22386 6 9.5 6L71.5 6C71.7761 6 72 6.22386 72 6.5V13.5C72 13.7761 71.7761 14 71.5 14L9.5 14Z" fill="#434343"/>
|
||||
<path d="M9.5 26C9.22386 26 9 25.7761 9 25.5V18.5C9 18.2239 9.22386 18 9.5 18H71.5C71.7761 18 72 18.2239 72 18.5V25.5C72 25.7761 71.7761 26 71.5 26L9.5 26Z" fill="#434343"/>
|
||||
<path d="M9.5 38C9.22386 38 9 37.7761 9 37.5V30.5C9 30.2239 9.22386 30 9.5 30H71.5C71.7761 30 72 30.2239 72 30.5V37.5C72 37.7761 71.7761 38 71.5 38H9.5Z" fill="#434343"/>
|
||||
<path d="M9.5 50C9.22386 50 9 49.7761 9 49.5V42.5C9 42.2239 9.22386 42 9.5 42H71.5C71.7761 42 72 42.2239 72 42.5V49.5C72 49.7761 71.7761 50 71.5 50H9.5Z" fill="#434343"/>
|
||||
<path d="M9 12V8L44.5 8C44.7761 8 45 8.22386 45 8.5V11.5C45 11.7761 44.7761 12 44.5 12L9 12Z" fill="#3370FF"/>
|
||||
<path d="M9 24V20H55.5C55.7761 20 56 20.2239 56 20.5V23.5C56 23.7761 55.7761 24 55.5 24H9Z" fill="#3370FF"/>
|
||||
<path d="M9 36V32H37.5C37.7761 32 38 32.2239 38 32.5V35.5C38 35.7761 37.7761 36 37.5 36H9Z" fill="#3370FF"/>
|
||||
<path d="M9 48V44H21.5C21.7761 44 22 44.2239 22 44.5V47.5C22 47.7761 21.7761 48 21.5 48H9Z" fill="#3370FF"/>
|
||||
<path d="M47 14V6H48V14H47Z" fill="#3370FF"/>
|
||||
<path d="M52 26V18H53V26H52Z" fill="#3370FF"/>
|
||||
<path d="M42 38V30H43V38H42Z" fill="#3370FF"/>
|
||||
<path d="M54 50V42H55V50H54Z" fill="#3370FF"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
15
core/core-frontend/src/assets/svg/bullet-graph-origin.svg
Normal file
@ -0,0 +1,15 @@
|
||||
<svg width="80" height="56" viewBox="0 0 80 56" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 2.00391V53.0016V54.0016H4V2.00391H7Z" fill="#434343"/>
|
||||
<path d="M9.5 14C9.22386 14 9 13.7761 9 13.5V6.5C9 6.22386 9.22386 6 9.5 6L71.5 6C71.7761 6 72 6.22386 72 6.5V13.5C72 13.7761 71.7761 14 71.5 14L9.5 14Z" fill="#434343"/>
|
||||
<path d="M9.5 26C9.22386 26 9 25.7761 9 25.5V18.5C9 18.2239 9.22386 18 9.5 18H71.5C71.7761 18 72 18.2239 72 18.5V25.5C72 25.7761 71.7761 26 71.5 26L9.5 26Z" fill="#434343"/>
|
||||
<path d="M9.5 38C9.22386 38 9 37.7761 9 37.5V30.5C9 30.2239 9.22386 30 9.5 30H71.5C71.7761 30 72 30.2239 72 30.5V37.5C72 37.7761 71.7761 38 71.5 38H9.5Z" fill="#434343"/>
|
||||
<path d="M9.5 50C9.22386 50 9 49.7761 9 49.5V42.5C9 42.2239 9.22386 42 9.5 42H71.5C71.7761 42 72 42.2239 72 42.5V49.5C72 49.7761 71.7761 50 71.5 50H9.5Z" fill="#434343"/>
|
||||
<path d="M9 12V8L44.5 8C44.7761 8 45 8.22386 45 8.5V11.5C45 11.7761 44.7761 12 44.5 12L9 12Z" fill="#3370FF"/>
|
||||
<path d="M9 24V20H55.5C55.7761 20 56 20.2239 56 20.5V23.5C56 23.7761 55.7761 24 55.5 24H9Z" fill="#3370FF"/>
|
||||
<path d="M9 36V32H37.5C37.7761 32 38 32.2239 38 32.5V35.5C38 35.7761 37.7761 36 37.5 36H9Z" fill="#3370FF"/>
|
||||
<path d="M9 48V44H21.5C21.7761 44 22 44.2239 22 44.5V47.5C22 47.7761 21.7761 48 21.5 48H9Z" fill="#3370FF"/>
|
||||
<path d="M47 14V6H48V14H47Z" fill="#3370FF"/>
|
||||
<path d="M52 26V18H53V26H52Z" fill="#3370FF"/>
|
||||
<path d="M42 38V30H43V38H42Z" fill="#3370FF"/>
|
||||
<path d="M54 50V42H55V50H54Z" fill="#3370FF"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
15
core/core-frontend/src/assets/svg/bullet-graph.svg
Normal file
@ -0,0 +1,15 @@
|
||||
<svg width="80" height="56" viewBox="0 0 80 56" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 2.00391V53.0016V54.0016H4V2.00391H7Z" fill="#DEE0E3"/>
|
||||
<path d="M9.5 14C9.22386 14 9 13.7761 9 13.5V6.5C9 6.22386 9.22386 6 9.5 6L71.5 6C71.7761 6 72 6.22386 72 6.5V13.5C72 13.7761 71.7761 14 71.5 14L9.5 14Z" fill="#DEE0E3"/>
|
||||
<path d="M9.5 26C9.22386 26 9 25.7761 9 25.5V18.5C9 18.2239 9.22386 18 9.5 18H71.5C71.7761 18 72 18.2239 72 18.5V25.5C72 25.7761 71.7761 26 71.5 26L9.5 26Z" fill="#DEE0E3"/>
|
||||
<path d="M9.5 38C9.22386 38 9 37.7761 9 37.5V30.5C9 30.2239 9.22386 30 9.5 30H71.5C71.7761 30 72 30.2239 72 30.5V37.5C72 37.7761 71.7761 38 71.5 38H9.5Z" fill="#DEE0E3"/>
|
||||
<path d="M9.5 50C9.22386 50 9 49.7761 9 49.5V42.5C9 42.2239 9.22386 42 9.5 42H71.5C71.7761 42 72 42.2239 72 42.5V49.5C72 49.7761 71.7761 50 71.5 50H9.5Z" fill="#DEE0E3"/>
|
||||
<path d="M9 12V8L44.5 8C44.7761 8 45 8.22386 45 8.5V11.5C45 11.7761 44.7761 12 44.5 12L9 12Z" fill="#3370FF"/>
|
||||
<path d="M9 24V20H55.5C55.7761 20 56 20.2239 56 20.5V23.5C56 23.7761 55.7761 24 55.5 24H9Z" fill="#3370FF"/>
|
||||
<path d="M9 36V32H37.5C37.7761 32 38 32.2239 38 32.5V35.5C38 35.7761 37.7761 36 37.5 36H9Z" fill="#3370FF"/>
|
||||
<path d="M9 48V44H21.5C21.7761 44 22 44.2239 22 44.5V47.5C22 47.7761 21.7761 48 21.5 48H9Z" fill="#3370FF"/>
|
||||
<path d="M47 14V6H48V14H47Z" fill="#3370FF"/>
|
||||
<path d="M52 26V18H53V26H52Z" fill="#3370FF"/>
|
||||
<path d="M42 38V30H43V38H42Z" fill="#3370FF"/>
|
||||
<path d="M54 50V42H55V50H54Z" fill="#3370FF"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
1
core/core-frontend/src/assets/svg/dv-cancel-publish.svg
Normal file
@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1743046434070" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5630" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M657.8 696.3l39.1-39.1 262.5 262.5-44.7 39.1-256.9-262.5z" p-id="5631"></path><path d="M691.3 958.7l-39.1-39.1 262.5-262.5 39.1 39.1-262.5 262.5zM510.7 321.7L678.6 516H588v223.4H437.6V516h-92.1l165.2-194.3m-0.4-98.3L207.1 580h166.5v223.4H652V580h166.5L510.3 223.4z" p-id="5632"></path><path d="M512.8 896.2H129.3V129.3h766.9v383.5h64V110.3c0-24.9-20.1-45-45-45H110.3c-24.9 0-45 20.1-45 45v804.9c0 24.9 20.1 45 45 45h402.5v-64z" p-id="5633"></path></svg>
|
After Width: | Height: | Size: 786 B |
@ -0,0 +1,4 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M0 3C0 1.34315 1.59845 0 3.57025 0H14.4298C16.4015 0 18 1.34315 18 3V15C18 16.6569 16.4015 18 14.4298 18H3.57025C1.59845 18 0 16.6569 0 15V3Z" fill="#BBBFC4"/>
|
||||
<path d="M4.25 13V8.77273C4.25 8.48403 4.48985 8.25 4.78571 8.25H7V4.52632C7 4.23564 7.25584 4 7.57143 4H10.4286C10.7442 4 11 4.23564 11 4.52632V7H13.2143C13.5102 7 13.75 7.22386 13.75 7.5V13H14C14.1381 13 14.25 13.1119 14.25 13.25V13.75C14.25 13.8881 14.1381 14 14 14H4C3.86193 14 3.75 13.8881 3.75 13.75V13.25C3.75 13.1119 3.86193 13 4 13H4.25ZM12.75 13V8H11V13H12.75ZM10 13V5H8V13H10ZM7 13V9.25H5.25V13H7Z" fill="white"/>
|
||||
</svg>
|
After Width: | Height: | Size: 697 B |
@ -0,0 +1,7 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M0 3C0 1.34315 1.46525 0 3.27273 0H14.7273C16.5347 0 18 1.34315 18 3V15C18 16.6569 16.5347 18 14.7273 18H3.27273C1.46525 18 0 16.6569 0 15V3Z" fill="#BBBFC4"/>
|
||||
<path opacity="0.6" fill-rule="evenodd" clip-rule="evenodd" d="M3.75 13.5V8.77273C3.75 8.48403 3.98985 8.25 4.28571 8.25H6.5V4.02632C6.5 3.73564 6.75584 3.5 7.07143 3.5H9.92857C10.2442 3.5 10.5 3.73564 10.5 4.02632V5.15039H9.5V4.5H7.5V13.5V14.5H3.5C3.36193 14.5 3.25 14.3881 3.25 14.25V13.75C3.25 13.6119 3.36193 13.5 3.5 13.5H3.75ZM6.5 13.5V9.25H4.75V13.5H6.5Z" fill="white"/>
|
||||
<rect x="8.5" y="6" width="5.5" height="8.5" fill="#00D6B9"/>
|
||||
<path d="M11.3043 12.9348C11.7606 12.9348 12.1304 12.5649 12.1304 12.1087C12.1304 11.6525 11.7606 11.2826 11.3043 11.2826C10.8481 11.2826 10.4783 11.6525 10.4783 12.1087C10.4783 12.5649 10.8481 12.9348 11.3043 12.9348Z" fill="white"/>
|
||||
<path d="M8.41304 5.5C8.18492 5.5 8 5.68492 8 5.91304V14.587C8 14.8151 8.18492 15 8.41304 15H14.1957C14.4238 15 14.6087 14.8151 14.6087 14.587V5.91304C14.6087 5.68492 14.4238 5.5 14.1957 5.5H8.41304ZM9.23913 6.73913H10.0652V7.15217C10.0652 7.38029 10.2501 7.56522 10.4783 7.56522H12.1304C12.3586 7.56522 12.5435 7.38029 12.5435 7.15217V6.73913H13.3696V13.7609H9.23913V6.73913Z" fill="white"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
@ -0,0 +1,6 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M3.0166 1H11.3095C11.4421 1 11.5693 1.05268 11.663 1.14645L13.3702 2.85355C13.4639 2.94732 13.5166 3.0745 13.5166 3.20711V14.5C13.5166 14.7761 13.2927 15 13.0166 15L6.61962 14.9998C6.61373 14.9998 6.60786 14.9997 6.60202 14.9995L6.60786 14.9997V13.8H12.3167V4H10.6916C10.595 4 10.5166 3.92165 10.5166 3.825V2.2H3.71668V8.98657H2.5166V1.5C2.5166 1.22386 2.74046 1 3.0166 1Z" />
|
||||
<path d="M5.94584 9.5C5.68794 9.26773 5.36928 9.10161 5.0166 9.02837V8.41667C5.0166 8.35224 5.06884 8.3 5.13327 8.3H8.23327C8.2977 8.3 8.34994 8.35223 8.34994 8.41667V9.38333C8.34994 9.44777 8.2977 9.5 8.23327 9.5H5.94584Z"/>
|
||||
<path d="M5.0166 5.91667C5.0166 5.85223 5.06884 5.8 5.13327 5.8H10.8999C10.9644 5.8 11.0166 5.85223 11.0166 5.91667V6.88333C11.0166 6.94777 10.9644 7 10.8999 7H5.13327C5.06884 7 5.0166 6.94777 5.0166 6.88333V5.91667Z"/>
|
||||
<path d="M5.17545 10.1799C5.17545 10.0805 5.09492 10 4.99557 10H1.00471C0.844448 10 0.76419 10.1938 0.87751 10.3071L2.15664 11.5862C1.31561 12.545 0.686543 14.7137 1.72678 15.754C1.79493 15.8221 1.8973 15.9133 2.00475 15.9865C2.03989 16.0091 2.07237 16.0023 2.09415 15.9741C2.10517 15.9586 2.10964 15.9395 2.10658 15.9207C2.10038 15.8659 2.09586 15.8212 2.09186 15.7817C2.0886 15.7497 2.0857 15.721 2.08252 15.693C2.00232 14.9869 2.885 13.7726 3.59451 13.0241L4.86837 14.2979C4.98169 14.4113 5.17545 14.331 5.17545 14.1707L5.17545 10.1799Z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.4 KiB |
@ -0,0 +1,84 @@
|
||||
<template>
|
||||
<div
|
||||
v-if="showButton && (!dvMainStore.mobileInPc || isMobile())"
|
||||
class="bar-main-right"
|
||||
@mousedown="handOptBarMousedown"
|
||||
>
|
||||
<el-button size="mini" type="info" @click="exitFullscreen">
|
||||
<el-icon style="margin-right: 8px">
|
||||
<Icon name="exit_fullscreen"
|
||||
><exit_fullscreen style="font-size: 16px" class="svg-icon"
|
||||
/></Icon>
|
||||
</el-icon>
|
||||
{{ $t('visualization.ext_fullscreen') }}</el-button
|
||||
>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import exit_fullscreen from '@/assets/svg/exit-fullscreen.svg'
|
||||
import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain'
|
||||
import { computed } from 'vue'
|
||||
import { isMainCanvas } from '@/utils/canvasUtils'
|
||||
import { isMobile } from '@/utils/utils'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import Icon from '../icon-custom/src/Icon.vue'
|
||||
import { ElIcon } from 'element-plus-secondary'
|
||||
const dvMainStore = dvMainStoreWithOut()
|
||||
|
||||
const { fullscreenFlag } = storeToRefs(dvMainStore)
|
||||
|
||||
const props = defineProps({
|
||||
canvasId: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: 'canvas-main'
|
||||
},
|
||||
showPosition: {
|
||||
required: false,
|
||||
type: String,
|
||||
default: 'preview'
|
||||
}
|
||||
})
|
||||
|
||||
const handOptBarMousedown = e => {
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
}
|
||||
|
||||
const showButton = computed(() => {
|
||||
if (isMainCanvas(props.canvasId)) {
|
||||
return fullscreenFlag.value && props.showPosition === 'preview'
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
})
|
||||
|
||||
const exitFullscreen = () => {
|
||||
document.exitFullscreen()
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.bar-main-right {
|
||||
top: 2px;
|
||||
right: 2px;
|
||||
opacity: 0.8;
|
||||
z-index: 1;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.bar-main-edit-right {
|
||||
top: 8px;
|
||||
right: 102px !important;
|
||||
}
|
||||
|
||||
.bar-main-left {
|
||||
left: 0px;
|
||||
opacity: 0;
|
||||
height: fit-content;
|
||||
&:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
</style>
|
36
core/core-frontend/src/utils/CalculateFields.ts
Normal file
@ -0,0 +1,36 @@
|
||||
import { Base64 } from 'js-base64'
|
||||
|
||||
const originNameHandle = (arr = []) => {
|
||||
arr.forEach(ele => {
|
||||
if (ele.extField === 2) {
|
||||
ele.originName = Base64.encode(ele.originName)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const originNameHandleBack = (arr = []) => {
|
||||
arr.forEach(ele => {
|
||||
if (ele.extField === 2) {
|
||||
ele.originName = Base64.decode(ele.originName)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const originNameHandleWithArr = (obj = {}, fields) => {
|
||||
fields.forEach(ele => {
|
||||
originNameHandle(obj?.[ele] || [])
|
||||
})
|
||||
}
|
||||
|
||||
const originNameHandleBackWithArr = (obj = {}, fields) => {
|
||||
fields.forEach(ele => {
|
||||
originNameHandleBack(obj?.[ele] || [])
|
||||
})
|
||||
}
|
||||
|
||||
export {
|
||||
originNameHandle,
|
||||
originNameHandleBack,
|
||||
originNameHandleWithArr,
|
||||
originNameHandleBackWithArr
|
||||
}
|
44
core/core-frontend/src/utils/componentUtils.ts
Normal file
@ -0,0 +1,44 @@
|
||||
import { EnumValue, enumValueObj } from '@/api/dataset'
|
||||
|
||||
let filterEnumMap = {}
|
||||
|
||||
const findFilterEnum = async (val: EnumValue) => {
|
||||
const queryId = val.queryId
|
||||
const displayId = val.displayId
|
||||
const arr = await enumValueObj({ queryId: queryId, displayId: displayId, searchText: '' })
|
||||
return arr?.reduce((acc, item) => {
|
||||
acc[item[displayId]] = item[queryId]
|
||||
return acc
|
||||
}, {})
|
||||
}
|
||||
|
||||
export const filterEnumParams = (queryParams, fieldId: string) => {
|
||||
const resultMap = filterEnumMap[fieldId]
|
||||
if (resultMap) {
|
||||
const resultParams = []
|
||||
queryParams.forEach(param => {
|
||||
resultParams.push(resultMap[param] || param)
|
||||
})
|
||||
return resultParams
|
||||
} else {
|
||||
return queryParams
|
||||
}
|
||||
}
|
||||
|
||||
export const filterEnumMapSync = async componentData => {
|
||||
filterEnumMap = {}
|
||||
for (const element of componentData) {
|
||||
if (element.component === 'VQuery') {
|
||||
for (const filterItem of element.propValue) {
|
||||
const { optionValueSource, field, displayId } = filterItem
|
||||
if (optionValueSource === 1 && field.id) {
|
||||
filterEnumMap[field.id] = await findFilterEnum({
|
||||
queryId: field.id,
|
||||
displayId,
|
||||
searchText: ''
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|