|
|
@ -24,7 +24,7 @@ |
|
|
|
label: $t('erm.kpi.indicator.grid.entity.source'), |
|
|
|
type: 'select', |
|
|
|
clearable: true, |
|
|
|
options: Options.dictionary(INDICATOR_SOURCE), |
|
|
|
options: Options.dictionary(DICTIONARY_MAP.INDICATOR_SOURCE), |
|
|
|
queryOperator: 'equals', |
|
|
|
}, |
|
|
|
{ |
|
|
@ -40,7 +40,7 @@ |
|
|
|
label: $t('erm.kpi.indicator.grid.entity.categoryRisk'), |
|
|
|
type: 'select', |
|
|
|
clearable: true, |
|
|
|
options: Options.dictionary(INDICATOR_CATEGORY_RISK), |
|
|
|
options: Options.dictionary(DICTIONARY_MAP.INDICATOR_CATEGORY_RISK), |
|
|
|
queryOperator: 'equals', |
|
|
|
}, |
|
|
|
{ |
|
|
@ -48,7 +48,7 @@ |
|
|
|
label: $t('erm.kpi.indicator.grid.entity.categoryBusiness'), |
|
|
|
type: 'select', |
|
|
|
clearable: true, |
|
|
|
options: Options.dictionary(INDICATOR_CATEGORY_BUSINESS), |
|
|
|
options: Options.dictionary(DICTIONARY_MAP.INDICATOR_CATEGORY_BUSINESS), |
|
|
|
queryOperator: 'equals', |
|
|
|
}, |
|
|
|
{ |
|
|
@ -56,7 +56,7 @@ |
|
|
|
label: $t('erm.kpi.indicator.grid.entity.categoryCal'), |
|
|
|
type: 'select', |
|
|
|
clearable: true, |
|
|
|
options: Options.dictionary(INDICATOR_CATEGORY_CAL), |
|
|
|
options: Options.dictionary(DICTIONARY_MAP.INDICATOR_CATEGORY_CAL), |
|
|
|
queryOperator: 'equals', |
|
|
|
}, |
|
|
|
{ |
|
|
@ -64,7 +64,7 @@ |
|
|
|
label: $t('erm.kpi.indicator.grid.entity.unit'), |
|
|
|
type: 'select', |
|
|
|
clearable: true, |
|
|
|
options: Options.dictionary(INDICATOR_UNIT), |
|
|
|
options: Options.dictionary(DICTIONARY_MAP.INDICATOR_UNIT), |
|
|
|
queryOperator: 'equals', |
|
|
|
}, |
|
|
|
{ |
|
|
@ -72,7 +72,7 @@ |
|
|
|
label: $t('erm.kpi.indicator.grid.entity.frequency'), |
|
|
|
type: 'select', |
|
|
|
clearable: true, |
|
|
|
options: Options.dictionary(INDICATOR_FREQUENCY), |
|
|
|
options: Options.dictionary(DICTIONARY_MAP.INDICATOR_FREQUENCY), |
|
|
|
queryOperator: 'equals', |
|
|
|
}, |
|
|
|
]" |
|
|
@ -86,27 +86,32 @@ |
|
|
|
{ width: 100, name: 'code', label: $t('code') }, |
|
|
|
{ width: 300, name: 'name', label: $t('name') }, |
|
|
|
{ width: 70, name: 'enable', label: $t('enable'), align: 'center', format: Formater.enableTag() }, |
|
|
|
{ width: 70, name: 'unit', label: $t('erm.kpi.indicator.grid.entity.unit'), format: Formater.dictionary(INDICATOR_UNIT) }, |
|
|
|
{ width: 70, name: 'frequency', label: $t('erm.kpi.indicator.grid.entity.frequency'), format: Formater.dictionary(INDICATOR_FREQUENCY) }, |
|
|
|
{ width: 80, name: 'category', label: $t('erm.kpi.indicator.grid.entity.category'), format: Formater.dictionary(INDICATOR_CATEGORY) }, |
|
|
|
{ width: 100, name: 'categoryCal', label: $t('erm.kpi.indicator.grid.entity.categoryCal'), format: Formater.dictionary(INDICATOR_CATEGORY_CAL) }, |
|
|
|
{ width: 70, name: 'unit', label: $t('erm.kpi.indicator.grid.entity.unit'), format: Formater.dictionary(DICTIONARY_MAP.INDICATOR_UNIT) }, |
|
|
|
{ width: 70, name: 'frequency', label: $t('erm.kpi.indicator.grid.entity.frequency'), format: Formater.dictionary(DICTIONARY_MAP.INDICATOR_FREQUENCY) }, |
|
|
|
{ width: 80, name: 'category', label: $t('erm.kpi.indicator.grid.entity.category'), format: Formater.dictionary(DICTIONARY_MAP.INDICATOR_CATEGORY) }, |
|
|
|
{ |
|
|
|
width: 100, |
|
|
|
name: 'categoryCal', |
|
|
|
label: $t('erm.kpi.indicator.grid.entity.categoryCal'), |
|
|
|
format: Formater.dictionary(DICTIONARY_MAP.INDICATOR_CATEGORY_CAL), |
|
|
|
}, |
|
|
|
{ |
|
|
|
width: 100, |
|
|
|
name: 'categoryRisk', |
|
|
|
label: $t('erm.kpi.indicator.grid.entity.categoryRisk'), |
|
|
|
format: Formater.dictionary(INDICATOR_CATEGORY_RISK), |
|
|
|
format: Formater.dictionary(DICTIONARY_MAP.INDICATOR_CATEGORY_RISK), |
|
|
|
}, |
|
|
|
{ |
|
|
|
width: 100, |
|
|
|
name: 'categoryBusiness', |
|
|
|
label: $t('erm.kpi.indicator.grid.entity.categoryBusiness'), |
|
|
|
format: Formater.dictionary(INDICATOR_CATEGORY_BUSINESS), |
|
|
|
format: Formater.dictionary(DICTIONARY_MAP.INDICATOR_CATEGORY_BUSINESS), |
|
|
|
}, |
|
|
|
{ |
|
|
|
width: 100, |
|
|
|
name: 'source', |
|
|
|
label: $t('erm.kpi.indicator.grid.entity.source'), |
|
|
|
format: Formater.dictionary(INDICATOR_SOURCE), |
|
|
|
format: Formater.dictionary(DICTIONARY_MAP.INDICATOR_SOURCE), |
|
|
|
}, |
|
|
|
{ |
|
|
|
width: 100, |
|
|
@ -142,47 +147,47 @@ |
|
|
|
label: $t('erm.kpi.indicator.grid.entity.source'), |
|
|
|
type: 'select', |
|
|
|
clearable: true, |
|
|
|
options: Options.dictionary(INDICATOR_SOURCE), |
|
|
|
options: Options.dictionary(DICTIONARY_MAP.INDICATOR_SOURCE), |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: 'category', |
|
|
|
label: $t('erm.kpi.indicator.grid.entity.category'), |
|
|
|
type: 'select', |
|
|
|
required: true, |
|
|
|
options: Options.dictionary(INDICATOR_CATEGORY), |
|
|
|
options: Options.dictionary(DICTIONARY_MAP.INDICATOR_CATEGORY), |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: 'categoryCal', |
|
|
|
label: $t('erm.kpi.indicator.grid.entity.categoryCal'), |
|
|
|
type: 'select', |
|
|
|
clearable: true, |
|
|
|
options: Options.dictionary(INDICATOR_CATEGORY_CAL), |
|
|
|
options: Options.dictionary(DICTIONARY_MAP.INDICATOR_CATEGORY_CAL), |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: 'categoryRisk', |
|
|
|
label: $t('erm.kpi.indicator.grid.entity.categoryRisk'), |
|
|
|
type: 'select', |
|
|
|
clearable: true, |
|
|
|
options: Options.dictionary(INDICATOR_CATEGORY_RISK), |
|
|
|
options: Options.dictionary(DICTIONARY_MAP.INDICATOR_CATEGORY_RISK), |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: 'categoryBusiness', |
|
|
|
label: $t('erm.kpi.indicator.grid.entity.categoryBusiness'), |
|
|
|
type: 'select', |
|
|
|
clearable: true, |
|
|
|
options: Options.dictionary(INDICATOR_CATEGORY_BUSINESS), |
|
|
|
options: Options.dictionary(DICTIONARY_MAP.INDICATOR_CATEGORY_BUSINESS), |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: 'unit', |
|
|
|
label: $t('erm.kpi.indicator.grid.entity.unit'), |
|
|
|
type: 'select', |
|
|
|
options: Options.dictionary(INDICATOR_UNIT), |
|
|
|
options: Options.dictionary(DICTIONARY_MAP.INDICATOR_UNIT), |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: 'frequency', |
|
|
|
label: $t('erm.kpi.indicator.grid.entity.frequency'), |
|
|
|
type: 'select', |
|
|
|
options: Options.dictionary(INDICATOR_FREQUENCY), |
|
|
|
options: Options.dictionary(DICTIONARY_MAP.INDICATOR_FREQUENCY), |
|
|
|
}, |
|
|
|
{ name: 'formula', label: $t('erm.kpi.indicator.grid.entity.formula'), type: 'code-mirror', colSpan: 3, rows: 3 }, |
|
|
|
{ name: 'sql', label: $t('erm.kpi.indicator.grid.entity.sql'), type: 'code-mirror', colSpan: 3, rows: 3 }, |
|
|
@ -246,12 +251,14 @@ import IndicatorStatus from './IndicatorStatus'; |
|
|
|
|
|
|
|
const gridRef = ref(); |
|
|
|
|
|
|
|
const INDICATOR_CATEGORY = await DictionaryTools.fetch('INDICATOR_CATEGORY'); |
|
|
|
const INDICATOR_CATEGORY_RISK = await DictionaryTools.fetch('INDICATOR_CATEGORY_RISK'); |
|
|
|
const INDICATOR_CATEGORY_BUSINESS = await DictionaryTools.fetch('INDICATOR_CATEGORY_BUSINESS'); |
|
|
|
const INDICATOR_CATEGORY_CAL = await DictionaryTools.fetch('INDICATOR_CATEGORY_CAL'); |
|
|
|
const INDICATOR_UNIT = await DictionaryTools.fetch('INDICATOR_UNIT'); |
|
|
|
const INDICATOR_FREQUENCY = await DictionaryTools.fetch('INDICATOR_FREQUENCY'); |
|
|
|
const INDICATOR_SOURCE = await DictionaryTools.fetch('INDICATOR_SOURCE'); |
|
|
|
const DICTIONARY_MAP = await DictionaryTools.fetch([ |
|
|
|
'INDICATOR_CATEGORY', |
|
|
|
'INDICATOR_CATEGORY_RISK', |
|
|
|
'INDICATOR_CATEGORY_BUSINESS', |
|
|
|
'INDICATOR_CATEGORY_CAL', |
|
|
|
'INDICATOR_UNIT', |
|
|
|
'INDICATOR_FREQUENCY', |
|
|
|
'INDICATOR_SOURCE', |
|
|
|
]); |
|
|
|
const CONDITIONS = ['>', '>=', '<', '<=']; |
|
|
|
</script> |
|
|
|