|
|
|
@ -58,6 +58,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 |
|
|
|
|
} |
|
|
|
@ -130,6 +160,12 @@ const BatchTaskInstance = defineComponent({
|
|
|
|
|
getTableData, |
|
|
|
|
onUpdatePageSize, |
|
|
|
|
onSearch, |
|
|
|
|
onClearSearchTaskName, |
|
|
|
|
onClearSearchWorkFlowName, |
|
|
|
|
onClearSearchExecutorName, |
|
|
|
|
onClearSearchHost, |
|
|
|
|
onClearSearchStateType, |
|
|
|
|
onClearSearchTime, |
|
|
|
|
onConfirmModal, |
|
|
|
|
refreshLogs, |
|
|
|
|
trim |
|
|
|
@ -156,6 +192,7 @@ const BatchTaskInstance = defineComponent({
|
|
|
|
|
size='small' |
|
|
|
|
placeholder={t('project.task.task_name')} |
|
|
|
|
clearable |
|
|
|
|
onClear={this.onClearSearchTaskName} |
|
|
|
|
/> |
|
|
|
|
<NInput |
|
|
|
|
allowInput={this.trim} |
|
|
|
@ -163,6 +200,7 @@ const BatchTaskInstance = defineComponent({
|
|
|
|
|
size='small' |
|
|
|
|
placeholder={t('project.task.workflow_name')} |
|
|
|
|
clearable |
|
|
|
|
onClear={this.onClearSearchWorkFlowName} |
|
|
|
|
/> |
|
|
|
|
<NInput |
|
|
|
|
allowInput={this.trim} |
|
|
|
@ -170,6 +208,7 @@ const BatchTaskInstance = defineComponent({
|
|
|
|
|
size='small' |
|
|
|
|
placeholder={t('project.task.executor')} |
|
|
|
|
clearable |
|
|
|
|
onClear={this.onClearSearchExecutorName} |
|
|
|
|
/> |
|
|
|
|
<NInput |
|
|
|
|
allowInput={this.trim} |
|
|
|
@ -177,6 +216,7 @@ const BatchTaskInstance = defineComponent({
|
|
|
|
|
size='small' |
|
|
|
|
placeholder={t('project.task.host')} |
|
|
|
|
clearable |
|
|
|
|
onClear={this.onClearSearchHost} |
|
|
|
|
/> |
|
|
|
|
<NSelect |
|
|
|
|
v-model={[this.stateType, 'value']} |
|
|
|
@ -185,6 +225,7 @@ const BatchTaskInstance = defineComponent({
|
|
|
|
|
placeholder={t('project.task.state')} |
|
|
|
|
style={{ width: '180px' }} |
|
|
|
|
clearable |
|
|
|
|
onClear={this.onClearSearchStateType} |
|
|
|
|
/> |
|
|
|
|
<NDatePicker |
|
|
|
|
v-model={[this.datePickerRange, 'value']} |
|
|
|
@ -193,6 +234,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> |
|
|
|
|