文档工具-文档OCR识别-列宽可拖拽
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="height: 100%">
|
<div style="height: 100%">
|
||||||
<div class="box">
|
<div class="box" v-if="isTrue">
|
||||||
<a-table
|
<a-table
|
||||||
class="table"
|
class="table"
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
|
:components="drag(columns,'columns')"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:scroll="{x: true}"
|
:scroll="{x: true}"
|
||||||
@@ -63,6 +64,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import eventBUs from '../../common/event'
|
import eventBUs from '../../common/event'
|
||||||
import { getAction, postAction } from '@/api/manage'
|
import { getAction, postAction } from '@/api/manage'
|
||||||
|
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'docTable',
|
name: 'docTable',
|
||||||
@@ -91,6 +93,7 @@
|
|||||||
default: ''
|
default: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mixins:[ResizeHeader, ResizeColumnProvide],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
jsonBody: [],
|
jsonBody: [],
|
||||||
@@ -102,6 +105,7 @@
|
|||||||
dataSource: [],
|
dataSource: [],
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
isTrue: false,
|
||||||
total: 0,
|
total: 0,
|
||||||
searchParmes: {},
|
searchParmes: {},
|
||||||
loading: false,
|
loading: false,
|
||||||
@@ -164,7 +168,8 @@
|
|||||||
dataIndex: res.db_field_name,
|
dataIndex: res.db_field_name,
|
||||||
align: 'left',
|
align: 'left',
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
sorter: res.sort
|
sorter: res.sort,
|
||||||
|
width:170,
|
||||||
})
|
})
|
||||||
if (res.click) {
|
if (res.click) {
|
||||||
this.columns[index].scopedSlots = {
|
this.columns[index].scopedSlots = {
|
||||||
@@ -196,6 +201,10 @@
|
|||||||
scopedSlots: { customRender: 'operation' }
|
scopedSlots: { customRender: 'operation' }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
this.isTrue = false
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.isTrue = true
|
||||||
|
},500)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -249,6 +258,8 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
|
@import '~@assets/less/common.less';
|
||||||
|
|
||||||
.table .ant-table-column-title {
|
.table .ant-table-column-title {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="height: 100%">
|
<div style="height: 100%">
|
||||||
<div class="box">
|
<div class="box" v-if='isTrue'>
|
||||||
<a-table
|
<a-table
|
||||||
class="table"
|
class="table"
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
|
:components="drag(columns,'columns')"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
@@ -65,9 +66,11 @@
|
|||||||
import eventBUs from '../../common/event'
|
import eventBUs from '../../common/event'
|
||||||
import { getAction, postAction } from '@/api/manage'
|
import { getAction, postAction } from '@/api/manage'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
|
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ocrTable',
|
name: 'ocrTable',
|
||||||
|
mixins:[ResizeHeader, ResizeColumnProvide],
|
||||||
props: {
|
props: {
|
||||||
//接口
|
//接口
|
||||||
url: {
|
url: {
|
||||||
@@ -92,6 +95,7 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
jsonBody: [],
|
jsonBody: [],
|
||||||
|
isTrue:false,
|
||||||
checkboxList: [],
|
checkboxList: [],
|
||||||
userData: {},
|
userData: {},
|
||||||
tableAll: false,
|
tableAll: false,
|
||||||
@@ -201,9 +205,19 @@
|
|||||||
scopedSlots: { customRender: 'operation' }
|
scopedSlots: { customRender: 'operation' }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
this.isTrue = false
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.isTrue = true
|
||||||
|
},100)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getDataAdmin(){
|
||||||
|
this.isTrue = false
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.isTrue = true
|
||||||
|
},100)
|
||||||
|
},
|
||||||
tableOnChange(pagination, filters, sorter) {
|
tableOnChange(pagination, filters, sorter) {
|
||||||
this.orderBy = sorter.order == 'ascend' ? '1' : '2'
|
this.orderBy = sorter.order == 'ascend' ? '1' : '2'
|
||||||
this.orderByField = sorter.columnKey
|
this.orderByField = sorter.columnKey
|
||||||
@@ -263,6 +277,8 @@
|
|||||||
|
|
||||||
</style>
|
</style>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
@import '~@assets/less/common.less';
|
||||||
|
|
||||||
.box {
|
.box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100% - 100px);
|
height: calc(100% - 100px);
|
||||||
|
|||||||
@@ -69,6 +69,7 @@
|
|||||||
@actionSynchron="actionSynchron"
|
@actionSynchron="actionSynchron"
|
||||||
:url="url"
|
:url="url"
|
||||||
showAction
|
showAction
|
||||||
|
ref='tableAdmin'
|
||||||
@actionDown="actionDown"
|
@actionDown="actionDown"
|
||||||
@onSelectChange="onSelectChange"
|
@onSelectChange="onSelectChange"
|
||||||
@actionDelete="actionDelete"
|
@actionDelete="actionDelete"
|
||||||
@@ -441,7 +442,7 @@
|
|||||||
},
|
},
|
||||||
docVisible(val){
|
docVisible(val){
|
||||||
this.drawVisible=val
|
this.drawVisible=val
|
||||||
|
this.$refs.tableAdmin.getDataAdmin()
|
||||||
},
|
},
|
||||||
//文件详情跳转
|
//文件详情跳转
|
||||||
detailClick(val){
|
detailClick(val){
|
||||||
|
|||||||
Reference in New Issue
Block a user