|
@@ -3,28 +3,35 @@
|
|
|
<div class="container">
|
|
|
<!-- 搜索条件区 -->
|
|
|
<div class="search-section">
|
|
|
- <Search :SearchForm="SearchForm" @query="intData" @reset="reset"/>
|
|
|
+ <Search :SearchForm="SearchForm" @query="intData" @reset="reset" />
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="add_card">
|
|
|
+ <a-button type="primary">导卡</a-button>
|
|
|
</div>
|
|
|
|
|
|
<a-table row-key="iccid" :data="dataSource" :columns="columns" :pagination="false" :scroll="{ x: 'auto' }">
|
|
|
- <template #poolNum="{ record }">
|
|
|
- <span>{{ record.poolName }}</span>
|
|
|
- <br />
|
|
|
- <span>{{ record.poolId }}</span>
|
|
|
- </template>
|
|
|
<template #dataUsageTotal="{ record }">
|
|
|
<span>{{ record.dataUsageTotal }}MB</span>
|
|
|
</template>
|
|
|
+ <template #iccidStatus="{ record }">
|
|
|
+ <a-tag color="#7bc616" v-if="record.iccidStatus=='正常'">{{ record.iccidStatus }}</a-tag>
|
|
|
+ <a-tag v-else>{{ record.iccidStatus }}</a-tag>
|
|
|
+ </template>
|
|
|
+ <template #DatapackageStatus="{ record }">
|
|
|
+ <a-tag color="#7bc616" v-if="record.DatapackageStatus=='已激活'">{{ record.DatapackageStatus }}</a-tag>
|
|
|
+ <a-tag v-else>{{ record.DatapackageStatus }}</a-tag>
|
|
|
+ </template>
|
|
|
<template #id="{ record }">
|
|
|
<!-- 查看流量消耗 -->
|
|
|
<a class="a-link" href="javascript:;" style="margin-right: 1rem" @click="handletrafficUseDialog(record)">详情</a>
|
|
|
+ <!-- 解绑卡和绑定卡 -->
|
|
|
</template>
|
|
|
-
|
|
|
</a-table>
|
|
|
|
|
|
<div class="pagtion">
|
|
|
- <a-pagination :total="pagination.total" v-model:current="pagination.current " show-total show-jumper show-page-size @change="evChangePage"
|
|
|
- @page-size-change="pagesChange" />
|
|
|
+ <a-pagination :total="pagination.total" v-model:current="pagination.current" show-total show-jumper show-page-size
|
|
|
+ @change="evChangePage" @page-size-change="pagesChange" />
|
|
|
</div>
|
|
|
<!-- 查看流量消耗 -->
|
|
|
<trafficUseDialog ref="trafficUseDialogRef" @submit="intData()" />
|
|
@@ -35,11 +42,11 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { onMounted, ref, getCurrentInstance, h } from "vue";
|
|
|
-import { columns,SearchForm } from "./config";
|
|
|
+import { columns, SearchForm } from "./config";
|
|
|
import { cardInfoList } from "@/api/path/lotCard.api"
|
|
|
import trafficUseDialog from "./trafficUseDialog.vue";
|
|
|
import { Getdictionary } from '@/mixins/index.js'
|
|
|
-import {sanitizeObject} from '@/utils/utils'
|
|
|
+import { sanitizeObject } from '@/utils/utils'
|
|
|
import Add from './add.vue'
|
|
|
import Search from '@/components/Search/index.vue'
|
|
|
const { proxy } = getCurrentInstance()
|
|
@@ -61,7 +68,7 @@ const trafficUseDialogRef = ref()
|
|
|
|
|
|
|
|
|
const intData = async (item) => {
|
|
|
- if(item){
|
|
|
+ if (item) {
|
|
|
SearchFormList.value = item
|
|
|
}
|
|
|
const param = {
|
|
@@ -80,15 +87,15 @@ const intData = async (item) => {
|
|
|
SilenceEndtime: '一个月',
|
|
|
usedBg: '0',
|
|
|
usableBg: '0',
|
|
|
- DatapackageStatus:item.dataPackage[0]?.status,
|
|
|
- dataUsage: item.dataPackage[0]?.dataUsage?item.dataPackage[0]?.dataUsage:'0' + '/MB',
|
|
|
- dataTotal: item.dataPackage[0]?.dataTotal?item.dataPackage[0]?.dataTotal:'0' + '/MB',
|
|
|
+ DatapackageStatus: item.dataPackage[0]?.status,
|
|
|
+ dataUsage: item.dataPackage[0]?.dataUsage ? item.dataPackage[0]?.dataUsage : '0' + '/MB',
|
|
|
+ dataTotal: item.dataPackage[0]?.dataTotal ? item.dataPackage[0]?.dataTotal : '0' + '/MB',
|
|
|
}
|
|
|
})
|
|
|
pagination.value.total = data.total
|
|
|
}
|
|
|
|
|
|
-const reset = (item)=>{
|
|
|
+const reset = (item) => {
|
|
|
pagination.value.current = 1
|
|
|
SearchFormList.value = item
|
|
|
intData()
|
|
@@ -131,11 +138,8 @@ onMounted(() => {
|
|
|
margin-top: 30px;
|
|
|
}
|
|
|
|
|
|
-.head-title-right {
|
|
|
- .m-r-10 {
|
|
|
- margin-right: 10px;
|
|
|
- }
|
|
|
-
|
|
|
+.add_card {
|
|
|
+ margin-bottom: 1rem;
|
|
|
}
|
|
|
|
|
|
.search-section {
|