Kaynağa Gözat

修改侧边栏,修改画图参数

yangtaodemon 22 saat önce
ebeveyn
işleme
1b79970d0b

+ 4 - 0
components.d.ts

@@ -29,6 +29,7 @@ declare module 'vue' {
     ElCard: typeof import('element-plus/es')['ElCard']
     ElCol: typeof import('element-plus/es')['ElCol']
     ElContainer: typeof import('element-plus/es')['ElContainer']
+    ElDialog: typeof import('element-plus/es')['ElDialog']
     ElDropdown: typeof import('element-plus/es')['ElDropdown']
     ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
     ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
@@ -41,11 +42,14 @@ declare module 'vue' {
     ElMain: typeof import('element-plus/es')['ElMain']
     ElMenu: typeof import('element-plus/es')['ElMenu']
     ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
+    ElOption: typeof import('element-plus/es')['ElOption']
+    ElPagination: typeof import('element-plus/es')['ElPagination']
     ElProgress: typeof import('element-plus/es')['ElProgress']
     ElRadio: typeof import('element-plus/es')['ElRadio']
     ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
     ElRow: typeof import('element-plus/es')['ElRow']
     ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
+    ElSelect: typeof import('element-plus/es')['ElSelect']
     ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
     ElTable: typeof import('element-plus/es')['ElTable']
     ElTableColumn: typeof import('element-plus/es')['ElTableColumn']

+ 1 - 0
src/components/layout/AppLayout.vue

@@ -683,6 +683,7 @@ const mainStyle = computed(() => {
   box-shadow: 0 2px 8px rgba(16, 146, 216, 0.25);
 }
 
+
 .layout-content-wrapper {
   flex: 1;
   overflow: hidden;

+ 12 - 18
src/components/layout/menuItems.ts

@@ -143,6 +143,12 @@ import {
         },
       ]
     },
+    {
+      index: '/totalInputFlux',
+      label: '输入总通量',
+      icon: Watermelon,
+      tab: 'HmOutFlux'
+    },
     {
       index: 'grainRemoval',
       label: '籽粒移除',
@@ -223,24 +229,18 @@ import {
         }
       ]
     },
+    {
+      index: '/totalOutputFlux',
+      label: '输出总通量',
+      icon: WindPower,
+      tab: 'hmInFlux',
+    },
     {
       index: '/mapView',
       label: '地图展示',
       icon: Location,
       tab: 'mapView'
     },
-    {
-      index: '/totalInputFlux',
-      label: '输入总通量',
-      icon: PieChart,
-      tab: 'cadmiumPrediction'
-    },
-    {
-      index: '/totalOutputFlux',
-      label: '输出总通量',
-      icon: PieChart,
-      tab: 'cadmiumPrediction'
-    },
     {
       index: '/netFlux',
       label: '净通量',
@@ -253,12 +253,6 @@ import {
       icon: PieChart,
       tab: 'cadmiumPrediction'
     },
-    {
-      index: '/TotalCadmiumPrediction',
-      label: '土壤镉的总含量预测',
-      icon: PieChart,
-      tab: 'cadmiumPrediction'
-    },
     {
       index: '/EffectiveCadmiumPrediction',
       label: '土壤镉有效态含量预测',

+ 1 - 1
src/views/User/HmOutFlux/agriInput/prodInputFlux.vue

@@ -389,7 +389,7 @@ export default {
           'http://localhost:8000/api/agricultural-input/visualize',
           {
             params: {
-              area: '韶关', // 使用固定地区
+              area: '乐昌市', // 使用固定地区
               level: 'county' // 使用县级行政层级
             },
             responseType: 'blob' // 重要:指定响应类型为blob