|
|
|
@ -38,15 +38,15 @@ |
|
|
|
</view> |
|
|
|
<view class="flex-row justify-between equal-division_1"> |
|
|
|
<view class="flex-col items-center equal-division-item"> |
|
|
|
<text class="text_13">20</text> |
|
|
|
<text class="text_13">{{ deviceInfo.totalNum }}</text> |
|
|
|
<text class="text_14">设备总数(台)</text> |
|
|
|
</view> |
|
|
|
<view class="flex-col items-center equal-division-item"> |
|
|
|
<text class="text_13">14</text> |
|
|
|
<text class="text_13">{{ deviceInfo.workingNum }}</text> |
|
|
|
<text class="text_14">工作中(台)</text> |
|
|
|
</view> |
|
|
|
<view class="flex-col items-center equal-division-item"> |
|
|
|
<text class="text_13">6</text> |
|
|
|
<text class="text_13">{{ deviceInfo.freeNum }}</text> |
|
|
|
<text class="text_14">空闲(台)</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
@ -113,6 +113,7 @@ |
|
|
|
import { exit, go2, loginGo2 } from '@/utils/hook.js' |
|
|
|
import { fddEnterpriseStatus, fsAuditStatus, orderStatusEnum, enterpriseType } from '@/enums/index.js' |
|
|
|
import { getVerifyUrl, getFsCredit, getBaseInfo, getFeisuanUrl, cancelAccount } from '@/apis/commonApi.js' |
|
|
|
import { getDeviceStatistics } from '@/apis/mineApi' |
|
|
|
|
|
|
|
export default { |
|
|
|
data() { |
|
|
|
@ -124,6 +125,11 @@ export default { |
|
|
|
usedCreditLine: 0, |
|
|
|
creditLine: 0 |
|
|
|
}, |
|
|
|
deviceInfo: { |
|
|
|
totalNum: 0, |
|
|
|
workingNum: 0, |
|
|
|
freeNum: 0 |
|
|
|
}, |
|
|
|
fsAuditStatus: Object.freeze(fsAuditStatus), |
|
|
|
orderStatusEnum: Object.freeze(orderStatusEnum) |
|
|
|
} |
|
|
|
@ -254,6 +260,12 @@ export default { |
|
|
|
}) |
|
|
|
this.hasLogin && getBaseInfo({}, true) |
|
|
|
!this.hasLogin && (this.fsInfo.status = -1) |
|
|
|
this.hasLogin && |
|
|
|
getDeviceStatistics().then((res) => { |
|
|
|
if (res) { |
|
|
|
this.deviceInfo = res |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|