diff --git a/front/public/static/config/location.js b/front/public/static/config/location.js index 5699daa0..e342c33f 100644 --- a/front/public/static/config/location.js +++ b/front/public/static/config/location.js @@ -1,8 +1,8 @@ /* * @Author: hisense.wuhongjian * @Date: 2020-07-07 16:03:23 - * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-09-27 16:48:51 + * @LastEditors: hisense.wuhongjian + * @LastEditTime: 2022-08-29 09:55:56 * @Description: 数据资源参数配置 */ // eslint-disable-next-line no-undef @@ -26,22 +26,18 @@ const footerDataList = {} // qingdao if (newLocation !== 'baotou' && newLocation !== 'xihaian') { whoShow.itShowQingDao = true - if (newLocation == 'zhanTingDev' || newLocation == 'dev') { - whoShow.itShowZhanTingDev = true - } - infrastructure.deptName = '青岛市大数据发展管理局' infrastructure.deptId = '1067246875800000066' navListManagement.navList = [ { name: '共享门户', key: 'home' }, { name: '能力集市', key: 'DetailsPageconetent' }, - // { name: '能力云图', key: 'capabilityCloud' }, + { name: '能力云图', key: 'capabilityCloud' }, { name: '能力统计', key: 'abilityStatistics' }, // { name: '开发指南', key: 'developmentGuide' }, - { name: '技术文档', key: 'instructionManual' }, + { name: '新手指南', key: 'instructionManual' }, { name: '需求中心', key: 'demandCenter' }, // { name: '个人中心', key: 'personalCenter' }, - // { name: '区市站点', key: 'mapTest' }, + { name: '区市站点', key: 'mapTest' }, // { name: '后台管理', key: 'houtaiguanli' }, // { name: '典型赋能案例', key: 'assignCase' }, { name: '融合服务', key: 'integrationServices' }, @@ -126,15 +122,12 @@ else if (newLocation === 'baotou') { { name: '能力集市', key: 'DetailsPageconetent' }, { name: '能力云图', key: 'capabilityCloud' }, { name: '能力统计', key: 'abilityStatistics' }, - { name: '技术文档', key: 'instructionManual' }, // { name: '开发指南', key: 'developmentGuide' }, { name: '需求中心', key: 'demandCenter' }, // { name: '个人中心', key: 'personalCenter' }, // { name: '区市站点', key: 'mapTest' }, // { name: '后台管理', key: 'houtaiguanli' }, { name: '赋能案例', key: 'assignCase' }, - { name: '融合服务', key: 'integrationServices' }, - { name: 'CIM专区', key: 'cimSpecialArea' }, ] footerDataList.footerList = { company: { @@ -500,15 +493,12 @@ else if (newLocation === 'xihaian') { { name: '能力集市', key: 'DetailsPageconetent' }, { name: '能力云图', key: 'capabilityCloud' }, { name: '能力统计', key: 'abilityStatistics' }, - // { name: '技术文档', key: 'instructionManual' }, // { name: '开发指南', key: 'developmentGuide' }, { name: '需求中心', key: 'demandCenter' }, // { name: '个人中心', key: 'personalCenter' }, // { name: '区市站点', key: 'mapTest' }, // { name: '后台管理', key: 'houtaiguanli' }, { name: '赋能案例', key: 'assignCase' }, - // { name: '融合服务', key: 'integrationServices' }, - // { name: 'CIM专区', key: 'cimSpecialArea' }, ] footerDataList.footerList = { company: { diff --git a/front/public/static/doc/userbook.docx b/front/public/static/doc/userbook.docx new file mode 100644 index 00000000..7af29aac Binary files /dev/null and b/front/public/static/doc/userbook.docx differ diff --git a/front/src/assets/developmentGuide/download.png b/front/src/assets/developmentGuide/download.png new file mode 100644 index 00000000..110983ee Binary files /dev/null and b/front/src/assets/developmentGuide/download.png differ diff --git a/front/src/router/index.js b/front/src/router/index.js index 4a2076bc..8f3e1d09 100644 --- a/front/src/router/index.js +++ b/front/src/router/index.js @@ -85,7 +85,7 @@ export const constantRoutes = [ { path: '/', component: Layout, - redirect: whoShow.itShowXiHaiAn ? '/DetailsPageconetent' : '/home', + redirect: '/home', meta: { title: '能力管理平台编目', icon: 'apps-line', @@ -495,7 +495,7 @@ export const constantRoutes = [ name: 'instructionManual', component: () => import('@/views/instructionManual/index'), meta: { - title: '技术文档', + title: '新手指南', icon: 'error-warning-line', }, }, diff --git a/front/src/views/home/components/header.vue b/front/src/views/home/components/header.vue index c3719752..b50fc5c5 100644 --- a/front/src/views/home/components/header.vue +++ b/front/src/views/home/components/header.vue @@ -131,44 +131,56 @@ import { getSgcTotal } from '@/api/home' import Cookies from 'js-cookie' import mybus from '@/myplugins/mybus' - import { DETAIL_PAGE_CONTENT_DEFAULT_TAB } from '@/global/GlobalConfig.js' - const store = useStore() const router = useRouter() const route = useRoute() - + // const navListManagement = ref([ + // { name: '共享门户', key: 'home' }, + // { name: '能力集市', key: 'DetailsPageconetent' }, + // { name: '能力云图', key: 'capabilityCloud' }, + // { name: '能力统计', key: 'abilityStatistics' }, + // { name: '开发指南', key: 'developmentGuide' }, + // { name: '需求中心', key: 'demandCenter' }, + // // { name: '个人中心', key: 'personalCenter' }, + // { name: '区市站点', key: 'mapTest' }, + // // { name: '后台管理', key: 'houtaiguanli' }, + // { name: '赋能案例', key: 'assignCase' }, + // ]) const whoShow1 = whoShow const user = ref({ username: store.getters['user/username'], }) + // user.username.value = store.getters(['user/username']) const select = ref(router.currentRoute.value.name) const mynoticeFlag = ref(false) const mynoticeData = ref([]) console.log('navListManagement------------>', navListManagement) + // eslint-disable-next-line no-undef const navList = ref(navListManagement.navList) console.log('navList------------>', navList) const props = defineProps({ showView: { type: String, default: '' }, }) - + // // 获取用户信息 + // getUser().then((res) => { + // user.value = res.data.data + // // console.log('user===============>', user.value) + // }) // 退出登录 const logout = async () => { await store.dispatch('user/logout') - // 移除本地存储查询条件 - localStorage.removeItem('integrationServices') - localStorage.removeItem('DetailsPageconetent') window.sessionStorage.setItem('visits', JSON.stringify([])) // 西海岸不返回登录页 - // if (!whoShow1.itShowXiHaiAn) { - // if (recordRoute) { - // const fullPath = route.fullPath - // router.push(`/login?redirect=${fullPath}`) - // } else { - // router.push('/login') - // } - // } + if (!whoShow1.itShowXiHaiAn) { + if (recordRoute) { + const fullPath = route.fullPath + router.push(`/login?redirect=${fullPath}`) + } else { + router.push('/login') + } + } } // 返回首页 const goToHome = () => { @@ -196,8 +208,7 @@ router.push({ path: '/DetailsPageconetent', query: { - // select: '组件服务', - select: DETAIL_PAGE_CONTENT_DEFAULT_TAB + select: '组件服务', }, }) break @@ -206,7 +217,12 @@ path: '/capabilityCloud', }) break - case '技术文档': + // case '技术文档': + // router.push({ + // path: '/developmentGuide', + // }) + // break + case '新手指南': router.push({ path: '/instructionManual', }) @@ -239,6 +255,10 @@ case '融合服务': router.push({ path: '/integrationServices', + // path: '/DetailsPageconetent', + query: { + select: '融合服务', + }, }) break case 'CIM专区': diff --git a/front/src/views/home/components/searchResultList.vue b/front/src/views/home/components/searchResultList.vue index c18da6ae..881030d5 100644 --- a/front/src/views/home/components/searchResultList.vue +++ b/front/src/views/home/components/searchResultList.vue @@ -1,127 +1,238 @@