|
|
@@ -406,35 +406,7 @@ const handleTabClick = (index) => {
|
|
|
/** 生育期进程时间轴:接入接口后可替换为接口数据 */
|
|
|
/** 不设初值时由 GrowthStageTimeline 默认选中间一档 */
|
|
|
const growthStageIndex = ref();
|
|
|
-const growthStages = ref([
|
|
|
- {
|
|
|
- label: "5%萌动",
|
|
|
- tags: ["最佳给肥点"],
|
|
|
- periodTitle: "生育期",
|
|
|
- periodSubtitle: "描述的小字描述的",
|
|
|
- },
|
|
|
- {
|
|
|
- label: "30%展开",
|
|
|
- periodTitle: "生育期",
|
|
|
- periodSubtitle: "描述的小字描述的",
|
|
|
- },
|
|
|
- {
|
|
|
- label: "60%展开",
|
|
|
- tags: ["最佳防治点", "最佳追肥点"],
|
|
|
- periodTitle: "生育期",
|
|
|
- periodSubtitle: "描述的小字描述的",
|
|
|
- },
|
|
|
- {
|
|
|
- label: "30%红黄",
|
|
|
- periodTitle: "生育期",
|
|
|
- periodSubtitle: "描述的小字描述的",
|
|
|
- },
|
|
|
- {
|
|
|
- label: "60%红黄",
|
|
|
- periodTitle: "生育期",
|
|
|
- periodSubtitle: "描述的小字描述的",
|
|
|
- },
|
|
|
-]);
|
|
|
+const growthStages = ref([]);
|
|
|
|
|
|
/** 与 GrowthStageTimeline 默认档一致:未绑 v-model 时用中间索引 */
|
|
|
function syncCurStageFromModel() {
|
|
|
@@ -474,8 +446,8 @@ const getWorkDetail = async () => {
|
|
|
|
|
|
const getFarmRecord = async () => {
|
|
|
const res = await VE_API.monitor.getFarmRecord();
|
|
|
- if (res.code === 200 && res.data?.phenology.length) {
|
|
|
- phenologyTrackList.value = res.data.phenology.map(item =>{
|
|
|
+ if (res.code === 200 && res.data?.abnormal.length) {
|
|
|
+ phenologyTrackList.value = res.data.abnormal.map(item =>{
|
|
|
return {
|
|
|
date:item.time,
|
|
|
content:item.record + item.ratio + '%',
|