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
2ecb71f2
Commit
2ecb71f2
authored
Oct 14, 2020
by
吴冠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分页优化
parent
70b3106b
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
36 additions
and
38 deletions
+36
-38
homeinput.vue
components/homeinput.vue
+1
-1
abortive.vue
pages/index/notice/abortive.vue
+3
-3
all.vue
pages/index/notice/all.vue
+8
-6
bid.vue
pages/index/notice/bid.vue
+5
-11
biding.vue
pages/index/notice/biding.vue
+3
-3
cadidate.vue
pages/index/notice/cadidate.vue
+3
-3
change.vue
pages/index/notice/change.vue
+3
-3
clarifies.vue
pages/index/notice/clarifies.vue
+3
-3
inquiry.vue
pages/index/notice/inquiry.vue
+5
-3
request.js
utils/request.js
+2
-2
No files found.
components/homeinput.vue
View file @
2ecb71f2
...
...
@@ -26,7 +26,7 @@ import Cookies from "js-cookie"
export
default
{
methods
:{
toSearch
(){
Cookies
.
set
(
"
c
ontent"
,
this
.
input
)
Cookies
.
set
(
"
inputC
ontent"
,
this
.
input
)
Cookies
.
set
(
"contentStatus"
,
1
)
if
(
window
.
location
.
pathname
!==
"/notice/all"
){
this
.
$router
.
push
(
'/notice/all'
)
...
...
pages/index/notice/abortive.vue
View file @
2ecb71f2
...
...
@@ -175,13 +175,13 @@ import {getErrorList} from '@/common/list.js'
handleSizeChange
(
val
)
{
let
mess
=
{}
mess
.
size
=
val
mess
.
currentPage
=
this
.
getData
.
currentPage
mess
.
noticeType
=
"ABORTIVE"
this
.
getErrorList
(
mess
)
},
handleCurrentChange
(
val
)
{
/* this.getData.currentPage = val */
let
mess
=
{}
mess
.
size
=
this
.
getData
.
size
mess
.
noticeType
=
"ABORTIVE"
mess
.
currentPage
=
val
this
.
getErrorList
(
mess
);
//获取当前页
...
...
@@ -265,7 +265,7 @@ import {getErrorList} from '@/common/list.js'
}
.pagination
{
position
:
absolute
;
bottom
:
-
1
%
;
bottom
:
-
2
%
;
left
:
55%
;
transform
:
translateX
(
-50%
);
}
...
...
pages/index/notice/all.vue
View file @
2ecb71f2
...
...
@@ -75,21 +75,25 @@ import Cookies from 'js-cookie'
Cookies.remove("content")
}, */
async
asyncData
({
params
}){
let
inputContent
=
Cookies
.
get
(
"content"
)
let
inputContent
=
Cookies
.
get
(
"inputContent"
)
console
.
log
(
inputContent
+
'-----------------+++++++++++++++++'
)
let
mes
=
{
currentPage
:
1
,
size
:
10
,
title
:
inputContent
}
/* if(inputContent!=''){
mes.title = inputContent
} */
const
res
=
await
industryList
();
const
{
data
,
total
}
=
await
getAllList
(
mes
)
console
.
log
(
data
+
'------------'
)
Cookies
.
remove
(
"inputContent"
)
return
{
priceList
:
data
,
total
:
total
,
industryOptions
:
res
}
Cookies
.
remove
(
"content"
)
},
data
()
{
return
{
...
...
@@ -193,7 +197,7 @@ import Cookies from 'js-cookie'
if
(
contentStatus
==
'1'
){
if
(
total
!=
'0'
){
console
.
log
(
111111111111111
)
/* this.$message.success */
alert
(
"查询成功!"
)
/* this.$message.success */
}
else
{
console
.
log
(
111111111111111111111
)
this
.
$message
.
error
(
"请输入正确的公告名称!"
)
...
...
@@ -219,12 +223,10 @@ import Cookies from 'js-cookie'
handleSizeChange
(
val
)
{
let
mess
=
{}
mess
.
size
=
val
mess
.
currentPage
=
this
.
getData
.
currentPage
this
.
getAllList
(
mess
)
},
handleCurrentChange
(
val
)
{
let
mess
=
{}
mess
.
size
=
this
.
getData
.
size
mess
.
currentPage
=
val
this
.
getAllList
(
mess
);
//获取当前页
...
...
@@ -308,7 +310,7 @@ import Cookies from 'js-cookie'
}
.pagination
{
position
:
absolute
;
bottom
:
-
1
%
;
bottom
:
-
2
%
;
left
:
55%
;
transform
:
translateX
(
-50%
);
}
...
...
pages/index/notice/bid.vue
View file @
2ecb71f2
...
...
@@ -180,21 +180,15 @@ import citySelect from "@/components/citySelect.vue";
handleSizeChange
(
val
)
{
let
mess
=
{}
mess
.
size
=
val
mess
.
currentPage
=
this
.
getData
.
currentPage
console
.
log
(
mess
.
size
)
console
.
log
(
mess
.
currentPage
)
const
{
data
}
=
this
.
getBidingList
(
mess
)
console
.
log
(
data
+
"++++++++++++++++++++++++"
)
mess
.
noticeType
=
"BIDDING"
this
.
getBidingList
(
mess
)
},
handleCurrentChange
(
val
)
{
/* this.getData.currentPage = val */
let
mess
=
{}
mess
.
size
=
this
.
getData
.
size
mess
.
currentPage
=
val
console
.
log
(
mess
.
size
)
console
.
log
(
mess
.
currentPage
)
const
{
data
}
=
this
.
getBidingList
(
mess
)
console
.
log
(
data
+
"++++++++++++++++++++++++"
)
mess
.
noticeType
=
"BIDDING"
this
.
getBidingList
(
mess
)
//获取当前页
},
dealDisabledDate
(
time
)
{
...
...
@@ -276,7 +270,7 @@ import citySelect from "@/components/citySelect.vue";
}
.pagination
{
position
:
absolute
;
bottom
:
-
1
%
;
bottom
:
-
2
%
;
left
:
55%
;
transform
:
translateX
(
-50%
);
}
...
...
pages/index/notice/biding.vue
View file @
2ecb71f2
...
...
@@ -234,13 +234,13 @@ export default {
handleSizeChange
(
val
)
{
let
mess
=
{}
mess
.
size
=
val
mess
.
currentPage
=
this
.
getData
.
currentPage
mess
.
noticeType
=
"WIN"
this
.
getWinList
(
mess
)
},
handleCurrentChange
(
val
)
{
/* this.getData.currentPage = val */
let
mess
=
{}
mess
.
size
=
this
.
getData
.
size
mess
.
noticeType
=
"WIN"
mess
.
currentPage
=
val
this
.
getWinList
(
mess
);
//获取当前页
...
...
@@ -322,7 +322,7 @@ export default {
}
.pagination
{
position
:
absolute
;
bottom
:
-
1
%
;
bottom
:
-
2
%
;
left
:
55%
;
transform
:
translateX
(
-50%
);
}
...
...
pages/index/notice/cadidate.vue
View file @
2ecb71f2
...
...
@@ -177,13 +177,13 @@ import {getCadidateList} from '@/common/list.js'
handleSizeChange
(
val
)
{
let
mess
=
{}
mess
.
size
=
val
mess
.
currentPage
=
this
.
getData
.
currentPage
mess
.
noticeType
=
"CADIDATE"
this
.
getCadidateList
(
mess
)
},
handleCurrentChange
(
val
)
{
/* this.getData.currentPage = val */
let
mess
=
{}
mess
.
size
=
this
.
getData
.
size
mess
.
noticeType
=
"CADIDATE"
mess
.
currentPage
=
val
this
.
getCadidateList
(
mess
);
//获取当前页
...
...
@@ -267,7 +267,7 @@ import {getCadidateList} from '@/common/list.js'
}
.pagination
{
position
:
absolute
;
bottom
:
-
1
%
;
bottom
:
-
2
%
;
left
:
55%
;
transform
:
translateX
(
-50%
);
}
...
...
pages/index/notice/change.vue
View file @
2ecb71f2
...
...
@@ -177,13 +177,13 @@ import {getChangeList} from '@/common/list.js'
handleSizeChange
(
val
)
{
let
mess
=
{}
mess
.
size
=
val
mess
.
currentPage
=
this
.
getData
.
currentPage
mess
.
noticeType
=
"CHANGE"
this
.
getChangeList
(
mess
)
},
handleCurrentChange
(
val
)
{
/* this.getData.currentPage = val */
let
mess
=
{}
mess
.
size
=
this
.
getData
.
size
mess
.
noticeType
=
"CHANGE"
mess
.
currentPage
=
val
this
.
getChangeList
(
mess
);
//获取当前页
...
...
@@ -267,7 +267,7 @@ import {getChangeList} from '@/common/list.js'
}
.pagination
{
position
:
absolute
;
bottom
:
-
1
%
;
bottom
:
-
2
%
;
left
:
55%
;
transform
:
translateX
(
-50%
);
}
...
...
pages/index/notice/clarifies.vue
View file @
2ecb71f2
...
...
@@ -175,13 +175,13 @@ import {getClerList} from '@/common/list.js'
handleSizeChange
(
val
)
{
let
mess
=
{}
mess
.
size
=
val
mess
.
currentPage
=
this
.
getData
.
currentPage
mess
.
noticeType
=
"CLARIFIES"
this
.
getErrorList
(
mess
)
},
handleCurrentChange
(
val
)
{
/* this.getData.currentPage = val */
let
mess
=
{}
mess
.
size
=
this
.
getData
.
size
mess
.
noticeType
=
"CLARIFIES"
mess
.
currentPage
=
val
this
.
getErrorList
(
mess
);
//获取当前页
...
...
@@ -265,7 +265,7 @@ import {getClerList} from '@/common/list.js'
}
.pagination
{
position
:
absolute
;
bottom
:
-
1
%
;
bottom
:
-
2
%
;
left
:
55%
;
transform
:
translateX
(
-50%
);
}
...
...
pages/index/notice/inquiry.vue
View file @
2ecb71f2
...
...
@@ -231,7 +231,8 @@ export default {
handleSizeChange
(
val
)
{
let
mess
=
{}
mess
.
size
=
val
mess
.
currentPage
=
this
.
getData
.
currentPage
mess
.
noticeType
=
"ENQUIRY"
/* mess.currentPage = this.getData.currentPage */
this
.
getInquiryList
(
mess
)
/* this.getInquiryList(val,this.getData.currentPage) */
...
...
@@ -239,7 +240,8 @@ export default {
handleCurrentChange
(
val
)
{
/* this.getData.currentPage = val */
let
mess
=
{}
mess
.
size
=
this
.
getData
.
size
mess
.
noticeType
=
"ENQUIRY"
/* mess.size = this.getData.size */
mess
.
currentPage
=
val
this
.
getInquiryList
(
mess
);
/* this.getInquiryList(this.getData.size,val) */
...
...
@@ -257,7 +259,7 @@ export default {
<
style
scoped
>
.pagination
{
position
:
absolute
;
bottom
:
-
1
%
;
bottom
:
-
2
%
;
left
:
55%
;
transform
:
translateX
(
-50%
);
}
...
...
utils/request.js
View file @
2ecb71f2
...
...
@@ -15,10 +15,10 @@ const service = axios.create({
// request拦截器
service
.
interceptors
.
request
.
use
(
config
=>
{
let
token
=
Cookies
.
get
(
"token"
)
/*
let token=Cookies.get("token")
if(token||token!=="undefined"){
config.headers['token']=token;
}
}
*/
// if (store.getters.token) {
// let test = config.data;
// if(test){
...
...
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