Merge remote-tracking branch 'origin/master'

master
王家东 2 weeks ago
commit 5f87667d38
  1. 3
      jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java
  2. 1
      jeecgboot-vue3/src/views/demo/main-home/components/NewsList/index.vue
  3. 1
      jeecgboot-vue3/src/views/demo/main-home/components/articleManagement/index.vue
  4. 1
      jeecgboot-vue3/src/views/demo/main-home/components/columnManagement/index.vue
  5. 9
      jeecgboot-vue3/src/views/demo/main-home/components/homePage/index.vue
  6. 10
      jeecgboot-vue3/src/views/demo/main-home/components/newsInfo/index.vue

@ -211,7 +211,8 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
if (oConvertUtils.isEmpty(sysDepart.getParentId())) {
sysDepart.setOrgCategory("1");
} else {
sysDepart.setOrgCategory("2");
//sysDepart.setOrgCategory("2");原来设置为2,暂时设置3
sysDepart.setOrgCategory("3");
}
}
this.save(sysDepart);

@ -100,6 +100,7 @@
path: '/main-home/newsInfo',
query: {
id: item.id,
type:1
},
});
};

@ -90,6 +90,7 @@
path: '/main-home/newsInfo',
query: {
id: item.id,
type:3
},
})
}

@ -91,6 +91,7 @@
path: '/main-home/newsInfo',
query: {
id: item.id,
type:2
},
})
}

@ -41,7 +41,7 @@
</div>
<div class="inner">
<ul>
<li v-for="item in noticeList" :key="item.id" @click="goToNewInfo(item)">{{ item.title }}</li>
<li v-for="item in noticeList" :key="item.id" @click="goToNewInfo(item,2)">{{ item.title }}</li>
</ul>
</div>
</div>
@ -57,7 +57,7 @@
</div>
<div class="inner">
<ul>
<li v-for="item in newList" :key="item.id" @click="goToNewInfo(item)">{{ item.title }}</li>
<li v-for="item in newList" :key="item.id" @click="goToNewInfo(item,1)">{{ item.title }}</li>
</ul>
</div>
</div>
@ -68,7 +68,7 @@
</div>
<div class="inner">
<ul>
<li v-for="item in gzdtList" :key="item.id" @click="goToNewInfo(item)">{{ item.title }}</li>
<li v-for="item in gzdtList" :key="item.id" @click="goToNewInfo(item,3)">{{ item.title }}</li>
</ul>
</div>
</div>
@ -150,11 +150,12 @@
const goToNewList = () => {
router.push('/main-home/newsList');
};
const goToNewInfo = (item) => {
const goToNewInfo = (item,type=1) => {
router.push({
path: '/main-home/newsInfo',
query: {
id: item.id,
type:type
},
});
};

@ -28,6 +28,8 @@
import {getindexarticleitem} from '@/api/mainHome'
import { useRoute,useRouter } from 'vue-router';
import { ref } from 'vue';
import { useSettingStore } from '/@/store/modules/setting';
const settingStore = useSettingStore();
const route = useRoute()
const router = useRouter()
const id = route.query.id
@ -43,6 +45,14 @@ const getInfo = async () => {
info.value = res[0]
}
getInfo()
if(Object.keys(route.query).length > 1 && route.query.type == 2) {
console.log('设置');
settingStore.serIndex(5)
}else if(Object.keys(route.query).length > 1 && route.query.type == 3) {
settingStore.serIndex(6)
}
</script>
<style scoped lang="less">

Loading…
Cancel
Save