12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049 |
- <template>
- <div class="autoBox box" style="min-height: 900px;position: relative;">
- <div class="crumbs">
- <div style="overflow: hidden;height:40px;padding-top: 10px;">
- <el-breadcrumb separator-class="el-icon-arrow-right" style="float: left;height: 50px;">
- <el-breadcrumb-item :to="{ path: 'home' }">{{$t('common.Home')}}</el-breadcrumb-item>
- <el-breadcrumb-item class="pointer">{{$t('common.Globaldata')}}</el-breadcrumb-item>
- </el-breadcrumb>
- </div>
- </div>
- <div style="padding: 0 10px">
- <RealTimeInfoDataInfo></RealTimeInfoDataInfo>
- </div>
- <!--登录提示-->
- <el-dialog
- :title="$i18n.locale=='zh'?'提示':'Reminder'"
- :visible.sync="toViewLogin"
- :width="$i18n.locale=='zh'?'500px':'750px'"
- :height="$i18n.locale=='zh'?'300px':'386px'"
- :before-close="toViewLoginChange"
- >
- <div style="width: 100%;height: 100%;">
- <img src="@/assets/img/loginTips.png" alt="" style="width: 180px;height: 180px;margin-left: 20px;">
- <div style="float: right;margin-right: 20px;" :style="$i18n.locale=='zh'?'width: 49%;margin-top: 10px;':'width: 453px;margin-top: -25px;'">
- <div style="font-size: 20px;font-weight: normal;color: #333333;
- font-family: HiraginoSansGB-W3, HiraginoSansGB;
- line-height: 40px;">
- {{$t('common.ReminderFirst')}}
- </div>
- <div style="font-size: 16px;font-family: HiraginoSansGB-W3, HiraginoSansGB;
- font-weight: normal;color: #666666;line-height: 30px;">
- {{$t('common.ReminderSecond')}} <span style="color: #0091FF;font-size: 18px;">{{num}}</span> {{$t('common.ReminderThird')}}
- </div>
- <div style="font-size: 14px;font-family: HiraginoSansGB-W3, HiraginoSansGB;
- font-weight: normal;color: #666666;line-height: 30px;">
- {{$t('common.ReminderForth')}}
- </div>
- <div style="font-size: 14px;font-family: HiraginoSansGB-W3, HiraginoSansGB;
- height:33px;line-height:60px;font-weight: normal;color: #0091FF;">
- <span style="margin-left: 40px;" class="cursor" @click="toView('login')">
- {{$t('common.ReminderFifth')}}
- </span>
- <span style="margin-left: 10px;" class="cursor" @click="toView('Register')">
- {{$t('common.ReminderSixth')}}
- </span>
- </div>
- </div>
- </div>
- </el-dialog>
- </div>
- </template>
- <script>
- import Base from "@/views/base/Base";
- import RealTimeInfoDataInfo from '@/views/realTimeInfo/RealTimeInfoDataInfo'
- export default {
- name: "DataResourceSharing",
- extends: Base,
- components:{RealTimeInfoDataInfo},
- data () {
- return {
- num:5,
- timer:'',
- toViewLogin:false,
- language:this.$i18n.locale,
- params: {
- pageNo:'',
- pageSize:'',
- language:'',
- status:0,
- name:'',
- researchResultType:'',
- researchResourcesType:'',
- },
- screenIndex:0,//screen状态
- resourceSharingScreen:[
- {
- label:"common.resource",
- value:'0'
- },
- {
- label:"common.researchResource",
- value:'1'
- }
- ],
- page:{
- results:{
- currentPage: 0,//当前页
- totalPage:'',//页数
- pageNo:1,
- pageSize:6,
- language:'',
- status:0,
- name:'',
- researchResultType:'',
- descStatus:0,
- reserveTwo:'Y',
- },
- resource:{
- currentPage: 0,//当前页
- totalPage:'',//页数
- pageNo:1,
- pageSize:9,
- language:'',
- status:0,
- name:'',
- researchResourcesType:'',
- descStatus:0,
- effective:'Y',
- },
- },
- slideShowImg:[],
- // slideShowImgFlag:0,
- classifySel1:-1,//子分类选中
- classifySel2:-1,//子分类选中
- classify1:'',
- screen1: {
- value: "common.Type",
- item: [
- ],
- },
- screen2: {
- value: "common.Type",
- item: [
- ],
- },
- classify2:'',
- rankActive:0,//时间、热度排行选中
- cursorList1:[],
- cursorList2:[],
- searchText1:'',
- searchText2:'',
- isRecommond:true,
- nowPosition:0,
- islogin:'',
- }
- },
- created() {
- if(this.$route.query.key){
- this.screenIndex=this.$route.query.key;
- console.log(this.screenIndex)
- }
- },
- mounted() {
- this.paramsScreen()
- this.gatAllPicture();
- this.initData();
- if (!this.$Cookies.get('token')){
- this.islogin = false;
- }else {
- this.islogin = true;
- }
- },
- watch:{
- '$i18n.locale'(){
- // this.slideShowImgFlag=0;
- this.slideShowImg=[];
- this.gatAllPicture();
- this.initData();
- },
- 'screenIndex'(){
- this.initData();
- },
- "toViewLogin"(){
- if(this.toViewLogin==true){
- this.loginTipsChange()
- }
- },
- },
- methods:{
- initData(){
- this.getClassify();
- },
- paramsScreen(){
- if(this.$route.params.key){
- this.screenIndex = this.$route.params.key;
- }
- },
- toDetails(item,index){
- let params = {
- entityId:item.entityId,
- // researchResultFileId:item.researchResultFileId,
- }
- let rpath = { name: 'resourceSharingDetails', query: {key:JSON.stringify(params)}};
- sessionStorage.setItem('pathReminder', JSON.stringify(rpath));
- this.toViewQuery('resourceSharingDetails',params)
- },
- toResourceDetails(item,index){
- let params = {
- entityId:item.entityId,
- }
- let rpath = { name: 'resourceSharingResourceDetails', query: {key:JSON.stringify(params)}};
- sessionStorage.setItem('pathReminder', JSON.stringify(rpath));
- this.toViewQuery('resourceSharingResourceDetails',params)
- // this.toView('resourceSharingResourceDetails',params)
- },
- toViewQuery(router, json) {
- this.$router.push({ name: router, query: {key:JSON.stringify(json)} });
- },
- toResultsIssue(){
- if (!this.$Cookies.get('token')){
- this.toViewLogin = true;
- }else{
- this.toView('resourceform')
- // this.toView('resourceSharingResultsIssue')
- }
- },
- toResourceIssue(){
- if (!this.$Cookies.get('token')){
- this.toViewLogin = true;
- }else{
- this.toView('resourceform')
- // this.toView('resourceSharingResourceIssue')
- }
- },
- toView(router, json) {
- if(router=='login'||router=='Register'){
- clearInterval(this.timer);
- }
- this.$router.push({ name: router, params: {key:json} });
- },
- screenChange(item,index) {
- this.screenIndex = index;
- this.rankActive=0;
- this.page={
- results:{
- currentPage: 0,//当前页
- totalPage:'',//页数
- pageNo:1,
- pageSize:6,
- language:'',
- status:0,
- name:'',
- researchResultType:'',
- descStatus:0,
- reserveTwo:'Y',
- },
- resource:{
- currentPage: '',//当前页
- totalPage:'',//页数
- pageNo:1,
- pageSize:9,
- language:'',
- status:0,
- name:'',
- researchResourcesType:'',
- descStatus:0,
- effective:'Y',
- },
- };
- },
- handleCurrentChange1(val) {
- this.page.results.currentPage = val;
- this.page.results.pageNo = val;
- this.initData();
- },
- handleCurrentChange2(val) {
- this.page.resource.currentPage = val;
- this.page.resource.pageNo = val;
- this.initData();
- },
- async getClassify(){
- let that = this;
- if (this.$i18n.locale.toUpperCase() == 'ZH') {
- that.classify1 = '';
- that.classify2 = '';
- that.screen1.item = [];
- that.screen2.item = [];
- await getDicts(
- "RESEARCH_RESULT_TYPE_DICT,RESEARCH_RESOURCE_TYPE_DICT"
- ).then(result => {
- if (result.data) {
- that.classify1 = result.data[0];
- // that.screen1.item = result.data[0];
- // let labels = '';
- // if(that.$i18n.locale == 'zh'){
- // labels = '研究成果'
- // }else {
- // labels = 'results'
- // }
- // that.screen1.item.unshift({
- // label: labels,
- // value: null,
- // });
- that.classify2 = result.data[1];
- // that.screen2.item = result.data[1];
- // let labels2 = '';
- // if(that.$i18n.locale == 'zh'){
- // labels2 = '调研资源'
- // }else {
- // labels2 = 'resource'
- // }
- // that.screen2.item.unshift({
- // label: labels2,
- // value: null,
- // });
- this.language = this.$i18n.locale;
- }
- })
- if(this.islogin){
- // this.getCursorList1();
- this.getCursorListNew();
- this.getCursorList2();
- }else{
- // this.getCursorListNew();
- this.getCursorList1();
- this.getCursorList2();
- }
- }else if (this.$i18n.locale.toUpperCase() == 'EN'){
- that.classify1 = '';
- that.classify2 = '';
- that.screen1.item = [];
- that.screen2.item = [];
- await getDicts(
- "RESEARCH_RESULT_TYPE_DICT_EN,RESEARCH_RESOURCE_TYPE_DICT_EN"
- ).then(result => {
- if (result.data) {
- that.classify1 = result.data[0];
- // that.screen1.item = result.data[0];
- // let labels = '';
- // if(that.$i18n.locale == 'zh'){
- // labels = '研究成果'
- // }else {
- // labels = 'results'
- // }
- // that.screen1.item.unshift({
- // label: labels,
- // value: null,
- // });
- that.classify2 = result.data[1];
- // that.screen2.item = result.data[1];
- // let labels2 = '';
- // if(that.$i18n.locale == 'zh'){
- // labels2 = '调研资源'
- // }else {
- // labels2 = 'resource'
- // }
- // that.screen2.item.unshift({
- // label: labels2,
- // value: null,
- // });
- this.language = this.$i18n.locale;
- }
- })
- if(that.islogin){
- // this.getCursorList1();
- this.getCursorListNew();
- this.getCursorList2();
- }else{
- this.getCursorList1();
- // this.getCursorListNew();
- this.getCursorList2();
- }
- }
- },
- async gatAllPicture(){
- let params = {
- language:this.$i18n.locale.toUpperCase(),
- uploadCarouselMap:'Y',
- }
- gatAllCarouselMapPicture(params).then((resulet)=>{
- if(resulet.data){
- this.slideShowImg = resulet.data.addresses;
- }
- })
- },
- getCursorListNew(descStatus){
- let that = this;
- that.nowPosition = 0;
- let param = that.page.results;
- if (this.$i18n.locale.toUpperCase() == 'ZH') {
- param.language = 'ZH';
- } else if (this.$i18n.locale.toUpperCase() == 'EN') {
- param.language = 'EN';
- }
- if(descStatus==0||descStatus==1){
- param.descStatus = descStatus
- }
- getRecommendesearchResultList(param).then((resulet) => {
- let that = this;
- let data = resulet.data;
- if (data.baseResearchResultViews) {
- that.cursorList1 = data.baseResearchResultViews;
- that.cursorList1.forEach((i) => {
- i.createDate = i.createDate ? formatDate(i.createDate, "YYYY-MM-DD") : "";
- })
- for (let i=0;i<that.cursorList1.length;i++){
- for (let o=0;o<that.classify1.length;o++){
- if (that.cursorList1[i].researchResultType == that.classify1[o].value){
- that.cursorList1[i].researchResultType = that.classify1[o].label;
- }
- }
- }
- }
- if (data.page){
- that.page.results.totalPage = data.page.totalPage;
- that.page.results.currentPage = data.page.pageNo;
- }else{
- that.page.results.totalPage = '1';
- that.page.results.currentPage = 1;
- }
- });
- },
- getCursorList1(descStatus) {
- let that = this;
- that.nowPosition = 1;
- let param = that.page.results;
- if (this.$i18n.locale.toUpperCase() == 'ZH') {
- param.language = 'ZH';
- } else if (this.$i18n.locale.toUpperCase() == 'EN') {
- param.language = 'EN';
- }
- if(descStatus==0||descStatus==1){
- param.descStatus = descStatus
- }
- getBaseResearchResultViews(param).then((resulet) => {
- let that = this;
- let data = resulet.data;
- if (data.baseResearchResultViews) {
- that.cursorList1 = data.baseResearchResultViews;
- that.cursorList1.forEach((i) => {
- i.createDate = i.createDate ? formatDate(i.createDate, "YYYY-MM-DD") : "";
- })
- for (let i=0;i<that.cursorList1.length;i++){
- for (let o=0;o<that.classify1.length;o++){
- if (that.cursorList1[i].researchResultType == that.classify1[o].value){
- that.cursorList1[i].researchResultType = that.classify1[o].label;
- }
- }
- }
- /*if(that.slideShowImgFlag==0||that.slideShowImgFlag==1){
- that.cursorList1.forEach((i) => {
- if(i.uploadCarouselMap == 'Y'){
- let arr = {
- name:i.name,
- address:'',
- affiliatedUnitName:i.affiliatedUnitName,
- researchType:i.researchResultType,
- createDate:i.createDate,
- carouselMapAddress:i.carouselMapAddress,
- entityId:i.entityId,
- toView:0,
- }
- that.slideShowImg.push(arr);
- }
- })
- that.slideShowImgFlag++;
- }*/
- }
- if (data.page){
- that.page.results.totalPage = data.page.totalPage;
- that.page.results.currentPage = data.page.pageNo;
- }else{
- that.page.results.totalPage = '1';
- that.page.results.currentPage = 1;
- }
- });
- },
- getCursorList2(descStatus){
- let that = this;
- let param = that.page.resource;
- if (this.$i18n.locale.toUpperCase() == 'ZH') {
- param.language = 'ZH';
- } else if (this.$i18n.locale.toUpperCase() == 'EN') {
- param.language = 'EN';
- }
- if(descStatus==0||descStatus==1){
- param.descStatus = descStatus
- }
- getBaseResearchResourcesViews(param).then((resulet) => {
- let that = this;
- let data = resulet.data;
- if (data.baseResearchResourcesViews) {
- that.cursorList2 = data.baseResearchResourcesViews;
- that.cursorList2.forEach((i) => {
- i.createDate = i.createDate ? formatDate(i.createDate, "YYYY-MM-DD") : "";
- if (i.researchResourcesMedia){
- i.researchResourcesMedia = i.researchResourcesMedia.split(',')
- i.researchResourcesMedia = i.researchResourcesMedia[0]
- }
- })
- for (let i=0;i<that.cursorList2.length;i++){
- for (let o=0;o<that.classify2.length;o++){
- if (that.cursorList2[i].researchResourcesType == that.classify2[o].value){
- that.cursorList2[i].researchResourcesType = that.classify2[o].label;
- }
- }
- }
- /*if(that.slideShowImgFlag==0||that.slideShowImgFlag==1){
- that.cursorList2.forEach((i) => {
- if(i.uploadCarouselMap == 'Y'){
- let arr = {
- name:i.name,
- address:i.address,
- affiliatedUnitName:i.affiliatedUnitName,
- researchType:i.researchResourcesType,
- createDate:'',
- carouselMapAddress:i.carouselMapAddress,
- entityId:i.entityId,
- toView:1,
- }
- that.slideShowImg.push(arr);
- }
- });
- that.slideShowImgFlag++;
- }*/
- }
- if (data.page){
- that.page.resource.totalPage = data.page.totalPage;
- that.page.resource.currentPage = data.page.pageNo;
- }else{
- that.page.resource.totalPage = '1';
- that.page.resource.currentPage = 1;
- }
- });
- },
- /*screenBack(data){
- console.log(data);
- let item = {
- value:data.click1
- }
- this.dataChangeByType1(item,0)
- },*/
- /*screenBack2(data){
- console.log(data);
- let item = {
- value:data.click1
- }
- this.dataChangeByType2(item,0)
- },*/
- dataChangeByType1(item,index){
- let that = this;
- that.nowPosition = 1;
- let param = that.page.results;
- param.pageNo = 1;
- if (this.$i18n.locale.toUpperCase() == 'ZH') {
- param.language = 'ZH';
- } else if (this.$i18n.locale.toUpperCase() == 'EN') {
- param.language = 'EN';
- }
- if(item == -1){
- that.classifySel1 = item
- param.researchResultType = '';
- }else{
- that.classifySel1 = index;
- param.researchResultType = item.value;
- }
- getBaseResearchResultViews(param).then((resulet) => {
- let data = resulet.data;
- if (data.baseResearchResultViews) {
- that.cursorList1 = data.baseResearchResultViews;
- that.cursorList1.forEach((i) => {
- i.createDate = i.createDate ? formatDate(i.createDate, "YYYY-MM-DD") : "";
- })
- for (let i=0;i<that.cursorList1.length;i++){
- for (let o=0;o<that.classify1.length;o++){
- if (that.cursorList1[i].researchResultType == that.classify1[o].value){
- that.cursorList1[i].researchResultType = that.classify1[o].label;
- }
- }
- }
- /*if(that.slideShowImgFlag==0||that.slideShowImgFlag==1){
- that.cursorList1.forEach((i) => {
- if(i.uploadCarouselMap == 'Y'){
- that.slideShowImg.push(i.carouselMapAddress);
- }
- })
- that.slideShowImgFlag++;
- }*/
- }else{
- that.cursorList1 = {};
- }
- if (data.page){
- that.page.results.totalPage = data.page.totalPage;
- that.page.results.currentPage = data.page.pageNo;
- }else{
- that.page.results.totalPage = '1';
- that.page.results.currentPage = 1;
- }
- });
- },
- dataChangeByType2(item,index){
- let that = this;
- that.nowPosition = 1;
- let param = that.page.resource;
- param.pageNo = 1;
- if (this.$i18n.locale.toUpperCase() == 'ZH') {
- param.language = 'ZH';
- } else if (this.$i18n.locale.toUpperCase() == 'EN') {
- param.language = 'EN';
- }
- if(item == -1){
- that.classifySel2 = item
- param.researchResourcesType = '';
- }else{
- that.classifySel2 = index
- param.researchResourcesType = item.value;
- }
- getBaseResearchResourcesViews(param).then((resulet) => {
- let data = resulet.data;
- if (data.baseResearchResourcesViews) {
- that.cursorList2 = data.baseResearchResourcesViews;
- that.cursorList2.forEach((i) => {
- i.createDate = i.createDate ? formatDate(i.createDate, "YYYY-MM-DD") : "";
- if (i.researchResourcesMedia){
- i.researchResourcesMedia = i.researchResourcesMedia.split(',');
- i.researchResourcesMedia = i.researchResourcesMedia[0]
- }
- });
- for (let i=0;i<that.cursorList2.length;i++){
- for (let o=0;o<that.classify2.length;o++){
- if (that.cursorList2[i].researchResourcesType == that.classify2[o].value){
- that.cursorList2[i].researchResourcesType = that.classify2[o].label;
- }
- }
- }
- /*if(that.slideShowImgFlag==0||that.slideShowImgFlag==1){
- that.cursorList2.forEach((i) => {
- if(i.uploadCarouselMap == 'Y'){
- that.slideShowImg.push(i.carouselMapAddress);
- }
- })
- that.slideShowImgFlag++;
- }*/
- }else{
- that.cursorList2 = {};
- }
- if (data.page){
- that.page.resource.totalPage = data.page.totalPage;
- that.page.resource.currentPage = data.page.pageNo;
- }else{
- that.page.resource.totalPage = '1';
- that.page.resource.currentPage = 1;
- }
- });
- },
- dataChangeByName1(item,index){
- let that = this;
- let param = that.page.results;
- param.pageNo = 1;
- if (this.$i18n.locale.toUpperCase() == 'ZH') {
- param.language = 'ZH';
- } else if (this.$i18n.locale.toUpperCase() == 'EN') {
- param.language = 'EN';
- }
- param.name = that.searchText1;
- getBaseResearchResultViews(param).then((resulet) => {
- let that = this;
- let data = resulet.data;
- if (data.baseResearchResultViews) {
- that.cursorList1 = data.baseResearchResultViews;
- that.cursorList1.forEach((i) => {
- i.createDate = i.createDate ? formatDate(i.createDate, "YYYY-MM-DD") : "";
- })
- for (let i=0;i<that.cursorList1.length;i++){
- for (let o=0;o<that.classify1.length;o++){
- if (that.cursorList1[i].researchResultType == that.classify1[o].value){
- that.cursorList1[i].researchResultType = that.classify1[o].label;
- }
- }
- }
- /*if(that.slideShowImgFlag==0||that.slideShowImgFlag==1){
- that.cursorList1.forEach((i) => {
- if(i.uploadCarouselMap == 'Y'){
- that.slideShowImg.push(i.carouselMapAddress);
- }
- })
- that.slideShowImgFlag++;
- }*/
- }else{
- that.cursorList1 = {};
- }
- if (data.page){
- that.page.results.totalPage = data.page.totalPage;
- that.page.results.currentPage = data.page.pageNo;
- }else{
- that.page.results.totalPage = '1';
- that.page.results.currentPage = 1;
- }
- });
- },
- dataChangeByName2(item,index){
- let that = this;
- let param = that.page.resource;
- param.pageNo = 1;
- if (this.$i18n.locale.toUpperCase() == 'ZH') {
- param.language = 'ZH';
- } else if (this.$i18n.locale.toUpperCase() == 'EN') {
- param.language = 'EN';
- }
- param.name = that.searchText2;
- getBaseResearchResourcesViews(param).then((resulet) => {
- let that = this;
- let data = resulet.data;
- if (data.baseResearchResourcesViews) {
- that.cursorList2 = data.baseResearchResourcesViews;
- that.cursorList2.forEach((i) => {
- i.createDate = i.createDate ? formatDate(i.createDate, "YYYY-MM-DD") : "";
- if (i.researchResourcesMedia){
- i.researchResourcesMedia = i.researchResourcesMedia.split(',')
- i.researchResourcesMedia = i.researchResourcesMedia[0]
- }
- })
- for (let i=0;i<that.cursorList2.length;i++){
- for (let o=0;o<that.classify2.length;o++){
- if (that.cursorList2[i].researchResourcesType == that.classify2[o].value){
- that.cursorList2[i].researchResourcesType = that.classify2[o].label;
- }
- }
- }
- /*if(that.slideShowImgFlag==0||that.slideShowImgFlag==1){
- that.cursorList2.forEach((i) => {
- if(i.uploadCarouselMap == 'Y'){
- that.slideShowImg.push(i.carouselMapAddress);
- }
- })
- that.slideShowImgFlag++;
- }*/
- }else{
- that.cursorList2 = {};
- }
- if (data.page){
- that.page.resource.totalPage = data.page.totalPage;
- that.page.resource.currentPage = data.page.pageNo;
- }else{
- that.page.resource.totalPage = '1';
- that.page.resource.currentPage = 1;
- }
- });
- },
- dataChangeByTime1(){
- console.log('time1')
- let that = this;
- let param = that.page.results;
- param.pageNo = 1;
- if (this.$i18n.locale.toUpperCase() == 'ZH') {
- param.language = 'ZH';
- } else if (this.$i18n.locale.toUpperCase() == 'EN') {
- param.language = 'EN';
- }
- this.nowPosition = 0;
- if(this.nowPosition == 0){
- this.getCursorListNew(0)
- }else{
- this.getCursorList1(0)
- }
- // this.getCursorList1(0)
- this.rankActive = 0;
- },
- dataChangeByHeat1(){
- let that = this;
- let param = that.page.results;
- param.pageNo = 1;
- if (this.$i18n.locale.toUpperCase() == 'ZH') {
- param.language = 'ZH';
- } else if (this.$i18n.locale.toUpperCase() == 'EN') {
- param.language = 'EN';
- }
- this.getCursorList1(1)
- this.rankActive = 1;
- },
- dataChangeByTime2(){
- let that = this;
- let param = that.page.resource;
- param.pageNo = 1;
- if (this.$i18n.locale.toUpperCase() == 'ZH') {
- param.language = 'ZH';
- } else if (this.$i18n.locale.toUpperCase() == 'EN') {
- param.language = 'EN';
- }
- this.getCursorList2(0)
- this.rankActive = 0;
- },
- dataChangeByHeat2(){
- let that = this;
- let param = that.page.resource;
- param.pageNo = 1;
- if (this.$i18n.locale.toUpperCase() == 'ZH') {
- param.language = 'ZH';
- } else if (this.$i18n.locale.toUpperCase() == 'EN') {
- param.language = 'EN';
- }
- this.getCursorList2(1)
- this.rankActive = 1;
- },
- // 判断未登录跳转是否关闭
- toViewLoginChange(done){
- this.toViewLogin=false;
- this.num=5;
- clearInterval(this.timer);
- },
- loginTipsChange(){
- const that=this;
- this.num =5;
- // clearInterval(timer_interval);
- this.timer = setInterval(function() {
- if (that.num > 0) {
- that.num--;
- } else {
- if(that.toViewLogin==true){
- clearInterval(that.timer);
- that.toView('login');
- }else {
- clearInterval(that.timer);
- }
- }
- }, 1000)
- },
- dataChangeByTypeRecommed(item,index){
- let that = this;
- that.nowPosition = 0;
- let param = that.page.results;
- // param.pageNo = 1;
- if (this.$i18n.locale.toUpperCase() == 'ZH') {
- param.language = 'ZH';
- } else if (this.$i18n.locale.toUpperCase() == 'EN') {
- param.language = 'EN';
- }
- if(item == -1){
- that.classifySel1 = item
- param.researchResultType = '';
- }else{
- that.classifySel1 = index;
- param.researchResultType = item.value;
- }
- getRecommendesearchResultList(param).then((resulet) => {
- let data = resulet.data;
- if (data.baseResearchResultViews) {
- that.cursorList1 = data.baseResearchResultViews;
- that.cursorList1.forEach((i) => {
- i.createDate = i.createDate ? formatDate(i.createDate, "YYYY-MM-DD") : "";
- })
- for (let i=0;i<that.cursorList1.length;i++){
- for (let o=0;o<that.classify1.length;o++){
- if (that.cursorList1[i].researchResultType == that.classify1[o].value){
- that.cursorList1[i].researchResultType = that.classify1[o].label;
- }
- }
- }
- /*if(that.slideShowImgFlag==0||that.slideShowImgFlag==1){
- that.cursorList1.forEach((i) => {
- if(i.uploadCarouselMap == 'Y'){
- that.slideShowImg.push(i.carouselMapAddress);
- }
- })
- that.slideShowImgFlag++;
- }*/
- }else{
- that.cursorList1 = {};
- }
- if (data.page){
- that.page.results.totalPage = data.page.totalPage;
- that.page.results.currentPage = data.page.pageNo;
- }else{
- that.page.results.totalPage = '1';
- that.page.results.currentPage = 1;
- }
- });
- },
- cliRecommend(){
- if(this.islogin){
- console.log('11')
- this.dataChangeByTypeRecommed(-1)
- }else{
- console.log('22')
- this.dataChangeByType1(-1);
- }
- }
- },
- }
- </script>
- <style scoped>
- .oneLine{
- /* 隐藏溢出元素 */
- overflow: hidden;
- /* 单行显示 */
- white-space: nowrap;
- /* 溢出显示省略号 */
- text-overflow: ellipsis;
- }
- .twoLine{
- overflow : hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 3;
- -webkit-box-orient: vertical;
- }
- .threeLine{
- overflow : hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 3;
- -webkit-box-orient: vertical;
- }
- .pointer:hover{
- cursor: pointer;
- }
- .box {
- margin-top: 10px;
- background: #fff;
- /* height: 500px; */
- padding: 15px 0 10px 0;
- }
- .crumbs {
- margin:0 20px;
- }
- .screen1 {
- background: linear-gradient(180deg, #3280E2 0%, #144E97 100%);
- border-radius: 20px 20px 20px 20px;
- padding: 8px 12px;
- color: #F0F3F8;
- margin-left: 10px;
- }
- .screen2 {
- font-size: 14px;
- background: linear-gradient(180deg, #B4D5FF 0%, #4F81BF 100%);
- border-radius: 20px;
- padding: 8px 12px;
- color: #165099;
- margin-left: 10px;
- }
- .mainBody{
- width: 100%;
- /*margin-top: 10px;*/
- box-sizing: border-box;
- }
- .mainBody .slideShow{
- width: 100%;
- }
- .mainBody .researchClassify{
- cursor: pointer;
- /* margin: 0 20px; */
- /*height: 51px;*/
- overflow: hidden;
- margin: 20px 0 30px 0;
- background-color: #F8F8F8;
- }
- .mainBody .researchClassify .option{
- /*float: left;*/
- height: 51px;
- color: #9B9B9B;
- margin: 0 20px;
- font-size: 16px;
- font-weight: 400;
- line-height: 51px;
- /* padding: 0 10px; */
- box-sizing: border-box;
- }
- .mainBody .researchClassify .option .active{
- color: #6699FF;
- font-weight: 600;
- /*color: #eb8154;*/
- /*background-color: #fbecda;*/
- border-radius: 10px;
- line-height: 20px;
- }
- .mainBody .researchClassify .rankSearchPub{
- float: right;
- height: 56px;
- box-sizing: border-box;
- }
- .mainBody .researchClassify .rankSearchPub .rank{
- float: left;
- height: 51px;
- line-height: 51px;
- font-size: 16px;
- color: rgba(0,0,0,0.65);
- }
- .mainBody .researchClassify .rankSearchPub .rank .active{
- color: #6699FF;
- font-weight: 600;
- /*color: #eb8154;*/
- /*background-color: #fbecda;*/
- border-radius: 10px;
- line-height: 20px;
- }
- .mainBody .researchClassify .rankSearchPub .search{
- float: left;
- width: 103px;
- /*height: 32px;*/
- margin: 10px 15px 9px 0;
- border-radius: 5px;
- position: relative;
- }
- .mainBody .researchClassify .rankSearchPub .search input[type=text]{
- width: 103px;
- height: 32px;
- border: 1px solid #D9D9D9;
- margin: 0;
- padding: 0 32px 0 5px;
- box-sizing: border-box;
- border-radius: 4px;
- }
- .mainBody .researchClassify .rankSearchPub .search input[type=text]:focus{
- border: 1px solid #0091FF;
- outline: none;
- }
- .mainBody .researchClassify .rankSearchPub .publishing{
- float: left;
- width: 72px;
- height: 32px;
- line-height: 30px;
- margin: 9px 30px 8px 0;
- /*padding: 0 20px;*/
- box-sizing: border-box;
- border: 1px solid #1890FF;
- color: #1890FF;
- border-radius: 16px;
- text-align: center;
- }
- .mainBody .cursor{
- width: 30%;
- /*height: 525px;*/
- height: 572px;
- border: 1px solid rgba(228, 228, 228, 1);
- float: left;
- margin:0 2.5% 30px 2.5%;
- box-sizing: border-box;
- position: relative
- }
- .activity {
- height: 100%;
- background: url(../../assets/img/introductionCooperation/detailsbg.png) no-repeat;
- }
- </style>
- <style>
- .box .el-input__inner{
- height: 40px;
- }
- .search .el-input__inner{
- padding-right: 32px;
- }
- </style>
|