index.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <div style="width: 100%;background-color: #F7F7F7;padding-top: 1%;" :style="{'height':heightAll+'px'}">
  3. <div style="display: flex;background-color: white;margin-left: 1%;" :style="{'height':heightAll*0.42+'px'}">
  4. <div style="width: 10%;margin-left: 1%;width: 10%;background-color: white;">
  5. <div style="font-size: 20px;justify-content: center;background-color: #487ACF;color: white;display: flex;align-items: center;" :style="{'height':heightAll*0.04+'px'}">
  6. 模型装配
  7. </div>
  8. <div style="margin-top: 20%;">
  9. <el-radio label="1" size="large">滚子河流域分区</el-radio>
  10. <el-radio label="1" size="large">西江流域分区</el-radio>
  11. <el-radio label="1" size="large">分水江流域分区</el-radio>
  12. <el-radio label="1" size="large">雨山流域分区</el-radio>
  13. </div>
  14. <div style="margin-top: 50%;">
  15. <el-button plain style="width: 100%;" type="primary" :icon="Plus">新增其他分区</el-button>
  16. </div>
  17. </div>
  18. <div style="margin-left: 1%;width: 87%;">
  19. <div style="width: 100%;display: flex;justify-content:end;margin-right:2%;">
  20. <el-button plain type="primary">编辑</el-button>
  21. <el-button plain type="primary">导出</el-button>
  22. <el-button type="primary">确认</el-button>
  23. </div>
  24. </div>
  25. </div>
  26. <div style="margin-top: 1%;background-color: white;padding-top: 1%;" :style="{'height':heightAll*0.57+'px'}">
  27. <div style="margin-left: 1%;width: 100%;display: flex;">
  28. <div style="margin-left: 1%;width: 100%;display: flex;">
  29. <el-input v-model="input" style="width: 20%;" placeholder="Please input" />
  30. <el-button type="primary">确认</el-button>
  31. </div>
  32. <div style="width: 100%;display: flex;justify-content:end;margin-right:2%;">
  33. <el-button plain type="primary">编辑</el-button>
  34. <el-button plain type="primary">导出</el-button>
  35. <el-button type="primary">确认</el-button>
  36. </div>
  37. </div>
  38. <el-table
  39. :data="tableData"
  40. style="width: 98%;margin-left: 1%;margin-top: 1%;"
  41. :cell-style="{ textAlign: 'center' }"
  42. :header-cell-style="{fontSize: '14px', textAlign: 'center' }"
  43. :row-style="{ height: heightAll*0.01+'px',fontSize: '17px',textAlign:'center' }"
  44. border
  45. :max-height="tableheight">
  46. <el-table-column type="selection" width="55"></el-table-column>
  47. <el-table-column prop="date" label="分区参数" />
  48. <el-table-column prop="name" label="参数值" />
  49. <el-table-column prop="address" label="分区参数" />
  50. </el-table>
  51. </div>
  52. </div>
  53. </template>
  54. <script setup>
  55. import { ref, onMounted } from 'vue';
  56. import {
  57. ArrowLeft,
  58. Plus
  59. } from '@element-plus/icons-vue'
  60. const format = (percentage) => (percentage === 100 ? 'Full' : `${percentage}%`)
  61. const tableData = [
  62. {
  63. date:'蓄水容量(WM)',
  64. name:'1.33',
  65. address:'上层蓄水容量(WUM)'
  66. },
  67. {
  68. date:'下层蓄水容量(WLM)',
  69. name:'55',
  70. address:'蒸散发折算系数(k)'
  71. },
  72. {
  73. date:'深层蒸散发系数(C)',
  74. name:'0.14',
  75. address:'地下水出流系数(KG)'
  76. },
  77. {
  78. date:'最大自由需水量(SM)',
  79. name:'16',
  80. address:'初始含水量(WO)'
  81. },
  82. {
  83. date:'初始上层含水量(WU0)',
  84. name:'30',
  85. address:'壤中流系数(KSS)'
  86. },
  87. {
  88. date:'初始下层含水量(WL0)',
  89. name:'38',
  90. address:'汇流滞时(LAG)'
  91. },
  92. ]
  93. const heightAll = window.innerHeight
  94. const valueHelpSel = '';
  95. const tableheight = window.innerHeight*0.7
  96. const options = [
  97. {
  98. value: 'Option1',
  99. label: 'Option1',
  100. },
  101. {
  102. value: 'Option2',
  103. label: 'Option2',
  104. },
  105. {
  106. value: 'Option3',
  107. label: 'Option3',
  108. },
  109. {
  110. value: 'Option4',
  111. label: 'Option4',
  112. },
  113. {
  114. value: 'Option5',
  115. label: 'Option5',
  116. },
  117. ]
  118. const seledMo = ['primary','plain','plain','plain','plain','plain','plain']
  119. function showNode(data, node){
  120. console.log(data,node)
  121. }
  122. </script>
  123. <style scoped lang="scss">
  124. .el-table .el-table__row td {
  125. height: 60px !important; /* 行高 */
  126. }
  127. .custom-tree-node {
  128. display: flex; /* 启用 Flex 布局 */
  129. align-items: center; /* 垂直居中 */
  130. gap: 8px; /* 图标与文字间距 */
  131. }
  132. </style>