wy 1 tahun lalu
induk
melakukan
c4ef4585c9
1 mengubah file dengan 8 tambahan dan 3 penghapusan
  1. 8 3
      pages/equipment-monitoring/components/batteryDrawe.vue

+ 8 - 3
pages/equipment-monitoring/components/batteryDrawe.vue

@@ -23,10 +23,10 @@
 					<uni-data-select v-model="fromData.setType" :localdata="fromData.arrType" @change="changeId">
 					</uni-data-select>
 				</uni-forms-item>
-				<uni-forms-item label="充电功率:" name="name" label-align="right" label-width="120px">
+				<uni-forms-item label="充电功率:" name="name" label-align="right" label-width="120px" v-if="fromData.setType !=0">
 					<uni-easyinput type="number" v-model="fromData.powerNum" placeholder="请输入" maxlength="4"/>
 					<view class="kwh">
-						KWH
+						{{fromData.setType == 2 ?'%':'kWh'}}
 					</view>
 				</uni-forms-item>
 			</uni-forms>
@@ -95,7 +95,12 @@
 			}
 		},
 		mounted() {
-			this.fromData.comState = this.infodata.chgType,
+			this.fromData.comState = this.infodata.chgType
+			if(this.fromData.comState == 0){ //0是插枪充电 1是线束充电
+				this.fromData.arr = [ {text: "A枪",value: "0",},{text: "B枪",value: "1",}]
+			}else{
+				this.fromData.arr = [ {text: "A枪",value: "0",}]
+			}
 			this.fromData.cangnum = this.infodata.chargerInfoVo.chargerCode
 		}
 	}