ocr文档下载
This commit is contained in:
@@ -424,7 +424,7 @@ module.exports = {
|
||||
LabeItemName:'标签项名称',
|
||||
PleaseEnterLabelName:'请输入标签名称',
|
||||
DisplayArea:'展示区域',
|
||||
ChineseName:'中文名称',
|
||||
ChineseName:'属性名称',
|
||||
AttributeType:'属性类型',
|
||||
FieldLength:'字段长度',
|
||||
DisplayOrder:'展示顺序',
|
||||
|
||||
@@ -271,7 +271,7 @@
|
||||
},
|
||||
methods: {
|
||||
sumber() {
|
||||
console.log('vilidate',this.$refs.ruleForm1)
|
||||
console.log('vilidate',this.formInline)
|
||||
this.$refs.ruleForm1.validate(valid => {
|
||||
console.log('va',valid)
|
||||
if (valid) {
|
||||
@@ -283,11 +283,11 @@
|
||||
}
|
||||
postAction(url, this.formInline).then((res) => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.$message.success(this.$t('OperationSuccessful'))
|
||||
eventBUs.$emit('searchReset')
|
||||
this.$emit('addFormClick')
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
this.$message.warning(this.$t('operationFailed'))
|
||||
}
|
||||
})
|
||||
} else {
|
||||
@@ -310,6 +310,7 @@
|
||||
/** 赋值给当前对应的表单文件 */
|
||||
this.formInline[this.uploadName] = attIdList.join(',')
|
||||
this.formInline = { ...this.formInline }
|
||||
console.log('form',this.formInline)
|
||||
}
|
||||
},
|
||||
handleInput(value) {
|
||||
@@ -371,7 +372,6 @@
|
||||
this.$set(this, 'rules', rules)
|
||||
this.isFormInline = true
|
||||
this.confirmLoading = false
|
||||
console.log('rules',rules,this)
|
||||
},
|
||||
getForm() {
|
||||
this.confirmLoading = true
|
||||
|
||||
@@ -192,6 +192,9 @@
|
||||
methods:{
|
||||
//上传
|
||||
handleUpload(){
|
||||
// if(this.timer){
|
||||
// clearInterval(this.timer)
|
||||
// }
|
||||
this.fileVisible=true
|
||||
},
|
||||
//调取已入库文件
|
||||
@@ -245,8 +248,9 @@
|
||||
//下载
|
||||
actionDown(val){
|
||||
// downloadFile('/sys/common/download', val.docRealName, { id: val.attId })
|
||||
downloadFile('ocr/OcrRestful/downFile', val.docRealName, { fileName: val.docRealName })
|
||||
// downloadFile(val.docRealFile)
|
||||
window.open(val.docRealFile)
|
||||
// window.open(val.docRealFile)
|
||||
},
|
||||
//删除
|
||||
actionDelete(record){
|
||||
@@ -280,6 +284,7 @@
|
||||
},
|
||||
//上传确定按钮
|
||||
modalOk(){
|
||||
|
||||
this.$refs.fileForm.sumber()
|
||||
},
|
||||
handleCancel(){
|
||||
|
||||
@@ -50,10 +50,14 @@
|
||||
props:{
|
||||
tableData:Array,
|
||||
columns:Array,
|
||||
total:Number
|
||||
total:Number,
|
||||
parm:Object
|
||||
},
|
||||
mounted() {
|
||||
this.queryParams.pageNo=this.parm.pageNo
|
||||
this.queryParams.pageSize=this.parm.pageSize
|
||||
// console.log('colum',this.tableData,this.columns)
|
||||
console.log('query',this.queryParams)
|
||||
},
|
||||
methods:{
|
||||
onSelectChange(selectedRowKeys) {
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<a-spin :spinning="spinning" tip="Loading...">
|
||||
<a-tabs default-active-key="1" @change="callbackTab">
|
||||
<a-tab-pane key="1" :tab="$t('DocumentLibrary')">
|
||||
<tabTable :tableData="tableData" :columns="taglabColumns" @visibleEd="visibleEd" @visibleDelete="visibleDelete" @queryParams="queryParams" :total="total"></tabTable>
|
||||
<tabTable v-if="spinning==false" :tableData="tableData" :columns="taglabColumns" :parm="queryParam" @visibleEd="visibleEd" @visibleDelete="visibleDelete" @queryParams="queryParams" :total="total"></tabTable>
|
||||
</a-tab-pane>
|
||||
<!-- <a-tab-pane key="2" :tab="$t('DocumentSplitting')" force-render>-->
|
||||
<!-- <tabTable :tableData="tableData" :columns="taglabColumns" @visibleEd="visibleEd" @visibleDelete="visibleDelete" @queryParams="queryParams" :total="total"></tabTable>-->
|
||||
|
||||
Reference in New Issue
Block a user