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> |
<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> |
</template> |
||||
<script setup lang="ts"></script> |
<script setup lang="ts"> |
||||
|
import { Environment, Formater } from 'platform-core'; |
||||
|
</script> |
||||
|
@ -1,4 +1,27 @@ |
|||||
<template> |
<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> |
</template> |
||||
<script setup lang="ts"></script> |
<script setup lang="ts"> |
||||
|
import { Environment, Formater } from 'platform-core'; |
||||
|
</script> |
||||
|
@ -1,124 +1,119 @@ |
|||||
<template> |
<template> |
||||
<q-tabs v-model="selectedTabRef" inline-label align="left" :breakpoint="0" no-caps> |
<div> |
||||
<q-tab name="dispatcherServlets" icon="bi-people" :label="$t('Dispatcher Servlets')" /> |
<q-tabs v-model="selectedTabRef" inline-label align="left" :breakpoint="0" no-caps> |
||||
<q-tab name="servletFilters" icon="bi-diagram-3" :label="$t('Servlet Filters')" /> |
<q-tab name="dispatcherServlets" icon="bi-people" :label="$t('Dispatcher Servlets')" /> |
||||
<q-tab name="servlets" icon="bi-diagram-3" :label="$t('Servlets')" /> |
<q-tab name="servletFilters" icon="bi-diagram-3" :label="$t('Servlet Filters')" /> |
||||
</q-tabs> |
<q-tab name="servlets" icon="bi-diagram-3" :label="$t('Servlets')" /> |
||||
<q-tab-panels v-model="selectedTabRef" animated swipeable keep-alive> |
</q-tabs> |
||||
<q-tab-panel name="dispatcherServlets" class="px-0"> |
<q-tab-panels v-model="selectedTabRef" animated swipeable keep-alive> |
||||
<w-grid |
<q-tab-panel name="dispatcherServlets" class="px-0"> |
||||
:title="$t('menu.developer.springboot.bean')" |
<w-grid |
||||
:toolbar-actions="['refresh', 'separator', 'view', 'export']" |
:title="$t('menu.developer.springboot.mapping')" |
||||
:fetch-data-url="Environment.apiContextPath('/api/developer/springboot/mappings/dispatcherServletMappingDescriptions')" |
:checkbox-selection="false" |
||||
:checkbox-selection="false" |
:fetch-data-url="Environment.apiContextPath('/api/developer/springboot/mappings/dispatcherServletMappingDescriptions')" |
||||
:pageable="false" |
:pageable="true" |
||||
:columns="[ |
:toolbar-actions="['refresh', 'separator', 'view', 'export']" |
||||
{ |
:columns="[ |
||||
width: 100, |
{ |
||||
name: 'httpMethod', |
width: 100, |
||||
label: $t('Http Method'), |
name: 'httpMethods', |
||||
format: (value, row) => { |
label: $t('httpMethod'), |
||||
return row.details?.requestMappingConditions?.methods || 'GET'; |
|
||||
}, |
}, |
||||
sortable: false, |
{ |
||||
}, |
width: 400, |
||||
{ |
name: 'patterns', |
||||
width: 200, |
label: $t('pattern'), |
||||
name: 'patterns', |
format: (value) => { |
||||
label: $t('patterns'), |
return value; |
||||
format: (value, row) => { |
}, |
||||
return row.details?.requestMappingConditions?.patterns || row.predicate; |
|
||||
}, |
}, |
||||
sortable: false, |
{ |
||||
}, |
width: 300, |
||||
|
name: 'className', |
||||
{ |
label: $t('className'), |
||||
width: 400, |
format: Formater.simpleClassName(), |
||||
name: 'className', |
}, |
||||
label: $t('className'), |
{ |
||||
format: (value, row) => { |
width: 200, |
||||
return row.details?.handlerMethod?.className || row.handler; |
name: 'methodName', |
||||
|
label: $t('methodName'), |
||||
|
format: (value) => { |
||||
|
return value; |
||||
|
}, |
||||
}, |
}, |
||||
sortable: false, |
]" |
||||
}, |
:viewer="{ |
||||
{ |
panel: { |
||||
width: 150, |
columnNum: 1, |
||||
name: 'methodName', |
fields: [ |
||||
label: $t('methodName'), |
{ name: 'httpMethods', label: $t('httpMethod') }, |
||||
format: (value, row) => { |
{ name: 'patterns', label: $t('pattern') }, |
||||
return row.details?.handlerMethod?.name; |
{ name: 'className', label: $t('className'), format: Formater.none() }, |
||||
|
{ name: 'methodName', label: $t('methodName') }, |
||||
|
{ name: 'methodDescriptor', label: $t('methodDescriptor') }, |
||||
|
{ name: 'consumes', label: $t('consume'), format: Formater.split() }, |
||||
|
{ name: 'produces', label: $t('produce'), format: Formater.split() }, |
||||
|
{ name: 'headers', label: $t('header'), format: Formater.split() }, |
||||
|
{ name: 'params', label: $t('parameter'), format: Formater.split() }, |
||||
|
], |
||||
}, |
}, |
||||
sortable: false, |
}" |
||||
}, |
></w-grid> |
||||
{ |
</q-tab-panel> |
||||
width: 150, |
<q-tab-panel name="servletFilters" class="px-0"> |
||||
name: 'consumes', |
<w-grid |
||||
label: $t('consumes'), |
:title="$t('menu.developer.springboot.bean')" |
||||
format: (value, row) => { |
:toolbar-actions="['refresh', 'separator', 'view', 'export']" |
||||
let result = ''; |
:fetch-data-url="Environment.apiContextPath('/api/developer/springboot/mappings/filterRegistrationMappingDescriptions')" |
||||
const consumes = row.details?.requestMappingConditions?.consumes; |
:checkbox-selection="false" |
||||
if (consumes) { |
:pageable="true" |
||||
for (const consume of consumes) { |
:columns="[ |
||||
result += consume.mediaType + '<br/>'; |
{ width: 200, name: 'registeredName', label: $t('name') }, |
||||
} |
{ width: 200, name: 'patterns', label: $t('pattern'), format: Formater.split() }, |
||||
} |
{ width: '100%', name: 'className', label: $t('className') }, |
||||
return result; |
]" |
||||
|
:viewer="{ |
||||
|
panel: { |
||||
|
columnNum: 1, |
||||
|
fields: [ |
||||
|
{ name: 'registeredName', label: $t('name') }, |
||||
|
{ name: 'patterns', label: $t('pattern') }, |
||||
|
{ name: 'className', label: $t('className') }, |
||||
|
], |
||||
}, |
}, |
||||
sortable: false, |
}" |
||||
}, |
></w-grid> |
||||
{ |
</q-tab-panel> |
||||
width: 150, |
<q-tab-panel name="servlets" class="px-0"> |
||||
name: 'produces', |
<w-grid |
||||
label: $t('produces'), |
:title="$t('menu.developer.springboot.bean')" |
||||
format: (value, row) => { |
:checkbox-selection="false" |
||||
let result = ''; |
:fetch-data-url="Environment.apiContextPath('/api/developer/springboot/mappings/servletRegistrationMappingDescriptions')" |
||||
const produces = row.details?.requestMappingConditions?.produces; |
:pageable="true" |
||||
if (produces) { |
:toolbar-actions="['refresh', 'separator', 'view', 'separator', 'export']" |
||||
for (const produce of produces) { |
:columns="[ |
||||
result += produce.mediaType + '<br/>'; |
{ width: 300, name: 'name', label: $t('name') }, |
||||
} |
{ width: '100%', name: 'patterns', label: $t('pattern') }, |
||||
} |
{ width: 400, name: 'className', label: $t('className') }, |
||||
return result; |
]" |
||||
|
:viewer="{ |
||||
|
panel: { |
||||
|
columnNum: 1, |
||||
|
fields: [ |
||||
|
{ name: 'name', label: $t('name') }, |
||||
|
{ name: 'patterns', label: $t('pattern') }, |
||||
|
{ name: 'className', label: $t('className') }, |
||||
|
], |
||||
}, |
}, |
||||
sortable: false, |
}" |
||||
}, |
></w-grid> |
||||
]" |
</q-tab-panel> |
||||
></w-grid> |
</q-tab-panels> |
||||
</q-tab-panel> |
</div> |
||||
<q-tab-panel name="servletFilters" class="px-0"> |
|
||||
<w-grid |
|
||||
:title="$t('menu.developer.springboot.bean')" |
|
||||
:toolbar-actions="['refresh', 'separator', 'view', 'export']" |
|
||||
:fetch-data-url="Environment.apiContextPath('/api/developer/springboot/mappings/filterRegistrationMappingDescriptions')" |
|
||||
:checkbox-selection="false" |
|
||||
:pageable="false" |
|
||||
:columns="[ |
|
||||
{ width: 200, name: 'servletNameMappings', label: $t('servletNameMappings'), sortable: false }, |
|
||||
{ width: 200, name: 'urlPatternMappings', label: $t('urlPatternMappings'), sortable: false }, |
|
||||
{ width: 400, name: 'className', label: $t('className'), sortable: false }, |
|
||||
{ width: 150, name: 'name', label: $t('name'), sortable: false }, |
|
||||
]" |
|
||||
></w-grid> |
|
||||
</q-tab-panel> |
|
||||
<q-tab-panel name="servlets" class="px-0"> |
|
||||
<w-grid |
|
||||
:title="$t('menu.developer.springboot.bean')" |
|
||||
:toolbar-actions="['refresh', 'separator', 'view', 'export']" |
|
||||
:fetch-data-url="Environment.apiContextPath('/api/developer/springboot/mappings/servletRegistrationMappingDescriptions')" |
|
||||
:checkbox-selection="false" |
|
||||
:pageable="false" |
|
||||
:columns="[ |
|
||||
{ width: 300, name: 'mappings', label: $t('mappings'), sortable: false }, |
|
||||
{ width: 300, name: 'className', label: $t('className'), sortable: false }, |
|
||||
{ width: 200, name: 'name', label: $t('name'), sortable: false }, |
|
||||
]" |
|
||||
></w-grid> |
|
||||
</q-tab-panel> |
|
||||
</q-tab-panels> |
|
||||
</template> |
</template> |
||||
<script setup lang="ts"> |
<script setup lang="ts"> |
||||
import { ref } from 'vue'; |
import { ref } from 'vue'; |
||||
import { Environment } from 'platform-core'; |
import { Environment, Formater } from 'platform-core'; |
||||
|
|
||||
const selectedTabRef = ref('dispatcherServlets'); |
const selectedTabRef = ref('dispatcherServlets'); |
||||
</script> |
</script> |
||||
|
Loading…
Reference in new issue