|
|
@@ -529,7 +529,7 @@ const submitForm = (formEl) => {
|
|
|
}
|
|
|
delete queryParams.speciesItem;
|
|
|
queryParams.speciesName = mainSpecies?.name;
|
|
|
-
|
|
|
+
|
|
|
// if (pageData?.type === 'add') {
|
|
|
// queryParams.invite = true;
|
|
|
// }
|
|
|
@@ -689,7 +689,7 @@ function getSpecieList() {
|
|
|
const list = Array.isArray(data) ? data : [];
|
|
|
// 只保留名称包含“水稻”或“荔枝”的品类
|
|
|
const litchiList = list.filter(
|
|
|
- (item) => item?.name && (item.name.includes("水稻") || item.name.includes("荔枝"))
|
|
|
+ (item) => item?.name && (item.name.includes("水稻") || item.name.includes("荔枝")|| item.name.includes("大豆")|| item.name.includes("茶叶"))
|
|
|
);
|
|
|
specieList.value = litchiList;
|
|
|
// 返回空列表时,重置已选品类,避免保留上一次默认项
|
|
|
@@ -765,7 +765,7 @@ function backgToHome() {
|
|
|
url: `/pages/subPages/new_recognize/index?gardenData=${JSON.stringify(dropdownGardenItem.value)}`,
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
json?.from && router.replace(`/${json.from}`);
|
|
|
// const paramsPage = JSON.parse(json.paramsPage);
|
|
|
// if (paramsPage.isFarmer) {
|