|
@@ -367,8 +367,8 @@ export default {
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
- countEnterNum: '4567892111',
|
|
|
- orderNum: ['1', '2', '3', '4', '5', '1', '1'],
|
|
|
+ countEnterNum: '4567891',
|
|
|
+ orderNum: ['0', '0', '0', '0', '0', '0', '0'],
|
|
|
statisticalData: [
|
|
|
{
|
|
|
id: 1,
|
|
@@ -711,20 +711,23 @@ export default {
|
|
|
},
|
|
|
visualMap: {
|
|
|
type: 'continuous',
|
|
|
+ text: ['高', '低'],
|
|
|
min: 0,
|
|
|
max: 1000,
|
|
|
- text: ['高', '低'],
|
|
|
seriesIndex: [0, 2],
|
|
|
dimension: 0,
|
|
|
realtime: false,
|
|
|
left: 0,
|
|
|
- itemWidth: 18,
|
|
|
- itemHeight: 100,
|
|
|
+ itemWidth: 8,
|
|
|
+ itemHeight: 93,
|
|
|
calculable: true,
|
|
|
inRange: {
|
|
|
- color: ['rgba(159,205,253,0.50)', '#60ACFC'],
|
|
|
+ color: ['#124BAA', '#75DDFF'],
|
|
|
symbolSize: [100, 100]
|
|
|
},
|
|
|
+ textStyle: {
|
|
|
+ color: '#fff'
|
|
|
+ },
|
|
|
outOfRange: {
|
|
|
color: ['#eeeeee'],
|
|
|
symbolSize: [100, 100]
|
|
@@ -1051,7 +1054,15 @@ export default {
|
|
|
},
|
|
|
toOrderNum (num) {
|
|
|
num = num.toString()
|
|
|
- this.orderNum = num.split('')
|
|
|
+ if (num.length < 6) {
|
|
|
+ num = '0' + num // 如未满八位数,添加"0"补位
|
|
|
+ this.toOrderNum(num) // 递归添加"0"补位
|
|
|
+ } else if (num.length >= 6) {
|
|
|
+ this.orderNum = num.split('') // 将其便变成数据,渲染至滚动数组
|
|
|
+ } else {
|
|
|
+ // 订单总量数字超过八位显示异常
|
|
|
+ this.$message.warning('总量数字过大')
|
|
|
+ }
|
|
|
},
|
|
|
setNumberTransform () {
|
|
|
const numberItems = this.$refs.numberItem // 拿到数字的ref,计算元素数量
|
|
@@ -1409,7 +1420,7 @@ export default {
|
|
|
color: #ffffff;
|
|
|
}
|
|
|
::v-deep .progress {
|
|
|
- min-width: 330px;
|
|
|
+ min-width: 300px;
|
|
|
margin: 0 36px;
|
|
|
.el-progress-bar {
|
|
|
padding-right: 0;
|