| | |
| | | </div> --> |
| | | <div class="item"> |
| | | <div class="itemchild">关联算法:</div> |
| | | <TaskAlgorithmBusiness :setWidth="186" :showAlgorithm="true" @algorithmChange="algorithmChange" /> |
| | | <TaskAlgorithmBusiness ref="algorithmRef" :setWidth="186" :showAlgorithm="true" @algorithmChange="algorithmChange" /> |
| | | </div> |
| | | </div> |
| | | <div class="search-btn"> |
| | |
| | | const emit = defineEmits(['refresh']) |
| | | const props = defineProps(['jobTimes', 'batchNo', 'waylineJobId','detailName','isShowExportTheTask']) |
| | | const taskData = ref('') |
| | | const algorithmRef = ref() |
| | | |
| | | const algorithmChange = val => { |
| | | params.value.ai_types = val |
| | | handleSearch() |
| | |
| | | params.value.end_date = null |
| | | params.value.start_date = null |
| | | taskData.value = '' |
| | | algorithmRef.value?.handleClear() |
| | | algorithmChange([]) |
| | | // getList() |
| | | } |
| | |
| | | collapse-tags-tooltip |
| | | placeholder="支持多项选择" |
| | | clearable |
| | | @clear="clear" |
| | | @clear="handleClear" |
| | | @change="handleAlgorithmChange" |
| | | > |
| | | <el-option v-for="item in taskAlgorithm" :key="item.id" :label="item.dictValue" :value="item.dictKey" /> |
| | |
| | | emit('businessChange', value) |
| | | } |
| | | |
| | | const clear = () => { |
| | | ai_types.value = [] // 清空算法选择 |
| | | handleAlgorithmChange(ai_types.value) |
| | | function handleClear() { |
| | | ai_types.value = [] |
| | | emit('algorithmChange', []) |
| | | } |
| | | |
| | | defineExpose({ |
| | | clear, |
| | | handleClear, |
| | | }) |
| | | |
| | | onMounted(() => { |