Compare commits
No commits in common. "ca6f676fb77b7217c6091af0af399b5b273db889" and "41288258c93c4127773fc55f43660f7a81e42a2e" have entirely different histories.
ca6f676fb7
...
41288258c9
@ -1,17 +1,37 @@
|
||||
<script setup>
|
||||
import i18n from "@/i18n.js"
|
||||
import {ref} from 'vue'
|
||||
import { getCourses } from "@/rest/courses.js"
|
||||
import { getTeachers } from "@/rest/Users.js"
|
||||
const curriculum=[
|
||||
{
|
||||
"id": 12,
|
||||
"name": "Math pour l'info",
|
||||
"credits": 11,
|
||||
"faculty": "science",
|
||||
"teacher": 42,
|
||||
"Assistants": []},
|
||||
{
|
||||
"id": 42,
|
||||
"name": "Operating Systems",
|
||||
"credits": 8,
|
||||
"faculty": "science",
|
||||
"teacher": 62,
|
||||
"Assistants": []},
|
||||
{
|
||||
"id": 52,
|
||||
"name": "Fonctionnement des ordinateurs",
|
||||
"credits": 11,
|
||||
"faculty": "science",
|
||||
"teacher": 59,
|
||||
"Assistants": []},
|
||||
|
||||
const curriculum = await getCourses()
|
||||
]
|
||||
|
||||
const profList = getTeachers()
|
||||
const profList=[42,45,62,84,59]
|
||||
|
||||
const createMod = ref(false)
|
||||
const deleteMod = ref(false)
|
||||
|
||||
const editElementID = ref("")
|
||||
const editElementID = ref("");
|
||||
|
||||
function editItem(id){
|
||||
editElementID = id;
|
||||
|
@ -93,18 +93,6 @@ export async function getAllUsers(){
|
||||
return restGet("/users");
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the list of teachers
|
||||
*
|
||||
* @return a list of teachers
|
||||
* each elements is of the form
|
||||
* - id
|
||||
* - name
|
||||
* - role
|
||||
*/
|
||||
export async function getTeachers(){
|
||||
return restGet("/users/teacher")
|
||||
}
|
||||
|
||||
/**
|
||||
* Get informations about yourself
|
||||
|
@ -34,21 +34,6 @@ export async function getCourse(id){
|
||||
return restGet("/course/" + id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the list of courses to display on secretary's option
|
||||
*
|
||||
* @return list of courses of the form
|
||||
* - id
|
||||
* - name
|
||||
* - credits
|
||||
* - facutly
|
||||
* - teacher
|
||||
* - Assistants
|
||||
*/
|
||||
export async function getCourses(){
|
||||
return restGet("/course")
|
||||
}
|
||||
|
||||
/**
|
||||
* Change the options of a course
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user