9 changed files with 383 additions and 122 deletions
@ -0,0 +1,62 @@ |
|||
<template> |
|||
<w-grid |
|||
:title="$t('io.sc.engine.mv.config.cutOffPoint.grid.title')" |
|||
:config-button="true" |
|||
selection="multiple" |
|||
:checkbox-selection="true" |
|||
:data-url="Environment.apiContextPath('/api/mv/config/cutOffPoint')" |
|||
:pageable="false" |
|||
:toolbar-configure="{ noIcon: false }" |
|||
:toolbar-actions="['refresh', 'separator', 'add', 'edit', 'remove', 'separator', 'resetDefaultValues', 'separator', 'view', 'separator', 'export']" |
|||
:columns="[ |
|||
{ width: '100%', name: 'name', label: $t('io.sc.engine.mv.config.cutOffPoint.grid.entity.name') }, |
|||
{ width: 100, name: 'from', label: $t('io.sc.engine.mv.config.cutOffPoint.grid.entity.from') }, |
|||
{ width: 100, name: 'to', label: $t('io.sc.engine.mv.config.cutOffPoint.grid.entity.to') }, |
|||
{ width: 100, name: 'step', label: $t('io.sc.engine.mv.config.cutOffPoint.grid.entity.step') }, |
|||
{ width: 100, name: 'scale', label: $t('io.sc.engine.mv.config.cutOffPoint.grid.entity.scale') }, |
|||
{ width: 150, name: 'roundingMode', label: $t('roundingMode'), format: Formater.enum(RoundingModeEnum) }, |
|||
{ width: 100, name: 'lastModifier', label: $t('lastModifier') }, |
|||
{ width: 150, name: 'lastModifyDate', label: $t('lastModifyDate'), format: Formater.dateOnly() }, |
|||
]" |
|||
:editor="{ |
|||
dialog: { |
|||
width: '600px', |
|||
height: '400px', |
|||
}, |
|||
form: { |
|||
colsNum: 1, |
|||
fields: [ |
|||
{ name: 'name', label: $t('io.sc.engine.mv.config.cutOffPoint.grid.entity.name'), type: 'text' }, |
|||
{ name: 'from', label: $t('io.sc.engine.mv.config.cutOffPoint.grid.entity.from'), type: 'text' }, |
|||
{ name: 'to', label: $t('io.sc.engine.mv.config.cutOffPoint.grid.entity.to'), type: 'text' }, |
|||
{ name: 'step', label: $t('io.sc.engine.mv.config.cutOffPoint.grid.entity.step'), type: 'text' }, |
|||
{ name: 'scale', label: $t('io.sc.engine.mv.config.cutOffPoint.grid.entity.scale'), type: 'text' }, |
|||
{ name: 'roundingMode', label: $t('roundingMode'), type: 'select', options: Options.enum(RoundingModeEnum, false) }, |
|||
], |
|||
}, |
|||
}" |
|||
:viewer="{ |
|||
panel: { |
|||
columnNum: 1, |
|||
fields: [ |
|||
{ name: 'id', label: $t('id') }, |
|||
{ name: 'name', label: $t('io.sc.engine.mv.config.cutOffPoint.grid.entity.name') }, |
|||
{ name: 'from', label: $t('io.sc.engine.mv.config.cutOffPoint.grid.entity.from') }, |
|||
{ name: 'to', label: $t('io.sc.engine.mv.config.cutOffPoint.grid.entity.to') }, |
|||
{ name: 'step', label: $t('io.sc.engine.mv.config.cutOffPoint.grid.entity.step') }, |
|||
{ name: 'scale', label: $t('io.sc.engine.mv.config.cutOffPoint.grid.entity.scale') }, |
|||
{ name: 'roundingMode', label: $t('roundingMode'), format: Formater.none() }, |
|||
{ name: 'creator', label: $t('creator') }, |
|||
{ name: 'createDate', label: $t('createDate') }, |
|||
{ name: 'lastModifier', label: $t('lastModifier') }, |
|||
{ name: 'lastModifyDate', label: $t('lastModifyDate') }, |
|||
], |
|||
}, |
|||
}" |
|||
></w-grid> |
|||
</template> |
|||
<script setup lang="ts"> |
|||
import { Environment, EnumTools, Formater, Options } from 'platform-core'; |
|||
|
|||
const RoundingModeEnum = await EnumTools.fetch('io.sc.platform.core.enums.RoundingMode'); |
|||
</script> |
@ -0,0 +1,59 @@ |
|||
<template> |
|||
<w-grid |
|||
:title="$t('io.sc.engine.mv.config.dataExtractor.grid.title')" |
|||
:config-button="true" |
|||
selection="multiple" |
|||
:checkbox-selection="true" |
|||
:data-url="Environment.apiContextPath('/api/mv/config/dataExtractor')" |
|||
:pageable="false" |
|||
:toolbar-configure="{ noIcon: false }" |
|||
:toolbar-actions="['refresh', 'separator', 'add', 'edit', 'remove', 'separator', 'view', 'separator', 'export']" |
|||
:columns="[ |
|||
{ width: 100, name: 'name', label: $t('io.sc.engine.mv.config.dataExtractor.grid.entity.name') }, |
|||
{ width: 100, name: 'enable', label: $t('io.sc.engine.mv.config.dataExtractor.grid.entity.enable'), format: Formater.enableTag() }, |
|||
{ width: 120, name: 'order', label: $t('io.sc.engine.mv.config.dataExtractor.grid.entity.order'), align: 'right' }, |
|||
{ width: 120, name: 'executeTimeWeight', label: $t('io.sc.engine.mv.config.dataExtractor.grid.entity.executeTimeWeight'), align: 'right' }, |
|||
{ width: 120, name: 'datasourceName', label: $t('io.sc.engine.mv.config.dataExtractor.grid.entity.datasourceName') }, |
|||
{ width: 100, name: 'lastModifier', label: $t('lastModifier') }, |
|||
{ width: 150, name: 'lastModifyDate', label: $t('lastModifyDate'), format: Formater.dateOnly() }, |
|||
]" |
|||
:editor="{ |
|||
dialog: { |
|||
width: '800px', |
|||
height: '600px', |
|||
}, |
|||
form: { |
|||
colsNum: 1, |
|||
fields: [ |
|||
{ name: 'name', label: $t('io.sc.engine.mv.config.dataExtractor.grid.entity.name'), type: 'text' }, |
|||
{ name: 'enable', label: $t('io.sc.engine.mv.config.dataExtractor.grid.entity.enable'), type: 'text' }, |
|||
{ name: 'order', label: $t('io.sc.engine.mv.config.dataExtractor.grid.entity.order'), type: 'text' }, |
|||
{ name: 'executeTimeWeight', label: $t('io.sc.engine.mv.config.dataExtractor.grid.entity.executeTimeWeight'), type: 'text' }, |
|||
{ name: 'datasourceName', label: $t('io.sc.engine.mv.config.dataExtractor.grid.entity.datasourceName'), type: 'text' }, |
|||
{ name: 'groovyScript', label: $t('io.sc.engine.mv.config.dataExtractor.grid.entity.groovyScript'), type: 'textarea', rows: 12 }, |
|||
], |
|||
}, |
|||
}" |
|||
:viewer="{ |
|||
panel: { |
|||
columnNum: 1, |
|||
fields: [ |
|||
{ name: 'id', label: $t('id') }, |
|||
{ name: 'name', label: $t('io.sc.engine.mv.config.dataExtractor.grid.entity.name') }, |
|||
{ name: 'enable', label: $t('io.sc.engine.mv.config.dataExtractor.grid.entity.enable'), format: Formater.none() }, |
|||
{ name: 'order', label: $t('io.sc.engine.mv.config.dataExtractor.grid.entity.order') }, |
|||
{ name: 'executeTimeWeight', label: $t('io.sc.engine.mv.config.dataExtractor.grid.entity.executeTimeWeight') }, |
|||
{ name: 'datasourceName', label: $t('io.sc.engine.mv.config.dataExtractor.grid.entity.datasourceName') }, |
|||
{ name: 'groovyScript', label: $t('io.sc.engine.mv.config.dataExtractor.grid.entity.groovyScript'), format: Formater.replaceAll() }, |
|||
{ name: 'creator', label: $t('creator') }, |
|||
{ name: 'createDate', label: $t('createDate') }, |
|||
{ name: 'lastModifier', label: $t('lastModifier') }, |
|||
{ name: 'lastModifyDate', label: $t('lastModifyDate'), format: Formater.none() }, |
|||
], |
|||
}, |
|||
}" |
|||
></w-grid> |
|||
</template> |
|||
<script setup lang="ts"> |
|||
import { Environment, Formater } from 'platform-core'; |
|||
</script> |
@ -0,0 +1,57 @@ |
|||
<template> |
|||
<w-grid |
|||
:title="$t('io.sc.engine.mv.config.distribution.grid.title')" |
|||
:config-button="true" |
|||
selection="multiple" |
|||
:checkbox-selection="true" |
|||
:data-url="Environment.apiContextPath('/api/mv/config/distribution')" |
|||
:pageable="false" |
|||
:toolbar-configure="{ noIcon: false }" |
|||
:toolbar-actions="['refresh', 'separator', 'add', 'edit', 'remove', 'separator', 'view', 'separator', 'export']" |
|||
:columns="[ |
|||
{ width: 150, name: 'modelId', label: $t('io.sc.engine.mv.config.distribution.grid.entity.modelId') }, |
|||
{ width: '100%', name: 'modelName', label: $t('io.sc.engine.mv.config.distribution.grid.entity.modelName') }, |
|||
{ width: 160, name: 'scoreSegStart', label: $t('io.sc.engine.mv.config.distribution.grid.entity.scoreSegStart'), align: 'right' }, |
|||
{ width: 160, name: 'scoreSegEnd', label: $t('io.sc.engine.mv.config.distribution.grid.entity.scoreSegEnd'), align: 'right' }, |
|||
{ width: 150, name: 'count', label: $t('io.sc.engine.mv.config.distribution.grid.entity.count'), align: 'right' }, |
|||
{ width: 100, name: 'lastModifier', label: $t('lastModifier') }, |
|||
{ width: 150, name: 'lastModifyDate', label: $t('lastModifyDate'), format: Formater.dateOnly() }, |
|||
]" |
|||
:editor="{ |
|||
dialog: { |
|||
width: '600px', |
|||
height: '400px', |
|||
}, |
|||
form: { |
|||
colsNum: 1, |
|||
fields: [ |
|||
{ name: 'modelId', label: $t('io.sc.engine.mv.config.distribution.grid.entity.modelId'), type: 'text' }, |
|||
{ name: 'modelName', label: $t('io.sc.engine.mv.config.distribution.grid.entity.modelName'), type: 'text' }, |
|||
{ name: 'scoreSegStart', label: $t('io.sc.engine.mv.config.distribution.grid.entity.scoreSegStart'), type: 'text' }, |
|||
{ name: 'scoreSegEnd', label: $t('io.sc.engine.mv.config.distribution.grid.entity.scoreSegEnd'), type: 'text' }, |
|||
{ name: 'count', label: $t('io.sc.engine.mv.config.distribution.grid.entity.count'), type: 'text' }, |
|||
], |
|||
}, |
|||
}" |
|||
:viewer="{ |
|||
panel: { |
|||
columnNum: 1, |
|||
fields: [ |
|||
{ name: 'id', label: $t('id') }, |
|||
{ name: 'modelId', label: $t('io.sc.engine.mv.config.distribution.grid.entity.modelId') }, |
|||
{ name: 'modelName', label: $t('io.sc.engine.mv.config.distribution.grid.entity.modelName') }, |
|||
{ name: 'scoreSegStart', label: $t('io.sc.engine.mv.config.distribution.grid.entity.scoreSegStart') }, |
|||
{ name: 'scoreSegEnd', label: $t('io.sc.engine.mv.config.distribution.grid.entity.scoreSegEnd') }, |
|||
{ name: 'count', label: $t('io.sc.engine.mv.config.distribution.grid.entity.count') }, |
|||
{ name: 'creator', label: $t('creator') }, |
|||
{ name: 'createDate', label: $t('createDate') }, |
|||
{ name: 'lastModifier', label: $t('lastModifier') }, |
|||
{ name: 'lastModifyDate', label: $t('lastModifyDate'), format: Formater.none() }, |
|||
], |
|||
}, |
|||
}" |
|||
></w-grid> |
|||
</template> |
|||
<script setup lang="ts"> |
|||
import { Environment, Formater } from 'platform-core'; |
|||
</script> |
@ -0,0 +1,35 @@ |
|||
<template> |
|||
<w-grid |
|||
:title="$t('io.sc.engine.mv.config.executor.grid.title')" |
|||
:config-button="true" |
|||
selection="multiple" |
|||
:checkbox-selection="true" |
|||
:data-url="Environment.apiContextPath('/api/mv/config/executor')" |
|||
:pageable="false" |
|||
:toolbar-configure="{ noIcon: false }" |
|||
:toolbar-actions="['refresh', 'separator', 'view', 'separator', 'export']" |
|||
:columns="[ |
|||
{ width: 80, name: 'order', label: $t('order'), align: 'right' }, |
|||
{ width: 280, name: 'nameI18nKey', label: $t('name'), sortable: false, format: Formater.i18n() }, |
|||
{ width: '100%', name: 'descriptionI18nKey', label: $t('description'), sortable: false, format: Formater.i18n() }, |
|||
{ width: 250, name: 'className', label: $t('className'), format: Formater.simpleClassName() }, |
|||
{ width: 100, name: 'enable', label: $t('enable'), format: Formater.enableTag() }, |
|||
]" |
|||
:viewer="{ |
|||
panel: { |
|||
columnNum: 1, |
|||
fields: [ |
|||
{ name: 'id', label: $t('id') }, |
|||
{ name: 'nameI18nKey', label: $t('name') }, |
|||
{ name: 'descriptionI18nKey', label: $t('description') }, |
|||
{ name: 'enable', label: $t('enable'), format: Formater.none() }, |
|||
{ name: 'order', label: $t('order') }, |
|||
{ name: 'className', label: $t('className'), format: Formater.none() }, |
|||
], |
|||
}, |
|||
}" |
|||
></w-grid> |
|||
</template> |
|||
<script setup lang="ts"> |
|||
import { Environment, Formater } from 'platform-core'; |
|||
</script> |
@ -1,4 +1,33 @@ |
|||
<template> |
|||
<div>Autoconfigure</div> |
|||
<w-grid |
|||
:title="$t('menu.developer.springboot.autoconfigure')" |
|||
:checkbox-selection="false" |
|||
:fetch-data-url="Environment.apiContextPath('/api/developer/springboot/autoConfiguration')" |
|||
:pageable="true" |
|||
:toolbar-actions="['refresh', 'separator', 'view', 'separator', 'export']" |
|||
:columns="[ |
|||
{ width: 100, name: 'context', label: $t('category') }, |
|||
{ width: 400, name: 'name', label: $t('name') }, |
|||
{ width: 100, name: 'positiveAndNegativeType', label: $t('P/N') + ' ' + $t('type') }, |
|||
{ width: 100, name: 'matchedAndNotMatchedType', label: $t('M/N') + ' ' + $t('type') }, |
|||
{ width: 250, name: 'condition', label: $t('condition') }, |
|||
{ width: '100%', name: 'message', label: $t('description') }, |
|||
]" |
|||
:viewer="{ |
|||
panel: { |
|||
columnNum: 1, |
|||
fields: [ |
|||
{ name: 'context', label: $t('category') }, |
|||
{ name: 'name', label: $t('name') }, |
|||
{ name: 'positiveAndNegativeType', label: $t('P/N') + ' ' + $t('type') }, |
|||
{ name: 'matchedAndNotMatchedType', label: $t('M/N') + ' ' + $t('type') }, |
|||
{ name: 'condition', label: $t('condition') }, |
|||
{ name: 'message', label: $t('description') }, |
|||
], |
|||
}, |
|||
}" |
|||
></w-grid> |
|||
</template> |
|||
<script setup lang="ts"></script> |
|||
<script setup lang="ts"> |
|||
import { Environment, Formater } from 'platform-core'; |
|||
</script> |
|||
|
@ -1,4 +1,27 @@ |
|||
<template> |
|||
<div>Environment</div> |
|||
<w-grid |
|||
:title="$t('menu.developer.springboot.environment')" |
|||
:checkbox-selection="false" |
|||
:fetch-data-url="Environment.apiContextPath('/api/developer/springboot/environment')" |
|||
:pageable="false" |
|||
:toolbar-actions="['refresh', 'separator', 'view', 'separator', 'export']" |
|||
:columns="[ |
|||
{ width: 200, name: 'propertySourceName', label: $t('category') }, |
|||
{ width: 400, name: 'propertyName', label: $t('name') }, |
|||
{ width: '100%', name: 'value', label: $t('value') }, |
|||
]" |
|||
:viewer="{ |
|||
panel: { |
|||
columnNum: 1, |
|||
fields: [ |
|||
{ name: 'propertySourceName', label: $t('category') }, |
|||
{ name: 'propertyName', label: $t('name') }, |
|||
{ name: 'value', label: $t('value') }, |
|||
], |
|||
}, |
|||
}" |
|||
></w-grid> |
|||
</template> |
|||
<script setup lang="ts"></script> |
|||
<script setup lang="ts"> |
|||
import { Environment, Formater } from 'platform-core'; |
|||
</script> |
|||
|
Loading…
Reference in new issue