1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-13 23:20:12 +08:00

fix/ correction of dialog (#665)

* action value correction in dialog when defined
This commit is contained in:
Diego Chavez 2021-03-13 11:14:46 -04:00 committed by GitHub
parent ce13f82ec7
commit 4c1a34077d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ export default {
} }
}, () => {}) }, () => {})
this.closeDialog() this.closeDialog()
} else if (action !== undefined) { } else if (!this.isEmptyValue(action)) {
const fieldNotReady = this.$store.getters.isNotReadyForSubmit(action.uuid) const fieldNotReady = this.$store.getters.isNotReadyForSubmit(action.uuid)
if (this.panelType === 'From') { if (this.panelType === 'From') {
this.$store.dispatch('processPos', { this.$store.dispatch('processPos', {
@ -167,7 +167,7 @@ export default {
const porcesTabla = this.$store.getters.getProcessSelect.processTablaSelection const porcesTabla = this.$store.getters.getProcessSelect.processTablaSelection
const selection = this.$store.getters.getProcessSelect const selection = this.$store.getters.getProcessSelect
if (porcesTabla) { if (porcesTabla) {
// selection.forEach(element => { // manage excecute process with records selection
this.$store.dispatch('selectionProcess', { this.$store.dispatch('selectionProcess', {
action: action, // process metadata action: action, // process metadata
parentUuid: this.parentUuid, parentUuid: this.parentUuid,
@ -178,7 +178,6 @@ export default {
isProcessTableSelection: true, isProcessTableSelection: true,
routeToDelete: this.$route routeToDelete: this.$route
}) })
// })
} else { } else {
this.$store.dispatch('startProcess', { this.$store.dispatch('startProcess', {
action: action, // process metadata action: action, // process metadata