|
@@ -2108,14 +2108,28 @@
|
|
|
this.loadPobjList();
|
|
this.loadPobjList();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- mounted() {
|
|
|
|
|
- // 功能说明:临时将 vm 暴露到 window,供 searchButtonConfig.opt.callback 调用(后续再改为事件回传方式) by xu 20260123
|
|
|
|
|
- try { window.__objListVm = this; } catch (_) {}
|
|
|
|
|
- // 初始化:把 URL/form 上已有的参数合并到 form/ssPaging(支持回显 + ajax)
|
|
|
|
|
- const curParams = this.getSearchFormParams();
|
|
|
|
|
- this.form = {...this.form, ...curParams};
|
|
|
|
|
- // 功能说明:分页参数不再从表单读取/初始化(完全由 ssPaging 驱动,且页面不再输出分页隐藏域) by xu 20260123
|
|
|
|
|
- this.searchButtonConfigCheckId = String(this.form?.management || "99");
|
|
|
|
|
|
|
+ mounted() {
|
|
|
|
|
+ // 功能说明:临时将 vm 暴露到 window,供 searchButtonConfig.opt.callback 调用(后续再改为事件回传方式) by xu 20260123
|
|
|
|
|
+ try { window.__objListVm = this; } catch (_) {}
|
|
|
|
|
+ // 功能说明:弹窗保存后只刷新列表数据(走 Ajax),禁止走 form.submit/reload 以免跳到 /service 返回内容导致白屏 by xu 20260202
|
|
|
|
|
+ try {
|
|
|
|
|
+ const vm = this;
|
|
|
|
|
+ window.wdRefresh = function () {
|
|
|
|
|
+ try {
|
|
|
|
|
+ if (vm.loadingList) return;
|
|
|
|
|
+ // 保持当前筛选/页码,仅刷新列表数据
|
|
|
|
|
+ vm.userInteracted = true;
|
|
|
|
|
+ vm.loadPobjList();
|
|
|
|
|
+ } catch (e) {
|
|
|
|
|
+ console.error("[objList] wdRefresh failed", e);
|
|
|
|
|
+ }
|
|
|
|
|
+ };
|
|
|
|
|
+ } catch (_) {}
|
|
|
|
|
+ // 初始化:把 URL/form 上已有的参数合并到 form/ssPaging(支持回显 + ajax)
|
|
|
|
|
+ const curParams = this.getSearchFormParams();
|
|
|
|
|
+ this.form = {...this.form, ...curParams};
|
|
|
|
|
+ // 功能说明:分页参数不再从表单读取/初始化(完全由 ssPaging 驱动,且页面不再输出分页隐藏域) by xu 20260123
|
|
|
|
|
+ this.searchButtonConfigCheckId = String(this.form?.management || "99");
|
|
|
// 功能说明:首屏在列表数据未到达前,按 thnType 预设 cardGridKind(决定 --ss-card-min),避免 detectCardGridKind 在空列表时把缩略图场景误判为 none by xu 20260123
|
|
// 功能说明:首屏在列表数据未到达前,按 thnType 预设 cardGridKind(决定 --ss-card-min),避免 detectCardGridKind 在空列表时把缩略图场景误判为 none by xu 20260123
|
|
|
try {
|
|
try {
|
|
|
const t = Number(this.thnType || 0);
|
|
const t = Number(this.thnType || 0);
|