当前位置:网站首页>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 .

边栏推荐
- The field value in Splunk subquery fuzzy matching CSV is*
- POJ - 3784 Running Median(对顶堆)
- [IELTS speaking] Anna's oral learning records Part3
- AVL平衡二叉搜索树
- Splunk子查询模糊匹配csv中字段值为*
- ES6_ Arrow function
- Open3d ISS key points
- opencv学习笔记四——膨胀/腐蚀/开运算/闭运算
- [paper reading] icml2020: can autonomous vehicles identify, recover from, and adapt to distribution shifts?
- IP-guard助力能源企业完善终端防泄密措施,保护机密资料安全
猜你喜欢

2 - 3 arbre de recherche
![[untitled]](/img/b5/348b1d8b5d34cf10e715522b9871f2.png)
[untitled]

Give full play to the wide practicality of maker education space

Splunk query CSV lookup table data dynamic query
![[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?

Exercise arrangement 2.10, 11

Golang compilation constraint / conditional compilation (/ / +build < tags>)

探索STEAM艺术设计中的创造力

发挥创客教育空间的广泛实用性

Through the "last mile" of legal services for the masses, fangzheng Puhua labor and personnel law self-service consulting service platform has been frequently "praised"
随机推荐
IP-guard助力能源企业完善终端防泄密措施,保护机密资料安全
Use of out covariance and in inversion in kotlin
Easy to understand SSO
How to realize the high temperature alarm of the machine room in the moving ring monitoring system
JS copy picture to clipboard read clipboard
2-3查找树
提高企业产品交付效率系列(1)—— 企业应用一键安装和升级
Snyk 依赖性安全漏洞扫描工具
DeiT学习笔记
AVL平衡二叉搜索树
下载和安装orcale database11.2.0.4
国标GB28181协议视频平台EasyGBS新增拉流超时配置
BiSeNet的特點
opencv学习笔记三——图像平滑/去噪处理
2-3 lookup tree
发挥创客教育空间的广泛实用性
Offer harvester: add and sum two long string numbers (classic interview algorithm question)
Four items that should be included in the management system of integral mall
Rsync remote synchronization
go写一个在一定时间内运行的程序