123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <template>
- <view>
- <uni-forms :modelValue="infodata">
- <uni-forms-item label="当前充电:" name="name" label-align="right" label-width="120px">
- <uni-easyinput type="text" v-model="infodata.comState?'通讯正常':'通讯异常' || '-'" placeholder="请输入"
- disabled />
- </uni-forms-item>
- <uni-forms-item label="枪号:" name="arr" label-width="120px" label-align="right" >
- <uni-data-select v-model="pppp" :localdata="infodata.arr" @change="changeId"></uni-data-select>
- </uni-forms-item>
- <uni-forms-item label="按类型设置:" name="arr" label-width="120px" label-align="right" >
- <uni-data-select v-model="pppp" :localdata="infodata.arr" @change="changeId"></uni-data-select>
- </uni-forms-item>
- <uni-forms-item label="充电功率:" name="name" label-align="right" label-width="120px">
- <uni-easyinput type="text" v-model="infodata.soh || '-'" placeholder="请输入" />
- <view class="kwh">
- KWH
- </view>
- </uni-forms-item>
- </uni-forms>
- </view>
- </template>
- <script>
- export default {
- name: 'batteryDrawe',
- // props: ['infodata'],
- data() {
- return {
- pppp:'',
- infodata:{
- arr:[{
- text:'a枪',
- value:'0'
- },{text:'b枪',
- value:'1'}],
- soh:1,
- comState:1
- },
- fromData:{
-
- }
-
- }
- },
- methods:{
- changeId(){
- console.log(123)
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- ::v-deep .uni-forms-item__content {
- background: rgba(255, 255, 255, 0);
- border-radius: 2px 2px 2px 2px;
- border: 1px solid #263042;
- .uni-easyinput__content {
- background: none !important;
- border: none !important;
- color: #fff;
- }
- }
- .kwh {
- width: 50px;
- height: 35px;
- background: #263042;
- font-size: 14px;
- font-weight: 400;
- color: #4C5D71;
- line-height: 35px;
- position: absolute;
- right: 0;
- top: 0px;
- }
- ::v-deep .uni-select__selector{
- background: #111827;
- border:1px solid #263042;
- color: #606266;
- z-index: 9999999;
- }
- ::v-deep .uni-select{
- border: none;
- }
- ::v-deep .uni-popper__arrow::after{
- display: none;
- }
- ::v-deep .uni-popper__arrow{
- display: none;
- }
- </style>
|