Browse Source

format 3_temps and delete console

haojianlong 5 years ago
parent
commit
ff82bff138

+ 7 - 2
src/components/config_point/dictionaryCascader.vue

@@ -7,6 +7,7 @@ import {
   getDataDictionary,//查询信息点
   queryPhysicsAllType,//查询所有部件类型
   queryDictionaryHead,//查询所有空间类型
+
 } from "@/api/scan/request"
 import { mapGetters, mapActions } from "vuex";
 import tools from "@/utils/scan/tools";
@@ -71,8 +72,8 @@ export default {
         this.getDataPoint(val[1])
       } else if (type == "Component" && val.length == 2) {
         this.getDataPoint(val[1])
-      } else if (type == "System" && val.length == 2) {
-        this.getDataPoint(val[1])
+      } else if (type == "System" && val.length == 3) {
+        this.getDataPoint(val[2])
       } else if (type == "Space" && val.length == 2) {
         this.getDataPoint(val[1])
       } else if (singleStr.indexOf(type) > -1) {
@@ -87,6 +88,10 @@ export default {
       queryPhysicsAllType('Component', res => {
         this.options[4].children = this.formatOptions(res.Content)
       })
+      queryPhysicsAllType('Major-System', res => {
+        let data = JSON.parse(JSON.stringify(res.Content).replace(/ListClassDef/g, 'children'));
+        this.options[5].children = this.formatOptions(data)
+      })
       let param1 = {
         Distinct: true,
         Filters: "ParentId='Space'"

File diff suppressed because it is too large
+ 615 - 634
src/components/config_point/step3_point/3_temps.vue