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
eb0dc95b
Commit
eb0dc95b
authored
Sep 24, 2020
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成校区管理
parent
97a2192c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
228 additions
and
235 deletions
+228
-235
index.js
src/api/school/index.js
+5
-5
table.sass
src/assets/css/table.sass
+9
-4
quasar.variables.sass
src/css/quasar.variables.sass
+1
-0
MainLayout.vue
src/layouts/MainLayout.vue
+21
-5
manager.vue
src/pages/school/manager.vue
+190
-163
login.vue
src/pages/user/login.vue
+1
-1
index.js
src/store/index.js
+1
-3
school.js
src/store/modules/school.js
+0
-54
No files found.
src/api/school/
school
.js
→
src/api/school/
index
.js
View file @
eb0dc95b
...
...
@@ -4,11 +4,11 @@ import request from '../../utils/request'
* 获取学校分页列表
*
*/
export
function
get
schoolp
age
(
data
)
{
export
function
get
SchoolP
age
(
data
)
{
return
request
({
url
:
'/user/GetSchoolPageList'
,
method
:
'post'
,
data
:
data
data
})
}
...
...
@@ -16,10 +16,10 @@ export function getschoolpage(data) {
* 获取学校分页列表
*
*/
export
function
testapi
(
cmd
,
msgD
ata
)
{
export
function
saveSchool
(
d
ata
)
{
return
request
({
url
:
cmd
,
url
:
'/user/SetSchool'
,
method
:
'post'
,
data
:
msgData
data
})
}
\ No newline at end of file
src/assets/css/table.sass
View file @
eb0dc95b
...
...
@@ -4,12 +4,14 @@
thead
background
:
rgb
(
245
,
246
,
247
)
thead
tr
th
thead
tr
:first-child
height
:
40px
line-height
:
14px
thead
tr
:first-child
th
font-size
:
12px
font-weight
:
400
color
:
rgb
(
168
,
168
,
179
)
line-height
:
14px
height
:
40px
thead
tr
:first-child
th
:first-child
background-color
:
rgb
(
245
,
246
,
247
)
...
...
@@ -22,4 +24,7 @@
position
:
sticky
left
:
0
z-index
:
1
box-shadow
:
rgba
(
0
,
0
,
0
,
0
.05
)
2px
0px
0px
\ No newline at end of file
box-shadow
:
rgba
(
0
,
0
,
0
,
0
.05
)
2px
0px
0px
td
.none-shadow
box-shadow
:
none
\ No newline at end of file
src/css/quasar.variables.sass
View file @
eb0dc95b
...
...
@@ -22,3 +22,4 @@ $positive : #43e97b
$negative
:
#f5576c
$info
:
#31CCEC
$warning
:
#F2C037
$infobg
:
#eeeeee
\ No newline at end of file
src/layouts/MainLayout.vue
View file @
eb0dc95b
...
...
@@ -12,7 +12,7 @@
<q-route-tab
v-for=
"(x, i) in userInfo.MenuList"
:key=
"i"
:to=
"x.MenuUrl"
:name=
"`navs_$
{i}`" :label="x.MenuName" :icon="x.MenuIcon" />
</q-tabs>
<div
class=
"q-pl-lg"
>
<q-btn-dropdown
flat
color=
"primary"
>
<q-btn-dropdown
flat
color=
"primary"
size=
"xs"
>
<template
v-slot:label
>
<q-icon
left
name=
"iconfont icon-message"
class=
"text-white"
style=
"font-size:20px;"
>
<q-badge
color=
"negative"
floating
>
4
</q-badge>
...
...
@@ -115,7 +115,7 @@
</q-item>
</q-list>
</q-btn-dropdown>
<q-btn-dropdown
flat
color=
"primary"
v-if=
"userInfo"
>
<q-btn-dropdown
flat
color=
"primary"
size=
"xs"
v-if=
"userInfo"
>
<
template
v-slot:label
>
<q-avatar
size=
"28px"
>
<img
:src=
"userInfo.UserIcon"
>
...
...
@@ -166,8 +166,10 @@
</
template
>
</q-list>
</div>
<div
class=
"col"
style=
"background: #f2f4f7;padding:20px"
>
<router-view
/>
<div
class=
"col"
style=
"background: #f2f4f7;"
>
<q-scroll-area
class=
"fit"
:thumb-style=
"thumbStyle"
:bar-style=
"barStyle"
visible
style=
""
>
<router-view
style=
"margin:20px"
/>
</q-scroll-area>
</div>
</div>
...
...
@@ -191,7 +193,21 @@ export default {
//essentialLinks: linksData
tab
:
"navs_0"
,
currentPath
:
""
,
secondNavs
:
[]
secondNavs
:
[],
thumbStyle
:
{
right
:
'0px'
,
borderRadius
:
'0px'
,
backgroundColor
:
'#1d1d1d'
,
width
:
'6px'
,
opacity
:
1
},
barStyle
:
{
right
:
'0px'
,
borderRadius
:
'0px'
,
backgroundColor
:
'#999'
,
width
:
'6px'
,
opacity
:
0.5
}
}
},
watch
:
{
...
...
src/pages/school/manager.vue
View file @
eb0dc95b
This diff is collapsed.
Click to expand it.
src/pages/user/login.vue
View file @
eb0dc95b
...
...
@@ -26,7 +26,7 @@
</q-carousel>
</div>
<div
class=
"right-card"
>
<div
class=
"company"
>
甲鹤日语教育
</div>
<div
class=
"company"
>
羚羊教育系统后台登录
</div>
<div
class=
"t"
>
登录
</div>
<div
class=
"field_wrap"
>
<div
class=
"pwd_box"
>
...
...
src/store/index.js
View file @
eb0dc95b
...
...
@@ -4,7 +4,6 @@ import user from './modules/user'
import
permission
from
'./modules/permission'
import
app
from
'./modules/app'
import
getters
from
'./getters'
import
school
from
'./modules/school'
Vue
.
use
(
Vuex
)
...
...
@@ -27,8 +26,7 @@ const store = new Vuex.Store({
modules
:
{
user
,
permission
,
app
,
school
app
},
getters
,
strict
:
process
.
env
.
DEV
...
...
src/store/modules/school.js
deleted
100644 → 0
View file @
97a2192c
import
{
getschoolpage
,
testapi
}
from
"../../api/school/school"
;
import
{
addAuth
,
removeAuth
}
from
"../../utils/auth"
;
import
Lockr
from
"lockr"
;
const
school
=
{
state
:
{
userInfo
:
null
,
// 用户信息
//TODO 用户权限
allAuth
:
[
'/home'
],
},
mutations
:
{
SET_USERINFO
:
(
state
,
userInfo
)
=>
{
state
.
userInfo
=
userInfo
;
},
SET_ALLAUTH
:
(
state
,
allAuth
)
=>
{
state
.
allAuth
=
allAuth
},
//TODO 用户权限
},
actions
:
{
// 获取权限
GetSchoolPage
({
commit
},
data
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
getschoolpage
(
data
)
.
then
(
res
=>
{
resolve
(
res
);
})
.
catch
(
error
=>
{
console
.
log
(
error
)
reject
(
error
);
});
});
},
//测试Api
TestWebApi
({
commit
},
postData
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
testapi
(
postData
.
cmdStr
,
postData
.
data
)
.
then
(
res
=>
{
resolve
(
res
);
})
.
catch
(
error
=>
{
console
.
log
(
error
)
reject
(
error
);
});
});
},
}
};
export
default
school
;
\ 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