fix: 网元授权接口变更字段属性调整
This commit is contained in:
@@ -19,7 +19,7 @@ export async function listLicense(query: Record<string, any>) {
|
|||||||
|
|
||||||
// 分页
|
// 分页
|
||||||
const pageNum = (query.pageNum - 1) * query.pageSize;
|
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({
|
const result = await request({
|
||||||
|
|||||||
@@ -428,9 +428,9 @@ export default {
|
|||||||
license: {
|
license: {
|
||||||
neTypePlease: 'Select network element type',
|
neTypePlease: 'Select network element type',
|
||||||
neType: 'NE Type',
|
neType: 'NE Type',
|
||||||
fileName: 'File Name',
|
serialNum: 'Serial Num',
|
||||||
createTime: 'Uploaded Time',
|
createTime: 'Time',
|
||||||
comment: 'File Description',
|
comment: 'Description',
|
||||||
updateComment: 'License Description',
|
updateComment: 'License Description',
|
||||||
updateCommentPlease: 'Please enter a license description',
|
updateCommentPlease: 'Please enter a license description',
|
||||||
updateFile: 'License File',
|
updateFile: 'License File',
|
||||||
|
|||||||
@@ -428,9 +428,9 @@ export default {
|
|||||||
license: {
|
license: {
|
||||||
neTypePlease: '选择网元类型',
|
neTypePlease: '选择网元类型',
|
||||||
neType: '网元类型',
|
neType: '网元类型',
|
||||||
fileName: '文件名',
|
serialNum: '序列号',
|
||||||
createTime: '上传时间',
|
createTime: '时间',
|
||||||
comment: '文件说明',
|
comment: '说明',
|
||||||
updateComment: 'License说明',
|
updateComment: 'License说明',
|
||||||
updateCommentPlease: '请输入License说明',
|
updateCommentPlease: '请输入License说明',
|
||||||
updateFile: 'License文件',
|
updateFile: 'License文件',
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import useI18n from '@/hooks/useI18n';
|
|||||||
import useNeInfoStore from '@/store/modules/neinfo';
|
import useNeInfoStore from '@/store/modules/neinfo';
|
||||||
import { FileType } from 'ant-design-vue/lib/upload/interface';
|
import { FileType } from 'ant-design-vue/lib/upload/interface';
|
||||||
import { UploadRequestOption } from 'ant-design-vue/lib/vc-upload/interface';
|
import { UploadRequestOption } from 'ant-design-vue/lib/vc-upload/interface';
|
||||||
|
import { parseDateToStr } from '@/utils/date-utils';
|
||||||
const neInfoStore = useNeInfoStore();
|
const neInfoStore = useNeInfoStore();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
@@ -74,21 +75,25 @@ let tableColumns: ColumnsType = [
|
|||||||
width: 2,
|
width: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.configManage.license.fileName'),
|
title: t('views.configManage.license.serialNum'),
|
||||||
dataIndex: 'fileName',
|
dataIndex: 'serialNum',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 3,
|
width: 3,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.configManage.license.comment'),
|
title: t('views.configManage.license.comment'),
|
||||||
dataIndex: 'comment',
|
dataIndex: 'remark',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 5,
|
width: 5,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.configManage.license.createTime'),
|
title: t('views.configManage.license.createTime'),
|
||||||
dataIndex: 'createdAt',
|
dataIndex: 'createTime',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
customRender(opt) {
|
||||||
|
if (!opt.value) return '';
|
||||||
|
return parseDateToStr(opt.value);
|
||||||
|
},
|
||||||
width: 2,
|
width: 2,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user