Commit eb0dc95b authored by 罗超's avatar 罗超

完成校区管理

parent 97a2192c
......@@ -4,11 +4,11 @@ import request from '../../utils/request'
* 获取学校分页列表
*
*/
export function getschoolpage(data) {
export function getSchoolPage(data) {
return request({
url: '/user/GetSchoolPageList',
method: 'post',
data: data
data
})
}
......@@ -16,10 +16,10 @@ export function getschoolpage(data) {
* 获取学校分页列表
*
*/
export function testapi(cmd,msgData) {
export function saveSchool(data) {
return request({
url: cmd,
url: '/user/SetSchool',
method: 'post',
data: msgData
data
})
}
\ No newline at end of file
......@@ -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
......@@ -22,3 +22,4 @@ $positive : #43e97b
$negative : #f5576c
$info : #31CCEC
$warning : #F2C037
$infobg : #eeeeee
\ No newline at end of file
......@@ -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: {
......
This diff is collapsed.
......@@ -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">
......
......@@ -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
......
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