ocr文本状态修改

This commit is contained in:
caoyang
2022-04-06 10:05:15 +08:00
parent a4b9aa2a4d
commit 809dab9bd5
3 changed files with 29 additions and 20 deletions
+12 -4
View File
@@ -89,10 +89,18 @@
<span class="title-text-text">{{item.db_field_txt}}</span> <span class="title-text-text">{{item.db_field_txt}}</span>
</div> </div>
<a-form-model-item class="itemModel" :prop="item.db_field_name"> <a-form-model-item class="itemModel" :prop="item.db_field_name">
<j-dict-select-tag class="box-input" v-model="formInline[item.db_field_name]" <!-- <j-dict-select-tag class="box-input" v-model="formInline[item.db_field_name]"-->
:disabled="disabled" <!-- :disabled="disabled"-->
:placeholder="$t('PleaseSelect')+item.db_field_txt" :type="'select'" <!-- :placeholder="$t('PleaseSelect')+item.db_field_txt" :type="'select'"-->
:triggerChange="false" :dictCode="item.dict_field"/> <!-- :triggerChange="false" :dictCode="item.dict_field"/>-->
<a-select class="box-input" v-model="formInline[item.db_field_name]"
:disabled="disabled"
:placeholder="$t('PleaseSelect')+item.db_field_txt" @change="handleChange">
<a-select-option v-for="(element) in item.value_list" :value="element">
{{element}}
</a-select-option>
</a-select>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
+1 -1
View File
@@ -49,7 +49,7 @@
}, },
methods:{ methods:{
beforeUpload(file,fileList) { beforeUpload(file,fileList) {
console.log('file',this.accept) // console.log('file',this.accept)
this.fileTypeSatus=false this.fileTypeSatus=false
if(this.myfileList&&this.myfileList.length>=1){ if(this.myfileList&&this.myfileList.length>=1){
this.$message.warning('只能上传一个文件') this.$message.warning('只能上传一个文件')
@@ -170,7 +170,7 @@
}) })
}, },
afterVisibleChange(val) { afterVisibleChange(val) {
console.log('visible', val); // console.log('visible', val);
}, },
onClose() { onClose() {
this.visible = false; this.visible = false;
@@ -242,22 +242,23 @@
title:this.rows[0].title, title:this.rows[0].title,
} }
if(this.rows[0].text_info=='发布稿(必读)'){ params.fileType=this.rows[0].text_info
params.fileType='1' // if(this.rows[0].text_info=='发布稿(必读)'){
}else if(this.rows[0].text_info=='增补件(必读)'){ // params.fileType='1'
params.fileType='2' // }else if(this.rows[0].text_info=='增补件(必读)'){
}else if(this.rows[0].text_info=='报批稿'){ // params.fileType='2'
params.fileType='3' // }else if(this.rows[0].text_info=='报批稿'){
}else if(this.rows[0].text_info=='征求意见稿'){ // params.fileType='3'
params.fileType='4' // }else if(this.rows[0].text_info=='征求意见稿'){
}else if(this.rows[0].text_info=='测试程序'){ // params.fileType='4'
params.fileType='5' // }else if(this.rows[0].text_info=='测试程序'){
}else if(this.rows[0].text_info=='相关资料'){ // params.fileType='5'
params.fileType='6' // }else if(this.rows[0].text_info=='相关资料'){
} // params.fileType='6'
// }
let formData = new FormData() let formData = new FormData()
Object.keys(params).forEach((key) => { Object.keys(params).forEach((key) => {
console.log('key',key,params[key]) // console.log('key',key,params[key])
formData.append(key, params[key]); formData.append(key, params[key]);
}); });
// console.log('formData',params,formData.getAll) // console.log('formData',params,formData.getAll)