mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-07 18:25:45 +08:00
validate when displaying modal in mobile mode (#831)
* validate mode movil * minimal changes * hide Tabs Children * Undo Commit Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
parent
9fd0270f0e
commit
03eb8949c6
@ -91,6 +91,9 @@ export default {
|
||||
return this.$store.getters.getAttributeEmbedded
|
||||
},
|
||||
isVisibleDialog() {
|
||||
if (this.isMobile) {
|
||||
return false
|
||||
}
|
||||
return this.$store.state['process/index'].isVisibleDialog
|
||||
},
|
||||
modalMetadata() {
|
||||
@ -103,6 +106,9 @@ export default {
|
||||
return this.$store.getters.getDataRecordAndSelection(this.containerUuid)
|
||||
},
|
||||
showRecordAccess() {
|
||||
if (this.isMobile) {
|
||||
return false
|
||||
}
|
||||
return this.$store.getters.getShowRecordAccess
|
||||
}
|
||||
},
|
||||
|
@ -655,7 +655,16 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.timeOut = setTimeout(() => {
|
||||
this.showPopoverPath = true
|
||||
if (this.isMobile && this.optionColumnName === this.field.columnName) {
|
||||
this.$store.commit('changeShowRigthPanel', true)
|
||||
this.$store.dispatch('setOptionField', {
|
||||
fieldAttributes: this.fieldAttributes,
|
||||
name: this.$route.query.typeAction,
|
||||
valueField: this.valueField
|
||||
})
|
||||
} else {
|
||||
this.showPopoverPath = true
|
||||
}
|
||||
}, 2000)
|
||||
// assined field with prop
|
||||
this.field = this.metadataField
|
||||
|
Loading…
x
Reference in New Issue
Block a user