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>
</div>
<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]"
:disabled="disabled"
:placeholder="$t('PleaseSelect')+item.db_field_txt" :type="'select'"
:triggerChange="false" :dictCode="item.dict_field"/>
<!-- <j-dict-select-tag class="box-input" v-model="formInline[item.db_field_name]"-->
<!-- :disabled="disabled"-->
<!-- :placeholder="$t('PleaseSelect')+item.db_field_txt" :type="'select'"-->
<!-- :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>
</div>
</a-col>
+1 -1
View File
@@ -49,7 +49,7 @@
},
methods:{
beforeUpload(file,fileList) {
console.log('file',this.accept)
// console.log('file',this.accept)
this.fileTypeSatus=false
if(this.myfileList&&this.myfileList.length>=1){
this.$message.warning('只能上传一个文件')
@@ -170,7 +170,7 @@
})
},
afterVisibleChange(val) {
console.log('visible', val);
// console.log('visible', val);
},
onClose() {
this.visible = false;
@@ -242,22 +242,23 @@
title:this.rows[0].title,
}
if(this.rows[0].text_info=='发布稿(必读)'){
params.fileType='1'
}else if(this.rows[0].text_info=='增补件(必读)'){
params.fileType='2'
}else if(this.rows[0].text_info=='报批稿'){
params.fileType='3'
}else if(this.rows[0].text_info=='征求意见稿'){
params.fileType='4'
}else if(this.rows[0].text_info=='测试程序'){
params.fileType='5'
}else if(this.rows[0].text_info=='相关资料'){
params.fileType='6'
}
params.fileType=this.rows[0].text_info
// if(this.rows[0].text_info=='发布稿(必读)'){
// params.fileType='1'
// }else if(this.rows[0].text_info=='增补件(必读)'){
// params.fileType='2'
// }else if(this.rows[0].text_info=='报批稿'){
// params.fileType='3'
// }else if(this.rows[0].text_info=='征求意见稿'){
// params.fileType='4'
// }else if(this.rows[0].text_info=='测试程序'){
// params.fileType='5'
// }else if(this.rows[0].text_info=='相关资料'){
// params.fileType='6'
// }
let formData = new FormData()
Object.keys(params).forEach((key) => {
console.log('key',key,params[key])
// console.log('key',key,params[key])
formData.append(key, params[key]);
});
// console.log('formData',params,formData.getAll)