修改bug,增加需求
2
src/renderer/public/excel/header.csv
Normal file
@ -0,0 +1,2 @@
|
||||
1,Ψһ<EFBFBD><EFBFBD>ʶ,id
|
||||
2,<EFBFBD><EFBFBD><EFBFBD><EFBFBD>,name
|
||||
|
BIN
src/renderer/public/sdk/img/cross_black.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
src/renderer/src/assets/img/mouse.png
Normal file
|
After Width: | Height: | Size: 561 B |
BIN
src/renderer/src/assets/img/timerBg.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
1
src/renderer/src/icons/svg/download.svg
Normal file
|
After Width: | Height: | Size: 18 KiB |
1
src/renderer/src/icons/svg/export.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M2.89229 3.79649L5.53964 1.52251L5.53964 9.10012C5.53964 9.3697 5.74956 9.589 6.00761 9.589C6.26566 9.589 6.47557 9.3697 6.47557 9.10012L6.47557 1.5239L9.11089 3.79509C9.1978 3.87052 9.30343 3.90684 9.40906 3.90684C9.5441 3.90684 9.6778 3.84677 9.77006 3.72944C9.93451 3.52132 9.90644 3.21263 9.70722 3.04082L6.30443 0.110347C6.30176 0.107553 6.29908 0.106156 6.29641 0.103363C6.29374 0.101966 6.29106 0.0991725 6.28972 0.0977757C6.2817 0.0907917 6.27368 0.0852045 6.26566 0.0796173C6.25764 0.0740302 6.24828 0.068443 6.23892 0.0628558C6.23758 0.061459 6.23624 0.061459 6.23491 0.0600622C6.21619 0.0488878 6.19613 0.0391103 6.17607 0.0307295L6.17474 0.0307295C6.15468 0.0223487 6.13329 0.0153647 6.1119 0.0111744L6.10922 0.0111744C6.09986 0.00838074 6.08917 0.00698398 6.07981 0.00558721L6.07713 0.00558721C6.06644 0.00419043 6.05708 0.00279355 6.04638 0.00139677L6.04237 0.00139677C6.03435 0.00139677 6.02499 0 6.01697 0L5.97552 0C5.9675 0 5.95947 0.00139677 5.95145 0.00279355C5.94878 0.00279355 5.9461 0.00279355 5.94343 0.00419043L5.91535 0.00838074L5.91401 0.00838074C5.90465 0.00977753 5.8953 0.0125712 5.88594 0.0153647C5.8846 0.0153647 5.88192 0.0167615 5.88059 0.0167615C5.86053 0.0223487 5.84181 0.0293327 5.82309 0.0377135C5.82176 0.0377135 5.82176 0.0391103 5.82042 0.0391103C5.80036 0.047491 5.78165 0.0586654 5.76293 0.0698398C5.74421 0.0824109 5.72549 0.0949821 5.70811 0.110347L2.29731 3.04222C2.09809 3.21403 2.06867 3.52132 2.23313 3.73084C2.39758 3.93896 2.69174 3.9683 2.89229 3.79649Z" fill="#FFFFFF" ></path><path d="M11.535 7.20337C11.2769 7.20337 11.065 7.42422 11.065 7.6938L11.065 11.0225L0.935 11.0225L0.935 7.6938C0.935 7.42422 0.72805 7.20337 0.47 7.20337C0.21195 7.20337 0 7.42422 0 7.6938L0 11.5129C0 11.7825 0.21195 11.9982 0.47 11.9982L11.53 11.9982C11.7881 11.9982 12 11.7825 12 11.5129L12 7.6938C12 7.42422 11.7931 7.20337 11.535 7.20337Z" fill="#FFFFFF" ></path></svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
1
src/renderer/src/icons/svg/importHeader1.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="12" height="12" viewBox="0 0 12 12" fill="none"><g clip-path="url(#clip-path-2256_179)"><path d="M1.19473 4.35725L1.19473 1.80615C1.19473 1.46881 1.46881 1.19473 1.80615 1.19473L10.1939 1.19473C10.5312 1.19473 10.8053 1.46881 10.8053 1.80615L10.8053 10.1939C10.8053 10.5312 10.5312 10.8053 10.1939 10.8053L7.64275 10.8053C7.31245 10.8053 7.04539 11.0723 7.04539 11.4026C7.04539 11.7329 7.31245 12 7.64275 12L10.7859 12C11.4571 12 12 11.4554 12 10.786L12 1.21406C12 0.542899 11.4553 0 10.7859 0L1.21406 0C0.542899 0 0 0.544656 0 1.21406L0 4.35725C0 4.68756 0.267057 4.95461 0.597365 4.95461C0.927672 4.95461 1.19473 4.68756 1.19473 4.35725Z" fill="#FFFFFF" ></path><path d="M6.20029 8.62311L6.19854 8.62135L3.84949 6.2723C3.61581 6.03863 3.23807 6.03863 3.00439 6.2723C2.77072 6.50598 2.77072 6.88372 3.00439 7.1174L4.33792 8.45093L0.597365 8.45093C0.267057 8.45093 0 8.71799 0 9.04829C0 9.3786 0.267057 9.64566 0.597365 9.64566L4.33441 9.64566L3.00439 10.9757C2.77072 11.2093 2.77072 11.5871 3.00439 11.8208C3.23807 12.0544 3.61581 12.0544 3.84949 11.8208L6.16164 9.50861C6.29341 9.39968 6.37775 9.23453 6.37775 9.05005C6.37775 8.88138 6.30923 8.73204 6.20029 8.62311Z" fill="#FFFFFF" ></path></g><defs><clipPath id="clip-path-2256_179"><path d="M0 12L12 12L12 0L0 0L0 12Z" fill="white"/></clipPath></defs></svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
1
src/renderer/src/icons/svg/prompt.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M7.14258 12.8635C7.14258 13.3369 7.52633 13.7207 7.99972 13.7207C8.47311 13.7207 8.85686 13.3369 8.85686 12.8635C8.85686 12.3901 8.47311 12.0063 7.99972 12.0063C7.52633 12.0063 7.14258 12.3901 7.14258 12.8635Z" fill="#F16C55" ></path><path d="M8 16C3.58859 16 0 12.4114 0 8C0 3.58859 3.58859 0 8 0C12.4114 0 16 3.58859 16 8C16 12.4114 12.4114 16 8 16ZM8 1.14798C4.22171 1.14798 1.14798 4.22171 1.14798 8C1.14798 11.7777 4.22171 14.852 8 14.852C11.7777 14.852 14.852 11.7778 14.852 8C14.852 4.22171 11.7777 1.14798 8 1.14798Z" fill="#F16C55" ></path><path d="M7.99974 10.8875C7.68429 10.8875 7.42829 10.6315 7.42829 10.3161L7.42829 9.34985C7.42829 8.41497 8.14258 7.70069 8.77344 7.07042C9.2357 6.60756 9.71401 6.12985 9.71401 5.7487C9.71401 4.79613 8.94486 4.02128 7.99974 4.02128C7.03861 4.02128 6.28547 4.76299 6.28547 5.70985C6.28547 6.02528 6.02947 6.28126 5.71402 6.28126C5.39858 6.28126 5.14258 6.02526 5.14258 5.70985C5.14258 4.1487 6.42427 2.87842 7.99974 2.87842C9.5752 2.87842 10.8569 4.16585 10.8569 5.7487C10.8569 6.60413 10.2083 7.25211 9.58145 7.87899C9.08433 8.37499 8.57119 8.88811 8.57119 9.34926L8.57119 10.3155C8.57119 10.631 8.31519 10.8875 7.99974 10.8875Z" fill="#F16C55" ></path></svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
1
src/renderer/src/icons/svg/search.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" fill="#FFFFFF" d="M12.32 12.32C13.44 11.04 14.08 9.6 14.24 7.68C14.08 5.76 13.44 4.32 12.32 3.04C11.04 1.92 9.6 1.28 7.68 1.12C5.76 1.28 4.32 1.92 3.04 3.04C1.92 4.32 1.28 5.76 1.12 7.68C1.28 9.6 1.92 11.04 3.04 12.32C4.32 13.44 5.76 14.08 7.68 14.24C9.6 14.08 11.04 13.44 12.32 12.32ZM7.52 0C5.6 0 3.84 0.8 2.24 2.24C0.8 3.84 0 5.6 0 7.52C0 9.6 0.64 11.36 2.08 12.96C3.52 14.4 5.28 15.2 7.2 15.36C9.28 15.52 11.04 14.88 12.64 13.6L15.04 15.84C15.2 16 15.2 16 15.36 16C15.52 16 15.68 16 15.84 15.84C16 15.68 16 15.52 16 15.36C16 15.2 16 15.2 15.84 15.04L13.6 12.64C14.88 11.04 15.52 9.28 15.36 7.2C15.2 5.28 14.4 3.52 12.96 2.08C11.36 0.64 9.6 0 7.52 0Z"></path></svg>
|
||||
|
After Width: | Height: | Size: 836 B |
1
src/renderer/src/icons/svg/text-bold.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M13.2158 9.14111C12.7705 8.45347 12.1135 7.99613 11.2453 7.76971L11.2453 7.72585C11.7055 7.50653 12.0922 7.26141 12.4056 6.99049C12.7197 6.7344 12.9604 6.46347 13.1283 6.17836C13.4565 5.57845 13.6136 4.94952 13.5988 4.29092C13.5988 3.00339 13.201 1.96807 12.4056 1.18497C11.6173 0.409611 10.4383 0.0148363 8.8694 0L2.08008 0L2.08008 16L9.40611 16C10.6616 16 11.7087 15.5794 12.5485 14.7376C13.3954 13.9326 13.8259 12.8392 13.8401 11.4569C13.8401 10.6228 13.6322 9.85067 13.2158 9.14111ZM4.67611 2.16159L8.59589 2.16159C9.47883 2.17642 10.1288 2.39187 10.5445 2.80922C10.968 3.2556 11.1797 3.80068 11.1797 4.44444C11.1797 5.08821 10.968 5.62232 10.5445 6.04677C10.1288 6.50734 9.47883 6.73827 8.59589 6.73827L4.67611 6.73827L4.67611 2.16159ZM10.7968 12.9715C10.3811 13.4469 9.72401 13.692 8.82628 13.7068L4.67611 13.7068L4.67611 8.9005L8.82564 8.9005C9.72337 8.91469 10.3804 9.15272 10.7961 9.61393C11.2119 10.0822 11.4204 10.6454 11.4204 11.304C11.4204 11.9471 11.2125 12.5031 10.7968 12.9715Z" fill="#FFFFFF" ></path></svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
1
src/renderer/src/icons/svg/text-italic.svg
Normal file
|
After Width: | Height: | Size: 12 KiB |
1
src/renderer/src/icons/svg/text-line-bottom.svg
Normal file
|
After Width: | Height: | Size: 12 KiB |
1
src/renderer/src/icons/svg/text-line-through.svg
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
@ -0,0 +1,67 @@
|
||||
<template>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<span class="lable-left-line">新增{{ props.type }}风格设置</span>
|
||||
<div style="display: flex;align-items: center;margin-right: 30px;">
|
||||
<button style="margin-right: 10px;" @click="setInitialStyle">初始风格</button>
|
||||
<el-tooltip
|
||||
effect="customized" :hide-after="0" placement="top">
|
||||
<template #content>初始系统默认的{{props.type}}风格<br />点击“初始风格”按钮,将{{props.type}}系统初始风格设置为新增{{props.type}}风格</template>
|
||||
<svg class="icon-prompt">
|
||||
<use xlink:href="#icon-prompt"></use>
|
||||
</svg>
|
||||
</el-tooltip>
|
||||
|
||||
</div>
|
||||
<div style="display: flex;align-items: center;">
|
||||
<button style="margin-right: 10px;">当前风格</button>
|
||||
<el-tooltip
|
||||
effect="customized" :hide-after="0" placement="top">
|
||||
<template #content>当前面板设置的{{props.type}}风格<br />点击“当前风格”按钮,将{{props.type}}当前面板风格设置为新增{{props.type}}风格</template>
|
||||
<svg class="icon-prompt">
|
||||
<use xlink:href="#icon-prompt"></use>
|
||||
</svg>
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { getdefaultStyle } from './style'
|
||||
|
||||
const props = defineProps({
|
||||
type: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
sourceType: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
entityOptions: {
|
||||
type: Object,
|
||||
default: {}
|
||||
}
|
||||
})
|
||||
|
||||
const setInitialStyle = () => {
|
||||
let style = getdefaultStyle(props.sourceType)
|
||||
let defaultStyle = JSON.parse(localStorage.getItem('defaultStyle') || '{}')
|
||||
defaultStyle[props.sourceType] = style
|
||||
localStorage.setItem('defaultStyle', JSON.stringify(defaultStyle))
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.lable-left-line {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.icon-prompt {
|
||||
fill: rgba(241, 108, 85, 1) !important;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,37 @@
|
||||
const { ipcRenderer } = require('electron')
|
||||
let availablePort = 55110
|
||||
ipcRenderer.invoke('get-available-port').then((port) => {
|
||||
availablePort = port
|
||||
})
|
||||
//@ts-ignore
|
||||
export const getdefaultStyle = (type) => {
|
||||
switch (type) {
|
||||
case 'point':
|
||||
return {
|
||||
billboard: {
|
||||
show: true,
|
||||
image: "http://localhost:" +
|
||||
availablePort +
|
||||
"/" +
|
||||
"GEMarker1/A-ablu-blank.png",
|
||||
scale: 3,
|
||||
},
|
||||
label: {
|
||||
show: true,
|
||||
fontSize: 39,
|
||||
color: 'rgba(0, 255, 255, 1)',
|
||||
fontFamily: 'Helvetica',
|
||||
}
|
||||
}
|
||||
case 'line':
|
||||
return {
|
||||
color: 'rgba(241, 108, 85, 1)',
|
||||
fontSize: 12,
|
||||
fontName: '微软雅黑',
|
||||
fontWeight: '400',
|
||||
fontStyle: 'normal',
|
||||
textDecoration: 'none',
|
||||
background: 'rgba(0, 0, 0, 0.5)',
|
||||
}
|
||||
}
|
||||
}
|
||||