Commit 94a9e5cf authored by 吴冠's avatar 吴冠

调试

parent 3d6767ac
...@@ -75,21 +75,21 @@ import {getAllList,getNoticeType} from '@/common/list.js' ...@@ -75,21 +75,21 @@ import {getAllList,getNoticeType} from '@/common/list.js'
}, */ }, */
async asyncData({params}){ async asyncData({params}){
let inputContent = sessionStorage.getItem("content") let inputContent = sessionStorage.getItem("content")
let mes ={ let mes ={
currentPage:1, currentPage:1,
size:10, size:10,
title:inputContent title:inputContent
} }
const res = await industryList(); const res = await industryList();
const {data,total} = await getAllList(mes) const {data,total} = await getAllList(mes)
console.log(data+'------------') console.log(data+'------------')
return { return {
priceList : data, priceList : data,
total : total, total : total,
industryOptions:res industryOptions:res
} }
sessionStorage.removeItem("content") sessionStorage.removeItem("content")
}, },
data() { data() {
return { return {
allList:[], allList:[],
......
...@@ -173,7 +173,7 @@ export default { ...@@ -173,7 +173,7 @@ export default {
dataTable, dataTable,
breadCrumb, breadCrumb,
}, },
/* mounted() { mounted() {
let id = this.$route.query.id; let id = this.$route.query.id;
let message = {} let message = {}
message.currentPage = 1 message.currentPage = 1
...@@ -186,15 +186,15 @@ export default { ...@@ -186,15 +186,15 @@ export default {
} }
let enquiryId = window.location.href.split("?id=")[1] let enquiryId = window.location.href.split("?id=")[1]
sessionStorage.setItem("Id",enquiryId) sessionStorage.setItem("Id",enquiryId)
}, */ },
async asyncData({route}){ /* async asyncData({route}){
let id = window.location.href.split("?id=")[1] let id = $route.query.id
const {data} = await getenquirydetails(id) const {data} = await getenquirydetails(id)
console.log(data+'------------') console.log(data+'------------')
return { return {
formdata : data, formdata : data,
} }
}, }, */
data() { data() {
return { return {
fileList:[], fileList:[],
......
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