From c0cb0dcf60368c6eeaeb152b02b17fea841e7c4c Mon Sep 17 00:00:00 2001 From: elsiosanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Wed, 29 Jan 2020 16:19:37 -0400 Subject: [PATCH] resolve disabled error with element-ui tabs component (#282) * creating structure for the service * structure container info * waiting for service * service test * Support record Log of container info * style of the option Change Detail * Text formats * add color to event type * Add Disable of textLong * change style text long * Add service the ListRecordChats and ListChatEntries * Support Workflow * changing translation * resolve disabled error with element-ui tabs component --- src/views/ADempiere/Window/index.vue | 80 ++++++++++++++-------------- 1 file changed, 39 insertions(+), 41 deletions(-) diff --git a/src/views/ADempiere/Window/index.vue b/src/views/ADempiere/Window/index.vue index c6fcceb3..1f2fd555 100644 --- a/src/views/ADempiere/Window/index.vue +++ b/src/views/ADempiere/Window/index.vue @@ -151,11 +151,9 @@

- + {{ $t('window.containerInfo.changeLog') }}

- - - -
- {{ evenType.userName }} - - - {{ $t('window.containerInfo.changeDetail') }} - - -
-
- -
-

{{ evenType.displayColumnName }}: {{ evenType.oldDisplayValue }} {{ evenType.newDisplayValue }}

+ + + + +
+ {{ evenType.userName }} + {{ $t('window.containerInfo.changeDetail') }}
- -
-
-
+
+ +
+

{{ evenType.displayColumnName }}: {{ evenType.oldDisplayValue }} {{ evenType.newDisplayValue }}

+
+
+ + + +
{ - if (!reducer.includes(item.logId)) { - reducer.push(item.logId) + const groupLog = this.gettersListRecordLogs.reduce((groupLog, item) => { + if (!groupLog.includes(item.eventType)) { + groupLog.push(item.eventType) } - return reducer + return groupLog }, []) .map(i => { // agrup for logId return { - logs: this.gettersListRecordLogs.filter(b => b.logId === i), - logId: i + logs: this.gettersListRecordLogs.filter(b => b.eventType === i), + eventType: i } }) - return reducer - // } + return groupLog }, gettersLischat() { return this.$store.getters.getChatEntries.chatEntriesList @@ -518,13 +513,13 @@ export default { this.getWindow() }, methods: { - showkey(key) { - if (key === this.currentKey) { + showkey(key, index) { + if (key === this.currentKey && index === this.typeAction) { this.currentKey = 1000 } else { this.currentKey = key + this.typeAction = index } - this.show3 = !this.show3 }, changeField(log) { this.$store.dispatch('notifyPanelChange', { @@ -645,6 +640,9 @@ export default {