FaultDrawer.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <view>
  3. <uni-forms :modelValue="alarmFrom">
  4. <uni-forms-item label="告警设备:" name="equipment" label-align="right" label-width="120px">
  5. <uni-easyinput type="text" v-model="alarmFrom.equipment || '-'" disabled />
  6. </uni-forms-item>
  7. <uni-forms-item label="告警信息:" name="info" label-align="right" label-width="120px">
  8. <uni-easyinput type="text" v-model="alarmFrom.info || '-'" disabled />
  9. </uni-forms-item>
  10. <uni-forms-item label="告警开始时间:" name="beginTime" label-align="right" label-width="120px">
  11. <uni-easyinput type="text" v-model="alarmFrom.beginTime || '-'" disabled />
  12. </uni-forms-item>
  13. <uni-forms-item label="处理:" name="state" label-align="right" label-width="120px">
  14. <uni-data-select v-model="alarmFrom.state" :localdata="range"
  15. :clear="false"></uni-data-select>
  16. </uni-forms-item>
  17. <uni-forms-item label="说明:" name="remark" label-align="right" label-width="120px">
  18. <uni-easyinput type="textarea" v-model="alarmFrom.remark" placeholder="请输入说明,30字以内" :maxlength="30"/>
  19. </uni-forms-item>
  20. </uni-forms>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. name: 'FaultDrawer',
  26. props: ['alarmFrom','range'],
  27. data() {
  28. return {}
  29. },
  30. methods:{
  31. changeId(e) {
  32. },
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. ::v-deep .uni-forms-item__content {
  38. background: rgba(255, 255, 255, 0);
  39. border-radius: 2px 2px 2px 2px;
  40. border: 1px solid #263042;
  41. .uni-easyinput__content {
  42. background: none !important;
  43. border: none !important;
  44. color: #fff;
  45. }
  46. }
  47. ::v-deep .uni-forms-item {
  48. width: 100% !important;
  49. }
  50. </style>