当前位置:网站首页>Tips for using jeditabletable
Tips for using jeditabletable
2022-07-07 08:31:00 【OK_ boom】
JEditableTable Use the default criteria to query
JEditableTable By weaving in JeecgListMixin To implement the query ,created Priority will be given to implementation JVxeTableModelMixin Of created, So priority will be given to load once data.
Fortunately, it has a switch to turn it off and automatically load data .
In our own inquiry vue Processing , stay data Add in disableMixinCreated:true And in created You can load the data manually .
created() {
this.getSuperFieldList()
this.$nextTick(()=>{
if (this.type=='purchase'){
this.$set(this.queryParam,'approved',"1")
}
this.loadData();
// Initialize dictionary configuration Define on your own page
this.initDictConfig();
})
}
JEditableTable Modify the default value of the record
There's been a lot of attempts , Finally, make sure to modify JEditableTable Of dataSource And it needs to trigger its monitoring function to load new data into the interface , but JEditableTable Of dataSource No listening deep, It needs to be added to monitor dataSource Changes in content .
dataSource: {
immediate: true,
deep: true,
handler: function (newValue) {
// compatible IE
this.getElementPromise('tbody').then(() => {
this.initialize()
this._pushByDataSource(newValue)
})
}
},
The following is to be achieved , When data linkage makes JEditableTable Inside select Type of field options Refresh again and JEditableTable The value of this field of all records is cleared
async prodCatChange(value){
//tbVendor yes JEditableTable example
let tbVendor = await getRefPromise(this, 'smpProductVendor')
let column=tbVendor.columns.filter(m=>m.key=='vendorId')[0]
column.options=[]// Must empty , Otherwise, the superposition will be recorded
tbVendor._loadDictConcatToOptions(column)
let dataSource=this.smpProductVendorTable.dataSource
dataSource.forEach(item=>{
item.vendorId='.'
})
dataSource.forEach(item=>{
item.vendorId=''
})
},
Why should we put vendorId Set twice ? Because if you set it once , Repeat this method and it will not trigger again tbVendor Of dataSource monitor .

边栏推荐
- Give full play to the wide practicality of maker education space
- eBPF Cilium实战(2) - 底层网络可观测性
- Pvtv2--pyramid vision transformer V2 learning notes
- Using nocalhost to develop microservice application on rainbow
- OpenVSCode云端IDE加入Rainbond一体化开发体系
- Merge sort and non comparison sort
- grpc、oauth2、openssl、双向认证、单向认证等专栏文章目录
- 【Go ~ 0到1 】 第七天 获取时间戳,时间比较,时间格式转换,Sleep与定时器
- Domain specific language / DSL in kotlin
- The field value in Splunk subquery fuzzy matching CSV is*
猜你喜欢

opencv学习笔记五——梯度计算/边缘检测

Famine cloud service management script

Basic use of CTF web shrink template injection nmap

The single value view in Splunk uses to replace numeric values with text

Wang Zijian: is the NFT of Tencent magic core worth buying?
![[quick start of Digital IC Verification] 10. Verilog RTL design must know FIFO](/img/56/82f4533b5bded73df222ef65101a72.png)
[quick start of Digital IC Verification] 10. Verilog RTL design must know FIFO

opencv学习笔记二——图像基本操作
![[paper reading] icml2020: can autonomous vehicles identify, recover from, and adapt to distribution shifts?](/img/ff/81a7b2ec08a6a422a5cf578c1fed13.jpg)
[paper reading] icml2020: can autonomous vehicles identify, recover from, and adapt to distribution shifts?

AVL平衡二叉搜索树

Splunk中single value视图使用将数值替换为文字
随机推荐
Interview questions (CAS)
PVTV2--Pyramid Vision TransformerV2学习笔记
发挥创客教育空间的广泛实用性
How to understand distributed architecture and micro service architecture
[quick start of Digital IC Verification] 12. Introduction to SystemVerilog testbench (svtb)
Standard function let and generic extension function in kotlin
Easy to understand SSO
One click installation of highly available Nacos clusters in rainbow
归并排序和非比较排序
opencv学习笔记二——图像基本操作
Input of mathematical formula of obsidan
[quick start of Digital IC Verification] 10. Verilog RTL design must know FIFO
Implement your own dataset using bisenet
Low success rate of unit test report
Automatic upgrading of database structure in rainbow
The reified keyword in kotlin is used for generics
Practice of implementing cloud native Devops based on rainbow library app
机器人教育在动手实践中的真理
雅思考试自己的复习进度以及方法使用【日更版】
国标GB28181协议视频平台EasyGBS新增拉流超时配置