update:更新格式化配置
This commit is contained in:
+5
-3
@@ -1,6 +1,7 @@
|
||||
// @ts-check
|
||||
const { defineConfig } = require('eslint-define-config');
|
||||
module.exports = defineConfig({
|
||||
import {defineConfig} from 'eslint-define-config'
|
||||
// const {defineConfig} = require('eslint-define-config');
|
||||
export default {
|
||||
root: true,
|
||||
env: {
|
||||
browser: true,
|
||||
@@ -25,6 +26,7 @@ module.exports = defineConfig({
|
||||
'plugin:jest/recommended',
|
||||
],
|
||||
rules: {
|
||||
'prettier/prettier': 'error',
|
||||
'vue/script-setup-uses-vars': 'error',
|
||||
'@typescript-eslint/ban-ts-ignore': 'off',
|
||||
'@typescript-eslint/explicit-function-return-type': 'off',
|
||||
@@ -75,4 +77,4 @@ module.exports = defineConfig({
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
+8
-1
@@ -4,7 +4,14 @@
|
||||
<meta charset="UTF-8"/>
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>Vite + Vue + TS</title>
|
||||
<title>应急就医服务中心</title>
|
||||
<!-- 全局配置 -->
|
||||
<script>
|
||||
window._CONFIG = {};
|
||||
window._AMapSecurityConfig = {
|
||||
securityJsCode: "1b3b86585c863d22db1e7f7636a9e495",
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<style>
|
||||
html, body, #app {
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
"path": "^0.12.7",
|
||||
"prettier": "^3.1.0",
|
||||
"vue": "^3.3.4",
|
||||
"@amap/amap-jsapi-loader": "^1.0.1",
|
||||
"vue-seamless-scroll": "^1.1.23",
|
||||
"vue3-seamless-scroll": "^2.0.1"
|
||||
},
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
export default {
|
||||
printWidth: 150,
|
||||
tabWidth: 4,
|
||||
useTabs: false,
|
||||
|
||||
+3
-5
@@ -1,11 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import index from './views/index.vue'
|
||||
import index from './views/index.vue';
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<index />
|
||||
</template>
|
||||
<style lang="less" src="./assets/less/index.less">
|
||||
</style>
|
||||
<style lang="less" scoped>
|
||||
</style>
|
||||
<style lang="less" src="./assets/less/index.less"></style>
|
||||
<style lang="less" scoped></style>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
}
|
||||
|
||||
.select {
|
||||
color: #45A2FF;
|
||||
color: #45a2ff;
|
||||
position: relative;
|
||||
|
||||
&:after {
|
||||
@@ -21,13 +21,13 @@
|
||||
left: 8px;
|
||||
bottom: -14px;
|
||||
height: 8px;
|
||||
background: url("../images/light.png") no-repeat;
|
||||
background: url('../images/light.png') no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.unSelect {
|
||||
color: #A3A4A4;
|
||||
color: #a3a4a4;
|
||||
}
|
||||
}
|
||||
*::-webkit-scrollbar {
|
||||
@@ -47,5 +47,5 @@
|
||||
height: 6px;
|
||||
border-radius: 25px;
|
||||
background-clip: padding-box;
|
||||
background-color: rgba(0, 0, 0, 0.30);
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
@@ -3,7 +3,13 @@
|
||||
<public-title title="服务详情数据" />
|
||||
<div class="inner">
|
||||
<div class="type-time">
|
||||
<span :class="selectIndex===index?'select':'unSelect'" v-for="(item,index) in typeTime" :key="index" @click="handleSelect(index)">{{item.name}}</span>
|
||||
<span
|
||||
:class="selectIndex === index ? 'select' : 'unSelect'"
|
||||
v-for="(item, index) in typeTime"
|
||||
:key="index"
|
||||
@click="handleSelect(index)"
|
||||
>{{ item.name }}</span
|
||||
>
|
||||
</div>
|
||||
<div class="server-container">
|
||||
<div class="server-item" v-for="(item, index) in dataLists" :key="index">
|
||||
@@ -16,12 +22,13 @@
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue';
|
||||
import PublicTitle from "../publicTitle.vue";
|
||||
import PublicTitle from '../publicTitle.vue';
|
||||
const typeTime = ref([
|
||||
{
|
||||
name: '全部',
|
||||
value: 'all',
|
||||
},{
|
||||
},
|
||||
{
|
||||
name: '本年',
|
||||
value: 'year',
|
||||
},
|
||||
@@ -32,27 +39,27 @@ const typeTime = ref([
|
||||
{
|
||||
name: '本周',
|
||||
value: 'week',
|
||||
}
|
||||
])
|
||||
},
|
||||
]);
|
||||
const dataLists = ref([
|
||||
{
|
||||
title: '最新呼入电话',
|
||||
iphone:'18394578789'
|
||||
iphone: '18394578789',
|
||||
},
|
||||
{
|
||||
title: '最新呼入电话',
|
||||
iphone:'18394578789'
|
||||
iphone: '18394578789',
|
||||
},
|
||||
{
|
||||
title: '最新呼入电话',
|
||||
iphone:'18394578789'
|
||||
iphone: '18394578789',
|
||||
},
|
||||
{
|
||||
title: '最新呼入电话',
|
||||
iphone:'18394578789'
|
||||
iphone: '18394578789',
|
||||
},
|
||||
])
|
||||
const selectIndex = ref(0)
|
||||
]);
|
||||
const selectIndex = ref(0);
|
||||
|
||||
function handleSelect(index: number) {
|
||||
selectIndex.value = index;
|
||||
@@ -62,7 +69,7 @@ function handleSelect(index:number){
|
||||
.inner {
|
||||
height: calc(100% - 40px);
|
||||
.server-container {
|
||||
color: #A3A4A4;
|
||||
color: #a3a4a4;
|
||||
padding-top: 4%;
|
||||
height: 88%;
|
||||
display: grid;
|
||||
|
||||
@@ -3,7 +3,13 @@
|
||||
<public-title title="体检数据" />
|
||||
<div class="inner">
|
||||
<div class="type-time">
|
||||
<span :class="selectIndex===index?'select':'unSelect'" v-for="(item,index) in typeTime" :key="index" @click="handleSelect(index)">{{item.name}}</span>
|
||||
<span
|
||||
:class="selectIndex === index ? 'select' : 'unSelect'"
|
||||
v-for="(item, index) in typeTime"
|
||||
:key="index"
|
||||
@click="handleSelect(index)"
|
||||
>{{ item.name }}</span
|
||||
>
|
||||
</div>
|
||||
<div class="physical-container">
|
||||
<div class="physical-item">
|
||||
@@ -36,12 +42,13 @@
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue';
|
||||
import PublicTitle from "../publicTitle.vue";
|
||||
import PublicTitle from '../publicTitle.vue';
|
||||
const typeTime = ref([
|
||||
{
|
||||
name: '全部',
|
||||
value: 'all',
|
||||
},{
|
||||
},
|
||||
{
|
||||
name: '本年',
|
||||
value: 'year',
|
||||
},
|
||||
@@ -52,10 +59,10 @@ const typeTime = ref([
|
||||
{
|
||||
name: '本周',
|
||||
value: 'week',
|
||||
}
|
||||
])
|
||||
},
|
||||
]);
|
||||
const physical = ref();
|
||||
const selectIndex = ref(0)
|
||||
const selectIndex = ref(0);
|
||||
function handleSelect(index: number) {
|
||||
selectIndex.value = index;
|
||||
}
|
||||
@@ -73,7 +80,7 @@ function handleSelect(index:number){
|
||||
.physical-item {
|
||||
width: 33%;
|
||||
height: 46%;
|
||||
color: #FFFFFF;
|
||||
color: #ffffff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
span:nth-child(1) {
|
||||
@@ -85,12 +92,16 @@ function handleSelect(index:number){
|
||||
font-size: 22px;
|
||||
}
|
||||
}
|
||||
.physical-item:nth-child(1),.physical-item:nth-child(2),.physical-item:nth-child(3){
|
||||
background: url("../../assets/images/physical-top.png") no-repeat;
|
||||
.physical-item:nth-child(1),
|
||||
.physical-item:nth-child(2),
|
||||
.physical-item:nth-child(3) {
|
||||
background: url('../../assets/images/physical-top.png') no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.physical-item:nth-child(4),.physical-item:nth-child(5),.physical-item:nth-child(6){
|
||||
background: url("../../assets/images/physical-bottom.png") no-repeat;
|
||||
.physical-item:nth-child(4),
|
||||
.physical-item:nth-child(5),
|
||||
.physical-item:nth-child(6) {
|
||||
background: url('../../assets/images/physical-bottom.png') no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,13 @@
|
||||
<div class="inner">
|
||||
<div class="">
|
||||
<div class="type-time">
|
||||
<span :class="selectIndex===index?'select':'unSelect'" v-for="(item,index) in typeTime" :key="index" @click="handleSelect(index)">{{item.name}}</span>
|
||||
<span
|
||||
:class="selectIndex === index ? 'select' : 'unSelect'"
|
||||
v-for="(item, index) in typeTime"
|
||||
:key="index"
|
||||
@click="handleSelect(index)"
|
||||
>{{ item.name }}</span
|
||||
>
|
||||
</div>
|
||||
<div>全部数据</div>
|
||||
</div>
|
||||
@@ -14,33 +20,34 @@
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted } from 'vue';
|
||||
import PublicTitle from "../publicTitle.vue";
|
||||
import PublicTitle from '../publicTitle.vue';
|
||||
import * as echarts from 'echarts';
|
||||
|
||||
const typeTime = ref([
|
||||
{
|
||||
name: '男',
|
||||
value: 'man',
|
||||
},{
|
||||
},
|
||||
{
|
||||
name: '女',
|
||||
value: 'women',
|
||||
},
|
||||
])
|
||||
const selectIndex = ref(0)
|
||||
const chiefChart = ref<HTMLElement>()
|
||||
]);
|
||||
const selectIndex = ref(0);
|
||||
const chiefChart = ref<HTMLElement>();
|
||||
onMounted(() => {
|
||||
let xdata = ['创伤类', '心血管', '心神类', '呼吸类', '消化类', '肿瘤类', '其他'];
|
||||
let ydata = [120, 200, 150, 80, 70, 110, 130];
|
||||
initChart(xdata,ydata)
|
||||
})
|
||||
initChart(xdata, ydata);
|
||||
});
|
||||
function initChart(xData, ydata) {
|
||||
let myChart = echarts.init(chiefChart.value)
|
||||
let myChart = echarts.init(chiefChart.value);
|
||||
let options = {
|
||||
grid: {
|
||||
top: '10%',
|
||||
left: '8%',
|
||||
right: '8%',
|
||||
bottom: '20%'
|
||||
bottom: '20%',
|
||||
},
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
@@ -60,9 +67,9 @@ function initChart(xData,ydata){
|
||||
show: true,
|
||||
lineStyle: {
|
||||
type: 'dashed',
|
||||
color:'rgba(217, 231, 255, 0.2)'
|
||||
}
|
||||
}
|
||||
color: 'rgba(217, 231, 255, 0.2)',
|
||||
},
|
||||
},
|
||||
},
|
||||
series: [
|
||||
{
|
||||
@@ -70,18 +77,15 @@ function initChart(xData,ydata){
|
||||
type: 'bar',
|
||||
barWidth: '20%',
|
||||
itemStyle: {
|
||||
color:new echarts.graphic.LinearGradient(
|
||||
0, 0, 0, 1,
|
||||
[
|
||||
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
||||
{ offset: 0, color: '#008CFF' },
|
||||
{ offset: 1, color: '#33CBFE' }
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
myChart.setOption(options)
|
||||
{ offset: 1, color: '#33CBFE' },
|
||||
]),
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
myChart.setOption(options);
|
||||
window.addEventListener('resize', () => {
|
||||
myChart.resize();
|
||||
});
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue';
|
||||
import PublicTitle from "../publicTitle.vue";
|
||||
import PublicTitle from '../publicTitle.vue';
|
||||
import Dialog from '../dialog/Dialog.vue';
|
||||
import { Vue3SeamlessScroll } from "vue3-seamless-scroll";
|
||||
import { Vue3SeamlessScroll } from 'vue3-seamless-scroll';
|
||||
const policeLists = ref([
|
||||
{
|
||||
name: '陈天宇',
|
||||
@@ -55,15 +55,15 @@
|
||||
name: '陈天宇',
|
||||
abnormal: '压力异常(82)',
|
||||
time: '2023-8-25',
|
||||
}
|
||||
])
|
||||
},
|
||||
]);
|
||||
const open = ref<boolean>(false);
|
||||
|
||||
function handleDialog() {
|
||||
open.value = true
|
||||
open.value = true;
|
||||
}
|
||||
function handleClose() {
|
||||
open.value = false
|
||||
open.value = false;
|
||||
}
|
||||
</script>
|
||||
<style scoped lang="less">
|
||||
@@ -94,7 +94,7 @@
|
||||
display: inline-block;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background: url("../../assets/images/terminal.png") no-repeat;
|
||||
background: url('../../assets/images/terminal.png') no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,18 +1,14 @@
|
||||
<template>
|
||||
<div>
|
||||
<public-title title="基层医疗点远程会诊" />
|
||||
<div class="inner">
|
||||
|
||||
</div>
|
||||
<div class="inner"> </div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
|
||||
import PublicTitle from "../publicTitle.vue";
|
||||
import PublicTitle from '../publicTitle.vue';
|
||||
</script>
|
||||
<style scoped lang="less">
|
||||
.inner {
|
||||
height: calc(100% - 40px);
|
||||
|
||||
}
|
||||
</style>
|
||||
@@ -7,16 +7,16 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted } from 'vue';
|
||||
import * as echarts from 'echarts';
|
||||
import PublicTitle from "../publicTitle.vue";
|
||||
import PublicTitle from '../publicTitle.vue';
|
||||
|
||||
const healthChart = ref<HTMLElement>()
|
||||
const healthChart = ref<HTMLElement>();
|
||||
onMounted(() => {
|
||||
let xdata = ['创伤类', '心血管', '心神类', '呼吸类', '消化类', '肿瘤类', '其他'];
|
||||
let ydata = [120, 200, 150, 80, 70, 110, 130];
|
||||
initChart(xdata,ydata)
|
||||
})
|
||||
initChart(xdata, ydata);
|
||||
});
|
||||
function initChart(xData, ydata) {
|
||||
let myChart = echarts.init(healthChart.value)
|
||||
let myChart = echarts.init(healthChart.value);
|
||||
let options = {
|
||||
title: {
|
||||
text: '总人数\n',
|
||||
@@ -34,7 +34,7 @@ function initChart(xData,ydata){
|
||||
},
|
||||
color: ['#0098FA', '#0CD9B5', '#3B72AD'],
|
||||
tooltip: {
|
||||
trigger: 'item'
|
||||
trigger: 'item',
|
||||
},
|
||||
legend: {
|
||||
bottom: '0',
|
||||
@@ -55,20 +55,20 @@ function initChart(xData,ydata){
|
||||
position: 'inner',
|
||||
formatter: '{d}%',
|
||||
color: '#ffffff',
|
||||
fontSize:16
|
||||
fontSize: 16,
|
||||
},
|
||||
labelLine: {
|
||||
show: false
|
||||
show: false,
|
||||
},
|
||||
data: [
|
||||
{ value: 1048, name: '高危人数' },
|
||||
{ value: 735, name: '中危人数' },
|
||||
{ value: 580, name: '可控人数' },
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
myChart.setOption(options)
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
myChart.setOption(options);
|
||||
window.addEventListener('resize', () => {
|
||||
myChart.resize();
|
||||
});
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
export const tabList = [
|
||||
{
|
||||
name: '所有资源',
|
||||
},
|
||||
{
|
||||
name: '油田医院',
|
||||
},
|
||||
{
|
||||
name: '医疗点',
|
||||
},
|
||||
{
|
||||
name: '救护车',
|
||||
},
|
||||
{
|
||||
name: '合作医院',
|
||||
},
|
||||
{
|
||||
name: '地方医院',
|
||||
},
|
||||
{
|
||||
name: '直升机',
|
||||
},
|
||||
{
|
||||
name: '急救路线',
|
||||
}
|
||||
]
|
||||
export const mapIcon1 = new URL('/@/assets/img/mapIcon1.png', import.meta.url).href
|
||||
export const mapIcon2 = new URL('/@/assets/img/mapIcon2.png', import.meta.url).href
|
||||
export const mapIcon3 = new URL('/@/assets/img/mapIcon3.png', import.meta.url).href
|
||||
export const mapIcon4 = new URL('/@/assets/img/mapIcon4.png', import.meta.url).href
|
||||
export const mapIcon5 = new URL('/@/assets/img/mapIcon5.png', import.meta.url).href
|
||||
export const mapIcon6 = new URL('/@/assets/img/mapIcon6.png', import.meta.url).href
|
||||
|
||||
export const legend1 = new URL('/@/assets/img/legend1.png', import.meta.url).href
|
||||
export const legend2 = new URL('/@/assets/img/legend2.png', import.meta.url).href
|
||||
export const legend3 = new URL('/@/assets/img/legend3.png', import.meta.url).href
|
||||
export const legend4 = new URL('/@/assets/img/legend4.png', import.meta.url).href
|
||||
export const legend5 = new URL('/@/assets/img/legend5.png', import.meta.url).href
|
||||
export const legend6 = new URL('/@/assets/img/legend6.png', import.meta.url).href
|
||||
export const mapIcons = [mapIcon1, mapIcon2, mapIcon3, mapIcon4, mapIcon5, mapIcon6]
|
||||
|
||||
export const legendList = [{img: legend1, text: '油田医院'}, {img: legend2, text: '医疗点'}, {
|
||||
img: legend3,
|
||||
text: '救护车'
|
||||
}, {img: legend4, text: '合作医院'}, {img: legend5, text: '地方医院'}, {img: legend6, text: '直升机'}]
|
||||
@@ -7,18 +7,12 @@
|
||||
</div>
|
||||
</div>
|
||||
<div v-show="currentIndex == list.length - 1" class="route-navigation">
|
||||
<a-form
|
||||
:model="formState"
|
||||
layout="inline"
|
||||
>
|
||||
<a-form-item class="form-item-self" label="起点"
|
||||
>
|
||||
<a-input v-model:value="formState.user">
|
||||
</a-input>
|
||||
<a-form :model="formState" layout="inline">
|
||||
<a-form-item class="form-item-self" label="起点">
|
||||
<a-input v-model:value="formState.user"></a-input>
|
||||
</a-form-item>
|
||||
<a-form-item class="form-item-self" label="终点">
|
||||
<a-input v-model:value="formState.password">
|
||||
</a-input>
|
||||
<a-input v-model:value="formState.password"></a-input>
|
||||
</a-form-item>
|
||||
<a-form-item>
|
||||
<a-button class="reset-btn">清空</a-button>
|
||||
@@ -27,9 +21,7 @@
|
||||
</a-form>
|
||||
<div class="line-container">
|
||||
<div class="has-data">
|
||||
<div class="line-title">
|
||||
全程2小时37分钟(172.15公里)
|
||||
</div>
|
||||
<div class="line-title"> 全程2小时37分钟(172.15公里)</div>
|
||||
<div class="line-content">
|
||||
<div class="start">起点</div>
|
||||
<div class="line-body">
|
||||
@@ -60,16 +52,14 @@
|
||||
<div class="end">终点</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-show="false" class="empty-data">
|
||||
暂无数据
|
||||
</div>
|
||||
<div v-show="false" class="empty-data"> 暂无数据</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="china-map-container"></div>
|
||||
|
||||
<div class="map-legend">
|
||||
<div v-for="(item, i) in legendList" :key="i" class="legend-item">
|
||||
<div><img :src="item.img" alt="" class="legend-img"> {{ item.text }}</div>
|
||||
<div><img :src="item.img" alt="" class="legend-img" /> {{ item.text }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -86,165 +76,111 @@
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import {onMounted, ref} from 'vue'
|
||||
import { onMounted, ref } from 'vue';
|
||||
import * as echarts from 'echarts';
|
||||
import mapJson from '/@/components/chinaMap/json/c'
|
||||
import mapJson from '/@/components/chinaMap/json/c';
|
||||
import { tabList, mapIcons, legendList } from './chinaHooks.ts';
|
||||
|
||||
// import bgImg from '/@/assets/images/china-textur.png'
|
||||
const bgImg = new URL('/@/assets/images/china-textur.jpg', import.meta.url).href
|
||||
const mapIcon1 = new URL('/@/assets/img/mapIcon1.png', import.meta.url).href
|
||||
const mapIcon2 = new URL('/@/assets/img/mapIcon2.png', import.meta.url).href
|
||||
const mapIcon3 = new URL('/@/assets/img/mapIcon3.png', import.meta.url).href
|
||||
const mapIcon4 = new URL('/@/assets/img/mapIcon4.png', import.meta.url).href
|
||||
const mapIcon5 = new URL('/@/assets/img/mapIcon5.png', import.meta.url).href
|
||||
const mapIcon6 = new URL('/@/assets/img/mapIcon6.png', import.meta.url).href
|
||||
const bgImg = new URL('/@/assets/images/china-textur.jpg', import.meta.url).href;
|
||||
|
||||
const legend1 = new URL('/@/assets/img/legend1.png', import.meta.url).href
|
||||
const legend2 = new URL('/@/assets/img/legend2.png', import.meta.url).href
|
||||
const legend3 = new URL('/@/assets/img/legend3.png', import.meta.url).href
|
||||
const legend4 = new URL('/@/assets/img/legend4.png', import.meta.url).href
|
||||
const legend5 = new URL('/@/assets/img/legend5.png', import.meta.url).href
|
||||
const legend6 = new URL('/@/assets/img/legend6.png', import.meta.url).href
|
||||
const mapIcons = [mapIcon1, mapIcon2, mapIcon3, mapIcon4, mapIcon5, mapIcon6]
|
||||
const legendList = [{img: legend1, text: '油田医院'}, {img: legend2, text: '医疗点'}, {
|
||||
img: legend3,
|
||||
text: '救护车'
|
||||
}, {img: legend4, text: '合作医院'}, {img: legend5, text: '地方医院'}, {img: legend6, text: '直升机'}]
|
||||
const formState = ref({
|
||||
user: '',
|
||||
password: "",
|
||||
password: '',
|
||||
});
|
||||
const list = ref([
|
||||
{
|
||||
name: '所有资源',
|
||||
isChecked: true
|
||||
},
|
||||
{
|
||||
name: '油田医院',
|
||||
isChecked: false
|
||||
},
|
||||
{
|
||||
name: '医疗点',
|
||||
isChecked: false
|
||||
},
|
||||
{
|
||||
name: '救护车',
|
||||
isChecked: false
|
||||
},
|
||||
{
|
||||
name: '合作医院',
|
||||
isChecked: false
|
||||
},
|
||||
{
|
||||
name: '地方医院',
|
||||
isChecked: false
|
||||
},
|
||||
{
|
||||
name: '直升机',
|
||||
isChecked: false
|
||||
},
|
||||
{
|
||||
name: '急救路线',
|
||||
isChecked: false
|
||||
}
|
||||
])
|
||||
const list = ref(tabList);
|
||||
const currentIndex = ref(0);
|
||||
const icons = ref([{
|
||||
type: "scatter",
|
||||
const icons = ref([
|
||||
{
|
||||
type: 'scatter',
|
||||
zlevel: 100,
|
||||
coordinateSystem: "geo",
|
||||
coordinateSystem: 'geo',
|
||||
//自定义图片的 位置(lng, lat)
|
||||
data: [{ name: '西安', value: ['108.88', '34.40'], id: 'xian' }],
|
||||
//自定义图片的 大小
|
||||
symbolSize: [25, 63],
|
||||
//自定义图片的 路径
|
||||
// symbol: 'image://http://192.168.1.7:9200/src/assets/img/tree.png', // 图片 URL
|
||||
// symbol: 'image://https://img2.baidu.com/it/u=1568770988,2090980470&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=567', // 图片 URL
|
||||
symbol: 'image://' + mapIcon1, // 图片 URL
|
||||
symbol: 'image://' + mapIcons[0], // 图片 URL
|
||||
},
|
||||
{
|
||||
type: "scatter",
|
||||
type: 'scatter',
|
||||
zlevel: 100,
|
||||
coordinateSystem: "geo",
|
||||
coordinateSystem: 'geo',
|
||||
//自定义图片的 位置(lng, lat)
|
||||
data: [{ name: '太原', value: [112.55, 37.98], id: 'taiyuan' }],
|
||||
//自定义图片的 大小
|
||||
symbolSize: [25, 63],
|
||||
symbol: 'image://' + mapIcon2, // 图片 URL
|
||||
}])
|
||||
symbol: 'image://' + mapIcons[1], // 图片 URL
|
||||
},
|
||||
]);
|
||||
|
||||
function changeTab(i) {
|
||||
let x = Math.random() + 3 - Math.random() - i;
|
||||
let y = Math.random() - 2 + Math.random() + i
|
||||
let y = Math.random() - 2 + Math.random() + i;
|
||||
const o = {
|
||||
type: "scatter",
|
||||
type: 'scatter',
|
||||
zlevel: 100,
|
||||
coordinateSystem: "geo",
|
||||
coordinateSystem: 'geo',
|
||||
//自定义图片的 位置(lng, lat)
|
||||
data: [{ name: '太原', value: [112.55 + Math.random() + x, 37.98 + Math.random() + y], id: 'taiyuan' }],
|
||||
//自定义图片的 大小
|
||||
symbolSize: [25, 63],
|
||||
symbol: 'image://' + mapIcons[Math.floor(Math.random() * 6)], // 图片 URL
|
||||
}
|
||||
icons.value = []
|
||||
icons.value.push(o)
|
||||
currentIndex.value = i
|
||||
list.value = list.value.map(item => {
|
||||
item.isChecked = false
|
||||
return item
|
||||
})
|
||||
};
|
||||
icons.value = [];
|
||||
icons.value.push(o);
|
||||
currentIndex.value = i;
|
||||
let myChart = echarts.init(document.querySelector('.china-map-container'));
|
||||
initMap(myChart)
|
||||
|
||||
initMap(myChart);
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
console.log('reload')
|
||||
console.log('reload');
|
||||
let myChart = echarts.init(document.querySelector('.china-map-container'));
|
||||
echarts.registerMap('china', mapJson);
|
||||
initMap(myChart);
|
||||
})
|
||||
});
|
||||
|
||||
function initMap(myChart) {
|
||||
let option = {
|
||||
tooltip: {
|
||||
show: false,
|
||||
formatter: "{b0}: {c0}"
|
||||
formatter: '{b0}: {c0}',
|
||||
},
|
||||
geo: [
|
||||
{
|
||||
map: 'china',
|
||||
zlevel: 3,
|
||||
aspectScale: .8, //长宽比
|
||||
aspectScale: 0.8, //长宽比
|
||||
zoom: 1.1,
|
||||
roam: false,
|
||||
top: '60',
|
||||
left: 'center',
|
||||
itemStyle: {
|
||||
areaColor: "#173a58",
|
||||
shadowColor: "#173a58",
|
||||
areaColor: '#173a58',
|
||||
shadowColor: '#173a58',
|
||||
shadowOffsetX: 0,
|
||||
shadowOffsetY: 5,
|
||||
borderWidth: 6, //外部边框
|
||||
borderColor: "#6ccffe",
|
||||
}
|
||||
borderColor: '#6ccffe',
|
||||
},
|
||||
},
|
||||
{
|
||||
map: 'china',
|
||||
zlevel: 2,
|
||||
aspectScale: .8, //长宽比
|
||||
aspectScale: 0.8, //长宽比
|
||||
zoom: 1.1,
|
||||
roam: false,
|
||||
top: '60',
|
||||
left: 'center',
|
||||
itemStyle: {
|
||||
areaColor: "#1e2c38",
|
||||
shadowColor: "#1e2c38",
|
||||
areaColor: '#1e2c38',
|
||||
shadowColor: '#1e2c38',
|
||||
shadowOffsetX: 0,
|
||||
shadowOffsetY: 10,
|
||||
borderWidth: 6, //外部边框
|
||||
borderColor: "#384d61",
|
||||
}
|
||||
borderColor: '#384d61',
|
||||
},
|
||||
},
|
||||
],
|
||||
series: [
|
||||
@@ -254,7 +190,7 @@ function initMap(myChart) {
|
||||
type: 'map',
|
||||
zlevel: 9,
|
||||
zoom: 1.1,
|
||||
aspectScale: .8, //长宽比
|
||||
aspectScale: 0.8, //长宽比
|
||||
hoverAnimation: false,
|
||||
silent: false,
|
||||
top: '60',
|
||||
@@ -265,9 +201,9 @@ function initMap(myChart) {
|
||||
height: 31,
|
||||
lineHeight: 31,
|
||||
textStyle: {
|
||||
color: "#fff",
|
||||
color: '#fff',
|
||||
fontSize: 13,
|
||||
marginLeft: 5
|
||||
marginLeft: 5,
|
||||
},
|
||||
},
|
||||
itemStyle: {
|
||||
@@ -275,13 +211,13 @@ function initMap(myChart) {
|
||||
areaColor: {
|
||||
type: 'pattern',
|
||||
image: bgImg,
|
||||
repeat: 'no-repeat'
|
||||
repeat: 'no-repeat',
|
||||
},
|
||||
borderColor: "#359de5",
|
||||
borderColor: '#359de5',
|
||||
borderWidth: 2, //内部边框
|
||||
},
|
||||
},
|
||||
...icons.value
|
||||
...icons.value,
|
||||
],
|
||||
};
|
||||
// myChart.value.clear()
|
||||
@@ -295,8 +231,8 @@ function initMap(myChart) {
|
||||
}
|
||||
});
|
||||
window.addEventListener('resize', () => {
|
||||
myChart.resize()
|
||||
})
|
||||
myChart.resize();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
@@ -325,15 +261,15 @@ function initMap(myChart) {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #29F1FA;
|
||||
background: url("/@/assets/img/tab-default.png") no-repeat;
|
||||
color: #29f1fa;
|
||||
background: url('/@/assets/img/tab-default.png') no-repeat;
|
||||
background-size: 100%;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
//background-position: -5px -10px;
|
||||
&.active {
|
||||
color: #fff;
|
||||
background: url("/@/assets/img/tab-active.png") no-repeat;
|
||||
background: url('/@/assets/img/tab-active.png') no-repeat;
|
||||
background-size: 100%;
|
||||
}
|
||||
}
|
||||
@@ -346,7 +282,7 @@ function initMap(myChart) {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #002E64;
|
||||
background: #002e64;
|
||||
border-radius: 6px;
|
||||
position: absolute;
|
||||
top: 40px;
|
||||
@@ -355,15 +291,15 @@ function initMap(myChart) {
|
||||
|
||||
:deep(.form-item-self) {
|
||||
label {
|
||||
color: #29F1FA;
|
||||
color: #29f1fa;
|
||||
}
|
||||
|
||||
.ant-input {
|
||||
width: 280px;
|
||||
color: #d6d9e0;
|
||||
background: #2A4164;
|
||||
background: #2a4164;
|
||||
border-radius: 2px 2px 2px 2px;
|
||||
border: 1px solid #1B7EF2;
|
||||
border: 1px solid #1b7ef2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -371,19 +307,19 @@ function initMap(myChart) {
|
||||
width: 64px;
|
||||
height: 32px;
|
||||
border-radius: 5px;
|
||||
color: #45A2FF;
|
||||
background: #002E64;
|
||||
border: 1px solid #45A2FF;
|
||||
color: #45a2ff;
|
||||
background: #002e64;
|
||||
border: 1px solid #45a2ff;
|
||||
}
|
||||
|
||||
.search-btn {
|
||||
margin-left: 10px;
|
||||
width: 88px;
|
||||
height: 32px;
|
||||
color: #EFEFEF;
|
||||
background: #45A2FF;
|
||||
color: #efefef;
|
||||
background: #45a2ff;
|
||||
border-radius: 5px;
|
||||
border-color: #45A2FF;
|
||||
border-color: #45a2ff;
|
||||
}
|
||||
|
||||
.line-container {
|
||||
@@ -395,9 +331,9 @@ function initMap(myChart) {
|
||||
min-height: 200px;
|
||||
max-height: 473px;
|
||||
overflow: auto;
|
||||
background: #2A4164;
|
||||
background: #2a4164;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #1B7EF2;
|
||||
border: 1px solid #1b7ef2;
|
||||
|
||||
.line-title {
|
||||
margin-bottom: 9px;
|
||||
@@ -423,7 +359,7 @@ function initMap(myChart) {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
background: #1478F5;
|
||||
background: #1478f5;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -441,7 +377,7 @@ function initMap(myChart) {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
background: #1478F5;
|
||||
background: #1478f5;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -461,9 +397,7 @@ function initMap(myChart) {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.china-map-container {
|
||||
@@ -503,12 +437,12 @@ function initMap(myChart) {
|
||||
width: 340px;
|
||||
height: 80px;
|
||||
display: flex;
|
||||
color: #FFFFFF;
|
||||
color: #ffffff;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #00071B;
|
||||
box-shadow: inset 0 0 40px 0 #1B7EF2;
|
||||
background: #00071b;
|
||||
box-shadow: inset 0 0 40px 0 #1b7ef2;
|
||||
border-radius: 4px;
|
||||
|
||||
.num {
|
||||
@@ -524,5 +458,3 @@ function initMap(myChart) {
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
+24270
-96964
File diff suppressed because it is too large
Load Diff
+25429
-101205
File diff suppressed because it is too large
Load Diff
@@ -1,11 +1,5 @@
|
||||
<template>
|
||||
<a-modal
|
||||
v-model:visible="props.openVis"
|
||||
:title="props.title"
|
||||
:width="props.width"
|
||||
:maskClosable="true"
|
||||
@cancel="handleCancel"
|
||||
>
|
||||
<a-modal v-model:visible="props.openVis" :title="props.title" :width="props.width" :maskClosable="true" @cancel="handleCancel">
|
||||
<slot name="container"></slot>
|
||||
<template #footer></template>
|
||||
</a-modal>
|
||||
@@ -13,20 +7,20 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { defineProps, defineEmits } from 'vue';
|
||||
const emit = defineEmits(['close'])
|
||||
const emit = defineEmits(['close']);
|
||||
const props = defineProps({
|
||||
width: {
|
||||
type: String
|
||||
type: String,
|
||||
},
|
||||
openVis: {
|
||||
type:Boolean
|
||||
type: Boolean,
|
||||
},
|
||||
title: {
|
||||
type:String
|
||||
}
|
||||
})
|
||||
type: String,
|
||||
},
|
||||
});
|
||||
function handleCancel() {
|
||||
emit('close')
|
||||
emit('close');
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -36,7 +30,12 @@
|
||||
background: linear-gradient(270deg, rgba(106, 112, 124, 0.4) 0%, rgba(106, 112, 124, 0) 70%, rgba(106, 112, 124, 0) 100%);
|
||||
opacity: 1;
|
||||
border: 1px solid;
|
||||
border-image: linear-gradient(270deg, rgba(217.0000022649765, 231.00000143051147, 255, 0.5), rgba(217.0000022649765, 231.00000143051147, 255, 0)) 1 1;
|
||||
border-image: linear-gradient(
|
||||
270deg,
|
||||
rgba(217.0000022649765, 231.00000143051147, 255, 0.5),
|
||||
rgba(217.0000022649765, 231.00000143051147, 255, 0)
|
||||
)
|
||||
1 1;
|
||||
&:before {
|
||||
position: absolute;
|
||||
content: '';
|
||||
@@ -44,13 +43,14 @@
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-color: #45A2FF;
|
||||
background-color: #45a2ff;
|
||||
}
|
||||
}
|
||||
.ant-modal-title {
|
||||
color: #ffffff !important;
|
||||
}
|
||||
.ant-modal-header,.ant-modal-content{
|
||||
.ant-modal-header,
|
||||
.ant-modal-content {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
.ant-modal-body {
|
||||
@@ -59,5 +59,4 @@
|
||||
:deep(.anticon) {
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
</style>
|
||||
@@ -3,7 +3,7 @@
|
||||
<span>{{ props.title }}</span>
|
||||
<div>
|
||||
<span v-if="isShowMore" style="font-size: 14px; font-weight: 100; cursor: pointer; margin-right: 3px" @click="clickMore">更多></span>
|
||||
<img src="../assets/img/point.png" alt="">
|
||||
<img src="../assets/img/point.png" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -11,16 +11,16 @@
|
||||
const props = defineProps({
|
||||
title: {
|
||||
type: String,
|
||||
default: () => ''
|
||||
default: () => '',
|
||||
},
|
||||
isShowMore: {
|
||||
type: Boolean,
|
||||
default: () => false
|
||||
}
|
||||
})
|
||||
const emit = defineEmits(['clickMore'])
|
||||
default: () => false,
|
||||
},
|
||||
});
|
||||
const emit = defineEmits(['clickMore']);
|
||||
function clickMore() {
|
||||
emit('clickMore')
|
||||
emit('clickMore');
|
||||
}
|
||||
</script>
|
||||
<style scoped lang="less">
|
||||
@@ -32,9 +32,14 @@ function clickMore() {
|
||||
line-height: 40px;
|
||||
background: linear-gradient(90deg, rgba(106, 112, 124, 0.4) 0%, rgba(106, 112, 124, 0) 70%, rgba(106, 112, 124, 0) 100%);
|
||||
opacity: 1;
|
||||
border-top: 1px solid #6A707C;
|
||||
border-bottom: 1px solid #6A707C;
|
||||
border-image: linear-gradient(90deg, rgba(217.0000022649765, 231.00000143051147, 255, 0.5), rgba(217.0000022649765, 231.00000143051147, 255, 0)) 1 1;
|
||||
border-top: 1px solid #6a707c;
|
||||
border-bottom: 1px solid #6a707c;
|
||||
border-image: linear-gradient(
|
||||
90deg,
|
||||
rgba(217.0000022649765, 231.00000143051147, 255, 0.5),
|
||||
rgba(217.0000022649765, 231.00000143051147, 255, 0)
|
||||
)
|
||||
1 1;
|
||||
color: #ffffff;
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
@@ -48,7 +53,7 @@ function clickMore() {
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-color: #45A2FF;
|
||||
background-color: #45a2ff;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
+33
-30
@@ -4,12 +4,8 @@
|
||||
<div class="title-d-left">
|
||||
{{ dayTimeO }}
|
||||
</div>
|
||||
<div class="title-d-middle">
|
||||
应急就医服务中心
|
||||
</div>
|
||||
<div class="title-d-right">
|
||||
累计运行时间:{{dayTimeT}}
|
||||
</div>
|
||||
<div class="title-d-middle"> 应急就医服务中心 </div>
|
||||
<div class="title-d-right"> 累计运行时间:{{ dayTimeT }} </div>
|
||||
</div>
|
||||
<div class="body-d">
|
||||
<div class="body-d-left">
|
||||
@@ -30,15 +26,15 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import {ref} from "vue";
|
||||
import OneL from "../components/body-d-left/oneL.vue";
|
||||
import TwoL from "../components/body-d-left/twoL.vue";
|
||||
import ThreeL from "../components/body-d-left/threeL.vue";
|
||||
import OneR from "../components/body-d-right/oneR.vue";
|
||||
import TwoR from "../components/body-d-right/twoR.vue";
|
||||
import ThreeR from "../components/body-d-right/threeR.vue";
|
||||
import ChinaMap from '../components/chinaMap/chinaMap.vue'
|
||||
import * as dayjs from "dayjs";
|
||||
import { ref } from 'vue';
|
||||
import OneL from '../components/body-d-left/oneL.vue';
|
||||
import TwoL from '../components/body-d-left/twoL.vue';
|
||||
import ThreeL from '../components/body-d-left/threeL.vue';
|
||||
import OneR from '../components/body-d-right/oneR.vue';
|
||||
import TwoR from '../components/body-d-right/twoR.vue';
|
||||
import ThreeR from '../components/body-d-right/threeR.vue';
|
||||
import ChinaMap from '../components/chinaMap/chinaMap.vue';
|
||||
import * as dayjs from 'dayjs';
|
||||
const dayTimeO = ref();
|
||||
const dayTimeT = ref();
|
||||
|
||||
@@ -46,22 +42,27 @@ function init() {
|
||||
getTime();
|
||||
setInterval(() => {
|
||||
getTime();
|
||||
}, 1000)
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
function getTime() {
|
||||
dayTimeO.value = dayjs().format('YYYY年MM月DD日 HH时mm分ss秒')
|
||||
dayTimeT.value = dayjs().diff(dayjs('2020-01-01'), 'day')+'天'
|
||||
+getZero(dayjs().diff(dayjs(dayjs().format('YYYY-MM-DD')+' 00:00:00'), 'hours'))+'时'
|
||||
+getZero(dayjs().diff(dayjs(dayjs().format('YYYY-MM-DD HH')+':00:00'), 'minutes'))+'分'
|
||||
+getZero(dayjs().diff(dayjs(dayjs().format('YYYY-MM-DD HH:mm')+':00'), 'seconds'))+'秒';
|
||||
dayTimeO.value = dayjs().format('YYYY年MM月DD日 HH时mm分ss秒');
|
||||
dayTimeT.value =
|
||||
dayjs().diff(dayjs('2020-01-01'), 'day') +
|
||||
'天' +
|
||||
getZero(dayjs().diff(dayjs(dayjs().format('YYYY-MM-DD') + ' 00:00:00'), 'hours')) +
|
||||
'时' +
|
||||
getZero(dayjs().diff(dayjs(dayjs().format('YYYY-MM-DD HH') + ':00:00'), 'minutes')) +
|
||||
'分' +
|
||||
getZero(dayjs().diff(dayjs(dayjs().format('YYYY-MM-DD HH:mm') + ':00'), 'seconds')) +
|
||||
'秒';
|
||||
}
|
||||
|
||||
function getZero(num: any) {
|
||||
if (num < 10) {
|
||||
return '0' + num;
|
||||
}
|
||||
return num
|
||||
return num;
|
||||
}
|
||||
|
||||
init();
|
||||
@@ -70,7 +71,7 @@ init();
|
||||
.outer {
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
background: url("../assets/images/bg.png") no-repeat;
|
||||
background: url('../assets/images/bg.png') no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
@@ -79,17 +80,18 @@ init();
|
||||
line-height: 80px;
|
||||
display: flex;
|
||||
padding-bottom: 9px;
|
||||
background: url("../assets/images/top-title.png") no-repeat;
|
||||
background: url('../assets/images/top-title.png') no-repeat;
|
||||
background-size: 100% 100%;
|
||||
|
||||
.title-d-left, .title-d-middle, .title-d-right {
|
||||
.title-d-left,
|
||||
.title-d-middle,
|
||||
.title-d-right {
|
||||
font-size: 27px;
|
||||
color: #ffffff;
|
||||
line-height: 60px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
> :nth-child(1) {
|
||||
width: 29%;
|
||||
}
|
||||
@@ -122,12 +124,13 @@ init();
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.body-d-left, .body-d-right {
|
||||
.body-d-left,
|
||||
.body-d-right {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.body-d-left, .body-d-right {
|
||||
|
||||
.body-d-left,
|
||||
.body-d-right {
|
||||
> :nth-child(n) {
|
||||
width: 100%;
|
||||
height: calc(100% / 3);
|
||||
@@ -142,7 +145,7 @@ init();
|
||||
|
||||
.bottom-d {
|
||||
height: 40px;
|
||||
background: url("../assets/images/bottom-b.png") no-repeat;
|
||||
background: url('../assets/images/bottom-b.png') no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user