irriWaterInputFlux.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797
  1. <template>
  2. <div class="irrigation-management" style="display: flex; justify-content: center; height: 100%;">
  3. <!-- 计算页面 -->
  4. <div v-if="showCalculation" class="page-container" style="width: 100%; height: 100%;">
  5. <el-card shadow="always" class="gradient-card" style="height: 100%;">
  6. <div class="calculation-content">
  7. <h2 class="page-title">灌溉水输入通量计算</h2>
  8. <!-- 将单选按钮组改为多选框组 -->
  9. <div class="scrollable-content">
  10. <el-checkbox-group v-model="selectedLandTypes" style="width: 100%;">
  11. <!-- 水田 -->
  12. <div class="land-type-section">
  13. <div class="radio-container">
  14. <el-checkbox
  15. label="water"
  16. border
  17. size="large"
  18. class="custom-checkbox"
  19. >
  20. <span class="checkbox-label">水田</span>
  21. </el-checkbox>
  22. </div>
  23. <div class="input-group">
  24. <div class="input-row">
  25. <div class="input-title">灌溉水用量 (m³/亩/年)</div>
  26. <el-input
  27. v-model="irrigationWaterUsage"
  28. placeholder="请输入灌溉水用量"
  29. size="large"
  30. />
  31. </div>
  32. <div class="input-row">
  33. <div class="input-title">灌溉水有效利用率 (%)</div>
  34. <el-input
  35. v-model="irrigationEfficiency"
  36. placeholder="请输入灌溉水有效利用率"
  37. size="large"
  38. />
  39. </div>
  40. </div>
  41. </div>
  42. <!-- 水浇地 -->
  43. <div class="land-type-section">
  44. <div class="radio-container">
  45. <el-checkbox
  46. label="irrigated"
  47. border
  48. size="large"
  49. class="custom-checkbox"
  50. >
  51. <span class="checkbox-label">水浇地</span>
  52. </el-checkbox>
  53. </div>
  54. <div class="input-group">
  55. <div class="input-row">
  56. <div class="input-title">灌溉水用量 (m³/亩/年)</div>
  57. <el-input
  58. v-model="irrigatedWaterUsage"
  59. placeholder="请输入灌溉水用量"
  60. size="large"
  61. />
  62. </div>
  63. <div class="input-row">
  64. <div class="input-title">灌溉水有效利用率 (%)</div>
  65. <el-input
  66. v-model="irrigatedEfficiency"
  67. placeholder="请输入灌溉水有效利用率"
  68. size="large"
  69. />
  70. </div>
  71. </div>
  72. </div>
  73. <!-- 旱地 -->
  74. <div class="land-type-section">
  75. <div class="radio-container">
  76. <el-checkbox
  77. label="dry"
  78. border
  79. size="large"
  80. class="custom-checkbox"
  81. >
  82. <span class="checkbox-label">旱地</span>
  83. </el-checkbox>
  84. </div>
  85. <div class="input-group">
  86. <div class="input-row">
  87. <div class="input-title">灌溉水用量 (m³/亩/年)</div>
  88. <el-input
  89. v-model="dryWaterUsage"
  90. placeholder="请输入灌溉水用量"
  91. size="large"
  92. />
  93. </div>
  94. <div class="input-row">
  95. <div class="input-title">灌溉水有效利用率 (%)</div>
  96. <el-input
  97. v-model="dryEfficiency"
  98. placeholder="请输入灌溉水有效利用率"
  99. size="large"
  100. />
  101. </div>
  102. </div>
  103. </div>
  104. </el-checkbox-group>
  105. </div>
  106. <el-row justify="center" style="margin-top: 20px; margin-bottom: 20px;">
  107. <el-button
  108. class="calculate-btn"
  109. @click="calculateFlux"
  110. :loading="loading"
  111. size="large"
  112. >
  113. 计算灌溉水输入通量
  114. </el-button>
  115. </el-row>
  116. </div>
  117. </el-card>
  118. </div>
  119. <!-- 结果页面 -->
  120. <div v-if="showResults" class="page-container" style="width: 100%; height: 100%;">
  121. <el-card shadow="always" class="results-card" style="height: 100%;">
  122. <div class="results-content">
  123. <div class="results-header">
  124. <el-button
  125. type="primary"
  126. @click="backToCalculation"
  127. class="back-button">
  128. 返回计算
  129. </el-button>
  130. <div class="result-title">计算结果</div>
  131. </div>
  132. <!-- 添加滚动容器 -->
  133. <div class="scrollable-results">
  134. <div class="results-container">
  135. <!-- 地图 -->
  136. <div class="image-row">
  137. <div class="image-container">
  138. <div class="result-subtitle">Cd含量地图</div>
  139. <div class="image-wrapper">
  140. <img v-if="mapImageUrl" :src="mapImageUrl" alt="Cd含量地图" class="result-image">
  141. <div v-else class="image-placeholder">地图加载中...</div>
  142. </div>
  143. </div>
  144. </div>
  145. <!-- 统计结果 -->
  146. <el-row style="margin-top: 20px;">
  147. <el-col :span="24">
  148. <div class="result-subtitle">统计结果</div>
  149. <div class="statistics-container">
  150. <!-- 基础统计表格 -->
  151. <el-table
  152. v-if="statisticsData"
  153. :data="[statisticsData]"
  154. border
  155. size="large"
  156. style="width: 100%; margin-bottom: 15px;"
  157. >
  158. <el-table-column prop="土地类型" label="土地类型" align="center"></el-table-column>
  159. <el-table-column prop="数据更新时间" label="数据更新时间" align="center"></el-table-column>
  160. <el-table-column prop="数据点总数" label="数据点总数" align="center"></el-table-column>
  161. <el-table-column prop="均值" label="均值" align="center" :formatter="formatNumber"></el-table-column>
  162. <el-table-column prop="中位数" label="中位数" align="center" :formatter="formatNumber"></el-table-column>
  163. <el-table-column prop="标准差" label="标准差" align="center" :formatter="formatNumber"></el-table-column>
  164. <el-table-column prop="最小值" label="最小值" align="center" :formatter="formatNumber"></el-table-column>
  165. <el-table-column prop="最大值" label="最大值" align="center" :formatter="format极简版Number"></el-table-column>
  166. </el-table>
  167. <!-- 分位数和形态统计表格 -->
  168. <el-table
  169. v-if="statisticsData"
  170. :data="[statisticsData]"
  171. border
  172. size="large"
  173. style="width: 100%; margin-bottom: 15px;"
  174. >
  175. <el-table-column prop="25%分位数" label="25%分位数" align="center" :formatter="formatNumber"></el-table-column>
  176. <el-table-column prop="75%分位数" label="75%分位数" align="center" :formatter="formatNumber"></el-table-column>
  177. <el-table-column prop="偏度" label="偏度" align="center" :formatter="formatNumber"></el-table-column>
  178. <el-table-column prop="峰度" label="峰度" align="center" :formatter="formatNumber"></el-table-column>
  179. </el-table>
  180. </div>
  181. </el-col>
  182. </el-row>
  183. <!-- 直方图 -->
  184. <div class="image-row" style="margin-top: 20px;">
  185. <div class="image-container">
  186. <div class="result-subtitle">Cd含量分布直方图</div>
  187. <div class="image-wrapper">
  188. <img v-if="histogramImageUrl" :src="histogramImageUrl" alt="Cd含量直方图" class="result-image">
  189. <div v-else class="image-placeholder">直方图加载中...</div>
  190. </div>
  191. </div>
  192. </div>
  193. </div>
  194. </div>
  195. </div>
  196. </el-card>
  197. </div>
  198. </div>
  199. </template>
  200. <script>
  201. import { ref } from 'vue';
  202. import axios from 'axios';
  203. import {
  204. ElCheckbox,
  205. ElCheckboxGroup,
  206. ElInput,
  207. ElButton,
  208. ElMessage,
  209. ElCard,
  210. ElRow,
  211. ElCol,
  212. ElTable,
  213. ElTableColumn
  214. } from 'element-plus';
  215. // 土地类型映射
  216. const landTypeMap = {
  217. water: '水田',
  218. irrigated: '水浇地',
  219. dry: '旱地'
  220. };
  221. export default {
  222. components: {
  223. ElCheckbox,
  224. ElCheckboxGroup,
  225. ElInput,
  226. ElButton,
  227. ElMessage,
  228. ElCard,
  229. ElRow,
  230. ElCol,
  231. ElTable,
  232. ElTableColumn
  233. },
  234. setup() {
  235. // 将单选改为多选,初始值为空数组
  236. const selectedLandTypes = ref([]);
  237. // 设置默认值
  238. const irrigationWaterUsage = ref('711');
  239. const irrigationEfficiency = ref('0.524');
  240. const irrigatedWaterUsage = ref('427');
  241. const irrigatedEfficiency = ref('0.599');
  242. const dryWaterUsage = ref('200');
  243. const dryEfficiency = ref('0.7');
  244. const fluxResult = ref(null);
  245. const showCalculation = ref(true); // 显示计算页面
  246. const showResults = ref(false); // 显示结果页面
  247. const loading = ref(false);
  248. // 结果展示数据
  249. const mapImageUrl = ref('');
  250. const histogramImageUrl = ref('');
  251. const statisticsData = ref(null);
  252. // 格式化数字显示(保留4位小数)
  253. const formatNumber = (row, column, cellValue) => {
  254. if (typeof cellValue === 'number') {
  255. return cellValue.toFixed(4);
  256. }
  257. return cellValue;
  258. };
  259. // 获取默认地图
  260. const fetchDefaultMap = async (landTypeChinese) => {
  261. try {
  262. const response = await axios.get('http://localhost:8000/api/water/default-map', {
  263. params: { land_type: landTypeChinese },
  264. responseType: 'blob' // 接收二进制数据
  265. });
  266. // 创建对象URL
  267. return URL.createObjectURL(response.data);
  268. } catch (error) {
  269. console.error('获取默认地图失败:', error);
  270. ElMessage.error('获取地图失败,请重试');
  271. return '';
  272. }
  273. };
  274. // 获取默认直方图
  275. const fetchDefaultHistogram = async (landTypeChinese) => {
  276. try {
  277. const response = await axios.get('http://localhost:8000/api/water/default-histogram', {
  278. params: { land_type: landTypeChinese },
  279. responseType: 'blob' // 接收二进制数据
  280. });
  281. // 创建对象URL
  282. return URL.createObjectURL(response.data);
  283. } catch (error) {
  284. console.error('获取默认直方图失败:', error);
  285. ElMessage.error('获取直方图失败,请重试');
  286. return '';
  287. }
  288. };
  289. // 获取统计数据
  290. const fetchStatistics = async (landTypeChinese) => {
  291. try {
  292. const response = await axios.get('http://localhost:8000/api/water/statistics', {
  293. params: { land_type: landTypeChinese }
  294. });
  295. return response.data;
  296. } catch (error) {
  297. console.error('获取统计数据失败:', error);
  298. ElMessage.error('获取统计数据失败,请重试');
  299. return null;
  300. }
  301. };
  302. // 返回计算页面
  303. const backToCalculation = () => {
  304. showCalculation.value = true;
  305. showResults.value = false;
  306. };
  307. const calculateFlux = async () => {
  308. // 检查是否选择了土地类型
  309. if (selectedLandTypes.value.length === 0) {
  310. ElMessage.warning('请至少选择一种土地类型');
  311. return;
  312. }
  313. // 收集所有土地类型的通量计算结果
  314. const landFluxResults = [];
  315. let inputValid = true; // 修复:在循环外部定义验证变量
  316. // 遍历所有选中的土地类型
  317. for (const landType of selectedLandTypes.value) {
  318. let flux = 0;
  319. let usage, efficiency;
  320. // 根据土地类型获取对应的输入值
  321. if (landType === 'water') {
  322. usage = irrigationWaterUsage.value;
  323. efficiency = irrigationEfficiency.value;
  324. } else if (landType === 'irrigated') {
  325. usage = irrigatedWaterUsage.value;
  326. efficiency = irrigatedEfficiency.value;
  327. } else if (landType === 'dry') {
  328. usage = dryWaterUsage.value;
  329. efficiency = dryEfficiency.value;
  330. }
  331. // 验证输入有效性
  332. if (!usage || !efficiency) {
  333. ElMessage.warning(`请输入${landTypeMap[landType]}的灌溉水用量和有效利用率`);
  334. inputValid = false;
  335. break;
  336. }
  337. const usageValue = parseFloat(usage);
  338. const efficiencyValue = parseFloat(efficiency) / 100;
  339. if (isNaN(usageValue) || isNaN(efficiencyValue)) {
  340. ElMessage.error(`请输入${landTypeMap[landType]}的有效数字`);
  341. inputValid = false;
  342. break;
  343. } else if (efficiencyValue > 1 || efficiencyValue < 0) {
  344. ElMessage.error(`${landTypeMap[landType]}的有效利用率应在0-100%之间`);
  345. inputValid = false;
  346. break;
  347. }
  348. // 计算通量
  349. flux = usageValue * efficiencyValue;
  350. landFluxResults.push({
  351. landType: landTypeMap[landType],
  352. flux,
  353. efficiency: efficiencyValue
  354. });
  355. }
  356. if (!inputValid) return; // 使用在外部定义的验证变量
  357. loading.value = true;
  358. try {
  359. // 准备调用后端接口的数据
  360. const formData = new FormData();
  361. // 构建土地类型列表(中文名称)
  362. const landTypesChinese = selectedLandTypes.value.map(type => landTypeMap[type]);
  363. // 重要修改:将 land_types 作为数组传递(JSON字符串)
  364. landTypesChinese.forEach(landType => formData.append('land_types', landType));
  365. // 构建系数参数对象(每个土地类型对应的系数)
  366. const coefficientParams = {};
  367. landFluxResults.forEach(result => {
  368. coefficientParams[result.landType] = [result.flux, result.efficiency];
  369. });
  370. formData.append('coefficient_params', JSON.stringify(coefficientParams));
  371. // 其他固定参数
  372. formData.append('color_map_name', "绿-黄-红-紫");
  373. formData.append('output_size', 8);
  374. // 调用计算接口
  375. await axios.post('http://localhost:8000/api/water/calculate', formData, {
  376. headers: {
  377. 'Content-Type': 'multipart/form-data'
  378. }
  379. });
  380. // 获取并显示结果
  381. // 使用下划线连接的土地类型名称作为参数获取结果
  382. const landTypeParam = landTypesChinese.join('_');
  383. // 获取默认地图
  384. mapImageUrl.value = await fetchDefaultMap(landTypeParam);
  385. // 获取默认直方图
  386. histogramImageUrl.value = await fetchDefaultHistogram(landTypeParam);
  387. // 获取统计数据
  388. statisticsData.value = await fetchStatistics(landTypeParam);
  389. // 切换到结果页面
  390. showCalculation.value = false;
  391. showResults.value = true;
  392. ElMessage.success('计算完成,结果已展示');
  393. } catch (error) {
  394. console.error('获取结果失败:', error);
  395. ElMessage.error('获取结果失败,请重试');
  396. } finally {
  397. loading.value = false;
  398. }
  399. };
  400. return {
  401. selectedLandTypes,
  402. irrigationWaterUsage,
  403. irrigationEfficiency,
  404. irrigatedWaterUsage,
  405. irrigatedEfficiency,
  406. dryWaterUsage,
  407. dryEfficiency,
  408. calculateFlux,
  409. fluxResult,
  410. showCalculation,
  411. showResults,
  412. loading,
  413. mapImageUrl,
  414. histogramImageUrl,
  415. statisticsData,
  416. formatNumber,
  417. backToCalculation
  418. };
  419. }
  420. };
  421. </script>
  422. <style scoped>
  423. /* 调整样式,确保计算按钮可见且不需要滚动 */
  424. .irrigation-management {
  425. height: 100vh;
  426. overflow: hidden;
  427. }
  428. .page-container {
  429. width: 90%;
  430. height: 100%;
  431. padding: 15px;
  432. box-sizing: border-box;
  433. }
  434. .gradient-card {
  435. background: linear-gradient(
  436. 135deg,
  437. rgba(250, 253, 255, 0.8),
  438. rgba(137, 223, 252, 0.8)
  439. );
  440. width: 90%;
  441. height: 100%;
  442. padding: 20px;
  443. border-radius: 12px;
  444. display: flex;
  445. flex-direction: column;
  446. }
  447. .results-card {
  448. background: linear-gradient(
  449. 135deg,
  450. rgba(250, 253, 255, 0.8),
  451. rgba(137, 223, 252, 0.8)
  452. );
  453. width: 90%;
  454. max-width: 1200px;
  455. padding: 30px;
  456. border-radius: 12px;
  457. display: flex;
  458. flex-direction: column;
  459. height: 100%;
  460. }
  461. .calculation-content {
  462. height: 100%;
  463. display: flex;
  464. flex-direction: column;
  465. }
  466. /* 新增:可滚动内容区域 */
  467. .scrollable-content {
  468. flex: 1;
  469. overflow-y: auto;
  470. padding-right: 5px; /* 防止滚动条遮挡内容 */
  471. }
  472. /* 新增:结果页面可滚动区域 */
  473. .scrollable-results {
  474. flex: 1;
  475. overflow-y: auto;
  476. padding-right: 5px; /* 防止滚动条遮挡内容 */
  477. }
  478. /* 增大字号 */
  479. .page-title {
  480. text-align: center;
  481. font-size: 28px; /* 增大 */
  482. font-weight: bold;
  483. margin-bottom: 15px;
  484. color: #1a8cff;
  485. }
  486. .results-header {
  487. display: flex;
  488. justify-content: space-between;
  489. align-items: center;
  490. margin-bottom: 15px;
  491. }
  492. .result-title {
  493. font-size: 28px; /* 增大 */
  494. font-weight: bold;
  495. text-align: center;
  496. flex-grow: 1;
  497. color: #1a8cff;
  498. }
  499. .input-title {
  500. font-size: 18px; /* 增大 */
  501. font-weight: 500;
  502. color: #606266;
  503. margin-bottom: 10px;
  504. text-align: left;
  505. }
  506. .radio-container {
  507. display: flex;
  508. justify-content: flex-start;
  509. align-items: center;
  510. height: 100%;
  511. margin-bottom: 10px;
  512. }
  513. .calculate-btn {
  514. width: 100%;
  515. max-width: 350px;
  516. height: 45px;
  517. border-radius: 8px;
  518. font-size: 18px; /* 增大 */
  519. font-weight: 600;
  520. background: linear-gradient(45deg, #1a8cff, #00cc99);
  521. color: white;
  522. margin-top: 15px;
  523. }
  524. .results-container {
  525. padding: 10px;
  526. width: 100%;
  527. height: 100%;
  528. }
  529. .result-subtitle {
  530. text-align: center;
  531. font-weight: bold;
  532. font-size: 20px; /* 增大 */
  533. margin-bottom: 15px;
  534. padding-bottom: 8px;
  535. border-bottom: 1px solid #eee;
  536. color: #1a8cff;
  537. }
  538. /* 调整图像行样式 */
  539. .image-row {
  540. margin-top: 20px;
  541. height: auto; /* 自动高度 */
  542. }
  543. .image-container {
  544. width: 100%;
  545. display: flex;
  546. flex-direction: column;
  547. }
  548. .image-wrapper {
  549. height: 500px; /* 固定高度 */
  550. display: flex;
  551. justify-content: center;
  552. align-items: center;
  553. border: 1px solid #e4e7ed;
  554. border-radius: 8px;
  555. overflow: hidden;
  556. background-color: #f8f8f8;
  557. box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  558. }
  559. .result-image {
  560. max-width: 100%;
  561. max-height: 100%;
  562. object-fit: contain;
  563. }
  564. .image-placeholder {
  565. height: 100%;
  566. width: 100%;
  567. display: flex;
  568. align-items: center;
  569. justify-content: center;
  570. color: #909399;
  571. font-style: italic;
  572. font-size: 20px; /* 增大 */
  573. }
  574. .statistics-container {
  575. background-color: rgba(255, 255, 255, 0.7);
  576. border-radius: 8px;
  577. padding: 15px;
  578. }
  579. /* 表格样式增强 - 增大字号 */
  580. :deep(.el-table) {
  581. margin-bottom: 15px;
  582. border-radius: 8px;
  583. overflow: hidden;
  584. font-size: 16px; /* 增大 */
  585. }
  586. :deep(.el-table__header) {
  587. background-color: #f0f8ff;
  588. }
  589. :deep(.el-table th) {
  590. background-color: #f0f8ff;
  591. font-weight: bold;
  592. font-size: 16px; /* 增大 */
  593. }
  594. /* 返回按钮样式 - 增大字号 */
  595. .back-button {
  596. position: absolute;
  597. top: 15px;
  598. left: 15px;
  599. width: 120px;
  600. height: 40px;
  601. padding: 8px;
  602. font-size: 18px; /* 增大 */
  603. background: linear-gradient(to right, #8DF9F0, #26B046);
  604. color: white;
  605. border-radius: 20px;
  606. }
  607. /* 土地类型部分样式 */
  608. .land-type-section {
  609. margin-bottom: 25px; /* 增加底部间距 */
  610. padding: 15px;
  611. background-color: rgba(255, 255, 255, 0.5);
  612. border-radius: 8px;
  613. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  614. }
  615. .input-group {
  616. margin-left: 20px;
  617. margin-top: 15px; /* 增加顶部间距 */
  618. }
  619. .input-row {
  620. margin-bottom: 15px;
  621. }
  622. /* 多选框样式增强 */
  623. .custom-checkbox {
  624. padding: 15px 20px;
  625. border-radius: 10px;
  626. background: rgba(255, 255, 255, 0.7);
  627. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  628. transition: all 0.3s ease;
  629. border: 2px solid #dcdfe6;
  630. }
  631. .custom-checkbox:hover {
  632. transform: translateY(-2px);
  633. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  634. border-color: #1a8cff;
  635. }
  636. .custom-checkbox.is-checked {
  637. background-color: #e6f7ff;
  638. border-color: #1a8cff;
  639. box-shadow: 0 4px 12px rgba(26, 140, 255, 0.2);
  640. }
  641. .checkbox-label {
  642. font-size: 18px;
  643. font-weight: 600;
  644. color: #333;
  645. margin-left: 10px;
  646. }
  647. /* 响应式调整 */
  648. @media (max-width: 992px) {
  649. .image-row {
  650. height: auto;
  651. }
  652. .image-wrapper {
  653. height: 250px; /* 减小高度 */
  654. }
  655. .image-container {
  656. width: 100%;
  657. margin-bottom: 20px;
  658. }
  659. .input-group {
  660. margin-left: 0;
  661. }
  662. .page-title,
  663. .result-title {
  664. font-size: 24px; /* 增大 */
  665. }
  666. .result-subtitle {
  667. font-size: 18px; /* 增大 */
  668. }
  669. .custom-checkbox {
  670. padding: 12px 15px;
  671. }
  672. }
  673. @media (max-height: 800px) {
  674. .land-type-section {
  675. padding: 10px;
  676. margin-bottom: 15px; /* 增加底部间距 */
  677. }
  678. .input-row {
  679. margin-bottom: 8px;
  680. }
  681. .calculate-btn {
  682. height: 40px;
  683. font-size: 16px; /* 增大 */
  684. margin-top: 10px;
  685. }
  686. .image-wrapper {
  687. height: 200px; /* 进一步减小高度 */
  688. }
  689. /* 在低高度屏幕上减小土地类型区块间距 */
  690. .land-type-section {
  691. margin-bottom: 10px;
  692. }
  693. /* 在低高度屏幕上减小输入组上边距 */
  694. .input-group {
  695. margin-top: 10px;
  696. }
  697. }
  698. </style>