1
0
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:
Elsio Sanchez 2021-05-11 17:41:58 -04:00 committed by GitHub
parent 9fd0270f0e
commit 03eb8949c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View File

@ -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
}
},

View File

@ -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