|
@ -26,8 +26,8 @@ export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
echartnum: this.chartnum, |
|
|
echartnum: this.chartnum, |
|
|
flipNum: [0, 0, 0, 0, 0, 0, 0, 0], |
|
|
|
|
|
ikey: [1, 2, 3, 4, 5, 6, 7, 8] |
|
|
|
|
|
|
|
|
flipNum: [0, 0, 0, 0, 0, 0, 0], |
|
|
|
|
|
ikey: [1, 2, 3, 4, 5, 6, 7] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
@ -55,14 +55,15 @@ export default { |
|
|
}, |
|
|
}, |
|
|
toOrderNum(num) { |
|
|
toOrderNum(num) { |
|
|
num = num.toString() // 数字变成字符串 |
|
|
num = num.toString() // 数字变成字符串 |
|
|
if (num.length < 8) { // 如未满位数,添加"0"补位 |
|
|
|
|
|
|
|
|
if (num.length < 7) { // 如未满位数,添加"0"补位 |
|
|
num = '0' + num |
|
|
num = '0' + num |
|
|
this.toOrderNum(num) // 递归添加"0"补位 |
|
|
this.toOrderNum(num) // 递归添加"0"补位 |
|
|
} else if (num.length === 8) { // 数中加入逗号 |
|
|
|
|
|
|
|
|
} else if (num.length === 7) { // 数中加入逗号 |
|
|
this.flipNum = num.split('') // 将其便变成数据 |
|
|
this.flipNum = num.split('') // 将其便变成数据 |
|
|
} else { |
|
|
|
|
|
alert('显示异常') |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
// else { |
|
|
|
|
|
// alert('显示异常') |
|
|
|
|
|
// } |
|
|
}, |
|
|
}, |
|
|
setNumberTransform() { |
|
|
setNumberTransform() { |
|
|
const numberItems = document.getElementsByClassName(this.tnum) |
|
|
const numberItems = document.getElementsByClassName(this.tnum) |
|
|