修改bug
This commit is contained in:
@@ -3,26 +3,6 @@
|
||||
<a-card :bordered="false">
|
||||
<div class="splitting-search-wrapper">
|
||||
<search :flag="'3'" :url="url"/>
|
||||
<!-- <a-form layout="inline" @keyup.enter.native="searchQuery">-->
|
||||
<!-- <a-row :gutter="24">-->
|
||||
<!-- <a-col :md="6" :sm="12">-->
|
||||
<!-- <a-form-item :label="$t('standard')">-->
|
||||
<!-- <j-input :placeholder="$t('enterNumber')" v-model="queryParams.attId"></j-input>-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- </a-col>-->
|
||||
<!-- <a-col :md="6" :sm="8">-->
|
||||
<!-- <a-form-item :label="$t('title')">-->
|
||||
<!-- <j-input :placeholder="$t('enterTitle')" v-model="queryParams.title"></j-input>-->
|
||||
<!-- </a-form-item>-->
|
||||
<!-- </a-col>-->
|
||||
<!-- <a-col :md="6" :sm="8">-->
|
||||
<!-- <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">-->
|
||||
<!-- <a-button type="primary" @click="searchQuery" icon="search">{{$t('query')}}</a-button>-->
|
||||
<!-- <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">{{$t('reset')}}</a-button>-->
|
||||
<!-- </span>-->
|
||||
<!-- </a-col>-->
|
||||
<!-- </a-row>-->
|
||||
<!-- </a-form>-->
|
||||
</div>
|
||||
<div class="table-operator">
|
||||
<div class="operator-text" @click="handleModule">
|
||||
@@ -49,34 +29,6 @@
|
||||
@deleteDetail="deleteDetail"
|
||||
@detailClick="detailClick"
|
||||
></table-data>
|
||||
<!-- <a-table-->
|
||||
<!-- ref="table"-->
|
||||
<!-- size="middle"-->
|
||||
<!-- rowKey="id"-->
|
||||
<!-- :columns="columns"-->
|
||||
<!-- :dataSource="tableData"-->
|
||||
<!-- :pagination="false"-->
|
||||
<!-- :loading="loading"-->
|
||||
<!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"-->
|
||||
<!-- @change="handleTableChange">-->
|
||||
<!-- <span slot="action" slot-scope="text, record">-->
|
||||
<!-- <a class="action-margin" @click="backDocument(record)">{{$t('backDocument')}}</a>-->
|
||||
<!-- <a class="action-margin" @click="detail(record)">{{$t('See')}}</a>-->
|
||||
<!-- <a class="table-del" @click="deleteDetail(record)">{{$t('delete')}}</a>-->
|
||||
<!-- </span>-->
|
||||
<!-- </a-table>-->
|
||||
<!-- <div class="page" v-if="tableData.length > 0">-->
|
||||
<!-- <a-pagination-->
|
||||
<!-- :show-total="total => $t('total')+` ${total} `+ $t('strip')"-->
|
||||
<!-- show-quick-jumper-->
|
||||
<!-- show-size-changer-->
|
||||
<!-- :current="queryParams.pageNo"-->
|
||||
<!-- :page-size.sync="queryParams.pageSize"-->
|
||||
<!-- :total="total"-->
|
||||
<!-- @change="onChangePage"-->
|
||||
<!-- @showSizeChange="SizeChange"-->
|
||||
<!-- />-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
<split-text v-if="splitVisible" :splitVisible="splitVisible" @visible="sVisible"></split-text>
|
||||
<import-result v-if="importsVisible" :importsVisible="importsVisible" @visible="iVisible"></import-result>
|
||||
@@ -226,19 +178,16 @@
|
||||
content: '',
|
||||
onOk:
|
||||
async () => {
|
||||
// let formData = new FormData();
|
||||
// formData.append('params', params)
|
||||
// console.log('formdata',formData)
|
||||
axios({
|
||||
url: '/jero-boot/split/sarFileSplitInfo/deleteBatch',
|
||||
method: 'post',
|
||||
method: 'get',
|
||||
data: params,
|
||||
transformRequest: [function (data) {
|
||||
let ret = ''
|
||||
for (let it in data) {
|
||||
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
||||
}
|
||||
return ret
|
||||
}],
|
||||
params:params,
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
// 'Content-Type': 'multipart/form-data',
|
||||
'X-Access-Token':this.token
|
||||
}
|
||||
}).then(res => {
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getAction, postAction, deleteAction, downFile } from '@/api/manage'
|
||||
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
|
||||
import SplitUpload from '@/components/SplitUpload/index'
|
||||
import search from '@/components/search/index'
|
||||
import TableData from '@/components/OcrTable/DocTable'
|
||||
@@ -234,7 +234,8 @@
|
||||
},
|
||||
//模板下载
|
||||
downLoad(){
|
||||
|
||||
let name = this.$t('documentSplitTemplate')+'.xls'
|
||||
downloadFile('split/sarFileSplitItems/exportTemplate',name, {})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -654,6 +654,7 @@
|
||||
},
|
||||
//保存
|
||||
splitSave(){
|
||||
console.log('vallll',this.contentList)
|
||||
// console.log('formInline',this.formInline)
|
||||
this.$refs.splitEditForm.validate(valid=>{
|
||||
if(valid){
|
||||
@@ -773,12 +774,12 @@
|
||||
for(let i = this.contentList.length;i>this.addIndex;i--){
|
||||
this.contentList[i+lengthImg-1]=this.contentList[i-1]
|
||||
}
|
||||
if(imgs && imgs.length > 0){
|
||||
imgs.forEach(item => {
|
||||
if(data && data.length > 0){
|
||||
data.forEach(item => {
|
||||
this.contentList[++this.addIndex]={
|
||||
id:'',
|
||||
type:'IMG',
|
||||
itemContent:item.url
|
||||
itemContent:item.id
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -810,6 +811,7 @@
|
||||
type:'TABLE',
|
||||
itemContent:val
|
||||
}
|
||||
|
||||
},
|
||||
//取消行数列数按钮
|
||||
handleColCancel(){
|
||||
|
||||
@@ -553,7 +553,16 @@
|
||||
url: '/jero-boot/split/sarFileSplitMenu/copyMenuNotChildren',
|
||||
method: 'post',
|
||||
data: params,
|
||||
transformRequest: [function (data) {
|
||||
// Do whatever you want to transform the data
|
||||
let ret = ''
|
||||
for (let it in data) {
|
||||
ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
|
||||
}
|
||||
return ret
|
||||
}],
|
||||
headers: {
|
||||
// 'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'X-Access-Token':this.token
|
||||
}
|
||||
})
|
||||
@@ -567,17 +576,6 @@
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
}
|
||||
})
|
||||
|
||||
// postAction(`split/sarFileSplitMenu/copyMenuNotChildren`,params).then(res=> {
|
||||
// if(res.success){
|
||||
// this.$message.success(this.$t('OperationSuccessful'))
|
||||
// // this.loadData()
|
||||
// this.loadMenuData()
|
||||
// eventBUs.$emit('searchReset')
|
||||
// }else{
|
||||
// this.$message.warning(this.$t('operationFailed'))
|
||||
// }
|
||||
// })
|
||||
},
|
||||
onCancel() {},
|
||||
});
|
||||
@@ -621,7 +619,7 @@
|
||||
let name = this.$t('DocumentSplitting')+'.zip'
|
||||
let query = {
|
||||
infoId:this.infoId,
|
||||
exportName:name,
|
||||
exportName:'',
|
||||
idList:this.selectedRowKeys.join(',')
|
||||
}
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
seachList: 'document/bussDocumentLibraryEO/getHeaderOrConditionForOcr', //搜索字段
|
||||
tableList: 'document/bussDocumentLibraryEO/ocrPageInfo', //表格数据
|
||||
},
|
||||
type:'doc',
|
||||
type:'',
|
||||
OperationList:[]
|
||||
}
|
||||
},
|
||||
@@ -205,7 +205,7 @@
|
||||
if (file.file_name) {
|
||||
let name = file.file_name.split('.')
|
||||
let nameSuffix = name[name.length - 1]
|
||||
if (nameSuffix.toLowerCase() === 'doc'||nameSuffix.toLowerCase() === 'docx') {
|
||||
// if (nameSuffix.toLowerCase() === 'doc'||nameSuffix.toLowerCase() === 'docx') {
|
||||
let params = {
|
||||
attId: file.id,
|
||||
standName: file.title,
|
||||
@@ -236,9 +236,9 @@
|
||||
}
|
||||
})
|
||||
// this.$emit('exportVisible',true)
|
||||
} else {
|
||||
this.$message.warning(this.$t('OnlyPDF'))
|
||||
}
|
||||
// } else {
|
||||
// this.$message.warning(this.$t('OnlyWord'))
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user