|
@@ -30,9 +30,6 @@
|
|
|
</div>
|
|
|
<a-table row-key="id" :data="dataSource" :columns="columns" :pagination="pagination" :scroll="{ x: 'auto' }"
|
|
|
@page-change="evChangePage">
|
|
|
- <template #id="{ record }">
|
|
|
- </template>
|
|
|
-
|
|
|
</a-table>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -41,7 +38,7 @@
|
|
|
import { onMounted, ref, reactive, getCurrentInstance } from "vue";
|
|
|
import { useRoute } from "vue-router";
|
|
|
import { columns } from "./config";
|
|
|
-import { lotCatdList } from "@/api/path/flowPool.api"
|
|
|
+import { updateUserFloter } from "@/api/path/flowPool.api"
|
|
|
import { Getdictionary } from '@/mixins/index.js'
|
|
|
import {useI18n} from 'vue-i18n'
|
|
|
const {t} = useI18n();
|
|
@@ -68,11 +65,11 @@ const intData = async () => {
|
|
|
size: pagination.value.pageSize,
|
|
|
...searchForm.value,
|
|
|
}
|
|
|
- const { data } = await lotCatdList(param)
|
|
|
- dataSource.value = (data.records || []).map((item, index) => {
|
|
|
+ const { data } = await updateUserFloter(param)
|
|
|
+ dataSource.value = (data || []).map((item, index) => {
|
|
|
const trafficPoolStatus = trafficList.value.find(val => val.value == item.status)?.label
|
|
|
const sourceName = sourceList.value.find(val => val.value == item.source)?.label
|
|
|
- const Activated = item.cardAct + '/' + item.iccids?.length
|
|
|
+ const Activated = item.cardAct + '/' + item.iccidCount
|
|
|
const HaveBeenUsed = item.size + item.sizeType
|
|
|
return {
|
|
|
...item,
|
|
@@ -103,7 +100,6 @@ const handleDictValue = async () => {
|
|
|
trafficList.value = await Getdictionary('trafficPacketStatus')
|
|
|
}
|
|
|
|
|
|
-
|
|
|
onMounted(async () => {
|
|
|
await handleDictValue()
|
|
|
await intData()
|