Browse Source

自动化节点配置适配示范线配置功能

oyq28 3 years ago
parent
commit
647b660edf

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

@@ -191,6 +191,7 @@ export default {
   },
   data () {
     return {
+      isLine:false,
       type: 'add',
       rowData: {},
       isShow: false,
@@ -202,7 +203,7 @@ export default {
       parentIds: [],
       machineNodes:[{label:'上传程序',value:1},{label:'执行程序',value:2},{label:'刀具校验',value:3}],
       agvNodes:[{label:'舱体线接驳位',value:"1"},{label:'框体线接驳位',value:"2"},{label:'保障中心线接驳位',value:"3"}],
-      robotNodes:[{label:'舱体线机器人',value:"1"},{label:'伺服舵机',value:"2"},{label:'框体线机器人',value:"3"}],
+      robotNodes:[{label:'舱体线机器人',value:"1"},{label:'伺服舵机',value:"2"},{label:'框体线机器人',value:"3"}],      
       robotAction:[{label:'取',value:1},{label:'放',value:2}],
       actionTarget: [{label:'本设备',value:"1"},{label:'接驳位',value:"2"}],
       dicts:{
@@ -217,7 +218,9 @@ export default {
     }
   },
   created() {
-    
+    if(!this.isLine){
+        this.robotNodes = [{label:'质量中心机器人',value:"1"},{label:'柔性线机器人',value:"2"},{label:'智能单元机器人',value:"3"}];
+    }    
   },
   watch: {
 	  	// 如果rowData.id的值改变了

+ 19 - 4
imcs-ui/src/views/zuihou/resourceProductMgr/resourcesMgr/components/TenantCodeEdit.vue

@@ -54,11 +54,21 @@
               <el-tag  v-if="row.category == '2'"> 
                       AGV        	      
               </el-tag>
-              <el-tag  v-if="row.category == '3'"> 
-                    {{ row.resourceId == 1 ? '舱体线机器人':(row.resourceId == 2 ? '伺服舵机': '框体线机器人' )  }}                            	      
+              <el-tag  v-if="row.category == '3'">
+                    <span v-if="isLine"> 
+                     {{ row.resourceId == 1 ? '质量中心机器人':(row.resourceId == 2 ? '柔性线机器人': '智能单元机器人' )  }}
+                    </span>
+                    <span v-else>
+                      {{ row.resourceId == 1 ? '舱体线机器人':(row.resourceId == 2 ? '伺服舵机': '框体线机器人' )  }} 
+                    </span>  
               </el-tag>
               <el-tag  v-if="row.category == '4'"> 
-                    {{ row.resourceId == 1 ? '舱体线机器人':(row.resourceId == 2 ? '伺服舵机': '框体线机器人' )  }}                            	      
+                   <span v-if="isLine"> 
+                     {{ row.resourceId == 1 ? '质量中心机器人':(row.resourceId == 2 ? '柔性线机器人': '智能单元机器人' )  }}
+                    </span>
+                    <span v-else>
+                      {{ row.resourceId == 1 ? '舱体线机器人':(row.resourceId == 2 ? '伺服舵机': '框体线机器人' )  }} 
+                    </span>                                               	      
               </el-tag>
           </template>        
       </el-table-column> 
@@ -144,6 +154,7 @@ export default {
   },
   data () {
     return {
+      isLine:true,
       type: 'add',
       rowData: {},
       tenant: this.initTenant(),
@@ -178,7 +189,11 @@ export default {
 	},
   created() {
     //this.fetch()
-    this.robotNodes = {1:'舱体线机器人',2:'伺服舵机',3:'框体线机器人'}
+    if(!this.isLine){
+      this.robotNodes = {'1':'质量中心机器人','2':'柔性线机器人','3':'智能单元机器人'}
+    }else{
+      this.robotNodes = {'1':'舱体线机器人','2':'伺服舵机','3':'框体线机器人'}
+    }    
   },
   computed: {
     isVisible: {