项目库列表-列宽拖拽-默认列宽调整
This commit is contained in:
@@ -127,6 +127,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%'}"
|
:scroll="{x: '100%'}"
|
||||||
@@ -180,6 +181,7 @@
|
|||||||
import changeExtensionModel from './components/changeExtensionModel'
|
import changeExtensionModel from './components/changeExtensionModel'
|
||||||
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
|
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'index',
|
name: 'index',
|
||||||
@@ -188,6 +190,7 @@
|
|||||||
PersonnelSelection,
|
PersonnelSelection,
|
||||||
changeExtensionModel
|
changeExtensionModel
|
||||||
},
|
},
|
||||||
|
mixins:[ResizeHeader, ResizeColumnProvide],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
@@ -214,7 +217,7 @@
|
|||||||
title: this.$t('entryName'),
|
title: this.$t('entryName'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'projectName',
|
dataIndex: 'projectName',
|
||||||
width: 180,
|
width: 260,
|
||||||
sorter:true,
|
sorter:true,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
scopedSlots: { customRender: 'projectName' }
|
scopedSlots: { customRender: 'projectName' }
|
||||||
@@ -244,7 +247,7 @@
|
|||||||
{
|
{
|
||||||
title: this.$t('brand'),
|
title: this.$t('brand'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width: 180,
|
width: 140,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
dataIndex: 'brandText'
|
dataIndex: 'brandText'
|
||||||
},
|
},
|
||||||
@@ -282,7 +285,7 @@
|
|||||||
title: this.$t('operation'),
|
title: this.$t('operation'),
|
||||||
align: 'left',
|
align: 'left',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: 302,
|
width: 260,
|
||||||
scopedSlots: { customRender: 'operation' }
|
scopedSlots: { customRender: 'operation' }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user