diff --git a/src/components/index/leftBottom.vue b/src/components/index/leftBottom.vue index f3567f2..95fa7f4 100644 --- a/src/components/index/leftBottom.vue +++ b/src/components/index/leftBottom.vue @@ -6,7 +6,7 @@ import scrollTable from "@/components/scrollTable.vue" import { ref, reactive, onMounted } from "vue" import { plantProductCountApi } from "@/api.js" import { areaObj } from "@/store/index.js" -const userInfoStore=areaObj() +const userInfoStore = areaObj() // ...userInfoStore.userInfo const alignFn = (num) => { let arr = [] @@ -22,7 +22,7 @@ const config2 = reactive({ headerStyle: "background:#0E316B", align: alignFn(4), - data: [ ] + data: [] }) @@ -45,14 +45,14 @@ const correctionListFn = (list) => { plantProductCountApi( { - ...userInfoStore.userInfo + ...userInfoStore.userInfo } ).then(res => { correctionListFn(res.data.list).forEach(item => { config2.data.push( - [item[0].kind, `` , item[1].kind,`` ] + [item[0].kind, ``, item[1].kind, ``] ) }) }) diff --git a/src/components/index/leftCenter.vue b/src/components/index/leftCenter.vue index 1d5e02f..b607a45 100644 --- a/src/components/index/leftCenter.vue +++ b/src/components/index/leftCenter.vue @@ -46,7 +46,7 @@ const setOnlineFn = (data) => { title: [ { - text: (data.value / data.total * 100) + '%', + text: (data.value / data.total * 100).toFixed(2) + '%', x: 'center', top: '42%', textStyle: { diff --git a/src/components/index/rightTop.vue b/src/components/index/rightTop.vue index 61ae6f3..25b075e 100644 --- a/src/components/index/rightTop.vue +++ b/src/components/index/rightTop.vue @@ -1,7 +1,7 @@ - + diff --git a/src/components/warnPop.vue b/src/components/warnPop.vue index fc233fb..3886fc6 100644 --- a/src/components/warnPop.vue +++ b/src/components/warnPop.vue @@ -4,22 +4,22 @@ - + 土壤温度(℃)已预警 {{ data.soil_temperature?.alarmCount }} (次) - - 土壤湿度(℃)已预警 {{data.soil_moisture?.alarmCount }} (次) + + 土壤湿度(℃)已预警 {{ data.soil_moisture?.alarmCount }} (次) - - 土壤PH值 已预警 {{data.soil_PH?.alarmCount }} (次) + + 土壤PH值 已预警 {{ data.soil_PH?.alarmCount }} (次) @@ -27,30 +27,31 @@ - - 土壤氮磷钾 已预警 {{data.soil_potassium_phosphate_nitrogen?.alarmCount }} (次) + + 土壤氮磷钾 已预警 {{ data.soil_potassium_phosphate_nitrogen?.alarmCount }} + (次) - - 风速(m/s) 已预警 {{ data.wind_speed?.alarmCount }} (次) + + 风速(m/s) 已预警 {{ data.wind_speed?.alarmCount }} (次) - + 环境温度(℃)已预警 {{ data.ambient_temperature?.alarmCount }} (次) - + 环境湿度(℃)已预警 {{ data.ambient_humidity?.alarmCount }} (次) @@ -58,7 +59,7 @@ - + 二氧化碳 已预警 {{ data.carbon_dioxide?.alarmCount }} (次) @@ -136,17 +137,17 @@ \ No newline at end of file