|
@@ -23,10 +23,10 @@
|
|
<uni-data-select v-model="fromData.setType" :localdata="fromData.arrType" @change="changeId">
|
|
<uni-data-select v-model="fromData.setType" :localdata="fromData.arrType" @change="changeId">
|
|
</uni-data-select>
|
|
</uni-data-select>
|
|
</uni-forms-item>
|
|
</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"/>
|
|
<uni-easyinput type="number" v-model="fromData.powerNum" placeholder="请输入" maxlength="4"/>
|
|
<view class="kwh">
|
|
<view class="kwh">
|
|
- KWH
|
|
|
|
|
|
+ {{fromData.setType == 2 ?'%':'kWh'}}
|
|
</view>
|
|
</view>
|
|
</uni-forms-item>
|
|
</uni-forms-item>
|
|
</uni-forms>
|
|
</uni-forms>
|
|
@@ -95,7 +95,12 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
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
|
|
this.fromData.cangnum = this.infodata.chargerInfoVo.chargerCode
|
|
}
|
|
}
|
|
}
|
|
}
|