Prechádzať zdrojové kódy

流量包为空字段显示---

wxy 4 mesiacov pred
rodič
commit
c7acae165c
1 zmenil súbory, kde vykonal 3 pridanie a 2 odobranie
  1. 3 2
      src/views/supplier/trafficList/index.vue

+ 3 - 2
src/views/supplier/trafficList/index.vue

@@ -48,7 +48,7 @@ import { onMounted, ref } from "vue";
 import { useRoute } from "vue-router";
 import { columns } from "./config";
 import { getDataPlanList } from "@/api/path/lotCard.api"
-
+import {sanitizeObject} from '@/utils/utils'
 const searchForm = ref({
   "status": "",
   "periodType": "",
@@ -72,8 +72,9 @@ const intData = async () => {
   const { data } = await getDataPlanList(param)
   dataSource.value = (data?.records || []).map((item, index) => {
     const total = item.dataTotal == -1 ? '无限流量' : item.dataTotal + "MB"
+    const dataItem = sanitizeObject({...item})
     return {
-      ...item,
+      ...dataItem,
       total: total,
       id: index + 1
     }