fix: 账户状态统一修改。
This commit is contained in:
@@ -163,24 +163,16 @@ function dictStr(val, arr) {
|
||||
return str
|
||||
}
|
||||
function getStatusClass(status, statusText) {
|
||||
// 优先根据状态文字判断
|
||||
if (statusText && statusText.includes('正常')) {
|
||||
return 'status-normal'
|
||||
}
|
||||
if (statusText && (statusText.includes('销卡') || statusText.includes('销户'))) {
|
||||
return 'status-error'
|
||||
}
|
||||
|
||||
// 备用:根据状态值判断
|
||||
const statusStr = String(status)
|
||||
if (statusStr === '2') {
|
||||
return 'status-normal'
|
||||
}
|
||||
if (statusStr === '0' || statusStr === '3' || statusStr === '4') {
|
||||
return 'status-error'
|
||||
}
|
||||
|
||||
return 'status-default'
|
||||
// 根据状态值判断
|
||||
const statusStr = String(status)
|
||||
if (statusStr === '1') {
|
||||
return 'status-normal'
|
||||
}
|
||||
if (statusStr === '5') {
|
||||
return 'status-error'
|
||||
}
|
||||
|
||||
return 'status-default'
|
||||
}
|
||||
function searchBlur() {
|
||||
pageNum.value = 1
|
||||
|
||||
Reference in New Issue
Block a user