需求开发

This commit is contained in:
FengHui
2026-05-20 20:50:51 +08:00
parent c74cdf13c2
commit 2175210ea0
8 changed files with 461 additions and 35 deletions

View File

@@ -329,6 +329,7 @@ export default {
// })
},
popupSearch(data) {
console.log(data[0].data[1]);
// 获取此次提交前,旧的政策类型值
const oldTypeL = this.queryParams.policyTypeL || "";
@@ -339,6 +340,15 @@ export default {
selections[item.type] = active.dictLabel === "全部" ? "" : active.dictValue;
});
// 政策类型选中 '0' 时传 tag 并清空 policyTypeL
if (selections.policyTypeL === '0') {
const tag = uni.getStorageSync('userInfo')?.userTagName || {};
this.queryParams.tag = tag
selections.policyTypeL = ""
} else {
delete this.queryParams.tag
}
// 核心判定逻辑:
// 如果发现“政策类型(policyTypeL)”发生了变化
if (selections.policyTypeL !== oldTypeL) {