clay commit : 第一阶段完成
This commit is contained in:
@@ -231,9 +231,9 @@ export default {
|
||||
this.getDicts("article_site_type").then(response => {
|
||||
this.sitetypeOptions = response.data;
|
||||
});
|
||||
this.getDicts("article_type").then(response => {
|
||||
this.articleTypeOptions = response.data;
|
||||
});
|
||||
// this.getDicts("article_type").then(response => {
|
||||
// this.articleTypeOptions = response.data;
|
||||
// });
|
||||
this.getDicts("is_top").then(response => {
|
||||
this.isTopOptions = response.data;
|
||||
});
|
||||
@@ -246,9 +246,9 @@ export default {
|
||||
this.getDicts("article_status").then(response => {
|
||||
this.statusOptions = response.data;
|
||||
});
|
||||
|
||||
getArticleNav().then(res=>{
|
||||
let data = res.data
|
||||
this.articleTypeOptions = data
|
||||
for (let item of data) {
|
||||
if (item.sitetype == 1){
|
||||
this.sistArticleTypeOption.push(item)
|
||||
@@ -256,11 +256,8 @@ export default {
|
||||
this.labArticleTypeOption.push(item)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
console.log(res)
|
||||
})
|
||||
|
||||
// getArticleType().then(res => {
|
||||
// let dictCodes = res.data
|
||||
// let articleList = this.articleTypeOptions
|
||||
@@ -281,22 +278,23 @@ export default {
|
||||
mounted() {
|
||||
},
|
||||
methods: {
|
||||
getSistApprove(dictCode) {
|
||||
this.judgeThumbnail(dictCode)
|
||||
getArticleApprove(dictCode).then(res => {
|
||||
getSistApprove(navId) {
|
||||
this.judgeThumbnail(navId)
|
||||
getArticleApprove(navId).then(res => {
|
||||
this.sistApproveOption = res.data
|
||||
})
|
||||
},
|
||||
getLabApprove(dictCode) {
|
||||
this.judgeThumbnail(dictCode)
|
||||
getArticleApprove(dictCode).then(res => {
|
||||
getLabApprove(navId) {
|
||||
this.judgeThumbnail(navId)
|
||||
getArticleApprove(navId).then(res => {
|
||||
this.labApproveOption = res.data
|
||||
})
|
||||
},
|
||||
judgeThumbnail(dictCode){
|
||||
judgeThumbnail(navId){
|
||||
let articleList = this.articleTypeOptions
|
||||
for (let article of articleList) {
|
||||
if (dictCode === article.dictCode && article.attribute1 == 1){
|
||||
console.log(article.title)
|
||||
if (navId === article.id && article.isThumbnail == 1){
|
||||
this.imgurlShow = true
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user