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 @@
+
+