1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 12:01:57 +08:00

add validation the isDisplayedGrid to table (#783)

* add validation the isDisplayedGrid to table

* minimalchanges
This commit is contained in:
Elsio Sanchez 2021-04-23 18:20:11 -04:00 committed by GitHub
parent 3ddba455ab
commit 256af25448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 9 deletions

View File

@ -248,6 +248,10 @@ export default {
return 'skill' return 'skill'
} }
}, },
created() {
this.generateContextMenu()
this.getReferences()
},
methods: { methods: {
clickRelation(item) { clickRelation(item) {
this.$router.push({ this.$router.push({

View File

@ -276,12 +276,6 @@ export default {
} }
} }
}, },
created() {
this.generateContextMenu()
},
mounted() {
this.getReferences()
},
methods: { methods: {
showNotification, showNotification,
actionContextMenu(event) { actionContextMenu(event) {
@ -427,7 +421,9 @@ export default {
return item return item
} }
}) })
this.$store.dispatch('setOrder', processAction) if (processAction) {
this.$store.dispatch('setOrder', processAction)
}
} }
if (this.isWindow && this.isEmptyValue(this.actions.find(element => element.action === 'recordAccess'))) { if (this.isWindow && this.isEmptyValue(this.actions.find(element => element.action === 'recordAccess'))) {
this.$store.dispatch('addAttribute', { this.$store.dispatch('addAttribute', {

View File

@ -202,6 +202,10 @@ export default {
return 'skill' return 'skill'
} }
}, },
created() {
this.generateContextMenu()
this.getReferences()
},
methods: { methods: {
clickRelation(item) { clickRelation(item) {
this.$router.push({ this.$router.push({

View File

@ -344,10 +344,12 @@ export default {
}) })
}, },
headerLabel(field) { headerLabel(field) {
if (field.isMandatory || field.isMandatoryFromLogic) { if (field.isMandatory || field.isMandatoryFromLogic && field.isDisplayedGrid) {
return '* ' + field.name return '* ' + field.name
} }
return field.name if (field.isDisplayedGrid) {
return field.name
}
}, },
/** /**
* @param {object} row, row data * @param {object} row, row data