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,
 | 
					    groupName: null,
 | 
				
			||||||
    jobName: null,
 | 
					    jobName: null,
 | 
				
			||||||
    jobStatus: null,
 | 
					    jobStatus: null,
 | 
				
			||||||
    ownerId: null
 | 
					    ownerId: null,
 | 
				
			||||||
 | 
					    executorInfo: null
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  columns: () => [
 | 
					  columns: () => [
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
				
			|||||||
@ -111,6 +111,7 @@ function createDefaultScriptParams() {
 | 
				
			|||||||
function handleUpdateModelWhenEdit() {
 | 
					function handleUpdateModelWhenEdit() {
 | 
				
			||||||
  if (props.rowData) {
 | 
					  if (props.rowData) {
 | 
				
			||||||
    Object.assign(model, props.rowData);
 | 
					    Object.assign(model, props.rowData);
 | 
				
			||||||
 | 
					    // 任务类型 1:集群 2:广播 3:切片 4:Map 5:MapReduce
 | 
				
			||||||
    if (props.rowData.taskType === 3 && props.rowData.argsStr) {
 | 
					    if (props.rowData.taskType === 3 && props.rowData.argsStr) {
 | 
				
			||||||
      Object.assign(dynamicForm, {
 | 
					      Object.assign(dynamicForm, {
 | 
				
			||||||
        args: JSON.parse(props.rowData.argsStr).map((item: string) => {
 | 
					        args: JSON.parse(props.rowData.argsStr).map((item: string) => {
 | 
				
			||||||
@ -302,7 +303,7 @@ async function handleSubmit() {
 | 
				
			|||||||
              <icon-ic-round-plus class="text-icon" />
 | 
					              <icon-ic-round-plus class="text-icon" />
 | 
				
			||||||
            </NButton>
 | 
					            </NButton>
 | 
				
			||||||
          </NCard>
 | 
					          </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>
 | 
				
			||||||
        <template v-else-if="rowData.executorInfo === 'snailJobHttpExecutor'">
 | 
					        <template v-else-if="rowData.executorInfo === 'snailJobHttpExecutor'">
 | 
				
			||||||
          <NForm ref="customformRef" class="w-full" :model="httpParams">
 | 
					          <NForm ref="customformRef" class="w-full" :model="httpParams">
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user