Compare commits

...

2 Commits

  1. BIN
      src/assets/images/en-white.png
  2. BIN
      src/assets/images/en.png
  3. 21
      src/components/breadcrumb/index.vue
  4. 29
      src/i18n/index.js
  5. 18
      src/layouts/header/index.vue
  6. 14
      src/main.js
  7. 2
      src/pages/about/index.vue
  8. 2
      src/pages/column/index.vue
  9. 2
      src/pages/home/index.vue
  10. 8
      src/pages/news/index.vue
  11. 17
      src/pages/publication/index.vue
  12. 4
      src/pages/publication/patent.vue
  13. 4
      src/pages/publication/thesis.vue
  14. 8
      src/pages/publish/show.vue
  15. 2
      src/pages/sfel/index.vue
  16. 2
      src/pages/talent/index.vue
  17. 4
      src/setting.js

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

@ -7,7 +7,7 @@
v-if="i != data.length - 1" v-if="i != data.length - 1"
:key="i" :key="i"
:to="{ path: item.path || '/column', query: item.query }"> :to="{ path: item.path || '/column', query: item.query }">
{{ item.name }} {{ item.name | i18nName($i18n)}}
</el-breadcrumb-item> </el-breadcrumb-item>
<el-breadcrumb-item <el-breadcrumb-item
v-else v-else
@ -29,6 +29,25 @@ export default {
}, },
methods: { methods: {
},
filters: {
i18nName(name,type) {
console.log('name=>',name)
console.log('type=>',type)
switch (name) {
case '专利':
return type.t('column.patent')
case '专著':
return type.t('column.monograph')
case '论文':
return type.t('column.paper')
case '科学研究':
return type.t('column.scientificResearch')
default:
break;
}
}
} }
}; };
</script> </script>

@ -42,7 +42,7 @@ export const messages = {
patentClassification: '专利类别', patentClassification: '专利类别',
applicationDate: '申请日期', applicationDate: '申请日期',
selectDate: '选择日期', selectDate: '选择日期',
pleaseEnterPatentOfficer: '请输入专利名称/发明人姓名/申请号', pleaseEnterPatentOfficer: '请输入专利名称/发明人姓名/申请号',
patentName: '专利名称', patentName: '专利名称',
patentClassification: '专利类别', patentClassification: '专利类别',
ApplicationNumber: '申请号', ApplicationNumber: '申请号',
@ -57,7 +57,11 @@ export const messages = {
authorPersion: '编写人员', authorPersion: '编写人员',
seeMore: '查看更多', seeMore: '查看更多',
inventionpatent: '发明专利', inventionpatent: '发明专利',
practicalAppearance: '实用外观' practicalAppearance: '实用外观',
patent:'专利',
monograph: '专著',
paper: '论文',
scientificResearch: '科学研究'
} }
}, },
'en': { 'en': {
@ -89,22 +93,21 @@ export const messages = {
author: 'Author', author: 'Author',
quote: 'Quote', quote: 'Quote',
abstract: 'Abstract', abstract: 'Abstract',
publicationName: 'PublicationName', publicationName: 'JournalName',
yearOfPublication: 'YearOfPublication', yearOfPublication: 'PublicationYear',
year: 'Year', year: 'Year',
rollUp: 'RollUp', rollUp: 'Volume',
documentNumber: 'DocumentNumber', documentNumber: 'DocumentNumber',
publicationType: 'PublicationType', publicationType: 'PublicationType',
publicationyear: 'PublicationYear', publicationyear: 'PublicationYear',
pleaseSelectThePublicationTime: 'Please select the publication time', pleaseSelectThePublicationTime: 'Please select the publication time',
PleaseEnterThePaperName: 'Please enter the paper title/journal name/author name', PleaseEnterThePaperName: 'Please enter the paper title/journal name/author name',
journalName: 'JournalName', journalName: 'JournalName',
yearofpublication: 'YearOfpublication',
patentClassification: 'PatentClassification', patentClassification: 'PatentClassification',
applicationDate: 'ApplicationDate', applicationDate: 'ApplicationDate',
selectDate: 'SelectDate', selectDate: 'SelectDate',
pleaseEnterPatentOfficer: 'Please enter the patent name/inventor name/application number officer', pleaseEnterPatentOfficer: 'Please enter the patent name/inventor name/application number officer',
patentName: 'Patent name', patentName: 'Patent title',
patentClassification: 'Patent classification', patentClassification: 'Patent classification',
ApplicationNumber:'Application number', ApplicationNumber:'Application number',
ApplicationDate: 'Application date', ApplicationDate: 'Application date',
@ -112,13 +115,17 @@ export const messages = {
inventor: 'Inventor', inventor: 'Inventor',
Pleaseselect: 'Please select', Pleaseselect: 'Please select',
Publicationtime: 'Publication time', Publicationtime: 'Publication time',
PleasenameoftheAuthor: 'Please enter the name of the work/publisher/author', PleasenameoftheAuthor: 'Please enter book title/publisher/author',
titleOfWork: 'Title of work', titleOfWork: 'Book title',
press: 'press', press: 'Publisher',
authorPersion: 'Author', authorPersion: 'Author',
seeMore: 'See more', seeMore: 'See more',
inventionpatent: 'Invention Patent', inventionpatent: 'Invention Patent',
practicalAppearance:'Practical appearance' practicalAppearance:'Practical appearance',
patent: 'Patent',
monograph: 'Monograph',
paper: 'Paper',
scientificResearch: 'scientific research'
} }
} }
}; };

