style: neFile目录移动到ne
This commit is contained in:
@@ -12,6 +12,7 @@ import useI18n from '@/hooks/useI18n';
|
|||||||
import ViewDrawer from './components/ViewDrawer.vue';
|
import ViewDrawer from './components/ViewDrawer.vue';
|
||||||
import saveAs from 'file-saver';
|
import saveAs from 'file-saver';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
|
import { parseSizeFromFile } from '@/utils/parse-utils';
|
||||||
const neInfoStore = useNeInfoStore();
|
const neInfoStore = useNeInfoStore();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
@@ -79,16 +80,19 @@ let tableColumns: ColumnsType = [
|
|||||||
dataIndex: 'size',
|
dataIndex: 'size',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width: 100,
|
width: 100,
|
||||||
|
customRender(opt) {
|
||||||
|
return parseSizeFromFile(opt.value);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.logManage.neFile.modifiedTime'),
|
title: t('views.logManage.neFile.modifiedTime'),
|
||||||
dataIndex: 'modifiedTime',
|
dataIndex: 'modifiedTime',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
width: 200,
|
||||||
customRender(opt) {
|
customRender(opt) {
|
||||||
if (!opt.value) return '';
|
if (!opt.value) return '';
|
||||||
return parseDateToStr(opt.value * 1000);
|
return parseDateToStr(opt.value * 1000);
|
||||||
},
|
},
|
||||||
width: 150,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.logManage.neFile.fileName'),
|
title: t('views.logManage.neFile.fileName'),
|
||||||
@@ -238,7 +242,7 @@ function fnGetList(pageNum?: number) {
|
|||||||
}
|
}
|
||||||
queryParams.path = nePathArr.value.join('/');
|
queryParams.path = nePathArr.value.join('/');
|
||||||
listNeFiles(toRaw(queryParams)).then(res => {
|
listNeFiles(toRaw(queryParams)).then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
const { total, rows } = res.data;
|
const { total, rows } = res.data;
|
||||||
tablePagination.total = total;
|
tablePagination.total = total;
|
||||||
tableState.data = rows;
|
tableState.data = rows;
|
||||||
Reference in New Issue
Block a user