Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
9
912project
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
CRS
912project
Commits
fcf75e5d
提交
fcf75e5d
authored
3月 05, 2020
作者:
CRS
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
new
上级
0165e21f
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
234 行增加
和
34 行删除
+234
-34
header.css
src/components/header/header.css
+21
-4
header.vue
src/components/header/header.vue
+24
-12
line.png
src/components/header/img/line.png
+0
-0
home.vue
src/components/home/home.vue
+35
-0
login.vue
src/components/login/login.vue
+2
-1
sidebar.vue
src/components/sidebar/sidebar.vue
+125
-16
firstHome.vue
src/firstHome.vue
+21
-0
index.js
src/router/index.js
+5
-0
state.js
src/store/state.js
+1
-1
没有找到文件。
src/components/header/header.css
浏览文件 @
fcf75e5d
...
...
@@ -75,13 +75,30 @@
font-size
:
18px
;
line-height
:
40px
;
display
:
inline-block
;
background
:
url("./img/listVal.png")
no-repeat
;
background-size
:
100%
100%
;
text-align
:
center
;
width
:
160px
;
color
:
#fff
;
color
:
rgba
(
71
,
119
,
231
,
0.6
);
}
.headerAll
.listVal
>
span
:hover
{
color
:
#4777e7
;
font-weight
:
bold
;
}
.headerAll
.menuTitle
{
margin
:
0
20px
0
20px
;
display
:
inline-block
;
font-size
:
20px
;
cursor
:
default
;
color
:
#4765A4
;
}
.headerAll
.menuClick
{
color
:
#4777e7
;
font-weight
:
bold
;
}
.headerAll
.listVal
>
span
{
cursor
:
pointer
;
}
.headerAll
.listVal
>
img
{
margin
:
0
20px
0
20px
;
}
.headerAll
.right
.login
{
margin-right
:
25px
;
color
:
#4777e7
;
...
...
src/components/header/header.vue
浏览文件 @
fcf75e5d
...
...
@@ -13,22 +13,27 @@
<img
src=
"./img/toHome.png"
>
<span
class=
"font"
>
综合展现
</span>
</span>
<!--
<span
class=
"user"
>
--
>
<!--
<span
class=
"admin"
>
--
>
<!--
<img
src=
"./img/admin.png"
>
--
>
<!--
<span
class=
"font"
>
管理员
</span>
--
>
<!--
</span>
--
>
<!--
<span
class=
"line"
></span>
--
>
<!--
<span
class=
"logout"
>
退出
</span>
--
>
<!--
</span>
--
>
<span
class=
"user"
>
<span
class=
"user"
v-if=
"this.$store.getters.getUserData.name !== undefined"
>
<span
class=
"admin"
>
<img
src=
"./img/admin.png"
>
<span
class=
"font"
>
{{
this
.
$store
.
getters
.
getUserData
.
name
}}
</span
>
</span
>
<span
class=
"line"
></span
>
<span
class=
"logout"
>
退出
</span
>
</span
>
<span
class=
"user"
v-if=
"this.$store.getters.getUserData.name === undefined"
>
<span
class=
"admin login"
@
click=
"jump('login')"
>
请登录
</span>
</span>
</span>
</div>
<div
style=
"height: 40px;background: #fff;"
>
<div
style=
"height: 40px;background: #fff;"
v-if=
"this.$route.path !== '/firstHome'"
>
<p
class=
"list"
>
<span
v-for=
"item of sidebar"
class=
"listVal"
@
click=
"jump(item.path)"
>
{{
item
.
name
}}
</span>
<span
class=
"menuTitle"
>
{{
sidebar
.
name
}}
</span>
<span
v-for=
"(item,index) of sidebar.menu"
class=
"listVal"
@
click=
"jump(item.path, index)"
>
<span>
{{
item
.
name
}}
</span>
<img
src=
"./img/line.png"
v-show=
"index !== sidebar.menu.length - 1"
>
</span>
</p>
</div>
</div>
...
...
@@ -37,6 +42,7 @@
<
script
>
import
{
mapGetters
}
from
'vuex'
;
import
$
from
'jquery'
;
export
default
{
data
()
{
return
{
...
...
@@ -51,6 +57,7 @@ export default {
setInterval
(
function
()
{
that
.
timeDayFilter
()
},
1000
)
console
.
log
(
this
.
$store
.
getters
.
getUserData
)
},
methods
:
{
// 时间
...
...
@@ -82,8 +89,13 @@ export default {
+
' '
+
h
+
seperator2
+
m
+
seperator2
+
s
;
},
// 跳转
jump
(
path
){
jump
(
path
,
index
){
this
.
$router
.
push
({
name
:
path
});
if
(
index
!==
undefined
)
{
let
va
=
'.listVal:nth-child('
+
(
index
+
1
)
+
')>span'
;
$
(
'.listVal>span'
).
removeClass
(
'menuClick'
)
$
(
va
).
addClass
(
'menuClick'
)
}
}
},
computed
:
{
...
...
src/components/header/img/line.png
0 → 100644
浏览文件 @
fcf75e5d
305 Bytes
src/components/home/home.vue
0 → 100644
浏览文件 @
fcf75e5d
<!--首页-->
<
template
>
<div
class=
"firstHome"
>
<el-row>
<el-col
:span=
"24"
>
test
</el-col>
</el-row>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
}
},
created
()
{
},
mounted
(){
},
methods
:
{
},
components
:
{
},
watch
:
{
}
}
</
script
>
<
style
scoped
>
.firstHome
{
background
:
#ebf0f8
;
}
</
style
>
src/components/login/login.vue
浏览文件 @
fcf75e5d
...
...
@@ -39,8 +39,9 @@ export default {
}
this
.
$server
.
postUserLogin
(
data
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
200
)
{
console
.
log
(
res
.
data
.
data
)
this
.
$store
.
commit
(
'changeUserData'
,
res
.
data
.
data
);
this
.
$router
.
push
({
name
:
'
XCallianc
e'
})
this
.
$router
.
push
({
name
:
'
hom
e'
})
}
else
{
this
.
$message
.
error
(
res
.
data
.
msg
);
}
...
...
src/components/sidebar/sidebar.vue
浏览文件 @
fcf75e5d
...
...
@@ -7,21 +7,51 @@
<span
class=
"icon"
>
<img
src=
"./img/JD.png"
>
</span>
<span
class=
"font"
>
基地建设
管理
</span>
<span
class=
"font"
>
基地建设
</span>
</p>
</div>
<div>
<div
v-if=
"this.$store.getters.getUserData.type === 1"
>
<span
class=
"line"
></span>
<p
class=
"menu"
style=
"margin-top: 0"
>
<span
class=
"icon"
>
<img
src=
"./img/XM.png"
>
</span>
<span
class=
"font"
>
项目建设管理
</span>
<span
class=
"font"
>
项目管理
</span>
</p>
</div>
<div
v-if=
"this.$store.getters.getUserData.type !== 1"
>
<span
class=
"line"
></span>
<p
class=
"menu"
style=
"margin-top: 0"
>
<span
class=
"icon"
>
<img
src=
"./img/XM.png"
>
</span>
<span
class=
"font"
>
我的项目
</span>
</p>
</div>
<div
v-if=
"this.$store.getters.getUserData.type !== 1"
>
<span
class=
"line"
></span>
<p
class=
"menu"
style=
"margin-top: 0"
>
<span
class=
"icon"
>
<img
src=
"./img/JC.png"
>
</span>
<span
class=
"font"
>
国家名录
</span>
</p>
</div>
<div
v-if=
"this.$store.getters.getUserData.type !== 1"
>
<span
class=
"line"
></span>
<p
class=
"menu"
style=
"margin-top: 0"
>
<span
class=
"icon"
>
<img
src=
"./img/JC.png"
>
</span>
<span
class=
"font"
>
市级名录
</span>
</p>
</div>
<div
@
click=
"clickMenu('role',3,'基础资料管理')"
>
<div
@
click=
"clickMenu('role',3,'基础资料管理')"
v-if=
"this.$store.getters.getUserData.type === 1"
>
<span
class=
"line"
></span>
<p
class=
"menu"
style=
"margin-top: 0"
>
<span
class=
"icon"
>
...
...
@@ -31,17 +61,27 @@
</p>
</div>
<div
@
click=
"clickMenu('product',4,'市
准入管理')
"
>
<div
@
click=
"clickMenu('product',4,'市
级准入管理')"
v-if=
"this.$store.getters.getUserData.type === 1
"
>
<span
class=
"line"
></span>
<p
class=
"menu"
style=
"margin-top: 0"
>
<span
class=
"icon"
>
<img
src=
"./img/ZR.png"
>
</span>
<span
class=
"font"
>
市准入管理
</span>
<span
class=
"font"
>
市
级
准入管理
</span>
</p>
</div>
<div
@
click=
"clickMenu('complaint',5,'投诉管理')"
>
<div
@
click=
"clickMenu('complaintManagement',5,'投诉管理')"
v-if=
"this.$store.getters.getUserData.type === 1"
>
<span
class=
"line"
></span>
<p
class=
"menu"
style=
"margin-top: 0"
>
<span
class=
"icon"
>
<img
src=
"./img/KT.png"
>
</span>
<span
class=
"font"
>
投诉管理
</span>
</p>
</div>
<div
@
click=
"clickMenu('complaint',5,'意见建议')"
v-if=
"this.$store.getters.getUserData.type !== 1"
>
<span
class=
"line"
></span>
<p
class=
"menu"
style=
"margin-top: 0"
>
<span
class=
"icon"
>
...
...
@@ -51,6 +91,16 @@
</p>
</div>
<div>
<span
class=
"line"
></span>
<p
class=
"menu"
style=
"margin-top: 0"
>
<span
class=
"icon"
>
<img
src=
"./img/KT.png"
>
</span>
<span
class=
"font"
>
课题攻关
</span>
</p>
</div>
<div
@
click=
"clickMenu('XCalliance',6,'信创联盟')"
>
<span
class=
"line"
></span>
<p
class=
"menu"
style=
"margin-top: 0"
>
...
...
@@ -102,6 +152,14 @@ export default {
{
name
:
'基础资料管理'
,
menuList
:
[
{
name
:
'单位管理'
,
path
:
'company'
},
{
name
:
'产品管理'
,
path
:
''
},
{
name
:
'角色管理'
,
path
:
'role'
...
...
@@ -109,39 +167,86 @@ export default {
{
name
:
'人员管理'
,
path
:
'person'
},
}
]
},
{
name
:
'市准入管理'
,
menuList
:
[
{
name
:
'单位管理'
,
path
:
'
company
'
path
:
''
},
{
name
:
'产品管理'
,
path
:
''
},
{
name
:
'技术路线'
,
path
:
''
}
]
},
{
name
:
'
市准入管理
'
,
name
:
'
国家名录
'
,
menuList
:
[
{
name
:
'
技术路线
'
,
name
:
'
单位名录
'
,
path
:
''
},
{
name
:
'
评价管理
'
,
name
:
'
产品名录
'
,
path
:
''
}
]
},
{
name
:
'投诉管理'
,
name
:
'市级名录'
,
menuList
:
[
{
name
:
'单位管理'
,
path
:
''
},
{
name
:
'产品管理'
,
path
:
''
},
{
name
:
'技术路线'
,
path
:
''
}
]
},
{
name
:
'意见建议'
,
menuList
:
[
{
name
:
'
投诉
列表'
,
name
:
'
意见建议
列表'
,
path
:
'complaint'
}
]
}
},
{
name
:
'投诉管理'
,
menuList
:
[
{
name
:
'投诉管理列表'
,
path
:
'complaintManagement'
}
]
},
{
name
:
'课题攻关'
,
menuList
:
[]
},
{
name
:
'项目管理'
,
menuList
:
[]
},
{
name
:
'我的项目'
,
menuList
:
[]
},
]
}
},
...
...
@@ -164,7 +269,11 @@ export default {
$
(
icon
).
addClass
(
'iconClick'
);
for
(
let
item
of
this
.
menu
)
{
if
(
item
.
name
===
title
)
{
this
.
$store
.
commit
(
'changeSidebar'
,
item
.
menuList
);
let
val
=
{
name
:
title
,
menu
:
item
.
menuList
}
this
.
$store
.
commit
(
'changeSidebar'
,
val
);
}
}
this
.
$router
.
push
({
name
:
name
});
...
...
src/firstHome.vue
0 → 100644
浏览文件 @
fcf75e5d
<
template
>
<div>
<app-header></app-header>
<home></home>
</div>
</
template
>
<
script
>
import
appHeader
from
'./components/header/header'
;
import
home
from
'./components/home/home'
;
export
default
{
data
()
{
return
{
}
},
components
:
{
appHeader
,
home
}
}
</
script
>
src/router/index.js
浏览文件 @
fcf75e5d
...
...
@@ -15,6 +15,11 @@ export default new Router({
name
:
'login'
,
component
:
resolve
=>
require
([
'../components/login/login.vue'
],
resolve
)
},
{
path
:
'/firstHome'
,
name
:
'firstHome'
,
component
:
resolve
=>
require
([
'../firstHome.vue'
],
resolve
)
},
{
path
:
'/home'
,
name
:
'home'
,
...
...
src/store/state.js
浏览文件 @
fcf75e5d
const
state
=
{
sidebar
:
[],
sidebar
:
[],
// 子菜单
userData
:
{}
// 登录用户信息
};
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论