Commit b327cbbe authored by 罗超's avatar 罗超

新增教师管理

parent 670b8ddf
......@@ -132,7 +132,7 @@
<div class="column items-center">
<q-avatar size="72px">
<img src="https://cdn.quasar.dev/img/boy-avatar.png">
<img :src="userInfo.UserIcon">
</q-avatar>
<div class="text-subtitle1 q-mt-md q-mb-xs">{{userInfo.AccountName}}</div>
......
<template>
<div class="school">
</div>
</template>
<script>
export default {
meta: {
title: '登录 - 麦子教育系统',
},
data() {
return {
DataList: [],
total: 0,
};
},
created() {
},
mounted() {
this.TestApi();
//this.getschool();
},
watch: {
$route: {
handler: function (route) {
this.redirect = route.query && route.query.redirect
},
immediate: true
}
},
methods: {
getschool() {
this.$store
.dispatch('GetSchoolPage', {
pageIndex: 1,
pageSize: 10
})
.then(res => {
if (res.Code == 1) {
this.DataList = res.Data.PageData;
this.total = res.Data.Count
}
})
.catch(() => {
})
},
TestApi() {
var cmdStr = "/Public";
var data = {}
cmdStr += "/RemoveRole"
//RemoveAssist
data = {
RoleId: 9,
};
this.$store
.dispatch('TestWebApi', {
cmdStr,
data
})
.then(res => {
console.log("res", res);
})
.catch(() => {
})
}
},
};
</script>
<style scoped>
</style>
This diff is collapsed.
const routes = [{
path: '/',
component: () =>
import('pages/user/login.vue')
},
{
path: '/login',
component: () =>
import('pages/user/login.vue')
},
{
path: '/home',
component: () =>
import('layouts/MainLayout.vue'),
children: [{
path: '',
path: "/",
component: () =>
import('pages/Index.vue')
},
{
path: '/school/manager',
import ("pages/user/login.vue")
},
{
path: "/login",
component: () =>
import('pages/school/manager.vue')
},
{
path: '/school',
import ("pages/user/login.vue")
},
{
path: "/home",
component: () =>
import('pages/school/school.vue')
},
]
},
import ("layouts/MainLayout.vue"),
children: [{
path: "",
component: () =>
import ("pages/Index.vue")
},
{
path: "/school/manager",
component: () =>
import ("pages/school/manager.vue")
},
{
path: "/school/teacher",
component: () =>
import ("pages/school/teacher.vue")
},
]
},
// Always leave this as last one,
// but you can also remove it
{
path: '*',
component: () =>
import('pages/Error404.vue')
}
]
// Always leave this as last one,
// but you can also remove it
{
path: "*",
component: () =>
import ("pages/Error404.vue")
}
];
export default routes
export default routes;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment