|
|
@ -61,6 +61,36 @@ const BatchTaskInstance = defineComponent({ |
|
|
|
getTableData() |
|
|
|
getTableData() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const onClearSearchTaskName = () => { |
|
|
|
|
|
|
|
variables.searchVal = null |
|
|
|
|
|
|
|
onSearch() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const onClearSearchWorkFlowName = () => { |
|
|
|
|
|
|
|
variables.processDefinitionName = null |
|
|
|
|
|
|
|
onSearch() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const onClearSearchExecutorName = () => { |
|
|
|
|
|
|
|
variables.executorName = null |
|
|
|
|
|
|
|
onSearch() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const onClearSearchHost = () => { |
|
|
|
|
|
|
|
variables.host = null |
|
|
|
|
|
|
|
onSearch() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const onClearSearchStateType = () => { |
|
|
|
|
|
|
|
variables.stateType = null |
|
|
|
|
|
|
|
onSearch() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const onClearSearchTime = () => { |
|
|
|
|
|
|
|
variables.datePickerRange = null |
|
|
|
|
|
|
|
onSearch() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const onConfirmModal = () => { |
|
|
|
const onConfirmModal = () => { |
|
|
|
variables.showModalRef = false |
|
|
|
variables.showModalRef = false |
|
|
|
} |
|
|
|
} |
|
|
@ -140,6 +170,12 @@ const BatchTaskInstance = defineComponent({ |
|
|
|
getTableData, |
|
|
|
getTableData, |
|
|
|
onUpdatePageSize, |
|
|
|
onUpdatePageSize, |
|
|
|
onSearch, |
|
|
|
onSearch, |
|
|
|
|
|
|
|
onClearSearchTaskName, |
|
|
|
|
|
|
|
onClearSearchWorkFlowName, |
|
|
|
|
|
|
|
onClearSearchExecutorName, |
|
|
|
|
|
|
|
onClearSearchHost, |
|
|
|
|
|
|
|
onClearSearchStateType, |
|
|
|
|
|
|
|
onClearSearchTime, |
|
|
|
onConfirmModal, |
|
|
|
onConfirmModal, |
|
|
|
refreshLogs, |
|
|
|
refreshLogs, |
|
|
|
trim |
|
|
|
trim |
|
|
@ -166,6 +202,7 @@ const BatchTaskInstance = defineComponent({ |
|
|
|
size='small' |
|
|
|
size='small' |
|
|
|
placeholder={t('project.task.task_name')} |
|
|
|
placeholder={t('project.task.task_name')} |
|
|
|
clearable |
|
|
|
clearable |
|
|
|
|
|
|
|
onClear={this.onClearSearchTaskName} |
|
|
|
/> |
|
|
|
/> |
|
|
|
<NInput |
|
|
|
<NInput |
|
|
|
allowInput={this.trim} |
|
|
|
allowInput={this.trim} |
|
|
@ -173,6 +210,7 @@ const BatchTaskInstance = defineComponent({ |
|
|
|
size='small' |
|
|
|
size='small' |
|
|
|
placeholder={t('project.task.workflow_name')} |
|
|
|
placeholder={t('project.task.workflow_name')} |
|
|
|
clearable |
|
|
|
clearable |
|
|
|
|
|
|
|
onClear={this.onClearSearchWorkFlowName} |
|
|
|
/> |
|
|
|
/> |
|
|
|
<NInput |
|
|
|
<NInput |
|
|
|
allowInput={this.trim} |
|
|
|
allowInput={this.trim} |
|
|
@ -180,6 +218,7 @@ const BatchTaskInstance = defineComponent({ |
|
|
|
size='small' |
|
|
|
size='small' |
|
|
|
placeholder={t('project.task.executor')} |
|
|
|
placeholder={t('project.task.executor')} |
|
|
|
clearable |
|
|
|
clearable |
|
|
|
|
|
|
|
onClear={this.onClearSearchExecutorName} |
|
|
|
/> |
|
|
|
/> |
|
|
|
<NInput |
|
|
|
<NInput |
|
|
|
allowInput={this.trim} |
|
|
|
allowInput={this.trim} |
|
|
@ -187,6 +226,7 @@ const BatchTaskInstance = defineComponent({ |
|
|
|
size='small' |
|
|
|
size='small' |
|
|
|
placeholder={t('project.task.host')} |
|
|
|
placeholder={t('project.task.host')} |
|
|
|
clearable |
|
|
|
clearable |
|
|
|
|
|
|
|
onClear={this.onClearSearchHost} |
|
|
|
/> |
|
|
|
/> |
|
|
|
<NSelect |
|
|
|
<NSelect |
|
|
|
v-model={[this.stateType, 'value']} |
|
|
|
v-model={[this.stateType, 'value']} |
|
|
@ -195,6 +235,7 @@ const BatchTaskInstance = defineComponent({ |
|
|
|
placeholder={t('project.task.state')} |
|
|
|
placeholder={t('project.task.state')} |
|
|
|
style={{ width: '180px' }} |
|
|
|
style={{ width: '180px' }} |
|
|
|
clearable |
|
|
|
clearable |
|
|
|
|
|
|
|
onClear={this.onClearSearchStateType} |
|
|
|
/> |
|
|
|
/> |
|
|
|
<NDatePicker |
|
|
|
<NDatePicker |
|
|
|
v-model={[this.datePickerRange, 'value']} |
|
|
|
v-model={[this.datePickerRange, 'value']} |
|
|
@ -203,6 +244,7 @@ const BatchTaskInstance = defineComponent({ |
|
|
|
start-placeholder={t('project.task.start_time')} |
|
|
|
start-placeholder={t('project.task.start_time')} |
|
|
|
end-placeholder={t('project.task.end_time')} |
|
|
|
end-placeholder={t('project.task.end_time')} |
|
|
|
clearable |
|
|
|
clearable |
|
|
|
|
|
|
|
onClear={this.onClearSearchTime} |
|
|
|
/> |
|
|
|
/> |
|
|
|
<NButton size='small' type='primary' onClick={onSearch}> |
|
|
|
<NButton size='small' type='primary' onClick={onSearch}> |
|
|
|
<NIcon> |
|
|
|
<NIcon> |
|
|
|