mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2026-07-09 00:00:04 +08:00
验证,样式调整等
This commit is contained in:
@@ -36,6 +36,10 @@ export default {
|
||||
where: {
|
||||
type: Object,
|
||||
default: () => {}
|
||||
},
|
||||
notReset: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -69,10 +73,12 @@ export default {
|
||||
},
|
||||
reset() {
|
||||
for(var key in this.where){
|
||||
if(this.where[key] instanceof Object){
|
||||
this.where[key].value = null
|
||||
}else{
|
||||
this.where[key] = null
|
||||
if(this.notReset.indexOf(key) == -1){
|
||||
if(this.where[key] instanceof Object){
|
||||
this.where[key].value = null
|
||||
}else{
|
||||
this.where[key] = null
|
||||
}
|
||||
}
|
||||
}
|
||||
this.$nextTick(() => this.$emit('search'))
|
||||
|
||||
Reference in New Issue
Block a user