|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
|
<div id="request">
|
|
|
- <el-row v-if="user !== 'master'">
|
|
|
+ <el-row>
|
|
|
+ <!-- v-if="user !== 'master'" -->
|
|
|
<pages-one
|
|
|
v-if="!loading"
|
|
|
:topInfo="site"
|
|
@@ -24,7 +25,7 @@
|
|
|
</template>
|
|
|
</pages-one>
|
|
|
</el-row>
|
|
|
- <el-row v-else>
|
|
|
+ <!-- <el-row v-else>
|
|
|
<master
|
|
|
v-if="!loading"
|
|
|
:topinfo="site"
|
|
@@ -56,8 +57,7 @@
|
|
|
<self-calendars></self-calendars>
|
|
|
</template>
|
|
|
</master>
|
|
|
- <!-- :companylist="companylist" -->
|
|
|
- </el-row>
|
|
|
+ </el-row> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -79,8 +79,8 @@ export default {
|
|
|
pagesOne,
|
|
|
topMenu,
|
|
|
selfCalendar,
|
|
|
- selfCalendars,
|
|
|
- master,
|
|
|
+ // selfCalendars,
|
|
|
+ // master,
|
|
|
},
|
|
|
data: () => ({
|
|
|
user: 'master',
|
|
@@ -106,7 +106,13 @@ export default {
|
|
|
//master数据
|
|
|
master: { ...masterInfo },
|
|
|
corpList: [],
|
|
|
+ siteTitle: '',
|
|
|
}),
|
|
|
+ metaInfo() {
|
|
|
+ return {
|
|
|
+ title: this.siteTitle ? this.siteTitle : '就业信息网',
|
|
|
+ };
|
|
|
+ },
|
|
|
async created() {
|
|
|
await this.checkUser();
|
|
|
await this.getSite();
|
|
@@ -150,10 +156,12 @@ export default {
|
|
|
this.getfloating(item);
|
|
|
}
|
|
|
this.$set(this, `site`, result.data);
|
|
|
+ this.$set(this, `siteTitle`, this.site.name);
|
|
|
}
|
|
|
} else {
|
|
|
// console.log(JSON.parse(site));
|
|
|
this.$set(this, `site`, JSON.parse(site));
|
|
|
+ this.$set(this, `siteTitle`, this.site.name);
|
|
|
let arr = this.site;
|
|
|
if (arr.custom) {
|
|
|
let item = arr.custom;
|
|
@@ -211,7 +219,7 @@ export default {
|
|
|
//item为模块信息,拿着模块信息去查该模块下有什么栏目
|
|
|
if (`${item.is_use}` === '0') {
|
|
|
item = await this.getColumn(item);
|
|
|
- this.makeList(item);
|
|
|
+ await this.makeList(item);
|
|
|
} // console.log(item);
|
|
|
}
|
|
|
}
|
|
@@ -242,14 +250,14 @@ export default {
|
|
|
data.parent_id = news_type === '1' ? item.id : item.content_id;
|
|
|
let res = await this.newsOperation({ type: 'list', data: data });
|
|
|
if (`${res.errcode}` === '0') {
|
|
|
- res.data.forEach(async val => {
|
|
|
+ for (const val of res.data) {
|
|
|
let result = await this.newsOperation({ type: 'search', data: { id: val.id } });
|
|
|
if (`${result.errcode}` === '0') {
|
|
|
val.content = result.data.content;
|
|
|
} else {
|
|
|
this.$message.error(result.errmsg ? result.errmsg : 'error');
|
|
|
}
|
|
|
- });
|
|
|
+ }
|
|
|
return res.data;
|
|
|
} else {
|
|
|
this.$message.error(res.errmsg ? res.errmsg : 'error');
|