ocr文档同步

This commit is contained in:
caoyang
2022-03-08 17:06:12 +08:00
parent 4ecbb7841d
commit a34e64db45
12 changed files with 34 additions and 13 deletions
+4
View File
@@ -500,6 +500,10 @@ module.exports = {
ProcessStatus:'Process status', ProcessStatus:'Process status',
CompletionTime:'Completion time', CompletionTime:'Completion time',
draft:'draft', draft:'draft',
CannotExceed100characters:'cannot exceed 100 characters',
cantExeed:'cannot exceed ',
characters:' characters',
Processing:'Processing', Processing:'Processing',
See:'See', See:'See',
} }
+3
View File
@@ -504,6 +504,9 @@ module.exports = {
ProcessStatus:'流程状态', ProcessStatus:'流程状态',
CompletionTime:'完成时间', CompletionTime:'完成时间',
draft:'草稿', draft:'草稿',
CannotExceed100characters:'不能超过100字符',
cantExeed:'不能超过',
characters:'字符',
Processing:'办理', Processing:'办理',
See:'查看', See:'查看',
} }
@@ -16,7 +16,7 @@
<a class="text" v-for="(ol,index) in OperationList" <a class="text" v-for="(ol,index) in OperationList"
@click="OperationClick(ol,record)"> @click="OperationClick(ol,record)">
<span v-if="ol.text==$t('SyncLibrary')"> <span v-if="ol.text==$t('SyncLibrary')">
{{record.resultContent=='转换成功'&&record.syncState=='未同步'?ol.text:''}} {{record.resultContent=='转换成功'&&record.syncState=='未同步'&&record.fileSource=='1'?ol.text:''}}
</span> </span>
<span v-if="ol.text==$t('check')"> <span v-if="ol.text==$t('check')">
{{record.resultContent=='转换成功'&&record.syncState=='未同步'?ol.text:''}} {{record.resultContent=='转换成功'&&record.syncState=='未同步'?ol.text:''}}
+1 -1
View File
@@ -16,7 +16,7 @@
<a class="text" v-for="(ol,index) in OperationList" <a class="text" v-for="(ol,index) in OperationList"
@click="OperationClick(ol,record)"> @click="OperationClick(ol,record)">
<span v-if="ol.text==$t('SyncLibrary')"> <span v-if="ol.text==$t('SyncLibrary')">
{{record.resultContent=='转换成功'&&record.syncState=='未同步'?ol.text:''}} {{record.resultContent=='转换成功'&&record.syncState=='未同步'&&record.fileSource=='1'?ol.text:''}}
</span> </span>
<span v-if="ol.text==$t('check')"> <span v-if="ol.text==$t('check')">
{{record.resultContent=='转换成功'&&record.syncState=='未同步'?ol.text:''}} {{record.resultContent=='转换成功'&&record.syncState=='未同步'?ol.text:''}}
@@ -190,7 +190,8 @@
let params = { let params = {
attId: this.rows.id, attId: this.rows.id,
standName: this.rows.title, standName: this.rows.title,
standNumber: this.rows.serial_number standNumber: this.rows.serial_number,
connect_id:this.rows.connect_id
} }
if(this.rows.text_info=='发布稿(必读)'){ if(this.rows.text_info=='发布稿(必读)'){
params.fileType='1' params.fileType='1'
@@ -76,8 +76,8 @@
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
<a-form-model-item :label="$t('DisplayArea')" prop="areaId"> <a-form-model-item :label="$t('DisplayArea')" prop="showArea">
<a-select :placeholder="$t('SelectDisplayArea')" v-model="form.areaId" @change="handleChange"> <a-select :placeholder="$t('SelectDisplayArea')" v-model="form.showArea" @change="handleChange">
<a-select-option v-for="(item,index) in areaOptions" :key="item.id" :value="item.id"> <a-select-option v-for="(item,index) in areaOptions" :key="item.id" :value="item.id">
{{item.showArea}} {{item.showArea}}
</a-select-option> </a-select-option>
@@ -176,9 +176,14 @@
], ],
dbFieldTxt: [ dbFieldTxt: [
{ required: true, message: this.$t('PleaseEnterPropertyName'),trigger: 'blur'}, { required: true, message: this.$t('PleaseEnterPropertyName'),trigger: 'blur'},
{ min:1, max: 20, message: this.$t('cantExeed')+'20'+this.$t('characters'), trigger: 'blur' },
], ],
dbFieldName: [ dbFieldName: [
{ required: true, message: this.$t('PleaseEnterYourEnglishName'),trigger: 'blur'}, { required: true, message: this.$t('PleaseEnterYourEnglishName'),trigger: 'blur'},
{ min:1, max: 20, message: this.$t('cantExeed')+'20'+this.$t('characters'), trigger: 'blur' },
],
dbFieldEnName:[
{ max: 50, message: this.$t('cantExeed')+'50'+this.$t('characters'), trigger: 'blur' },
], ],
fieldShowType: [ fieldShowType: [
{ required: true, message: this.$t('PleaseSelectAttributeType'),trigger: 'change'}, { required: true, message: this.$t('PleaseSelectAttributeType'),trigger: 'change'},
@@ -198,7 +203,7 @@
isShowForm: [ isShowForm: [
{ required: true, message: this.$t('SelectWhetherDisplayList'),trigger: 'change'}, { required: true, message: this.$t('SelectWhetherDisplayList'),trigger: 'change'},
], ],
areaId: [ showArea: [
{ required: true, message: this.$t('SelectDisplayArea'),trigger: 'change'}, { required: true, message: this.$t('SelectDisplayArea'),trigger: 'change'},
], ],
isQuery: [ isQuery: [
@@ -111,8 +111,8 @@
columns: [ columns: [
{ {
title: this.$t('DisplayArea'), title: this.$t('DisplayArea'),
dataIndex: 'show_area', dataIndex: 'showArea',
key: 'show_rea', key: 'showArea',
align: "center", align: "center",
width: 100, width: 100,
}, },
@@ -120,13 +120,13 @@
title: this.$t('enName'), title: this.$t('enName'),
align: "center", align: "center",
width: 100, width: 100,
dataIndex: 'en_name', dataIndex: 'enName',
}, },
{ {
title: this.$t('Module'), title: this.$t('Module'),
align: "center", align: "center",
width: 100, width: 100,
dataIndex: 'item_text', dataIndex: 'isModel_dictText',
}, },
{ {
title: this.$t('SortNumber'), title: this.$t('SortNumber'),
@@ -162,6 +162,10 @@
{ required: true, message: this.$t('PleaseSelectModule'), trigger: 'change' }, { required: true, message: this.$t('PleaseSelectModule'), trigger: 'change' },
], ],
enName:[
{ max: 100, message: this.$t('CannotExceed100characters'), trigger: 'blur' },
],
showArea:[ showArea:[
{ required: true, message: this.$t('enterDisplayArea'), trigger: 'blur' }, { required: true, message: this.$t('enterDisplayArea'), trigger: 'blur' },
{ min:1, max: 50, message: this.$t('charactersLength'), trigger: 'blur' }, { min:1, max: 50, message: this.$t('charactersLength'), trigger: 'blur' },
@@ -184,9 +188,9 @@
let params={ let params={
...this.queryParams ...this.queryParams
} }
getAction(`tag/onlCgformArea/page`,params).then(res=>{ postAction(`tag/onlCgformArea/page`,params).then(res=>{
if(res.success){ if(res.success){
this.areaTable=res.result this.areaTable=[...res.result.records]
this.total=res.result.total this.total=res.result.total
} }
}) })
@@ -128,6 +128,7 @@
} }
.page{ .page{
margin-top: 20px; margin-top: 20px;
text-align: right;
} }
} }
</style> </style>
@@ -293,6 +293,7 @@
.tree-table{ .tree-table{
.page{ .page{
margin-top: 20px; margin-top: 20px;
text-align: right;
} }
} }
@@ -94,6 +94,7 @@
} }
.page{ .page{
margin-top: 20px; margin-top: 20px;
text-align: right;
} }
} }
</style> </style>
@@ -328,7 +328,7 @@
} }
.page{ .page{
margin-top: 20px; margin-top: 20px;
text-align: right;
} }
} }
.type-popover{ .type-popover{
@@ -282,6 +282,7 @@
if (res.success) { if (res.success) {
if (this.key == 1) { if (this.key == 1) {
this.$message.success(this.$t('OperationSuccessful')) this.$message.success(this.$t('OperationSuccessful'))
this.queryParam.pageNo=1
this.loadData(1) this.loadData(1)
} else if (this.key == 2) { } else if (this.key == 2) {
this.$message.success(this.$t('OperationSuccessful')) this.$message.success(this.$t('OperationSuccessful'))