---固定表格表头

This commit is contained in:
lai
2023-10-26 19:33:13 +08:00
parent f17e998e05
commit 459fc0f2b3
5 changed files with 98 additions and 70 deletions

View File

@@ -183,9 +183,9 @@ let modalState: ModalStateType = reactive({
from: {
id: '',
imsi: '',
amf: '',
amf: '8000',
ki: '',
algoIndex: '',
algoIndex: '0',
opc: '',
},
BatchForm: {
@@ -212,7 +212,6 @@ const modalStateFrom = Form.useForm(
amf: [{ required: true, message: 'AMF不能为空' }],
ki: [{ required: true, message: 'KI不能为空' }],
algo: [{ required: true, message: 'algoIndex不能为空' }],
opc: [{ required: true, message: 'OPC能为空' }],
})
);
@@ -220,15 +219,11 @@ const modalStateFrom = Form.useForm(
const modalStateBatchFrom = Form.useForm(
modalState.BatchForm,
reactive({
num: [
{ required: true, message: '放号数不能为空' },
{ min: 1, max: 100, message: '放号数必须小于等于100' },
],
num: [{ required: true, message: '放号数不能为空' }],
imsi: [{ required: true, message: 'IMSI不能为空' }],
amf: [{ required: true, message: 'AMF不能为空' }],
ki: [{ required: true, message: 'KI不能为空' }],
algo: [{ required: true, message: 'algoIndex不能为空' }],
opc: [{ required: true, message: 'OPC能为空' }],
})
);
@@ -236,10 +231,7 @@ const modalStateBatchFrom = Form.useForm(
const modalStateBatchDelFrom = Form.useForm(
modalState.BatchDelForm,
reactive({
num: [
{ required: true, message: '删除个数不能为空' },
{ min: 1, max: 100, message: '删除个数必须小于等于100' },
],
num: [{ required: true, message: '删除个数不能为空' }],
imsi: [{ required: true, message: '起始IMSI不能为空' }],
})
);
@@ -811,7 +803,7 @@ onMounted(() => {
:data-source="tableState.data"
:size="tableState.size"
:pagination="tablePagination"
:scroll="{ x: true }"
:scroll="{ x: true, y: 400 }"
>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'imsi'">
@@ -905,6 +897,7 @@ onMounted(() => {
v-model:value="modalState.from.ki"
allow-clear
placeholder="请输入KI"
:disabled="modalState.from.id!==''"
>
</a-input>
</a-form-item>
@@ -936,6 +929,7 @@ onMounted(() => {
v-model:value="modalState.from.opc"
allow-clear
placeholder="请输入OPC"
:disabled="modalState.from.id!==''"
></a-input>
</a-form-item>
</a-col>