Commit eb0dc95b authored by 罗超's avatar 罗超

完成校区管理

parent 97a2192c
...@@ -4,11 +4,11 @@ import request from '../../utils/request' ...@@ -4,11 +4,11 @@ import request from '../../utils/request'
* 获取学校分页列表 * 获取学校分页列表
* *
*/ */
export function getschoolpage(data) { export function getSchoolPage(data) {
return request({ return request({
url: '/user/GetSchoolPageList', url: '/user/GetSchoolPageList',
method: 'post', method: 'post',
data: data data
}) })
} }
...@@ -16,10 +16,10 @@ export function getschoolpage(data) { ...@@ -16,10 +16,10 @@ export function getschoolpage(data) {
* 获取学校分页列表 * 获取学校分页列表
* *
*/ */
export function testapi(cmd,msgData) { export function saveSchool(data) {
return request({ return request({
url: cmd, url: '/user/SetSchool',
method: 'post', method: 'post',
data: msgData data
}) })
} }
\ No newline at end of file
...@@ -4,12 +4,14 @@ ...@@ -4,12 +4,14 @@
thead thead
background: rgb(245, 246, 247) 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-size: 12px
font-weight: 400 font-weight: 400
color: rgb(168, 168, 179) color: rgb(168, 168, 179)
line-height: 14px
height: 40px
thead tr:first-child th:first-child thead tr:first-child th:first-child
background-color: rgb(245, 246, 247) background-color: rgb(245, 246, 247)
...@@ -23,3 +25,6 @@ ...@@ -23,3 +25,6 @@
left: 0 left: 0
z-index: 1 z-index: 1
box-shadow: rgba(0, 0, 0, 0.05) 2px 0px 0px box-shadow: rgba(0, 0, 0, 0.05) 2px 0px 0px
td.none-shadow
box-shadow: none
\ No newline at end of file
...@@ -22,3 +22,4 @@ $positive : #43e97b ...@@ -22,3 +22,4 @@ $positive : #43e97b
$negative : #f5576c $negative : #f5576c
$info : #31CCEC $info : #31CCEC
$warning : #F2C037 $warning : #F2C037
$infobg : #eeeeee
\ No newline at end of file
...@@ -12,7 +12,7 @@ ...@@ -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-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> </q-tabs>
<div class="q-pl-lg"> <div class="q-pl-lg">
<q-btn-dropdown flat color="primary"> <q-btn-dropdown flat color="primary" size="xs">
<template v-slot:label> <template v-slot:label>
<q-icon left name="iconfont icon-message" class="text-white" style="font-size:20px;"> <q-icon left name="iconfont icon-message" class="text-white" style="font-size:20px;">
<q-badge color="negative" floating>4</q-badge> <q-badge color="negative" floating>4</q-badge>
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
</q-item> </q-item>
</q-list> </q-list>
</q-btn-dropdown> </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> <template v-slot:label>
<q-avatar size="28px"> <q-avatar size="28px">
<img :src="userInfo.UserIcon"> <img :src="userInfo.UserIcon">
...@@ -166,8 +166,10 @@ ...@@ -166,8 +166,10 @@
</template> </template>
</q-list> </q-list>
</div> </div>
<div class="col" style="background: #f2f4f7;padding:20px"> <div class="col" style="background: #f2f4f7;">
<router-view /> <q-scroll-area class="fit" :thumb-style="thumbStyle" :bar-style="barStyle" visible style="">
<router-view style="margin:20px" />
</q-scroll-area>
</div> </div>
</div> </div>
...@@ -191,7 +193,21 @@ export default { ...@@ -191,7 +193,21 @@ export default {
//essentialLinks: linksData //essentialLinks: linksData
tab: "navs_0", tab: "navs_0",
currentPath: "", 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: { watch: {
......
This diff is collapsed.
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</q-carousel> </q-carousel>
</div> </div>
<div class="right-card"> <div class="right-card">
<div class="company">甲鹤日语教育</div> <div class="company">羚羊教育系统后台登录</div>
<div class="t">登录</div> <div class="t">登录</div>
<div class="field_wrap"> <div class="field_wrap">
<div class="pwd_box"> <div class="pwd_box">
......
...@@ -4,7 +4,6 @@ import user from './modules/user' ...@@ -4,7 +4,6 @@ import user from './modules/user'
import permission from './modules/permission' import permission from './modules/permission'
import app from './modules/app' import app from './modules/app'
import getters from './getters' import getters from './getters'
import school from './modules/school'
Vue.use(Vuex) Vue.use(Vuex)
...@@ -27,8 +26,7 @@ const store = new Vuex.Store({ ...@@ -27,8 +26,7 @@ const store = new Vuex.Store({
modules: { modules: {
user, user,
permission, permission,
app, app
school
}, },
getters, getters,
strict: process.env.DEV strict: process.env.DEV
......
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
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