yunxing 4 rokov pred
rodič
commit
d9790a790e

+ 16 - 2
src/views/equipmentFacilities/MainEquipmentDetail.vue

@@ -144,9 +144,23 @@ export default {
         //  manufacturer, 生产厂商  如果没有传递‘--’
         // sbxh,    设备类型  如果没有传递‘--’
         // type_code    自定义分类内码
+        /*  classqc: "供配电系统/高压配电柜/进线柜"
+        classstructureid: "1511"
+        floorcode: "B2"
+        importance: 1
+        is_detecting: false
+        is_exception: false
+        manufacturer: "上海中发电气(集团)股份有限公司"
+        sbxh: "GCS"
+        sl: 4
+        type_code: "gd011"
+        type_name: "高压进线柜" */
         // TODO: 参数修改
-        let { type_code, brand, classstructureid, manufacturer, sbxh } = this.$route.params
-        this.title = '高压进线柜(4)'
+        console.log(this.$route)
+        let { type_name, sl, type_code, brand, classstructureid, manufacturer, sbxh } = this.$route.params
+        type_name = type_name || '高压进线柜'
+        sl = sl || (Math.random() * 100).toFixed(0)
+        this.title = `${type_name}(${sl})`
         this.type_code = type_code || 'nt011'
         this.brand = brand || '--'
         this.classstructureid = classstructureid || '1700'