|
@@ -0,0 +1,113 @@
|
|
|
|
+<!-- 流量列表 -->
|
|
|
|
+<template>
|
|
|
|
+ <div class="container">
|
|
|
|
+ <div class="head-title">
|
|
|
|
+ <span>{{ route.meta.title }} </span>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- 搜索条件区 -->
|
|
|
|
+ <div class="search-section">
|
|
|
|
+ <a-form :model="searchForm" layout="inline">
|
|
|
|
+ <a-form-item field="iccid" label="ICCID">
|
|
|
|
+ <a-input v-model="searchForm.iccid" :placeholder="$t('lotCard.please')+$t('lotCard.iccid')" allow-clear />
|
|
|
|
+ </a-form-item>
|
|
|
|
+ <a-form-item field="hImsi" label="HIMSI">
|
|
|
|
+ <a-input v-model="searchForm.cardNumber" :placeholder="$t('lotCard.please')+$t('lotCard.himsi')" allow-clear />
|
|
|
|
+ </a-form-item>
|
|
|
|
+ <a-form-item>
|
|
|
|
+ <a-space>
|
|
|
|
+ <a-button type="primary" @click="handleSearch">{{$t('form.Search')}}</a-button>
|
|
|
|
+ <a-button @click="resetSearch">{{$t('form.Reset')}}</a-button>
|
|
|
|
+ </a-space>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-form>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <a-table :data="dataSource" :columns="columns" :pagination="pagination" :scroll="{ x: 'auto' }" @page-change="evChangePage" @page-size-change="evChangePageSize" >
|
|
|
|
+ <template #id="{ record }">
|
|
|
|
+ <!-- <a class="a-link" href="javascript:;" style="margin-right: 1rem" @click="evEdit(record)">编辑</a>
|
|
|
|
+ <a-popconfirm content="确认删除该信息?" ok-text="确定" cancel-text="取消" @ok="evDelete(record.id)">
|
|
|
|
+ <a href="javascript:;" class="a-link">删除</a>
|
|
|
|
+ </a-popconfirm> -->
|
|
|
|
+ </template>
|
|
|
|
+
|
|
|
|
+ </a-table>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+
|
|
|
|
+ <script setup>
|
|
|
|
+ import { onMounted, ref, h } from "vue";
|
|
|
|
+ import { useRoute } from "vue-router";
|
|
|
|
+ import { columns } from "./config";
|
|
|
|
+ import { Message, Notification } from '@arco-design/web-vue'
|
|
|
|
+ import { packageInfo } from "@/api/path/lotCard.api"
|
|
|
|
+ const searchForm = ref({
|
|
|
|
+ "iccid": "",
|
|
|
|
+ "imsi" : "",
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ const dataSource = ref([]);
|
|
|
|
+ const route = useRoute();
|
|
|
|
+ const pagination = ref({
|
|
|
|
+ total: 0,
|
|
|
|
+ pageSize: 10,
|
|
|
|
+ current: 1,
|
|
|
|
+})
|
|
|
|
+
|
|
|
|
+const cardStatusOptions = [
|
|
|
|
+ { label: '正常', value: 'normal' },
|
|
|
|
+ { label: '停机', value: 'suspended' },
|
|
|
|
+];
|
|
|
|
+
|
|
|
|
+ const intData = async () => {
|
|
|
|
+ const param = {
|
|
|
|
+ current: pagination.value.current,
|
|
|
|
+ size: 9999999,
|
|
|
|
+ ...searchForm.value,
|
|
|
|
+ }
|
|
|
|
+ const { data } = await packageInfo(param)
|
|
|
|
+ dataSource.value = data || []
|
|
|
|
+ pagination.value.total = dataSource.value.length
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+const evChangePage = (page) => {
|
|
|
|
+ pagination.value.current = page
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const evChangePageSize = (pageSize) => {
|
|
|
|
+ pagination.value.pageSize = pageSize
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+onMounted(() => {
|
|
|
|
+ intData()
|
|
|
|
+})
|
|
|
|
+ </script>
|
|
|
|
+
|
|
|
|
+ <style scoped lang="less">
|
|
|
|
+
|
|
|
|
+.search-section {
|
|
|
|
+ margin-top: 20px;
|
|
|
|
+ margin-bottom: 20px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+ .container {
|
|
|
|
+ .head-title {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ }
|
|
|
|
+ .form-row {
|
|
|
|
+ display: flex;
|
|
|
|
+ .form-row-col{
|
|
|
|
+ width: 25%;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ .form-row-label{
|
|
|
|
+ width: 120px;
|
|
|
|
+ text-align: right;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ </style>
|
|
|
|
+
|