修改订单信息
|
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 devBaseURL = 'http://192.168.0.169:9002/'
|
||||||
// const proBaseURL = 'http://192.168.0.169:9002/'
|
// const proBaseURL = 'http://192.168.0.169:9002/'
|
||||||
// const devBaseURL = 'http://218.75.46.166:8889/'
|
// 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 BASE_URL = process.env.NODE_ENV === 'development' ? devBaseURL : proBaseURL
|
||||||
|
|
||||||
export const TIMEOUT = 5000
|
export const TIMEOUT = 5000
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<div id="center">
|
<div id="center">
|
||||||
<div class="center-left center-bg">
|
<div class="center-left center-bg">
|
||||||
<div class="center-top d-flex">
|
<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>
|
</div>
|
||||||
<orderEcharts class="order-box" :orderData="orderData" />
|
<orderEcharts class="order-box" :orderData="orderData" />
|
||||||
</div>
|
</div>
|
||||||
@ -50,6 +50,7 @@ export default {
|
|||||||
orderData: {},
|
orderData: {},
|
||||||
yearData: {},
|
yearData: {},
|
||||||
intervalId: null, // 初始化定时器ID,防止undefined
|
intervalId: null, // 初始化定时器ID,防止undefined
|
||||||
|
orderTitleSrc: require('../../assets/image/img/order/order-26.png'),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
directives: {
|
directives: {
|
||||||
@ -71,8 +72,10 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.yearorderData();
|
||||||
this.setData(); // 首次加载立即请求
|
this.setData(); // 首次加载立即请求
|
||||||
this.startInterval(); // 开启定时器(取消注释)
|
this.startInterval(); // 开启定时器(取消注释)
|
||||||
|
|
||||||
},
|
},
|
||||||
// 组件销毁时清理定时器,防止内存泄漏
|
// 组件销毁时清理定时器,防止内存泄漏
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
@ -82,9 +85,15 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
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() {
|
startInterval() {
|
||||||
const _this = this;
|
const _this = this;
|
||||||
const time = 5 * 60 * 1000;
|
const time = 5 * 60 * 1000;
|
||||||
// 先清理旧定时器(避免重复创建)
|
// 先清理旧定时器(避免重复创建)
|
||||||
if (this.intervalId) {
|
if (this.intervalId) {
|
||||||
clearInterval(this.intervalId);
|
clearInterval(this.intervalId);
|
||||||
@ -143,7 +152,7 @@ export default {
|
|||||||
width: 895px;
|
width: 895px;
|
||||||
|
|
||||||
.center-top {
|
.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%;
|
background-size: 100% 100%;
|
||||||
width: 895px;
|
width: 895px;
|
||||||
height: 56px;
|
height: 56px;
|
||||||
|
|||||||