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