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
e6a0e16e
Commit
e6a0e16e
authored
Apr 15, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
160839a4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
16 deletions
+18
-16
notice-form.vue
src/components/course/notice-form.vue
+6
-11
notify.vue
src/components/global/notify.vue
+2
-3
Work.vue
src/pages/Work.vue
+1
-1
noticeView.vue
src/pages/noticeView.vue
+9
-1
No files found.
src/components/course/notice-form.vue
View file @
e6a0e16e
...
...
@@ -106,9 +106,11 @@
<div
class=
"notice_dix"
style=
"margin-top:20px;"
>
<div>
<div
class=
"noticeFile"
v-if=
"dataList[0].fileList.length>0"
>
<span
v-for=
"item in dataList[0].fileList"
style=
"cursor:pointer;"
@
click=
"downFiles(item)"
>
<i
class=
"iconfont icon-Download"
style=
"margin-right:5px;"
></i>
{{item.FileName}}
</span>
<span
v-for=
"item in dataList[0].fileList"
style=
"cursor:pointer;"
>
<a
:href=
"item.FileUrl"
style=
"color:#2961FE;text-decoration:none;"
target=
"_blank"
>
<i
class=
"iconfont icon-Download"
style=
"margin-right:5px;"
></i>
{{item.FileName}}
</a>
</span>
</div>
</div>
<div
style=
"margin-top:5px;"
>
...
...
@@ -126,7 +128,7 @@
@
click=
"goDetail()"
/>
</div>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"
取消
"
flat
color=
"grey-10"
style=
"font-weight:400 !important"
@
click=
"closeSaveForm"
/>
<q-btn
label=
"
关闭
"
flat
color=
"grey-10"
style=
"font-weight:400 !important"
@
click=
"closeSaveForm"
/>
</q-card-actions>
</q-card>
</q-dialog>
...
...
@@ -177,13 +179,6 @@
});
window
.
open
(
routeUrl
.
href
,
'_blank'
);
},
//下载文件
downFiles
(
item
){
const
link
=
document
.
createElement
(
'a'
)
link
.
setAttribute
(
"download"
,
item
.
FileName
)
//下载的文件名
link
.
href
=
item
.
FileUrl
//文件url
link
.
click
()
},
//往后翻页
goAfter
(){
this
.
$emit
(
'fathergoAfter'
);
...
...
src/components/global/notify.vue
View file @
e6a0e16e
...
...
@@ -241,7 +241,7 @@
//通知请求参数
noticeMsg
:{
pageIndex
:
1
,
pageSize
:
1
pageSize
:
5
},
Count
:
0
,
noticeList
:[]
...
...
@@ -281,7 +281,6 @@
getNotify
()
{
GetMyNoticePageList
(
this
.
noticeMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
console
.
log
(
res
,
'notice数据'
);
this
.
noticeList
=
res
.
Data
.
PageData
;
this
.
Count
=
res
.
Data
.
Count
;
}
...
...
@@ -289,7 +288,7 @@
},
//加载更多一次加载一条
getMoreNotify
(){
this
.
noticeMsg
.
pageSize
+
+
;
this
.
noticeMsg
.
pageSize
+
=
5
;
this
.
getNotify
();
},
//跳转详情
...
...
src/pages/Work.vue
View file @
e6a0e16e
...
...
@@ -152,7 +152,7 @@
m
=
m
<
10
?
(
'0'
+
m
)
:
m
;
var
d
=
date
.
getDate
();
d
=
d
<
10
?
(
'0'
+
d
)
:
d
;
var
notifyData
=
y
+
'-'
+
m
+
'-'
+
d
;
var
notifyData
=
y
+
'-'
+
m
+
'-'
+
d
+
' '
+
date
.
getHours
()
+
':'
+
date
.
getMinutes
()
+
':'
+
date
.
getSeconds
()
;
localStorage
.
setItem
(
"notifyTime"
,
notifyData
);
}
})
...
...
src/pages/noticeView.vue
View file @
e6a0e16e
...
...
@@ -89,6 +89,14 @@
<div
class=
"notiveViewInner"
v-html=
"dataList.Content"
>
</div>
<div
style=
"margin-top:20px;"
>
<div
class=
"noticeFile"
v-if=
"dataList.fileList.length>0"
>
<span
v-for=
"item in dataList.fileList"
style=
"cursor:pointer;"
>
<a
:href=
"item.FileUrl"
style=
"color:#2961FE;text-decoration:none;"
target=
"_blank"
>
<i
class=
"iconfont icon-Download"
style=
"margin-right:5px;"
></i>
{{item.FileName}}
</a>
</span>
</div>
</div>
</div>
</div>
</template>
...
...
@@ -134,7 +142,7 @@
SetOperation
()
{
SetNoticeOperation
(
this
.
noticeMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
}
})
}
...
...
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