Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
4f63bc65
Commit
4f63bc65
authored
Apr 29, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
434bb1c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
39 deletions
+53
-39
notify.vue
src/components/global/notify.vue
+53
-39
No files found.
src/components/global/notify.vue
View file @
4f63bc65
...
...
@@ -40,8 +40,7 @@
</q-avatar>
</q-item-section>
-->
<q-item-section
avatar
>
<q-avatar
:style=
"
{'background-color':'#e1f0ff'}" rounded size="40px"
text-color="negative">
<q-avatar
:style=
"
{'background-color':'#e1f0ff'}" rounded size="40px" text-color="negative">
<inline-svg
:class=
"['svg-icon',`svg-icon-primary`]"
src=
"icons/svg/Shopping/Bag2.svg"
></inline-svg>
</q-avatar>
</q-item-section>
...
...
@@ -55,8 +54,9 @@
<none-data
v-else
></none-data>
</q-tab-panel>
<q-tab-panel
name=
"notify"
class=
"scroll _scrollbar"
>
<q-card
flat
v-for=
"(item,index) in noticeList"
:key=
"index"
class=
"relative-position overflow-hidden q-pa-md text-grey-1 cursor-pointer q-mb-md"
style=
"height:130px"
@
click=
"goNoticeDetail(item)"
>
<q-card
flat
v-for=
"(item,index) in noticeList"
:key=
"index"
class=
"relative-position overflow-hidden q-pa-md text-grey-1 cursor-pointer q-mb-md"
style=
"height:130px"
@
click=
"goNoticeDetail(item)"
>
<div
class=
"gonggao-bg"
>
<img
src=
"../../assets/images/noticeBg.png"
/>
</div>
...
...
@@ -73,7 +73,7 @@
{{
item
.
Title
}}
</div>
<div
class=
"relative-position q-mt-md text-right"
>
编号:
{{
item
.
Number
}}
编号:
{{
item
.
Number
}}
</div>
</q-card>
<div
class=
"notifyLoadMore"
v-if=
"noticeMsg.pageSize
<Count
"
@
click=
"getMoreNotify()"
>
...
...
@@ -106,8 +106,8 @@
type
:
Object
,
default
:
null
},
socektObj
:{
type
:
Array
,
socektObj
:
{
type
:
Array
,
default
:
null
},
},
...
...
@@ -259,19 +259,20 @@
imgCov
:
'http://192.168.20.214:8130/Upload/studentIcon/20201201044129361.png'
,
//通知请求参数
noticeMsg
:{
pageIndex
:
1
,
pageSize
:
5
noticeMsg
:
{
pageIndex
:
1
,
pageSize
:
5
},
Count
:
0
,
noticeList
:[],
socektArr
:[],
Count
:
0
,
noticeList
:
[],
socektArr
:
[],
}
},
created
()
{
this
.
init
();
this
.
getNotify
();
this
.
socektArr
=
this
.
socektObj
;
this
.
goMsgDetail
(
'/course/prepareclassDetails?ClassId=5&ClassPlanId=2898'
);
},
methods
:
{
init
()
{
...
...
@@ -293,7 +294,13 @@
},
undefinedGongneng
(
item
)
{
this
.
$router
.
push
(
"/AssetsShenpi"
)
this
.
$router
.
push
({
path
:
"/AssetsShenpi"
,
query
:{
Id
:
115
,
compType
:
"shenpi"
}})
this
.
$router
.
push
({
path
:
"/AssetsShenpi"
,
query
:
{
Id
:
115
,
compType
:
"shenpi"
}
})
// this.$q.dialog({
// title: '功能提示',
// message: '灰度测试功能,即将在下版本中开启'
...
...
@@ -310,42 +317,47 @@
})
},
//加载更多一次加载一条
getMoreNotify
(){
this
.
noticeMsg
.
pageSize
+=
5
;
getMoreNotify
()
{
this
.
noticeMsg
.
pageSize
+=
5
;
this
.
getNotify
();
},
//跳转详情
goNoticeDetail
(
item
){
var
url
=
window
.
location
.
host
;
let
routeUrl
=
this
.
$router
.
resolve
({
path
:
"/noticeView"
,
query
:
{
NoticeId
:
item
.
Id
}
});
window
.
open
(
routeUrl
.
href
,
'_blank'
);
goNoticeDetail
(
item
)
{
var
url
=
window
.
location
.
host
;
let
routeUrl
=
this
.
$router
.
resolve
({
path
:
"/noticeView"
,
query
:
{
NoticeId
:
item
.
Id
}
});
window
.
open
(
routeUrl
.
href
,
'_blank'
);
},
//跳转链接 新页面打开
goMsgDetail
(
url
){
let
url2
=
'/course/prepareclassDetails?ClassId=5&ClassPlanId=2898'
if
(
url
!=
null
&&
url
.
length
>
0
){
if
(
url
.
indexOf
(
'http://'
)
==-
1
||
url
.
indexOf
(
'https://'
)
==-
1
){
url
=
'http://'
+
url
;
}
else
{
url
=
document
.
domain
+
url2
;
console
.
log
(
url
,
'url'
);
goMsgDetail
(
url
)
{
let
locationName
=
window
.
location
.
hostname
;
var
host
=
window
.
location
.
host
;
var
newurl
=
""
if
(
url
!=
null
&&
url
.
length
>
0
)
{
if
(
url
.
indexOf
(
'http://'
)
==
-
1
||
url
.
indexOf
(
'https://'
)
==
-
1
)
{
newurl
=
"http://"
+
locationName
+
(
host
!=
80
?
":"
+
host
:
""
)
+
"/#"
+
url
;
}
else
{
newurl
=
url
}
window
.
open
(
url
,
"_blank"
);
}
console
.
log
(
"newurl"
,
newurl
);
//window.open(url, "_blank");
},
//看过后删除
readMsgLog
(
Id
,
index
)
{
readMsgLog
(
Id
,
index
)
{
let
msg
=
{
Ids
:[]
Ids
:
[]
}
msg
.
Ids
.
push
(
Id
);
BeatchReadMsgLog
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
socektArr
.
splice
(
index
,
1
);
this
.
socektArr
.
splice
(
index
,
1
);
}
})
}
...
...
@@ -388,10 +400,12 @@
margin-top
:
-8%
;
margin-left
:
-5%
;
}
.notifyLoadMore
{
text-align
:
right
;
.notifyLoadMore
{
text-align
:
right
;
cursor
:
pointer
;
font-size
:
12px
;
color
:
#2961FE
;
font-size
:
12px
;
color
:
#2961FE
;
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment