Commit 061babff authored by 吴冠's avatar 吴冠

报错

parent f87165b8
......@@ -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")
},
},
......
......@@ -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;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment