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
061babff
Commit
061babff
authored
Sep 24, 2020
by
吴冠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报错
parent
f87165b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
24 deletions
+5
-24
index.vue
pages/index/index.vue
+4
-4
inquiry.vue
pages/index/notice/inquiry.vue
+1
-20
No files found.
pages/index/index.vue
View file @
061babff
...
...
@@ -128,13 +128,13 @@ import {getSecond,getCategoryList,getListSite,getListSite1,getListSite2} from '@
},
//添加验证方法
async
getSecond
(){
let
tokenStr
=
window
.
sessionStorage
.
getItem
(
'token'
)
let
tokenStr
=
sessionStorage
.
getItem
(
'token'
)
if
(
tokenStr
){
this
.
showDefault
=
false
sessionStorage
.
setItem
(
"websiteenRequestTokenRequest"
,
10
)
const
{
data
}
=
await
getSecond
()
window
.
sessionStorage
.
setItem
(
"companyName"
,
data
.
companyName
)
this
.
userName
=
window
.
sessionStorage
.
getItem
(
"companyName"
)
sessionStorage
.
setItem
(
"companyName"
,
data
.
companyName
)
this
.
userName
=
sessionStorage
.
getItem
(
"companyName"
)
}
},
loginuser
(){
...
...
@@ -152,7 +152,7 @@ import {getSecond,getCategoryList,getListSite,getListSite1,getListSite2} from '@
},
//添加退出按钮 清空token
checkout
(){
window
.
sessionStorage
.
clear
()
sessionStorage
.
clear
()
this
.
$router
.
push
(
"/login/user"
)
},
},
...
...
pages/index/notice/inquiry.vue
View file @
061babff
...
...
@@ -81,7 +81,7 @@
<
script
>
import
dataTable
from
"@/components/dataTable.vue"
;
import
{
getInquiryList
,
getCityList
,
getenquirySearch
,
getNoticeType
}
from
"@/common/list.js"
;
import
{
getInquiryList
,
getCityList
,
getenquirySearch
}
from
"@/common/list.js"
;
import
{
industryList
,
cityList
}
from
"@/api/common/list.js"
;
import
citySelect
from
"@/components/citySelect.vue"
export
default
{
...
...
@@ -95,7 +95,6 @@ export default {
message
.
currentPage
=
1
this
.
getInquiryList
(
message
);
this
.
industryList
();
this
.
getNoticeType
()
},
data
()
{
return
{
...
...
@@ -160,10 +159,6 @@ export default {
},
methods
:
{
async
getNoticeType
(){
const
{
data
}
=
await
getNoticeType
()
console
.
log
(
data
)
},
//年月日
getTimer
(
dateStr
){
var
date
=
new
Date
(
dateStr
);
...
...
@@ -202,20 +197,6 @@ export default {
async
getInquiryList
(
params
)
{
const
{
data
,
total
}
=
await
getInquiryList
(
params
);
console
.
log
(
data
);
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
if
(
data
[
i
].
auditStatus
===
0
)
{
data
[
i
].
auditStatus
=
"待审核"
;
}
if
(
data
[
i
].
auditStatus
===
1
)
{
data
[
i
].
auditStatus
=
"审核通过"
;
}
if
(
data
[
i
].
auditStatus
===
2
)
{
data
[
i
].
auditStatus
=
"询价完成"
;
if
(
data
[
i
].
auditStatus
===
"询价完成"
)
{
this
.
isshow
=
true
;
}
}
}
this
.
priceList
=
data
;
this
.
total
=
total
;
},
...
...
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