Commit 3af00e40 authored by 吴冠's avatar 吴冠

所有公告指向

parent 3a13e7f8
...@@ -14,6 +14,83 @@ export default { ...@@ -14,6 +14,83 @@ export default {
name:'招投标' name:'招投标'
} }
}, },
mounted(){
let path = this.$route.path;
console.log(path+'------------------')
switch (path) {
case '/':
this.name = "招投标";
break;
case '/notice/inquiry':
this.name = "询价工告";
break;
case "/notice/bid":
this.name = "招标公告";
break;
case "/notice/biding":
this.name = "中标公告";
break;
case "/notice/all":
this.name = "招投标";
break;
case "/notice/cadidate":
this.name = "中标候选人公示";
break;
case "/notice/change":
this.name = "变更公告";
break;
case "/notice/clarifies":
this.name = "澄清公告";
break;
case "/notice/abortive":
this.name = "流标公告";
break;
default:
this.name = "信息公告"
}
},
watch: {
$route() {
this.getindex();
}
},
methods:{
getindex() {
let path = this.$route.path;
console.log(path+'------------------')
switch (path) {
case '/':
this.name = "招投标";
break;
case '/notice/inquiry':
this.name = "询价工告";
break;
case "/notice/bid":
this.name = "招标公告";
break;
case "/notice/biding":
this.name = "中标公告";
break;
case "/notice/all":
this.name = "招投标";
break;
case "/notice/cadidate":
this.name = "中标候选人公示";
break;
case "/notice/change":
this.name = "变更公告";
break;
case "/notice/clarifies":
this.name = "澄清公告";
break;
case "/notice/abortive":
this.name = "流标公告";
break;
default:
this.name = "信息公告"
}
}
}
} }
</script> </script>
......
...@@ -22,8 +22,6 @@ ...@@ -22,8 +22,6 @@
</template> </template>
<script> <script>
import {getAllList} from '@/common/list.js'
/* import inDex from '@/pages/index.vue' */
export default { export default {
methods:{ methods:{
toSearch(){ toSearch(){
...@@ -32,7 +30,7 @@ import {getAllList} from '@/common/list.js' ...@@ -32,7 +30,7 @@ import {getAllList} from '@/common/list.js'
this.$router.push('/notice/all') this.$router.push('/notice/all')
this.input = null this.input = null
}else{ }else{
location.reload() /* location.reload() */
console.log("请在下面进行查询") console.log("请在下面进行查询")
this.input = null this.input = null
} }
......
...@@ -56,15 +56,21 @@ import { ...@@ -56,15 +56,21 @@ import {
message.currentPage = 1 message.currentPage = 1
message.size = 10 message.size = 10
let type = window.location.href.split("?id=")[1] let type = window.location.href.split("?id=")[1]
this.activeName = type if(type){
message.cateId = this.activeName this.activeName = type
message.cateId = this.activeName
}else{
message.cateId = this.activeName
}
/* this.activeName = type
message.cateId = this.activeName */
this.getListContent(message) this.getListContent(message)
}, },
data() { data() {
return { return {
contentList:'', contentList:'',
isList:true, isList:true,
activeName: '123', activeName: '124',
conText:"", conText:"",
activeIndex: '', activeIndex: '',
size:10, size:10,
......
...@@ -64,11 +64,11 @@ import {getAllList,getNoticeType} from '@/common/list.js' ...@@ -64,11 +64,11 @@ import {getAllList,getNoticeType} from '@/common/list.js'
citySelect citySelect
}, },
mounted(){ mounted(){
let b = sessionStorage.getItem("content") let inputContent = sessionStorage.getItem("content")
let message = {} let message = {}
message.size = 10 message.size = 10
message.currentPage = 1 message.currentPage = 1
message.title = b message.title = inputContent
this.industryList() this.industryList()
this.getAllList(message) this.getAllList(message)
this.getNoticeType() this.getNoticeType()
......
...@@ -7,8 +7,8 @@ import requestUrl from '../utils/Domain.js' ...@@ -7,8 +7,8 @@ import requestUrl from '../utils/Domain.js'
// 创建axios实例 // 创建axios实例
const service = axios.create({ const service = axios.create({
/* baseURL:'http://60.205.251.80:8082/apis', */ baseURL:'http://60.205.251.80:8082/apis',
baseURL: 'http://192.168.3.35:8085/apis', /* baseURL: 'http://192.168.3.35:8085/apis', */
timeout: 35000 // 请求超时时间 timeout: 35000 // 请求超时时间
}) })
......
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