|  | @@ -13,7 +13,7 @@
 | 
	
		
			
				|  |  |            v-for="item in portList"
 | 
	
		
			
				|  |  |            :key="item.id"
 | 
	
		
			
				|  |  |            :label="item.name"
 | 
	
		
			
				|  |  | -          :value="item.name"
 | 
	
		
			
				|  |  | +          :value="type=='id'?item.id:item.name"
 | 
	
		
			
				|  |  |          >
 | 
	
		
			
				|  |  |          </el-option>
 | 
	
		
			
				|  |  |        </el-select>
 | 
	
	
		
			
				|  | @@ -148,6 +148,7 @@ export default {
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    props: {
 | 
	
		
			
				|  |  |      value: String,
 | 
	
		
			
				|  |  | +    type: String,
 | 
	
		
			
				|  |  |      disabled: Boolean
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    model: {
 | 
	
	
		
			
				|  | @@ -174,7 +175,11 @@ export default {
 | 
	
		
			
				|  |  |        this.$refs.crud.toggleSelection();
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      importPort() {
 | 
	
		
			
				|  |  | -      this.$emit("balabala", this.selectionList[0].name);
 | 
	
		
			
				|  |  | +      if(this.type == 'id'){
 | 
	
		
			
				|  |  | +        this.$emit("balabala", this.selectionList[0].id);
 | 
	
		
			
				|  |  | +      }else {
 | 
	
		
			
				|  |  | +        this.$emit("balabala", this.selectionList[0].name);
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |        this.portinfoVisible = false;
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      //打印
 |