siteId统一

master
yujialong 2 years ago
parent 7d09f592f2
commit ca6c5d6426
  1. 7
      src/mixins/article/index.js
  2. 2
      src/mixins/overview/index.js
  3. 6
      src/pages/article/activity.vue
  4. 6
      src/pages/article/index.vue
  5. 12
      src/pages/column/index.vue
  6. 4
      src/pages/column/result.vue
  7. 2
      src/pages/publication/monograph.vue
  8. 2
      src/pages/publication/patent.vue
  9. 5
      src/pages/publication/thesis.vue

@ -1,6 +1,5 @@
import Setting from '@/setting' import Setting from '@/setting'
import Util from '@/libs/util' import Util from '@/libs/util'
import { mapState } from 'vuex'
export default { export default {
data() { data() {
return { return {
@ -8,9 +7,9 @@ export default {
} }
}, },
computed: { computed: {
...mapState('content', [ site() {
'site' return this.$route.query.siteId || this.$store.state.content.site
]) }
}, },
mounted() { mounted() {

@ -27,7 +27,7 @@ export default {
if (i == 1) path = '/overviewDevHistory?id=214' if (i == 1) path = '/overviewDevHistory?id=214'
if (i == 2) path = '/overviewTrailer?id=215' if (i == 2) path = '/overviewTrailer?id=215'
if (i == 3) path = '/overviewLocation?id=216' if (i == 3) path = '/overviewLocation?id=216'
if (i == 4) path = '/overviewSetup?id=217' if (i == 4) path = '/overviewSetup?id=229'
this.$router.push(path + '&siteId=3') this.$router.push(path + '&siteId=3')
}, },
} }

@ -125,7 +125,7 @@ export default {
// //
getColumn() { getColumn() {
this.$post(this.api.listWithTreeMenuVisible, { this.$post(this.api.listWithTreeMenuVisible, {
siteId: this.$route.query.siteId || this.$store.state.content.site, siteId: this.site,
columnName: '', columnName: '',
templateId: '', templateId: '',
typeId : '', typeId : '',
@ -135,7 +135,7 @@ export default {
this.getInfo() this.getInfo()
}).catch(err => {}) }).catch(err => {})
this.$post(`${this.api.hotContent}?siteId=${this.$route.query.siteId || this.$store.state.content.site}`).then(({ data }) => { this.$post(`${this.api.hotContent}?siteId=${this.site}`).then(({ data }) => {
this.hots = Util.removeTag(data) this.hots = Util.removeTag(data)
}).catch(err => {}) }).catch(err => {})
}, },
@ -144,7 +144,7 @@ export default {
this.$post(this.api.newlyPublishedArticles, { this.$post(this.api.newlyPublishedArticles, {
pageNum: 1, pageNum: 1,
pageSize: 5, pageSize: 5,
siteId: this.$route.query.siteId || this.$store.state.content.site siteId: this.site
}).then(({ data }) => { }).then(({ data }) => {
this.news = Util.removeTag(data.records) this.news = Util.removeTag(data.records)
}).catch(res => {}) }).catch(res => {})

@ -140,7 +140,7 @@ export default {
// //
getColumn() { getColumn() {
this.$post(this.api.listWithTreeMenuVisible, { this.$post(this.api.listWithTreeMenuVisible, {
siteId: this.$route.query.siteId || this.$store.state.content.site, siteId: this.site,
columnName: '', columnName: '',
templateId: '', templateId: '',
typeId : '', typeId : '',
@ -150,7 +150,7 @@ export default {
this.getInfo() this.getInfo()
}).catch(err => {}) }).catch(err => {})
this.$post(`${this.api.hotContent}?siteId=${this.$route.query.siteId || this.$store.state.content.site}`).then(({ data }) => { this.$post(`${this.api.hotContent}?siteId=${this.site}`).then(({ data }) => {
this.hots = Util.removeTag(data) this.hots = Util.removeTag(data)
}).catch(err => {}) }).catch(err => {})
}, },
@ -159,7 +159,7 @@ export default {
this.$post(this.api.newlyPublishedArticles, { this.$post(this.api.newlyPublishedArticles, {
pageNum: 1, pageNum: 1,
pageSize: 5, pageSize: 5,
siteId: this.$route.query.siteId || this.$store.state.content.site siteId: this.site
}).then(({ data }) => { }).then(({ data }) => {
this.news = Util.removeTag(data.records) this.news = Util.removeTag(data.records)
}).catch(res => {}) }).catch(res => {})

@ -260,7 +260,7 @@ export default {
}, },
// //
getLabel() { getLabel() {
this.$post(`${this.api.queryLabel}?siteId=${this.$route.query.siteId || this.site}`) this.$post(`${this.api.queryLabel}?siteId=${this.site}`)
.then(({ data }) => { .then(({ data }) => {
this.labels = data; this.labels = data;
// placeholder // placeholder
@ -334,7 +334,7 @@ export default {
// //
getColumn() { getColumn() {
this.$post(this.api.listWithTreeMenuVisible, { this.$post(this.api.listWithTreeMenuVisible, {
siteId: this.$route.query.siteId || this.$store.state.content.site, siteId: this.site,
columnName: '', columnName: '',
templateId: '', templateId: '',
typeId: '', typeId: '',
@ -345,7 +345,7 @@ export default {
}) })
.catch((err) => { }); .catch((err) => { });
this.$post(`${this.api.hotContent}?siteId=${this.$route.query.siteId || this.$store.state.content.site}`) this.$post(`${this.api.hotContent}?siteId=${this.site}`)
.then(({ data }) => { .then(({ data }) => {
this.hots = Util.removeTag(data); this.hots = Util.removeTag(data);
}) })
@ -356,7 +356,7 @@ export default {
this.$post(this.api.newlyPublishedArticles, { this.$post(this.api.newlyPublishedArticles, {
pageNum: 1, pageNum: 1,
pageSize: 5, pageSize: 5,
siteId: this.$route.query.siteId || this.$store.state.content.site siteId: this.site
}) })
.then(({ data }) => { .then(({ data }) => {
this.news = Util.removeTag(data.records); this.news = Util.removeTag(data.records);
@ -375,7 +375,7 @@ export default {
if (left && to.level === 1 && (typeId === 2 || typeId === 3)) return false; if (left && to.level === 1 && (typeId === 2 || typeId === 3)) return false;
// //
if (to.templateId === 8) { if (to.templateId === 8) {
this.$router.replace(`/publish?id=${this.id}&siteId=${this.$route.query.siteId || this.site}`); this.$router.replace(`/publish?id=${this.id}&siteId=${this.site}`);
return; return;
} }
// //
@ -427,7 +427,7 @@ export default {
if (this.lableId.includes(e.id)) labelName.push(e.labelName); if (this.lableId.includes(e.id)) labelName.push(e.labelName);
}); });
this.$post(this.api.newlyPublishedArticles, { this.$post(this.api.newlyPublishedArticles, {
siteId: this.$route.query.siteId || this.site, siteId: this.site,
columnIds, columnIds,
pageNum: this.page, pageNum: this.page,
pageSize: this.info.pageSize, pageSize: this.info.pageSize,

@ -61,9 +61,7 @@ export default {
getArticle() { getArticle() {
this.setKeyword('') this.setKeyword('')
this.$post(this.api.newlyPublishedArticles, { this.$post(this.api.newlyPublishedArticles, {
siteId: this.site,
siteId: this.$route.query.siteId || this.site,
pageNum: 1, pageNum: 1,
pageSize: 1000, pageSize: 1000,
title: this.title title: this.title

@ -99,7 +99,7 @@ export default {
.forms { .forms {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 30px; padding: 15px;
margin-bottom: 20px; margin-bottom: 20px;
background-color: #fff; background-color: #fff;
.item { .item {

@ -117,7 +117,7 @@ export default {
.forms { .forms {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 30px; padding: 15px;
margin-bottom: 20px; margin-bottom: 20px;
background-color: #fff; background-color: #fff;
.item { .item {

@ -22,7 +22,7 @@
</div> </div>
<ul class="list"> <ul class="list">
<li v-for="(item, i) in articles" :key="i"> <li v-for="(item, i) in articles" :key="i" @click="$parent.toArtice(item)">
<h6>{{ item.title }}</h6> <h6>{{ item.title }}</h6>
<p class="meta">作者: {{ item.author }}</p> <p class="meta">作者: {{ item.author }}</p>
<p class="meta">期刊名称: {{ item.periodicalName }}</p> <p class="meta">期刊名称: {{ item.periodicalName }}</p>
@ -92,7 +92,7 @@ export default {
.forms { .forms {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 30px; padding: 15px;
margin-bottom: 20px; margin-bottom: 20px;
background-color: #fff; background-color: #fff;
.item { .item {
@ -146,6 +146,7 @@ export default {
padding: 30px; padding: 30px;
margin-bottom: 15px; margin-bottom: 15px;
background-color: #fff; background-color: #fff;
cursor: pointer;
} }
h6 { h6 {
margin-bottom: 10px; margin-bottom: 10px;

Loading…
Cancel
Save