155 lines
4.1 KiB
Java
155 lines
4.1 KiB
Java
<template>
|
|
<div class="splitting">
|
|
<a-card :bordered="false">
|
|
<div class="splitting-search-wrapper">
|
|
<search :flag="'1'" :url="url"/>
|
|
</div>
|
|
<div class="table-operator">
|
|
<div class="operator-text" @click="handleModule">
|
|
<a-icon type="plus" />
|
|
拆分已入库文本
|
|
</div>
|
|
<div class="operator-text" @click="handleExport">
|
|
<a-icon type="export" />
|
|
导入拆分结果
|
|
</div>
|
|
<div class="operator-text" @click="handleDel">
|
|
<a-icon type="delete" />
|
|
批量删除
|
|
</div>
|
|
</div>
|
|
<div class="splitting-table">
|
|
<tableData
|
|
:flag="'1'"
|
|
:OperationList="OperationList"
|
|
@editTable="seeTable"
|
|
@deleteTable="deleteTable"
|
|
:url="url"
|
|
showAction
|
|
@returnBack="returnBack"
|
|
/>
|
|
</div>
|
|
<split v-if="splitVisible" :splitVisible="splitVisible" @visible="sVisible"></split>
|
|
<imports v-if="importsVisible" :importsVisible="importsVisible" @visible="iVisible"></imports>
|
|
</a-card>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import search from '@/components/search/index'
|
|
import tableData from '@/components/tableDate/index'
|
|
import frameAssembly from '@/components/frameAssembly/index'
|
|
import split from './modules/split'
|
|
import imports from './modules/imports'
|
|
import { getAction, postAction, deleteAction } from '@/api/manage'
|
|
import eventBUs from '../../../common/event'
|
|
|
|
export default {
|
|
name: 'splitting',
|
|
components: {
|
|
search,
|
|
tableData,
|
|
frameAssembly,
|
|
split,
|
|
imports
|
|
},
|
|
data(){
|
|
return{
|
|
splitVisible:false,
|
|
importsVisible:false,
|
|
OperationList: [
|
|
{
|
|
text: '回传至文档库',
|
|
ClickEvent: 'returnBack'
|
|
},
|
|
{
|
|
text: '查看',
|
|
ClickEvent: 'seeTable'
|
|
},
|
|
{
|
|
text: '删除',
|
|
ClickEvent: 'deleteTable'
|
|
}
|
|
],
|
|
url: {
|
|
tableHeader: 'document/bussDocumentLibraryEO/getHeader', //表格头部字段
|
|
seachList: 'document/bussDocumentLibraryEO/queryCondition', //搜索字段
|
|
tableList: 'document/bussDocumentLibraryEO/queryPageInfo', //表格数据
|
|
getAddForm: 'document/bussDocumentLibraryEO/getAddForm', // 表单的字段
|
|
addInfo: 'document/bussDocumentLibraryEO/addInfo', //新增
|
|
updateInfo: 'document/bussDocumentLibraryEO/updateInfo', //编辑
|
|
getDocumentInfo: 'document/bussDocumentLibraryEO/getDocumentInfoById', //查看
|
|
deleteBatch: 'document/bussDocumentLibraryEO/deleteBatch' //删除
|
|
}
|
|
}
|
|
},
|
|
props:{
|
|
|
|
},
|
|
created() {
|
|
|
|
},
|
|
mounted() {
|
|
|
|
},
|
|
methods:{
|
|
//拆分已入库文本
|
|
handleModule(){
|
|
this.splitVisible=true
|
|
},
|
|
//导入拆分结果
|
|
handleExport(){
|
|
this.importsVisible=true
|
|
},
|
|
//批量删除
|
|
handleDel(){
|
|
|
|
},
|
|
//回传至文档库
|
|
returnBack(val){
|
|
console.log('val',val)
|
|
},
|
|
//查看
|
|
seeTable(){
|
|
|
|
},
|
|
//删除
|
|
deleteTable(val){
|
|
let _this = this
|
|
this.$confirm({
|
|
content: '确认删除?',
|
|
onOk() {
|
|
deleteAction(_this.url.deleteBatch, { ids: val.id }).then((res) => {
|
|
if (res.success) {
|
|
_this.$message.success(res.message)
|
|
eventBUs.$emit('searchReset')
|
|
} else {
|
|
this.$message.warning(res.message)
|
|
}
|
|
})
|
|
}
|
|
})
|
|
},
|
|
sVisible(val){
|
|
this.splitVisible=val
|
|
},
|
|
iVisible(val){
|
|
this.importsVisible=val
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
@import '~@assets/less/common.less';
|
|
</style>
|
|
|
|
<style lang="less">
|
|
.splitting{
|
|
.splitting-search-wrapper{
|
|
.table-page-search-submitButtons{
|
|
float: none!important;
|
|
}
|
|
}
|
|
}
|
|
</style> |