Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
ccacf40c
提交
ccacf40c
编写于
5月 08, 2019
作者:
tao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no message
上级
3b53b89d
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
16 行增加
和
6 行删除
+16
-6
App.vue
src/App.vue
+8
-1
slidebar.vue
src/views/layout/slidebar.vue
+8
-5
未找到文件。
src/App.vue
浏览文件 @
ccacf40c
<
template
>
<div
v-if=
"$route.name!='loginPage'"
>
<v-header
:userName=
"userName"
:portrait=
"portrait"
:idType=
"idType"
></v-header>
<v-slidebar
:authList=
"authList"
:tokenValue=
"token"
:
idType=
"i
dType"
></v-slidebar>
<v-slidebar
:authList=
"authList"
:tokenValue=
"token"
:
storageIdType=
"storageI
dType"
></v-slidebar>
<el-container>
<div
class=
"content"
id=
"body-content"
>
<transition
name=
"router-fade"
mode=
"out-in"
>
...
...
@@ -40,6 +40,7 @@ export default {
data
()
{
return
{
idType
:
0
,
storageIdType
:
0
,
token
:
''
,
userName
:
''
,
portrait
:
''
,
...
...
@@ -131,6 +132,8 @@ export default {
localStorage
.
setItem
(
'storageIdType'
,
res
.
data
.
idType
)
localStorage
.
setItem
(
'storageMaster'
,
res
.
data
.
masterAdministratorFlag
)
vm
.
idType
=
res
.
data
.
idType
vm
.
storageIdType
=
res
.
data
.
idType
console
.
log
(
vm
.
storageIdType
)
vm
.
userName
=
res
.
data
.
name
vm
.
portrait
=
res
.
data
.
imageUrl
vm
.
authList
=
res
.
data
.
auth
...
...
@@ -147,6 +150,10 @@ export default {
vm
.
getUserAuth
(
val
)
}
},
storageIdType
(
val
){
vm
.
storageIdType
=
val
console
.
log
(
'app'
,
val
)
}
}
}
</
script
>
...
...
src/views/layout/slidebar.vue
浏览文件 @
ccacf40c
...
...
@@ -27,7 +27,7 @@ import { isNotEmptyUtils } from '../../utils/utils'
let
vm
=
null
export
default
{
props
:
{
i
dType
:
[
String
,
Number
],
storageI
dType
:
[
String
,
Number
],
tokenValue
:
{
type
:
String
},
...
...
@@ -95,8 +95,9 @@ export default {
vm
.
items
[
2
].
subs
[
0
].
index
=
'blank'
}
},
idType
(
val
){
const
followSider
=
(
val
==
'2'
)
?
{
storageIdType
(
val
){
console
.
log
(
'watch->'
,
val
)
const
followSider
=
(
val
==
2
)
?
{
title
:
'随访管理'
,
icon
:
'el-icon-edit-outline'
,
index
:
'followup'
,
...
...
@@ -118,8 +119,10 @@ export default {
}
]
}
:
{};
this
.
items
.
push
(
followSider
);
this
.
$forceUpdate
();
vm
.
items
.
push
(
followSider
);
console
.
log
(
this
.
items
)
vm
.
$forceUpdate
();
}
},
methods
:
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录