uu
This commit is contained in:
parent
bfbe7efa2f
commit
b942da7c4f
@ -75,6 +75,11 @@
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
sureCheckFun: {
|
||||||
|
default () {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -95,8 +100,14 @@
|
|||||||
this.$emit('update:show', false)
|
this.$emit('update:show', false)
|
||||||
this.$emit('onClose')
|
this.$emit('onClose')
|
||||||
},
|
},
|
||||||
handleSubmitValue() {
|
async handleSubmitValue() {
|
||||||
const val = this.submitVals
|
const val = this.submitVals
|
||||||
|
if(this.sureCheckFun) {
|
||||||
|
let bl = await this.sureCheckFun(val)
|
||||||
|
if(!bl){
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
this.$emit('onSure', val)
|
this.$emit('onSure', val)
|
||||||
this.$emit('update:value', val)
|
this.$emit('update:value', val)
|
||||||
this.okCloseModal && this.handleCloseModal()
|
this.okCloseModal && this.handleCloseModal()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user