子系统获取数据
This commit is contained in:
parent
411d129cfa
commit
0fe6188ed4
@ -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
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user