batteryDrawe.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <view>
  3. <uni-forms :modelValue="infodata">
  4. <uni-forms-item label="连接状态:" name="name" label-align="right" label-width="120px">
  5. <uni-easyinput type="text" v-model="infodata.comState?'通讯正常':'通讯异常' || '-'" placeholder="请输入" disabled/>
  6. </uni-forms-item>
  7. <uni-forms-item label="电池编号:" name="name" label-align="right" label-width="120px">
  8. <uni-easyinput type="text" v-model="infodata.sn || '-'" placeholder="请输入" disabled/>
  9. </uni-forms-item>
  10. <uni-forms-item label="SOC:" name="name" label-align="right" label-width="120px">
  11. <uni-easyinput type="text" v-model="infodata.soc || '-'" placeholder="请输入" disabled/>
  12. </uni-forms-item>
  13. <uni-forms-item label="SOH:" name="name" label-align="right" label-width="120px">
  14. <uni-easyinput type="text" v-model="infodata.soh || '-'" placeholder="请输入" disabled/>
  15. </uni-forms-item>
  16. </uni-forms>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. name:'batteryDrawe',
  22. props:['infodata'],
  23. data() {
  24. return {
  25. }
  26. },
  27. }
  28. </script>
  29. <style lang="scss" scoped>
  30. ::v-deep .uni-forms-item__content{
  31. background: rgba(255,255,255,0);
  32. border-radius: 2px 2px 2px 2px;
  33. border: 1px solid #263042;
  34. .uni-easyinput__content{
  35. background: none !important;
  36. border: none !important;
  37. color: #fff;
  38. }
  39. }
  40. </style>