子系统获取数据

This commit is contained in:
妖姐 2024-03-15 22:13:48 +08:00
parent 411d129cfa
commit 0fe6188ed4

View File

@ -77,7 +77,8 @@ import request from "@/js/request.js";
const showButton = reactive([]); const showButton = reactive([]);
const AddModule = ref(false) const AddModule = ref(false)
const token = window.localStorage.getItem('token')
const id = window.localStorage.getItem('id')
function showAddModal(){ function showAddModal(){
AddModule.value = true; AddModule.value = true;
} }
@ -93,7 +94,7 @@ onMounted(() => {
request.projectWorkGet(data, token).then((res) => { request.projectWorkGet(data, token).then((res) => {
ChildProjects.value = res.data.data; ChildProjects.value = res.data.data;
}) })
request.moduleGetByProjectId(null, token).then((res) => { request.moduleGetByProjectId(id, token).then((res) => {
console.log("childModules:", res) console.log("childModules:", res)
ChildSystems.value = res.data.data ChildSystems.value = res.data.data
}) })