+
降雨量
-
{{ weatherInfo.current.rainfall }} mm
+
{{ liveData.DailyRainfall }} mm
-
+
-
紫外线
-
{{ weatherInfo.current.uvIndex }}级
+
光照
+
{{ liveData.Illuminance }}级
diff --git a/src/views/orchardScreen/config.js b/src/views/orchardScreen/config.js
new file mode 100644
index 0000000..6fe3095
--- /dev/null
+++ b/src/views/orchardScreen/config.js
@@ -0,0 +1,187 @@
+/*
+ * @Author: chris
+ * @Date: 2025-10-14 10:12:41
+ * @LastEditors: chris
+ * @LastEditTime: 2025-10-15 10:34:32
+ */
+export const baseInfoDict = {
+ plantingArea: {
+ svg: "nongshi",
+ text: "种植面积(亩)",
+ },
+ terrain: {
+ svg: "dixing",
+ text: "地形",
+ },
+ variety: {
+ svg: "pinzhong",
+ text: "种植品种(种)",
+ },
+ type: {
+ svg: "dapengzhongmiaoguanli",
+ text: "主要品种",
+ },
+ plantingNum: {
+ svg: "shuguo",
+ text: "种植荔枝(棵)",
+ },
+ yield: {
+ svg: "caizhaiguanli",
+ text: "去年产量(吨)",
+ },
+};
+
+export const weatherTypes = [
+ "Temperature",
+ "Illuminance",
+ "WindSpeed",
+ "WindDirection",
+ "DailyRainfall",
+];
+
+export const weatherDict = {
+ Temperature: {
+ name: "温度",
+ unit: "°C",
+ color: "#FF6B6B",
+ icon: "temperature2",
+ min: 0,
+ max: 40,
+ interval: 10,
+ },
+ Illuminance: {
+ name: "光照",
+ unit: "lux",
+ color: "#FFD166",
+ icon: "light",
+ min: 0,
+ max: 3200,
+ interval: 800,
+ },
+ WindSpeed: {
+ name: "风速",
+ unit: "km/h",
+ color: "#009688",
+ icon: "windPower",
+ min: 0,
+ max: 10,
+ interval: 2,
+ },
+ WindDirection: {
+ name: "风向",
+ unit: "°",
+ color: "#845EC2",
+ icon: "wind",
+ },
+ DailyRainfall: {
+ name: "降雨量",
+ unit: "mm",
+ color: "#6A0572",
+ icon: "rain",
+ min: 0,
+ max: 10,
+ interval: 2,
+ },
+};
+
+export const soilTypes = [
+ "SoilTemperature",
+ "SoilHumidity",
+ "EC",
+ "PH",
+ "Nitrogen",
+ "Phosphorus",
+ "Potassium",
+];
+
+// 土壤数据 - 使用土壤设备常用的7个参数
+export const soilDict = {
+ SoilTemperature: {
+ id: "SoilTemperature",
+ name: "土壤温度",
+ value: "22.5",
+ unit: "°C",
+ icon: "turangwendu",
+ color: "#ff7a45",
+ status: "normal",
+ description: "适宜作物生长",
+ },
+ SoilHumidity: {
+ id: "SoilHumidity",
+ name: "土壤湿度",
+ value: "65",
+ unit: "%",
+ icon: "turangshidu",
+ color: "#4096ff",
+ status: "normal",
+ description: "湿润度良好",
+ },
+ EC: {
+ id: "EC",
+ name: "电导率",
+ value: "0.8",
+ unit: "μS/cm",
+ icon: "turangdiandaoshuai",
+ color: "#73d13d",
+ status: "normal",
+ description: "盐分适中",
+ },
+ PH: {
+ id: "PH",
+ name: "土壤pH值",
+ value: "6.8",
+ unit: "",
+ icon: "suanjiandu",
+ color: "#ff9800",
+ status: "normal",
+ description: "酸碱度适宜",
+ },
+ Nitrogen: {
+ id: "Nitrogen",
+ name: "氮含量",
+ value: "35",
+ unit: "mg/kg",
+ icon: "turangdanhanliang",
+ color: "#fa541c",
+ status: "normal",
+ description: "肥力良好",
+ },
+ Phosphorus: {
+ id: "Phosphorus",
+ name: "磷含量",
+ value: "22",
+ unit: "mg/kg",
+ icon: "turanglinhanliang",
+ color: "#9c27b0",
+ status: "normal",
+ description: "含量适中",
+ },
+ Potassium: {
+ id: "Potassium",
+ name: "钾含量",
+ value: "85",
+ unit: "mg/kg",
+ icon: "turangjiahanliang",
+ color: "#2196f3",
+ status: "normal",
+ description: "钾素充足",
+ },
+};
+
+export const pestTypeDict = {
+ 蚜虫: {
+ color: "#ff6b6b",
+ },
+ 红蜘蛛: {
+ color: "#ffa502",
+ },
+ 果蝇: {
+ color: "#5f27cd",
+ },
+ 菜青虫: {
+ color: "#10ac84",
+ },
+ 其他: {
+ color: "#54a0ff",
+ },
+};
diff --git a/src/views/orchardScreen/index.vue b/src/views/orchardScreen/index.vue
index d489f3b..9dc130b 100644
--- a/src/views/orchardScreen/index.vue
+++ b/src/views/orchardScreen/index.vue
@@ -2,25 +2,39 @@
* @Author: chris
* @Date: 2025-08-22 10:10:51
* @LastEditors: chris
- * @LastEditTime: 2025-09-04 17:51:53
+ * @LastEditTime: 2025-10-15 16:02:36
-->
@@ -37,13 +131,13 @@ onUnmounted(() => {
-
+
正在加载...
-
+
-
+
@@ -53,12 +147,12 @@ onUnmounted(() => {
@@ -66,13 +160,13 @@ onUnmounted(() => {
-
+
@@ -125,11 +219,11 @@ onUnmounted(() => {
@apply w-25% h-full;
.content-left-top {
- @apply h-40%;
+ @apply h-32%;
}
.content-left-bottom {
- @apply h-60%;
+ @apply h-68%;
}
}
@@ -137,7 +231,7 @@ onUnmounted(() => {
@apply flex-1 h-full;
.content-right-top {
- @apply h-62%;
+ @apply h-58%;
:deep(.border-box-content) {
@apply flex flex-col;
@@ -145,7 +239,7 @@ onUnmounted(() => {
}
.content-right-bottom {
- @apply flex h-38%;
+ @apply flex h-42%;
> :nth-child(1) {
flex: 4;
@@ -158,7 +252,7 @@ onUnmounted(() => {
}
.pest-info-module {
- @apply h-60%;
+ @apply h-100%;
}
.warning-info-module {
diff --git a/src/views/orchardScreen/mock.js b/src/views/orchardScreen/mock.js
index cf721c2..a2454e2 100644
--- a/src/views/orchardScreen/mock.js
+++ b/src/views/orchardScreen/mock.js
@@ -2,16 +2,14 @@
* @Author: chris
* @Date: 2025-08-26 16:53:44
* @LastEditors: chris
- * @LastEditTime: 2025-09-01 09:22:27
+ * @LastEditTime: 2025-10-14 10:20:42
*/
export default {
info: {
- acreage: 1000,
+ plantingArea: 1000,
terrain: "山地",
- typeNum: "10",
- type: "桂味",
- lichee: "2000",
- yield: "82",
+ plantingNum: "10",
+ variety: "桂味",
},
weatherInfo: [
{
diff --git a/src/views/pest/imgAnalysis/components/DeviceList.vue b/src/views/pest/imgAnalysis/components/DeviceList.vue
index 44397a7..4483f08 100644
--- a/src/views/pest/imgAnalysis/components/DeviceList.vue
+++ b/src/views/pest/imgAnalysis/components/DeviceList.vue
@@ -2,10 +2,28 @@
* @Author: chris
* @Date: 2025-09-05 09:39:28
* @LastEditors: chris
- * @LastEditTime: 2025-09-08 09:37:55
+ * @LastEditTime: 2025-09-26 17:37:26
-->
@@ -15,7 +33,7 @@ import DeviceFlatList from '@/components/deviceFlatList'
设备列表
-
+
diff --git a/src/views/pest/imgAnalysis/components/ImageDetail.vue b/src/views/pest/imgAnalysis/components/ImageDetail.vue
index 2960a3b..2da63ae 100644
--- a/src/views/pest/imgAnalysis/components/ImageDetail.vue
+++ b/src/views/pest/imgAnalysis/components/ImageDetail.vue
@@ -2,18 +2,27 @@
* @Author: chris
* @Date: 2025-08-12 11:19:45
* @LastEditors: chris
- * @LastEditTime: 2025-08-14 17:15:58
+ * @LastEditTime: 2025-10-15 14:58:52
-->
分析报告
- {{ props.info.name }}: {{ props.info.num }}
+ {{ props.info.name }}: {{ props.info.value }}
{{ item.name }}: {{ props.info[item.key] }}
+
+ 分析员: AI
+
+
@@ -22,6 +31,7 @@
diff --git a/src/views/pest/pushHistory/config.js b/src/views/pest/pushHistory/config.js
new file mode 100644
index 0000000..6b7fd2a
--- /dev/null
+++ b/src/views/pest/pushHistory/config.js
@@ -0,0 +1,26 @@
+/*
+ * @Author: chris
+ * @Date: 2025-09-05 10:12:41
+ * @LastEditors: chris
+ * @LastEditTime: 2025-10-15 17:28:32
+ */
+// 列配置
+export const columnsConfig = [
+ { key: 0, label: "内容", visible: true },
+ { key: 1, label: "状态", visible: true },
+ { key: 2, label: "模板", visible: true },
+ { key: 3, label: "时间", visible: true },
+];
+
+// 状态颜色映射
+export const statusColorMap = {
+ 0: "success",
+ 1: "danger",
+};
+
+export const defaultQueryParams = {
+ pageNum: 1,
+ pageSize: 10,
+ beginTime: null,
+ endTime: null,
+};
diff --git a/src/views/pest/pushHistory/index.vue b/src/views/pest/pushHistory/index.vue
new file mode 100644
index 0000000..15d0b53
--- /dev/null
+++ b/src/views/pest/pushHistory/index.vue
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/memberPush/index.vue b/src/views/pest/pushManagement/index.vue
similarity index 50%
rename from src/views/memberPush/index.vue
rename to src/views/pest/pushManagement/index.vue
index 2c49e42..f27d02d 100644
--- a/src/views/memberPush/index.vue
+++ b/src/views/pest/pushManagement/index.vue
@@ -1,107 +1,123 @@
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
- 新增
-
-
- 修改
+
+
+
+
+ 推送平台
+
+
+
+
+ 推送模板
+
+
-
- 删除
-
-
- 导出
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 修改
- 删除
-
-
-
-
-
-
@@ -276,10 +292,12 @@ function handleDelete(row) {
}
/** 导出按钮操作 */
-function handleExport() {
+async function handleExport() {
proxy.download('business/member/export', {
...queryParams.value
}, `member_${new Date().getTime()}.xlsx`)
+ const fileName = await proxy.download('/business/member/export', queryParams.value, `推送人员数据_${new Date().getTime()}.xlsx`)
+ fileName && proxy.$download.name(fileName)
}
getList()
diff --git a/src/views/pest/trendAnalysis/components/DeviceList.vue b/src/views/pest/trendAnalysis/components/DeviceList.vue
index 1d06a50..46cd2d8 100644
--- a/src/views/pest/trendAnalysis/components/DeviceList.vue
+++ b/src/views/pest/trendAnalysis/components/DeviceList.vue
@@ -2,22 +2,36 @@
* @Author: chris
* @Date: 2025-08-18 09:24:37
* @LastEditors: chris
- * @LastEditTime: 2025-08-18 14:41:04
+ * @LastEditTime: 2025-09-30 17:37:57
-->
@@ -26,7 +40,7 @@ watch(() => checkList, (val) => {
设备列表
-
+
diff --git a/src/views/pest/trendAnalysis/components/SearchForm.vue b/src/views/pest/trendAnalysis/components/SearchForm.vue
index 01df0de..7df5310 100644
--- a/src/views/pest/trendAnalysis/components/SearchForm.vue
+++ b/src/views/pest/trendAnalysis/components/SearchForm.vue
@@ -2,32 +2,38 @@
* @Author: chris
* @Date: 2025-08-18 09:27:23
* @LastEditors: chris
- * @LastEditTime: 2025-08-18 17:18:54
+ * @LastEditTime: 2025-09-30 17:58:54
-->
-
+
diff --git a/src/views/pest/trendAnalysis/components/TrendChart.vue b/src/views/pest/trendAnalysis/components/TrendChart.vue
index dbc8b1d..c6b91c8 100644
--- a/src/views/pest/trendAnalysis/components/TrendChart.vue
+++ b/src/views/pest/trendAnalysis/components/TrendChart.vue
@@ -2,7 +2,7 @@
* @Author: chris
* @Date: 2025-08-18 09:36:11
* @LastEditors: chris
- * @LastEditTime: 2025-09-08 15:40:07
+ * @LastEditTime: 2025-10-09 10:58:32
-->
-
+
diff --git a/src/views/pest/trendAnalysis/index.vue b/src/views/pest/trendAnalysis/index.vue
index 9ffecc9..9185826 100644
--- a/src/views/pest/trendAnalysis/index.vue
+++ b/src/views/pest/trendAnalysis/index.vue
@@ -2,7 +2,7 @@
* @Author: chris
* @Date: 2025-08-18 09:24:26
* @LastEditors: chris
- * @LastEditTime: 2025-09-08 11:35:38
+ * @LastEditTime: 2025-10-09 10:53:17
-->
-
+
-
-
+
+
diff --git a/src/views/soil/monitor/components/LiveData.vue b/src/views/soil/monitor/components/LiveData.vue
index d4b0800..3e02dbd 100644
--- a/src/views/soil/monitor/components/LiveData.vue
+++ b/src/views/soil/monitor/components/LiveData.vue
@@ -2,11 +2,19 @@
* @Author: chris
* @Date: 2025-09-09 15:30:24
* @LastEditors: chris
- * @LastEditTime: 2025-09-12 17:35:34
+ * @LastEditTime: 2025-09-25 09:18:24
-->
-
+
diff --git a/src/views/soil/monitor/config.js b/src/views/soil/monitor/config.js
new file mode 100644
index 0000000..c498d66
--- /dev/null
+++ b/src/views/soil/monitor/config.js
@@ -0,0 +1,59 @@
+/*
+ * @Author: chris
+ * @Date: 2025-09-23 09:49:02
+ * @LastEditors: chris
+ * @LastEditTime: 2025-09-23 11:57:53
+ */
+export const soilTypes = [
+ "SoilTemperature",
+ "SoilHumidity",
+ "EC",
+ "PH",
+ "Nitrogen",
+ "Phosphorus",
+ "Potassium",
+];
+export const soilDict = {
+ SoilTemperature: {
+ name: "土壤温度",
+ unit: "°C",
+ color: "#FF6B6B",
+ icon: "temperature2",
+ },
+ SoilHumidity: {
+ name: "土壤湿度",
+ unit: "%",
+ color: "#4ECDC4",
+ icon: "humidity",
+ },
+ EC: {
+ name: "EC",
+ unit: "μS/cm",
+ color: "#6A0572",
+ icon: "ec",
+ },
+ PH: {
+ name: "PH",
+ unit: "",
+ color: "#FFD166",
+ icon: "ph-color",
+ },
+ Nitrogen: {
+ name: "氮",
+ unit: "mg/kg",
+ color: "#1A535C",
+ icon: "nitrogen",
+ },
+ Phosphorus: {
+ name: "磷",
+ unit: "mg/kg",
+ color: "#77DD77",
+ icon: "phosphorus",
+ },
+ Potassium: {
+ name: "钾",
+ unit: "mg/kg",
+ color: "#845EC2",
+ icon: "potassium",
+ },
+};
diff --git a/src/views/soil/monitor/index.vue b/src/views/soil/monitor/index.vue
index 7b41984..414aac1 100644
--- a/src/views/soil/monitor/index.vue
+++ b/src/views/soil/monitor/index.vue
@@ -2,46 +2,111 @@
* @Author: chris
* @Date: 2025-09-05 09:29:59
* @LastEditors: chris
- * @LastEditTime: 2025-09-12 14:20:17
+ * @LastEditTime: 2025-09-25 09:35:34
-->
@@ -49,7 +114,7 @@ function handleTimeRangeChange(range) {
-
+
diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue
index b356179..9689b20 100644
--- a/src/views/system/dept/index.vue
+++ b/src/views/system/dept/index.vue
@@ -1,17 +1,17 @@
-
+
-
+
-
+
@@ -78,7 +78,7 @@
-
+
@@ -93,8 +93,8 @@
-
-
+
+
@@ -118,7 +118,27 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/weather/monitor/components/LiveData.vue b/src/views/weather/monitor/components/LiveData.vue
index c7c9fd8..df6cd3b 100644
--- a/src/views/weather/monitor/components/LiveData.vue
+++ b/src/views/weather/monitor/components/LiveData.vue
@@ -2,65 +2,56 @@
* @Author: chris
* @Date: 2025-09-09 15:30:24
* @LastEditors: chris
- * @LastEditTime: 2025-09-22 17:25:39
+ * @LastEditTime: 2025-10-27 14:56:51
-->
@@ -69,11 +60,16 @@ function handleSelect(item) {
+
+
+
+
diff --git a/src/views/weather/monitor/config.js b/src/views/weather/monitor/config.js
index 4cec4cd..2040187 100644
--- a/src/views/weather/monitor/config.js
+++ b/src/views/weather/monitor/config.js
@@ -10,25 +10,30 @@ export const weatherDict = {
name: "温度",
unit: "°C",
color: "#FF6B6B",
+ icon: "temperature2",
},
Illuminance: {
name: "光照",
unit: "lux",
color: "#FFD166",
+ icon: "light",
},
WindSpeed: {
name: "风速",
unit: "km/h",
color: "#009688",
+ icon: "windPower",
},
WindDirection: {
name: "风向",
unit: "°",
color: "#845EC2",
+ icon: "wind",
},
DailyRainfall: {
name: "降雨量",
unit: "mm",
color: "#6A0572",
+ icon: "rain",
},
};
diff --git a/src/views/weather/monitor/index.vue b/src/views/weather/monitor/index.vue
index e11095a..76fe7e8 100644
--- a/src/views/weather/monitor/index.vue
+++ b/src/views/weather/monitor/index.vue
@@ -2,7 +2,7 @@
* @Author: chris
* @Date: 2025-09-05 09:29:59
* @LastEditors: chris
- * @LastEditTime: 2025-09-22 17:23:27
+ * @LastEditTime: 2025-09-25 09:35:16
-->
-
+
diff --git a/vite.config.js b/vite.config.js
index c31edac..69d2a4a 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -2,7 +2,7 @@
* @Author: chris
* @Date: 2025-01-13 09:33:28
* @LastEditors: chris
- * @LastEditTime: 2025-09-16 10:07:43
+ * @LastEditTime: 2025-10-27 10:24:31
*/
import { defineConfig, loadEnv } from "vite";
import path from "path";
@@ -63,7 +63,7 @@ export default defineConfig(({ mode, command }) => {
preprocessorOptions: {
scss: {
silenceDeprecations: ["legacy-js-api"],
- additionalData: `@import "@/assets/styles/variables.scss";`,
+ additionalData: `@import "@/assets/styles/variables_custom.scss";`,
},
},
},