|
@ -127,7 +127,8 @@ |
|
|
{ |
|
|
{ |
|
|
extend: 'edit', |
|
|
extend: 'edit', |
|
|
enableIf: (args: any) => { |
|
|
enableIf: (args: any) => { |
|
|
return !readOnly && args.selected && args.selected.type !== 'INDICATOR' && args.selected.type !== 'IN_SUB_OUT'; |
|
|
return !readOnly && args.selected && args.selected.type !== 'IN_SUB_OUT'; |
|
|
|
|
|
//return !readOnly && args.selected && args.selected.type !== 'INDICATOR' && args.selected.type !== 'IN_SUB_OUT'; |
|
|
}, |
|
|
}, |
|
|
disableTip: (args: any) => { |
|
|
disableTip: (args: any) => { |
|
|
const row = args.selected; |
|
|
const row = args.selected; |
|
@ -193,11 +194,42 @@ |
|
|
options: EngineEnums.ParameterType.options, |
|
|
options: EngineEnums.ParameterType.options, |
|
|
'onUpdate:modelValue': (value) => {}, |
|
|
'onUpdate:modelValue': (value) => {}, |
|
|
}, |
|
|
}, |
|
|
{ name: 'code', label: $t('code'), type: 'w-text' }, |
|
|
{ |
|
|
{ name: 'name', label: $t('name'), type: 'w-text', requiredIf: true }, |
|
|
name: 'code', |
|
|
|
|
|
label: $t('code'), |
|
|
|
|
|
type: 'w-text', |
|
|
|
|
|
readOnlyIf: (args: any) => { |
|
|
|
|
|
return 'INDICATOR' === args.form.getFieldValue('type'); |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'name', |
|
|
|
|
|
label: $t('name'), |
|
|
|
|
|
type: 'w-text', |
|
|
|
|
|
requiredIf: true, |
|
|
|
|
|
readOnlyIf: (args: any) => { |
|
|
|
|
|
return 'INDICATOR' === args.form.getFieldValue('type'); |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
{ name: 'description', label: $t('description'), type: 'w-text' }, |
|
|
{ name: 'description', label: $t('description'), type: 'w-text' }, |
|
|
...valueTypeManager.getEditorFields(), |
|
|
...valueTypeManager.getEditorFields(), |
|
|
{ name: 'order', label: $t('order'), type: 'w-number', showIf: false }, |
|
|
{ name: 'order', label: $t('order'), type: 'w-number', showIf: false }, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'showIf', |
|
|
|
|
|
label: $t('re.parameter.grid.entity.showIf'), |
|
|
|
|
|
type: 'w-code-mirror', |
|
|
|
|
|
toolbar: false, |
|
|
|
|
|
lang: 'java', |
|
|
|
|
|
rows: 5, |
|
|
|
|
|
placeholder: true, |
|
|
|
|
|
lineWrap: true, |
|
|
|
|
|
lineBreak: false, |
|
|
|
|
|
autoCompletion: autoCompletionManager.autoCompletion(), |
|
|
|
|
|
showIf: (args: any) => { |
|
|
|
|
|
let type = args.form.getFieldValue('type'); |
|
|
|
|
|
return 'IN' == type || 'IN_OPTION' == type || 'INDICATOR' == type; |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
}" |
|
|
}" |
|
@ -216,6 +248,7 @@ |
|
|
{ name: 'indicatorCode', label: $t('re.parameter.grid.entity.indicatorCode') }, |
|
|
{ name: 'indicatorCode', label: $t('re.parameter.grid.entity.indicatorCode') }, |
|
|
...valueTypeManager.getViewerFields(), |
|
|
...valueTypeManager.getViewerFields(), |
|
|
{ name: 'order', label: $t('order') }, |
|
|
{ name: 'order', label: $t('order') }, |
|
|
|
|
|
{ name: 'showIf', label: $t('re.parameter.grid.entity.showIf') }, |
|
|
...CorporationAuditorEntityManager.getViewerFields(), |
|
|
...CorporationAuditorEntityManager.getViewerFields(), |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
@ -228,6 +261,7 @@ |
|
|
@before-request-data=" |
|
|
@before-request-data=" |
|
|
(args) => { |
|
|
(args) => { |
|
|
emit('beforeRequestData'); |
|
|
emit('beforeRequestData'); |
|
|
|
|
|
autoCompletionManager.load(Environment.apiContextPath('/api/re/common/parameterAndValueType/findInParameterByResourceId/' + resource.id)); |
|
|
} |
|
|
} |
|
|
" |
|
|
" |
|
|
@after-editor-open=" |
|
|
@after-editor-open=" |
|
@ -275,6 +309,7 @@ import { ValueTypeManager } from '@/views/shared/ValueTypeManager'; |
|
|
import { LibManager } from '@/views/shared/LibManager'; |
|
|
import { LibManager } from '@/views/shared/LibManager'; |
|
|
import { TemplateImportAndExportManager } from '@/views/shared/TemplateImportAndExportManager'; |
|
|
import { TemplateImportAndExportManager } from '@/views/shared/TemplateImportAndExportManager'; |
|
|
import { EngineEnums } from '@/views/shared/enums/EngineEnums'; |
|
|
import { EngineEnums } from '@/views/shared/enums/EngineEnums'; |
|
|
|
|
|
import { AutoCompletionManager } from '@/views/shared/AutoCompletionManager'; |
|
|
|
|
|
|
|
|
const props = defineProps({ |
|
|
const props = defineProps({ |
|
|
resource: { type: Object, default: undefined }, |
|
|
resource: { type: Object, default: undefined }, |
|
@ -293,6 +328,7 @@ const moveParameterDialogRef = ref(); |
|
|
const templateImportAndExportDialogRef = ref(); |
|
|
const templateImportAndExportDialogRef = ref(); |
|
|
const importDialogRef = ref(); |
|
|
const importDialogRef = ref(); |
|
|
const valueTypeManager = new ValueTypeManager(); |
|
|
const valueTypeManager = new ValueTypeManager(); |
|
|
|
|
|
const autoCompletionManager = new AutoCompletionManager(); |
|
|
const templateImportAndExportManager = new TemplateImportAndExportManager(templateImportAndExportDialogRef); |
|
|
const templateImportAndExportManager = new TemplateImportAndExportManager(templateImportAndExportDialogRef); |
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
onMounted(() => { |
|
|