batteryDrawe.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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="请输入"
  6. disabled />
  7. </uni-forms-item>
  8. <uni-forms-item label="枪号:" name="arr" label-width="120px" label-align="right" >
  9. <uni-data-select v-model="pppp" :localdata="infodata.arr" @change="changeId"></uni-data-select>
  10. </uni-forms-item>
  11. <uni-forms-item label="按类型设置:" name="arr" label-width="120px" label-align="right" >
  12. <uni-data-select v-model="pppp" :localdata="infodata.arr" @change="changeId"></uni-data-select>
  13. </uni-forms-item>
  14. <uni-forms-item label="充电功率:" name="name" label-align="right" label-width="120px">
  15. <uni-easyinput type="text" v-model="infodata.soh || '-'" placeholder="请输入" />
  16. <view class="kwh">
  17. KWH
  18. </view>
  19. </uni-forms-item>
  20. </uni-forms>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. name: 'batteryDrawe',
  26. // props: ['infodata'],
  27. data() {
  28. return {
  29. pppp:'',
  30. infodata:{
  31. arr:[{
  32. text:'a枪',
  33. value:'0'
  34. },{text:'b枪',
  35. value:'1'}],
  36. soh:1,
  37. comState:1
  38. },
  39. fromData:{
  40. }
  41. }
  42. },
  43. methods:{
  44. changeId(){
  45. console.log(123)
  46. }
  47. }
  48. }
  49. </script>
  50. <style lang="scss" scoped>
  51. ::v-deep .uni-forms-item__content {
  52. background: rgba(255, 255, 255, 0);
  53. border-radius: 2px 2px 2px 2px;
  54. border: 1px solid #263042;
  55. .uni-easyinput__content {
  56. background: none !important;
  57. border: none !important;
  58. color: #fff;
  59. }
  60. }
  61. .kwh {
  62. width: 50px;
  63. height: 35px;
  64. background: #263042;
  65. font-size: 14px;
  66. font-weight: 400;
  67. color: #4C5D71;
  68. line-height: 35px;
  69. position: absolute;
  70. right: 0;
  71. top: 0px;
  72. }
  73. ::v-deep .uni-select__selector{
  74. background: #111827;
  75. border:1px solid #263042;
  76. color: #606266;
  77. z-index: 9999999;
  78. }
  79. ::v-deep .uni-select{
  80. border: none;
  81. }
  82. ::v-deep .uni-popper__arrow::after{
  83. display: none;
  84. }
  85. ::v-deep .uni-popper__arrow{
  86. display: none;
  87. }
  88. </style>