commit
This commit is contained in:
@@ -1766,6 +1766,7 @@
|
|||||||
:visible.sync="OCRModel"
|
:visible.sync="OCRModel"
|
||||||
size="900px"
|
size="900px"
|
||||||
custom-class="demo-drawer"
|
custom-class="demo-drawer"
|
||||||
|
:before-close="OCRclose"
|
||||||
>
|
>
|
||||||
<div class="OCRstandardForComments">
|
<div class="OCRstandardForComments">
|
||||||
<div class="content" style="height: calc(100% - 57px);">
|
<div class="content" style="height: calc(100% - 57px);">
|
||||||
@@ -1790,6 +1791,14 @@
|
|||||||
label="文件名"
|
label="文件名"
|
||||||
align="center">
|
align="center">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="standFileClassify"
|
||||||
|
label="文本状态"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div>{{setWBType(scope.row.standFileClassify)}}</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -2553,10 +2562,20 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
setWBType (type) {
|
||||||
|
let text = ''
|
||||||
|
for (let a = 0; a < this.OCRoptions.length; a++) {
|
||||||
|
if (this.OCRoptions[a].attrField === type) {
|
||||||
|
text = this.OCRoptions[a].attrName
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return text
|
||||||
|
},
|
||||||
selectOCRChange (val) {
|
selectOCRChange (val) {
|
||||||
this.OCRDatas = val
|
this.OCRDatas = val
|
||||||
},
|
},
|
||||||
OCRclose () {
|
OCRclose () {
|
||||||
|
this.OCRData = []
|
||||||
this.OCRModel = false
|
this.OCRModel = false
|
||||||
},
|
},
|
||||||
OCRsubmit () {
|
OCRsubmit () {
|
||||||
@@ -2622,21 +2641,20 @@
|
|||||||
this.$message.warning('请选择一条数据进行' + text)
|
this.$message.warning('请选择一条数据进行' + text)
|
||||||
} else {
|
} else {
|
||||||
this.OCRModel = true
|
this.OCRModel = true
|
||||||
this.OCRLoading = false
|
this.OCRLoading = true
|
||||||
this.$http.get('lawss/sarStandFile/queryFileInfoNew', {
|
this.$http.get('lawss/sarStandFile/queryFileInfoNew', {
|
||||||
type: type,
|
type: type,
|
||||||
standId: this.selectedList[0]
|
standId: this.selectedList[0]
|
||||||
},{
|
},{
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
|
this.OCRLoading = false
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
if (res.data.length > 0) {
|
if (res.data.length > 0) {
|
||||||
this.OCRData = res.data
|
this.OCRData = res.data
|
||||||
this.OCRLoading = false
|
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('当前标准没有' + text + '文件')
|
this.$message.warning('当前标准没有' + text + '文件')
|
||||||
this.this.OCRData = []
|
this.this.OCRData = []
|
||||||
this.OCRLoading = false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -5302,6 +5320,7 @@
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.OCRoptions = res.data
|
this.OCRoptions = res.data
|
||||||
|
console.log(res.data);
|
||||||
})
|
})
|
||||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
||||||
_this: this
|
_this: this
|
||||||
|
|||||||
Reference in New Issue
Block a user