systemsControl.vue 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <!-- 系统控制 -->
  3. <view>
  4. <view style="display: flex;align-items: center;">
  5. <view class="title_name">主机名</view>
  6. <input class="name_input" v-model="hostName" type="text" placeholder="主机名" />
  7. </view>
  8. <view class="title_name" style="margin-top: 20rpx;">系统参数</view>
  9. <view class="card_parameter">
  10. <view class="card_item_second">
  11. <view class="title_name title_width">数据保存间隔</view>
  12. <input class="name_input" v-model="numbver" type="text" />
  13. <view class="title_name left_10">秒</view>
  14. </view>
  15. <view class="card_item_second">
  16. <view class="title_name title_width">超时报警间隔</view>
  17. <input class="name_input" v-model="numbver" type="text" />
  18. <view class="title_name left_10">秒</view>
  19. </view>
  20. <view class="card_item_second">
  21. <view class="title_name title_width">市电断电报警间隔</view>
  22. <input class="name_input" v-model="numbver" type="text" />
  23. <view class="title_name left_10">秒</view>
  24. </view>
  25. <view class="card_item_second">
  26. <view class="title_name title_width">传感器掉线报警间隔</view>
  27. <input class="name_input" v-model="numbver" type="text" />
  28. <view class="title_name left_10">秒</view>
  29. </view>
  30. <view class="card_item_second">
  31. <view class="title_name title_width">温湿度预警间隔</view>
  32. <input class="name_input" v-model="numbver" type="text" />
  33. <view class="title_name left_10">秒</view>
  34. </view>
  35. <view class="card_item_second">
  36. <view class="title_name title_width">预警延时</view>
  37. <input class="name_input" v-model="numbver" type="text" />
  38. <view class="title_name left_10">秒</view>
  39. </view>
  40. </view>
  41. <view class="center_in">
  42. <view style="margin-top: 10rpx;width: 40%;">
  43. <u-button size="mini" type="primary" text="保存"></u-button>
  44. </view>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. export default {
  50. data() {
  51. return {
  52. hostName: '新管理主机TCP',
  53. numbver: null,
  54. }
  55. }
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. .title_name {
  60. font-size: 18rpx;
  61. margin-right: 10rpx;
  62. }
  63. .name_input {
  64. flex: 1;
  65. font-size: 18rpx;
  66. border: 1rpx solid #e7e6e4;
  67. padding: 4rpx 10rpx;
  68. border-radius: 4rpx;
  69. }
  70. .card_parameter {
  71. display: flex;
  72. flex-direction: row;
  73. flex-wrap: wrap;
  74. margin-top: 6rpx;
  75. border: 1rpx solid #e7e6e4;
  76. padding: 30rpx 10rpx;
  77. border-radius: 4rpx;
  78. }
  79. .card_item_second {
  80. display: flex;
  81. align-items: center;
  82. margin-right: 20rpx;
  83. width: calc(50% - 20rpx);
  84. margin: 5rpx 20rpx 5rpx 0rpx;
  85. }
  86. .title_width{
  87. width: 180rpx;
  88. }
  89. .left_10 {
  90. margin-left: 10rpx;
  91. }
  92. </style>