From c5558ae0a6152b56b2b487b94f3c616648104edd Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 30 Oct 2024 18:10:32 +0800
Subject: [PATCH] 页面登录,请求拦截,响应拦截,持久化存储,路由拦截等处理
---
src/assets/images/point-selected.png | 0
src/assets/images/Overall04G_100.png | 0
src/assets/images/routeSwitch.png | 0
src/assets/images/title-box.png | 0
src/assets/images/turnleft.png | 0
src/assets/images/satellite.png | 0
src/assets/images/mapswitching.png | 0
src/assets/images/exitfullscreen.png | 0
src/assets/images/rightarrow.png | 0
src/assets/images/dhl.png | 0
src/assets/images/networkQuality_100.png | 0
src/assets/images/newtitle_box.png | 0
src/assets/images/fxcs.png | 0
src/assets/images/isBroadcast.png | 0
src/assets/images/networkQuality_80.png | 0
src/assets/images/polyExtenLeft.png | 0
src/assets/images/waypointevents.png | 0
src/assets/images/exit.png | 0
src/assets/images/administrativeName.png | 0
src/assets/images/noSound.png | 0
src/assets/images/UAVpic.png | 0
src/assets/images/isSound.png | 0
src/assets/images/Ellipse.png | 0
src/assets/images/stand.png | 0
src/assets/images/voiceAnnouncement .png | 0
src/assets/images/bottom.png | 0
src/assets/images/tbmj.png | 0
src/assets/images/warnbg_02.png | 0
src/assets/images/cameravideo.png | 0
src/assets/images/EndPointicon.png | 0
src/assets/images/control.png | 0
src/assets/images/unlockPanel.png | 0
src/assets/images/Timeswitchingn.png | 0
src/assets/images/cancelReturnFlight.png | 0
src/assets/images/leftarrow.png | 0
src/assets/images/right.png | 0
src/assets/images/back.png | 0
src/assets/images/payloadvideo.png | 0
src/assets/images/right-top.png | 0
src/assets/images/draw.png | 0
src/assets/images/rightmapidentification.png | 0
src/assets/images/qwe.png | 0
src/utils/crypto.js | 94 +++++++++
src/assets/images/camera.png | 0
src/assets/images/login.png | 0
src/assets/images/DroneModel.png | 0
src/assets/images/Single.png | 0
src/assets/images/RoutePlan.png | 0
src/assets/images/pic.png | 0
src/assets/images/topTitleimg.png | 0
src/assets/images/zpsl.png | 0
src/assets/images/push.png | 0
src/assets/images/return.png | 0
src/assets/images/lockPanel.png | 0
src/assets/images/user.png | 0
src/assets/images/networkQuality_20.png | 0
src/assets/images/returnright.png | 0
src/assets/images/routeSwitchRight.png | 0
src/assets/images/arrow-right.png | 0
src/assets/images/activerouteSwitchRight.png | 0
public/images/header.png | 0
src/assets/images/hover.png | 0
src/assets/images/SpotDetailstitle_box.png | 0
src/assets/images/back-bg.png | 0
src/assets/images/Overall04G_20.png | 0
src/assets/images/DJI1.png | 0
src/assets/images/takeover.png | 0
src/assets/images/xzqh.png | 0
src/assets/images/arrow-right-blue.png | 0
src/styles/base/index.scss | 40 +++
src/api/user.js | 22 ++
src/assets/images/tape.png | 0
src/assets/images/bdrone.png | 0
src/router/index.js | 12 +
src/assets/images/3Dcesium.png | 0
src/assets/images/border.png | 0
src/assets/images/advance.png | 0
src/assets/images/networkQuality_40.png | 0
src/assets/images/Charging.png | 0
src/assets/images/stoprecoding.png | 0
src/assets/images/password-icon.png | 0
src/assets/images/tblx.png | 0
src/views/layout/index.vue | 12
src/assets/images/promptInformation.png | 0
src/assets/images/rain-title.png | 0
src/assets/images/tc.png | 0
src/assets/images/fullscreen.png | 0
src/assets/images/xuhang.png | 0
src/assets/images/mapdock.png | 0
src/assets/images/newrouteplan.png | 0
src/assets/images/automatic.png | 0
src/assets/images/vedio.png | 0
src/assets/images/login-content-bg.png | 0
src/assets/images/DJICompress.jpeg | 0
src/assets/images/tbbh.png | 0
src/assets/images/reason.png | 0
src/assets/images/pendingexecutionback.png | 0
src/assets/images/speed.png | 0
src/assets/images/point.png | 0
src/assets/images/m30.png | 0
src/assets/images/arrow-right-redlong.png | 0
src/assets/images/activephotoDirection.png | 0
src/assets/images/2D地图.png | 0
src/assets/images/model-mavic3.png | 0
src/assets/images/activerouteSwitch.png | 0
src/assets/images/login-input.png | 0
src/assets/images/cloudupload.png | 0
src/assets/images/login-bg.png | 0
src/assets/images/arrow2.png | 0
src/assets/images/startrecording.png | 0
src/assets/images/time.png | 0
src/assets/images/SearchStarGear.png | 0
src/assets/images/patternType.png | 0
package.json | 5
src/assets/images/leftmapidentification.png | 0
src/assets/images/point-add.png | 0
src/utils/http.js | 50 +++-
src/assets/images/search.png | 0
src/assets/images/zoomOut.png | 0
src/assets/images/droneicon.png | 0
src/assets/images/Overall04G_80.png | 0
src/assets/images/upload.png | 0
src/assets/images/fxlc.png | 0
src/assets/images/keyword.jpg | 0
src/assets/images/Overall04G_60.png | 0
src/assets/images/gaocheng.png | 0
src/assets/images/ctrl-left.png | 0
src/assets/images/wayline.png | 0
src/assets/images/leftturn.png | 0
src/assets/images/mode-tab-ac.png | 0
src/assets/images/xzqdm.png | 0
src/assets/images/pount.png | 0
src/assets/images/Timeswitchingnactive.png | 0
src/assets/images/operationPrompt.png | 0
src/store/login.js | 105 ++++++++++
src/assets/images/polyExtenRight.png | 0
src/assets/images/newcon_box.png | 0
src/assets/images/rightturn.png | 0
src/assets/images/2Dcesium.png | 0
src/assets/images/payload.png | 0
src/assets/images/zoomIn.png | 0
src/assets/images/photographyDirection.png | 0
src/assets/images/turnright.png | 0
src/assets/images/titlename.png | 0
src/assets/images/del.png | 0
src/assets/images/center-box.png | 0
src/assets/images/arrow.png | 0
src/assets/images/3D地图.png | 0
src/assets/images/drone.png | 0
src/assets/images/loadControl.png | 0
src/assets/images/returnleft.png | 0
src/assets/images/xinghao.png | 0
src/assets/images/backward.png | 0
src/assets/images/device_01.png | 0
src/assets/images/wrj.png | 0
src/assets/images/decline.png | 0
src/assets/images/rise.png | 0
src/assets/images/mapidentification.png | 0
src/assets/images/noBroadcast.png | 0
src/assets/images/left.png | 0
src/assets/images/left-top.png | 0
src/assets/images/fxsc.png | 0
src/assets/images/zbottom.png | 0
src/assets/images/photoDirection.png | 0
pnpm-lock.yaml | 21 ++
src/assets/images/clickClear.png | 0
src/assets/images/no-draw.png | 0
src/assets/images/notwrj.png | 0
src/assets/images/mileage.png | 0
src/assets/images/Turnoffcontrol.png | 0
vite.config.js | 4
src/assets/images/right-bottom.png | 0
src/assets/images/tbupload.png | 0
src/assets/images/air.png | 0
src/assets/images/提示.png | 0
src/permission.js | 47 ++++
src/assets/images/add.png | 0
src/assets/images/组 29321@2x.png | 0
src/assets/images/exitfullsreen.png | 0
src/assets/images/SpeckleFlight.png | 0
src/assets/images/model-matrice3d.png | 0
src/assets/images/backshow.png | 0
src/main.js | 1
src/assets/images/Loop.png | 0
src/assets/images/left-bottom.png | 0
src/assets/images/组 29329@2x.png | 0
src/assets/images/notTurnoffcontrol.png | 0
src/assets/images/组 29332@2x.png | 0
src/hooks/initMap.js | 19 +
src/assets/images/arrow-right-pink.png | 0
src/page/login.vue | 146 +++++++++++++-
src/assets/images/ctop.png | 0
src/assets/images/Landarea.png | 0
src/assets/images/up.png | 0
src/assets/images/BasicImg.png | 0
src/assets/images/questionmark.png | 0
src/assets/images/Overall04G_40.png | 0
src/assets/images/warnbg_01.png | 0
src/assets/images/newcentertitle_box.png | 0
src/assets/images/arrow-right-green.png | 0
src/assets/images/photograph.png | 0
src/assets/images/locationicon.png | 0
src/assets/images/nottape.png | 0
src/assets/images/sudu.png | 0
src/assets/images/Startingpointicon.png | 0
src/assets/images/device_02.png | 0
src/assets/images/audio.png | 0
src/assets/images/model-m30.png | 0
src/assets/images/cpoint.png | 0
src/assets/images/networkQuality_60.png | 0
src/assets/images/PlotNumber.png | 0
src/assets/images/unloading.png | 0
src/config/env.js | 2
src/assets/images/takeoff.png | 0
src/assets/images/norecord.png | 0
src/assets/images/dock.png | 0
src/assets/images/zlwz.png | 0
src/assets/images/DJI.jpeg | 0
src/assets/images/user-icon.png | 0
219 files changed, 542 insertions(+), 38 deletions(-)
diff --git a/package.json b/package.json
index f79ce45..da41c69 100644
--- a/package.json
+++ b/package.json
@@ -22,7 +22,10 @@
"pinia": "^2.2.4",
"pinia-plugin-persist": "^1.0.0",
"vue": "^3.5.12",
- "vue-router": "^4.4.5"
+ "vue-router": "^4.4.5",
+ "crypto-js": "^4.1.1",
+ "js-base64": "^3.7.4",
+ "js-md5": "^0.7.3"
},
"devDependencies": {
"@vitejs/plugin-basic-ssl": "^1.1.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index afc4342..336b9d5 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -20,9 +20,18 @@
axios:
specifier: ^1.7.7
version: 1.7.7
+ crypto-js:
+ specifier: ^4.1.1
+ version: 4.1.1
element-plus:
specifier: ^2.8.6
version: 2.8.6(vue@3.5.12)
+ js-base64:
+ specifier: ^3.7.4
+ version: 3.7.4
+ js-md5:
+ specifier: ^0.7.3
+ version: 0.7.3
nprogress:
specifier: ^0.2.0
version: 0.2.0
@@ -906,6 +915,10 @@
resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==}
dev: true
+ /crypto-js@4.1.1:
+ resolution: {integrity: sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==}
+ dev: false
+
/csstype@3.1.3:
resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}
@@ -1155,6 +1168,14 @@
engines: {node: '>=0.12.0'}
dev: true
+ /js-base64@3.7.4:
+ resolution: {integrity: sha512-wpM/wi20Tl+3ifTyi0RdDckS4YTD4Lf953mBRrpG8547T7hInHNPEj8+ck4gB8VDcGyeAWFK++Wb/fU1BeavKQ==}
+ dev: false
+
+ /js-md5@0.7.3:
+ resolution: {integrity: sha512-ZC41vPSTLKGwIRjqDh8DfXoCrdQIyBgspJVPXHBGu4nZlAEvG3nf+jO9avM9RmLiGakg7vz974ms99nEV0tmTQ==}
+ dev: false
+
/js-tokens@9.0.0:
resolution: {integrity: sha512-WriZw1luRMlmV3LGJaR6QOJjWwgLUTf89OwT2lUOyjX2dJGBwgmIkbcz+7WFZjrZM635JOIR517++e/67CP9dQ==}
dev: true
diff --git a/public/images/header.png b/public/images/header.png
index 5a6f53a..dc662b3 100644
--- a/public/images/header.png
+++ b/public/images/header.png
Binary files differ
diff --git a/src/api/user.js b/src/api/user.js
new file mode 100644
index 0000000..69c7ebd
--- /dev/null
+++ b/src/api/user.js
@@ -0,0 +1,22 @@
+import request from 'utils/http'
+
+export const loginByUsername = (tenantId, deptId, roleId, username, password, type, key, code) =>
+ request({
+ url: '/blade-auth/oauth/token',
+ method: 'post',
+ headers: {
+ 'Tenant-Id': tenantId,
+ 'Dept-Id': deptId || '',
+ 'Role-Id': roleId || '',
+ 'Captcha-Key': key,
+ 'Captcha-Code': code,
+ },
+ params: {
+ tenantId,
+ username,
+ password,
+ grant_type: 'password',
+ scope: 'all',
+ type,
+ },
+ })
\ No newline at end of file
diff --git a/src/assets/images/2Dcesium.png b/src/assets/images/2Dcesium.png
new file mode 100644
index 0000000..ab530f6
--- /dev/null
+++ b/src/assets/images/2Dcesium.png
Binary files differ
diff --git "a/src/assets/images/2D\345\234\260\345\233\276.png" "b/src/assets/images/2D\345\234\260\345\233\276.png"
new file mode 100644
index 0000000..5c20e50
--- /dev/null
+++ "b/src/assets/images/2D\345\234\260\345\233\276.png"
Binary files differ
diff --git a/src/assets/images/3Dcesium.png b/src/assets/images/3Dcesium.png
new file mode 100644
index 0000000..99259c9
--- /dev/null
+++ b/src/assets/images/3Dcesium.png
Binary files differ
diff --git "a/src/assets/images/3D\345\234\260\345\233\276.png" "b/src/assets/images/3D\345\234\260\345\233\276.png"
new file mode 100644
index 0000000..bcf527d
--- /dev/null
+++ "b/src/assets/images/3D\345\234\260\345\233\276.png"
Binary files differ
diff --git a/src/assets/images/BasicImg.png b/src/assets/images/BasicImg.png
new file mode 100644
index 0000000..1f21714
--- /dev/null
+++ b/src/assets/images/BasicImg.png
Binary files differ
diff --git a/src/assets/images/Charging.png b/src/assets/images/Charging.png
new file mode 100644
index 0000000..97b7b14
--- /dev/null
+++ b/src/assets/images/Charging.png
Binary files differ
diff --git a/src/assets/images/DJI.jpeg b/src/assets/images/DJI.jpeg
new file mode 100644
index 0000000..1480f13
--- /dev/null
+++ b/src/assets/images/DJI.jpeg
Binary files differ
diff --git a/src/assets/images/DJI1.png b/src/assets/images/DJI1.png
new file mode 100644
index 0000000..44b505d
--- /dev/null
+++ b/src/assets/images/DJI1.png
Binary files differ
diff --git a/src/assets/images/DJICompress.jpeg b/src/assets/images/DJICompress.jpeg
new file mode 100644
index 0000000..f8bbdfc
--- /dev/null
+++ b/src/assets/images/DJICompress.jpeg
Binary files differ
diff --git a/src/assets/images/DroneModel.png b/src/assets/images/DroneModel.png
new file mode 100644
index 0000000..a7d0842
--- /dev/null
+++ b/src/assets/images/DroneModel.png
Binary files differ
diff --git a/src/assets/images/Ellipse.png b/src/assets/images/Ellipse.png
new file mode 100644
index 0000000..0394d98
--- /dev/null
+++ b/src/assets/images/Ellipse.png
Binary files differ
diff --git a/src/assets/images/EndPointicon.png b/src/assets/images/EndPointicon.png
new file mode 100644
index 0000000..eb54b86
--- /dev/null
+++ b/src/assets/images/EndPointicon.png
Binary files differ
diff --git a/src/assets/images/Landarea.png b/src/assets/images/Landarea.png
new file mode 100644
index 0000000..d479efb
--- /dev/null
+++ b/src/assets/images/Landarea.png
Binary files differ
diff --git a/src/assets/images/Loop.png b/src/assets/images/Loop.png
new file mode 100644
index 0000000..fe66332
--- /dev/null
+++ b/src/assets/images/Loop.png
Binary files differ
diff --git a/src/assets/images/Overall04G_100.png b/src/assets/images/Overall04G_100.png
new file mode 100644
index 0000000..e4caf0e
--- /dev/null
+++ b/src/assets/images/Overall04G_100.png
Binary files differ
diff --git a/src/assets/images/Overall04G_20.png b/src/assets/images/Overall04G_20.png
new file mode 100644
index 0000000..4905978
--- /dev/null
+++ b/src/assets/images/Overall04G_20.png
Binary files differ
diff --git a/src/assets/images/Overall04G_40.png b/src/assets/images/Overall04G_40.png
new file mode 100644
index 0000000..df95bb9
--- /dev/null
+++ b/src/assets/images/Overall04G_40.png
Binary files differ
diff --git a/src/assets/images/Overall04G_60.png b/src/assets/images/Overall04G_60.png
new file mode 100644
index 0000000..41c207c
--- /dev/null
+++ b/src/assets/images/Overall04G_60.png
Binary files differ
diff --git a/src/assets/images/Overall04G_80.png b/src/assets/images/Overall04G_80.png
new file mode 100644
index 0000000..7b64043
--- /dev/null
+++ b/src/assets/images/Overall04G_80.png
Binary files differ
diff --git a/src/assets/images/PlotNumber.png b/src/assets/images/PlotNumber.png
new file mode 100644
index 0000000..ac64acf
--- /dev/null
+++ b/src/assets/images/PlotNumber.png
Binary files differ
diff --git a/src/assets/images/RoutePlan.png b/src/assets/images/RoutePlan.png
new file mode 100644
index 0000000..dc7f0fe
--- /dev/null
+++ b/src/assets/images/RoutePlan.png
Binary files differ
diff --git a/src/assets/images/SearchStarGear.png b/src/assets/images/SearchStarGear.png
new file mode 100644
index 0000000..fc3b257
--- /dev/null
+++ b/src/assets/images/SearchStarGear.png
Binary files differ
diff --git a/src/assets/images/Single.png b/src/assets/images/Single.png
new file mode 100644
index 0000000..4061dab
--- /dev/null
+++ b/src/assets/images/Single.png
Binary files differ
diff --git a/src/assets/images/SpeckleFlight.png b/src/assets/images/SpeckleFlight.png
new file mode 100644
index 0000000..f720284
--- /dev/null
+++ b/src/assets/images/SpeckleFlight.png
Binary files differ
diff --git a/src/assets/images/SpotDetailstitle_box.png b/src/assets/images/SpotDetailstitle_box.png
new file mode 100644
index 0000000..783cde3
--- /dev/null
+++ b/src/assets/images/SpotDetailstitle_box.png
Binary files differ
diff --git a/src/assets/images/Startingpointicon.png b/src/assets/images/Startingpointicon.png
new file mode 100644
index 0000000..e79d9a6
--- /dev/null
+++ b/src/assets/images/Startingpointicon.png
Binary files differ
diff --git a/src/assets/images/Timeswitchingn.png b/src/assets/images/Timeswitchingn.png
new file mode 100644
index 0000000..e628530
--- /dev/null
+++ b/src/assets/images/Timeswitchingn.png
Binary files differ
diff --git a/src/assets/images/Timeswitchingnactive.png b/src/assets/images/Timeswitchingnactive.png
new file mode 100644
index 0000000..10d7122
--- /dev/null
+++ b/src/assets/images/Timeswitchingnactive.png
Binary files differ
diff --git a/src/assets/images/Turnoffcontrol.png b/src/assets/images/Turnoffcontrol.png
new file mode 100644
index 0000000..0b51ad9
--- /dev/null
+++ b/src/assets/images/Turnoffcontrol.png
Binary files differ
diff --git a/src/assets/images/UAVpic.png b/src/assets/images/UAVpic.png
new file mode 100644
index 0000000..e8a267a
--- /dev/null
+++ b/src/assets/images/UAVpic.png
Binary files differ
diff --git a/src/assets/images/activephotoDirection.png b/src/assets/images/activephotoDirection.png
new file mode 100644
index 0000000..8eca52d
--- /dev/null
+++ b/src/assets/images/activephotoDirection.png
Binary files differ
diff --git a/src/assets/images/activerouteSwitch.png b/src/assets/images/activerouteSwitch.png
new file mode 100644
index 0000000..16907fc
--- /dev/null
+++ b/src/assets/images/activerouteSwitch.png
Binary files differ
diff --git a/src/assets/images/activerouteSwitchRight.png b/src/assets/images/activerouteSwitchRight.png
new file mode 100644
index 0000000..0c8af72
--- /dev/null
+++ b/src/assets/images/activerouteSwitchRight.png
Binary files differ
diff --git a/src/assets/images/add.png b/src/assets/images/add.png
new file mode 100644
index 0000000..ccd8994
--- /dev/null
+++ b/src/assets/images/add.png
Binary files differ
diff --git a/src/assets/images/administrativeName.png b/src/assets/images/administrativeName.png
new file mode 100644
index 0000000..315dafc
--- /dev/null
+++ b/src/assets/images/administrativeName.png
Binary files differ
diff --git a/src/assets/images/advance.png b/src/assets/images/advance.png
new file mode 100644
index 0000000..a5fda13
--- /dev/null
+++ b/src/assets/images/advance.png
Binary files differ
diff --git a/src/assets/images/air.png b/src/assets/images/air.png
new file mode 100644
index 0000000..0f3ca48
--- /dev/null
+++ b/src/assets/images/air.png
Binary files differ
diff --git a/src/assets/images/arrow-right-blue.png b/src/assets/images/arrow-right-blue.png
new file mode 100644
index 0000000..f5d9962
--- /dev/null
+++ b/src/assets/images/arrow-right-blue.png
Binary files differ
diff --git a/src/assets/images/arrow-right-green.png b/src/assets/images/arrow-right-green.png
new file mode 100644
index 0000000..8fc45fa
--- /dev/null
+++ b/src/assets/images/arrow-right-green.png
Binary files differ
diff --git a/src/assets/images/arrow-right-pink.png b/src/assets/images/arrow-right-pink.png
new file mode 100644
index 0000000..6c4e150
--- /dev/null
+++ b/src/assets/images/arrow-right-pink.png
Binary files differ
diff --git a/src/assets/images/arrow-right-redlong.png b/src/assets/images/arrow-right-redlong.png
new file mode 100644
index 0000000..a8d9221
--- /dev/null
+++ b/src/assets/images/arrow-right-redlong.png
Binary files differ
diff --git a/src/assets/images/arrow-right.png b/src/assets/images/arrow-right.png
new file mode 100644
index 0000000..8f4d5c5
--- /dev/null
+++ b/src/assets/images/arrow-right.png
Binary files differ
diff --git a/src/assets/images/arrow.png b/src/assets/images/arrow.png
new file mode 100644
index 0000000..5f0deb8
--- /dev/null
+++ b/src/assets/images/arrow.png
Binary files differ
diff --git a/src/assets/images/arrow2.png b/src/assets/images/arrow2.png
new file mode 100644
index 0000000..61e671c
--- /dev/null
+++ b/src/assets/images/arrow2.png
Binary files differ
diff --git a/src/assets/images/audio.png b/src/assets/images/audio.png
new file mode 100644
index 0000000..9d9b62d
--- /dev/null
+++ b/src/assets/images/audio.png
Binary files differ
diff --git a/src/assets/images/automatic.png b/src/assets/images/automatic.png
new file mode 100644
index 0000000..84a79dd
--- /dev/null
+++ b/src/assets/images/automatic.png
Binary files differ
diff --git a/src/assets/images/back-bg.png b/src/assets/images/back-bg.png
new file mode 100644
index 0000000..51e0ab8
--- /dev/null
+++ b/src/assets/images/back-bg.png
Binary files differ
diff --git a/src/assets/images/back.png b/src/assets/images/back.png
new file mode 100644
index 0000000..7590be8
--- /dev/null
+++ b/src/assets/images/back.png
Binary files differ
diff --git a/src/assets/images/backshow.png b/src/assets/images/backshow.png
new file mode 100644
index 0000000..91cfec2
--- /dev/null
+++ b/src/assets/images/backshow.png
Binary files differ
diff --git a/src/assets/images/backward.png b/src/assets/images/backward.png
new file mode 100644
index 0000000..1d9f97a
--- /dev/null
+++ b/src/assets/images/backward.png
Binary files differ
diff --git a/src/assets/images/bdrone.png b/src/assets/images/bdrone.png
new file mode 100644
index 0000000..cc54f54
--- /dev/null
+++ b/src/assets/images/bdrone.png
Binary files differ
diff --git a/src/assets/images/border.png b/src/assets/images/border.png
new file mode 100644
index 0000000..f73671b
--- /dev/null
+++ b/src/assets/images/border.png
Binary files differ
diff --git a/src/assets/images/bottom.png b/src/assets/images/bottom.png
new file mode 100644
index 0000000..d18a601
--- /dev/null
+++ b/src/assets/images/bottom.png
Binary files differ
diff --git a/src/assets/images/camera.png b/src/assets/images/camera.png
new file mode 100644
index 0000000..5c11c83
--- /dev/null
+++ b/src/assets/images/camera.png
Binary files differ
diff --git a/src/assets/images/cameravideo.png b/src/assets/images/cameravideo.png
new file mode 100644
index 0000000..9f94cb5
--- /dev/null
+++ b/src/assets/images/cameravideo.png
Binary files differ
diff --git a/src/assets/images/cancelReturnFlight.png b/src/assets/images/cancelReturnFlight.png
new file mode 100644
index 0000000..d36af41
--- /dev/null
+++ b/src/assets/images/cancelReturnFlight.png
Binary files differ
diff --git a/src/assets/images/center-box.png b/src/assets/images/center-box.png
new file mode 100644
index 0000000..2d81186
--- /dev/null
+++ b/src/assets/images/center-box.png
Binary files differ
diff --git a/src/assets/images/clickClear.png b/src/assets/images/clickClear.png
new file mode 100644
index 0000000..561313b
--- /dev/null
+++ b/src/assets/images/clickClear.png
Binary files differ
diff --git a/src/assets/images/cloudupload.png b/src/assets/images/cloudupload.png
new file mode 100644
index 0000000..4765e51
--- /dev/null
+++ b/src/assets/images/cloudupload.png
Binary files differ
diff --git a/src/assets/images/control.png b/src/assets/images/control.png
new file mode 100644
index 0000000..5cbf334
--- /dev/null
+++ b/src/assets/images/control.png
Binary files differ
diff --git a/src/assets/images/cpoint.png b/src/assets/images/cpoint.png
new file mode 100644
index 0000000..d9f005a
--- /dev/null
+++ b/src/assets/images/cpoint.png
Binary files differ
diff --git a/src/assets/images/ctop.png b/src/assets/images/ctop.png
new file mode 100644
index 0000000..48aa96c
--- /dev/null
+++ b/src/assets/images/ctop.png
Binary files differ
diff --git a/src/assets/images/ctrl-left.png b/src/assets/images/ctrl-left.png
new file mode 100644
index 0000000..d0de15a
--- /dev/null
+++ b/src/assets/images/ctrl-left.png
Binary files differ
diff --git a/src/assets/images/decline.png b/src/assets/images/decline.png
new file mode 100644
index 0000000..d39197a
--- /dev/null
+++ b/src/assets/images/decline.png
Binary files differ
diff --git a/src/assets/images/del.png b/src/assets/images/del.png
new file mode 100644
index 0000000..9f243a7
--- /dev/null
+++ b/src/assets/images/del.png
Binary files differ
diff --git a/src/assets/images/device_01.png b/src/assets/images/device_01.png
new file mode 100644
index 0000000..98ea191
--- /dev/null
+++ b/src/assets/images/device_01.png
Binary files differ
diff --git a/src/assets/images/device_02.png b/src/assets/images/device_02.png
new file mode 100644
index 0000000..347a541
--- /dev/null
+++ b/src/assets/images/device_02.png
Binary files differ
diff --git a/src/assets/images/dhl.png b/src/assets/images/dhl.png
new file mode 100644
index 0000000..6f1ae82
--- /dev/null
+++ b/src/assets/images/dhl.png
Binary files differ
diff --git a/src/assets/images/dock.png b/src/assets/images/dock.png
new file mode 100644
index 0000000..5e0a506
--- /dev/null
+++ b/src/assets/images/dock.png
Binary files differ
diff --git a/src/assets/images/draw.png b/src/assets/images/draw.png
new file mode 100644
index 0000000..a225c87
--- /dev/null
+++ b/src/assets/images/draw.png
Binary files differ
diff --git a/src/assets/images/drone.png b/src/assets/images/drone.png
new file mode 100644
index 0000000..43afde5
--- /dev/null
+++ b/src/assets/images/drone.png
Binary files differ
diff --git a/src/assets/images/droneicon.png b/src/assets/images/droneicon.png
new file mode 100644
index 0000000..0b24a49
--- /dev/null
+++ b/src/assets/images/droneicon.png
Binary files differ
diff --git a/src/assets/images/exit.png b/src/assets/images/exit.png
new file mode 100644
index 0000000..54a7ab1
--- /dev/null
+++ b/src/assets/images/exit.png
Binary files differ
diff --git a/src/assets/images/exitfullscreen.png b/src/assets/images/exitfullscreen.png
new file mode 100644
index 0000000..33e6cd3
--- /dev/null
+++ b/src/assets/images/exitfullscreen.png
Binary files differ
diff --git a/src/assets/images/exitfullsreen.png b/src/assets/images/exitfullsreen.png
new file mode 100644
index 0000000..dd669c3
--- /dev/null
+++ b/src/assets/images/exitfullsreen.png
Binary files differ
diff --git a/src/assets/images/fullscreen.png b/src/assets/images/fullscreen.png
new file mode 100644
index 0000000..e201605
--- /dev/null
+++ b/src/assets/images/fullscreen.png
Binary files differ
diff --git a/src/assets/images/fxcs.png b/src/assets/images/fxcs.png
new file mode 100644
index 0000000..0252b0d
--- /dev/null
+++ b/src/assets/images/fxcs.png
Binary files differ
diff --git a/src/assets/images/fxlc.png b/src/assets/images/fxlc.png
new file mode 100644
index 0000000..36e374f
--- /dev/null
+++ b/src/assets/images/fxlc.png
Binary files differ
diff --git a/src/assets/images/fxsc.png b/src/assets/images/fxsc.png
new file mode 100644
index 0000000..297cab8
--- /dev/null
+++ b/src/assets/images/fxsc.png
Binary files differ
diff --git a/src/assets/images/gaocheng.png b/src/assets/images/gaocheng.png
new file mode 100644
index 0000000..ff80176
--- /dev/null
+++ b/src/assets/images/gaocheng.png
Binary files differ
diff --git a/src/assets/images/hover.png b/src/assets/images/hover.png
new file mode 100644
index 0000000..c925f55
--- /dev/null
+++ b/src/assets/images/hover.png
Binary files differ
diff --git a/src/assets/images/isBroadcast.png b/src/assets/images/isBroadcast.png
new file mode 100644
index 0000000..516d9bf
--- /dev/null
+++ b/src/assets/images/isBroadcast.png
Binary files differ
diff --git a/src/assets/images/isSound.png b/src/assets/images/isSound.png
new file mode 100644
index 0000000..81d495a
--- /dev/null
+++ b/src/assets/images/isSound.png
Binary files differ
diff --git a/src/assets/images/keyword.jpg b/src/assets/images/keyword.jpg
new file mode 100644
index 0000000..c9c0d09
--- /dev/null
+++ b/src/assets/images/keyword.jpg
Binary files differ
diff --git a/src/assets/images/left-bottom.png b/src/assets/images/left-bottom.png
new file mode 100644
index 0000000..9f08ca1
--- /dev/null
+++ b/src/assets/images/left-bottom.png
Binary files differ
diff --git a/src/assets/images/left-top.png b/src/assets/images/left-top.png
new file mode 100644
index 0000000..3631075
--- /dev/null
+++ b/src/assets/images/left-top.png
Binary files differ
diff --git a/src/assets/images/left.png b/src/assets/images/left.png
new file mode 100644
index 0000000..d1cb71e
--- /dev/null
+++ b/src/assets/images/left.png
Binary files differ
diff --git a/src/assets/images/leftarrow.png b/src/assets/images/leftarrow.png
new file mode 100644
index 0000000..e01f525
--- /dev/null
+++ b/src/assets/images/leftarrow.png
Binary files differ
diff --git a/src/assets/images/leftmapidentification.png b/src/assets/images/leftmapidentification.png
new file mode 100644
index 0000000..1bd0b84
--- /dev/null
+++ b/src/assets/images/leftmapidentification.png
Binary files differ
diff --git a/src/assets/images/leftturn.png b/src/assets/images/leftturn.png
new file mode 100644
index 0000000..f7740cb
--- /dev/null
+++ b/src/assets/images/leftturn.png
Binary files differ
diff --git a/src/assets/images/loadControl.png b/src/assets/images/loadControl.png
new file mode 100644
index 0000000..f3ed1d0
--- /dev/null
+++ b/src/assets/images/loadControl.png
Binary files differ
diff --git a/src/assets/images/locationicon.png b/src/assets/images/locationicon.png
new file mode 100644
index 0000000..31a393c
--- /dev/null
+++ b/src/assets/images/locationicon.png
Binary files differ
diff --git a/src/assets/images/lockPanel.png b/src/assets/images/lockPanel.png
new file mode 100644
index 0000000..85acece
--- /dev/null
+++ b/src/assets/images/lockPanel.png
Binary files differ
diff --git a/src/assets/images/login-bg.png b/src/assets/images/login-bg.png
new file mode 100644
index 0000000..23760dc
--- /dev/null
+++ b/src/assets/images/login-bg.png
Binary files differ
diff --git a/src/assets/images/login-content-bg.png b/src/assets/images/login-content-bg.png
new file mode 100644
index 0000000..684c716
--- /dev/null
+++ b/src/assets/images/login-content-bg.png
Binary files differ
diff --git a/src/assets/images/login-input.png b/src/assets/images/login-input.png
new file mode 100644
index 0000000..ec0c108
--- /dev/null
+++ b/src/assets/images/login-input.png
Binary files differ
diff --git a/src/assets/images/login.png b/src/assets/images/login.png
new file mode 100644
index 0000000..0e1af57
--- /dev/null
+++ b/src/assets/images/login.png
Binary files differ
diff --git a/src/assets/images/m30.png b/src/assets/images/m30.png
new file mode 100644
index 0000000..a5932c7
--- /dev/null
+++ b/src/assets/images/m30.png
Binary files differ
diff --git a/src/assets/images/mapdock.png b/src/assets/images/mapdock.png
new file mode 100644
index 0000000..5b7dcf8
--- /dev/null
+++ b/src/assets/images/mapdock.png
Binary files differ
diff --git a/src/assets/images/mapidentification.png b/src/assets/images/mapidentification.png
new file mode 100644
index 0000000..0f3ca48
--- /dev/null
+++ b/src/assets/images/mapidentification.png
Binary files differ
diff --git a/src/assets/images/mapswitching.png b/src/assets/images/mapswitching.png
new file mode 100644
index 0000000..25204f9
--- /dev/null
+++ b/src/assets/images/mapswitching.png
Binary files differ
diff --git a/src/assets/images/mileage.png b/src/assets/images/mileage.png
new file mode 100644
index 0000000..035a59c
--- /dev/null
+++ b/src/assets/images/mileage.png
Binary files differ
diff --git a/src/assets/images/mode-tab-ac.png b/src/assets/images/mode-tab-ac.png
new file mode 100644
index 0000000..d752be6
--- /dev/null
+++ b/src/assets/images/mode-tab-ac.png
Binary files differ
diff --git a/src/assets/images/model-m30.png b/src/assets/images/model-m30.png
new file mode 100644
index 0000000..8a82f2b
--- /dev/null
+++ b/src/assets/images/model-m30.png
Binary files differ
diff --git a/src/assets/images/model-matrice3d.png b/src/assets/images/model-matrice3d.png
new file mode 100644
index 0000000..ec59bd9
--- /dev/null
+++ b/src/assets/images/model-matrice3d.png
Binary files differ
diff --git a/src/assets/images/model-mavic3.png b/src/assets/images/model-mavic3.png
new file mode 100644
index 0000000..140671c
--- /dev/null
+++ b/src/assets/images/model-mavic3.png
Binary files differ
diff --git a/src/assets/images/networkQuality_100.png b/src/assets/images/networkQuality_100.png
new file mode 100644
index 0000000..57fdb9c
--- /dev/null
+++ b/src/assets/images/networkQuality_100.png
Binary files differ
diff --git a/src/assets/images/networkQuality_20.png b/src/assets/images/networkQuality_20.png
new file mode 100644
index 0000000..72bd2ae
--- /dev/null
+++ b/src/assets/images/networkQuality_20.png
Binary files differ
diff --git a/src/assets/images/networkQuality_40.png b/src/assets/images/networkQuality_40.png
new file mode 100644
index 0000000..fcd0b58
--- /dev/null
+++ b/src/assets/images/networkQuality_40.png
Binary files differ
diff --git a/src/assets/images/networkQuality_60.png b/src/assets/images/networkQuality_60.png
new file mode 100644
index 0000000..40dbf93
--- /dev/null
+++ b/src/assets/images/networkQuality_60.png
Binary files differ
diff --git a/src/assets/images/networkQuality_80.png b/src/assets/images/networkQuality_80.png
new file mode 100644
index 0000000..90751c6
--- /dev/null
+++ b/src/assets/images/networkQuality_80.png
Binary files differ
diff --git a/src/assets/images/newcentertitle_box.png b/src/assets/images/newcentertitle_box.png
new file mode 100644
index 0000000..cf13e47
--- /dev/null
+++ b/src/assets/images/newcentertitle_box.png
Binary files differ
diff --git a/src/assets/images/newcon_box.png b/src/assets/images/newcon_box.png
new file mode 100644
index 0000000..483bf7a
--- /dev/null
+++ b/src/assets/images/newcon_box.png
Binary files differ
diff --git a/src/assets/images/newrouteplan.png b/src/assets/images/newrouteplan.png
new file mode 100644
index 0000000..11a356a
--- /dev/null
+++ b/src/assets/images/newrouteplan.png
Binary files differ
diff --git a/src/assets/images/newtitle_box.png b/src/assets/images/newtitle_box.png
new file mode 100644
index 0000000..cd770f9
--- /dev/null
+++ b/src/assets/images/newtitle_box.png
Binary files differ
diff --git a/src/assets/images/no-draw.png b/src/assets/images/no-draw.png
new file mode 100644
index 0000000..d20e974
--- /dev/null
+++ b/src/assets/images/no-draw.png
Binary files differ
diff --git a/src/assets/images/noBroadcast.png b/src/assets/images/noBroadcast.png
new file mode 100644
index 0000000..2643ae1
--- /dev/null
+++ b/src/assets/images/noBroadcast.png
Binary files differ
diff --git a/src/assets/images/noSound.png b/src/assets/images/noSound.png
new file mode 100644
index 0000000..84b05ce
--- /dev/null
+++ b/src/assets/images/noSound.png
Binary files differ
diff --git a/src/assets/images/norecord.png b/src/assets/images/norecord.png
new file mode 100644
index 0000000..5f76a82
--- /dev/null
+++ b/src/assets/images/norecord.png
Binary files differ
diff --git a/src/assets/images/notTurnoffcontrol.png b/src/assets/images/notTurnoffcontrol.png
new file mode 100644
index 0000000..7921075
--- /dev/null
+++ b/src/assets/images/notTurnoffcontrol.png
Binary files differ
diff --git a/src/assets/images/nottape.png b/src/assets/images/nottape.png
new file mode 100644
index 0000000..e5c46dc
--- /dev/null
+++ b/src/assets/images/nottape.png
Binary files differ
diff --git a/src/assets/images/notwrj.png b/src/assets/images/notwrj.png
new file mode 100644
index 0000000..a75281c
--- /dev/null
+++ b/src/assets/images/notwrj.png
Binary files differ
diff --git a/src/assets/images/operationPrompt.png b/src/assets/images/operationPrompt.png
new file mode 100644
index 0000000..c9c0d09
--- /dev/null
+++ b/src/assets/images/operationPrompt.png
Binary files differ
diff --git a/src/assets/images/password-icon.png b/src/assets/images/password-icon.png
new file mode 100644
index 0000000..4771fec
--- /dev/null
+++ b/src/assets/images/password-icon.png
Binary files differ
diff --git a/src/assets/images/patternType.png b/src/assets/images/patternType.png
new file mode 100644
index 0000000..aa35992
--- /dev/null
+++ b/src/assets/images/patternType.png
Binary files differ
diff --git a/src/assets/images/payload.png b/src/assets/images/payload.png
new file mode 100644
index 0000000..cdd22ea
--- /dev/null
+++ b/src/assets/images/payload.png
Binary files differ
diff --git a/src/assets/images/payloadvideo.png b/src/assets/images/payloadvideo.png
new file mode 100644
index 0000000..cdd22ea
--- /dev/null
+++ b/src/assets/images/payloadvideo.png
Binary files differ
diff --git a/src/assets/images/pendingexecutionback.png b/src/assets/images/pendingexecutionback.png
new file mode 100644
index 0000000..609c47f
--- /dev/null
+++ b/src/assets/images/pendingexecutionback.png
Binary files differ
diff --git a/src/assets/images/photoDirection.png b/src/assets/images/photoDirection.png
new file mode 100644
index 0000000..e1032eb
--- /dev/null
+++ b/src/assets/images/photoDirection.png
Binary files differ
diff --git a/src/assets/images/photograph.png b/src/assets/images/photograph.png
new file mode 100644
index 0000000..a435cc2
--- /dev/null
+++ b/src/assets/images/photograph.png
Binary files differ
diff --git a/src/assets/images/photographyDirection.png b/src/assets/images/photographyDirection.png
new file mode 100644
index 0000000..02cb27d
--- /dev/null
+++ b/src/assets/images/photographyDirection.png
Binary files differ
diff --git a/src/assets/images/pic.png b/src/assets/images/pic.png
new file mode 100644
index 0000000..cae3066
--- /dev/null
+++ b/src/assets/images/pic.png
Binary files differ
diff --git a/src/assets/images/point-add.png b/src/assets/images/point-add.png
new file mode 100644
index 0000000..3fab209
--- /dev/null
+++ b/src/assets/images/point-add.png
Binary files differ
diff --git a/src/assets/images/point-selected.png b/src/assets/images/point-selected.png
new file mode 100644
index 0000000..a33cfbe
--- /dev/null
+++ b/src/assets/images/point-selected.png
Binary files differ
diff --git a/src/assets/images/point.png b/src/assets/images/point.png
new file mode 100644
index 0000000..60fdcfd
--- /dev/null
+++ b/src/assets/images/point.png
Binary files differ
diff --git a/src/assets/images/polyExtenLeft.png b/src/assets/images/polyExtenLeft.png
new file mode 100644
index 0000000..d1bb115
--- /dev/null
+++ b/src/assets/images/polyExtenLeft.png
Binary files differ
diff --git a/src/assets/images/polyExtenRight.png b/src/assets/images/polyExtenRight.png
new file mode 100644
index 0000000..41ca21b
--- /dev/null
+++ b/src/assets/images/polyExtenRight.png
Binary files differ
diff --git a/src/assets/images/pount.png b/src/assets/images/pount.png
new file mode 100644
index 0000000..deb701d
--- /dev/null
+++ b/src/assets/images/pount.png
Binary files differ
diff --git a/src/assets/images/promptInformation.png b/src/assets/images/promptInformation.png
new file mode 100644
index 0000000..22d24ee
--- /dev/null
+++ b/src/assets/images/promptInformation.png
Binary files differ
diff --git a/src/assets/images/push.png b/src/assets/images/push.png
new file mode 100644
index 0000000..fb4fb82
--- /dev/null
+++ b/src/assets/images/push.png
Binary files differ
diff --git a/src/assets/images/questionmark.png b/src/assets/images/questionmark.png
new file mode 100644
index 0000000..c71674b
--- /dev/null
+++ b/src/assets/images/questionmark.png
Binary files differ
diff --git a/src/assets/images/qwe.png b/src/assets/images/qwe.png
new file mode 100644
index 0000000..370a3c6
--- /dev/null
+++ b/src/assets/images/qwe.png
Binary files differ
diff --git a/src/assets/images/rain-title.png b/src/assets/images/rain-title.png
new file mode 100644
index 0000000..c07685b
--- /dev/null
+++ b/src/assets/images/rain-title.png
Binary files differ
diff --git a/src/assets/images/reason.png b/src/assets/images/reason.png
new file mode 100644
index 0000000..738fd2c
--- /dev/null
+++ b/src/assets/images/reason.png
Binary files differ
diff --git a/src/assets/images/return.png b/src/assets/images/return.png
new file mode 100644
index 0000000..e231270
--- /dev/null
+++ b/src/assets/images/return.png
Binary files differ
diff --git a/src/assets/images/returnleft.png b/src/assets/images/returnleft.png
new file mode 100644
index 0000000..55ea911
--- /dev/null
+++ b/src/assets/images/returnleft.png
Binary files differ
diff --git a/src/assets/images/returnright.png b/src/assets/images/returnright.png
new file mode 100644
index 0000000..b7ac547
--- /dev/null
+++ b/src/assets/images/returnright.png
Binary files differ
diff --git a/src/assets/images/right-bottom.png b/src/assets/images/right-bottom.png
new file mode 100644
index 0000000..8886ab3
--- /dev/null
+++ b/src/assets/images/right-bottom.png
Binary files differ
diff --git a/src/assets/images/right-top.png b/src/assets/images/right-top.png
new file mode 100644
index 0000000..1147690
--- /dev/null
+++ b/src/assets/images/right-top.png
Binary files differ
diff --git a/src/assets/images/right.png b/src/assets/images/right.png
new file mode 100644
index 0000000..26e9ad7
--- /dev/null
+++ b/src/assets/images/right.png
Binary files differ
diff --git a/src/assets/images/rightarrow.png b/src/assets/images/rightarrow.png
new file mode 100644
index 0000000..a8bca91
--- /dev/null
+++ b/src/assets/images/rightarrow.png
Binary files differ
diff --git a/src/assets/images/rightmapidentification.png b/src/assets/images/rightmapidentification.png
new file mode 100644
index 0000000..cf8dc77
--- /dev/null
+++ b/src/assets/images/rightmapidentification.png
Binary files differ
diff --git a/src/assets/images/rightturn.png b/src/assets/images/rightturn.png
new file mode 100644
index 0000000..4d2a0a9
--- /dev/null
+++ b/src/assets/images/rightturn.png
Binary files differ
diff --git a/src/assets/images/rise.png b/src/assets/images/rise.png
new file mode 100644
index 0000000..d3c3024
--- /dev/null
+++ b/src/assets/images/rise.png
Binary files differ
diff --git a/src/assets/images/routeSwitch.png b/src/assets/images/routeSwitch.png
new file mode 100644
index 0000000..466caca
--- /dev/null
+++ b/src/assets/images/routeSwitch.png
Binary files differ
diff --git a/src/assets/images/routeSwitchRight.png b/src/assets/images/routeSwitchRight.png
new file mode 100644
index 0000000..b05591d
--- /dev/null
+++ b/src/assets/images/routeSwitchRight.png
Binary files differ
diff --git a/src/assets/images/satellite.png b/src/assets/images/satellite.png
new file mode 100644
index 0000000..8808789
--- /dev/null
+++ b/src/assets/images/satellite.png
Binary files differ
diff --git a/src/assets/images/search.png b/src/assets/images/search.png
new file mode 100644
index 0000000..5d435d7
--- /dev/null
+++ b/src/assets/images/search.png
Binary files differ
diff --git a/src/assets/images/speed.png b/src/assets/images/speed.png
new file mode 100644
index 0000000..e8939e2
--- /dev/null
+++ b/src/assets/images/speed.png
Binary files differ
diff --git a/src/assets/images/stand.png b/src/assets/images/stand.png
new file mode 100644
index 0000000..bb86b66
--- /dev/null
+++ b/src/assets/images/stand.png
Binary files differ
diff --git a/src/assets/images/startrecording.png b/src/assets/images/startrecording.png
new file mode 100644
index 0000000..8cfe424
--- /dev/null
+++ b/src/assets/images/startrecording.png
Binary files differ
diff --git a/src/assets/images/stoprecoding.png b/src/assets/images/stoprecoding.png
new file mode 100644
index 0000000..e3effb4
--- /dev/null
+++ b/src/assets/images/stoprecoding.png
Binary files differ
diff --git a/src/assets/images/sudu.png b/src/assets/images/sudu.png
new file mode 100644
index 0000000..8052165
--- /dev/null
+++ b/src/assets/images/sudu.png
Binary files differ
diff --git a/src/assets/images/takeoff.png b/src/assets/images/takeoff.png
new file mode 100644
index 0000000..dfd3b7b
--- /dev/null
+++ b/src/assets/images/takeoff.png
Binary files differ
diff --git a/src/assets/images/takeover.png b/src/assets/images/takeover.png
new file mode 100644
index 0000000..d3e7237
--- /dev/null
+++ b/src/assets/images/takeover.png
Binary files differ
diff --git a/src/assets/images/tape.png b/src/assets/images/tape.png
new file mode 100644
index 0000000..e5022d5
--- /dev/null
+++ b/src/assets/images/tape.png
Binary files differ
diff --git a/src/assets/images/tbbh.png b/src/assets/images/tbbh.png
new file mode 100644
index 0000000..de89762
--- /dev/null
+++ b/src/assets/images/tbbh.png
Binary files differ
diff --git a/src/assets/images/tblx.png b/src/assets/images/tblx.png
new file mode 100644
index 0000000..8aa24e5
--- /dev/null
+++ b/src/assets/images/tblx.png
Binary files differ
diff --git a/src/assets/images/tbmj.png b/src/assets/images/tbmj.png
new file mode 100644
index 0000000..8689625
--- /dev/null
+++ b/src/assets/images/tbmj.png
Binary files differ
diff --git a/src/assets/images/tbupload.png b/src/assets/images/tbupload.png
new file mode 100644
index 0000000..890fb28
--- /dev/null
+++ b/src/assets/images/tbupload.png
Binary files differ
diff --git a/src/assets/images/tc.png b/src/assets/images/tc.png
new file mode 100644
index 0000000..c32af3c
--- /dev/null
+++ b/src/assets/images/tc.png
Binary files differ
diff --git a/src/assets/images/time.png b/src/assets/images/time.png
new file mode 100644
index 0000000..1b34dc9
--- /dev/null
+++ b/src/assets/images/time.png
Binary files differ
diff --git a/src/assets/images/title-box.png b/src/assets/images/title-box.png
new file mode 100644
index 0000000..c41bdd3
--- /dev/null
+++ b/src/assets/images/title-box.png
Binary files differ
diff --git a/src/assets/images/titlename.png b/src/assets/images/titlename.png
new file mode 100644
index 0000000..eaf4cda
--- /dev/null
+++ b/src/assets/images/titlename.png
Binary files differ
diff --git a/src/assets/images/topTitleimg.png b/src/assets/images/topTitleimg.png
new file mode 100644
index 0000000..e46344a
--- /dev/null
+++ b/src/assets/images/topTitleimg.png
Binary files differ
diff --git a/src/assets/images/turnleft.png b/src/assets/images/turnleft.png
new file mode 100644
index 0000000..8662413
--- /dev/null
+++ b/src/assets/images/turnleft.png
Binary files differ
diff --git a/src/assets/images/turnright.png b/src/assets/images/turnright.png
new file mode 100644
index 0000000..0ca1773
--- /dev/null
+++ b/src/assets/images/turnright.png
Binary files differ
diff --git a/src/assets/images/unloading.png b/src/assets/images/unloading.png
new file mode 100644
index 0000000..c8fa25a
--- /dev/null
+++ b/src/assets/images/unloading.png
Binary files differ
diff --git a/src/assets/images/unlockPanel.png b/src/assets/images/unlockPanel.png
new file mode 100644
index 0000000..d513f61
--- /dev/null
+++ b/src/assets/images/unlockPanel.png
Binary files differ
diff --git a/src/assets/images/up.png b/src/assets/images/up.png
new file mode 100644
index 0000000..e8e4e0b
--- /dev/null
+++ b/src/assets/images/up.png
Binary files differ
diff --git a/src/assets/images/upload.png b/src/assets/images/upload.png
new file mode 100644
index 0000000..d5fcdd1
--- /dev/null
+++ b/src/assets/images/upload.png
Binary files differ
diff --git a/src/assets/images/user-icon.png b/src/assets/images/user-icon.png
new file mode 100644
index 0000000..4de82ba
--- /dev/null
+++ b/src/assets/images/user-icon.png
Binary files differ
diff --git a/src/assets/images/user.png b/src/assets/images/user.png
new file mode 100644
index 0000000..c7a4404
--- /dev/null
+++ b/src/assets/images/user.png
Binary files differ
diff --git a/src/assets/images/vedio.png b/src/assets/images/vedio.png
new file mode 100644
index 0000000..481c4c5
--- /dev/null
+++ b/src/assets/images/vedio.png
Binary files differ
diff --git a/src/assets/images/voiceAnnouncement .png b/src/assets/images/voiceAnnouncement .png
new file mode 100644
index 0000000..3c2df3b
--- /dev/null
+++ b/src/assets/images/voiceAnnouncement .png
Binary files differ
diff --git a/src/assets/images/warnbg_01.png b/src/assets/images/warnbg_01.png
new file mode 100644
index 0000000..b7e5dec
--- /dev/null
+++ b/src/assets/images/warnbg_01.png
Binary files differ
diff --git a/src/assets/images/warnbg_02.png b/src/assets/images/warnbg_02.png
new file mode 100644
index 0000000..e5419e6
--- /dev/null
+++ b/src/assets/images/warnbg_02.png
Binary files differ
diff --git a/src/assets/images/wayline.png b/src/assets/images/wayline.png
new file mode 100644
index 0000000..9ec7693
--- /dev/null
+++ b/src/assets/images/wayline.png
Binary files differ
diff --git a/src/assets/images/waypointevents.png b/src/assets/images/waypointevents.png
new file mode 100644
index 0000000..c91e04f
--- /dev/null
+++ b/src/assets/images/waypointevents.png
Binary files differ
diff --git a/src/assets/images/wrj.png b/src/assets/images/wrj.png
new file mode 100644
index 0000000..c84bb5f
--- /dev/null
+++ b/src/assets/images/wrj.png
Binary files differ
diff --git a/src/assets/images/xinghao.png b/src/assets/images/xinghao.png
new file mode 100644
index 0000000..4401c58
--- /dev/null
+++ b/src/assets/images/xinghao.png
Binary files differ
diff --git a/src/assets/images/xuhang.png b/src/assets/images/xuhang.png
new file mode 100644
index 0000000..e30277f
--- /dev/null
+++ b/src/assets/images/xuhang.png
Binary files differ
diff --git a/src/assets/images/xzqdm.png b/src/assets/images/xzqdm.png
new file mode 100644
index 0000000..bb46b7d
--- /dev/null
+++ b/src/assets/images/xzqdm.png
Binary files differ
diff --git a/src/assets/images/xzqh.png b/src/assets/images/xzqh.png
new file mode 100644
index 0000000..7b7021c
--- /dev/null
+++ b/src/assets/images/xzqh.png
Binary files differ
diff --git a/src/assets/images/zbottom.png b/src/assets/images/zbottom.png
new file mode 100644
index 0000000..6e1e80a
--- /dev/null
+++ b/src/assets/images/zbottom.png
Binary files differ
diff --git a/src/assets/images/zlwz.png b/src/assets/images/zlwz.png
new file mode 100644
index 0000000..90e1073
--- /dev/null
+++ b/src/assets/images/zlwz.png
Binary files differ
diff --git a/src/assets/images/zoomIn.png b/src/assets/images/zoomIn.png
new file mode 100644
index 0000000..6c30d7a
--- /dev/null
+++ b/src/assets/images/zoomIn.png
Binary files differ
diff --git a/src/assets/images/zoomOut.png b/src/assets/images/zoomOut.png
new file mode 100644
index 0000000..4c8e43e
--- /dev/null
+++ b/src/assets/images/zoomOut.png
Binary files differ
diff --git a/src/assets/images/zpsl.png b/src/assets/images/zpsl.png
new file mode 100644
index 0000000..5818a50
--- /dev/null
+++ b/src/assets/images/zpsl.png
Binary files differ
diff --git "a/src/assets/images/\346\217\220\347\244\272.png" "b/src/assets/images/\346\217\220\347\244\272.png"
new file mode 100644
index 0000000..9654192
--- /dev/null
+++ "b/src/assets/images/\346\217\220\347\244\272.png"
Binary files differ
diff --git "a/src/assets/images/\347\273\204 29321@2x.png" "b/src/assets/images/\347\273\204 29321@2x.png"
new file mode 100644
index 0000000..bdf5946
--- /dev/null
+++ "b/src/assets/images/\347\273\204 29321@2x.png"
Binary files differ
diff --git "a/src/assets/images/\347\273\204 29329@2x.png" "b/src/assets/images/\347\273\204 29329@2x.png"
new file mode 100644
index 0000000..2d56007
--- /dev/null
+++ "b/src/assets/images/\347\273\204 29329@2x.png"
Binary files differ
diff --git "a/src/assets/images/\347\273\204 29332@2x.png" "b/src/assets/images/\347\273\204 29332@2x.png"
new file mode 100644
index 0000000..ce3b0a4
--- /dev/null
+++ "b/src/assets/images/\347\273\204 29332@2x.png"
Binary files differ
diff --git a/src/config/env.js b/src/config/env.js
new file mode 100644
index 0000000..d882c76
--- /dev/null
+++ b/src/config/env.js
@@ -0,0 +1,2 @@
+let baseUrl = import.meta.env.VITE_APP_API;
+export { baseUrl };
diff --git a/src/hooks/initMap.js b/src/hooks/initMap.js
index dce2117..872ce88 100644
--- a/src/hooks/initMap.js
+++ b/src/hooks/initMap.js
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2024-10-25 15:09:55
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-10-28 19:42:36
+ * @LastEditTime: 2024-10-30 18:09:34
* @FilePath: \bigScreen\src\hooks\initMap.js
* @Description:
*
@@ -10,11 +10,11 @@
*/
let viewer = null
const { VITE_APP_BASE } = import.meta.env
-
import { useMap } from 'store/map'
import { nextTick } from 'vue'
export function readyViewer () {
+ const Cesium = DC.getLib('Cesium')
const { appContext } = getCurrentInstance()
const store = useMap()
@@ -33,6 +33,21 @@
global.$viewer = viewer
store.setLoadMap(true)
+
+ // let layer = new DC.HtmlLayer('layer')
+ // viewer.addLayer(layer)
+ // let divIcon = new DC.DivIcon(
+ // new DC.Position(125, 25),
+ // `<div class="public-map-popup">
+ // <div class="marsBlueGradientPnl">
+ // <div>指挥室</div>
+ // </div>
+ // </div>`
+ // )
+
+ // divIcon.setStyle({
+ // })
+ // layer.addOverlay(divIcon)
})
})
}
diff --git a/src/main.js b/src/main.js
index 625b57d..f11b4cb 100644
--- a/src/main.js
+++ b/src/main.js
@@ -19,6 +19,7 @@
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
+import './permission'
// 全局组件自动注册
import components from '@/components/index'
diff --git a/src/page/login.vue b/src/page/login.vue
index daca173..aa7b179 100644
--- a/src/page/login.vue
+++ b/src/page/login.vue
@@ -1,21 +1,141 @@
-<!--
- * @Author: shuishen 1109946754@qq.com
- * @Date: 2024-10-25 16:35:51
- * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-10-25 16:36:07
- * @FilePath: \bigScreen\src\page\login.vue
- * @Description:
- *
- * Copyright (c) 2024 by shuishen, All Rights Reserved.
--->
<template>
- <div>
-
+ <div class="box">
+ <div class="login">
+ <div class="logintitle">
+ 吉水化工园区“一园一策一图”VR平台
+ </div>
+ <div class="getingo">
+ <p class="title">用户登录</p>
+ <el-input type="text" class="input username" v-model="loginForm.username" />
+ <el-input type="password" class="input password" v-model="loginForm.password" />
+ <el-button class="loginto" type="primary" @click="login">登录</el-button>
+ </div>
+ </div>
</div>
</template>
<script setup>
+import { useRouter, useRoute } from 'vue-router'
+let router = useRouter()
+import { ElLoading } from 'element-plus'
+import { useLogin } from 'store/login'
+const store = useLogin()
+const loginForm = reactive({
+ //租户ID
+ tenantId: '000000',
+ //部门ID
+ deptId: '',
+ //角色ID
+ roleId: '',
+ //用户名
+ username: '',
+ //密码
+ password: '',
+ //账号类型
+ type: 'account',
+ //验证码的值
+ code: '',
+ //验证码的索引
+ key: '',
+ //预加载白色背景
+ image:
+ 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',
+ flag: 1,
+})
+
+const login = () => {
+ const loading = ElLoading.service({
+ lock: true,
+ text: '登录中,请稍后。。。',
+ background: 'rgba(0, 0, 0, 0.7)',
+ })
+
+ store.LoginByUsername(loginForm).then(res => {
+ console.log(res, 66666)
+ router.push('/layout')
+ loading.close()
+ }).catch(() => {
+ loading.close()
+ })
+}
</script>
-<style lang="scss" scoped></style>
\ No newline at end of file
+<style lang="scss" scoped>
+.box {
+ width: 100vw;
+ height: 100vh;
+ box-sizing: border-box;
+
+ .login {
+ width: 100%;
+ height: 100%;
+ background: url('../assets/images/login-bg.png');
+ background-size: 100% 100%;
+ position: relative;
+
+ .logintitle {
+ position: absolute;
+ top: 18%;
+ right: 25%;
+ transform: translateX(50%);
+ font-size: 40px;
+ color: #00afe9;
+ }
+
+ .getingo {
+ width: 500px;
+ position: absolute;
+ text-align: center;
+ top: 45%;
+ right: 25%;
+ transform: translateY(-40%) translateX(50%);
+ color: #ffffff;
+ padding: 30px;
+ background: url('../assets/images/login-content-bg.png'),
+ url('../assets/images/left-top.png') no-repeat left top,
+ url('../assets/images/left-bottom.png') no-repeat left bottom,
+ url('../assets/images/right-top.png') no-repeat right top,
+ url('../assets/images/right-bottom.png') no-repeat right bottom;
+ background-repeat: no-repeat;
+ background-size: 100% 100%, 25px, 25px, 25px, 25px;
+
+ .title {
+ font-size: 20px;
+ }
+
+ :deep().el-input__inner {
+ padding: 0px;
+ }
+
+ .input {
+ margin: 30px 0;
+ width: 300px;
+ padding: 10px 0px;
+ background-color: rgba(0, 0, 0, 0);
+ color: #ffffff;
+ padding-left: 40px;
+ border-width: 0px;
+ font-size: 18px;
+ }
+
+ .username {
+ background: url('../assets/images/login-input.png') no-repeat,
+ url('../assets/images/user-icon.png') no-repeat 10px center;
+ background-size: 100% 100%, 20px;
+ }
+
+ .password {
+ background: url('../assets/images/login-input.png') no-repeat,
+ url('../assets/images/password-icon.png') no-repeat 10px center;
+ background-size: 100% 100%, 20px;
+ }
+
+ .loginto {
+ width: 300px;
+ margin: 30px 0;
+ }
+ }
+ }
+}
+</style>
diff --git a/src/permission.js b/src/permission.js
new file mode 100644
index 0000000..652bd76
--- /dev/null
+++ b/src/permission.js
@@ -0,0 +1,47 @@
+/*
+ * @Author: shuishen 1109946754@qq.com
+ * @Date: 2024-10-30 17:03:57
+ * @LastEditors: shuishen 1109946754@qq.com
+ * @LastEditTime: 2024-10-30 17:07:40
+ * @FilePath: \bigScreen\src\permission.js
+ * @Description:
+ *
+ * Copyright (c) 2024 by shuishen, All Rights Reserved.
+ */
+import router from './router/'
+import store from './store'
+import { useLogin } from '@/store/login'
+import NProgress from 'nprogress' // progress bar
+import 'nprogress/nprogress.css' // progress bar style
+NProgress.configure({ showSpinner: false })
+
+router.beforeEach((to, from, next) => {
+ const store = useLogin()
+ const token = store.token
+
+ const meta = to.meta || {}
+
+ if (token) {
+ if (to.path === '/login') {
+ //如果登录成功访问登录页跳转到主页
+ next({ path: '/' })
+ } else {
+ if (token.length === 0) {
+ next({ path: '/login' })
+ } else {
+ next()
+ }
+ }
+ } else {
+ //判断是否需要认证,没有登录访问去登录页
+ if (meta.isAuth === false) {
+ next()
+ } else {
+ next('/login')
+ }
+ }
+})
+
+router.afterEach(to => {
+
+})
diff --git a/src/router/index.js b/src/router/index.js
index 0ff1b79..7b4a120 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2024-10-25 16:35:31
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-10-29 17:48:52
+ * @LastEditTime: 2024-10-30 15:01:50
* @FilePath: \bigScreen\src\router\index.js
* @Description:
*
@@ -16,6 +16,16 @@
redirect: '/layout',
},
{
+ path: '/login',
+ name: '登录页',
+ component: () => import('@/page/login.vue'),
+ meta: {
+ keepAlive: true,
+ isTab: false,
+ isAuth: false,
+ },
+ },
+ {
path: '/layout',
name: 'layout',
redirect: '/layout/survey',
diff --git a/src/store/login.js b/src/store/login.js
new file mode 100644
index 0000000..8a70be1
--- /dev/null
+++ b/src/store/login.js
@@ -0,0 +1,105 @@
+// src/stores/useUserStore.js
+import {
+ loginByUsername,
+} from '@/api/user'
+import { defineStore } from 'pinia'
+import md5 from 'js-md5'
+import {
+ ElMessage
+} from 'element-plus'
+
+export const useLogin = defineStore('login', {
+ // 存储状态的地方,相当于 Vuex 的 state
+ state: () => ({
+ token: '',
+ refreshToken: '',
+ tenantId: '',
+ userInfo: ''
+ }),
+
+ // 相当于 Vuex 的 getters,用于计算状态
+ getters: {
+
+ },
+
+ // 相当于 Vuex 的 mutations 和 actions,用于同步或异步地修改状态
+ actions: {
+ //根据用户名登录
+ LoginByUsername (userInfo = {}) {
+ return new Promise((resolve, reject) => {
+ loginByUsername(
+ userInfo.tenantId,
+ userInfo.deptId,
+ userInfo.roleId,
+ userInfo.username,
+ md5(userInfo.password),
+ userInfo.type,
+ userInfo.key,
+ userInfo.code
+ )
+ .then(res => {
+ console.log(res, 122222)
+ const data = res.data
+ if (data.error_description) {
+ ElMessage({
+ message: data.error_description,
+ type: 'error',
+ })
+ } else {
+ this.SET_TOKEN(data.access_token)
+ this.SET_REFRESH_TOKEN(data.refresh_token)
+ this.SET_TENANT_ID(data.tenant_id)
+ this.SET_USER_INFO(data)
+ }
+ resolve()
+ })
+ .catch(err => {
+ reject(err)
+ })
+ })
+ },
+
+ SET_TOKEN (token) {
+ this.token = token
+ },
+
+ SET_REFRESH_TOKEN (refreshToken) {
+ this.refreshToken = refreshToken
+ },
+
+ SET_TENANT_ID (tenantId) {
+ this.tenantId = tenantId
+ },
+
+ SET_USER_INFO (userInfo) {
+ this.userInfo = userInfo
+ }
+ },
+
+ persist: {
+ enabled: true,
+ strategies: [
+ {
+ key: 'token',
+ paths: ['token'],
+ storage: localStorage,
+ },
+ {
+ key: 'refreshToken',
+ paths: ['refreshToken'],
+ storage: localStorage,
+ },
+ {
+ key: 'tenantId',
+ paths: ['tenantId'],
+ storage: localStorage,
+ },
+ {
+ key: 'userInfo',
+ paths: ['userInfo'],
+ storage: localStorage,
+ },
+ ]
+ }
+})
+
diff --git a/src/styles/base/index.scss b/src/styles/base/index.scss
index c4a215e..29aa729 100644
--- a/src/styles/base/index.scss
+++ b/src/styles/base/index.scss
@@ -1 +1,39 @@
-@use './container.scss'as *;
\ No newline at end of file
+@use './container.scss'as *;
+
+.public-map-popup {
+ position: absolute;
+ left: 0;
+ top: 0;
+ pointer-events: all;
+ display: block;
+ transform-origin: left bottom;
+ z-index: auto;
+
+ .marsBlueGradientPnl {
+ text-align: center;
+ padding: 5px 30px;
+ margin: 0;
+ color: #fff;
+ background: linear-gradient(rgb(7 10 203 / 75%), rgb(16 238 220));
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ border-radius: 5px;
+ max-height: 130px;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ white-space: nowrap;
+
+ &::after {
+ content: "";
+ position: absolute;
+ bottom: -60px;
+ left: calc(50% - 3px);
+ display: block;
+ width: 3px;
+ height: 60px;
+ border-right: 3px solid #2bcdbb;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/utils/crypto.js b/src/utils/crypto.js
new file mode 100644
index 0000000..4bbd03a
--- /dev/null
+++ b/src/utils/crypto.js
@@ -0,0 +1,94 @@
+import CryptoJS from 'crypto-js';
+
+export default class crypto {
+ /**
+ * token加密key 使用@org.springblade.test.CryptoKeyGenerator获取,需和后端配置保持一致
+ * @type {string}
+ */
+ static cryptoKey = '请配置cryptoKey';
+ /**
+ * 报文加密key 使用@org.springblade.test.CryptoKeyGenerator获取,需和后端配置保持一致
+ * @type {string}
+ */
+ static aesKey = '请配置aesKey';
+ /**
+ * 报文加密key 使用@org.springblade.test.CryptoKeyGenerator获取,需和后端配置保持一致
+ * @type {string}
+ */
+ static desKey = '请配置desKey';
+
+ /**
+ * aes 加密方法
+ * @param data
+ * @returns {*}
+ */
+ static encrypt(data) {
+ return this.encryptAES(data, this.aesKey);
+ }
+
+ /**
+ * aes 解密方法
+ * @param data
+ * @returns {*}
+ */
+ static decrypt(data) {
+ return this.decryptAES(data, this.aesKey);
+ }
+
+ /**
+ * aes 加密方法,同java:AesUtil.encryptToBase64(text, aesKey);
+ */
+ static encryptAES(data, key) {
+ const dataBytes = CryptoJS.enc.Utf8.parse(data);
+ const keyBytes = CryptoJS.enc.Utf8.parse(key);
+ const encrypted = CryptoJS.AES.encrypt(dataBytes, keyBytes, {
+ iv: keyBytes,
+ mode: CryptoJS.mode.CBC,
+ padding: CryptoJS.pad.Pkcs7,
+ });
+ return CryptoJS.enc.Base64.stringify(encrypted.ciphertext);
+ }
+
+ /**
+ * aes 解密方法,同java:AesUtil.decryptFormBase64ToString(encrypt, aesKey);
+ */
+ static decryptAES(data, key) {
+ const keyBytes = CryptoJS.enc.Utf8.parse(key);
+ const decrypted = CryptoJS.AES.decrypt(data, keyBytes, {
+ iv: keyBytes,
+ mode: CryptoJS.mode.CBC,
+ padding: CryptoJS.pad.Pkcs7,
+ });
+ return CryptoJS.enc.Utf8.stringify(decrypted);
+ }
+
+ /**
+ * des 加密方法,同java:DesUtil.encryptToBase64(text, desKey)
+ */
+ static encryptDES(data, key) {
+ const keyHex = CryptoJS.enc.Utf8.parse(key);
+ const encrypted = CryptoJS.DES.encrypt(data, keyHex, {
+ mode: CryptoJS.mode.ECB,
+ padding: CryptoJS.pad.Pkcs7,
+ });
+ return encrypted.toString();
+ }
+
+ /**
+ * des 解密方法,同java:DesUtil.decryptFormBase64(encryptBase64, desKey);
+ */
+ static decryptDES(data, key) {
+ const keyHex = CryptoJS.enc.Utf8.parse(key);
+ const decrypted = CryptoJS.DES.decrypt(
+ {
+ ciphertext: CryptoJS.enc.Base64.parse(data),
+ },
+ keyHex,
+ {
+ mode: CryptoJS.mode.ECB,
+ padding: CryptoJS.pad.Pkcs7,
+ }
+ );
+ return decrypted.toString(CryptoJS.enc.Utf8);
+ }
+}
diff --git a/src/utils/http.js b/src/utils/http.js
index 7c162c2..8ffb783 100644
--- a/src/utils/http.js
+++ b/src/utils/http.js
@@ -19,6 +19,11 @@
import NProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css' // progress bar style
+import { Base64 } from 'js-base64'
+import { baseUrl } from '@/config/env'
+import crypto from '@/utils/crypto'
+
+import { useLogin } from '@/store/login'
// 全局未授权错误提示状态,只提示一次
let isErrorShown = false
@@ -38,7 +43,12 @@
//http request拦截
axios.interceptors.request.use(
config => {
- console.log(config, '906456456465')
+ const store = useLogin()
+ //地址为已经配置状态则不添加前缀
+ if (!isURL(config.url) && !config.url.startsWith(baseUrl)) {
+ config.url = baseUrl + config.url
+ }
+
// start progress bar
NProgress.start()
// 初始化错误提示状态
@@ -46,23 +56,39 @@
//安全请求header
config.headers['Blade-Requested-With'] = 'BladeHttpRequest'
+ //headers判断是否需要
+ const authorization = config.authorization === false
+ if (!authorization) {
+ config.headers['Authorization'] = `Basic ${Base64.encode(
+ `zhyq:zhyq_secret`
+ )}`
+ }
//headers判断请求是否携带token
const meta = config.meta || {}
+ const isToken = meta.isToken === false
//headers传递token是否加密
+ const cryptoToken = config.cryptoToken === true
//判断传递数据是否加密
+ const cryptoData = config.cryptoData === true
+ const token = store.token
+ if (token && !isToken) {
+ config.headers[website.tokenHeader] = cryptoToken
+ ? 'crypto ' + crypto.encryptAES(token, crypto.cryptoKey)
+ : 'bearer ' + token
+ }
// 开启报文加密
- // if (cryptoData) {
- // if (config.params) {
- // const data = crypto.encryptAES(JSON.stringify(config.params), crypto.aesKey);
- // config.params = { data };
- // }
- // if (config.data) {
- // config.text = true;
- // config.data = crypto.encryptAES(JSON.stringify(config.data), crypto.aesKey);
- // }
- // }
+ if (cryptoData) {
+ if (config.params) {
+ const data = crypto.encryptAES(JSON.stringify(config.params), crypto.aesKey)
+ config.params = { data }
+ }
+ if (config.data) {
+ config.text = true
+ config.data = crypto.encryptAES(JSON.stringify(config.data), crypto.aesKey)
+ }
+ }
//headers中配置text请求
if (config.text === true) {
config.headers['Content-Type'] = 'text/plain'
@@ -79,7 +105,7 @@
res => {
NProgress.done()
const status = res.data.error_code || res.data.code || res.status
- const statusWhiteList = website.statusWhiteList || []
+ const statusWhiteList = []
const message = res.data.msg || res.data.error_description || '系统错误'
const config = res.config
const cryptoData = config.cryptoData === true
diff --git a/src/views/layout/index.vue b/src/views/layout/index.vue
index 9483a90..9380212 100644
--- a/src/views/layout/index.vue
+++ b/src/views/layout/index.vue
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2022-08-18 16:18:24
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-10-28 19:44:29
+ * @LastEditTime: 2024-10-30 11:25:44
* @FilePath: \bigScreen\src\views\layout\index.vue
* @Description:
*
@@ -14,7 +14,7 @@
<template #content>
<div v-if="showContent" class="main-content" id="MainContent">
<div class="main-header">
- <div class="title">吉水工业园区化工集中区</div>
+ <div class="title">吉水化工园区“一园一策一图”VR平台</div>
</div>
<div class="main-container">
@@ -81,7 +81,7 @@
top: 0;
left: 0;
width: 100%;
- height: 68px;
+ height: 40px;
pointer-events: auto;
.title {
@@ -91,13 +91,13 @@
right: 0;
bottom: 0;
margin: auto;
- width: 456px;
+ width: 640px;
height: 40px;
- font-size: 32px;
+ font-size: 24px;
font-family: YouSheBiaoTiHei;
font-weight: 400;
color: #eff8fc;
- line-height: 35px;
+ line-height: 40px;
text-align: center;
letter-spacing: 8px;
font-weight: bolder;
diff --git a/vite.config.js b/vite.config.js
index 5af17bd..6ea53e3 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2024-10-25 10:56:27
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-10-29 21:44:48
+ * @LastEditTime: 2024-10-30 16:06:44
* @FilePath: \bigScreen\vite.config.js
* @Description:
*
@@ -83,7 +83,7 @@
proxy: {
'/api': {
// target: 'http://localhost',
- target: 'https://wrj.shuixiongit.com/api',
+ target: 'https://wrj.shuixiongit.com/zhyqapi',
changeOrigin: true,
rewrite: path => path.replace(/^\/api/, ''),
},
--
Gitblit v1.9.3