无人机管理后台前端(已迁走)
张含笑
2025-08-14 2dabeada1a5b2562e5a4481cf492c3bb01c99be4
src/views/algorithmRepository/algorithmRepository.vue
@@ -107,11 +107,12 @@
</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);
@@ -120,6 +121,7 @@
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,
@@ -175,8 +177,12 @@
};
// 机巢查询
const getDeviceList = () => {
  selectDeviceList().then(res => {
console.log('userAreaCode',userAreaCode.value);
// { areaCode: userAreaCode.value }
  selectDeviceList({ areaCode: userAreaCode.value }).then(res => {
    jcoptions.value = res.data.data;
    console.log('机巢数',jcoptions.value );
  });
};
// 日期选择