|
|
@ -434,17 +434,17 @@ |
|
|
|
form: { |
|
|
|
colsNum: 5, |
|
|
|
fields: [ |
|
|
|
{ colSpan: 5, name: 'parameter', label: 'parameter', type: 'text', defaultValue: parameter.id, hidden: true }, |
|
|
|
{ colSpan: 5, name: 'id', label: $t('id'), type: 'text', hidden: true }, |
|
|
|
{ colSpan: 5, name: 'order', label: $t('order'), type: 'number', hidden: true }, |
|
|
|
{ colSpan: 5, name: 'type', label: $t('type'), type: 'text', hidden: true }, |
|
|
|
{ colSpan: 5, name: 'description', label: $t('description'), type: 'text', hidden: true }, |
|
|
|
{ colSpan: 5, name: 'enable', label: $t('enable'), type: 'checkbox', defaultValue: true, hidden: true }, |
|
|
|
{ colSpan: 5, name: 'parameter', label: 'parameter', type: 'w-text', defaultValue: parameter.id, hidden: true }, |
|
|
|
{ colSpan: 5, name: 'id', label: $t('id'), type: 'w-text', hidden: true }, |
|
|
|
{ colSpan: 5, name: 'order', label: $t('order'), type: 'w-number', hidden: true }, |
|
|
|
{ colSpan: 5, name: 'type', label: $t('type'), type: 'w-text', hidden: true }, |
|
|
|
{ colSpan: 5, name: 'description', label: $t('description'), type: 'w-text', hidden: true }, |
|
|
|
{ colSpan: 5, name: 'enable', label: $t('enable'), type: 'w-checkbox', defaultValue: true, hidden: true }, |
|
|
|
{ |
|
|
|
colSpan: 5, |
|
|
|
name: 'objectCondition', |
|
|
|
label: $t('re.resources.designer.processor.grid.entity.objectCondition'), |
|
|
|
type: 'code-mirror', |
|
|
|
type: 'w-code-mirror', |
|
|
|
lang: 'java', |
|
|
|
rows: 3, |
|
|
|
lineWrap: true, |
|
|
@ -563,7 +563,7 @@ |
|
|
|
{ |
|
|
|
name: 'expression', |
|
|
|
label: $t('expression'), |
|
|
|
type: 'code-mirror', |
|
|
|
type: 'w-code-mirror', |
|
|
|
lang: 'java', |
|
|
|
rows: 3, |
|
|
|
lineWrap: true, |
|
|
@ -587,7 +587,7 @@ |
|
|
|
colSpan: 5, |
|
|
|
name: 'optionCode', |
|
|
|
label: $t('re.resources.designer.processor.grid.entity.optionCode'), |
|
|
|
type: 'select', |
|
|
|
type: 'w-select', |
|
|
|
options: optionOptionsRef, |
|
|
|
showIf: (arg) => { |
|
|
|
return 'OPTION_VALUE' === arg.form.getFieldValue('type'); |
|
|
@ -597,7 +597,7 @@ |
|
|
|
colSpan: 5, |
|
|
|
name: 'mathFormula', |
|
|
|
label: $t('re.resources.designer.processor.grid.entity.mathFormula'), |
|
|
|
type: 'math', |
|
|
|
type: 'w-math', |
|
|
|
autoCompletion: autoCompletion, |
|
|
|
userDefinedFunctions: userDefinedFunctionsRef, |
|
|
|
showIf: (arg) => { |
|
|
@ -608,7 +608,7 @@ |
|
|
|
colSpan: 5, |
|
|
|
name: 'arithmetic', |
|
|
|
label: $t('re.resources.designer.processor.grid.entity.arithmetic'), |
|
|
|
type: 'code-mirror', |
|
|
|
type: 'w-code-mirror', |
|
|
|
lang: 'java', |
|
|
|
rows: 5, |
|
|
|
placeholder: true, |
|
|
@ -624,7 +624,7 @@ |
|
|
|
colSpan: 5, |
|
|
|
name: 'ternaryCondition', |
|
|
|
label: $t('re.resources.designer.processor.grid.entity.ternaryCondition'), |
|
|
|
type: 'code-mirror', |
|
|
|
type: 'w-code-mirror', |
|
|
|
lang: 'java', |
|
|
|
rows: 4, |
|
|
|
placeholder: true, |
|
|
@ -640,7 +640,7 @@ |
|
|
|
colSpan: 5, |
|
|
|
name: 'ternaryTrue', |
|
|
|
label: $t('re.resources.designer.processor.grid.entity.ternaryTrue'), |
|
|
|
type: 'code-mirror', |
|
|
|
type: 'w-code-mirror', |
|
|
|
lang: 'java', |
|
|
|
rows: 4, |
|
|
|
placeholder: true, |
|
|
@ -656,7 +656,7 @@ |
|
|
|
colSpan: 5, |
|
|
|
name: 'ternaryFalse', |
|
|
|
label: $t('re.resources.designer.processor.grid.entity.ternaryFalse'), |
|
|
|
type: 'code-mirror', |
|
|
|
type: 'w-code-mirror', |
|
|
|
lang: 'java', |
|
|
|
rows: 4, |
|
|
|
placeholder: true, |
|
|
@ -672,7 +672,7 @@ |
|
|
|
colSpan: 5, |
|
|
|
name: 'when', |
|
|
|
label: $t('re.resources.designer.processor.grid.entity.when'), |
|
|
|
type: 'code-mirror', |
|
|
|
type: 'w-code-mirror', |
|
|
|
lang: 'java', |
|
|
|
rows: 4, |
|
|
|
lineWrap: true, |
|
|
@ -688,7 +688,7 @@ |
|
|
|
colSpan: 5, |
|
|
|
name: 'then', |
|
|
|
label: $t('re.resources.designer.processor.grid.entity.then'), |
|
|
|
type: 'code-mirror', |
|
|
|
type: 'w-code-mirror', |
|
|
|
lang: 'java', |
|
|
|
rows: 4, |
|
|
|
lineWrap: true, |
|
|
@ -704,7 +704,7 @@ |
|
|
|
colSpan: 5, |
|
|
|
name: 'isWhenThenShorted', |
|
|
|
label: $t('re.resources.designer.processor.grid.entity.isWhenThenShorted'), |
|
|
|
type: 'checkbox', |
|
|
|
type: 'w-checkbox', |
|
|
|
showIf: (arg) => { |
|
|
|
return 'WHEN_THEN' === arg.form.getFieldValue('type'); |
|
|
|
}, |
|
|
@ -716,7 +716,7 @@ |
|
|
|
showIf: (arg) => { |
|
|
|
return 'NUMBER_RANGE' === arg.form.getFieldValue('type'); |
|
|
|
}, |
|
|
|
type: 'code-mirror', |
|
|
|
type: 'w-code-mirror', |
|
|
|
lang: 'java', |
|
|
|
rows: 3, |
|
|
|
lineWrap: true, |
|
|
@ -814,11 +814,11 @@ |
|
|
|
colsNum: 4, |
|
|
|
fields: [ |
|
|
|
{ name: 'uuid', label: 'uuid', hidden: true, colSpan: 4 }, |
|
|
|
{ name: 'min', label: $t('minValue'), type: 'text', colSpan: 3 }, |
|
|
|
{ name: 'minIncluded', label: $t('include'), type: 'checkbox' }, |
|
|
|
{ name: 'max', label: $t('maxValue'), type: 'text', colSpan: 3 }, |
|
|
|
{ name: 'maxIncluded', label: $t('include'), type: 'checkbox' }, |
|
|
|
{ name: 'value', label: $t('value'), type: 'number', colSpan: 3 }, |
|
|
|
{ name: 'min', label: $t('minValue'), type: 'w-text', colSpan: 3 }, |
|
|
|
{ name: 'minIncluded', label: $t('include'), type: 'w-checkbox' }, |
|
|
|
{ name: 'max', label: $t('maxValue'), type: 'w-text', colSpan: 3 }, |
|
|
|
{ name: 'maxIncluded', label: $t('include'), type: 'w-checkbox' }, |
|
|
|
{ name: 'value', label: $t('value'), type: 'w-number', colSpan: 3 }, |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
@ -912,7 +912,7 @@ |
|
|
|
{ |
|
|
|
name: 'condition', |
|
|
|
label: $t('condition'), |
|
|
|
type: 'code-mirror', |
|
|
|
type: 'w-code-mirror', |
|
|
|
lang: 'java', |
|
|
|
rows: 4, |
|
|
|
placeholder: true, |
|
|
@ -924,7 +924,7 @@ |
|
|
|
{ |
|
|
|
name: 'value', |
|
|
|
label: $t('value'), |
|
|
|
type: 'code-mirror', |
|
|
|
type: 'w-code-mirror', |
|
|
|
lang: 'java', |
|
|
|
rows: 4, |
|
|
|
lineWrap: true, |
|
|
@ -953,7 +953,7 @@ |
|
|
|
colSpan: 5, |
|
|
|
name: 'decisionTable2C', |
|
|
|
label: $t('re.resources.designer.processor.grid.entity.decisionTable2C'), |
|
|
|
type: 'code-mirror', |
|
|
|
type: 'w-code-mirror', |
|
|
|
rows: 1, |
|
|
|
showIf: (arg) => { |
|
|
|
return 'DECISION_TABLE_2C' === arg.form.getFieldValue('type'); |
|
|
@ -963,7 +963,7 @@ |
|
|
|
colSpan: 5, |
|
|
|
name: 'decisionTable', |
|
|
|
label: $t('re.resources.designer.processor.grid.entity.decisionTable'), |
|
|
|
type: 'code-mirror', |
|
|
|
type: 'w-code-mirror', |
|
|
|
rows: 1, |
|
|
|
showIf: (arg) => { |
|
|
|
return 'DECISION_TABLE' === arg.form.getFieldValue('type'); |
|
|
@ -973,7 +973,7 @@ |
|
|
|
colSpan: 5, |
|
|
|
name: 'decisionTree', |
|
|
|
label: $t('re.resources.designer.processor.grid.entity.decisionTree'), |
|
|
|
type: 'code-mirror', |
|
|
|
type: 'w-code-mirror', |
|
|
|
rows: 20, |
|
|
|
lineNumber: true, |
|
|
|
toolbar: false, |
|
|
@ -985,7 +985,7 @@ |
|
|
|
colSpan: 5, |
|
|
|
name: 'executionFlow', |
|
|
|
label: $t('re.resources.designer.processor.grid.entity.executionFlow'), |
|
|
|
type: 'code-mirror', |
|
|
|
type: 'w-code-mirror', |
|
|
|
rows: 20, |
|
|
|
lineNumber: true, |
|
|
|
toolbar: false, |
|
|
@ -997,7 +997,7 @@ |
|
|
|
colSpan: 5, |
|
|
|
name: 'pmml', |
|
|
|
label: $t('re.resources.designer.processor.grid.entity.pmml'), |
|
|
|
type: 'code-mirror', |
|
|
|
type: 'w-code-mirror', |
|
|
|
rows: 20, |
|
|
|
lineNumber: true, |
|
|
|
toolbar: false, |
|
|
@ -1010,7 +1010,7 @@ |
|
|
|
colSpan: 5, |
|
|
|
name: 'groovyScript', |
|
|
|
label: $t('re.resources.designer.processor.grid.entity.groovyScript'), |
|
|
|
type: 'code-mirror', |
|
|
|
type: 'w-code-mirror', |
|
|
|
rows: 20, |
|
|
|
lineNumber: true, |
|
|
|
lang: 'java', |
|
|
@ -1027,7 +1027,7 @@ |
|
|
|
colSpan: 5, |
|
|
|
name: 'sqlDatasourceName', |
|
|
|
label: $t('re.resources.designer.processor.grid.entity.sqlDatasourceName'), |
|
|
|
type: 'select', |
|
|
|
type: 'w-select', |
|
|
|
clearable: true, |
|
|
|
options: dsOptionsRef, |
|
|
|
rows: 1, |
|
|
@ -1039,7 +1039,7 @@ |
|
|
|
colSpan: 3, |
|
|
|
name: 'sql', |
|
|
|
label: $t('re.resources.designer.processor.grid.entity.sql'), |
|
|
|
type: 'code-mirror', |
|
|
|
type: 'w-code-mirror', |
|
|
|
height: 180, |
|
|
|
lang: 'sql', |
|
|
|
toolbar: false, |
|
|
@ -1136,7 +1136,7 @@ |
|
|
|
{ |
|
|
|
name: 'name', |
|
|
|
label: $t('name'), |
|
|
|
type: 'code-mirror', |
|
|
|
type: 'w-code-mirror', |
|
|
|
lang: 'java', |
|
|
|
rows: 1, |
|
|
|
placeholder: true, |
|
|
@ -1145,7 +1145,7 @@ |
|
|
|
{ |
|
|
|
name: 'value', |
|
|
|
label: $t('value'), |
|
|
|
type: 'text', |
|
|
|
type: 'w-text', |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
@ -1282,13 +1282,13 @@ |
|
|
|
{ |
|
|
|
name: 'field', |
|
|
|
label: $t('fieldName'), |
|
|
|
type: 'select', |
|
|
|
type: 'w-select', |
|
|
|
options: sqlQueryResultFieldsRef, |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: 'parameter', |
|
|
|
label: $t('parameterName'), |
|
|
|
type: 'select', |
|
|
|
type: 'w-select', |
|
|
|
options: parameterOptionsRef, |
|
|
|
}, |
|
|
|
], |
|
|
@ -1419,7 +1419,8 @@ |
|
|
|
} |
|
|
|
" |
|
|
|
@after-editor-open=" |
|
|
|
(row) => { |
|
|
|
(args) => { |
|
|
|
const row = args.data; |
|
|
|
// 获取代码提示列表 |
|
|
|
axios.get(Environment.apiContextPath('/api/re/common/listParameterAndValueTypeByParameterId/' + parameter.id)).then((response) => { |
|
|
|
autoCompletionManager.setParameters(response.data.parameters); |
|
|
@ -1498,14 +1499,14 @@ |
|
|
|
} |
|
|
|
" |
|
|
|
@row-db-click=" |
|
|
|
(e, row) => { |
|
|
|
const type = row.type; |
|
|
|
(args) => { |
|
|
|
const type = args.row.type; |
|
|
|
if ('DECISION_TREE' === type) { |
|
|
|
decisionTreeDialogRef.open(row.id); |
|
|
|
decisionTreeDialogRef.open(args.row.id); |
|
|
|
} else if ('EXECUTION_FLOW' === type) { |
|
|
|
executionFlowDialogRef.open(row.id); |
|
|
|
executionFlowDialogRef.open(args.row.id); |
|
|
|
} else { |
|
|
|
gridRef.edit(row); |
|
|
|
gridRef.edit(args.row); |
|
|
|
} |
|
|
|
} |
|
|
|
" |
|
|
@ -1540,11 +1541,6 @@ const props = defineProps({ |
|
|
|
readOnly: { type: Boolean, default: false }, |
|
|
|
}); |
|
|
|
|
|
|
|
const emit = defineEmits<{ |
|
|
|
(e: 'rowClick', evt: Event, row: any, index: number): void; |
|
|
|
(e: 'beforeRequestData', requestParams: URLSearchParams | any, callback: any): void; |
|
|
|
}>(); |
|
|
|
|
|
|
|
const gridRef = ref(); |
|
|
|
const optionOptionsRef = ref([]); |
|
|
|
const dsOptionsRef = ref([]); |
|
|
|