fix: 账户状态统一修改。
This commit is contained in:
@@ -261,13 +261,16 @@ function selectType(item) {
|
||||
isShow.value = true
|
||||
}
|
||||
function getStatusClass(status, statusText) {
|
||||
if (statusText && statusText.includes('正常')) {
|
||||
return 'status-normal'
|
||||
}
|
||||
if (statusText && (statusText.includes('暂停') || statusText.includes('销户'))) {
|
||||
return 'status-default'
|
||||
}
|
||||
return 'status-default'
|
||||
// 根据状态值判断
|
||||
const statusStr = String(status)
|
||||
if (statusStr === '1') {
|
||||
return 'status-normal'
|
||||
}
|
||||
if (statusStr === '5') {
|
||||
return 'status-error'
|
||||
}
|
||||
|
||||
return 'status-default'
|
||||
}
|
||||
|
||||
function handleDelete(item) {
|
||||
|
||||
@@ -106,20 +106,12 @@ const data = reactive({
|
||||
const {detailInfo} = toRefs(data)
|
||||
|
||||
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 === '1') {
|
||||
return 'status-normal'
|
||||
}
|
||||
if (statusStr === '0' || statusStr === '2') {
|
||||
if (statusStr === '5') {
|
||||
return 'status-error'
|
||||
}
|
||||
|
||||
|
||||
@@ -294,13 +294,16 @@ function selectType(item) {
|
||||
isShow.value = true
|
||||
}
|
||||
function getStatusClass(status, statusText) {
|
||||
if (statusText && statusText.includes('正常')) {
|
||||
return 'status-normal'
|
||||
}
|
||||
if (statusText && (statusText.includes('暂停') || statusText.includes('销户'))) {
|
||||
return 'status-default'
|
||||
}
|
||||
return 'status-default'
|
||||
// 根据状态值判断
|
||||
const statusStr = String(status)
|
||||
if (statusStr === '1') {
|
||||
return 'status-normal'
|
||||
}
|
||||
if (statusStr === '5') {
|
||||
return 'status-error'
|
||||
}
|
||||
|
||||
return 'status-default'
|
||||
}
|
||||
|
||||
function handleDelete(item) {
|
||||
|
||||
@@ -132,20 +132,12 @@ function formatCardCode(code) {
|
||||
}
|
||||
|
||||
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') {
|
||||
if (statusStr === '1') {
|
||||
return 'status-normal'
|
||||
}
|
||||
if (statusStr === '0' || statusStr === '3' || statusStr === '4') {
|
||||
if (statusStr === '5') {
|
||||
return 'status-error'
|
||||
}
|
||||
|
||||
|
||||
@@ -218,24 +218,16 @@ function formatCardCode(code) {
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
@@ -88,20 +88,12 @@ const data = reactive({
|
||||
const {detailInfo} = toRefs(data)
|
||||
|
||||
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') {
|
||||
if (statusStr === '1') {
|
||||
return 'status-normal'
|
||||
}
|
||||
if (statusStr === '0' || statusStr === '3' || statusStr === '4') {
|
||||
if (statusStr === '5') {
|
||||
return 'status-error'
|
||||
}
|
||||
|
||||
|
||||
@@ -196,12 +196,15 @@ function settingCancel() {
|
||||
settingPickShow.value = false
|
||||
}
|
||||
function getStatusClass(status, statusText) {
|
||||
if (statusText && statusText.includes('正常')) {
|
||||
// 根据状态值判断
|
||||
const statusStr = String(status)
|
||||
if (statusStr === '1') {
|
||||
return 'status-normal'
|
||||
}
|
||||
if (statusText && (statusText.includes('销卡') || statusText.includes('销户'))) {
|
||||
if (statusStr === '5') {
|
||||
return 'status-error'
|
||||
}
|
||||
|
||||
return 'status-default'
|
||||
}
|
||||
|
||||
|
||||
@@ -96,24 +96,16 @@ onLoad((option) => {
|
||||
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'
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -106,13 +106,16 @@ onLoad((option) => {
|
||||
return str
|
||||
}
|
||||
function getStatusClass(status, statusText) {
|
||||
if (statusText && statusText.includes('正常')) {
|
||||
return 'status-normal'
|
||||
}
|
||||
if (statusText && (statusText.includes('销卡') || statusText.includes('销户'))) {
|
||||
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'
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -164,12 +164,15 @@ function settingCancel() {
|
||||
settingPickShow.value = false
|
||||
}
|
||||
function getStatusClass(status, statusText) {
|
||||
if (statusText && statusText.includes('正常')) {
|
||||
// 根据状态值判断
|
||||
const statusStr = String(status)
|
||||
if (statusStr === '1') {
|
||||
return 'status-normal'
|
||||
}
|
||||
if (statusText && (statusText.includes('销卡') || statusText.includes('销户'))) {
|
||||
if (statusStr === '5') {
|
||||
return 'status-error'
|
||||
}
|
||||
|
||||
return 'status-default'
|
||||
}
|
||||
|
||||
|
||||
@@ -67,20 +67,12 @@ const data = reactive({
|
||||
const {detailInfo} = toRefs(data)
|
||||
|
||||
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') {
|
||||
if (statusStr === '1') {
|
||||
return 'status-normal'
|
||||
}
|
||||
if (statusStr === '0' || statusStr === '3' || statusStr === '4') {
|
||||
if (statusStr === '5') {
|
||||
return 'status-error'
|
||||
}
|
||||
|
||||
|
||||
@@ -166,24 +166,16 @@ function settingCancel() {
|
||||
settingPickShow.value = false
|
||||
}
|
||||
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 dictStr(val, arr) {
|
||||
|
||||
@@ -121,20 +121,12 @@ const data = reactive({
|
||||
const {detailInfo} = toRefs(data)
|
||||
|
||||
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') {
|
||||
if (statusStr === '1') {
|
||||
return 'status-normal'
|
||||
}
|
||||
if (statusStr === '0' || statusStr === '3' || statusStr === '4') {
|
||||
if (statusStr === '5') {
|
||||
return 'status-error'
|
||||
}
|
||||
|
||||
|
||||
@@ -179,12 +179,15 @@ function settingCancel() {
|
||||
settingPickShow.value = false
|
||||
}
|
||||
function getStatusClass(status, statusText) {
|
||||
if (statusText && statusText.includes('正常')) {
|
||||
// 根据状态值判断
|
||||
const statusStr = String(status)
|
||||
if (statusStr === '1') {
|
||||
return 'status-normal'
|
||||
}
|
||||
if (statusText && (statusText.includes('销卡') || statusText.includes('销户'))) {
|
||||
if (statusStr === '5') {
|
||||
return 'status-error'
|
||||
}
|
||||
|
||||
return 'status-default'
|
||||
}
|
||||
|
||||
|
||||
@@ -97,13 +97,16 @@ onLoad((option) => {
|
||||
return str
|
||||
}
|
||||
function getStatusClass(status, statusText) {
|
||||
if (statusText && statusText.includes('正常')) {
|
||||
return 'status-normal'
|
||||
}
|
||||
if (statusText && (statusText.includes('销卡') || statusText.includes('销户'))) {
|
||||
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'
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -153,12 +153,15 @@ function settingCancel() {
|
||||
settingPickShow.value = false
|
||||
}
|
||||
function getStatusClass(status, statusText) {
|
||||
if (statusText && statusText.includes('正常')) {
|
||||
// 根据状态值判断
|
||||
const statusStr = String(status)
|
||||
if (statusStr === '1') {
|
||||
return 'status-normal'
|
||||
}
|
||||
if (statusText && (statusText.includes('销卡') || statusText.includes('销户'))) {
|
||||
if (statusStr === '5') {
|
||||
return 'status-error'
|
||||
}
|
||||
|
||||
return 'status-default'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user