参数导出模板管理-调整列宽
This commit is contained in:
@@ -46,6 +46,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 - 160px)'}"
|
:scroll="{x: '100%',y:'calc(100vh - 160px)'}"
|
||||||
@@ -114,11 +115,14 @@ import axios from 'axios'
|
|||||||
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: {
|
||||||
addModel,
|
addModel,
|
||||||
},
|
},
|
||||||
|
mixins:[ResizeHeader, ResizeColumnProvide],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
token:Vue.ls.get(ACCESS_TOKEN),
|
token:Vue.ls.get(ACCESS_TOKEN),
|
||||||
@@ -166,7 +170,7 @@ export default {
|
|||||||
dataIndex: 'templateName',
|
dataIndex: 'templateName',
|
||||||
sorter:true,
|
sorter:true,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 300,
|
width: 201,
|
||||||
scopedSlots: { customRender: 'templateName' }
|
scopedSlots: { customRender: 'templateName' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -174,7 +178,7 @@ export default {
|
|||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'description',
|
dataIndex: 'description',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
width: 300,
|
width: 192,
|
||||||
scopedSlots: { customRender: 'projectName' }
|
scopedSlots: { customRender: 'projectName' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user