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

报错

parent f87165b8
...@@ -128,13 +128,13 @@ import {getSecond,getCategoryList,getListSite,getListSite1,getListSite2} from '@ ...@@ -128,13 +128,13 @@ import {getSecond,getCategoryList,getListSite,getListSite1,getListSite2} from '@
}, },
//添加验证方法 //添加验证方法
async getSecond(){ async getSecond(){
let tokenStr = window.sessionStorage.getItem('token') let tokenStr = sessionStorage.getItem('token')
if(tokenStr){ if(tokenStr){
this.showDefault = false this.showDefault = false
sessionStorage.setItem("websiteenRequestTokenRequest",10) sessionStorage.setItem("websiteenRequestTokenRequest",10)
const {data} = await getSecond() const {data} = await getSecond()
window.sessionStorage.setItem("companyName",data.companyName) sessionStorage.setItem("companyName",data.companyName)
this.userName = window.sessionStorage.getItem("companyName") this.userName = sessionStorage.getItem("companyName")
} }
}, },
loginuser(){ loginuser(){
...@@ -152,7 +152,7 @@ import {getSecond,getCategoryList,getListSite,getListSite1,getListSite2} from '@ ...@@ -152,7 +152,7 @@ import {getSecond,getCategoryList,getListSite,getListSite1,getListSite2} from '@
}, },
//添加退出按钮 清空token //添加退出按钮 清空token
checkout(){ checkout(){
window.sessionStorage.clear() sessionStorage.clear()
this.$router.push("/login/user") this.$router.push("/login/user")
}, },
}, },
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
<script> <script>
import dataTable from "@/components/dataTable.vue"; 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 { industryList,cityList } from "@/api/common/list.js";
import citySelect from "@/components/citySelect.vue" import citySelect from "@/components/citySelect.vue"
export default { export default {
...@@ -95,7 +95,6 @@ export default { ...@@ -95,7 +95,6 @@ export default {
message.currentPage=1 message.currentPage=1
this.getInquiryList(message); this.getInquiryList(message);
this.industryList(); this.industryList();
this.getNoticeType()
}, },
data() { data() {
return { return {
...@@ -160,10 +159,6 @@ export default { ...@@ -160,10 +159,6 @@ export default {
}, },
methods: { methods: {
async getNoticeType(){
const {data} = await getNoticeType()
console.log(data)
},
//年月日 //年月日
getTimer(dateStr){ getTimer(dateStr){
var date = new Date(dateStr); var date = new Date(dateStr);
...@@ -202,20 +197,6 @@ export default { ...@@ -202,20 +197,6 @@ export default {
async getInquiryList(params) { async getInquiryList(params) {
const { data, total} = await getInquiryList(params); const { data, total} = await getInquiryList(params);
console.log(data); 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.priceList = data;
this.total = total; 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