|
@@ -65,7 +65,7 @@ export default {
|
|
|
},
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
- ...mapActions(['jobfairOperation', 'postTalksInfo', 'jobinfoOperation', 'getBugInfo', 'siteOperation']),
|
|
|
+ ...mapActions(['jobfairOperation', 'postTalksInfo', 'jobinfoOperation', 'getBugInfo', 'siteOperation', 'newsOperation']),
|
|
|
async getSite() {
|
|
|
let site = sessionStorage.getItem('site');
|
|
|
if (site) {
|
|
@@ -78,11 +78,13 @@ export default {
|
|
|
if (`${result.errcode}` === `0`) {
|
|
|
sessionStorage.setItem('site', JSON.stringify(result.data));
|
|
|
this.$set(this, `site`, result.data);
|
|
|
+ console.log(site);
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
async search() {
|
|
|
console.log(this.$site);
|
|
|
+
|
|
|
// 1直接拿着参数发送请求
|
|
|
let result = await this.postTalksInfo({ type: 'list', data: { schid: this.$site } });
|
|
|
if (`${result.errcode}` === '0') {
|
|
@@ -112,6 +114,14 @@ export default {
|
|
|
} else {
|
|
|
this.$message.error(result.errmsg ? result.errmsg : 'error');
|
|
|
}
|
|
|
+ result = await this.newsOperation({ type: 'list', data: { site: this.$site, limit: this.limit, skip: 0 } });
|
|
|
+ if (`${result.errcode}` === '0') {
|
|
|
+ //给this=>vue的实例下在中的list属性,赋予result。data的值
|
|
|
+ this.$set(this, 'newList', result.data);
|
|
|
+ } else {
|
|
|
+ this.$message.error(result.errmsg ? result.errmsg : 'error');
|
|
|
+ }
|
|
|
+
|
|
|
// result = await this.getBugInfo({ data: { skip: 0, limit: this.$limit } });
|
|
|
// if (`${result.errcode}` === '0') {
|
|
|
// //给this=>vue的实例下在中的list属性,赋予result。data的值
|