feat(1.3.0-beta1): 优化参数传递
This commit is contained in:
parent
7a9ed63b98
commit
40568d5c98
@ -36,7 +36,8 @@ const { columnChecks, columns, data, getData, loading, mobilePagination, searchP
|
||||
groupName: null,
|
||||
jobName: null,
|
||||
jobStatus: null,
|
||||
ownerId: null
|
||||
ownerId: null,
|
||||
executorInfo: null
|
||||
},
|
||||
columns: () => [
|
||||
{
|
||||
|
@ -111,6 +111,7 @@ function createDefaultScriptParams() {
|
||||
function handleUpdateModelWhenEdit() {
|
||||
if (props.rowData) {
|
||||
Object.assign(model, props.rowData);
|
||||
// 任务类型 1:集群 2:广播 3:切片 4:Map 5:MapReduce
|
||||
if (props.rowData.taskType === 3 && props.rowData.argsStr) {
|
||||
Object.assign(dynamicForm, {
|
||||
args: JSON.parse(props.rowData.argsStr).map((item: string) => {
|
||||
@ -302,7 +303,7 @@ async function handleSubmit() {
|
||||
<icon-ic-round-plus class="text-icon" />
|
||||
</NButton>
|
||||
</NCard>
|
||||
<CodeMirror v-else v-model="rowData!.argsStr" lang="json" :placeholder="$t('page.jobTask.form.argsStr')" />
|
||||
<CodeMirror v-else v-model="model.tmpArgsStr" lang="json" :placeholder="$t('page.jobTask.form.argsStr')" />
|
||||
</template>
|
||||
<template v-else-if="rowData.executorInfo === 'snailJobHttpExecutor'">
|
||||
<NForm ref="customformRef" class="w-full" :model="httpParams">
|
||||
|
Loading…
Reference in New Issue
Block a user