intakeWaterAnalysis.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <template>
  2. <el-row class="el-row-container" v-loading="loading">
  3. <el-col
  4. :span="4"
  5. style="height:100%;padding-bottom:32px;"
  6. >
  7. <el-card style="margin:16px;height: 100%; overflow-y: auto">
  8. <data-report-left></data-report-left>
  9. </el-card>
  10. </el-col>
  11. <el-col
  12. :span="20"
  13. style="padding: 16px 16px 16px 0; height: 100%;"
  14. >
  15. <Report :columns="columns" style="height:100%;">
  16. <template slot="headerLeft">
  17. <el-input
  18. v-model="form.tarcecodeapplyno"
  19. style="width: 250px;margin-right: 16px;"
  20. placeholder="请输入溯源码编号"
  21. @keyup.enter.native="handleSearch"
  22. clearable
  23. />
  24. <el-button
  25. type="primary"
  26. size="small"
  27. @click="handleSearch"
  28. >查询</el-button
  29. >
  30. </template>
  31. </Report>
  32. </el-col>
  33. </el-row>
  34. </template>
  35. <script>
  36. import BTable from '@/components/Table/index.vue';
  37. import DataReportLeft from '@/components/DataReportLeft/index.vue'
  38. import Report from './components/report.vue'
  39. export default {
  40. name:"waterManage",
  41. components: { BTable,DataReportLeft,Report},
  42. data() {
  43. return {
  44. activeName:'first',
  45. form: {
  46. productName: ''
  47. },
  48. loading: false,
  49. associationManageShow: false,
  50. columns: [
  51. {
  52. label: '机井名称',
  53. prop: 'person',
  54. customRender: '',
  55. align: 'center'
  56. },
  57. {
  58. label: '累计用水量(m³)',
  59. prop: 'area',
  60. customRender: '',
  61. align: 'center'
  62. },
  63. {
  64. label: '灌溉次数',
  65. prop: 'name',
  66. customRender: '',
  67. align: 'center'
  68. },
  69. {
  70. label: '累计用电量(°)',
  71. prop: 'phone',
  72. customRender: '',
  73. align: 'center'
  74. }
  75. ]
  76. };
  77. },
  78. methods: {
  79. handleClick(){},
  80. handleSearch() {},
  81. }
  82. };
  83. </script>
  84. <style lang="scss" scoped>
  85. .el-row-container{
  86. height: 100%;
  87. }
  88. .elrow-main__col-top {
  89. display: flex;
  90. align-items: center;
  91. justify-content: space-between;
  92. margin-bottom: 15px;
  93. .top-left {
  94. height: 100%;
  95. display: flex;
  96. align-items: center;
  97. i {
  98. background-color: #40d5ec;
  99. height: 45%;
  100. width: 5px;
  101. margin-right: 5px;
  102. }
  103. }
  104. }
  105. </style>