Browse Source

pilot端口图标更换

Ryuiso 1 year ago
parent
commit
49fd5b065a
2 changed files with 29 additions and 3 deletions
  1. 26 0
      Web/src/assets/icons/jk_icon_white.svg
  2. 3 3
      Web/src/pages/page-pilot/pilot-home.vue

+ 26 - 0
Web/src/assets/icons/jk_icon_white.svg

@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="251px" height="251px" viewBox="0 0 251 251" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <title>jk_icon</title>
+    <defs>
+        <filter x="-8.0%" y="-5.7%" width="116.0%" height="111.3%" filterUnits="objectBoundingBox" id="filter-1">
+            <feOffset dx="0" dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
+            <feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
+            <feColorMatrix values="0 0 0 0 0   0 0 0 0 0   0 0 0 0 0  0 0 0 0.5 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
+            <feMerge>
+                <feMergeNode in="shadowMatrixOuter1"></feMergeNode>
+                <feMergeNode in="SourceGraphic"></feMergeNode>
+            </feMerge>
+        </filter>
+        <radialGradient cx="13.6659223%" cy="62.3104639%" fx="13.6659223%" fy="62.3104639%" r="131.982363%" gradientTransform="translate(0.136659,0.623105),scale(1.000000,0.378788),rotate(-50.925180),translate(-0.136659,-0.623105)" id="radialGradient-2">
+            <stop stop-color="#00A0C7" offset="0%"></stop>
+            <stop stop-color="#08A84C" offset="100%"></stop>
+        </radialGradient>
+    </defs>
+    <g id="jk_icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <rect id="矩形" x="0" y="0" width="251" height="251" rx="26"></rect>
+        <g id="shjk_logo" filter="url(#filter-1)" transform="translate(51.000000, 12.000000)" fill-rule="nonzero">
+            <path d="M75.4603621,105.845419 C72.6648895,128.402658 82.9600933,131.750898 96.5956723,111.716164 L143.396227,46.0388144 L88.7798308,14 L75.4603621,105.84515 L75.4603621,105.845419 Z M99.429745,131.760611 C92.9618743,138.233803 88.1125313,147.974478 103.598818,157.109304 L150,182.260493 L150,77.0055529 L99.4299233,131.760253 L99.429745,131.760611 Z M78.5169423,179.310393 L88.9154213,212 L149.999777,212 L103.940468,173.115684 C95.6605348,165.758564 89.1120319,162.747002 84.5463057,162.747002 C77.5173526,162.747002 75.1990318,169.900262 78.5168977,179.310393 L78.5169423,179.310393 Z" id="形状" fill="url(#radialGradient-2)"></path>
+            <polygon id="路径" fill="#005D80" points="18.8263249 45.05655 18.8005458 127.045898 0 146.711309 0 212 45.1671295 212 45.1671295 211.996826 64 211.996826 64 0 18.8261456 45.0573099 18.8261456 45.0569523"></polygon>
+        </g>
+    </g>
+</svg>

+ 3 - 3
Web/src/pages/page-pilot/pilot-home.vue

@@ -4,7 +4,7 @@
       <div style="width:90%; height: 90%; margin: 4vh">
         <a-layout style="height: 20%; margin-top: 3vh; background-color: white; ">
           <a-layout-sider width="25%" theme="light" align="center">
-            <a-avatar :size="60" :src="cloudapi">
+            <a-avatar :size="60" :src="jkIcon">
             </a-avatar>
           </a-layout-sider>
           <a-layout-content style="margin-left: 1vw;">
@@ -79,7 +79,7 @@
         <a-row style="border-bottom: 1px solid #f4f8f9; height: 45px;" align="middle"
           v-if="device.data.online_status && device.data.sn">
           <a-col :span="1"></a-col>
-          <a-col :span="9">Aircraft Sn</a-col>
+          <a-col :span="9">飞行器SN</a-col>
           <a-col :span="13" class="flex-align-end flex-column">
             <span style="color: #737373">{{ device.data.sn }}</span>
           </a-col>
@@ -132,7 +132,7 @@ import { BindBody, bindDevice, getDeviceBySn, getPlatformInfo, getUserInfo, unbi
 import apiPilot, { ApiParam, MapParam, ThingParam, WsParam } from '/@/api/pilot-bridge'
 import { getRoot } from '/@/root'
 import { EBizCode, EComponentName, EDownloadOwner, ELocalStorageKey, ERouterName, EStatusValue } from '/@/types'
-import cloudapi from '/@/assets/icons/cloudapi.png'
+import jkIcon from '/@/assets/icons/jk_icon_white.svg'
 import { RightOutlined, CloudSyncOutlined, SyncOutlined } from '@ant-design/icons-vue'
 import { useMyStore } from '/@/store'
 import { DeviceStatus } from '/@/types/device'