|
|
@ -673,6 +673,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 左边栏目 |
|
|
|
// 左边栏目 |
|
|
|
getLeftColumn () { |
|
|
|
getLeftColumn () { |
|
|
|
|
|
|
|
this.getAllId = [] |
|
|
|
this.$post(`${this.api.oneLevelChecksThemAll}?id=${this.id}&isSort=1&siteId=${this.site}`) |
|
|
|
this.$post(`${this.api.oneLevelChecksThemAll}?id=${this.id}&isSort=1&siteId=${this.site}`) |
|
|
|
.then(({ data }) => { |
|
|
|
.then(({ data }) => { |
|
|
|
const fromColumn = this.$route.query.column; // 有column标识的,说明是通过点击左侧导航跳转过来的,这种情况只查询该栏目下的文章 |
|
|
|
const fromColumn = this.$route.query.column; // 有column标识的,说明是通过点击左侧导航跳转过来的,这种情况只查询该栏目下的文章 |
|
|
@ -750,7 +751,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 点击栏目回调 |
|
|
|
// 点击栏目回调 |
|
|
|
columnClick (to, left) { |
|
|
|
columnClick (to, left) { |
|
|
|
console.log("🚀 ~ file: index.vue:749 ~ columnClick ~ to, left:", to, left) |
|
|
|
this.page = 1 |
|
|
|
const { typeId } = to; |
|
|
|
const { typeId } = to; |
|
|
|
// 如果是左边的栏目,并且是第一级,并且长页/链接,则不作反应 |
|
|
|
// 如果是左边的栏目,并且是第一级,并且长页/链接,则不作反应 |
|
|
|
if (left && to.level === 1 && (typeId === 2 || typeId === 3)) return false; |
|
|
|
if (left && to.level === 1 && (typeId === 2 || typeId === 3)) return false; |
|
|
@ -869,7 +870,7 @@ export default { |
|
|
|
if (this.isFilter) { |
|
|
|
if (this.isFilter) { |
|
|
|
this.getIds(this.columns, id); |
|
|
|
this.getIds(this.columns, id); |
|
|
|
} else if (this.columns.length) { |
|
|
|
} else if (this.columns.length) { |
|
|
|
id = [this.$refs.leftColumn.getCurrentKey()]; |
|
|
|
id = this.getAllId.length ? this.getAllId : [this.$refs.leftColumn.getCurrentKey()]; |
|
|
|
} |
|
|
|
} |
|
|
|
this.getArticle(id); |
|
|
|
this.getArticle(id); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -1186,10 +1187,10 @@ export default { |
|
|
|
margin-left: 10px; |
|
|
|
margin-left: 10px; |
|
|
|
li { |
|
|
|
li { |
|
|
|
flex-direction: column; |
|
|
|
flex-direction: column; |
|
|
|
width: calc(25% - 30px); |
|
|
|
width: calc(33% - 30px); |
|
|
|
margin-right: 30px; |
|
|
|
margin-right: 30px; |
|
|
|
background-color: transparent; |
|
|
|
background-color: transparent; |
|
|
|
&:nth-child(4n) { |
|
|
|
&:nth-child(3n) { |
|
|
|
margin-right: 0; |
|
|
|
margin-right: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1364,6 +1365,7 @@ export default { |
|
|
|
/deep/.des { |
|
|
|
/deep/.des { |
|
|
|
a { |
|
|
|
a { |
|
|
|
color: rgb(0, 0, 238); |
|
|
|
color: rgb(0, 0, 238); |
|
|
|
|
|
|
|
word-wrap: break-word; |
|
|
|
} |
|
|
|
} |
|
|
|
img { |
|
|
|
img { |
|
|
|
max-width: 100%; |
|
|
|
max-width: 100%; |
|
|
|