Compare commits

..

No commits in common. "0a7af33e368da095707ed4566bc4d6ebcfda03f2" and "d442f4bb46f908bbe78f94577255b9c5f0c2448f" have entirely different histories.

4 changed files with 7 additions and 7 deletions

View File

@ -417,6 +417,7 @@ class TableBaseComponent extends ComponentBase {
实际加载表数据
*/
doLoadTableData = (loadParamJson, tableCode, onComplete, onLoadData) => {
console.log('调用查询实际过程', 6);
const payloadJson = this.getLoadTableDataParams(loadParamJson, tableCode);
if (!payloadJson) return;
@ -425,6 +426,7 @@ 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,6 +297,7 @@ 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,10 +85,4 @@ app.router(require('./router').default);
// 5. Start
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)
}
window.g_app = app;

View File

@ -22,8 +22,11 @@ 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