粒子研究院前台前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.5 KiB

export default {
data() {
return {
tabs: ['产业光源概况', '大事记', '机构设置', '地理位置'],
}
},
methods: {
// 获取文章详情
getInfo() {
// 预览/详情
this.$post(`${this.api[this.preview ? 'getRedisCache' : 'findPage']}?columnId=${this.id}`).then(({ data }) => {
if (data.length) {
// state:已发布(1)则取theEditedJson,草稿(0)则取jsonBeforeEditing
const json = JSON.parse(this.preview ?
data :
data[data.length - 1][data[data.length - 1].state ? 'theEditedJson' : 'jsonBeforeEditing'])
this.modules = json
console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json)
}
}).catch(err => {})
},
// tab回调
tabChange(i) {
this.active = i
// 跳转到固定的长页,这里的id不能变
let path = '/overviewIntro?id=220'
if (i == 1) path = '/overviewDevHistory?id=214'
if (i == 2) path = '/overviewTrailer?id=215'
if (i == 3) path = '/overviewLocation?id=216'
this.$router.push(path + '&siteId=3')
},
2 years ago
tabChangeNewPage(i) {
this.active = i
// 跳转到固定的长页,这里的id不能变
let path = '/estate/survey?id=258'
if (i == 1) path = '/estate/event?id=259'
if (i == 2) path = '/estate/orgSetup?id=270'
if (i == 3) path = '/estate/location?id=261'
this.$router.push(path + '&siteId=3')
}
}
};