NEZ-3459 fix: 增加状态 state =14
This commit is contained in:
@@ -326,11 +326,14 @@ export default {
|
|||||||
},
|
},
|
||||||
suspendedStr (status) { // 10进制转为2进制 分别给对应的状态
|
suspendedStr (status) { // 10进制转为2进制 分别给对应的状态
|
||||||
if (!status || status === 1 || status == 0) { return '' }
|
if (!status || status === 1 || status == 0) { return '' }
|
||||||
const arr = status.toString(2).split('')
|
let arr = status.toString(2).split('')
|
||||||
while (arr.length < 4) {
|
while (arr.length < 4) {
|
||||||
arr.unshift('0')
|
arr.unshift('0')
|
||||||
}
|
}
|
||||||
arr.pop()
|
arr.pop()
|
||||||
|
if (status == 14) {
|
||||||
|
arr = [0, 0, 0]
|
||||||
|
}
|
||||||
let str = ''
|
let str = ''
|
||||||
arr.forEach((item, index) => {
|
arr.forEach((item, index) => {
|
||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user