Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-site
Project
Project
Details
Activity
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
张冬
web-site
Commits
dca2f82f
Commit
dca2f82f
authored
Oct 12, 2020
by
吴冠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all
parent
6617d2b2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
21 deletions
+35
-21
index.vue
pages/index/index.vue
+1
-1
news.vue
pages/index/message/news.vue
+20
-9
all.vue
pages/index/notice/all.vue
+14
-11
No files found.
pages/index/index.vue
View file @
dca2f82f
...
...
@@ -48,7 +48,7 @@
</div>
<ul>
<li
v-for=
"(item,index) in dynamic2"
:key=
"index"
v-show=
"index
<5
"
class=
"flex-between list-con"
>
<nuxt-link
tag=
"div"
:to=
"
{name:'index-message-newsdetails',query:{id:(item.id)}}"
"
>
{{
item
.
title
}}
</nuxt-link>
<nuxt-link
tag=
"div"
:to=
"
{name:'index-message-newsdetails',query:{id:(item.id)}}" >
{{
item
.
title
}}
</nuxt-link>
<div
class=
"time"
>
{{
item
.
createTime
.
slice
(
0
,
10
)
}}
</div>
</li>
</ul>
...
...
pages/index/message/news.vue
View file @
dca2f82f
...
...
@@ -12,11 +12,13 @@
</el-col>
</div>
<ul
>
<li
v-for=
"item in messageList"
:key=
"item.id"
>
<nuxt-link
:to=
"
{name:'index-message-newsdetails',query:{id:(item.id)}}" class="flex-between link-style" >
<div
class=
"t2"
>
{{
item
.
title
}}
</div>
<div
class=
"t1"
>
发布时间:
{{
item
.
createTime
}}
</div>
</nuxt-link>
<li
v-for=
"item in messageList"
:key=
"item.id"
@
click=
"clicked"
v-show=
"isList"
>
<!--
<nuxt-link
:to=
"
{name:'index-message-newsdetails',query:{id:(item.id)}}" class="flex-between link-style" >-->
<div
class=
"flex-between link-style"
>
<div
class=
"t2"
>
{{
item
.
title
}}
</div>
<div
class=
"t1"
>
发布时间:
{{
item
.
createTime
}}
</div>
</div>
<!--
</nuxt-link>
-->
</li>
<div
class=
"pagination"
v-if=
"isList"
>
<el-pagination
...
...
@@ -30,7 +32,7 @@
</div>
</ul>
<
!--
<
div
v-for=
"item in messageList"
:key=
"item.id"
class=
"content"
v-show=
"!isList"
>
<div
v-for=
"item in messageList"
:key=
"item.id"
class=
"content"
v-show=
"!isList"
>
<h1>
{{
item
.
title
}}
</h1>
<div
class=
"flex-center pos"
>
<span
style=
"margin-right:20px"
>
发布时间:
{{
item
.
createTime
}}
</span>
...
...
@@ -40,7 +42,7 @@
<div
class=
"flex-center"
style=
"margin-buttom:40px"
>
<el-button
type=
"primary"
@
click=
"returnPrev"
style=
"margin-top:50px"
>
返回
</el-button>
</div>
</div>
-->
</div>
</div>
</
template
>
<
script
>
...
...
@@ -62,9 +64,10 @@ import {
}
else
{
message
.
cateId
=
this
.
activeName
}
/* this.activeName = type
message.cateId = this.activeName */
this
.
getListContent
(
message
)
if
(
this
.
isList
==
false
){
this
.
handleSelect
(
key
,
keyPath
)
}
},
data
()
{
return
{
...
...
@@ -119,6 +122,14 @@ import {
handleCurrentChange
(
val
)
{
this
.
getListContent
(
val
,
this
.
size
)
},
//是否点击右侧列表
clicked
(){
this
.
isList
=
false
},
//返回
returnPrev
(){
window
.
history
.
back
()
}
}
}
</
script
>
...
...
pages/index/notice/all.vue
View file @
dca2f82f
...
...
@@ -28,7 +28,8 @@
<ul
>
<li
v-for=
"item in priceList"
:key=
"item.id"
>
<nuxt-link
:to=
'getLowerText(item.noticeType,item.noticeId)'
>
<!--
<nuxt-link
:to=
"getLowerText(item.noticeType,item.noticeId)"
>
-->
<div
@
click=
"getLowerText(item.noticeType,item.noticeId)"
>
<div
class=
"time"
>
{{
getTimer
(
item
.
createTime
)
}}
</div>
<div
class=
"price-item"
>
<div
class=
"t1"
style=
"font-weight: bold;"
>
...
...
@@ -44,7 +45,8 @@
<div>
招标状态:
<span
class=
"state-red"
>
{{
item
.
projectStatus
}}
</span>
</div>
</div>
</div>
</nuxt-link>
</div>
<!--
</nuxt-link>
-->
</li>
<div
class=
"pagination flex-center"
>
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"getData.currentPage"
:page-size =
"getData.size"
:page-sizes=
"[10, 20, 30, 40]"
...
...
@@ -114,30 +116,32 @@ import {getAllList,getNoticeType} from '@/common/list.js'
methods
:
{
//将类型转为小写
getLowerText
(
noticeType
,
noticeId
){
let
url
=
""
if
(
noticeType
==
'BIDDING'
){
return
`/notice/biddingdetails?id=
${
noticeId
}
`
url
=
`/notice/biddingdetails?id=
${
noticeId
}
`
}
if
(
noticeType
==
'CADIDATE'
){
return
`/notice/cadidatedetails?id=
${
noticeId
}
`
url
=
`/notice/cadidatedetails?id=
${
noticeId
}
`
}
if
(
noticeType
==
'ENQUIRY'
){
return
`/notice/enquirydetails?id=
${
noticeId
}
`
url
=
`/notice/enquirydetails?id=
${
noticeId
}
`
}
if
(
noticeType
==
'ABORTIVE'
){
return
`/notice/abortivedetails?id=
${
noticeId
}
`
url
=
`/notice/abortivedetails?id=
${
noticeId
}
`
}
if
(
noticeType
==
'CHANGE'
){
return
`/notice/changedetails?id=
${
noticeId
}
`
url
=
`/notice/changedetails?id=
${
noticeId
}
`
}
if
(
noticeType
==
'CLARIFIES'
){
return
`/notice/clarifiesdetails?id=
${
noticeId
}
`
url
=
`/notice/clarifiesdetails?id=
${
noticeId
}
`
}
if
(
noticeType
==
'INVITE'
){
return
`/notice/invitedetails?id=
${
noticeId
}
`
url
=
`/notice/invitedetails?id=
${
noticeId
}
`
}
if
(
noticeType
==
'WIN'
){
return
`/notice/windetails?id=
${
noticeId
}
`
url
=
`/notice/windetails?id=
${
noticeId
}
`
}
this
.
$router
.
push
(
url
)
},
async
queryStr
()
{
console
.
log
(
this
.
getData
);
...
...
@@ -207,7 +211,6 @@ import {getAllList,getNoticeType} from '@/common/list.js'
this
.
getAllList
(
mess
)
},
handleCurrentChange
(
val
)
{
/* this.getData.currentPage = val */
let
mess
=
{}
mess
.
size
=
this
.
getData
.
size
mess
.
currentPage
=
val
...
...
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