chuwu 5 years ago
parent
commit
d4bff34fed

+ 4 - 1
src/fetch/point_http.js

@@ -327,4 +327,7 @@ export function deleteRelationList(param, success) {
 /**项目接口 */
 export function synchronizeProj(success) {
     return post(`${point}/project/synchronize`, {}, success)
-}
+}
+
+//ai自动识别
+// export function

+ 23 - 4
src/views/point/config_point/steps/step2.vue

@@ -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: {

+ 3 - 1
src/views/project_setting/collection_setting/index.vue

@@ -55,7 +55,9 @@
                         </div>
                     </el-tab-pane>
                 </el-tabs>
-                <div v-else class="right_main_msg">←请选择设备族</div>
+                <div v-else class="center">
+                    <i class="iconwushuju iconfont"></i> 请选择设备族
+                </div>
             </div>
         </main>
         <!-- 请求提示弹窗 -->