12-10
This commit is contained in:
@ -1,44 +1,9 @@
|
||||
Unicode True
|
||||
!include "LogicLib.nsh"
|
||||
|
||||
Var defaultInstallDir
|
||||
|
||||
!macro preInit
|
||||
|
||||
IfFileExists "D:\*.*" DDriveExists CDriveDefault
|
||||
|
||||
CDriveDefault:
|
||||
StrCpy $defaultInstallDir "D:\ProgramFiles\${APP_ID}"
|
||||
Goto doneDetect
|
||||
|
||||
DDriveExists:
|
||||
StrCpy $defaultInstallDir "D:\${APP_ID}"
|
||||
|
||||
doneDetect:
|
||||
|
||||
StrCpy $INSTDIR "$defaultInstallDir"
|
||||
|
||||
!macroend
|
||||
|
||||
!macro init
|
||||
${If} $INSTDIR == ""
|
||||
StrCpy $INSTDIR "$defaultInstallDir"
|
||||
${EndIf}
|
||||
!macroend
|
||||
|
||||
|
||||
!insertmacro preInit
|
||||
!insertmacro init
|
||||
|
||||
Section "MainSection" SEC01
|
||||
CreateDirectory "$INSTDIR"
|
||||
SetRegView 64
|
||||
WriteRegStr HKLM "${INSTALL_REGISTRY_KEY}" "InstallLocation" "$INSTDIR"
|
||||
WriteRegStr HKCU "${INSTALL_REGISTRY_KEY}" "InstallLocation" "$INSTDIR"
|
||||
WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "D:\ProgramFiles\dzsp_shijingjun_offline_Y_save"
|
||||
WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "D:\ProgramFiles\dzsp_shijingjun_offline_Y_save"
|
||||
#writeUninstaller $INSTDIR\uninstaller.exe
|
||||
SetRegView 32
|
||||
WriteRegStr HKLM "${INSTALL_REGISTRY_KEY}" "InstallLocation" "$INSTDIR"
|
||||
WriteRegStr HKCU "${INSTALL_REGISTRY_KEY}" "InstallLocation" "$INSTDIR"
|
||||
SectionEnd
|
||||
|
||||
Page Directory
|
||||
Page InstFiles
|
||||
WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "D:\ProgramFiles\dzsp_shijingjun_offline_Y_save"
|
||||
WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "D:\ProgramFiles\dzsp_shijingjun_offline_Y_save"
|
||||
!macroend
|
||||
Binary file not shown.
@ -83,7 +83,7 @@ let mainWindow;
|
||||
|
||||
let isSeverInit = false
|
||||
let isAppInit = false
|
||||
let severError:any = undefined
|
||||
let severError: any = undefined
|
||||
function createWindow(): void {
|
||||
// Create the browser window.
|
||||
|
||||
@ -581,35 +581,61 @@ function windowAllClosed() {
|
||||
|
||||
console.log('所有窗口已关闭,执行清理脚本...');
|
||||
getServer().close(() => {
|
||||
// 执行批处理文件
|
||||
const cleanupProcess = exec(stopBatPath.substring(1, 200), (error, stdout, stderr) => {
|
||||
if (error) {
|
||||
console.error(`清理脚本执行失败: ${error.message}`);
|
||||
}
|
||||
if (stderr) {
|
||||
console.error(`清理脚本错误输出: ${stderr}`);
|
||||
}
|
||||
if (stdout) {
|
||||
console.log(`清理脚本输出: ${stdout}`);
|
||||
}
|
||||
if (isQuitting) {
|
||||
forceQuit();
|
||||
}
|
||||
|
||||
|
||||
const vbsScript = `
|
||||
Set WshShell = CreateObject("WScript.Shell")
|
||||
WshShell.Run "${stopBatPath.substring(1, 200)}", 0, False
|
||||
Set WshShell = Nothing
|
||||
`;
|
||||
const vbsPath = path.join(os.tmpdir(), 'run_bat_hidden.vbs');
|
||||
require('fs').writeFileSync(vbsPath, vbsScript, 'utf8');
|
||||
|
||||
// 2. 执行 VBS 脚本(零窗口)
|
||||
const batProcess = spawn('wscript.exe', [vbsPath], {
|
||||
detached: true,
|
||||
stdio: 'ignore',
|
||||
windowsHide: true,
|
||||
});
|
||||
|
||||
// 监听子进程退出事件(确保即使脚本出错也能退出)
|
||||
cleanupProcess.on('exit', (code) => {
|
||||
console.log(`清理脚本退出,代码: ${code}`);
|
||||
});
|
||||
batProcess.unref();
|
||||
|
||||
// 超时保护:防止脚本卡住导致应用无法退出
|
||||
setTimeout(() => {
|
||||
if (isQuitting) {
|
||||
console.log('清理脚本执行超时,强制退出');
|
||||
// cleanupProcess.kill(); // 终止卡住的脚本
|
||||
forceQuit();
|
||||
}
|
||||
}, 3000); // 3秒超时
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// // 执行批处理文件
|
||||
// const cleanupProcess = exec(stopBatPath.substring(1, 200), (error, stdout, stderr) => {
|
||||
// if (error) {
|
||||
// console.error(`清理脚本执行失败: ${error.message}`);
|
||||
// }
|
||||
// if (stderr) {
|
||||
// console.error(`清理脚本错误输出: ${stderr}`);
|
||||
// }
|
||||
// if (stdout) {
|
||||
// console.log(`清理脚本输出: ${stdout}`);
|
||||
// }
|
||||
// if (isQuitting) {
|
||||
// forceQuit();
|
||||
// }
|
||||
// });
|
||||
|
||||
// // 监听子进程退出事件(确保即使脚本出错也能退出)
|
||||
// cleanupProcess.on('exit', (code) => {
|
||||
// console.log(`清理脚本退出,代码: ${code}`);
|
||||
// });
|
||||
|
||||
forceQuit();
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
1
src/renderer/components.d.ts
vendored
1
src/renderer/components.d.ts
vendored
@ -28,7 +28,6 @@ declare module 'vue' {
|
||||
ElOption: typeof import('element-plus/es')['ElOption']
|
||||
ElPagination: typeof import('element-plus/es')['ElPagination']
|
||||
ElPopconfirm: typeof import('element-plus/es')['ElPopconfirm']
|
||||
ElPopover: typeof import('element-plus/es')['ElPopover']
|
||||
ElRow: typeof import('element-plus/es')['ElRow']
|
||||
ElSelect: typeof import('element-plus/es')['ElSelect']
|
||||
ElSlider: typeof import('element-plus/es')['ElSlider']
|
||||
|
||||
8
src/renderer/public/sdk/YJEarth.min.js
vendored
8
src/renderer/public/sdk/YJEarth.min.js
vendored
File diff suppressed because one or more lines are too long
@ -888,3 +888,4 @@ img {
|
||||
.ts-zyl svg:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
|
||||
@ -73,6 +73,12 @@ export function handleInputLimit(e) {
|
||||
e.target.value = e.target.value || 0
|
||||
const minValue = parseFloat(e.target.min);
|
||||
const maxValue = parseFloat(e.target.max);
|
||||
let tofixed = parseInt(e.target.dataset.tofixed)
|
||||
const decimalPlaces = getDecimalPlaces(e.target.value);
|
||||
if(decimalPlaces>tofixed) {
|
||||
e.target.value = e.target.value.slice(0, tofixed-decimalPlaces)
|
||||
e.target.dispatchEvent(new Event('input'))
|
||||
}
|
||||
if (!isNaN(maxValue) && e.target.value > maxValue) {
|
||||
e.target.value = maxValue
|
||||
e.target.dispatchEvent(new Event('input'))
|
||||
@ -83,3 +89,21 @@ export function handleInputLimit(e) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getDecimalPlaces(num) {
|
||||
// 处理 NaN、Infinity 等非有效数字
|
||||
if (isNaN(num) || !isFinite(num)) {
|
||||
return 0; // 或抛出错误,根据需求调整
|
||||
}
|
||||
|
||||
// 转为字符串,处理科学计数法(如 1e-5 转为 0.00001)
|
||||
const numStr = num.toString();
|
||||
|
||||
// 分割整数和小数部分
|
||||
const parts = numStr.split('.');
|
||||
// 无小数部分(整数)
|
||||
if (parts.length === 1) return 0;
|
||||
|
||||
// 有小数部分,返回小数位数(自动忽略末尾零的情况可额外处理)
|
||||
return parts[1].length;
|
||||
}
|
||||
|
||||
@ -42,15 +42,18 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom_children" v-if="item.children" v-show="item.childrenShow">
|
||||
<div class="bottom_childre_box" v-for="(item2, m) of item.children" :key="m" @click="addMarker(item2, $event)">
|
||||
<el-tooltip :content="t('bottomMenu.' + item2.sourceType)" effect="customized" placement="top" :hide-after="0">
|
||||
<div class="bottom_childre_box" v-for="(item2, m) of item.children" :key="m"
|
||||
@click="addMarker(item2, $event)">
|
||||
<el-tooltip :content="t('bottomMenu.' + item2.sourceType)" effect="customized" placement="top"
|
||||
:hide-after="0">
|
||||
<svg class="bottom_childre_box_bg" xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" width="6vw" height="44.5" viewBox="0 0 119 35.5" fill="none"
|
||||
preserveAspectRatio="none">
|
||||
<path d="M11 0.5L108 0.5L118 35.5L1 35.5L11 0.5Z" stroke="url(#linear_border_2485_3)" stroke-width="1"
|
||||
fill="#000000" fill-opacity="0.5" />
|
||||
<path d="M118 34.5L1 34.5L0 36.5L119 36.5L118 34.5Z" fill-rule="evenodd" fill="url(#linear_fill_2485_4)" />
|
||||
</svg>
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" width="6vw" height="44.5" viewBox="0 0 119 35.5" fill="none"
|
||||
preserveAspectRatio="none">
|
||||
<path d="M11 0.5L108 0.5L118 35.5L1 35.5L11 0.5Z" stroke="url(#linear_border_2485_3)" stroke-width="1"
|
||||
fill="#000000" fill-opacity="0.5" />
|
||||
<path d="M118 34.5L1 34.5L0 36.5L119 36.5L118 34.5Z" fill-rule="evenodd"
|
||||
fill="url(#linear_fill_2485_4)" />
|
||||
</svg>
|
||||
</el-tooltip>
|
||||
<svg class="bottom_childre_box_bg bottom_childre_box_bg_hover" style="opacity: 0;"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="118.32568359375"
|
||||
@ -189,7 +192,9 @@ const bottomMenuList = ref([
|
||||
className: 'public',
|
||||
ref: ref(null),
|
||||
fun: () => {
|
||||
let Draw = new YJ.Draw.DrawPoint(window.earth)
|
||||
let Draw = new YJ.Draw.DrawPoint(window.earth, {
|
||||
tipText: '左键单击确定位置,右键单击取消点添加!'
|
||||
})
|
||||
Draw.start(async (a, position) => {
|
||||
console.log(position, 'position')
|
||||
if (!position) {
|
||||
@ -262,9 +267,15 @@ const bottomMenuList = ref([
|
||||
fun: () => {
|
||||
// eventBus.emit("openDialog", 'line', 'aaa');
|
||||
// return
|
||||
let Draw = new YJ.Draw.DrawPolyline(window.earth)
|
||||
let Draw = new YJ.Draw.DrawPolyline(window.earth, { tipText: '左键单击确定控制点位置,右键单击取消线添加!CTRL+右键单击撤销上一个控制点' })
|
||||
Draw.start(async (a, positions) => {
|
||||
if (!positions || positions.length < 2) {
|
||||
if (a >= 2) {
|
||||
Draw.tipText = '左键单击确定控制点位置,右键单击结束线添加! CTRL+右键单击撤销'
|
||||
}
|
||||
else {
|
||||
Draw.tipText = '左键单击确定控制点位置,右键单击取消线添加!CTRL+右键单击撤销上一个控制点'
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
@ -301,9 +312,15 @@ const bottomMenuList = ref([
|
||||
sourceType: 'curve',
|
||||
className: 'public',
|
||||
fun: () => {
|
||||
let Draw = new YJ.Draw.DrawPolyline(window.earth, { curve: true })
|
||||
let Draw = new YJ.Draw.DrawPolyline(window.earth, { curve: true, tipText: '左键单击确定控制点位置,右键单击取消线添加!CTRL+右键单击撤销上一个控制点' })
|
||||
Draw.start(async (a, positions) => {
|
||||
if (!positions || positions.length < 2) {
|
||||
if (a >= 2) {
|
||||
Draw.tipText = '左键单击确定控制点位置,右键单击结束线添加! CTRL+右键单击撤销'
|
||||
}
|
||||
else {
|
||||
Draw.tipText = '左键单击确定控制点位置,右键单击取消线添加!CTRL+右键单击撤销上一个控制点'
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
@ -341,13 +358,15 @@ const bottomMenuList = ref([
|
||||
className: 'public',
|
||||
ref: ref(null),
|
||||
fun: () => {
|
||||
let Draw = new YJ.Draw.DrawPolygon(window.earth)
|
||||
let Draw = new YJ.Draw.DrawPolygon(window.earth, { tipText: '左键单击确定控制点位置,右键单击取消面添加! CTRL+右键单击撤销上一个控制点' })
|
||||
Draw.start(async (a, positions) => {
|
||||
if (!positions || positions.length < 3) {
|
||||
ElMessage({
|
||||
message: '至少需要绘制三个坐标!',
|
||||
type: 'warning'
|
||||
})
|
||||
if (a >= 3) {
|
||||
Draw.tipText = '左键单击确定控制点位置,右键单击结束面添加! CTRL+右键单击撤销'
|
||||
}
|
||||
else {
|
||||
Draw.tipText = '左键单击确定控制点位置,右键单击取消面添加! CTRL+右键单击撤销上一个控制点'
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
@ -373,9 +392,19 @@ const bottomMenuList = ref([
|
||||
className: 'public',
|
||||
ref: ref(null),
|
||||
fun: () => {
|
||||
let Draw = new YJ.Draw.DrawCircle(window.earth)
|
||||
let Draw = new YJ.Draw.DrawCircle(window.earth, {
|
||||
tipText: '左键单击确定圆心位置,右键单击取消圆添加!CTRL+右键单击撤销'
|
||||
})
|
||||
Draw.start(async (a, opt) => {
|
||||
if (!opt) {
|
||||
switch (a) {
|
||||
case 0:
|
||||
Draw.tipText = '左键单击确定圆心位置,右键单击取消圆添加!CTRL+右键单击撤销'
|
||||
break;
|
||||
case 1:
|
||||
Draw.tipText = '左键单击确定圆半径,完成圆添加!'
|
||||
break;
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
@ -400,9 +429,20 @@ const bottomMenuList = ref([
|
||||
sourceType: 'ellipse',
|
||||
className: 'public',
|
||||
fun: () => {
|
||||
let Draw = new YJ.Draw.DrawElliptic(window.earth)
|
||||
let Draw = new YJ.Draw.DrawElliptic(window.earth, { tipText: '左键单击确定圆心位置,右键单击取消椭圆添加!CTRL+右键单击撤销' })
|
||||
Draw.start(async (a, opt) => {
|
||||
if (!opt) {
|
||||
switch (a) {
|
||||
case 0:
|
||||
Draw.tipText = '左键单击确定圆心位置,右键单击取消椭圆添加!CTRL+右键单击撤销'
|
||||
break;
|
||||
case 1:
|
||||
Draw.tipText = '左键单击确定半轴长度,右键单击取消椭圆添加!CTRL+右键单击撤销'
|
||||
break;
|
||||
case 2:
|
||||
Draw.tipText = '左键单击确定半轴长度,完成椭圆添加!'
|
||||
break;
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
@ -432,13 +472,17 @@ const bottomMenuList = ref([
|
||||
className: 'public',
|
||||
ref: ref(null),
|
||||
fun: () => {
|
||||
let Draw = new YJ.Draw.DrawRect(window.earth)
|
||||
let Draw = new YJ.Draw.DrawRect(window.earth, { tipText: '左键单击确定控制点位置,右键单击取消二点矩形添加!CTRL+右键单击撤销上一个控制点' })
|
||||
Draw.start(async (a, positions) => {
|
||||
if (!positions || positions.length < 3) {
|
||||
ElMessage({
|
||||
message: '至少需要绘制三个坐标!',
|
||||
type: 'warning'
|
||||
})
|
||||
switch (a) {
|
||||
case 1:
|
||||
Draw.tipText = '左键单击确定对角点位置,完成二点矩形添加!'
|
||||
break;
|
||||
default:
|
||||
Draw.tipText = '左键单击确定控制点位置,右键单击取消二点矩形添加!CTRL+右键单击撤销上一个控制点'
|
||||
break;
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
@ -463,9 +507,20 @@ const bottomMenuList = ref([
|
||||
className: 'public',
|
||||
ref: ref(null),
|
||||
fun: () => {
|
||||
let Draw = new YJ.Draw.DrawSector(window.earth)
|
||||
let Draw = new YJ.Draw.DrawSector(window.earth, { tipText: '左键单击确定圆心位置,右键单击取消扇形添加!CTRL+右键单击撤销' })
|
||||
Draw.start(async (a, opt) => {
|
||||
if (!opt) {
|
||||
switch (a) {
|
||||
case 0:
|
||||
Draw.tipText = '左键单击确定圆心位置,右键单击取消扇形添加!CTRL+右键单击撤销'
|
||||
break;
|
||||
case 1:
|
||||
Draw.tipText = '左键单击确定扇形半径,右键单击取消扇形添加!CTRL+右键单击撤销'
|
||||
break;
|
||||
case 2:
|
||||
Draw.tipText = '左键单击确定扇形角度,完成扇形添加!'
|
||||
break;
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
@ -493,13 +548,17 @@ const bottomMenuList = ref([
|
||||
className: 'public',
|
||||
ref: ref(null),
|
||||
fun: () => {
|
||||
let Draw = new YJ.Draw.DrawAssemble(window.earth)
|
||||
let Draw = new YJ.Draw.DrawAssemble(window.earth, { tipText: '左键单击确定控制点位置,右键单击取消集结地添加!CTRL+右键单击撤销上一个控制点' })
|
||||
Draw.start(async (a, positions) => {
|
||||
if (!positions || positions.length < 3) {
|
||||
ElMessage({
|
||||
message: '至少需要绘制三个坐标!',
|
||||
type: 'warning'
|
||||
})
|
||||
switch (a) {
|
||||
case 2:
|
||||
Draw.tipText = '左键单击确定方向,完成集结地添加!'
|
||||
break;
|
||||
default:
|
||||
Draw.tipText = '左键单击确定控制点位置,右键单击取消集结地添加!CTRL+右键单击撤销上一个控制点'
|
||||
break;
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
@ -524,13 +583,20 @@ const bottomMenuList = ref([
|
||||
className: 'public',
|
||||
ref: ref(null),
|
||||
fun: () => {
|
||||
let Draw = new YJ.Draw.DrawAttackArrow(window.earth)
|
||||
let Draw = new YJ.Draw.DrawAttackArrow(window.earth, {
|
||||
tipText: '左键单击确定角点位置,右键单击取消箭头添加!CTRL+右键单击撤销上一个角点'
|
||||
})
|
||||
Draw.start(async (a, positions) => {
|
||||
if (!positions || positions.length < 3) {
|
||||
ElMessage({
|
||||
message: '至少需要绘制三个坐标!',
|
||||
type: 'warning'
|
||||
})
|
||||
switch (a) {
|
||||
case 0:
|
||||
case 1:
|
||||
Draw.tipText = '左键单击确定角点位置,右键单击取消箭头添加!CTRL+右键单击撤销上一个角点'
|
||||
break;
|
||||
default:
|
||||
Draw.tipText = '左键单击确定箭头方向,右键单击结束箭头添加!CTRL+右键单击撤销上一个角点'
|
||||
break;
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
@ -555,13 +621,22 @@ const bottomMenuList = ref([
|
||||
className: 'public',
|
||||
ref: ref(null),
|
||||
fun: () => {
|
||||
let Draw = new YJ.Draw.DrawPincerArrow(window.earth)
|
||||
let Draw = new YJ.Draw.DrawPincerArrow(window.earth, { tipText: '左键单击确定角点位置,右键单击取消双箭头添加!CTRL+右键单击撤销上一个角点' })
|
||||
Draw.start(async (a, positions) => {
|
||||
if (!positions || positions.length < 5) {
|
||||
ElMessage({
|
||||
message: '至少需要绘制五个坐标!',
|
||||
type: 'warning'
|
||||
})
|
||||
switch (a) {
|
||||
case 0:
|
||||
case 1:
|
||||
Draw.tipText = '左键单击确定角点位置,右键单击取消双箭头添加!CTRL+右键单击撤销上一个角点'
|
||||
break;
|
||||
case 2:
|
||||
case 3:
|
||||
Draw.tipText = '左键单击确定箭头方向,右键单击结束双箭头添加!CTRL+右键单击撤销上一个角点'
|
||||
break;
|
||||
default:
|
||||
Draw.tipText = '左键单击确定箭头宽度,完成双箭头添加!'
|
||||
break;
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
@ -662,6 +737,7 @@ document.addEventListener('click', (e: any) => {
|
||||
height: 44px;
|
||||
bottom: 1em;
|
||||
left: 13vw;
|
||||
|
||||
:deep(.el-tooltip__trigger) {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
@ -1,103 +1,59 @@
|
||||
<template>
|
||||
<div ref="leftSideSecondRef" class="leftSideSecond">
|
||||
<svg
|
||||
class="leftSideSecond_bg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
width="244"
|
||||
height="310.1533203125"
|
||||
viewBox="0 0 244 310.1533203125"
|
||||
fill="none"
|
||||
preserveAspectRatio="none"
|
||||
>
|
||||
<svg class="leftSideSecond_bg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
width="244" height="310.1533203125" viewBox="0 0 244 310.1533203125" fill="none" preserveAspectRatio="none">
|
||||
<foreignObject x="-5" y="-4.8466796875" width="254" height="320">
|
||||
<div
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
style="
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="
|
||||
backdrop-filter: blur(5px);
|
||||
clip-path: url(#bgblur_244_310_10_clip_path);
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
"
|
||||
></div>
|
||||
"></div>
|
||||
</foreignObject>
|
||||
<path
|
||||
fill="#000000"
|
||||
fill-opacity="0.5"
|
||||
d="M232.01 310.153L244 297.278L244 0.15332L0 0.15332L0 310.153L232.01 310.153Z"
|
||||
/>
|
||||
<path
|
||||
fill="url(#linear_fill_730_213_1)"
|
||||
d="M232.01 310.153L244 297.278L244 0.15332L0 0.15332L0 310.153L232.01 310.153Z"
|
||||
/>
|
||||
<path fill="#000000" fill-opacity="0.5"
|
||||
d="M232.01 310.153L244 297.278L244 0.15332L0 0.15332L0 310.153L232.01 310.153Z" />
|
||||
<path fill="url(#linear_fill_730_213_1)"
|
||||
d="M232.01 310.153L244 297.278L244 0.15332L0 0.15332L0 310.153L232.01 310.153Z" />
|
||||
<foreignObject x="-5" y="-5" width="32" height="32">
|
||||
<div
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
style="
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="
|
||||
backdrop-filter: blur(5px);
|
||||
clip-path: url(#bgblur_22_22_10_clip_path);
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
"
|
||||
></div>
|
||||
"></div>
|
||||
</foreignObject>
|
||||
<foreignObject x="202" y="271.1533203125" width="47" height="43.99951171875">
|
||||
<div
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
style="
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="
|
||||
backdrop-filter: blur(5px);
|
||||
clip-path: url(#bgblur_37_33.99951171875_10_clip_path);
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
"
|
||||
></div>
|
||||
"></div>
|
||||
</foreignObject>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
fill="url(#linear_border_2035_2214_0)"
|
||||
d="M232.01 310.153L0 310.153L0 0.15332L244 0.15332L244 297.278L232.01 310.153ZM242.5 296.688L242.5 1.65332L1.5 1.65332L1.5 308.653L231.357 308.653L242.5 296.688Z"
|
||||
/>
|
||||
<path fill-rule="evenodd" fill="url(#linear_border_2035_2214_0)"
|
||||
d="M232.01 310.153L0 310.153L0 0.15332L244 0.15332L244 297.278L232.01 310.153ZM242.5 296.688L242.5 1.65332L1.5 1.65332L1.5 308.653L231.357 308.653L242.5 296.688Z" />
|
||||
<path d="M0 0L0 22L22 0L0 0Z" fill="rgb(var(--color-base1))" fill-opacity="0.2" />
|
||||
<defs>
|
||||
<clipPath id="bgblur_22_22_10_clip_path" transform="translate(5 5)">
|
||||
<path d="M0 0L0 22L22 0L0 0Z" />
|
||||
</clipPath>
|
||||
</defs>
|
||||
<path
|
||||
d="M244 276.153L244 297.304L232 310.153L207 310.153L244 276.153Z"
|
||||
fill="rgb(var(--color-base1))"
|
||||
fill-opacity="0.2"
|
||||
/>
|
||||
<path d="M244 276.153L244 297.304L232 310.153L207 310.153L244 276.153Z" fill="rgb(var(--color-base1))"
|
||||
fill-opacity="0.2" />
|
||||
<defs>
|
||||
<clipPath
|
||||
id="bgblur_37_33.99951171875_10_clip_path"
|
||||
transform="translate(-202 -271.1533203125)"
|
||||
>
|
||||
<clipPath id="bgblur_37_33.99951171875_10_clip_path" transform="translate(-202 -271.1533203125)">
|
||||
<path d="M244 276.153L244 297.304L232 310.153L207 310.153L244 276.153Z" />
|
||||
</clipPath>
|
||||
</defs>
|
||||
<path d="M12 3L3 3L3 12L12 3Z" stroke="rgba(var(--color-base2), 1)" stroke-width="1" />
|
||||
<defs>
|
||||
<linearGradient
|
||||
id="linear_fill_730_213_1"
|
||||
x1="127.20458984375"
|
||||
y1="310.1533203125"
|
||||
x2="127.203857421875"
|
||||
y2="0.1533203125"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
>
|
||||
<linearGradient id="linear_fill_730_213_1" x1="127.20458984375" y1="310.1533203125" x2="127.203857421875"
|
||||
y2="0.1533203125" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" stop-color="rgb(var(--color-base1))" stop-opacity="0.3" />
|
||||
<stop offset="1" stop-color="rgb(var(--color-base2))" stop-opacity="0" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
id="linear_border_2035_2214_0"
|
||||
x1="0"
|
||||
y1="-10.0346360206604"
|
||||
x2="211.1868896484375"
|
||||
y2="231.8046417236328"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
>
|
||||
<linearGradient xmlns="http://www.w3.org/2000/svg" id="linear_border_2035_2214_0" x1="0" y1="-10.0346360206604"
|
||||
x2="211.1868896484375" y2="231.8046417236328" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0.0625" stop-color="rgb(var(--color-base1))" />
|
||||
<stop offset="1" stop-color="var(--color-border1)" />
|
||||
</linearGradient>
|
||||
@ -110,8 +66,8 @@
|
||||
style="color: rgb(255, 0, 0)" alt="" /> -->
|
||||
<svg-icon :name="value" :size="20" color="rgba(var(--color-base2), 1)"></svg-icon>
|
||||
<span :style="{ color: !clickChange[value] ? 'var(--color-text)' : 'rgb(255,0,0)' }">{{
|
||||
t(`${obj.key}.${value}`)
|
||||
}}</span>
|
||||
t(`${obj.key}.${value}`)
|
||||
}}</span>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
@ -208,29 +164,36 @@ const methodMap = {
|
||||
'openModel',
|
||||
true,
|
||||
(url) => {
|
||||
let draw = new YJ.Draw.DrawPolyline(window.earth)
|
||||
draw.start(async (err, positions) => {
|
||||
if (positions && positions.length > 1) {
|
||||
let id = new YJ.Tools().randomString()
|
||||
let name = t(`effect.path`)
|
||||
await addMapSource({
|
||||
type: 'path',
|
||||
id: id,
|
||||
sourceName: name,
|
||||
opt: {
|
||||
id: id,
|
||||
name: name,
|
||||
model: {
|
||||
show: true,
|
||||
url: url
|
||||
},
|
||||
line: {
|
||||
show: true,
|
||||
positions: positions
|
||||
}
|
||||
}
|
||||
})
|
||||
let draw = new YJ.Draw.DrawPolyline(window.earth, { tipText: '左键单击确定控制点位置,右键单击取消轨迹运动添加!CTRL+右键单击撤销上一个控制点' })
|
||||
draw.start(async (a, positions) => {
|
||||
if (!positions || positions.length < 2) {
|
||||
if (a >= 2) {
|
||||
draw.tipText = '左键单击确定控制点位置,右键单击完成轨迹运动添加! CTRL+右键单击撤销上一个控制点'
|
||||
}
|
||||
else {
|
||||
draw.tipText = '左键单击确定控制点位置,右键单击取消轨迹运动添加!CTRL+右键单击撤销上一个控制点'
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
let name = t(`effect.path`)
|
||||
await addMapSource({
|
||||
type: 'path',
|
||||
id: id,
|
||||
sourceName: name,
|
||||
opt: {
|
||||
id: id,
|
||||
name: name,
|
||||
model: {
|
||||
show: true,
|
||||
url: url
|
||||
},
|
||||
line: {
|
||||
show: true,
|
||||
positions: positions
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
'trajectoryMotion'
|
||||
@ -238,126 +201,175 @@ const methodMap = {
|
||||
},
|
||||
// 电子围墙
|
||||
wallStereoscopic: () => {
|
||||
let draw = new YJ.Draw.DrawPolyline(window.earth)
|
||||
draw.start((err, positions) => {
|
||||
if (positions.length > 1) {
|
||||
let id = new YJ.Tools().randomString()
|
||||
let name = t(`effect.wallStereoscopic`)
|
||||
addMapSource({
|
||||
type: 'wallStereoscopic',
|
||||
id: id,
|
||||
sourceName: name,
|
||||
opt: {
|
||||
id: id,
|
||||
name: name,
|
||||
positions: positions
|
||||
}
|
||||
})
|
||||
let draw = new YJ.Draw.DrawPolyline(window.earth, { tipText: '左键单击确定控制点位置,右键单击取消电子围墙添加!CTRL+右键单击撤销上一个控制点' })
|
||||
draw.start((a, positions) => {
|
||||
if (!positions || positions.length < 2) {
|
||||
if (a >= 2) {
|
||||
draw.tipText = '左键单击确定控制点位置,右键单击完成电子围墙添加! CTRL+右键单击撤销上一个控制点'
|
||||
}
|
||||
else {
|
||||
draw.tipText = '左键单击确定控制点位置,右键单击取消电子围墙添加!CTRL+右键单击撤销上一个控制点'
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
let name = t(`effect.wallStereoscopic`)
|
||||
addMapSource({
|
||||
type: 'wallStereoscopic',
|
||||
id: id,
|
||||
sourceName: name,
|
||||
opt: {
|
||||
id: id,
|
||||
name: name,
|
||||
positions: positions
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
// 实体墙
|
||||
entityWall: () => {
|
||||
let draw = new YJ.Draw.DrawPolyline(window.earth)
|
||||
draw.start((err, positions) => {
|
||||
if (positions.length > 1) {
|
||||
let id = new YJ.Tools().randomString()
|
||||
let name = t(`effect.entityWall`)
|
||||
addMapSource({
|
||||
type: 'entityWall',
|
||||
id: id,
|
||||
sourceName: name,
|
||||
opt: {
|
||||
id: id,
|
||||
name: name,
|
||||
positions: positions,
|
||||
material: 1,
|
||||
}
|
||||
})
|
||||
let draw = new YJ.Draw.DrawPolyline(window.earth, { tipText: '左键单击确定控制点位置,右键单击取消实体墙添加!CTRL+右键单击撤销上一个控制点' })
|
||||
draw.start((a, positions) => {
|
||||
if (!positions || positions.length < 2) {
|
||||
if (a >= 2) {
|
||||
draw.tipText = '左键单击确定控制点位置,右键单击完成实体墙添加! CTRL+右键单击撤销上一个控制点'
|
||||
}
|
||||
else {
|
||||
draw.tipText = '左键单击确定控制点位置,右键单击取消实体墙添加!CTRL+右键单击撤销上一个控制点'
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
let name = t(`effect.entityWall`)
|
||||
addMapSource({
|
||||
type: 'entityWall',
|
||||
id: id,
|
||||
sourceName: name,
|
||||
opt: {
|
||||
id: id,
|
||||
name: name,
|
||||
positions: positions,
|
||||
material: 1,
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
// 扩散光波
|
||||
diffuseScan: () => {
|
||||
let draw = new YJ.Draw.DrawCircle(window.earth)
|
||||
draw.start((err, options) => {
|
||||
if (options) {
|
||||
let id = new YJ.Tools().randomString()
|
||||
let name = t(`effect.diffuseScan`)
|
||||
addMapSource({
|
||||
type: 'diffuseScan',
|
||||
id: id,
|
||||
sourceName: name,
|
||||
opt: {
|
||||
id: id,
|
||||
name: name,
|
||||
lng: options.center.lng,
|
||||
lat: options.center.lat,
|
||||
circle: [
|
||||
{
|
||||
radius: options.radius,
|
||||
color: '#ff0000'
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
let draw = new YJ.Draw.DrawCircle(window.earth, {
|
||||
tipText: '左键单击确定中心点位置,右键单击取消扩散光波添加!CTRL+右键单击撤销'
|
||||
})
|
||||
draw.start((a, options) => {
|
||||
if (!options) {
|
||||
switch (a) {
|
||||
case 0:
|
||||
draw.tipText = '左键单击确定中心点位置,右键单击取消扩散光波添加!CTRL+右键单击撤销'
|
||||
break;
|
||||
case 1:
|
||||
draw.tipText = '左键单击确定扩散半径,完成扩散光波添加!'
|
||||
break;
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
let name = t(`effect.diffuseScan`)
|
||||
addMapSource({
|
||||
type: 'diffuseScan',
|
||||
id: id,
|
||||
sourceName: name,
|
||||
opt: {
|
||||
id: id,
|
||||
name: name,
|
||||
lng: options.center.lng,
|
||||
lat: options.center.lat,
|
||||
circle: [
|
||||
{
|
||||
radius: options.radius,
|
||||
color: '#ff0000'
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
// 雷达光波
|
||||
radarScan: () => {
|
||||
let draw = new YJ.Draw.DrawCircle(window.earth)
|
||||
draw.start((err, options) => {
|
||||
if (options) {
|
||||
let id = new YJ.Tools().randomString()
|
||||
let name = t(`effect.radarScan`)
|
||||
addMapSource({
|
||||
type: 'radarScan',
|
||||
id: id,
|
||||
sourceName: name,
|
||||
opt: {
|
||||
id: id,
|
||||
name: name,
|
||||
lng: options.center.lng,
|
||||
lat: options.center.lat,
|
||||
radius: options.radius
|
||||
}
|
||||
})
|
||||
let draw = new YJ.Draw.DrawCircle(window.earth, {
|
||||
tipText: '左键单击确定中心点位置,右键单击取消雷达光波添加!CTRL+右键单击撤销'
|
||||
})
|
||||
draw.start((a, options) => {
|
||||
if (!options) {
|
||||
switch (a) {
|
||||
case 0:
|
||||
draw.tipText = '左键单击确定中心点位置,右键单击取消雷达光波添加!CTRL+右键单击撤销'
|
||||
break;
|
||||
case 1:
|
||||
draw.tipText = '左键单击确定雷达半径,完成雷达光波添加!'
|
||||
break;
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
let name = t(`effect.radarScan`)
|
||||
addMapSource({
|
||||
type: 'radarScan',
|
||||
id: id,
|
||||
sourceName: name,
|
||||
opt: {
|
||||
id: id,
|
||||
name: name,
|
||||
lng: options.center.lng,
|
||||
lat: options.center.lat,
|
||||
radius: options.radius
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
// 立体雷达扫描
|
||||
scanStereoscopic: () => {
|
||||
let draw = new YJ.Draw.DrawCircle(window.earth)
|
||||
draw.start((err, options) => {
|
||||
if (options) {
|
||||
let id = new YJ.Tools().randomString()
|
||||
let name = t(`effect.scanStereoscopic`)
|
||||
addMapSource({
|
||||
type: 'scanStereoscopic',
|
||||
id: id,
|
||||
sourceName: name,
|
||||
opt: {
|
||||
id: id,
|
||||
name: name,
|
||||
lng: options.center.lng,
|
||||
lat: options.center.lat,
|
||||
alt: options.center.alt,
|
||||
radius: options.radius
|
||||
}
|
||||
})
|
||||
let draw = new YJ.Draw.DrawCircle(window.earth, {
|
||||
tipText: '左键单击确定中心点位置,右键单击取消立体雷达添加!CTRL+右键单击撤销'
|
||||
})
|
||||
draw.start((a, options) => {
|
||||
if (!options) {
|
||||
switch (a) {
|
||||
case 0:
|
||||
draw.tipText = '左键单击确定中心点位置,右键单击取消立体雷达添加!CTRL+右键单击撤销'
|
||||
break;
|
||||
case 1:
|
||||
draw.tipText = '左键单击确定雷达半径,完成立体雷达添加!'
|
||||
break;
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
let name = t(`effect.scanStereoscopic`)
|
||||
addMapSource({
|
||||
type: 'scanStereoscopic',
|
||||
id: id,
|
||||
sourceName: name,
|
||||
opt: {
|
||||
id: id,
|
||||
name: name,
|
||||
lng: options.center.lng,
|
||||
lat: options.center.lat,
|
||||
alt: options.center.alt,
|
||||
radius: options.radius
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
// 多面体
|
||||
polyhedronObject: () => {
|
||||
let draw = new YJ.Draw.DrawPolygon(window.earth)
|
||||
draw.start((err, positions) => {
|
||||
let draw = new YJ.Draw.DrawPolygon(window.earth, { tipText: '左键单击确定控制点位置,右键单击取消多面体添加! CTRL+右键单击撤销上一个控制点' })
|
||||
draw.start((a, positions) => {
|
||||
if (!positions || positions.length < 3) {
|
||||
ElMessage({
|
||||
message: '至少需要绘制三个坐标!',
|
||||
type: 'warning'
|
||||
})
|
||||
if (a >= 3) {
|
||||
draw.tipText = '左键单击确定控制点位置,右键单击结束多面体添加! CTRL+右键单击撤销'
|
||||
}
|
||||
else {
|
||||
draw.tipText = '左键单击确定控制点位置,右键单击取消多面体添加! CTRL+右键单击撤销上一个控制点'
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
@ -376,13 +388,15 @@ const methodMap = {
|
||||
},
|
||||
// 水面
|
||||
water: () => {
|
||||
let draw = new YJ.Draw.DrawPolygon(window.earth)
|
||||
draw.start((err, positions) => {
|
||||
let draw = new YJ.Draw.DrawPolygon(window.earth, { tipText: '左键单击确定控制点位置,右键单击取消水面添加! CTRL+右键单击撤销上一个控制点' })
|
||||
draw.start((a, positions) => {
|
||||
if (!positions || positions.length < 3) {
|
||||
ElMessage({
|
||||
message: '至少需要绘制三个坐标!',
|
||||
type: 'warning'
|
||||
})
|
||||
if (a >= 3) {
|
||||
draw.tipText = '左键单击确定控制点位置,右键单击结束水面添加! CTRL+右键单击撤销'
|
||||
}
|
||||
else {
|
||||
draw.tipText = '左键单击确定控制点位置,右键单击取消水面添加! CTRL+右键单击撤销上一个控制点'
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
@ -401,7 +415,9 @@ const methodMap = {
|
||||
},
|
||||
// 喷泉
|
||||
fountain: () => {
|
||||
let draw = new YJ.Draw.DrawPoint(window.earth)
|
||||
let draw = new YJ.Draw.DrawPoint(window.earth, {
|
||||
tipText: '左键单击确定喷泉位置,右键单击取消喷泉添加!'
|
||||
})
|
||||
draw.start(async (a, position) => {
|
||||
if (!position) {
|
||||
return
|
||||
@ -424,7 +440,9 @@ const methodMap = {
|
||||
},
|
||||
// 火焰
|
||||
fire: () => {
|
||||
let draw = new YJ.Draw.DrawPoint(window.earth)
|
||||
let draw = new YJ.Draw.DrawPoint(window.earth, {
|
||||
tipText: '左键单击确定火焰位置,右键单击取消火焰添加!'
|
||||
})
|
||||
draw.start(async (a, position) => {
|
||||
if (!position) {
|
||||
return
|
||||
@ -447,7 +465,9 @@ const methodMap = {
|
||||
},
|
||||
// 烟雾
|
||||
smoke: () => {
|
||||
let draw = new YJ.Draw.DrawPoint(window.earth)
|
||||
let draw = new YJ.Draw.DrawPoint(window.earth, {
|
||||
tipText: '左键单击确定烟雾位置,右键单击取消烟雾添加!'
|
||||
})
|
||||
draw.start(async (a, position) => {
|
||||
if (!position) {
|
||||
return
|
||||
@ -470,13 +490,15 @@ const methodMap = {
|
||||
},
|
||||
// 喷射水柱
|
||||
waterL: () => {
|
||||
let draw = new YJ.Draw.DrawPolyline(window.earth, { number: 2 })
|
||||
let draw = new YJ.Draw.DrawPolyline(window.earth, { tipText: '左键单击确定控制点位置,右键单击取消水柱添加!CTRL+右键单击撤销上一个控制点' })
|
||||
draw.start(async (a, positions) => {
|
||||
if (!positions || positions.length < 2) {
|
||||
ElMessage({
|
||||
message: '至少需要绘制两个坐标!',
|
||||
type: 'warning'
|
||||
})
|
||||
if (a >= 2) {
|
||||
draw.tipText = '左键单击确定终点位置,完成水柱添加! '
|
||||
}
|
||||
else {
|
||||
draw.tipText = '左键单击确定控制点位置,右键单击取消水柱添加!CTRL+右键单击撤销上一个控制点'
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
@ -500,13 +522,15 @@ const methodMap = {
|
||||
},
|
||||
// 飞线
|
||||
flyLine: () => {
|
||||
let draw = new YJ.Draw.DrawPolygon(window.earth)
|
||||
draw.start((err, positions) => {
|
||||
let draw = new YJ.Draw.DrawPolygon(window.earth, { tipText: '左键单击确定控制点位置,右键单击取消飞线添加! CTRL+右键单击撤销上一个控制点' })
|
||||
draw.start((a, positions) => {
|
||||
if (!positions || positions.length < 3) {
|
||||
ElMessage({
|
||||
message: '至少需要绘制三个坐标!',
|
||||
type: 'warning'
|
||||
})
|
||||
if (a >= 3) {
|
||||
draw.tipText = '左键单击确定控制点位置,右键单击结束飞线添加! CTRL+右键单击撤销'
|
||||
}
|
||||
else {
|
||||
draw.tipText = '左键单击确定控制点位置,右键单击取消飞线添加! CTRL+右键单击撤销上一个控制点'
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
@ -525,7 +549,9 @@ const methodMap = {
|
||||
},
|
||||
// 爆炸
|
||||
explosion: () => {
|
||||
let draw = new YJ.Draw.DrawPoint(window.earth)
|
||||
let draw = new YJ.Draw.DrawPoint(window.earth, {
|
||||
tipText: '左键单击确定爆炸位置,右键单击取消爆炸添加!'
|
||||
})
|
||||
draw.start(async (a, position) => {
|
||||
if (!position) {
|
||||
return
|
||||
@ -619,7 +645,14 @@ const methodMap = {
|
||||
},
|
||||
//坡向分析
|
||||
slopeDirection() {
|
||||
new YJ.Analysis.SlopeAspect(window.earth)
|
||||
let SlopeAspect = new YJ.Analysis.SlopeAspect(window.earth)
|
||||
if(SlopeAspect.error) {
|
||||
ElMessage({
|
||||
message: SlopeAspect.error,
|
||||
type: 'error'
|
||||
})
|
||||
return
|
||||
}
|
||||
},
|
||||
// 填挖方分析
|
||||
cutFill() {
|
||||
@ -633,10 +666,28 @@ const methodMap = {
|
||||
},
|
||||
//等高线分析
|
||||
contour() {
|
||||
let Draw = new YJ.Draw.DrawRect(window.earth)
|
||||
let Draw = new YJ.Draw.DrawRect(window.earth, { tipText: '左键单击确定控制点位置,右键单击取消等高线分析!CTRL+右键单击撤销上一个控制点' })
|
||||
Draw.start((a, positions) => {
|
||||
// 等高线
|
||||
new YJ.Analysis.Contour(window.earth, { positions: positions })
|
||||
if (!positions || positions.length < 3) {
|
||||
switch (a) {
|
||||
case 1:
|
||||
Draw.tipText = '左键单击确定对角点位置,完成等高线分析!'
|
||||
break;
|
||||
default:
|
||||
Draw.tipText = '左键单击确定控制点位置,右键单击取消等高线分析!CTRL+右键单击撤销上一个控制点'
|
||||
break;
|
||||
}
|
||||
return
|
||||
}
|
||||
let contour = new YJ.Analysis.Contour(window.earth, { positions: positions })
|
||||
if (contour.error) {
|
||||
ElMessage({
|
||||
message: contour.error,
|
||||
type: 'error'
|
||||
})
|
||||
return
|
||||
}
|
||||
// YJ.Analysis.Clear();
|
||||
})
|
||||
},
|
||||
@ -725,7 +776,7 @@ const methodMap = {
|
||||
filters: [{ name: '保存图片', extensions: ['jpg'] }]
|
||||
})
|
||||
$recvElectronChanel('selectedFileItem', (e, path) => {
|
||||
fs.writeFile(path, dataBuffer, (res) => {})
|
||||
fs.writeFile(path, dataBuffer, (res) => { })
|
||||
})
|
||||
}
|
||||
|
||||
@ -859,11 +910,11 @@ const methodMap = {
|
||||
TreeApi.addOtherSource(paramsData)
|
||||
paramsData.isShow = true
|
||||
paramsData.params = JSON.stringify(paramsData.params)
|
||||
;(window as any).pressModelMap.set(id + '_' + selectedNode.id, paramsData)
|
||||
;(window as any).pressModelEntities.set(id, flat)
|
||||
; (window as any).pressModelMap.set(id + '_' + selectedNode.id, paramsData)
|
||||
; (window as any).pressModelEntities.set(id, flat)
|
||||
cusAddNodes(window.treeObj, paramsData.parentId, [paramsData])
|
||||
// //鼠标右键点击事件
|
||||
flat.onRightClick = () => {}
|
||||
flat.onRightClick = () => { }
|
||||
// _entityMap.set(node.source_id, flat)
|
||||
} else {
|
||||
// this.$message.warning('至少三个点')
|
||||
@ -994,7 +1045,7 @@ const methodMap = {
|
||||
DbOption.params = JSON.stringify(DbOption.params)
|
||||
cusAddNodes(window.treeObj, DbOption.parentId, [DbOption])
|
||||
let entityObject = renderVector(DbOption, true)
|
||||
;(window as any)._entityMap.set(id, entityObject)
|
||||
; (window as any)._entityMap.set(id, entityObject)
|
||||
// }
|
||||
// })
|
||||
}
|
||||
@ -1039,18 +1090,22 @@ defineExpose({
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.custom-cursor {
|
||||
cursor:
|
||||
url('@/assets/img/defaultMouse.png') 2 11,
|
||||
auto;
|
||||
}
|
||||
|
||||
.default-cursor {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* .el-loading-parent--relative {
|
||||
position: unset !important;
|
||||
} */
|
||||
@ -1067,6 +1122,7 @@ defineExpose({
|
||||
/* 旋转动画 */
|
||||
/* animation: rotateBackground 10s linear infinite; */
|
||||
}
|
||||
|
||||
.timer .el-loading-spinner .el-loading-text::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
@ -1090,7 +1146,7 @@ defineExpose({
|
||||
// background-size: 100% 100%;
|
||||
padding: 13px 6px 13px 6px;
|
||||
|
||||
> .leftSideSecond_bg {
|
||||
>.leftSideSecond_bg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
|
||||
@ -160,7 +160,13 @@ const precisionInput = () => {
|
||||
}
|
||||
const precisionChange = () => {}
|
||||
const draw = (e) => {
|
||||
visibility.draw()
|
||||
let info = visibility.draw()
|
||||
if(info) {
|
||||
ElMessage({
|
||||
message: info,
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
// visibility.create(this)
|
||||
// !window.analysisArr && (window.analysisArr = [])
|
||||
// window.analysisArr.push(visibility)
|
||||
|
||||
@ -185,8 +185,7 @@
|
||||
<div style="position: absolute; left: 24px; display: flex">
|
||||
<button class="flyto" @click="flyTo">
|
||||
<svg class="icon-positions">
|
||||
<use xlink:href="#yj-icon-positions"></use></svg
|
||||
>定位
|
||||
<use xlink:href="#yj-icon-positions"></use></svg>定位
|
||||
</button>
|
||||
<button class="analog" style="margin-left: 10px" @click="pause">
|
||||
<svg class="icon-play" v-if="!isPausng"><use xlink:href="#yj-icon-play"></use></svg>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<Dialog ref="baseDialog" :title="t('bottomMenu.groundText')" left="calc(50% - 198px)" top="calc(50% - 120px)"
|
||||
:closeCallback="closeCallBack">
|
||||
<template #content>
|
||||
<textarea style="height: 40px; width: 348px;" v-model="text"></textarea>
|
||||
<textarea style="height: 40px; width: 348px;" maxlength="80" v-model="text"></textarea>
|
||||
</template>
|
||||
<template #footer>
|
||||
<button @click="confirm">{{ t('btn.confirm') }}</button>
|
||||
@ -42,9 +42,17 @@ const confirm = () => {
|
||||
let name = text.value
|
||||
text.value = ''
|
||||
baseDialog.value?.close()
|
||||
let Draw = new YJ.Draw.DrawPolyline(window.earth, { number: 2 })
|
||||
let Draw = new YJ.Draw.DrawPolyline(window.earth, { number: 2, tipText: '左键单击确定控制点位置,右键单击取消贴地文字添加!CTRL+右键单击撤销上一个控制点' })
|
||||
Draw.start(async (a, positions) => {
|
||||
if (!positions || positions.length < 2) {
|
||||
switch (a) {
|
||||
case 1:
|
||||
Draw.tipText = '左键单击确定控制点位置,完成贴地文字添加!'
|
||||
break;
|
||||
default:
|
||||
Draw.tipText = '左键单击确定控制点位置,右键单击取消贴地文字添加!CTRL+右键单击撤销上一个控制点'
|
||||
break;
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<Dialog ref="baseDialog" :title="t('bottomMenu.standText')" left="calc(50% - 198px)" top="calc(50% - 120px)"
|
||||
:closeCallback="closeCallBack">
|
||||
<template #content>
|
||||
<textarea style="height: 40px; width: 348px;" v-model="text"></textarea>
|
||||
<textarea style="height: 40px; width: 348px;" maxlength="80" v-model="text"></textarea>
|
||||
</template>
|
||||
<template #footer>
|
||||
<button @click="confirm">{{ t('btn.confirm') }}</button>
|
||||
@ -42,9 +42,15 @@ const confirm = () => {
|
||||
let name = text.value
|
||||
text.value = ''
|
||||
baseDialog.value?.close()
|
||||
let Draw = new YJ.Draw.DrawPolyline(window.earth)
|
||||
let Draw = new YJ.Draw.DrawPolyline(window.earth, { tipText: '左键单击确定控制点位置,右键单击取消立体文字添加!CTRL+右键单击撤销' })
|
||||
Draw.start(async (a, positions) => {
|
||||
if (!positions || positions.length < 2) {
|
||||
if (a >= 2) {
|
||||
Draw.tipText = '左键单击确定顶点位置,右键单击结束立体文字添加! CTRL+右键单击撤销'
|
||||
}
|
||||
else {
|
||||
Draw.tipText = '左键单击确定控制点位置,右键单击取消立体文字添加!CTRL+右键单击撤销'
|
||||
}
|
||||
return
|
||||
}
|
||||
let id = new YJ.Tools().randomString()
|
||||
|
||||
@ -156,6 +156,8 @@ const open = async (id: any) => {
|
||||
}, //点击确认按钮事件回调
|
||||
clear: () => {
|
||||
entityOptions.value.options.circle[i].color = 'rgba(255,255,255,1)'
|
||||
circle.value[i].color = 'rgba(255,255,255,1)'
|
||||
entityOptions.value.circle = entityOptions.value.options.circle
|
||||
} //点击清空按钮事件回调
|
||||
})
|
||||
}
|
||||
@ -187,6 +189,8 @@ const addCircle = async () => {
|
||||
}, //点击确认按钮事件回调
|
||||
clear: () => {
|
||||
entityOptions.value.options.circle[i].color = 'rgba(255,255,255,1)'
|
||||
circle.value[i].color = 'rgba(255,255,255,1)'
|
||||
entityOptions.value.circle = entityOptions.value.options.circle
|
||||
} //点击清空按钮事件回调
|
||||
})
|
||||
}
|
||||
@ -211,6 +215,8 @@ const minusCircle = async (index) => {
|
||||
}, //点击确认按钮事件回调
|
||||
clear: () => {
|
||||
entityOptions.value.options.circle[i].color = 'rgba(255,255,255,1)'
|
||||
circle.value[i].color = 'rgba(255,255,255,1)'
|
||||
entityOptions.value.circle = entityOptions.value.options.circle
|
||||
} //点击清空按钮事件回调
|
||||
})
|
||||
}
|
||||
@ -240,6 +246,8 @@ const changeRadius = async (e) => {
|
||||
}, //点击确认按钮事件回调
|
||||
clear: () => {
|
||||
entityOptions.value.options.circle[i].color = 'rgba(255,255,255,1)'
|
||||
circle.value[i].color = 'rgba(255,255,255,1)'
|
||||
entityOptions.value.circle = entityOptions.value.options.circle
|
||||
} //点击清空按钮事件回调
|
||||
})
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="set_pup">
|
||||
<el-dialog v-model="isShowPup" :modal="false" draggable>
|
||||
<el-dialog v-model="isShowPup" :modal="true" draggable>
|
||||
<template #header>
|
||||
<div class="set_pup_header">
|
||||
<div class="system_title">
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="set_pup">
|
||||
<el-dialog v-model="isShowPup" :modal="false" draggable>
|
||||
<el-dialog v-model="isShowPup" :modal="true" draggable>
|
||||
<template #header>
|
||||
<div class="set_pup_header">
|
||||
<div class="system_title">
|
||||
|
||||
@ -265,9 +265,7 @@ const translate = () => {
|
||||
}
|
||||
else {
|
||||
that.openPositionEditing(() => {
|
||||
entityOptions.value.options.lng = structuredClone(that.options.lng)
|
||||
entityOptions.value.options.lat = structuredClone(that.options.lat)
|
||||
entityOptions.value.options.alt = structuredClone(that.options.alt)
|
||||
entityOptions.value.lng = structuredClone(that.options.lng)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="set_pup">
|
||||
<el-dialog v-model="isShowPup" :modal="false" draggable>
|
||||
<el-dialog v-model="isShowPup" :modal="true" draggable>
|
||||
<template #header>
|
||||
<div class="set_pup_header">
|
||||
<div class="system_title">
|
||||
|
||||
@ -39,14 +39,18 @@
|
||||
<input class="input" type="number" title="" min="-90" max="90" v-model="entityOptions.lat" @input="$handleInputLimit">
|
||||
</div>
|
||||
<div class="col">
|
||||
<span class="label">持续时间</span>
|
||||
<input class="input" type="number" title="" min="0" max="100" v-model="entityOptions.duration" @input="$handleInputLimit">
|
||||
<span class="label">扫描速度</span>
|
||||
<div class="input-number input-number-unit-2 input-radius">
|
||||
<input class="input" type="number" title="" min="0" max="10" data-tofixed="2" v-model="entityOptions.speed" @input="$handleInputLimit">
|
||||
<span class="unit">倍</span>
|
||||
<span class="arrow"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<span class="label">高度</span>
|
||||
<input class="input" type="number" title="" min="-90" max="90" v-model="entityOptions.alt" @input="$handleInputLimit">
|
||||
<input class="input" type="number" title="" v-model="entityOptions.alt" @input="$handleInputLimit">
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
|
||||
@ -124,9 +124,25 @@ const close = () => {
|
||||
baseDialog.value?.close()
|
||||
}
|
||||
const rotate = () => {
|
||||
if(!that.tileset.root.transform) {
|
||||
ElMessage.closeAll()
|
||||
ElMessage({
|
||||
message: '该模型不支持移动和旋转!',
|
||||
type: 'warning'
|
||||
})
|
||||
return
|
||||
}
|
||||
that.rotationEditing = !that.rotationEditing
|
||||
}
|
||||
const translate = () => {
|
||||
if(!that.tileset.root.transform) {
|
||||
ElMessage.closeAll()
|
||||
ElMessage({
|
||||
message: '该模型不支持移动和旋转!',
|
||||
type: 'warning'
|
||||
})
|
||||
return
|
||||
}
|
||||
if(that.positionEditing) {
|
||||
that.closePositionEditing()
|
||||
}
|
||||
|
||||
@ -47,7 +47,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<span class="label">水面振幅</span>
|
||||
<span class="label">水面频率</span>
|
||||
<div class="input-number input-number-unit-1">
|
||||
<input class="input" type="number" title="" min="0" max="100" step="1"
|
||||
v-model="entityOptions.frequency" @input="$handleInputLimit">
|
||||
|
||||
@ -79,7 +79,7 @@ function leftClick(options) {
|
||||
// });
|
||||
if (node && (node.sourceType === "point" || node.sourceType === "linkImage" || node.sourceType === "vrImage" || node.sourceType === "line" || node.sourceType === "curve" || node.sourceType === "panel" || node.sourceType === "rectangle"
|
||||
|| node.sourceType === "circle" || node.sourceType === "ellipse" || node.sourceType === "sector" || node.sourceType === "rendezvous" || node.sourceType === "attackArrow" || node.sourceType === "pincerArrow" || node.sourceType === "straightArrow"
|
||||
|| node.sourceType === "model" || node.sourceType === "military" || node.sourceType === "wallStereoscopic" || node.sourceType === "entityWall" || node.sourceType === "diffuseScan" || node.sourceType === "radarScan" || node.sourceType === "scanStereoscopic")) {
|
||||
|| node.sourceType === "model" || node.sourceType === "military" || node.sourceType === "wallStereoscopic" || node.sourceType === "entityWall" || node.sourceType === "diffuseScan" || node.sourceType === "radarScan" || node.sourceType === "scanStereoscopic" || node.sourceType === "polyhedronObject")) {
|
||||
if (
|
||||
!options.richTextContent &&
|
||||
!info.hrefs.length &&
|
||||
|
||||
@ -26,8 +26,36 @@
|
||||
</transition>
|
||||
<!-- 登录页面 -->
|
||||
<div class="rightBox" v-if="isDesktop">
|
||||
<el-button size="small" :icon="Setting" @click="serviceDialog = true"> </el-button>
|
||||
<el-button size="small" :icon="SwitchButton" @click="goExit"> </el-button>
|
||||
<el-button class="settings" size="small" @click="serviceDialog = true">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="42" height="40.67999267578125" viewBox="0 0 42 40.67999267578125" fill="none"><g><path d="M32.748 18C32.6078 17.2589 32.1562 16.776 31.596 16.776L31.584 16.776L31.476 16.776C29.8563 16.776 28.536 15.4559 28.536 13.836C28.536 13.3103 28.788 12.72 28.788 12.72C29.0783 12.0666 28.8579 11.2688 28.272 10.86L28.236 10.836L25.26 9.18L25.224 9.168C25.0301 9.0837 24.8127 9.036 24.588 9.036C24.1275 9.036 23.6739 9.21871 23.376 9.528C23.0494 9.86507 21.9261 10.824 21.06 10.824C20.1861 10.824 19.0599 9.84731 18.732 9.504C18.4325 9.18839 17.9732 9 17.508 9C17.2877 9 17.0746 9.0387 16.884 9.12L16.848 9.144L13.764 10.836L13.728 10.86C13.1402 11.2684 12.922 12.0669 13.212 12.72C13.212 12.72 13.464 13.3063 13.464 13.836C13.464 15.4559 12.1438 16.776 10.524 16.776L10.428 16.776L10.404 16.776C9.84445 16.776 9.39221 17.2588 9.252 18C9.252 18.0544 9 19.3442 9 20.352C9 21.3598 9.252 22.6495 9.252 22.704C9.39231 23.4452 9.84407 23.916 10.404 23.916L10.416 23.916L10.524 23.916C12.1438 23.916 13.464 25.2361 13.464 26.856C13.464 27.3823 13.212 27.972 13.212 27.972C12.922 28.6249 13.1424 29.4341 13.728 29.844L13.764 29.868L16.68 31.5L16.716 31.512C16.9098 31.5973 17.1284 31.644 17.352 31.644C17.819 31.644 18.2669 31.4511 18.564 31.128C18.9788 30.6773 20.1089 29.748 20.94 29.748C21.8399 29.748 22.995 30.787 23.328 31.152C23.6258 31.4807 24.0803 31.68 24.552 31.68C24.7712 31.68 24.9852 31.6424 25.176 31.56L25.212 31.536L28.236 29.868L28.272 29.844C28.8589 29.4351 29.0894 28.6356 28.8 27.984C28.8 27.984 28.536 27.3787 28.536 26.856C28.536 25.2361 29.8563 23.916 31.476 23.916L31.572 23.916L31.596 23.916C32.1571 23.916 32.608 23.4446 32.748 22.704C32.748 22.6909 33 21.385 33 20.352C33 19.3396 32.748 18.0542 32.748 18ZM17.364 29.952L14.808 28.524C14.9206 28.2349 15.144 27.5538 15.144 26.856C15.144 24.433 13.2855 22.4323 10.884 22.248C10.8254 21.9063 10.692 21.0321 10.692 20.352C10.692 19.6729 10.8254 18.798 10.884 18.456C13.2856 18.2719 15.144 16.2592 15.144 13.836C15.144 13.1401 14.9204 12.4692 14.808 12.18L17.532 10.692C17.63 10.7921 18.0227 11.1823 18.564 11.568C19.4485 12.1985 20.2834 12.516 21.06 12.516C21.829 12.516 22.6651 12.1983 23.544 11.58C24.0819 11.2016 24.4783 10.8264 24.576 10.728L27.192 12.18C27.0795 12.4692 26.856 13.1391 26.856 13.836C26.856 16.2592 28.7144 18.2719 31.116 18.456C31.1746 18.7985 31.308 19.6749 31.308 20.352C31.308 21.0318 31.1746 21.9062 31.116 22.248C28.7145 22.4321 26.856 24.4328 26.856 26.856C26.856 27.5527 27.0796 28.2229 27.192 28.512L24.54 29.988C24.4255 29.8664 24.0426 29.4611 23.508 29.064C22.6064 28.3945 21.7405 28.056 20.94 28.056C20.1472 28.056 19.2924 28.3951 18.396 29.052C17.8691 29.4383 17.4787 29.8324 17.364 29.952ZM25.2 20.328C25.2 17.9842 23.2957 16.08 20.952 16.08C18.6083 16.08 16.692 17.9842 16.692 20.328C16.692 22.6717 18.6083 24.588 20.952 24.588C23.2958 24.588 25.2 22.6717 25.2 20.328ZM20.952 17.772C22.3658 17.772 23.508 18.9142 23.508 20.328C23.508 21.7418 22.3658 22.896 20.952 22.896C19.5383 22.896 18.384 21.7418 18.384 20.328C18.384 18.9142 19.5383 17.772 20.952 17.772Z" fill="#FFFFFF"/></g><defs><filter id="filter_2442_1327" x="0" y="0" width="42" height="40.67999267578125" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="feFloodId_2442_1327"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha_2442_1327"/><feOffset dx="0" dy="0"/><feGaussianBlur stdDeviation="4.5"/><feComposite in2="hardAlpha_2442_1327" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0.0784313725490196 0 0 0 0 0.4627450980392157 0 0 0 0 1 0 0 0 1 0"/><feBlend mode="normal" in2="feFloodId_2442_1327" result="dropShadow_1_2442_1327"/><feBlend mode="normal" in="SourceGraphic" in2="dropShadow_1_2442_1327" result="shape_2442_1327"/></filter></defs></svg>
|
||||
</el-button>
|
||||
<el-button class="exit" size="small" @click="goExit">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="40" height="40"
|
||||
viewBox="-8 -8 40 40" fill="none">
|
||||
<g xmlns="http://www.w3.org/2000/svg">
|
||||
<path xmlns="http://www.w3.org/2000/svg"
|
||||
d="M15.8747 5.23095L16.8448 3.27277C16.9578 3.32908 17.0698 3.38736 17.1809 3.44758C17.2919 3.5078 17.4018 3.56992 17.5107 3.63395C17.6195 3.69799 17.7273 3.76389 17.8338 3.83167C17.9404 3.89944 18.0458 3.96904 18.15 4.04046C18.2541 4.1119 18.357 4.18512 18.4587 4.26012C18.5603 4.33512 18.6606 4.41186 18.7596 4.49034C18.8586 4.56881 18.9561 4.64899 19.0523 4.73086C19.1485 4.81273 19.2433 4.89624 19.3366 4.9814C19.4299 5.06657 19.5217 5.15332 19.612 5.24167C19.7023 5.33 19.791 5.41988 19.8782 5.51131C19.9654 5.60273 20.051 5.69563 20.1349 5.79003C20.2189 5.88443 20.3012 5.98026 20.3818 6.0775C20.4625 6.17474 20.5414 6.27335 20.6186 6.37335C20.6958 6.47335 20.7713 6.57465 20.8451 6.67726C20.9188 6.77986 20.9907 6.88372 21.0608 6.98884C21.1309 7.09395 21.1992 7.20024 21.2656 7.3077C21.3321 7.41516 21.3966 7.52375 21.4593 7.63347C21.522 7.74318 21.5827 7.85397 21.6415 7.96578C21.7004 8.07759 21.7573 8.1904 21.8122 8.3042C21.8671 8.41801 21.9201 8.53274 21.971 8.64836C22.0219 8.764 22.0709 8.88049 22.1178 8.99783C22.1647 9.11516 22.2096 9.23326 22.2524 9.35215C22.2952 9.47105 22.336 9.59066 22.3747 9.71096C22.4133 9.83126 22.4499 9.9522 22.4844 10.0738C22.5189 10.1954 22.5513 10.3175 22.5815 10.4402C22.6118 10.5629 22.6399 10.6861 22.6659 10.8097C22.6919 10.9334 22.7157 11.0575 22.7374 11.182C22.7591 11.3065 22.7786 11.4313 22.796 11.5565C22.8134 11.6817 22.8285 11.8071 22.8416 11.9329C22.8546 12.0586 22.8654 12.1845 22.8741 12.3105C22.8827 12.4366 22.8892 12.5628 22.8935 12.6891C22.8977 12.8154 22.8998 12.9418 22.8998 13.0681C22.8998 19.1053 18.0198 24.0002 11.9997 24.0002C5.97958 24.0002 1.09961 19.1053 1.09961 13.0681C1.09961 8.87354 3.47583 5.10551 7.15461 3.27277L8.12471 5.23095C8.03425 5.27602 7.9446 5.32264 7.8558 5.37081C7.76695 5.41898 7.67899 5.46868 7.59188 5.5199C7.50476 5.57114 7.41857 5.62386 7.33329 5.67807C7.24799 5.73229 7.16366 5.78797 7.08032 5.84511C6.99696 5.90225 6.91462 5.96083 6.83331 6.02084C6.75197 6.08085 6.67172 6.14224 6.59253 6.20503C6.51333 6.26781 6.43523 6.33196 6.35826 6.39746C6.28129 6.46294 6.20546 6.52975 6.13082 6.59789C6.05617 6.66603 5.98269 6.73543 5.91045 6.80612C5.8382 6.87679 5.76718 6.94869 5.69744 7.02184C5.62767 7.095 5.5592 7.16935 5.49201 7.24485C5.42482 7.32038 5.35896 7.39704 5.29443 7.47484C5.2299 7.55265 5.16672 7.63155 5.10495 7.71155C5.04313 7.79156 4.98273 7.87261 4.92377 7.95471C4.86478 8.03681 4.80722 8.11991 4.75112 8.204C4.69502 8.2881 4.64038 8.37314 4.58724 8.45912C4.53405 8.54511 4.48239 8.63199 4.43227 8.71977C4.3821 8.80755 4.33348 8.89619 4.28642 8.98566C4.23934 9.07512 4.19381 9.16538 4.14987 9.25643C4.10591 9.34748 4.06355 9.43927 4.0228 9.5318C3.98203 9.62433 3.94287 9.71753 3.90534 9.81139C3.86778 9.90528 3.83186 9.99978 3.79761 10.0949C3.76332 10.19 3.73072 10.2857 3.69979 10.382C3.66882 10.4782 3.63956 10.575 3.61197 10.6723C3.58436 10.7695 3.55846 10.8673 3.53426 10.9654C3.51004 11.0636 3.48753 11.1622 3.46674 11.2611C3.44594 11.3601 3.42687 11.4594 3.40951 11.559C3.39216 11.6586 3.37653 11.7585 3.36263 11.8587C3.34875 11.9588 3.3366 12.0592 3.32618 12.1598C3.31577 12.2603 3.3071 12.3611 3.30017 12.4619C3.29324 12.5628 3.28806 12.6638 3.28464 12.7649C3.28122 12.866 3.27955 12.967 3.27963 13.0681C3.27963 17.8987 7.18404 21.814 11.9997 21.814C16.8153 21.814 20.7197 17.8976 20.7197 13.0681C20.7198 12.967 20.7181 12.866 20.7147 12.7649C20.7113 12.6638 20.7061 12.5628 20.6992 12.4619C20.6922 12.3611 20.6836 12.2603 20.6732 12.1598C20.6628 12.0592 20.6506 11.9588 20.6367 11.8587C20.6228 11.7585 20.6072 11.6586 20.5898 11.559C20.5725 11.4594 20.5534 11.3601 20.5326 11.2611C20.5118 11.1622 20.4893 11.0636 20.4651 10.9654C20.4409 10.8673 20.415 10.7696 20.3874 10.6723C20.3598 10.575 20.3305 10.4782 20.2996 10.382C20.2686 10.2857 20.236 10.19 20.2018 10.0949C20.1675 9.99978 20.1316 9.90528 20.0941 9.81139C20.0565 9.71753 20.0173 9.62433 19.9766 9.5318C19.9358 9.43927 19.8934 9.34748 19.8495 9.25643C19.8056 9.16538 19.76 9.07512 19.7129 8.98566C19.6659 8.89619 19.6172 8.80755 19.5671 8.71977C19.5169 8.63199 19.4653 8.54511 19.4122 8.45912C19.359 8.37314 19.3043 8.2881 19.2482 8.204C19.1921 8.11991 19.1346 8.03681 19.0756 7.95471C19.0166 7.87261 18.9562 7.79156 18.8944 7.71155C18.8326 7.63155 18.7695 7.55265 18.7049 7.47484C18.6404 7.39704 18.5745 7.32038 18.5074 7.24485C18.4402 7.16935 18.3717 7.095 18.302 7.02184C18.2322 6.94869 18.1612 6.87679 18.0889 6.80612C18.0167 6.73543 17.9432 6.66603 17.8686 6.59789C17.7939 6.52975 17.7181 6.46294 17.6411 6.39746C17.5641 6.33196 17.486 6.26781 17.4068 6.20503C17.3276 6.14224 17.2474 6.08085 17.1661 6.02084C17.0847 5.96083 17.0024 5.90225 16.919 5.84511C16.8357 5.78797 16.7514 5.73229 16.6661 5.67807C16.5808 5.62386 16.4946 5.57114 16.4075 5.5199C16.3204 5.46868 16.2324 5.41898 16.1436 5.37081C16.0547 5.32264 15.9651 5.27602 15.8747 5.23095Z"
|
||||
fill="#FFFFFF" />
|
||||
<path xmlns="http://www.w3.org/2000/svg" d="M10.9102 0L13.0902 0L13.0902 8.72736L10.9102 8.72736L10.9102 0Z"
|
||||
fill="#FFFFFF" />
|
||||
</g>
|
||||
<defs>
|
||||
<filter id="filter_2442_480" x="-10" y="-10" width="52.000244" height="53.800659"
|
||||
filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feFlood flood-opacity="0" result="feFloodId_2442_480" />
|
||||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
||||
result="hardAlpha_2442_480" />
|
||||
<feOffset dx="0" dy="0" />
|
||||
<feGaussianBlur stdDeviation="4.5" />
|
||||
<feComposite in2="hardAlpha_2442_480" operator="out" />
|
||||
<feColorMatrix type="matrix"
|
||||
values="0 0 0 0 0.0784313725490196 0 0 0 0 0.4627450980392157 0 0 0 0 1 0 0 0 1 0" />
|
||||
<feBlend mode="normal" in2="feFloodId_2442_480" result="dropShadow_1_2442_480" />
|
||||
<feBlend mode="normal" in="SourceGraphic" in2="dropShadow_1_2442_480" result="shape_2442_480" />
|
||||
</filter>
|
||||
</defs>
|
||||
</svg>
|
||||
</el-button>
|
||||
</div>
|
||||
<transition name="fade" v-if="!isAuth">
|
||||
<div v-show="true" class="content">
|
||||
@ -780,20 +808,31 @@ const validatePortRange = (rule, value, callback) => {
|
||||
}
|
||||
}
|
||||
|
||||
.rightBox {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 0px;
|
||||
z-index: 999;
|
||||
|
||||
.el-button {
|
||||
background: linear-gradient(to bottom, transparent, rgb(25, 129, 132));
|
||||
border: none !important;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
#app {
|
||||
.rightBox {
|
||||
position: absolute;
|
||||
right: 30px;
|
||||
top: 30px;
|
||||
z-index: 999;
|
||||
|
||||
.settings:hover svg g {
|
||||
filter: url(#filter_2442_1327);
|
||||
}
|
||||
.exit:hover svg g {
|
||||
filter: url(#filter_2442_480);
|
||||
}
|
||||
|
||||
.el-button {
|
||||
background-color: unset !important;
|
||||
background: linear-gradient(to bottom, transparent, rgba(var(--color-base1), 0.4));
|
||||
border: none !important;
|
||||
border-color: rgba(var(--color-base1), 1) !important;
|
||||
border-bottom: 2px solid rgba(var(--color-base1), 0.7) !important;
|
||||
color: #fff;
|
||||
border-radius: 0;
|
||||
padding: 22px 11px;
|
||||
}
|
||||
}
|
||||
.service {
|
||||
z-index: 999;
|
||||
width: 100vw;
|
||||
@ -990,18 +1029,6 @@ const validatePortRange = (rule, value, callback) => {
|
||||
border: 1px solid rgba(var(--color-base1), 1) !important;
|
||||
}
|
||||
}
|
||||
|
||||
button:nth-child(1) {
|
||||
background: rgba(0, 255, 255, 1) !important;
|
||||
border-color: #ff000000 !important;
|
||||
color: rgba(0, 66, 66, 1) !important;
|
||||
}
|
||||
|
||||
button:nth-child(2) {
|
||||
background: rgba(255, 255, 255, 1) !important;
|
||||
border-color: rgba(204, 204, 204, 0.4) !important;
|
||||
color: rgba(102, 102, 102, 1) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1347,17 +1374,17 @@ const validatePortRange = (rule, value, callback) => {
|
||||
}
|
||||
}
|
||||
|
||||
button:nth-child(1) {
|
||||
background: rgba(0, 255, 255, 1) !important;
|
||||
border-color: #ff000000 !important;
|
||||
color: rgba(0, 66, 66, 1) !important;
|
||||
}
|
||||
|
||||
button:nth-child(2) {
|
||||
button {
|
||||
background: rgba(255, 255, 255, 1) !important;
|
||||
border-color: rgba(204, 204, 204, 0.4) !important;
|
||||
color: rgba(102, 102, 102, 1) !important;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background: rgba(0, 255, 255, 1) !important;
|
||||
border-color: #ff000000 !important;
|
||||
color: rgba(0, 66, 66, 1) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user