NEZ-3459 fix: 增加状态 state =14

This commit is contained in:
zyh
2024-05-13 11:05:52 +08:00
parent e85c556d84
commit e706f60cf8

View File

@@ -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) {