当前位置:网站首页>Jvxetable implant j-popup with slot
Jvxetable implant j-popup with slot
2022-07-06 05:22:00 【OK_ boom】
The previous article talked about how to determine according to the current record jpopup field whether disabled(https://blog.csdn.net/rocklee/article/details/125581874?spm=1001.2014.3001.5501), Here is how to use slot Slot mode assignment template by j-popup
<template #prodSeq="{row, rowIndex, $rowIndex, column}" >
<j-popup
v-model="row.prodSeq"
:code="column.popupCode"
:field="column.field"
:column="column"
:value="row[column.key]"
:renderOptions="{listeners:$listeners}"
:orgFields="column.orgFields"
:destFields="column.destFields"
:param="column.param"
:sorter="column.sorter"
:row="row"
:multi="false"
:disabled="!column.props.getDisabled(row,column)"
@input="(value,others,oldValue,row)=>updateMainMtRecord(value,others,oldValue,row,column,rowIndex)"
></j-popup>
</template>
slot Inside jpopup Specified parameters
– param Filter parameters specified when browsing records
– row The current record brought in
– disabled Dynamically determine whether to disable
– input Callback eventsInsert this slot
Specify the configuration of a field as slot:
{
title: ' materiel SQ',
key: 'prodSeq',
type: JVXETypes.slot,
slotName:'prodSeq',
fixed: 'left',
width:"150px",
popupCode:"getProds",
field:"prod_seq",
orgFields:"id,prod_name,prod_seq,spec,fukuang,mazhong,unit",
destFields:"prodId,prodName,prodSeq,productInfo.spec,productInfo.fukuang,productInfo.mazhong,productInfo.unit",
placeholder: ' Please enter ${title}',
defaultValue:'',
param: {prod_cat:'B04A01'},
props:{
formType:this.type,
getDisabled: (row,column,ref)=>{return !(!!row['clone']||(this.formType||!!ref&&ref.$attrs.formType)=='edit')}
},
validateRules: [{ required: true, message: '${title} Can't be empty ' }],
}
- Jpopup Modification of
data() Added oldValue:
data() {
return {
showText: '',
title: '',
oldValue:'',
avalid: true,
extendParam: {}
}
}
openModal() want oldValue Save the original value
openModal() {
if (this.disabled === false) {
this.oldValue=this.row[this.column.key]
this.$refs.jPopupOnlReport.show()
}
}
Last callback Change the last sentence to :
this.$emit('input', str, res,this.oldValue,this.row)
边栏推荐
- Force buckle 1189 Maximum number of "balloons"
- TCP three handshakes you need to know
- Zoom and pan image in Photoshop 2022
- Vulhub vulnerability recurrence 67_ Supervisor
- 03. 开发博客项目之登录
- 02. 开发博客项目之数据存储
- Yolov5 tensorrt acceleration
- Codeforces Round #804 (Div. 2) Editorial(A-B)
- Postman Association
- 【torch】|torch.nn.utils.clip_grad_norm_
猜你喜欢

CUDA11.1在线安装

Summary of redis basic knowledge points

Rce code and Command Execution Vulnerability

Fuzzy -- basic application method of AFL

What are the advantages of the industry private network over the public network? What specific requirements can be met?

04. Project blog log
![[leetcode16] the sum of the nearest three numbers (double pointer)](/img/99/a167b0fe2962dd0b5fccd2d9280052.jpg)
[leetcode16] the sum of the nearest three numbers (double pointer)

趋势前沿 | 达摩院语音 AI 最新技术大全

The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower

The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
随机推荐
Vulhub vulnerability recurrence 67_ Supervisor
Fiddler installed the certificate, or prompted that the certificate is invalid
關於Unity Inspector上的一些常用技巧,一般用於編輯器擴展或者其他
Huawei od computer test question 2
Pagoda configuration mongodb
[noip2009 popularization group] score line delimitation
05. 博客项目之安全
Knowledge points of circular structure
GAMES202-WebGL中shader的編譯和連接(了解向)
Solution of QT TCP packet sticking
Force buckle 1189 Maximum number of "balloons"
Questions d'examen écrit classiques du pointeur
[mask requirements of OSPF and Isis in multi access network]
Postman test report
[leetcode] 18. Sum of four numbers
Please wait while Jenkins is getting ready to work
Sliding window problem review
nacos-高可用seata之TC搭建(02)
Driver development - hellowdm driver
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower