Эх сурвалжийг харах

修改卡清单列表字段

wxy 4 сар өмнө
parent
commit
5967722f24

+ 5 - 5
src/views/lotCard/cardList/config.js

@@ -7,8 +7,8 @@ export const columns = [
     // { title: 'SIM货币余额', dataIndex: 'moneyBalances', align: 'center', ellipsis:true  },
     { title: 'SIM生成日期', dataIndex: 'createTime', align: 'center', ellipsis: true },
     // { title: '支付方式', dataIndex: 'payType', align: 'center', ellipsis: true },
-    { title: 'SIM状态', dataIndex: 'accountStatus', align: 'center', ellipsis: true },
-    { title: '预警状态', dataIndex: 'accountStatus', align: 'center', ellipsis: true },
+    { title: 'SIM状态', dataIndex: 'iccidStatus', align: 'center', ellipsis: true },
+    { title: '预警状态', dataIndex: '', align: 'center', ellipsis: true },
     { title: '已使用总流量', dataIndex: 'dataUsageTotal', slotName: 'dataUsageTotal', align: 'center', ellipsis: true },
     { title: '语音呼入分钟数', dataIndex: 'voiceMtTotal', align: 'center', ellipsis: true },
     { title: '语音呼出分钟数', dataIndex: 'voiceMoTotal', align: 'center', ellipsis: true },
@@ -21,10 +21,10 @@ export const columns = [
     { title: '卡套餐', dataIndex: 'tariffName', align: 'center', ellipsis: true },
     { title: '预警状态', dataIndex: 'forewarningStatus', align: 'center', width: 200, ellipsis: true },
     { title: '历史用量', dataIndex: 'HistoricalUsage', align: 'center', width: 200, ellipsis: true },
-    { title: '池名称/编号', dataIndex: 'poolNum',  slotName: 'poolNum', align: 'center', width: 200, ellipsis: true },
+    { title: '池名称/编号', dataIndex: 'poolNum', slotName: 'poolNum', align: 'center', width: 200, ellipsis: true },
     { title: '沉默期到期时间', dataIndex: 'SilenceEndtime', align: 'center', width: 200, ellipsis: true },
-    { title: '已用(套餐流量)', dataIndex: 'usedFlowrate', align: 'center', width: 200, ellipsis: true },
-    { title: '可用(套餐流量)', dataIndex: 'usableFlowrate', align: 'center', width: 200, ellipsis: true },
+    { title: '已用(套餐流量)', dataIndex: 'dataUsage', align: 'center', width: 200, ellipsis: true },
+    { title: '可用(套餐流量)', dataIndex: 'dataTotal', align: 'center', width: 200, ellipsis: true },
     { title: '已用(加油包流量)', dataIndex: 'usedBg', align: 'center', width: 200, ellipsis: true },
     { title: '可用(加油包流量)', dataIndex: 'usableBg', align: 'center', width: 200, ellipsis: true },
     {

+ 7 - 10
src/views/lotCard/cardList/index.vue

@@ -96,24 +96,21 @@ const intData = async () => {
   const { data } = await cardInfoList(param)
   dataSource.value = (data.records || []).map((item,index) => {
     const payType = item.payType == 0 ? 'Prepay' : 'Postpay';
-    // const dataPackage = item.Info.dataPackage.map(res => res.productName).join(',');
     const soure = soureName.find(val => val.value == item.source)?.label
-    const accountStatus = accountStatusName.find(val => val.value == item.Info.accountStatus)?.label
+    // const accountStatus = accountStatusName.find(val => val.value == item.Info.accountStatus)?.label
+    const iccidStatus = accountStatusName.find(val => val.value == item.iccidStatus)?.label
     return {
       ...item,
       ...item.Info,
       payType: payType,
-      // dataPackageName: dataPackage,
       sourceName: soure,
-      accountStatus,
+      iccidStatus,
       forewarningStatus:'正常',
       HistoricalUsage:'10/G',
-      poolNum:"-",
-      SilenceEndtime:'2025-2-3',
-      usedFlowrate:'14G',
-      usableFlowrate:'3G',
-      usedBg:'50MB',
-      usableBg:'140MB',
+      SilenceEndtime:'一个月',
+      usedBg:'0',
+      usableBg:'0',
+      ...item.dataPackage[0]
     }
   })
   pagination.value.total = data.total