This commit is contained in:
zk
2023-11-24 13:53:11 +08:00
parent 2648d8f694
commit 7299e96d20
2 changed files with 77 additions and 47 deletions
+20
View File
@@ -0,0 +1,20 @@
module.exports = {
printWidth: 150,
tabWidth: 4,
useTabs: false,
semi: true, //语句末尾使用分号
vueIndentScriptAndStyle: true,
singleQuote: true, // 使用单引号
quoteProps: 'as-needed',
bracketSpacing: true,
trailingComma: 'es5',
jsxBracketSameLine: false,
jsxSingleQuote: false,
arrowParens: 'always',
insertPragma: false,
requirePragma: false,
proseWrap: 'never',
htmlWhitespaceSensitivity: 'strict',
endOfLine: 'auto',
rangeStart: 0,
};
+31 -21
View File
@@ -9,13 +9,13 @@
<div v-show="currentIndex==list.length-1" class="route-navigation"> <div v-show="currentIndex==list.length-1" class="route-navigation">
<a-form <a-form
:model="formState" :model="formState"
layout="inline" layout="horizontal"
> >
<a-form-item class="form-item-self" name="user" label="起点"> <a-form-item class="form-item-self" label="起点" name="user">
<a-input v-model:value="formState.user"> <a-input v-model:value="formState.user">
</a-input> </a-input>
</a-form-item> </a-form-item>
<a-form-item class="form-item-self" name="user" label="终点"> <a-form-item class="form-item-self" label="终点" name="user">
<a-input v-model:value="formState.user"> <a-input v-model:value="formState.user">
</a-input> </a-input>
</a-form-item> </a-form-item>
@@ -34,23 +34,23 @@
<div class="line-body"> <div class="line-body">
<div class="line"></div> <div class="line"></div>
<div class="line-desc"> <div class="line-desc">
<!-- <p>向东行驶124米左转</p>--> <p>向东行驶124米左转</p>
<!-- <p>向西北行驶92米左转</p>--> <p>向西北行驶92米左转</p>
<!-- <p>向西南行驶45米右转</p>--> <p>向西南行驶45米右转</p>
<!-- <p>向西北行驶50米右转</p>--> <p>向西北行驶50米右转</p>
<!-- <p>沿燕庆街向东北行驶157米左转</p>--> <p>沿燕庆街向东北行驶157米左转</p>
<!-- <p>向西北行驶47米左转</p>--> <p>向西北行驶47米左转</p>
<!-- <p>向西行驶97米右转进入主路</p>--> <p>向西行驶97米右转进入主路</p>
<!-- <p>沿新华东路向西行驶1.1千米右转进入主路</p>--> <p>沿新华东路向西行驶1.1千米右转进入主路</p>
<!-- <p>沿友爱街向北行驶5.9千米右转</p>--> <p>沿友爱街向北行驶5.9千米右转</p>
<!-- <p>沿417乡道向东北行驶49米右转</p>--> <p>沿417乡道向东北行驶49米右转</p>
<!-- <p>沿417乡道向东行驶1.1千米左转</p>--> <p>沿417乡道向东行驶1.1千米左转</p>
<!-- <p>沿417乡道向北行驶8.3千米左转</p>--> <p>沿417乡道向北行驶8.3千米左转</p>
<!-- <p>向西北行驶47米左转</p>--> <p>向西北行驶47米左转</p>
<!-- <p>向西行驶97米右转进入主路</p>--> <p>向西行驶97米右转进入主路</p>
<!-- <p>沿新华东路向西行驶1.1千米右转进入主路</p>--> <p>沿新华东路向西行驶1.1千米右转进入主路</p>
<!-- <p>沿友爱街向北行驶5.9千米右转</p>--> <p>沿友爱街向北行驶5.9千米右转</p>
<!-- <p>沿417乡道向东北行驶49米右转</p>--> <p>沿417乡道向东北行驶49米右转</p>
<p>沿417乡道向东行驶1.1千米左转</p> <p>沿417乡道向东行驶1.1千米左转</p>
<p>沿417乡道向北行驶8.3千米左转</p> <p>沿417乡道向北行驶8.3千米左转</p>
<p>向西北行驶4.9千米到达目的地</p> <p>向西北行驶4.9千米到达目的地</p>
@@ -79,9 +79,10 @@
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import {ref,onMounted} from 'vue' import {onMounted, ref} from 'vue'
import * as echarts from 'echarts'; import * as echarts from 'echarts';
import mapJson from '/@/components/chinaMap/json/new' import mapJson from '/@/components/chinaMap/json/new'
const formState = ref({ const formState = ref({
user: '', user: '',
password: '', password: '',
@@ -130,9 +131,11 @@ function changeTab(i) {
currentIndex.value = i currentIndex.value = i
list.value[i].isChecked = true list.value[i].isChecked = true
} }
onMounted(() => { onMounted(() => {
// initMap(); // initMap();
}) })
function initMap() { function initMap() {
const bgImg = 'https://img1.baidu.com/it/u=514808758,3636401112&fm=253&fmt=auto&app=120&f=JPEG?w=1139&h=751' const bgImg = 'https://img1.baidu.com/it/u=514808758,3636401112&fm=253&fmt=auto&app=120&f=JPEG?w=1139&h=751'
let myChart = echarts.init(document.querySelector('.china-map-container')); let myChart = echarts.init(document.querySelector('.china-map-container'));
@@ -308,6 +311,7 @@ function initMap(){
border-radius: 6px; border-radius: 6px;
position: relative; position: relative;
transition: all 0.3s; transition: all 0.3s;
:deep(.form-item-self) { :deep(.form-item-self) {
label { label {
color: #29F1FA; color: #29F1FA;
@@ -385,6 +389,7 @@ function initMap(){
.end { .end {
display: flex; display: flex;
align-items: center; align-items: center;
&::before { &::before {
content: '终'; content: '终';
color: #fff; color: #fff;
@@ -419,15 +424,18 @@ function initMap(){
} }
} }
.china-map-container { .china-map-container {
flex: 1; flex: 1;
//border: 1px solid red; //border: 1px solid red;
} }
.center-footer { .center-footer {
display: flex; display: flex;
justify-content: center; justify-content: center;
margin-bottom: 10px; margin-bottom: 10px;
gap: 20px; gap: 20px;
.count-item { .count-item {
width: 340px; width: 340px;
height: 80px; height: 80px;
@@ -439,10 +447,12 @@ function initMap(){
background: #00071B; background: #00071B;
box-shadow: inset 0 0 40px 0 #1B7EF2; box-shadow: inset 0 0 40px 0 #1B7EF2;
border-radius: 4px; border-radius: 4px;
.num { .num {
font-size: 24px; font-size: 24px;
font-weight: 700; font-weight: 700;
} }
.text { .text {
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;