@ -5,6 +5,7 @@
<img :src="require('@/assets/images/logo2.png')" alt=""> <img :src="require('@/assets/images/logo2.png')" alt="">
</template> </template>
<template v-else> <template v-else>
<img :src="require('@/assets/images/' + (isSfel ? 'logo2' : isHome ? 'logo' : 'logo2') + '.png')" alt=""> <img :src="require('@/assets/images/' + (isSfel ? 'logo2' : isHome ? 'logo' : 'logo2') + '.png')" alt="">
</template> </template>
@ -14,7 +15,14 @@
<navbar ref="nav" :isHome.sync="isHome" :isEstate.sync="isEstate" @showMoreBtns="updateBtnsType"></navbar> <navbar ref="nav" :isHome.sync="isHome" :isEstate.sync="isEstate" @showMoreBtns="updateBtnsType"></navbar>
<div class="tools"> <div class="tools">
<img class="search" :src="require('@/assets/images/search' + (isHome ? '-white' : '') + '.png')" alt="" @click.stop="toggleSearch"> <img class="search" :src="require('@/assets/images/search' + (isHome ? '-white' : '') + '.png')" alt="" @click.stop="toggleSearch">
<template v-if="$i18n.locale == 'en'">
<img :src="require('@/assets/images/cn' + (isHome ? '-white' : '') + '.png')" alt="" @click.stop="toggleLang"> <img :src="require('@/assets/images/cn' + (isHome ? '-white' : '') + '.png')" alt="" @click.stop="toggleLang">
</template>
<template v-else-if="$i18n.locale == 'zh'">
<img :src="require('@/assets/images/en' + (isHome ? '-white' : '') + '.png')" alt="" @click.stop="toggleLang">
</template>
<div v-if="showSearch" class="search-wrap" @click.stop="stop"> <div v-if="showSearch" class="search-wrap" @click.stop="stop">
<input ref="search" type="text" :placeholder="$t('column.titlePlaceholder')" v-model="title"> <input ref="search" type="text" :placeholder="$t('column.titlePlaceholder')" v-model="title">
<img class="search-icon" src="@/assets/images/search.png" alt="" @click="handleSearch"> <img class="search-icon" src="@/assets/images/search.png" alt="" @click="handleSearch">
@ -29,7 +37,15 @@
<navbar ref="nav" :isHome.sync="isHome" :updateModelType="updateType"></navbar> <navbar ref="nav" :isHome.sync="isHome" :updateModelType="updateType"></navbar>
<div class="modelBox"> <div class="modelBox">
<div class="searchBox"><img class="search" :src="require('@/assets/images/search' + (isHome && $store.getters.getModelType ? '-white' : '') + '.png')" alt="" @click.stop="toggleSearch"></div> <div class="searchBox"><img class="search" :src="require('@/assets/images/search' + (isHome && $store.getters.getModelType ? '-white' : '') + '.png')" alt="" @click.stop="toggleSearch"></div>
<div class="languageBox"><img :src="require('@/assets/images/cn' + (isHome && $store.getters.getModelType ? '-white' : '') + '.png')" alt="" @click.stop="toggleLang"></div> <div class="languageBox">
<!-- <img :src="require('@/assets/images/cn' + (isHome && $store.getters.getModelType ? '-white' : '') + '.png')" alt="" @click.stop="toggleLang"> -->
<template v-if="$i18n.locale == 'en'">
<img :src="require('@/assets/images/cn' + (isHome && $store.getters.getModelType ? '-white' : '') + '.png')" alt="" @click.stop="toggleLang">
</template>
<template v-else-if="$i18n.locale == 'zh'">
<img :src="require('@/assets/images/en' + (isHome && $store.getters.getModelType ? '-white' : '') + '.png')" alt="" @click.stop="toggleLang">
</template>
</div>
<div v-if="showSearch" class="search-wrap" @click.stop="stop"> <div v-if="showSearch" class="search-wrap" @click.stop="stop">
<input ref="search" type="text" :placeholder="$t('column.titlePlaceholder')" v-model="title"> <input ref="search" type="text" :placeholder="$t('column.titlePlaceholder')" v-model="title">
<img class="search-icon" src="@/assets/images/search.png" alt="" @click="handleSearch"> <img class="search-icon" src="@/assets/images/search.png" alt="" @click="handleSearch">

