需求开发
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user