|
@@ -1,207 +1,103 @@
|
|
|
<template>
|
|
|
- <div class="container">
|
|
|
- <div class="head-title">
|
|
|
- <span>{{ route.meta.title }} </span>
|
|
|
+ <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>
|
|
|
- <div class="form-row">
|
|
|
- <div class="form-row-col">
|
|
|
- <span class="form-row-label">ICCID</span>
|
|
|
- <span class="form-row-input">
|
|
|
- <a-input
|
|
|
- v-model="formData.username"
|
|
|
- style="margin: 0 0.6rem"
|
|
|
- placeholder="请输入ICCID"
|
|
|
- />
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div class="form-row-col">
|
|
|
- <span class="form-row-label">IMSI</span>
|
|
|
- <span class="form-row-input">
|
|
|
- <a-input
|
|
|
- v-model="formData.username"
|
|
|
- style="margin: 0 0.6rem"
|
|
|
- placeholder="请输入IMSI"
|
|
|
- />
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div class="form-row-col">
|
|
|
- <span class="form-row-label">IMEI</span>
|
|
|
- <span class="form-row-input">
|
|
|
- <a-input
|
|
|
- v-model="formData.username"
|
|
|
- style="margin: 0 0.6rem"
|
|
|
- placeholder="请输入IMEI"
|
|
|
- />
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div class="form-row-col">
|
|
|
- <span class="form-row-label">MSISDN</span>
|
|
|
- <span class="form-row-input">
|
|
|
- <a-input
|
|
|
- v-model="formData.username"
|
|
|
- style="margin: 0 0.6rem"
|
|
|
- placeholder="请输入MSISDN"
|
|
|
- />
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-row">
|
|
|
- <div class="form-row-col">
|
|
|
- <span class="form-row-label">ICCID</span>
|
|
|
- <span class="form-row-input">
|
|
|
- <a-input
|
|
|
- v-model="formData.username"
|
|
|
- style="margin: 0 0.6rem"
|
|
|
- placeholder="请输入ICCID"
|
|
|
- />
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div class="form-row-col">
|
|
|
- <span class="form-row-label">IMSI</span>
|
|
|
- <span class="form-row-input">
|
|
|
- <a-input
|
|
|
- v-model="formData.username"
|
|
|
- style="margin: 0 0.6rem"
|
|
|
- placeholder="请输入IMSI"
|
|
|
- />
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div class="form-row-col">
|
|
|
- <span class="form-row-label">IMEI</span>
|
|
|
- <span class="form-row-input">
|
|
|
- <a-input
|
|
|
- v-model="formData.username"
|
|
|
- style="margin: 0 0.6rem"
|
|
|
- placeholder="请输入IMEI"
|
|
|
- />
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div class="form-row-col">
|
|
|
- <span class="form-row-label">MSISDN</span>
|
|
|
- <span class="form-row-input">
|
|
|
- <a-input
|
|
|
- v-model="formData.username"
|
|
|
- style="margin: 0 0.6rem"
|
|
|
- placeholder="请输入MSISDN"
|
|
|
- />
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-row">
|
|
|
- <div class="form-row-col">
|
|
|
- <span class="form-row-label">ICCID</span>
|
|
|
- <span class="form-row-input">
|
|
|
- <a-input
|
|
|
- v-model="formData.username"
|
|
|
- style="margin: 0 0.6rem"
|
|
|
- placeholder="请输入ICCID"
|
|
|
- />
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div class="form-row-col">
|
|
|
- <span class="form-row-label">IMSI</span>
|
|
|
- <span class="form-row-input">
|
|
|
- <a-input
|
|
|
- v-model="formData.username"
|
|
|
- style="margin: 0 0.6rem"
|
|
|
- placeholder="请输入IMSI"
|
|
|
- />
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div class="form-row-col">
|
|
|
- <span class="form-row-label">IMEI</span>
|
|
|
- <span class="form-row-input">
|
|
|
- <a-input
|
|
|
- v-model="formData.username"
|
|
|
- style="margin: 0 0.6rem"
|
|
|
- placeholder="请输入IMEI"
|
|
|
- />
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div class="form-row-col">
|
|
|
- <span class="form-row-label">MSISDN</span>
|
|
|
- <span class="form-row-input">
|
|
|
- <a-input
|
|
|
- v-model="formData.username"
|
|
|
- style="margin: 0 0.6rem"
|
|
|
- placeholder="请输入MSISDN"
|
|
|
- />
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-row">
|
|
|
- <div class="form-row-col">
|
|
|
- <span class="form-row-label">ICCID</span>
|
|
|
- <span class="form-row-input">
|
|
|
- <a-input
|
|
|
- v-model="formData.username"
|
|
|
- style="margin: 0 0.6rem"
|
|
|
- placeholder="请输入ICCID"
|
|
|
- />
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div class="form-row-col">
|
|
|
- <span class="form-row-label">IMSI</span>
|
|
|
- <span class="form-row-input">
|
|
|
- <a-input
|
|
|
- v-model="formData.username"
|
|
|
- style="margin: 0 0.6rem"
|
|
|
- placeholder="请输入IMSI"
|
|
|
- />
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div class="form-row-col">
|
|
|
- </div>
|
|
|
- <div class="form-row-col" style="margin-left: 250px;">
|
|
|
- <a-button type="primary" @click="evReturnAdd">重置</a-button>
|
|
|
- <a-button
|
|
|
- type="primary"
|
|
|
- style="margin: 0 0.6rem"
|
|
|
- @click="intData"
|
|
|
- >
|
|
|
- <template #icon>
|
|
|
- <icon-search />
|
|
|
- </template>
|
|
|
- 搜索
|
|
|
- </a-button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
-</div>
|
|
|
-</template>
|
|
|
+
|
|
|
+ <a-table :data="dataSource" :columns="columns" :pagination="pagination" :scroll="{ x: 'auto' }" >
|
|
|
+ <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>
|
|
|
|
|
|
-<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'
|
|
|
-const formData = ref({
|
|
|
- username: ''
|
|
|
-});
|
|
|
-const route = useRoute();
|
|
|
-console.log(route,"route")
|
|
|
+ </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 { cardInfoList } 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,
|
|
|
+})
|
|
|
|
|
|
-</script>
|
|
|
-
|
|
|
-<style scoped lang="less">
|
|
|
-.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;
|
|
|
- }
|
|
|
- }
|
|
|
+const cardStatusOptions = [
|
|
|
+ { label: '正常', value: 'normal' },
|
|
|
+ { label: '停机', value: 'suspended' },
|
|
|
+];
|
|
|
+
|
|
|
+ const intData = async () => {
|
|
|
+ const param = {
|
|
|
+ current: pagination.value.current,
|
|
|
+ size: pagination.value.pageSize,
|
|
|
+ ...searchForm.value,
|
|
|
}
|
|
|
+ const { data } = await cardInfoList(param)
|
|
|
+ dataSource.value = data.records ||[]
|
|
|
+ pagination.value.total = data.total
|
|
|
}
|
|
|
+
|
|
|
+onMounted(() => {
|
|
|
+ intData()
|
|
|
+})
|
|
|
+ </script>
|
|
|
+
|
|
|
+ <style scoped lang="less">
|
|
|
|
|
|
-</style>
|
|
|
+.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>
|
|
|
+
|