解决列表无数据问题,刷新也依然没有数据

This commit is contained in:
chenshaowei 2026-05-12 15:18:57 +08:00
parent 3941f7166e
commit 964e91389c
4 changed files with 7 additions and 7 deletions

View File

@ -422,7 +422,6 @@ class TableBaseComponent extends ComponentBase {
实际加载表数据
*/
doLoadTableData = (loadParamJson, tableCode, onComplete, onLoadData) => {
console.log('调用查询实际过程', 6)
const payloadJson = this.getLoadTableDataParams(loadParamJson, tableCode)
if (!payloadJson) return
@ -431,7 +430,6 @@ class TableBaseComponent extends ComponentBase {
}
const tableConfig = this.getTableConfig({ tableCode });
const { api } = tableConfig ? tableConfig : {};
console.log('调用查询实际过程', 7, api)
this.props.dispatch({
type: 'listPage/getTableData',

View File

@ -297,7 +297,6 @@ class AdvanceSearch extends Component {
*/
handleSearch = (self = true) => {
if (this.setShareIns(self)) return
console.log('调用查询开始', 1)
const { onSearch } = this.props
onSearch instanceof Function && onSearch()
}

View File

@ -85,4 +85,10 @@ app.router(require('./router').default);
// 5. Start
app.start('#root');
window.g_app = app;
window.g_app = app;
const { localStorage } = window
for (let i = 0; i < localStorage.length; i++) {
const key = localStorage.key(i)
key.indexOf('_requestKey') > -1 && localStorage.removeItem(key)
}

View File

@ -22,11 +22,8 @@ export default {
return ret
},
*getTableData ({ payload, url, onComplete }, { call, put }) {
console.log('执行前',appService.getTableData)
const ret = yield call(appService.getTableData, { payload, url })
console.log('执行后')
if (typeof onComplete === 'function') {
console.log('执行后',ret)
onComplete(ret)
}
return ret