فهرست منبع

增加客户端流量池

吴sir 3 ماه پیش
والد
کامیت
57dc53b631

+ 5 - 0
src/api/path/flowPool.api.js

@@ -48,3 +48,8 @@ export  function  updateWarning(data){
 export function updateFlowPoolData(data){
     return service.post('/admin/platform/trafficPoolListRecord',data)
 }
+
+// 客户端流量池
+export function updateUserFloter(data){
+    return service.get('/admin/platform/customerTrafficPool',data)
+}

+ 4 - 4
src/views/financialManagement/accountBalance/index.vue

@@ -223,10 +223,10 @@ const columns = [
     title: "状态", slotName: "status", align: "center",
     ellipsis: true,
   },
-  {
-    title: "操作", slotName: "detail", align: "center", align: "center",
-    ellipsis: true,
-  },
+  // {
+  //   title: "操作", slotName: "detail", align: "center", align: "center",
+  //   ellipsis: true,
+  // },
 ];
 const tableData = ref([]);
 const pagination = ref({

+ 1 - 1
src/views/flowPool/customerFlowPool/config.js

@@ -11,7 +11,7 @@ export const columns = [
     { title: window.$t('flowPool.source'), dataIndex: 'sourceName', align: 'center', width: 200 },
     { title: window.$t('flowPool.tariffName'), dataIndex: 'simTariffName', align: 'center', width: 200 },
     { title: window.$t('flowPool.ActivatedName'), dataIndex: 'Activated', align: 'center', width: 200 },
-    { title: window.$t('flowPool.HaveBeenUsedName'), dataIndex: 'HaveBeenUsed', align: 'center', width: 200 },
+    { title: window.$t('flowPool.poolSize'), dataIndex: 'HaveBeenUsed', align: 'center', width: 200 },
     // { title: window.$t('flowPool.cardRariffName'), dataIndex: 'cardRariffName', align: 'center', width: 200 },
     // { title: window.$t('flowPool.cardNum'), dataIndex: 'cardNum', align: 'center', width: 200 },
     // { title: window.$t('flowPool.totalFlow'), dataIndex: 'totalFlow', align: 'center', width: 200 },

+ 4 - 8
src/views/flowPool/customerFlowPool/index.vue

@@ -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()