当前位置:网站首页>JvxeTable子表记录加载完毕事件
JvxeTable子表记录加载完毕事件
2022-06-30 02:48:00 【OK_boom】
JvxeTable其实用的是vxeTable,但是可惜的是vxeTable没有加载完毕事件。
查jvxeTable代码,发现JVxeTableMixin.methods.requestSubTableData最后一个参数success就是获取远程数据成功后的回调
目标:在子表加载完毕后,检查子表记录是否有未下跟单的记录,有的话才显示下跟单的按钮
- 第一步,在methods加入:
async updateMtMainPurchase() {
//判断是否显示采购已跟单
let mtMain = await getRefPromise(this, 'smpOrderMtMain')
let rows = mtMain.getAll().tableData
console.log(rows)
let res = rows.filter(item => {
return item.purStatus < 'B06A02'
})
return res.length>0
}
- 第2步,修改editAfter
将拉取子表远程数据的语句改为如下,就是拉取成功后停100毫秒就调用updateMtMainPurchase将返回结果更新到hasUnAssignPurchase
this.requestSubTableData(this.url.smpOrderMtMain.list, params, this.smpOrderMtMainTable,
()=>{
setTimeout(()=>{
that.updateMtMainPurchase().then(ret=>{
that.$set(that,'hasUnAssignPurchase',ret)
})
},100)
})
边栏推荐
- Raki's notes on reading paper: neighborhood matching network for entity alignment
- A quick look at the statistical data of 23 major cyber crimes from 2021 to 2022
- How vscode debugs into standard library files / third-party package source code
- FDA ESG规定:必须使用数字证书保证通信安全
- CMake教程系列-03-依赖管理
- FDA ESG regulation: digital certificate must be used to ensure communication security
- 论文回顾:Playful Palette: An Interactive Parametric Color Mixer for Artists
- How to prevent duplicate submission under concurrent requests
- Ffmpeg source code
- 身份证号的严谨判断精确到队后一位
猜你喜欢

Raki's notes on reading paper: neighborhood matching network for entity alignment

Shell Sort

重磅来袭--UE5的开源数字孪生解决方案

最小栈详解

Cmake tutorial series -02- generating binaries using cmake code

Ffmpeg source code

Call collections Sort() method, compare two person objects (by age ratio first, and by name ratio for the same age), and pass lambda expression as a parameter.

Two methods of SSL certificate format conversion

HTA introductory basic tutorial | GUI interface of vbs script HTA concise tutorial, with complete course and interface beautification

Unity3D UGUI强制刷新Layout(布局)组件
随机推荐
Raki's notes on reading paper: named entity recognition as dependency parsing
模板参数包和函数参数包
threejs 镜子案例Reflector 创建镜子+房子搭建+小球移动
Pytoch learning (II)
原生JS怎么生成九宫格
在php中字符串的概念是什么
Jupyter notebook显示k线图集合
What is a self signed certificate? Advantages and disadvantages of self signed SSL certificates?
What is the difference between a layer 3 switch and a layer 2 switch
What is certificate transparency CT? How to query CT logs certificate logs?
C language pivot_ Invalid argument error resolution for root
Xunwei NXP itop-imx6 development platform
[NPM] solve the problem of error reporting when installing typeorm with NPM
隐藏在科技教育中的steam元素
A quick look at the statistical data of 23 major cyber crimes from 2021 to 2022
银行的理财产品一般期限是多久?
CMake教程系列-02-使用cmake代碼生成二進制
What are the requirements for NPDP product manager international certification examination?
Global and Chinese market of ERP software for garment and textile industries 2022-2028: Research Report on technology, participants, trends, market size and share
Differences among digicert, SECTIONO and globalsign code signing certificates