文档库-可伸缩列
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
@searchReset="searchReset"
|
||||
/>
|
||||
<a-table
|
||||
:components="drag(columns,'cloumns')"
|
||||
:columns="columns"
|
||||
rowKey="serial_number"
|
||||
:scroll="{x: 1500}"
|
||||
@@ -60,6 +61,7 @@
|
||||
<script>
|
||||
import { getAction, postAction } from '@/api/manage'
|
||||
import currencySearch from '@/components/currencySearch/index'
|
||||
import {ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||
|
||||
export default {
|
||||
name: 'index',
|
||||
@@ -75,6 +77,7 @@
|
||||
return false
|
||||
}
|
||||
},
|
||||
mixins: [ResizeColumnProvide,ResizeHeader],
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
@@ -88,18 +91,21 @@
|
||||
title: this.$t('standard'),
|
||||
dataIndex: 'serial_number',
|
||||
ellipsis: true,
|
||||
align: 'left'
|
||||
align: 'left',
|
||||
width: 480
|
||||
},
|
||||
{
|
||||
title: this.$t('title'),
|
||||
dataIndex: 'title',
|
||||
ellipsis: true,
|
||||
align: 'left'
|
||||
align: 'left',
|
||||
width: 480
|
||||
},
|
||||
{
|
||||
title: this.$t('TextStatus'),
|
||||
dataIndex: 'state',
|
||||
align: 'left'
|
||||
align: 'left',
|
||||
width: 480
|
||||
}
|
||||
],
|
||||
dataList: [],
|
||||
|
||||
@@ -177,6 +177,7 @@
|
||||
>
|
||||
<a-table
|
||||
class="table"
|
||||
:components="drag(columns,'columns')"
|
||||
:columns="columns"
|
||||
:pagination="false"
|
||||
:scroll="{y: 400}"
|
||||
@@ -273,12 +274,14 @@
|
||||
import { Base64 } from 'js-base64'
|
||||
import uploadFile from '@/components/uploadFile/file'
|
||||
import { mapGetters } from 'vuex'
|
||||
import {ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||
|
||||
export default {
|
||||
name: 'docIndex',
|
||||
components: {
|
||||
uploadFile
|
||||
},
|
||||
mixins: [ResizeColumnProvide,ResizeHeader],
|
||||
data() {
|
||||
return {
|
||||
url: {
|
||||
@@ -295,7 +298,7 @@
|
||||
dataIndex: 'title',
|
||||
align: 'left',
|
||||
ellipsis: true,
|
||||
scopedSlots: { customRender: 'operation' }
|
||||
scopedSlots: { customRender: 'operation' },
|
||||
}
|
||||
],
|
||||
columnsFile: [
|
||||
@@ -333,7 +336,8 @@
|
||||
dataIndex: 'content',
|
||||
align: 'left',
|
||||
ellipsis: true,
|
||||
scopedSlots: { customRender: 'content' }
|
||||
scopedSlots: { customRender: 'content' },
|
||||
width: 484
|
||||
},
|
||||
{
|
||||
title: this.$t('ModificationTime'),
|
||||
|
||||
Reference in New Issue
Block a user