修改订单信息
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
BIN
mes-ui/mes-echarts/src/assets/image/img/order/order-27.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
mes-ui/mes-echarts/src/assets/image/img/order/order-28.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
mes-ui/mes-echarts/src/assets/image/img/order/order-29.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
mes-ui/mes-echarts/src/assets/image/img/order/order-30.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
mes-ui/mes-echarts/src/assets/image/img/order/order-31.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
mes-ui/mes-echarts/src/assets/image/img/order/order-32.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
mes-ui/mes-echarts/src/assets/image/img/order/order-33.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
mes-ui/mes-echarts/src/assets/image/img/order/order-34.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
mes-ui/mes-echarts/src/assets/image/img/order/order-35.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
@ -9,7 +9,7 @@ const devBaseURL = 'http://218.75.46.166:8889'
|
||||
// const devBaseURL = 'http://192.168.0.169:9002/'
|
||||
// const proBaseURL = 'http://192.168.0.169:9002/'
|
||||
// const devBaseURL = 'http://218.75.46.166:8889/'
|
||||
// const proBaseURL = 'http://218.75.46.166:8889/'
|
||||
const proBaseURL = 'http://218.75.46.166:8889/'
|
||||
export const BASE_URL = process.env.NODE_ENV === 'development' ? devBaseURL : proBaseURL
|
||||
|
||||
export const TIMEOUT = 5000
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<div id="center">
|
||||
<div class="center-left center-bg">
|
||||
<div class="center-top d-flex">
|
||||
<img src="../../assets/image/img/order-title.png" alt="" class="order-title" />
|
||||
<img :src="orderTitleSrc" alt="" class="order-title" />
|
||||
</div>
|
||||
<orderEcharts class="order-box" :orderData="orderData" />
|
||||
</div>
|
||||
@ -50,6 +50,7 @@ export default {
|
||||
orderData: {},
|
||||
yearData: {},
|
||||
intervalId: null, // 初始化定时器ID,防止undefined
|
||||
orderTitleSrc: require('../../assets/image/img/order/order-26.png'),
|
||||
};
|
||||
},
|
||||
directives: {
|
||||
@ -71,8 +72,10 @@ export default {
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.yearorderData();
|
||||
this.setData(); // 首次加载立即请求
|
||||
this.startInterval(); // 开启定时器(取消注释)
|
||||
|
||||
},
|
||||
// 组件销毁时清理定时器,防止内存泄漏
|
||||
beforeDestroy() {
|
||||
@ -82,9 +85,15 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
yearorderData() {
|
||||
const currentYear = new Date().getFullYear();
|
||||
let yearSuffix = '35';
|
||||
yearSuffix = String(currentYear).slice(-2);
|
||||
this.orderTitleSrc = require(`../../assets/image/img/order/order-${yearSuffix}.png`);
|
||||
},
|
||||
startInterval() {
|
||||
const _this = this;
|
||||
const time = 5 * 60 * 1000;
|
||||
const time = 5 * 60 * 1000;
|
||||
// 先清理旧定时器(避免重复创建)
|
||||
if (this.intervalId) {
|
||||
clearInterval(this.intervalId);
|
||||
@ -143,7 +152,7 @@ export default {
|
||||
width: 895px;
|
||||
|
||||
.center-top {
|
||||
background: url('../../assets/image/img/order-bg.png') no-repeat;
|
||||
background: url('../../assets/image/img/order/order-bg.png') no-repeat;
|
||||
background-size: 100% 100%;
|
||||
width: 895px;
|
||||
height: 56px;
|
||||
|
||||