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