diff --git a/resources/java/app/application.yml b/resources/java/app/application.yml index e353dfa..7753f07 100644 --- a/resources/java/app/application.yml +++ b/resources/java/app/application.yml @@ -1,7 +1,7 @@ server: host: 127.0.0.1 - port: 8849 - path: C:\Users\Administrator\AppData\Roaming\dzsp_shijingjun_offline_Y_save + port: 8848 + path: C:\Users\MSI\AppData\Roaming\dzsp_shijingjun_offline_Y_save poi: global: enabled: false diff --git a/src/main/index.ts b/src/main/index.ts index befd4ff..1c3f974 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -662,7 +662,7 @@ function windowAllClosed() { setTimeout(() => { forceQuit(); - }, 1000); + }, 500); }) } diff --git a/src/renderer/components.d.ts b/src/renderer/components.d.ts index a6b32c7..3cb2046 100644 --- a/src/renderer/components.d.ts +++ b/src/renderer/components.d.ts @@ -44,6 +44,7 @@ declare module 'vue' { RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] SvgIcon: typeof import('./src/components/SvgIcon/index.vue')['default'] + Tooltip: typeof import('./src/components/tooltip/index.vue')['default'] UploadFiles: typeof import('./src/components/upload/uploadFiles.vue')['default'] } } diff --git a/src/renderer/public/sdk/custom/css/index.css b/src/renderer/public/sdk/custom/css/index.css index c5c10fd..e16f33f 100644 --- a/src/renderer/public/sdk/custom/css/index.css +++ b/src/renderer/public/sdk/custom/css/index.css @@ -19,7 +19,7 @@ } @font-face { - font-family: 'SourceHanSansTi'; + font-family: 'SourceHanSansTiM'; src: url('../fonts/SourceHanSansCN-Medium.otf') format('opentype'); } @@ -33,7 +33,6 @@ src: url('../fonts/AlimamaShuHeiTi-Bold.ttf') format('truetype'); } - :root { --color-base1: 0, 255, 255; --color-sdk-auxiliary: 0, 66, 66; @@ -488,7 +487,6 @@ .YJ-custom-base-dialog>.content .table .table-body .tr:first-child { border-top: none; } - .YJ-custom-base-dialog>.content .table .table-body .tr:last-child { border-bottom: 1px solid rgba(var(--color-base1), 0.5); } @@ -530,6 +528,7 @@ overflow-y: auto; scrollbar-gutter: stable; width: calc(100% + 1px); + max-height: 233px; } .YJ-custom-base-dialog>.content .table .align-center, @@ -588,6 +587,7 @@ } + .YJ-custom-base-dialog>.content .table .tr .td .link-edit { min-height: 32px; line-height: 18px; @@ -722,7 +722,6 @@ .YJ-custom-base-dialog>.content .input-number-unit input[type=number] { padding: 0 16px 0 10px; } - .YJ-custom-base-dialog>.content .input-number-unit input[type=number]::-webkit-outer-spin-button, .YJ-custom-base-dialog>.content .input-number-unit input[type=number]::-webkit-inner-spin-button { margin-left: 5px; @@ -1823,7 +1822,6 @@ border-color: rgba(var(--color-base1)); color: rgba(var(--color-base1)); } - .YJ-custom-base-dialog.trajectory-motion>.content .btn.is-active svg { fill: rgba(var(--color-base1)); } @@ -2094,7 +2092,6 @@ .YJ-custom-base-dialog.cut-fill>.content>div .div-item:last-child .row .unit { margin-left: 5px; } - .YJ-custom-base-dialog.cut-fill>.content .firstTip { position: absolute; left: 340px; @@ -2159,7 +2156,6 @@ flex: 0 0 60px; justify-content: center; } - .YJ-custom-base-dialog.submerge>.content .rangeWords { font-size: 14px; font-weight: 500; @@ -2321,7 +2317,6 @@ .YJ-custom-base-dialog.circle-view-shed>.content { width: 290px; } - .YJ-custom-base-dialog.circle-view-shed>.content .firstTip { font-size: 14px; font-weight: 700; @@ -3086,7 +3081,7 @@ } /* 文本框 */ -.popup-textarea { +.popup-textarea{ /* width: 212px; */ width: 161px; /* height: 154px; */ @@ -3099,30 +3094,28 @@ background-size: 100% 100%; padding: 5px 5px 0px 5px; } - -.popup-textarea textarea { +.popup-textarea textarea{ width: 158px; height: 95px; - background-color: unset !important; - border: unset !important; + background-color: unset!important; + border: unset!important; color: #fff; } - .popup-textarea textarea::-webkit-scrollbar { - width: 8px !important; + width: 8px!important; /* height: 8px!important; */ } .popup-textarea textarea::-webkit-scrollbar-thumb { - border-radius: 5px !important; - -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2) !important; - background-color: rgba(var(--color-base1)) !important; + border-radius: 5px!important; + -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2)!important; + background-color: rgba(var(--color-base1))!important; } .popup-textarea textarea::-webkit-scrollbar-track { - -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2) !important; - border-radius: 5px !important; - background-color: rgba(var(--color-base1), 0.1) !important; + -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2)!important; + border-radius: 5px!important; + background-color: rgba(var(--color-base1), 0.1)!important; } /* 贴地图片 */ @@ -3716,16 +3709,12 @@ border: 1px solid rgba(var(--color-base1), 0.5); border-right: none; } - -.billboard-attribute-box .table .tr .th, -.billboard-attribute-box .table .tr .td { +.billboard-attribute-box .table .tr .th, .billboard-attribute-box .table .tr .td { border-right: 1px solid rgba(var(--color-base1), 0.5); display: flex; justify-content: center; } - -.billboard-attribute-box .table .tr .th:last-child, -.billboard-attribute-box .table .tr .td:last-child { +.billboard-attribute-box .table .tr .th:last-child, .billboard-attribute-box .table .tr .td:last-child { border-right: none; } @@ -3773,18 +3762,19 @@ #YJ-custom-message.success { /* background-color: #f0f9eb; color: rgb(82, 196, 26); */ - background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), - linear-gradient(0deg, rgba(27, 248, 195, 0.5) 0%, rgba(27, 248, 195, 0) 100%); + background: + linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), + linear-gradient(0deg, rgba(27, 248, 195, 0.5) 0%, rgba(27, 248, 195, 0) 100%); font-size: 14px !important; font-weight: 500 !important; color: rgba(27, 248, 195, 1); } - #YJ-custom-message.warning { /* background-color: #fdf6ec; color: #e6a23c; */ - background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), - linear-gradient(0deg, rgba(255, 161, 69, 0.5) 0%, rgba(255, 161, 69, 0) 100%); + background: + linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), + linear-gradient(0deg, rgba(255, 161, 69, 0.5) 0%, rgba(255, 161, 69, 0) 100%); font-size: 14px !important; font-weight: 500 !important; color: rgba(255, 161, 69, 1) @@ -3883,4 +3873,4 @@ .yj-custom-icon.pic-line6 { background: url(../../img/arrow/6.png) 100% 100% no-repeat; background-size: 100% 100%; -} \ No newline at end of file +} diff --git a/src/renderer/src/api/tree/index.ts b/src/renderer/src/api/tree/index.ts index 2ca78a4..3700c86 100644 --- a/src/renderer/src/api/tree/index.ts +++ b/src/renderer/src/api/tree/index.ts @@ -27,11 +27,7 @@ export const TreeApi = { url: `/source/addOtherSource`, data }).then((res) => { - ElMessage.closeAll() - ElMessage({ - message: '添加成功', - type: 'success' - }) + return res }) }, diff --git a/src/renderer/src/assets/base.css b/src/renderer/src/assets/base.css index c17183c..0a1cafa 100644 --- a/src/renderer/src/assets/base.css +++ b/src/renderer/src/assets/base.css @@ -65,7 +65,7 @@ body { background: var(--color-background); line-height: 1.6; font-family: - SourceHanSans, + SourceHanSansTi, -apple-system, BlinkMacSystemFont, 'Segoe UI', diff --git a/src/renderer/src/assets/iconfont/SourceHanSansCN-Normal.ttf b/src/renderer/src/assets/iconfont/SourceHanSansCN-Normal.ttf new file mode 100644 index 0000000..8553a74 Binary files /dev/null and b/src/renderer/src/assets/iconfont/SourceHanSansCN-Normal.ttf differ diff --git a/src/renderer/src/assets/styles/font.css b/src/renderer/src/assets/styles/font.css index d815437..ff51b92 100644 --- a/src/renderer/src/assets/styles/font.css +++ b/src/renderer/src/assets/styles/font.css @@ -41,8 +41,8 @@ } @font-face { - font-family: 'SourceHanSans'; - src: url('../iconfont/SourceHanSansCN-ExtraLight.ttf') format('opentype'); + font-family: 'SourceHanSansTi'; + src: url('../iconfont/SourceHanSansCN-Normal.ttf') format('opentype'); } @font-face { diff --git a/src/renderer/src/assets/styles/global.css b/src/renderer/src/assets/styles/global.css index dbfee82..2ad70b5 100644 --- a/src/renderer/src/assets/styles/global.css +++ b/src/renderer/src/assets/styles/global.css @@ -431,7 +431,7 @@ img { #app { .ztree * { font-size: 14px; - font-family: SourceHanSans; + font-family: SourceHanSansTi; } .ztree li a { @@ -676,6 +676,10 @@ img { background: rgba(var(--color-base1), 0.2) !important; } +input::placeholder { + font-size: 12px !important; +} + @media (max-height: 850px) { #distanceLegendDiv { .compass { diff --git a/src/renderer/src/axios/index.ts b/src/renderer/src/axios/index.ts index 1c441ae..e58f82f 100644 --- a/src/renderer/src/axios/index.ts +++ b/src/renderer/src/axios/index.ts @@ -75,7 +75,7 @@ service.interceptors.response.use( (response: AxiosResponse) => { const key = getRequestKey(response.config) pendingRequests.delete(key) - // console.log(response); + console.log(response); // 统一处理HTTP状态码 if (response.status === 200) { @@ -95,8 +95,8 @@ service.interceptors.response.use( message: response.data.msg || response.data.message, type: 'error' }) + return response } - } return Promise.reject(new Error('Error')) }, diff --git a/src/renderer/src/common/addMapSource.ts b/src/renderer/src/common/addMapSource.ts index f155818..e8c9747 100644 --- a/src/renderer/src/common/addMapSource.ts +++ b/src/renderer/src/common/addMapSource.ts @@ -57,7 +57,15 @@ export const addMapSource = async ({ type, id, sourceName = '未命名对象', o // "treeIndex": 0, params: options } - TreeApi.addOtherSource(params) + let res = await TreeApi.addOtherSource(params) + if(![0, 200].includes(res.code)) { + return + } + ElMessage.closeAll() + ElMessage({ + message: '添加成功', + type: 'success' + }) params.params = JSON.stringify(params.params) params.isShow = true diff --git a/src/renderer/src/components/tooltip/index.vue b/src/renderer/src/components/tooltip/index.vue new file mode 100644 index 0000000..6d2b1c2 --- /dev/null +++ b/src/renderer/src/components/tooltip/index.vue @@ -0,0 +1,181 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/TS/edit/polygonObjectTs.vue b/src/renderer/src/views/TS/edit/polygonObjectTs.vue index 8172c92..6a2d0a7 100644 --- a/src/renderer/src/views/TS/edit/polygonObjectTs.vue +++ b/src/renderer/src/views/TS/edit/polygonObjectTs.vue @@ -14,7 +14,7 @@
投影面积: - + diff --git a/src/renderer/src/views/author/index.vue b/src/renderer/src/views/author/index.vue index 98deaa0..c533eb9 100644 --- a/src/renderer/src/views/author/index.vue +++ b/src/renderer/src/views/author/index.vue @@ -565,7 +565,7 @@ const copy = async (text) => { .greet { color: rgba(0, 66, 66, 1); - font-family: 'SourceHanSans'; + font-family: 'SourceHanSansTi'; font-size: 18px; line-height: 18px; font-weight: 500; diff --git a/src/renderer/src/views/components/bottomSide/bottomSide.vue b/src/renderer/src/views/components/bottomSide/bottomSide.vue index 523a505..c6b97f2 100644 --- a/src/renderer/src/views/components/bottomSide/bottomSide.vue +++ b/src/renderer/src/views/components/bottomSide/bottomSide.vue @@ -3,23 +3,29 @@
- - - - - - - - - - - - + + + + +
-
- - - - - - - - - - -
- {{ t('bottomMenu.' + item2.sourceType) }} -
-
+ + +
@@ -141,6 +147,7 @@ import { useI18n } from 'vue-i18n' import { inject } from 'vue' import { addMapSource } from '../../../common/addMapSource' +import Tooltip from '@/components/tooltip/index.vue' const { ipcRenderer } = require('electron') const { t } = useI18n() const eventBus: any = inject('bus') @@ -746,6 +753,15 @@ document.addEventListener('click', (e: any) => { top: 0; pointer-events: all; } + + :deep(.tooltip-wrapper) { + width: 100%; + height: 100%; + position: absolute; + left: 0; + top: 0; + pointer-events: all; + } } .bottomMenu { @@ -836,7 +852,7 @@ document.addEventListener('click', (e: any) => { } &:hover { - >.bottom_childre_box_bg_hover { + .bottom_childre_box_bg_hover { opacity: 1 !important; } } diff --git a/src/renderer/src/views/components/headers/components/setPup/components/equipment.vue b/src/renderer/src/views/components/headers/components/setPup/components/equipment.vue index 0c994a2..a003cc4 100644 --- a/src/renderer/src/views/components/headers/components/setPup/components/equipment.vue +++ b/src/renderer/src/views/components/headers/components/setPup/components/equipment.vue @@ -372,7 +372,7 @@ const downloadTemp = async () => { } :deep(.el-table th.el-table__cell) { - background: #004b4b; + background: linear-gradient(rgba(var(--color-base1), 0.3), rgba(var(--color-base1), 0.3)), rgba(0, 0, 0, 1); color: #fff; border-bottom: 1px solid rgba(var(--color-base1), 0.5) !important; border-right: 1px solid rgba(var(--color-base1), 0.5) !important; diff --git a/src/renderer/src/views/components/headers/components/setPup/components/materials.vue b/src/renderer/src/views/components/headers/components/setPup/components/materials.vue index 108ae50..39acf46 100644 --- a/src/renderer/src/views/components/headers/components/setPup/components/materials.vue +++ b/src/renderer/src/views/components/headers/components/setPup/components/materials.vue @@ -268,7 +268,7 @@ var delFun = (row) => { } :deep(.el-table th.el-table__cell) { - background: #004b4b; + background: linear-gradient(rgba(var(--color-base1), 0.3), rgba(var(--color-base1), 0.3)), rgba(0, 0, 0, 1); color: #fff; border-bottom: 1px solid rgba(var(--color-base1), 0.5) !important; border-right: 1px solid rgba(var(--color-base1), 0.5) !important; diff --git a/src/renderer/src/views/components/leftSide/leftSideFirst.vue b/src/renderer/src/views/components/leftSide/leftSideFirst.vue index 26b8397..ef1b26d 100644 --- a/src/renderer/src/views/components/leftSide/leftSideFirst.vue +++ b/src/renderer/src/views/components/leftSide/leftSideFirst.vue @@ -3,12 +3,14 @@
+ viewBox="0 0 32 32" fill="none"> + d="M16 0C24.835 0 32 7.16496 32 16C32 24.835 24.835 32 16 32C7.16496 32 0 24.835 0 16C0 7.16496 7.16496 0 16 0Z" /> + d="M16 0C24.835 0 32 7.16496 32 16C32 24.835 24.835 32 16 32C7.16496 32 0 24.835 0 16C0 7.16496 7.16496 0 16 0Z" /> + d="M32 16C32 7.16496 24.835 0 16 0C7.16496 0 0 7.16496 0 16C0 24.835 7.16496 32 16 32C24.835 32 32 24.835 32 16ZM30.5 16C30.5 7.99187 24.0081 1.5 16 1.5C7.99187 1.5 1.5 7.99187 1.5 16C1.5 24.0081 7.99187 30.5 16 30.5C24.0081 30.5 30.5 24.0081 30.5 16Z" /> + fill="rgba(var(--color-base2), 1)" /> - - + y2="-6.678619384765625" gradientUnits="userSpaceOnUse"> + + - - + y2="29.435516357421875" gradientUnits="userSpaceOnUse"> + + - + height="21.36663818359375" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> + - - - + result="hardAlpha_2442_492" /> + + + - - + values="0 0 0 0 0.1450980392156863 0 0 0 0 0.7686274509803922 0 0 0 0 0.7686274509803922 0 0 0 1 0" /> + + @@ -108,16 +112,16 @@