认证管理-上报库管理-列宽可拖拽

This commit is contained in:
刘彦泽
2023-01-31 14:00:18 +08:00
parent e722b7a084
commit f61c08c2ab
2 changed files with 16 additions and 5 deletions
@@ -36,6 +36,7 @@
ref='table' ref='table'
size='middle' size='middle'
rowKey='id' rowKey='id'
:components="drag(columns,'columns')"
:columns='columns' :columns='columns'
:dataSource='areaTable' :dataSource='areaTable'
:pagination='false' :pagination='false'
@@ -72,10 +73,12 @@ import { putAction, postAction, getAction, deleteAction ,downloadFile } from '@/
import axios from 'axios' import axios from 'axios'
import Vue from 'vue' import Vue from 'vue'
import { ACCESS_TOKEN } from '@/store/mutation-types' import { ACCESS_TOKEN } from '@/store/mutation-types'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'diolagArea', name: 'diolagArea',
components: {}, components: {},
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
token:Vue.ls.get(ACCESS_TOKEN), token:Vue.ls.get(ACCESS_TOKEN),
@@ -102,20 +105,23 @@ export default {
title: this.$t('Exporttype'), title: this.$t('Exporttype'),
align: 'left', align: 'left',
dataIndex: 'exportType', dataIndex: 'exportType',
ellipsis: true ellipsis: true,
width: 260
}, },
{ {
title: this.$t('Exporttime'), title: this.$t('Exporttime'),
align: 'left', align: 'left',
dataIndex: 'exportTime', dataIndex: 'exportTime',
ellipsis: true ellipsis: true,
width: 260
}, },
{ {
title: this.$t('file'), title: this.$t('file'),
align: 'left', align: 'left',
dataIndex: 'exportFileName', dataIndex: 'exportFileName',
scopedSlots: { customRender: 'file' }, scopedSlots: { customRender: 'file' },
ellipsis: true ellipsis: true,
width: 260
} }
], ],
newVisible: false, newVisible: false,
@@ -34,6 +34,7 @@
<a-table <a-table
ref="table" ref="table"
size="middle" size="middle"
:components="drag(columns,'columns')"
:loading="loading" :loading="loading"
:pagination="false" :pagination="false"
:scroll="{x: '100%',y:'calc(100vh - 158px)'}" :scroll="{x: '100%',y:'calc(100vh - 158px)'}"
@@ -110,12 +111,14 @@
import { ACCESS_TOKEN } from '@/store/mutation-types' import { ACCESS_TOKEN } from '@/store/mutation-types'
import eventBUs from '../../../common/event' import eventBUs from '../../../common/event'
import Vue from 'vue' import Vue from 'vue'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'index', name: 'index',
components: { components: {
ExportHistory ExportHistory
}, },
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
token: Vue.ls.get(ACCESS_TOKEN), token: Vue.ls.get(ACCESS_TOKEN),
@@ -157,7 +160,7 @@
{ {
title: this.$t('entryName'), title: this.$t('entryName'),
align: 'left', align: 'left',
width: '17%', width: 210,
dataIndex: 'projectName', dataIndex: 'projectName',
sorter:true, sorter:true,
scopedSlots: { customRender: 'projectName' } scopedSlots: { customRender: 'projectName' }
@@ -165,11 +168,13 @@
{ {
title: this.$t('ListTitle'), title: this.$t('ListTitle'),
align: 'left', align: 'left',
dataIndex: 'title' width: 380,
dataIndex: 'title',
}, },
{ {
title: this.$t('Version'), title: this.$t('Version'),
align: 'left', align: 'left',
width: 382,
dataIndex: 'version' dataIndex: 'version'
}, },
{ {