ソースを参照

故障诊断模块完成

Koishi 3 年 前
コミット
3b540af198
1 ファイル変更12 行追加3 行削除
  1. 12 3
      src/views/malfunctionDiagnose/index.vue

+ 12 - 3
src/views/malfunctionDiagnose/index.vue

@@ -95,7 +95,13 @@
       custom-class="modal"
       :close-on-click-modal="true"
     >
-      123123
+      <el-tree
+        style="height: 600px; overflow-y: scroll"
+        node-key="activeId"
+        :data="treeData"
+        :default-expanded-keys="['0']"
+        :props="{ children: 'children', label: 'name' }"
+      ></el-tree>
     </el-dialog>
   </div>
 </template>
@@ -180,7 +186,6 @@ export default {
             },
             click(e, row) {
               that.getTree(row);
-              that.dialogShow = true;
             },
           },
         ],
@@ -256,10 +261,14 @@ export default {
         method: "POST",
         subUrl: "stopanalysis/stopAnalysisTree",
         data: {
+          mainId: item.id,
           wtId: item.wtid,
+          values: item.judegvulue,
         },
         success(res) {
-          console.log(123123, res);
+          res.data[0].activeId = "0";
+          that.treeData = res.data;
+          that.dialogShow = true;
         },
       });
     },