| | |
| | | <el-select |
| | | class="gd-select" |
| | | popper-class="gd-select-popper" |
| | | v-model="searchParams.patrolTaskId" |
| | | v-model="searchParams.patrolTaskIds" |
| | | placeholder="请选择" |
| | | clearable |
| | | filterable |
| | | multiple |
| | | @change="handleSearch" |
| | | > |
| | | <el-option |
| | |
| | | </el-form-item> |
| | | |
| | | <el-form-item > |
| | | <!-- <el-button :icon="RefreshRight" @click="resetForm"></el-button> |
| | | <el-button class="search-btn" :icon="Search" @click="handleSearch"></el-button> --> |
| | | <el-button :icon="RefreshRight" @click="resetForm"></el-button> |
| | | <el-button :icon="Search" color="#383874" @click="handleSearch"></el-button> |
| | | <el-button :icon="Download" color="#4C34FF" :loading="exportLoading" :disabled="exportLoading" @click="handleBatchDownload">下载</el-button> |
| | | |
| | | </el-form-item> |
| | |
| | | const initSearchParams = () => ({ |
| | | current: 1, |
| | | size: 10, |
| | | patrolTaskId: '' |
| | | patrolTaskIds: '' |
| | | }) |
| | | |
| | | const searchParams = ref(initSearchParams()) |
| | |
| | | try { |
| | | const res = await gdTaskResultPageApi({ |
| | | ...searchParams.value, |
| | | workOrderId: props.workOrderId |
| | | workOrderId: props.workOrderId, |
| | | patrolTaskIds: searchParams.value.patrolTaskIds.join(',') |
| | | }) |
| | | list.value = res?.data?.data?.records || [] |
| | | total.value = res?.data?.data?.total || 0 |
| | |
| | | |
| | | // 重置搜索 |
| | | function resetForm() { |
| | | searchParams.value = initSearchParams() |
| | | searchRef.value?.resetFields() |
| | | searchParams.value.current = 1 |
| | | getList() |
| | | } |
| | | |