qinhouyu 1 سال پیش
والد
کامیت
4c0088646d

+ 3 - 1
src/components/EngineePipe/index.vue

@@ -267,7 +267,7 @@ export default {
         this.$refs.obsFileUpload.fileList=this.queryParams.files
       }
     },
-    async openDialog(data, type) {
+    async openDialog(data, type,sata) {
       await this.reset();
       this.currentType = type
       if (this.currentType == 'add') {
@@ -277,6 +277,8 @@ export default {
       }
       this.queryParams.enginId = data.id
       this.queryParams.type = data.type
+      //带值
+      this.queryParams.enginName = sata.enginName?sata.enginName:'';
       this.open = true
     },
     nodeCancel() {

+ 1 - 1
src/views/zdsz/engineeringDangerous/index.vue

@@ -880,7 +880,7 @@ export default {
       this.$refs.enginPipe.openDialog({
         id: data.id,
         type: "危险作业工程"
-      }, 'add')
+      }, 'add',data)
     },
     getUrl(url) {
       this.zEngineeringInfoBo.zEngiineeringPhotoBoList = this.$refs.obsImageUpload.fileList ? this.$refs.obsImageUpload.fileList.map(e => e.url) : [];

+ 1 - 1
src/views/zdsz/engineeringIndustry/index.vue

@@ -535,7 +535,7 @@ export default {
       this.$refs.enginPipe.openDialog({
         id: data.id,
         type: this.form.zEngineeringNodeBo.type
-      }, 'add')
+      }, 'add',data)
     },
     // 历史查询
     viewSource(e){

+ 1 - 1
src/views/zdsz/engineeringInfrastructure/index.vue

@@ -578,7 +578,7 @@ export default {
     addNewPipe(data){
       this.$refs.enginPipe.openDialog({
         id:data.id
-      },'add')
+      },'add',data)
     },
     nodeCancel(){
       this.nodeDetailVisible = false