Browse Source

update

main
wangshaoping 6 months ago
parent
commit
1a66047833
  1. 44
      io.sc.engine.rule.frontend/src/views/dictionary/dictionary.vue
  2. 18
      io.sc.engine.rule.frontend/src/views/resources/designer/Testcase.vue

44
io.sc.engine.rule.frontend/src/views/dictionary/dictionary.vue

@ -255,23 +255,23 @@
form: { form: {
colsNum: 1, colsNum: 1,
fields: [ fields: [
{ name: 'parent', label: $t('parent'), type: 'text', hidden: true }, { name: 'parent', label: $t('parent'), type: 'w-text', hidden: true },
{ name: 'type', label: $t('type'), type: 'text', hidden: true }, { name: 'type', label: $t('type'), type: 'w-text', hidden: true },
{ {
name: 'code', name: 'code',
label: $t('code'), label: $t('code'),
type: 'text', type: 'w-text',
showIf: (arg) => { showIf: (arg) => {
const type = arg.form.getFieldValue('type'); const type = arg.form.getFieldValue('type');
return type !== 'FOLDER'; return type !== 'FOLDER';
}, },
}, },
{ name: 'name', label: $t('name'), type: 'text', required: true }, { name: 'name', label: $t('name'), type: 'w-text', required: true },
{ name: 'description', label: $t('description'), type: 'text' }, { name: 'description', label: $t('description'), type: 'w-text' },
{ {
name: 'javaClassName', name: 'javaClassName',
label: $t('re.dictionary.grid.entity.javaClassName'), label: $t('re.dictionary.grid.entity.javaClassName'),
type: 'text', type: 'w-text',
showIf: (arg) => { showIf: (arg) => {
const type = arg.form.getFieldValue('type'); const type = arg.form.getFieldValue('type');
return type === 'JAVA_CLASS'; return type === 'JAVA_CLASS';
@ -356,8 +356,8 @@
sort-by="order" sort-by="order"
:query-form-cols-num="3" :query-form-cols-num="3"
:query-form-fields="[ :query-form-fields="[
{ name: 'code', label: $t('code'), type: 'text', clearable: true }, { name: 'code', label: $t('code'), type: 'w-text', clearable: true },
{ name: 'name', label: $t('name'), type: 'text', clearable: true }, { name: 'name', label: $t('name'), type: 'w-text', clearable: true },
]" ]"
:toolbar-configure="{ noIcon: false }" :toolbar-configure="{ noIcon: false }"
:toolbar-actions="['query', 'refresh', 'separator', 'add', 'clone', 'edit', 'remove', 'separator', 'view']" :toolbar-actions="['query', 'refresh', 'separator', 'add', 'clone', 'edit', 'remove', 'separator', 'view']"
@ -400,15 +400,15 @@
form: { form: {
colsNum: 1, colsNum: 1,
fields: [ fields: [
{ name: 'dictionary', label: $t('dictionary'), type: 'text', hidden: true, defaultValue: currentSelectedDictionaryIdRef }, { name: 'dictionary', label: $t('dictionary'), type: 'w-text', hidden: true, defaultValue: currentSelectedDictionaryIdRef },
{ name: 'code', label: $t('code'), type: 'text' }, { name: 'code', label: $t('code'), type: 'w-text' },
{ name: 'name', label: $t('name'), type: 'text', required: true }, { name: 'name', label: $t('name'), type: 'w-text', required: true },
{ name: 'description', label: $t('description'), type: 'text' }, { name: 'description', label: $t('description'), type: 'w-text' },
{ {
name: 'valueType', name: 'valueType',
label: $t('re.dictionary.field.grid.entity.valueType'), label: $t('re.dictionary.field.grid.entity.valueType'),
required: true, required: true,
type: 'select', type: 'w-select',
options: ValueTypeList, options: ValueTypeList,
'onUpdate:modelValue': (value) => { 'onUpdate:modelValue': (value) => {
const valueType = fieldGridRef.getEditorForm().getFieldValue('valueType'); const valueType = fieldGridRef.getEditorForm().getFieldValue('valueType');
@ -425,7 +425,7 @@
{ {
name: 'valueTypeVersion', name: 'valueTypeVersion',
label: $t('re.resources.designer.parameter.grid.entity.valueTypeVersion'), label: $t('re.resources.designer.parameter.grid.entity.valueTypeVersion'),
type: 'select', type: 'w-select',
clearable: true, clearable: true,
options: valueTypeVersionOptionsRef, options: valueTypeVersionOptionsRef,
showIf: (arg) => { showIf: (arg) => {
@ -445,13 +445,13 @@
{ {
name: 'valueTypeIsList', name: 'valueTypeIsList',
label: $t('re.dictionary.field.grid.entity.valueTypeIsList'), label: $t('re.dictionary.field.grid.entity.valueTypeIsList'),
type: 'checkbox', type: 'w-checkbox',
}, },
{ name: 'defaultValue', label: $t('defaultValue'), type: 'text' }, { name: 'defaultValue', label: $t('defaultValue'), type: 'w-text' },
{ {
name: 'valueCalculation', name: 'valueCalculation',
label: $t('re.dictionary.field.grid.entity.valueCalculation'), label: $t('re.dictionary.field.grid.entity.valueCalculation'),
type: 'code-mirror', type: 'w-code-mirror',
lang: 'java', lang: 'java',
rows: 3, rows: 3,
placeholder: true, placeholder: true,
@ -459,7 +459,7 @@
autoCompletionOptions: autoCompletionOptionsRef, autoCompletionOptions: autoCompletionOptionsRef,
extAutoCompletionOptions: GroovyFunctions, extAutoCompletionOptions: GroovyFunctions,
}, },
{ name: 'order', label: $t('order'), type: 'number' }, { name: 'order', label: $t('order'), type: 'w-number' },
], ],
}, },
}" }"
@ -571,15 +571,15 @@
form: { form: {
colsNum: 1, colsNum: 1,
fields: [ fields: [
{ name: 'dictionary', label: $t('dictionary'), type: 'text', hidden: false, defaultValue: currentSelectedDictionaryIdRef }, { name: 'dictionary', label: $t('dictionary'), type: 'w-text', hidden: false, defaultValue: currentSelectedDictionaryIdRef },
{ name: 'value', label: $t('value'), type: 'text', hidden: false }, { name: 'value', label: $t('value'), type: 'w-text', hidden: false },
{ {
name: 'title', name: 'title',
label: $t('title'), label: $t('title'),
type: 'text', type: 'text',
}, },
{ name: 'description', label: $t('description'), type: 'text' }, { name: 'description', label: $t('description'), type: 'w-text' },
{ name: 'order', label: $t('order'), type: 'number' }, { name: 'order', label: $t('order'), type: 'w-number' },
], ],
}, },
}" }"

18
io.sc.engine.rule.frontend/src/views/resources/designer/Testcase.vue

@ -104,13 +104,13 @@
form: { form: {
colsNum: 1, colsNum: 1,
fields: [ fields: [
{ name: 'id', label: $t('id'), type: 'text', hidden: true }, { name: 'id', label: $t('id'), type: 'w-text', hidden: true },
{ name: 'ownerType', label: $t('ownerType'), type: 'text', defaultValue: 'MODEL', hidden: true }, { name: 'ownerType', label: $t('ownerType'), type: 'w-text', defaultValue: 'MODEL', hidden: true },
{ name: 'owner', label: $t('owner'), type: 'text', defaultValue: model.resource, hidden: true }, { name: 'owner', label: $t('owner'), type: 'w-text', defaultValue: model.resource, hidden: true },
{ name: 'ownerId', label: $t('ownerId'), type: 'text', defaultValue: model.resource, hidden: true }, { name: 'ownerId', label: $t('ownerId'), type: 'w-text', defaultValue: model.resource, hidden: true },
{ name: 'name', label: $t('name'), type: 'text', required: true }, { name: 'name', label: $t('name'), type: 'w-text', required: true },
{ name: 'description', label: $t('description'), type: 'text' }, { name: 'description', label: $t('description'), type: 'w-text' },
{ name: 'order', label: $t('order'), type: 'number' }, { name: 'order', label: $t('order'), type: 'w-number' },
], ],
}, },
}" }"
@ -133,8 +133,8 @@
}, },
}" }"
@row-click=" @row-click="
(evt, row, index) => { (args) => {
emit('rowClick', evt, row, index); emit('rowClick', args.evt, args.row, args.index);
} }
" "
@before-request-data=" @before-request-data="

Loading…
Cancel
Save