|
@@ -45,7 +45,11 @@
|
|
|
</el-dialog>
|
|
|
<el-dialog title="结果展示" :visible.sync="resultShowVisible" :before-close="resultShowDialogClose" width="800px">
|
|
|
<div style="margin: 10px 0px">{{ resultShowData.result }}</div>
|
|
|
- <el-image style="width: 500px" :src="resultShowData.ossId" :preview-src-list="[resultShowData.ossId]"></el-image>
|
|
|
+ <el-image style="width: 500px" :src="resultShowData.url" :preview-src-list="[resultShowData.url]"></el-image>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="resultShowDialogClose">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="resultShowDialogClose">确 定</el-button>
|
|
|
+ </span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -62,6 +66,7 @@ import Treeselect from '@riophae/vue-treeselect'
|
|
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
|
|
import { getAirConfiguration } from '@/api/als/airConfiguration'
|
|
|
import { executeFault } from '@/api/als/algorithm'
|
|
|
+import { getListByIdsApi } from '@/api/als/oss'
|
|
|
|
|
|
export default {
|
|
|
name: 'FaultDiagnosis',
|
|
@@ -258,7 +263,7 @@ export default {
|
|
|
allAirConfig: [],
|
|
|
percentage: 0,
|
|
|
resultShowData: {
|
|
|
- ossId: '',
|
|
|
+ url: '',
|
|
|
result: ''
|
|
|
}
|
|
|
}
|
|
@@ -407,9 +412,9 @@ export default {
|
|
|
},
|
|
|
|
|
|
resultShowDialogClose() {
|
|
|
- this.resultShowVisible = true
|
|
|
+ this.resultShowVisible = false
|
|
|
this.resultShowData = {
|
|
|
- ossId: '',
|
|
|
+ url: '',
|
|
|
result: ''
|
|
|
}
|
|
|
},
|
|
@@ -430,9 +435,16 @@ export default {
|
|
|
|
|
|
checkRelustShow(row) {
|
|
|
this.resultShowData = JSON.parse(row.resultContent)
|
|
|
+ this.resultShowData.url = this.getImgUrl(JSON.parse(row.resultContent).ossId)
|
|
|
+ this.resultShowData.result = JSON.parse(res.data.data).result
|
|
|
this.resultShowVisible = true
|
|
|
},
|
|
|
|
|
|
+ async getImgUrl(ossId) {
|
|
|
+ const url = await getListByIdsApi(ossId)
|
|
|
+ return url
|
|
|
+ },
|
|
|
+
|
|
|
async beginExecute() {
|
|
|
this.progressVisible = true
|
|
|
|
|
@@ -455,7 +467,9 @@ export default {
|
|
|
type: 'success',
|
|
|
message: '执行成功!'
|
|
|
})
|
|
|
- this.resultShowData = JSON.parse(res.data)
|
|
|
+ // this.resultShowData = JSON.parse(res.data)
|
|
|
+ this.resultShowData.url = this.getImgUrl(JSON.parse(res.data.data).ossId)
|
|
|
+ this.resultShowData.result = JSON.parse(res.data.data).result
|
|
|
this.resultShowVisible = true
|
|
|
// this.$alert(`故障诊断结果为:${result}`, '故障诊断结果', {
|
|
|
// confirmButtonText: '确定'
|