Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-consultation
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-consultation
提交
35a61bb2
提交
35a61bb2
编写于
3月 06, 2019
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加消息提示
上级
51b75b93
变更
7
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
259 行增加
和
180 行删除
+259
-180
App.vue
src/App.vue
+20
-1
common.scss
src/style/common.scss
+18
-0
index.js
src/utils/index.js
+30
-0
create-component.vue
src/views/education/create-component.vue
+177
-172
item-component.vue
src/views/education/item-component.vue
+6
-5
home.vue
src/views/home.vue
+6
-1
slidebar.vue
src/views/layout/slidebar.vue
+2
-1
未找到文件。
src/App.vue
浏览文件 @
35a61bb2
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
<
script
>
<
script
>
import
VHeader
from
'./views/layout/header.vue'
import
VHeader
from
'./views/layout/header.vue'
import
VSlidebar
from
'./views/layout/slidebar.vue'
import
VSlidebar
from
'./views/layout/slidebar.vue'
let
vm
=
null
export
default
{
export
default
{
components
:{
components
:{
VHeader
,
VHeader
,
...
@@ -29,6 +30,24 @@
...
@@ -29,6 +30,24 @@
return
{
return
{
}
}
},
created
()
{
vm
=
this
},
mounted
()
{
setInterval
(
function
(){
vm
.
pushMessage
()
},
60000
)
},
methods
:
{
// 实时消息推送
pushMessage
()
{
vm
.
$notify
({
title
:
'警告'
,
message
:
'这是一条警告的提示消息'
,
type
:
'warning'
});
}
}
}
}
}
...
...
src/style/common.scss
浏览文件 @
35a61bb2
...
@@ -120,6 +120,19 @@ html,body{
...
@@ -120,6 +120,19 @@ html,body{
.animation_opactiy
{
.animation_opactiy
{
animation
:
backOpacity
2s
ease-in-out
infinite
;
animation
:
backOpacity
2s
ease-in-out
infinite
;
}
}
// 屏幕适配
@media
screen
and
(
min-width
:
1240px
)
and
(
max-width
:
1900px
){
.screenSet
{
width
:
163vh
!
important
;
height
:
70vh
!
important
;
}
}
@media
screen
and
(
min-width
:
1900px
){
.screenSet
{
width
:
167vh
!
important
;
height
:
77vh
!
important
;
}
}
.word-size
{
.word-size
{
font-size
:
12px
;
font-size
:
12px
;
...
@@ -149,4 +162,9 @@ html,body{
...
@@ -149,4 +162,9 @@ html,body{
//下拉框
//下拉框
.el-dropdown-menu
.el-popper
{
.el-dropdown-menu
.el-popper
{
top
:
48px
;
top
:
48px
;
}
// 消息推送
.el-notification.right
{
top
:
130px
!
important
;
}
}
\ No newline at end of file
src/utils/index.js
浏览文件 @
35a61bb2
...
@@ -42,6 +42,36 @@ function getUrlParmByCode(paramList) {
...
@@ -42,6 +42,36 @@ function getUrlParmByCode(paramList) {
return
''
return
''
}
}
// 计算高度
export
function
resizeHeight
(
cMinusHeight
=
152
,
iMinuxHeight
=
210
,
refHeightId
=
'sidebarWrapperId'
,
containerHeightId
=
'appContainerId'
,
innerHeightId
=
'elTableId'
){
if
(
!
p_getElm
(
refHeightId
)
||
!
p_getElm
(
containerHeightId
)
||
!
p_getElm
(
innerHeightId
))
{
// window.onresize = null
logger
.
warn
(
'No certain dom id!!!'
);
}
let
containerHeight
=
p_getElm
(
refHeightId
).
getBoundingClientRect
().
height
-
50
p_getElm
(
containerHeightId
).
style
.
height
=
containerHeight
-
cMinusHeight
+
'px'
p_getElm
(
innerHeightId
).
style
.
height
=
containerHeight
-
iMinuxHeight
+
'px'
if
(
p_getElm
(
'elTableIdInner'
)){
p_getElm
(
'elTableIdInner'
).
style
.
height
=
containerHeight
-
iMinuxHeight
+
'px'
}
window
.
onresize
=
function
()
{
containerHeight
=
p_getElm
(
refHeightId
).
getBoundingClientRect
().
height
-
50
p_getElm
(
containerHeightId
).
style
.
height
=
containerHeight
-
cMinusHeight
+
'px'
p_getElm
(
innerHeightId
).
style
.
height
=
containerHeight
-
iMinuxHeight
+
'px'
if
(
p_getElm
(
'elTableIdInner'
))
{
p_getElm
(
'elTableIdInner'
).
style
.
height
=
containerHeight
-
iMinuxHeight
+
'px'
}
}
}
function
p_getElm
(
elmId
)
{
return
document
.
getElementById
(
elmId
)
}
export
function
deepCopy
(
obj
)
{
export
function
deepCopy
(
obj
)
{
var
result
=
Array
.
isArray
(
obj
)
?
[]
:
{};
var
result
=
Array
.
isArray
(
obj
)
?
[]
:
{};
for
(
var
key
in
obj
)
{
for
(
var
key
in
obj
)
{
...
...
src/views/education/create-component.vue
浏览文件 @
35a61bb2
此差异已折叠。
点击以展开。
src/views/education/item-component.vue
浏览文件 @
35a61bb2
...
@@ -4,16 +4,16 @@
...
@@ -4,16 +4,16 @@
:curmbFirst=
"curmbFirst"
:curmbFirst=
"curmbFirst"
:curmbSecond=
"curmbSecond"
>
:curmbSecond=
"curmbSecond"
>
</bread-crumb>
</bread-crumb>
<div
class=
"component-content"
>
<div
class=
"component-content
screenSet
"
>
<div
class=
"search-title"
>
查询条件
</div>
<div
class=
"search-title"
>
查询条件
</div>
<el-row
:gutter=
"30"
class=
"row"
type=
"flex"
style=
"margin-top: 10px;"
>
<el-row
:gutter=
"30"
class=
"row"
type=
"flex"
style=
"margin-top: 10px;"
>
<el-form
ref=
"serchForm"
:model=
"searchParam"
label-width=
"75px"
style=
"width:100%;"
>
<el-form
ref=
"serchForm"
:model=
"searchParam"
label-width=
"75px"
style=
"width:100%;"
>
<el-col
:span=
"
10
"
>
<el-col
:span=
"
6
"
>
<el-form-item
label=
"组件名称:"
>
<el-form-item
label=
"组件名称:"
>
<el-input
v-model=
"searchParam.name"
size=
"mini"
placeholder=
"请输入组件名称"
></el-input>
<el-input
v-model=
"searchParam.name"
size=
"mini"
placeholder=
"请输入组件名称"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"
10
"
>
<el-col
:span=
"
5
"
>
<el-form-item
label=
"发布状态:"
>
<el-form-item
label=
"发布状态:"
>
<el-select
v-model=
"searchParam.status"
size=
"mini"
placeholder=
"请选择发布状态"
>
<el-select
v-model=
"searchParam.status"
size=
"mini"
placeholder=
"请选择发布状态"
>
<el-option
<el-option
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"3"
style=
"padding:0;text-align:right;padding-right:15px;"
>
<el-col
:span=
"
1
3"
style=
"padding:0;text-align:right;padding-right:15px;"
>
<el-button
type=
"primary"
size=
"small"
>
查询
</el-button>
<el-button
type=
"primary"
size=
"small"
>
查询
</el-button>
<el-button
type=
"default"
size=
"small"
style=
"margin-left:0;"
>
重置
</el-button>
<el-button
type=
"default"
size=
"small"
style=
"margin-left:0;"
>
重置
</el-button>
</el-col>
</el-col>
...
@@ -125,8 +125,9 @@ export default {
...
@@ -125,8 +125,9 @@ export default {
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.item-component-wrap
{
.item-component-wrap
{
.component-content
{
.component-content
{
margin-top
:
50px
;
padding
:
10px
;
padding
:
10px
;
background
:
#fff
;
margin
:
84px
20px
20px
;
.search-title
{
.search-title
{
padding
:
10px
12px
;
padding
:
10px
12px
;
font-size
:
12px
;
font-size
:
12px
;
...
...
src/views/home.vue
浏览文件 @
35a61bb2
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</el-col>
</el-col>
<el-col
class=
"message"
:span=
"24"
>
<el-col
class=
"message"
:span=
"24"
>
<div
class=
"message-title"
>
系统消息
<span>
今日消息:3条
</span></div>
<div
class=
"message-title"
>
系统消息
<span>
今日消息:3条
</span></div>
<div
class=
"message-info"
>
<div
class=
"message-info"
v-if=
"messageList"
>
<div
class=
"message-item"
v-for=
"(item,index) in messageList"
:key=
"index"
>
<div
class=
"message-item"
v-for=
"(item,index) in messageList"
:key=
"index"
>
<div
class=
"text-top"
>
<div
class=
"text-top"
>
<i
class=
"el-icon-error"
v-if=
"item.type == 2"
style=
"color:#FA5555"
></i>
<i
class=
"el-icon-error"
v-if=
"item.type == 2"
style=
"color:#FA5555"
></i>
...
@@ -33,6 +33,9 @@
...
@@ -33,6 +33,9 @@
<div
class=
"text-bottom"
>
{{
item
.
info
}}
</div>
<div
class=
"text-bottom"
>
{{
item
.
info
}}
</div>
</div>
</div>
</div>
</div>
<div
v-else
>
</div>
</el-col>
</el-col>
</el-row>
</el-row>
</div>
</div>
...
@@ -40,6 +43,8 @@
...
@@ -40,6 +43,8 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
BreadCrumb
from
'../components/breadcrumb.vue'
import
BreadCrumb
from
'../components/breadcrumb.vue'
import
{
setTimeout
,
setInterval
}
from
'timers'
;
let
vm
=
null
export
default
{
export
default
{
components
:
{
components
:
{
BreadCrumb
BreadCrumb
...
...
src/views/layout/slidebar.vue
浏览文件 @
35a61bb2
...
@@ -83,10 +83,11 @@ export default {
...
@@ -83,10 +83,11 @@ export default {
left
:
0
;
left
:
0
;
top
:
64px
;
top
:
64px
;
bottom
:
0
;
bottom
:
0
;
width
:
25
6
px
;
width
:
25
5
px
;
background
:
#06232C
;
background
:
#06232C
;
.el-menu
{
.el-menu
{
background
:
#06232C
;
background
:
#06232C
;
border-right
:
none
;
.sub-icon
{
.sub-icon
{
font-size
:
12px
;
font-size
:
12px
;
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录