解决列表查询无数据问题
This commit is contained in:
parent
d442f4bb46
commit
d0dc35e3c0
@ -417,7 +417,6 @@ class TableBaseComponent extends ComponentBase {
|
||||
实际加载表数据
|
||||
*/
|
||||
doLoadTableData = (loadParamJson, tableCode, onComplete, onLoadData) => {
|
||||
console.log('调用查询实际过程', 6);
|
||||
const payloadJson = this.getLoadTableDataParams(loadParamJson, tableCode);
|
||||
if (!payloadJson) return;
|
||||
|
||||
@ -426,7 +425,6 @@ class TableBaseComponent extends ComponentBase {
|
||||
}
|
||||
const tableConfig = this.getTableConfig({ tableCode });
|
||||
const { api } = tableConfig ? tableConfig : {};
|
||||
console.log('调用查询实际过程', 7, api);
|
||||
|
||||
this.props.dispatch({
|
||||
type: 'listPage/getTableData',
|
||||
|
||||
@ -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()
|
||||
}
|
||||
|
||||
@ -86,3 +86,9 @@ app.router(require('./router').default);
|
||||
app.start('#root');
|
||||
|
||||
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)
|
||||
}
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user