From 2ca94de8ede18ac07ccfd8dec7b6f6a707adde9b Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Mon, 01 Sep 2025 11:20:24 +0800
Subject: [PATCH] Merge branch 'refs/heads/feature/v5.0/5.0.5' into patch_management
---
src/views/algorithmRepository/algorithmRepository.vue | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/views/algorithmRepository/algorithmRepository.vue b/src/views/algorithmRepository/algorithmRepository.vue
index e55fe91..7aaa36d 100644
--- a/src/views/algorithmRepository/algorithmRepository.vue
+++ b/src/views/algorithmRepository/algorithmRepository.vue
@@ -49,7 +49,7 @@
</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>
@@ -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,14 +177,19 @@
};
// 机巢查询
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 = () => {
--
Gitblit v1.9.3