|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div id="handsonStep2">
|
|
|
<div class="btns-view">
|
|
|
- <el-button style="width:164px">AI自动识别</el-button>
|
|
|
+ <el-button style="width:164px" @click="aiDiscern">AI自动识别</el-button>
|
|
|
<el-button @click="discern(1)">批量识别设备类型关键字</el-button>
|
|
|
<el-button @click="discern(2)">批量识别设备参数关键字</el-button>
|
|
|
<el-button style="width:164px" @click="examine">检查&微调</el-button>
|
|
@@ -33,6 +33,13 @@
|
|
|
<own-dialog :width="'500px'" :index="true" title="位置标签" :dialogVisible="localtionDialog" @cancel="localFalgChange">
|
|
|
<localtion-falg :renderData="renderData" @changeTag="changeLoc"></localtion-falg>
|
|
|
</own-dialog>
|
|
|
+ <own-dialog :width="'500px'" :footer="footer" :index="true" :escape="false" :isModel="false" title="AI自动识别" :dialogVisible="aiDialog" @confirm="isTrue" @cancel="localFalgChange">
|
|
|
+ <!-- <localtion-falg :renderData="renderData" @changeTag="changeLoc"></localtion-falg> -->
|
|
|
+ <el-progress v-if="isTrue" :text-inside="true" :stroke-width="18" :percentage="usedNum"></el-progress>
|
|
|
+ <div v-else>
|
|
|
+ <p>确认要人工智能识别么?</p>
|
|
|
+ </div>
|
|
|
+ </own-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -80,7 +87,11 @@
|
|
|
},
|
|
|
localtionDialog: false,
|
|
|
renderData: {},
|
|
|
- isLoading: false
|
|
|
+ isLoading: false,
|
|
|
+ aiDialog: false,
|
|
|
+ isTrue: false,//是否确定人工智能升级
|
|
|
+ usedNum: 0,//识别百分比
|
|
|
+ footer:{}
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -109,6 +120,14 @@
|
|
|
// this.localtionDialog = true
|
|
|
// }
|
|
|
},
|
|
|
+ //人工智能识别
|
|
|
+ aiDiscern(){
|
|
|
+ // this.aiDialog = true
|
|
|
+ },
|
|
|
+ //确认人工识别
|
|
|
+ isTrue(){
|
|
|
+
|
|
|
+ },
|
|
|
changeLoc(val) {
|
|
|
this.renderData.LocationFlag = val
|
|
|
this.changeFlag = false
|
|
@@ -288,7 +307,7 @@
|
|
|
getData() {
|
|
|
this.isLoading = true
|
|
|
let width, param, settings
|
|
|
- width = (document.getElementById("app").clientWidth - 50) / headerArr.length
|
|
|
+ // width = (document.getElementById("app").clientWidth - 50) / headerArr.length
|
|
|
param = {
|
|
|
type: this.protocolType,
|
|
|
data: {
|
|
@@ -310,7 +329,7 @@
|
|
|
data: res.Content,
|
|
|
colHeaders: changeHeader(headerArr),
|
|
|
columns: showTypes(headerArr),
|
|
|
- colWidths: width,
|
|
|
+ // colWidths: width,
|
|
|
rowHeights: 30,
|
|
|
maxRows: res.Content.length,
|
|
|
contextMenu: {
|