diff --git a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue
index cd6263266..d5870ed0a 100644
--- a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue
+++ b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue
@@ -409,7 +409,7 @@
数据加载中……
@@ -1947,6 +1947,8 @@ export default {
},
data() {
return {
+ OCRSubmitLoading: false,
+ OCRSubmitButton: '',
OCRType: '',
OCRoptions: [],
OCRDatas: [],
@@ -2671,6 +2673,7 @@ export default {
} else if (this.OCRDatas.length === 0) {
this.$message.warning('请选择一个文件')
} else {
+ this.OCRSubmitLoading = true
if (this.OCRType === '0') {
let json = {
standNumber: this.ocrList[0].standYear ? this.ocrList[0].standSortShow + ' ' + this.ocrList[0].standNumber + '-' + this.ocrList[0].standYear : this.ocrList[0].standSortShow + ' ' + this.ocrList[0].standNumber,
@@ -2687,6 +2690,7 @@ export default {
},
(res) => {
this.OCRModel = false
+ this.OCRSubmitLoading = false
if (res.ok) {
this.$message.success('OCR实别成功')
} else {
@@ -2705,6 +2709,7 @@ export default {
_this: this
}, res => {
this.OCRModel = false
+ this.OCRSubmitLoading = false
if (res.ok) {
this.$message.success('拆分成功')
} else {
@@ -2720,12 +2725,15 @@ export default {
if (type === '0') {
text = 'OCR识别'
this.OCRTitle = '选择OCR识别文件'
+ this.OCRSubmitButton = '转换'
} else if (type === '1') {
text = '拆分'
this.OCRTitle = '选择拆分文件'
+ this.OCRSubmitButton = '拆分'
} else if (type === '2') {
text = '编辑'
this.OCRTitle = '选择编辑文件'
+
}
if (this.ocrList.length > 1 && (type === '0' || type === '1' || type === '2')) {
this.$message.warning('仅能选择一条数据进行' + text)