shenzhen-dev #2

Merged
admin merged 614 commits from shenzhen-dev into master 2025-06-03 18:28:43 +08:00
Showing only changes of commit 1bd62d87d5 - Show all commits

View File

@ -28,6 +28,14 @@ import { GlobalStore } from "@/stores";
const store = GlobalStore();
const weatherList = ref([]);
//
const projectTimeInfo = ref({} as any);
const getProjectInfo = async () => {
const res: any = await getTaskTimeDetail({ projectSn: store.sn });
console.log("获取项目信息", res);
projectTimeInfo.value = res.result;
loadWeather();
};
//
const loadWeather = async () => {
const res = await getWeatherDataApi({ cityid: "", areaId: projectTimeInfo.value.areaCode});
@ -44,14 +52,6 @@ const loadWeather = async () => {
weatherList.value.push(element);
});
};
//
const projectTimeInfo = ref({} as any);
const getProjectInfo = async () => {
const res: any = await getTaskTimeDetail({ projectSn: store.sn });
console.log("获取项目信息", res);
projectTimeInfo.value = res.result;
loadWeather();
};
onMounted(() => {
getProjectInfo();
});