Compare commits

..

No commits in common. "main" and "feature-20241205" have entirely different histories.

10 changed files with 10779 additions and 31934 deletions

View File

@ -6,5 +6,5 @@ module.exports = {
NODE_ENV: '"production"', NODE_ENV: '"production"',
//post用当前域名 //post用当前域名
// API_ROOT: '"http://' + testUrl + '/iot"' // API_ROOT: '"http://' + testUrl + '/iot"'
API_ROOT: '"/dev-api"', // API_ROOT: '/',
} }

View File

@ -8,8 +8,8 @@
content="width=device-width, initial-scale=1.0, user-scalable=0" content="width=device-width, initial-scale=1.0, user-scalable=0"
/> />
<link rel="shortcut icon" href="./static/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="./static/favicon.ico" type="image/x-icon" />
<script async src="https://api.map.baidu.com/api?v=2.0&ak=k5PrSzhP6vMtyNSpzSNMARYVF4Fm7FYL"></script> <script async src="https://api.map.baidu.com/api?v=2.0&ak=cClgLBaLgGUdQDilX9dGvieL"></script>
<script src="https://api.map.baidu.com/api?type=webgl&v=2.0&ak=k5PrSzhP6vMtyNSpzSNMARYVF4Fm7FYL"></script> <script src="https://api.map.baidu.com/api?type=webgl&v=2.0&ak=cClgLBaLgGUdQDilX9dGvieL"></script>
<script type="text/javascript" src="//api.map.baidu.com/library/TrackAnimation/src/TrackAnimation_min.js"></script> <script type="text/javascript" src="//api.map.baidu.com/library/TrackAnimation/src/TrackAnimation_min.js"></script>
<title>智慧仓储管理平台</title> <title>智慧仓储管理平台</title>
</head> </head>

21826
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@
</div> </div>
</template> </template>
<script> <script>
// import autofit from 'autofit.js' import autofit from 'autofit.js'
export default { export default {
name: 'app', name: 'app',
created() { created() {
@ -19,12 +19,12 @@ export default {
document.getElementsByTagName('head')[0].appendChild(link) document.getElementsByTagName('head')[0].appendChild(link)
}, },
mounted() { mounted() {
// autofit.init({ autofit.init({
// designHeight: 1080, // designHeight: 1080, //
// designWidth: 1920, // designWidth: 1920, //
// renderDom: '#app', renderDom: '#app',
// resize: true, resize: true,
// }) })
}, },
watch: { watch: {

View File

@ -5,9 +5,9 @@ import axios from 'axios'
axios.defaults.timeout = 30000 axios.defaults.timeout = 30000
// 默认配置 // 默认配置
axios.defaults.baseURL = process.env.API_ROOT // axios.defaults.baseURL = process.env.API_ROOT;
// axios.defaults.baseURL = 'http://192.168.0.56:21627/bigScreen' // axios.defaults.baseURL = 'http://192.168.0.56:21627/bigScreen'
// axios.defaults.baseURL = 'screen' axios.defaults.baseURL = 'screen'
// axios.defaults.baseURL = 'http://localhost:8080/screen' // axios.defaults.baseURL = 'http://localhost:8080/screen'
axios.interceptors.request.use( axios.interceptors.request.use(

View File

@ -312,20 +312,6 @@ export default {
itemStyle: { normal: { areaColor: '#0A2B7B' } }, itemStyle: { normal: { areaColor: '#0A2B7B' } },
}, },
] ]
for (let i = 0; i < splitList.length; i++) {
let geoCoord = geoCoordMap[splitList[i].name]
if (geoCoord) {
splitList[i].value = geoCoord.concat(splitList[i].value)
}
}
mapData.forEach((e) => {
splitList.forEach((v) => {
if (e.name == v.name) {
v.count = e.a
}
})
})
let imgUrl = require('../../assets/img/myImage/tankuang.png') let imgUrl = require('../../assets/img/myImage/tankuang.png')
let echartOption = { let echartOption = {
geo: [ geo: [

View File

@ -135,11 +135,11 @@
fontSize: "12", fontSize: "12",
}, },
formatter: function (value) { formatter: function (value) {
// if (value >= 10000) { if (value >= 10000) {
// return (value / 10000).toLocaleString() +''; return (value / 10000).toLocaleString() +'万';
// } else { } else {
return value.toLocaleString(); return value.toLocaleString();
// } }
}, },
}, },
data: this.valueList, data: this.valueList,

View File

@ -247,9 +247,4 @@ export default {
padding: 0; padding: 0;
font-size: 18px; font-size: 18px;
} }
/* 隐藏百度地图GL左下角logo */
.anchorBL {
display: none;
}
</style> </style>

View File

@ -1,12 +1,16 @@
<template> <template>
<div class="screen-container" id="myContainer" > <div class="screen-container">
<div class="data-v-container" :key="key"> <div class="data-v-container" :key="key">
<div class="title-bg"> <div class="title-bg">
<div class="btn-content"> <div class="btn-content">
<el-button <el-button
size="medium" size="medium"
type="primary" type="primary"
@click="goBack" @click="
() => {
$router.go(-1)
}
"
>返回</el-button >返回</el-button
> >
<el-button size="medium" type="primary" @click="goBackstage" <el-button size="medium" type="primary" @click="goBackstage"
@ -129,7 +133,6 @@
</template> </template>
<script> <script>
import autofit from 'autofit.js'
import CenterFold from '../../components/home/centerFold.vue' import CenterFold from '../../components/home/centerFold.vue'
import CountryMap from '../../components/home/countryMap.vue' import CountryMap from '../../components/home/countryMap.vue'
import LeftOne from '../../components/home/leftOne.vue' import LeftOne from '../../components/home/leftOne.vue'
@ -171,40 +174,35 @@ export default {
// //
queryParams: null, queryParams: null,
dateTimeString: '', dateTimeString: '',
autofitInstance: null, // autofit
} }
}, },
mounted() {},
mounted() { mounted() {
this.initAutofit();
this.getCurrentDateTime() this.getCurrentDateTime()
setInterval(this.getCurrentDateTime, 1000) setInterval(this.getCurrentDateTime, 1000)
this.getMapSelect(this.maType); // let that = this
// AMap.plugin('AMap.CitySearch', function () {
// var citySearch = new AMap.CitySearch()
// citySearch.getLocalCity(function (status, result) {
// if (status === 'complete' && result.info === 'OK') {
// AMap.plugin('AMap.Weather', function () {
// var weather = new AMap.Weather();
// weather.getLive('', function (err, data) {
// // console.log(err, data);
// that.weatherData = data
// that.weatherUrl = data.weather == '' ? ONE : data.weather == '' ? TWO : data.weather == '' ? THREE : ''
// });
// })
// }
// })
// })
// this.getWeather()
this.getMapSelect(this.maType)
// getMaintenanceWarningApi().then((res) => { // getMaintenanceWarningApi().then((res) => {
// this.transformList = res.data // this.transformList = res.data
// }) // })
}, },
methods: { methods: {
goBack(){
autofit.off();
this.$router.go(-1);
},
// handleWheel(event) {
// console.log('111111111', event)
// if (event.ctrlKey) {
// event.preventDefault();
// }
// },
initAutofit() {
autofit.init({
designHeight: 1080,
designWidth: 1920,
renderDom: '#myContainer',
resize: true,
});
},
openDrawer(query) { openDrawer(query) {
this.queryParams = query this.queryParams = query
console.log(query, 'c参数') console.log(query, 'c参数')

20784
yarn.lock

File diff suppressed because it is too large Load Diff