forked from PanJiaChen/vue-element-admin
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Options fields operator comparison. (#867)
* fix: Options fields operator comparison. * delete unused code. * remove consoles. * fix comment. * add send client request to search. * rename to FieldOptions * separate options fields and component. * remove unused code. * remove field/popover dir * change e-mail * remane components. Co-authored-by: EdwinBetanc0urt <[email protected]>
- Loading branch information
1 parent
72fb23a
commit 0f4fedb
Showing
11 changed files
with
805 additions
and
642 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
107 changes: 107 additions & 0 deletions
107
src/components/ADempiere/Field/FieldOptions/fieldOptionsList.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
// ADempiere-Vue (Frontend) for ADempiere ERP & CRM Smart Business Solution | ||
// Copyright (C) 2017-Present E.R.P. Consultores y Asociados, C.A. | ||
// Contributor(s): Edwin Betancourt [email protected] www.erpya.com | ||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
|
||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
|
||
// You should have received a copy of the GNU General Public License | ||
// along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
import language from '@/lang' | ||
|
||
export const infoOptionItem = { | ||
name: language.t('field.info'), | ||
enabled: true, | ||
svg: false, | ||
icon: 'el-icon-info', | ||
componentRender: () => import('@/components/ADempiere/Field/contextMenuField/contextInfo') | ||
} | ||
|
||
/** | ||
* For operators in advanced query | ||
*/ | ||
export const operatorOptionItem = { | ||
name: language.t('operators.operator'), | ||
enabled: true, | ||
svg: false, | ||
icon: 'el-icon-rank', | ||
componentRender: () => import('@/components/ADempiere/Field/FieldOptions/operatorComparison') | ||
} | ||
|
||
/** | ||
* For lookup fields with context info | ||
*/ | ||
export const zoomInOptionItem = { | ||
name: language.t('table.ProcessActivity.zoomIn'), | ||
enabled: true, | ||
svg: false, | ||
icon: 'el-icon-files', | ||
componentRender: () => import('@/components/ADempiere/Field/contextMenuField/contextInfo') | ||
} | ||
|
||
/** | ||
* Only when is translate option | ||
*/ | ||
export const translateOptionItem = { | ||
name: language.t('language'), | ||
enabled: true, | ||
svg: true, | ||
icon: 'language', | ||
componentRender: () => import('@/components/ADempiere/Field/contextMenuField/translated') | ||
} | ||
|
||
/** | ||
* Displayed calculator option in numeric field | ||
*/ | ||
export const calculatorOptionItem = { | ||
name: language.t('field.calculator'), | ||
enabled: true, | ||
svg: false, | ||
icon: 'el-icon-s-operation', | ||
componentRender: () => import('@/components/ADempiere/Field/contextMenuField/calculator') | ||
} | ||
|
||
export const preferenceOptionItem = { | ||
name: language.t('field.preference'), | ||
enabled: true, | ||
svg: false, | ||
icon: 'el-icon-notebook-2', | ||
componentRender: () => import('@/components/ADempiere/Field/FieldOptions/preference') | ||
} | ||
|
||
export const logsOptionItem = { | ||
name: language.t('field.logsField'), | ||
enabled: true, | ||
svg: true, | ||
icon: 'tree-table', | ||
componentRender: () => import('@/components/ADempiere/Field/contextMenuField/changeLogs') | ||
} | ||
|
||
/** | ||
* For document status field to workflow | ||
*/ | ||
export const documentStatusOptionItem = { | ||
name: language.t('window.documentStatus'), | ||
enabled: true, | ||
svg: false, | ||
icon: 'el-icon-set-up', | ||
componentRender: () => import('@/components/ADempiere/Field/FieldOptions/documentStatus') | ||
} | ||
|
||
export const optionsListStandad = [ | ||
infoOptionItem, | ||
preferenceOptionItem, | ||
logsOptionItem | ||
] | ||
|
||
export const optionsListAdvancedQuery = [ | ||
infoOptionItem, | ||
operatorOptionItem | ||
] |
Oops, something went wrong.