| | |
| | | </div> |
| | | <div class="item"> |
| | | <div class="itemchild">机巢查询:</div> |
| | | <el-select v-model="params.device_name" placeholder="请选择" class="filter-item"> |
| | | <el-select v-model="params.device_name" placeholder="请选择" class="filter-item" @change="handleSearch"> |
| | | <el-option v-for="item in jcoptions" :key="item" :label="item" :value="item" /> |
| | | </el-select> |
| | | </div> |
| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | |
| | | import { useStore } from 'vuex'; |
| | | import { getDictionaryByCode } from '@/api/system/dictbiz'; |
| | | import { getalgorithmList, selectDeviceList } from '@/api/algorithm'; |
| | | import { getSmallImg,getShowImg } from '@/utils/util'; |
| | | import { useRouter } from 'vue-router'; |
| | | const store = useStore(); |
| | | const router = useRouter(); |
| | | const baseUrl = import.meta.env.VITE_APP_PICTURE_URL; |
| | | const showDetail = ref(false); |
| | |
| | | const jcoptions = ref([]); |
| | | const total = ref(0); |
| | | const loading = ref(true); |
| | | const userAreaCode = computed(() => store.getters.userInfo.detail.areaCode); |
| | | const params = ref({ |
| | | ai_type_key: '', |
| | | start_date: null, |
| | |
| | | }; |
| | | // 机巢查询 |
| | | const getDeviceList = () => { |
| | | console.log('userAreaCode',userAreaCode.value); |
| | | // { areaCode: userAreaCode.value } |
| | | selectDeviceList().then(res => { |
| | | jcoptions.value = res.data.data; |
| | | console.log('机巢数',jcoptions.value ); |
| | | |
| | | }); |
| | | }; |
| | | // 日期选择 |
| | | const changeselect = () => { |
| | | params.value.start_date = taskData.value?.length ? `${taskData.value[0]} 00:00:00` : null; |
| | | params.value.end_date = taskData.value?.length ? `${taskData.value[1]} 23:59:59` : null; |
| | | handleSearch() |
| | | }; |
| | | // 处理日期清空 |
| | | const handleDateClear = () => { |
| | |
| | | activeItem.value = null; |
| | | params.value.current =1 |
| | | params.value.size=15 |
| | | params.value.name='' |
| | | }; |
| | | // 分页大小改变 |
| | | const handleSizeChange = val => { |