当前位置:网站首页>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)
})
边栏推荐
- CMake教程系列-02-使用cmake代码生成二进制
- Time complexity analysis
- 什么是X.509证书?X.509证书工作原理及应用?
- 什么是自签名证书?自签名SSL证书的优缺点?
- Raki's notes on reading paper: neighborhood matching network for entity alignment
- 2. < tag dynamic programming and 0-1 knapsack problem > lt.416 Split equal sum subset + lt.1049 Weight of the last stone II
- 2.8 【 weight of complete binary tree 】
- Shell Sort
- 怎么使用Vant实现数据分页和下拉加载
- Pytorch学习(二)
猜你喜欢

Jupyter notebook显示k线图集合

Mysql表数据比较大情况下怎么修改添加字段

怎么使用Vant实现数据分页和下拉加载

Enlightenment from the revocation of Russian digital certificate by mainstream CA: upgrade the SSL certificate of state secret algorithm to help China's network security to be autonomous and controlla

如何在 JupyterLab 中把 ipykernel 切换到不同的 conda 虚拟环境?

Study diary: February 15, 2022

JMeter obtains cookies across thread groups or JMeter thread groups share cookies

什么是证书透明度CT?如何查询CT logs证书日志?

Distributed file storage system fastdfs hands on how to do it

Shell Sort
随机推荐
Linear algebra Chapter 3 summary of vector and vector space knowledge points (Jeff's self perception)
FAQs for code signature and driver signature
CMake教程系列-03-依赖管理
Global and Chinese markets for light cargo conveyors 2022-2028: Research Report on technology, participants, trends, market size and share
What is certificate transparency CT? How to query CT logs certificate logs?
How to prevent duplicate submission under concurrent requests
Distributed file system fastdfs
oracle怎么设置密码复杂度及超时退出的功能
Série de tutoriels cmake - 02 - génération de binaires à l'aide du Code cmake
Global and Chinese market for defense network security 2022-2028: Research Report on technology, participants, trends, market size and share
Azure 开发者新闻快讯丨开发者6月大事记一览
[论]【DSTG】Dynamic SpatiotemporalGraph Convolutional Neural Networks for Traffic Data Imputation
What kind of foreign exchange trading platform is regulated and safe?
什么是证书透明度CT?如何查询CT logs证书日志?
How to use redis to realize the like function
Heavy attack -- ue5's open source digital twin solution
【postgres】postgres 数据库迁移
Unity3D UGUI强制刷新Layout(布局)组件
Shenzhen CPDA Data Analyst Certification in July 2022
What are the three paradigms of database