fix: 网元授权接口变更字段属性调整

This commit is contained in:
TsMask
2024-05-07 18:39:56 +08:00
parent 530e7fd43f
commit 976f72f79a
4 changed files with 16 additions and 11 deletions

View File

@@ -19,7 +19,7 @@ export async function listLicense(query: Record<string, any>) {
// 分页
const pageNum = (query.pageNum - 1) * query.pageSize;
const limtSql = ` order by created_at desc limit ${pageNum},${query.pageSize} `;
const limtSql = ` order by create_time desc limit ${pageNum},${query.pageSize} `;
// 发起请求
const result = await request({

View File

@@ -428,9 +428,9 @@ export default {
license: {
neTypePlease: 'Select network element type',
neType: 'NE Type',
fileName: 'File Name',
createTime: 'Uploaded Time',
comment: 'File Description',
serialNum: 'Serial Num',
createTime: 'Time',
comment: 'Description',
updateComment: 'License Description',
updateCommentPlease: 'Please enter a license description',
updateFile: 'License File',

View File

@@ -428,9 +428,9 @@ export default {
license: {
neTypePlease: '选择网元类型',
neType: '网元类型',
fileName: '文件名',
createTime: '上传时间',
comment: '文件说明',
serialNum: '序列号',
createTime: '时间',
comment: '说明',
updateComment: 'License说明',
updateCommentPlease: '请输入License说明',
updateFile: 'License文件',

View File

@@ -11,6 +11,7 @@ import useI18n from '@/hooks/useI18n';
import useNeInfoStore from '@/store/modules/neinfo';
import { FileType } from 'ant-design-vue/lib/upload/interface';
import { UploadRequestOption } from 'ant-design-vue/lib/vc-upload/interface';
import { parseDateToStr } from '@/utils/date-utils';
const neInfoStore = useNeInfoStore();
const { t } = useI18n();
@@ -74,21 +75,25 @@ let tableColumns: ColumnsType = [
width: 2,
},
{
title: t('views.configManage.license.fileName'),
dataIndex: 'fileName',
title: t('views.configManage.license.serialNum'),
dataIndex: 'serialNum',
align: 'center',
width: 3,
},
{
title: t('views.configManage.license.comment'),
dataIndex: 'comment',
dataIndex: 'remark',
align: 'center',
width: 5,
},
{
title: t('views.configManage.license.createTime'),
dataIndex: 'createdAt',
dataIndex: 'createTime',
align: 'center',
customRender(opt) {
if (!opt.value) return '';
return parseDateToStr(opt.value);
},
width: 2,
},
];