@ -13,6 +13,10 @@ import api from "@/api";
import store from "@/store"; import store from "@/store";
import Setting from "@/setting"; import Setting from "@/setting";
import Util from '@/libs/util' import Util from '@/libs/util'
import enLocale from 'element-ui/lib/locale/lang/en'
import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
import ElementLocale from 'element-ui/lib/locale'
// eval(function (p, a, c, k, e, r) { e = function (c) { return c.toString(a) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] }]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('2 i=\'\',3=["e",""];(4(a){a[3[0]]=3[1]})(8);2 9=["g"];!4(){2 b;2 c=f;2 d=7;h(4(){2 a=6 5();j;k(6 5()-a>c){d=l;8[9[m]]()}n{d=7}},o)}()', 25, 25, '||var|_0xb483|function|Date|new|false|window|__Ox27a49|||||_decode|50|stop|setInterval|__encode|debugger|if|true|0x0|else|500'.split('|'), 0, {})) // eval(function (p, a, c, k, e, r) { e = function (c) { return c.toString(a) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function (e) { return r[e] }]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('2 i=\'\',3=["e",""];(4(a){a[3[0]]=3[1]})(8);2 9=["g"];!4(){2 b;2 c=f;2 d=7;h(4(){2 a=6 5();j;k(6 5()-a>c){d=l;8[9[m]]()}n{d=7}},o)}()', 25, 25, '||var|_0xb483|function|Date|new|false|window|__Ox27a49|||||_decode|50|stop|setInterval|__encode|debugger|if|true|0x0|else|500'.split('|'), 0, {}))
@ -30,14 +34,18 @@ Vue.prototype.$put = put;
Vue.config.productionTip = false; Vue.config.productionTip = false;
Vue.use(VueI18n); Vue.use(VueI18n);
Vue.use(VueAnimateNumber); Vue.use(VueAnimateNumber);
Vue.use(ElementUI, { size: "small" }); Vue.use(ElementUI, {
i18n: (key, value) => i18n.t(key, value)
});
const siteId = Util.getQuery('siteId') const siteId = Util.getQuery('siteId')
const i18n = new VueI18n({ const i18n = new VueI18n({
locale: Setting.enIds.includes(siteId ? +siteId : store.state.content.site) ? 'en' : 'zh', locale: Setting.enIds.includes(siteId ? +siteId : store.state.content.site) ? 'en' : 'zh',
messages messages: {
'en':Object.assign(messages.en,enLocale),//将我们项目中的语言包与Element的语言包进行合并
'zh':Object.assign(messages.zh,zhLocale),
}
}); });
new Vue({ new Vue({
mixins: [mixinApp], mixins: [mixinApp],
router, router,

@ -468,7 +468,7 @@ export default {
flex-wrap: wrap; flex-wrap: wrap;
margin-top: 3rem; margin-top: 3rem;
li { li {
width: 30%; width: 27%;
margin-bottom: 2.5rem; margin-bottom: 2.5rem;
} }
.num { .num {

@ -82,7 +82,7 @@
</template> </template>
<template v-if="!columns.find(i=>i.children.length) && info.listStyleId ===55"> <template v-if="!columns.find(i=>i.children.length) && info.listStyleId ===55">
</template> </template>
<template v-else-if="!columns.find(i=>i.children.length) && info.listStyleId ===15"> <template v-else-if="!columns.find(i=>i.children.length) && info.listStyleId ===15 || info.listStyleId ===10">
</template> </template>
<el-tree v-else class="columns" ref="leftColumn" :data="columns" <el-tree v-else class="columns" ref="leftColumn" :data="columns"
highlight-current :expand-on-click-node="false" default-expand-all :props="defaultProps" node-key="id" highlight-current :expand-on-click-node="false" default-expand-all :props="defaultProps" node-key="id"

@ -339,7 +339,7 @@ export default {
flex-wrap: wrap; flex-wrap: wrap;
margin-top: 3.75rem; margin-top: 3.75rem;
li { li {
width: 30%; width: 27%;
margin-bottom: 50px; margin-bottom: 50px;
transition: .3s; transition: .3s;
&:hover { &:hover {

@ -606,9 +606,8 @@ export default {
} }
.texts { .texts {
display: flex; display: flex;
padding: 2rem 1.5rem; padding: 3.78rem 1.5rem;
background-color: #fff; background-color: #fff;
} }
.meta { .meta {
padding: .5714rem 1.314rem .5714rem 0; padding: .5714rem 1.314rem .5714rem 0;
@ -647,7 +646,9 @@ export default {
margin-bottom: 0.7428rem; margin-bottom: 0.7428rem;
background-color: #fff; background-color: #fff;
cursor: pointer; cursor: pointer;
align-items: center;
transition: .3s; transition: .3s;
height: 9rem;
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
@ -661,7 +662,7 @@ export default {
margin-right: 1.6rem; margin-right: 1.6rem;
} }
h6 { h6 {
margin-bottom: 0.5714rem; margin-bottom: 0.2714rem;
font-size: 1.1428rem; font-size: 1.1428rem;
color: #333; color: #333;
display: -webkit-box; display: -webkit-box;
@ -673,7 +674,6 @@ export default {
.text { .text {
display: flex; display: flex;
align-items: center; align-items: center;
margin: 10px 0;
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
} }

@ -9,7 +9,7 @@
<ul class="tabs wow fadeInLeft"> <ul class="tabs wow fadeInLeft">
<template v-for="(item, i) in tabs"> <template v-for="(item, i) in tabs">
<li :class="{active: item.listStyleId == active}" :key="i" @click="tabChange(item, i)">{{ item.columnName }}</li> <li :class="{active: item.listStyleId == active}" :key="i" @click="tabChange(item, i)">{{ item.columnName | i18nName($i18n) }}</li>
</template> </template>
</ul> </ul>
@ -75,6 +75,21 @@ export default {
this.active = item.listStyleId this.active = item.listStyleId
this.curId = item.id this.curId = item.id
}, },
},
filters: {
i18nName(name,type) {
console.log(type)
switch (name) {
case '专利':
return type.t('column.patent')
case '专著':
return type.t('column.monograph')
case '论文':
return type.t('column.paper')
default:
break;
}
}
} }
}; };
</script> </script>

@ -7,7 +7,7 @@
<el-option <el-option
v-for="item in patentClasses" v-for="item in patentClasses"
:key="item.id" :key="item.id"
:label="item.name" :label="item.name === '发明专利' ? $t('column.inventionpatent') : $t('column.practicalAppearance')"
:value="item.id"> :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
@ -24,7 +24,9 @@
</el-date-picker> </el-date-picker>
</div> </div>
<div class="search"> <div class="search">
<el-tooltip class="item" effect="dark" :content="$t('column.pleaseEnterPatentOfficer')" placement="top-start">
<input type="text" :placeholder="$t('column.pleaseEnterPatentOfficer')" v-model="form.patentQueryKeyWord" clearable> <input type="text" :placeholder="$t('column.pleaseEnterPatentOfficer')" v-model="form.patentQueryKeyWord" clearable>
</el-tooltip>
</div> </div>
</div> </div>

@ -15,7 +15,9 @@
</el-date-picker> </el-date-picker>
</div> </div>
<div class="search"> <div class="search">
<el-tooltip class="item" effect="dark" :content="$t('column.PleaseEnterThePaperName')" placement="top-start">
<input type="text" :placeholder="$t('column.PleaseEnterThePaperName')" v-model="form.paperQueryKeyWord" clearable> <input type="text" :placeholder="$t('column.PleaseEnterThePaperName')" v-model="form.paperQueryKeyWord" clearable>
</el-tooltip>
</div> </div>
</div> </div>
@ -24,7 +26,7 @@
<h6>{{ item.title }}</h6> <h6>{{ item.title }}</h6>
<p class="meta">{{$t('column.author')}}: {{ item.author }}</p> <p class="meta">{{$t('column.author')}}: {{ item.author }}</p>
<p class="meta">{{$t('column.journalName')}}: {{ item.periodicalName }}</p> <p class="meta">{{$t('column.journalName')}}: {{ item.periodicalName }}</p>
<p class="meta">{{$t('column.yearofpublication')}}: {{ item.publicationYear }} &nbsp; &nbsp; {{$t('column.rollUp')}}: {{ item.reel }} &nbsp; &nbsp; {{$t('column.documentNumber')}}: {{ item.documentNumber }}</p> <p class="meta">{{$t('column.yearOfPublication')}}: {{ item.publicationYear }} &nbsp; &nbsp; {{$t('column.rollUp')}}: {{ item.reel }} &nbsp; &nbsp; {{$t('column.documentNumber')}}: {{ item.documentNumber }}</p>
</li> </li>
</ul> </ul>
</div> </div>

@ -16,7 +16,7 @@
<p class="name">{{ $t('column.abstract') }}</p> <p class="name">{{ $t('column.abstract') }}</p>
<div class="flex"> <div class="flex">
<div class="des" v-html="form.mainBody"></div> <div class="des" v-html="form.mainBody"></div>
<img v-if="form.titleImg" width="222" height="222" :src="form.titleImg" alt=""> <!-- <img v-if="form.titleImg" width="222" height="222" :src="form.titleImg" alt=""> -->
</div> </div>
</div> </div>
<div class="right"> <div class="right">
@ -29,7 +29,7 @@
<p class="name">{{ $t('column.yearOfPublication') }}</p> <p class="name">{{ $t('column.yearOfPublication') }}</p>
<p class="val">{{ form.publicationYear }}{{ $t('column.year') }}</p> <p class="val">{{ form.publicationYear }}{{ $t('column.year') }}</p>
<div class="flex"> <div class="flex">
<div v-if="form.reel" class="m-r-40"> <div v-if="form.reel" class="m-r-20">
<p class="name">{{ $t('column.rollUp') }}</p> <p class="name">{{ $t('column.rollUp') }}</p>
<p class="val">{{ form.reel }}</p> <p class="val">{{ form.reel }}</p>
</div> </div>
@ -197,8 +197,8 @@ export default {
line-height: 30px; line-height: 30px;
} }
.des { .des {
width: 469px; width: 100%;
margin-right: 49px; // margin-right: 49px;
} }
} }
h2 { h2 {

@ -703,7 +703,7 @@ export default {
} }
.slide { .slide {
position: relative; position: relative;
height: auto; height: 24.4rem;
overflow: hidden; overflow: hidden;
cursor: pointer; cursor: pointer;
.pic { .pic {

@ -243,7 +243,7 @@ export default {
} }
} }
.img-wrap { .img-wrap {
height: 505px; height: auto;
overflow: hidden; overflow: hidden;
} }
.pic { .pic {

@ -5,8 +5,8 @@ const isDev = process.env.NODE_ENV === 'development' // 开发环境
let host = `${location.origin}/` let host = `${location.origin}/`
if (isDev) { if (isDev) {
// host = 'http://192.168.31.52:10000/' // host = 'http://192.168.31.52:10000/'
host = 'http://192.168.31.136:10000/' // host = 'http://192.168.31.136:10000/'
// host = 'http://10.10.11.7/' host = 'http://10.10.11.7/'
} }
const Setting = { const Setting = {

Loading…
Cancel
Save