Ver código fonte

修改页面数据设备名称以及bug472

oyq28 3 anos atrás
pai
commit
ba26dfc032

+ 4 - 3
imcs-ui/src/views/zuihou/resourceProductMgr/resourcesMgr/components/AutoCode.vue

@@ -289,8 +289,9 @@
 		},
 		setting(row){	
 		   //this.rowData.businessId = row.id		   		   
-		   this.codeData = row
-           this.$refs.tenantCode.setTenant(false, this.rowData)	   
+		   this.codeData = row		   
+		   this.codeData.productionResourceName = this.rowData.name
+           this.$refs.tenantCode.setTenant(false, this.codeData)	   
 		   this.$refs.tenantCode.type = "tenantCode"		   
 	       this.tenantCodeVisible = true
 		},
@@ -319,7 +320,7 @@
 	          type: "warning"
 	        })
 	        return
-	      }		  		  
+	      }  		  
 	      this.$refs.edit.setTenant(row, this.rowData)
 	      this.$refs.edit.type = "edit"
 	      this.dialog.title = this.$t("common.edit")

+ 1 - 1
imcs-ui/src/views/zuihou/resourceProductMgr/resourcesMgr/components/AutoCodeEdit.vue

@@ -50,7 +50,7 @@
                           <div v-if=" tenant.category=='1' " >
                             <el-form-item label='设备:'>
                                  <template>
-                                      <span>{{ this.rowData.name }}</span>
+                                      <span>{{ this.rowData.productionResourceName }}</span>
                                  </template>
                             </el-form-item>  
                             <el-form-item label='指令:'>