Ver código fonte

可视化统计

wangtong 1 ano atrás
pai
commit
a9b2d92c3a

+ 3 - 2
src/components/ConstructionDetails/index.vue

@@ -237,7 +237,7 @@ export default {
       'self_closing_valve_type',
 
   ],
-  props: ['currentCollapses','nodeDetailType','enginType','status'],
+  props: ['currentCollapses','nodeDetailType','enginType','status','zEngineeringNodeBo'],
   data() {
     return {
       currentDicts: [],              // 当前类型工程节点项
@@ -329,7 +329,8 @@ export default {
     // 提交审核
     checkingSubmit(){
       try {
-        this.checkingInfo.engInfoId = this.currentCollapses[0].id
+        console.log(this.currentCollapses[0])
+        this.checkingInfo.engInfoId = this.zEngineeringNodeBo.id
       } catch (error) {
         this.checkingInfo.engInfoId = null
       }

+ 3 - 0
src/views/zdsz/engineeringCivil/index.vue

@@ -432,6 +432,7 @@
     <ConstructionDetails
       ref="ConstructionDetails"
       :currentCollapses="currentCollapses"
+      :zEngineeringNodeBo="zEngineeringNodeBo"
       :type="nodeDetailType"
       @updateNodeOption="updateNodeOption"
       @checkWorking="checkWorking"
@@ -858,6 +859,7 @@ export default {
         completionStatus: undefined,
         enginClassification: undefined,
         imgUrl: undefined,
+        zEngineeringNodeBo:{},
         zEngineeringNodeBoList: {
           type: undefined,
           zEngineeringInfoBo: {
@@ -1078,6 +1080,7 @@ export default {
         try {
           this.updateParams = res.data
           this.currentCollapses = res.data.zEngineeringNodeBo.zEngineeringInfoBoList
+          this.zEngineeringNodeBo=res.data.zEngineeringNodeBo
         } catch (error) {
           this.currentCollapses = [];
         }