列表页动态刷新

This commit is contained in:
ljx 2024-04-10 10:47:37 +08:00
parent ec939fd490
commit 941535e568
62 changed files with 323 additions and 1 deletions

View File

@ -193,6 +193,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -183,6 +183,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -201,6 +201,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -195,6 +195,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -185,6 +185,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -209,6 +209,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -195,6 +195,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -185,6 +185,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -206,6 +206,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -195,6 +195,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -185,6 +185,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -202,6 +202,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -195,6 +195,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -185,6 +185,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -201,6 +201,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -195,6 +195,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -185,6 +185,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -210,6 +210,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -195,6 +195,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -185,6 +185,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -201,6 +201,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -195,6 +195,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -185,6 +185,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -218,6 +218,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -195,6 +195,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -185,6 +185,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -202,6 +202,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -195,6 +195,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -185,6 +185,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -280,6 +280,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -280,6 +280,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -276,6 +276,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -195,6 +195,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -278,6 +278,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -276,6 +276,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -277,6 +277,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -281,6 +281,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -276,6 +276,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -185,6 +185,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -282,6 +282,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -195,6 +195,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -283,6 +283,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -282,6 +282,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -282,6 +282,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -282,6 +282,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -283,6 +283,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -282,6 +282,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -185,6 +185,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -208,6 +208,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -235,6 +235,12 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {
@ -373,6 +379,7 @@ export default {
},
//
onSearch() {
console.log('触发了')
this.$refs.xGrid.commitProxy('query') //
},

View File

@ -288,6 +288,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -214,6 +214,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -236,6 +236,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -209,6 +209,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -271,6 +271,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -260,6 +260,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -240,6 +240,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -213,6 +213,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -220,6 +220,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -272,6 +272,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -368,6 +368,11 @@ export default {
this.$refs.xGrid.connect(this.$refs.xToolbar) //
});
},
//
activated() {
this.onSearch();
//
},
//
onLoad() {

View File

@ -126,6 +126,21 @@ function initRouter(isAsync) { // 初始化路由
const options = isAsync ? require('./async/config.async').default : require('./config').default // 引入路由配置
formatRoutes(options.routes) // 格式化路由
// console.log(options)
return new Router(options) // 返回路由实例
let router = new Router(options) // 创建路由实例
router.beforeEach((to, from, next) => {
console.log(to.path)
// if (to.path.includes('List')) {
// console.log(to.matched[2].default)
// // 假设PageB组件有一个方法refreshData用来获取最新数据
// to.matched.some(record => {
// if (record.components.default.methods.onSearch) {
// record.components.default.methods.onSearch();
// return true;
// }
// });
// }
next();
});
return router // 返回路由实例
}
export { loginIgnore, initRouter } // 导出路由配置和初始化路由方法