diff --git a/.env.development b/.env.development index 5882923..9d17ba1 100644 --- a/.env.development +++ b/.env.development @@ -3,8 +3,8 @@ ENV = 'development' # EBTS/开发环境 #VUE_APP_BASE_API = '/dev-api' -#VUE_APP_BASE_API = 'http://localhost:8085/dev-api' -VUE_APP_BASE_API = 'http://sist.swjtu.edu.cn/dev-api' +VUE_APP_BASE_API = 'http://localhost:8085/dev-api' +#VUE_APP_BASE_API = 'http://sist.swjtu.edu.cn/dev-api' SITE_TYPE = 'NEd5n92EMIpyyBslaNqsRgE' #VUE_APP_BASE_API = 'http://sistapi.hchyun.cn/dev-api' diff --git a/src/views/content/components/organization.vue b/src/views/content/components/organization.vue new file mode 100644 index 0000000..4de1f79 --- /dev/null +++ b/src/views/content/components/organization.vue @@ -0,0 +1,13 @@ + + + + + + + diff --git a/src/views/content/index.vue b/src/views/content/index.vue index 2e7cc34..66375a6 100644 --- a/src/views/content/index.vue +++ b/src/views/content/index.vue @@ -103,7 +103,8 @@ - + + @@ -138,7 +139,8 @@ - + + @@ -157,6 +159,7 @@ import {getNode, crumbs, article} from "@/api"; import Introduction from './components/Introduction.vue' import List from './components/list.vue' import DireData from './components/dire_data.vue' +import Organization from './components/organization.vue' import Details from './components/details.vue' import FileList from './components/file_list.vue' import {handleTree} from "@/utils/ebts"; @@ -176,6 +179,7 @@ export default { width: document.documentElement.clientWidth > 992, secondId: null, navId: null, + organizationType:"", navList: [], showIndex: 0, showSecond: true, @@ -364,6 +368,11 @@ export default { } else if (this.type == 1) { this.contextData = res.data } else if (this.type == 3) { + if (res.additional == ""){ + this.organizationType = "1" + }else { + this.organizationType = res.additional + } this.contextData = handleTree(res.data, "id", "pid", null, null) console.log(this.contextData,"this.contextData") } diff --git a/src/views/index/components/news_center_back.vue b/src/views/index/components/news_center_back.vue new file mode 100644 index 0000000..928ced2 --- /dev/null +++ b/src/views/index/components/news_center_back.vue @@ -0,0 +1,235 @@ + + + + + + + + + + + + {{ $t('message.news_ceter') }} + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.title }} + + + + + + + + + + {{ item.enTitle }} + + + + + + + + + + + + + + + + + + + + + + + + {{ news.title }} + + + + + + + + + + + + + + + {{ $t('message.more') }} + + + + + + + + + + + + + diff --git a/src/views/index/components/party_building_activities_back.vue b/src/views/index/components/party_building_activities_back.vue new file mode 100644 index 0000000..4726409 --- /dev/null +++ b/src/views/index/components/party_building_activities_back.vue @@ -0,0 +1,270 @@ + + + + + + + + + + + + + {{ $t('message.party') }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ $t('message.party_education') }} + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.title }} + + + + + + {{ getTime(item.publishTime) }} + + + + + + + + + + + + + {{ $t('message.more') }} + + + + + + + + + + + + + diff --git a/src/views/index/components/scientific_research_trends_back.vue b/src/views/index/components/scientific_research_trends_back.vue new file mode 100644 index 0000000..87bc6c7 --- /dev/null +++ b/src/views/index/components/scientific_research_trends_back.vue @@ -0,0 +1,332 @@ + + + + + + + + + + + + {{ $t('message.research') }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.title }} + + {{ parseTime(item.publishTime) }} + + + + + + + + + + + + + + + + + + {{ $t('message.more') }} + + + + + + + + + {{ $t('message.academic') }} + + + + + + + + + + + + + + + + + + + + + + {{item.title}} + + {{ parseTime(item.publishTime) }} + + + + + + + + + + + + + + + + + + + + {{ $t('message.more') }} + + + + + + + + + + + + diff --git a/src/views/index/components/teaching_student_back.vue b/src/views/index/components/teaching_student_back.vue new file mode 100644 index 0000000..e43e45e --- /dev/null +++ b/src/views/index/components/teaching_student_back.vue @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + {{ $t('message.teaching_work') }} + + + + + + + + + + + + + + + + + + + + + + {{getDay(item.publishTime)}} + + + {{getTime(item.publishTime)}} + + + + + + + {{item.title}} + + + + + + + + + + + + + + + + + + + + + + {{ $t('message.more') }} + + + + + + + + + + + +