Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
b327cbbe
Commit
b327cbbe
authored
Sep 25, 2020
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增教师管理
parent
670b8ddf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
323 additions
and
117 deletions
+323
-117
MainLayout.vue
src/layouts/MainLayout.vue
+1
-1
school.vue
src/pages/school/school.vue
+0
-80
teacher.vue
src/pages/school/teacher.vue
+286
-0
routes.js
src/router/routes.js
+36
-36
No files found.
src/layouts/MainLayout.vue
View file @
b327cbbe
...
...
@@ -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>
...
...
src/pages/school/school.vue
deleted
100644 → 0
View file @
670b8ddf
<
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
>
src/pages/school/teacher.vue
0 → 100644
View file @
b327cbbe
This diff is collapsed.
Click to expand it.
src/router/routes.js
View file @
b327cbbe
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment