123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572 |
- <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.ResourceSharing')}}</el-breadcrumb-item>
- </el-breadcrumb>
- <el-breadcrumb separator="/" style="float: right;margin-top: 5px;" v-if="screenIndex=='0'">
- <span :class="screenIndex==index?'screen1':'screen2'"
- class="pointer"
- @click="screenChange(item,index)"
- v-for="(item,index) in resourceSharingScreen" :key="item.label">
- {{$t(item.label)}}
- </span>
- </el-breadcrumb>
- <el-breadcrumb separator="/" style="float: right;margin-top: 5px;" v-if="screenIndex=='1'">
- <span :class="screenIndex==index?'screen1':'screen2'"
- class="pointer"
- @click="screenChange(item,index)"
- v-for="(item,index) in resourceSharingScreen">
- {{$t(item.label)}}
- </span>
- </el-breadcrumb>
- </div>
- </div>
- <div class="slideShow" style="margin-top: 10px;">
- <!--<el-carousel :interval="5000" indicator-position="outside" v-if="slideShowImg.length!=0&&slideShowImg.length!=undefined">
- <el-carousel-item v-for="item in slideShowImg" :key="item">
- <!–<div v-if="slideShowImg.length==0||slideShowImg.length==undefined">
- <img src="../../assets/img/ResourceSharing/banner2.png" alt="" style="width: 100%; height: 100%;">
- </div>
- <div v-else style="width: 100%; height: 100%;background-color: #ecedef;">
- <img v-if="item.carouselMapAddress==undefined||item.carouselMapAddress==false||item.carouselMapAddress==''" src="../../assets/img/ResourceSharing/banner2.png" alt="" style="width: 100%; height: 100%;">
- <img v-else :src="'api/file/pub/'+ item.carouselMapAddress" alt="" style="width: 100%; height: 100%;">
- </div>–>
- <div style="width: 100%; height: 100%;background-color: #ecedef;">
- <div style="width: 920px;height:100%; float: left;cursor: pointer;" @click="item.reserveOne==0?toDetails(item):toResourceDetails(item)">
- <img v-if="item.address&&item.address!='null'" :src="'api/file/pub/'+ item.address" alt="" style="width: 100%; height: 100%;">
- <img v-else src="../../assets/img/nationaIntorduction/lavle.png" alt="" style="width: 100%;height: 100%">
- </div>
- <div style="width: 280px;height:100%;float: right;font-size: 14px;" class="activity">
- <div style="width: 100%;padding-left: 25px;box-sizing: border-box;color: #666666;cursor: pointer;" @click="item.reserveOne==0?toDetails(item):toResourceDetails(item)">
- <div v-show="item.name" style="font-size: 22px;font-weight: 600; margin: 40px 0 15px 5px">
- <span>{{item.name}}</span>
- </div>
- <!–<div v-show="item.address" style="font-size: 16px;margin: 10px 0 20px 5px">
- <p style="margin: 0 0 5px 0;font-size: 16px;">{{$t('common.resourceAddress')}}:</p>
- <span>{{item.address}}</span>
- </div>–>
- <div v-show="item.affiliatedUnitName" style="font-size: 16px;margin: 10px 0 20px 5px">
- <p style="margin: 0 0 5px 0;font-size: 16px;">{{$t('common.resourceSubordinateUnits')}}:</p>
- <span>{{item.affiliatedUnitName}}</span>
- </div>
- </div>
- </div>
- <div style="clear: both;"></div>
- </div>
- </el-carousel-item>
- </el-carousel>-->
- <!-- <div v-else style="width: 100%;height: 300px">-->
- <div style="width: 100%;height: 300px">
- <img v-if="$i18n.locale=='zh'" src="../../assets/img/ResourceSharing/bannerZh.jpg" alt="" style="width: 100%;height: 100%">
- <img v-else src="../../assets/img/ResourceSharing/bannerEn.jpg" alt="" style="width: 100%;height: 100%">
- </div>
- </div>
- <div v-show="screenIndex==0" class="mainBody">
- <!--<div class="slideShow">
- <!– <el-carousel :interval="5000" arrow="never" indicator-position="none">–>
- <el-carousel :interval="5000" indicator-position="outside" v-if="slideShowImg.length!=0&&slideShowImg.length!=undefined">
- <el-carousel-item v-for="item in slideShowImg" :key="item">
- <!–<div v-if="slideShowImg.length==0||slideShowImg.length==undefined">
- <img src="../../assets/img/ResourceSharing/banner1.jpg" alt="" style="width: 100%; height: 100%;">
- </div>
- <div v-else style="width: 100%; height: 100%;background-color: #ecedef;">
- <!– <img v-if="item.carouselMapAddress==undefined||item.carouselMapAddress==false||item.carouselMapAddress==''" src="../..//assets/img/ResourceSharing/banner1.jpg" alt="" style="width: 100%; height: 100%;">–>
- <!– <img v-else :src="'api/file/pub/'+ item.carouselMapAddress" alt="" style="width: 100%; height: 100%;">–>
- <div style="width: 920px;height:100%; float: left;">
- <img :src="'api/file/pub/'+ item.carouselMapAddress" alt="" style="width: 100%; height: 100%;">
- </div>
- <div style="width: 280px;height:100%;float: right;font-size: 14px;" class="activity">
- <div style="width: 100%;padding-left: 25px;box-sizing: border-box;color: #666666">
- <div v-show="item.name" style="font-size: 22px;font-weight: 600; margin: 40px 0 15px 5px">
- <span>{{item.name}}</span>
- </div>
- </div>
- </div>
- <div style="clear: both;"></div>
- </div>–>
- <div style="width: 100%; height: 100%;background-color: #ecedef;">
- <div style="width: 920px;height:100%; float: left;cursor: pointer;" @click="item.reserveOne==0?toDetails(item):toResourceDetails(item)">
- <img v-if="item.address&&item.address!='null'" :src="'api/file/pub/'+ item.address" alt="" style="width: 100%; height: 100%;">
- <img v-else src="../../assets/img/nationaIntorduction/lavle.png" alt="" style="width: 100%;height: 100%">
- </div>
- <div style="width: 280px;height:100%;float: right;font-size: 14px;" class="activity">
- <div style="width: 100%;padding-left: 25px;box-sizing: border-box;color: #666666;cursor: pointer;" @click="item.reserveOne==0?toDetails(item):toResourceDetails(item)">
- <div v-show="item.name" style="font-size: 22px;font-weight: 600; margin: 40px 0 15px 5px">
- <span>{{item.name}}</span>
- </div>
- <div v-show="item.address" style="font-size: 16px;margin: 10px 0 20px 5px">
- <p style="margin: 0 0 5px 0;font-size: 16px;">{{$t('common.resourceAddress')}}:</p>
- <span>{{item.address}}</span>
- </div>
- <div v-show="item.affiliatedUnitName" style="font-size: 16px;margin: 10px 0 20px 5px">
- <p style="margin: 0 0 5px 0;font-size: 16px;">{{$t('common.resourceSubordinateUnits')}}:</p>
- <span>{{item.affiliatedUnitName}}</span>
- </div>
- </div>
- </div>
- <div style="clear: both;"></div>
- </div>
- </el-carousel-item>
- </el-carousel>
- <div v-else style="width: 100%;height: 300px">
- <img src="../../assets/img/nationaIntorduction/lavle.png" alt="" style="width: 100%;height: 100%">
- </div>
- </div>-->
- <!-- <div style="margin-top: 20px;">-->
- <!-- <Screen v-bind:screen1="screen1" @screenBack="screenBack"></Screen>-->
- <!-- </div>-->
- <!--<div class="researchClassify" >
- <div class="option">
- <div style="display: inline-block;">
- <!– <span v-for="(item,index) in classify1" :class="index==classifySel1?'active':''"
- style="padding: 0 8px;"
- :style="{fontSize: $i18n.locale=='zh'?'16px':'14px'}"s
- :key="item.value"
- @click="dataChangeByType1(item,index)"
- >{{item.label}}</span> –>
- <!–<span :class="classifySel1==-1?'active':''"
- style="font-size: 16px;"
- :style="{marginRight:language=='zh'?'40px':'30px',fontSize:language=='zh'?'16px':'14px'}"
- @click="dataChangeByType1(-1)"
- >{{$t('common.resource')}}</span>
- <span
- v-for="(item,index) in classify1" :class="index==classifySel1?'active':''"
- style="font-size: 16px;"
- :style="{marginRight:language=='zh'?'30px':'16px',fontSize:language=='zh'?'16px':'14px'}"
- :key="item.value"
- @click="dataChangeByType1(item,index)"
- >{{item.label}}</span>–>
- </div>
- <div class="rankSearchPub">
- <div class="rank">
- <span style="font-size: 14px; font-weight: 700; color: rgb(0, 0, 0);margin-right: 20px;">{{$t('common.sort')}}</span>
- <span :class="rankActive==0?'active':''" style="margin-right: 25px;font-size: 14px;"
- @click="dataChangeByTime1">{{$t("common.resourceAccordingTime")}}
- </span>
- <span :class="rankActive==1?'active':''" style="margin-right: 25px;font-size: 14px;"
- @click="dataChangeByHeat1">{{$t("common.resourceAccordingHeat")}}
- </span>
- </div>
- <div class="search" style="width: 200px;margin-top: 0;margin-bottom: 0">
- <!– <input type="text" style="width: 270px;" :placeholder="$t('common.resourceInputName')" onkeydown="dataChangeByName1" v-model="searchText1">–>
- <!– <el-input v-model="searchText1" :placeholder="$t('common.resourceInputName')" @change="dataChangeByName1" style="width: 103px;"></el-input>–>
- <el-input v-model="searchText1" @change="dataChangeByName1" style="width: 200px;"></el-input>
- <i style="position: absolute; right: 0;margin: 18px 8px 0 0;opacity: 0.5;" class="el-icon-search" @click="dataChangeByName1"></i>
- </div>
- <div class="publishing">
- <span style="color: #0091FF;font-size: 12px;line-height: 30px;" @click="toResultsIssue">{{$t("common.resourceWantRelease")}}</span>
- </div>
- </div>
- </div>
- <!–<div style="width: 100%;height: 51px;">
- <div class="rankSearchPub">
- <div class="rank">
- <span :class="rankActive==0?'active':''" style="margin-right: 25px" @click="dataChangeByTime1">{{$t("common.resourceAccordingTime")}}</span>
- <span :class="rankActive==1?'active':''" style="margin-right: 25px" @click="dataChangeByHeat1">{{$t("common.resourceAccordingHeat")}}</span>
- </div>
- <div class="search" style="width: 270px;">
- <!– <input type="text" style="width: 270px;" :placeholder="$t('common.resourceInputName')" onkeydown="dataChangeByName1" v-model="searchText1">–>
- <el-input v-model="searchText1" :placeholder="$t('common.resourceInputName')" @change="dataChangeByName1" style="width: 270px;"></el-input>
- <i style="position: absolute; right: 0;margin: 8px 8px 0 0;opacity: 0.5;" class="el-icon-search" @click="dataChangeByName1"></i>
- </div>
- <div class="publishing">
- <span style="color: #0091FF;font-size: 14px;line-height: 30px;" @click="toResultsIssue">{{$t("common.resourceResultsRelease")}}</span>
- </div>
- </div>
- </div>–>
- </div>-->
- <div class="researchClassify" style="width: 100%;border: 1px solid white;box-sizing: border-box;" >
- <div class="option">
- <div style="display: inline-block;">
- <span :class="classifySel1==-1?'active':''"
- style="font-size: 16px;padding: 0 7px;font-weight: 600;"
- @click="cliRecommend"
- >{{$t('common.resource')}}</span>
- <span v-for="(item,index) in classify1" :class="index==classifySel1?'active':''"
- style="padding: 0 8px;"
- :style="{fontSize: $i18n.locale=='zh'?'16px':'14px'}"s
- :key="item.value"
- @click="dataChangeByType1(item,index)"
- >{{item.label}}</span>
- <!--<span :class="classifySel1==-1?'active':''"
- style="font-size: 16px;"
- :style="{marginRight:language=='zh'?'40px':'30px',fontSize:language=='zh'?'16px':'14px'}"
- @click="dataChangeByType1(-1)"
- >{{$t('common.resource')}}</span>
- <span
- v-for="(item,index) in classify1" :class="index==classifySel1?'active':''"
- style="font-size: 16px;"
- :style="{marginRight:language=='zh'?'30px':'16px',fontSize:language=='zh'?'16px':'14px'}"
- :key="item.value"
- @click="dataChangeByType1(item,index)"
- >{{item.label}}</span>-->
- </div>
- <div class="rankSearchPub">
- <div class="rank">
- <span :class="rankActive==0?'active':''" style="margin-right: 25px;"
- @click="dataChangeByTime1">{{$t("common.resourceAccordingTime")}}
- </span>
- <span :class="rankActive==1?'active':''" style="margin-right: 25px;"
- @click="dataChangeByHeat1">{{$t("common.resourceAccordingHeat")}}
- </span>
- </div>
- <div class="search" style="width: 104px;margin-top: 0;margin-bottom: 0">
- <!-- <input type="text" style="width: 270px;" :placeholder="$t('common.resourceInputName')" onkeydown="dataChangeByName1" v-model="searchText1">-->
- <!-- <el-input v-model="searchText1" :placeholder="$t('common.resourceInputName')" @change="dataChangeByName1" style="width: 103px;"></el-input>-->
- <el-input v-model="searchText1" @change="dataChangeByName1" style="width: 104px;"></el-input>
- <i style="position: absolute; right: 0;margin: 18px 8px 0 0;opacity: 0.5;" class="el-icon-search" @click="dataChangeByName1"></i>
- </div>
- <!--我要发布-->
- <div class="publishing">
- <span style="color: #0091FF;font-size: 12px;line-height: 30px;" @click="toResultsIssue">{{$t("common.resourceWantRelease")}}</span>
- </div>
- </div>
- </div>
- </div>
- <div style="width: 98%; overflow: hidden;margin: auto;">
- <div v-show="cursorList1.length == 0 ||cursorList1.length == undefined" style="text-align: center;height: 60px;border-bottom: 1px solid #eee;border-top: 1px solid #eee;">
- <span v-show="language=='en'" style="line-height: 60px;">no data</span>
- <span v-show="language=='zh'" style="line-height: 60px;">暂无数据</span>
- </div>
- <div v-for="(item,index) in cursorList1" class="cursor"
- :style="{'margin-left':index%3==0 ? '0':'2.5%','margin-right':index%3==2 ? '0':'2.5%'}"
- @click="toDetails(item,index)"
- >
- <div v-if="item.informationVisibleStatus=='Y' && item.reserveFive !== 1" style="width: 60px; height: 44px; position: absolute;top: 0;right: 0;">
- <!-- <span style="background: red">会员</span>-->
- <img v-show="$i18n.locale=='zh'" src="@/assets/img/ResourceSharing/vipzh.png" alt="" style="width: 100%">
- <img v-show="$i18n.locale=='en'" src="@/assets/img/ResourceSharing/vipen.png" alt="" style="width: 100%">
- </div>
- <!--推荐-->
- <div v-if="item.reserveFive && item.reserveFive == 1" style="width: 60px; height: 44px; position: absolute;top: 0;right: 0;z-index: 1">
- <!-- <span style="background: red">会员</span>-->
- <img v-show="$i18n.locale=='zh'" src="@/assets/img/ResourceSharing/recommendzh.png" alt="" style="width: 100%">
- <img v-show="$i18n.locale=='en'" src="@/assets/img/ResourceSharing/recommenden.png" alt="" style="width: 100%">
- </div>
- <div style="box-sizing: border-box;height: 100%">
- <div style="width: 85%; height: 288px; margin: 10px auto 10px auto;text-align: center;">
- <!-- <img :src="item.researchResultCover" alt="">-->
- <div v-if="item['researchResultCover']==undefined||item.researchResultCover==false||item.researchResultCover=='null'||item.researchResultCover==null" style="width: 208px; height: 288px; margin: auto;">
- <div style="width: 208px; height: 288px;position: relative;">
- <img src="@/assets/img/ResourceSharing/backImage.png" alt="" style="width: 100%;height: 100%;position: absolute;top: 0;left: 0;">
- <p style="padding:35px 9px 0 9px;width:100%;height: 135px;box-sizing: border-box;margin: 0;text-align: center;
- position: absolute;top: 0;left: 0;color: #FFFFFF;font-size: 12px;display: flex;align-items: center;justify-content:center;"
- :style="{wordBreak:$i18n.locale=='zh'?'normal;':'keep-all'}">{{item.name}}</p>
- <!--<p style="padding:110px 7px 0 7px;width:100%;height: 150px;box-sizing: border-box;margin: 0;text-align: center;
- position: absolute;top: 115px;left: 0;color: #002C6C;font-size: 12px;word-break:keep-all; ">{{item.affiliatedUnitName}}</p>-->
- </div>
- </div>
- <!-- <img v-if="item['researchResultCover']==undefined||item.researchResultCover==false||item.researchResultCover==''" src="../../assets/img/ResourceSharing/baogao.png" alt="" style="width: 208px; height: 288px;">-->
- <img v-else :src="'api/file/pub/'+ item.researchResultCover" alt="" style="width: 208px; height: 288px;border: 1px solid #ccc;">
- </div>
- <div style="color: #333333">
- <!--<div style="width: 100%;height: 59px;font-weight: 700; font-size: 20px;text-align: center; ">
- <span style="display: inline-block; width: 5%;margin: 14px 2px;overflow: hidden;">《</span>
- <span style="display: inline-block; max-width:85%;margin: 14px 0;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
- {{item.name}}
- </span>
- <span style="display: inline-block; width: 5%;margin: 14px 2px;overflow: hidden;">》</span>
- </div>-->
- <div style="width: 100%;height: 60px;font-weight: 700; font-size: 18px;display: flex; align-items: center;overflow: hidden;padding: 14px 8px;box-sizing: border-box;margin: 14px 0;justify-content: center;">
- <span style="max-width:100%;overflow: hidden;text-align: center;" :style="{wordBreak:$i18n.locale=='zh'?'normal;':'keep-all'}" class="oneLine">
- {{item.name}}
- </span>
- </div>
- <!--影响高42px class cursor-->
- <p style="margin:0 0 14px 0;text-align: center;color: #666666;height: 28.8px;">
- <span style="font-weight: 400; font-size: 16px;display: inline-block; max-width:85%;height: 24.8px;" class="oneLine">{{item.affiliatedUnitName}}</span>
- </p>
- <p style="margin: 14px 0 14px 0;color: #1890FF;text-align: center;height: 21.7px;">
- <span style="font-weight: 400; font-size: 16px;border: 1px solid #1890FF;padding: 2px 14px;box-sizing: border-box;">{{item.researchResultType}}</span>
- </p>
- <p style="margin: 14px 0 16px 0;text-align: center;height: 21px;">
- <span style="color: #666666;font-size: 14px;">{{item.createDate}}</span>
- </p>
- <div style="overflow: hidden;width: 100%;height: 46px;background: #F8F8F8;position: absolute;bottom: 0;left: 0">
- <div style="float: right;line-height: 46px;color: #333333;">
- <img src="@/assets/img/ResourceSharing/collect.png" alt="" style="width: 16px;height: 16px;margin: 0 3px 0 15px;vertical-align: middle;">
- <!-- <i class="el-icon-star-off" style="margin-right: 5px;vertical-align: middle;"></i>-->
- <!-- <span style="margin-right: 15px;vertical-align: middle;">0</span>-->
- <span v-if="item.num=='null' || item.num==null" style="margin-right: 30px;vertical-align: middle;">0</span>
- <span v-else style="margin-right: 30px;vertical-align: middle;">{{item.num}}</span>
- <!-- <i class="el-icon-star-off" style="margin-right: 3px;vertical-align: middle;"></i>-->
- <!-- |<img src="@/assets/img/ResourceSharing/heat.png" alt="" style="width: 16px;height: 16px;margin: 0 3px 0 15px;vertical-align: middle;">-->
- <!-- <span v-if="item.num=='null' || item.num==null" style="margin-right: 30px;vertical-align: middle;">0</span>-->
- <!-- <span v-else style="margin-right: 30px;vertical-align: middle;">{{item.num}}</span>-->
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div style="width: 100%;position: relative;height: 100px;margin-bottom: 30px;" v-show="cursorList1.length != 0 && cursorList1.length != undefined">
- <el-pagination
- background
- style="height: 80px;position: absolute;left: 50%;top: 100px;transform: translate(-50%,-50%);"
- :current-page="page.results.currentPage-0"
- :page-size="page.results.pageSize"
- @current-change="handleCurrentChange1"
- layout="prev, pager, next"
- :page-count="page.results.totalPage-0"
- ></el-pagination>
- </div>
- </div>
- <div v-show="screenIndex==1" class="mainBody">
- <!--<div class="slideShow" >
- <el-carousel :interval="5000" indicator-position="outside" v-if="slideShowImg.length!=0&&slideShowImg.length!=undefined">
- <el-carousel-item v-for="item in slideShowImg" :key="item">
- <!–<div v-if="slideShowImg.length==0||slideShowImg.length==undefined">
- <img src="../../assets/img/ResourceSharing/banner2.png" alt="" style="width: 100%; height: 100%;">
- </div>
- <div v-else style="width: 100%; height: 100%;background-color: #ecedef;">
- <img v-if="item.carouselMapAddress==undefined||item.carouselMapAddress==false||item.carouselMapAddress==''" src="../../assets/img/ResourceSharing/banner2.png" alt="" style="width: 100%; height: 100%;">
- <img v-else :src="'api/file/pub/'+ item.carouselMapAddress" alt="" style="width: 100%; height: 100%;">
- </div>–>
- <div style="width: 100%; height: 100%;background-color: #ecedef;">
- <div style="width: 920px;height:100%; float: left;cursor: pointer;" @click="item.reserveOne==0?toDetails(item):toResourceDetails(item)">
- <img v-if="item.address&&item.address!='null'" :src="'api/file/pub/'+ item.address" alt="" style="width: 100%; height: 100%;">
- <img v-else src="../../assets/img/nationaIntorduction/lavle.png" alt="" style="width: 100%;height: 100%">
- </div>
- <div style="width: 280px;height:100%;float: right;font-size: 14px;" class="activity">
- <div style="width: 100%;padding-left: 25px;box-sizing: border-box;color: #666666;cursor: pointer;" @click="item.reserveOne==0?toDetails(item):toResourceDetails(item)">
- <div v-show="item.name" style="font-size: 22px;font-weight: 600; margin: 40px 0 15px 5px">
- <span>{{item.name}}</span>
- </div>
- <div v-show="item.address" style="font-size: 16px;margin: 10px 0 20px 5px">
- <p style="margin: 0 0 5px 0;font-size: 16px;">{{$t('common.resourceAddress')}}:</p>
- <span>{{item.address}}</span>
- </div>
- <div v-show="item.affiliatedUnitName" style="font-size: 16px;margin: 10px 0 20px 5px">
- <p style="margin: 0 0 5px 0;font-size: 16px;">{{$t('common.resourceSubordinateUnits')}}:</p>
- <span>{{item.affiliatedUnitName}}</span>
- </div>
- </div>
- </div>
- <div style="clear: both;"></div>
- </div>
- </el-carousel-item>
- </el-carousel>
- <div v-else style="width: 100%;height: 300px">
- <img src="../../assets/img/nationaIntorduction/lavle.png" alt="" style="width: 100%;height: 100%">
- </div>
- </div>-->
- <!-- <div style="margin-top: 20px;">-->
- <!-- <Screen v-bind:screen1="screen2" @screenBack="screenBack2"></Screen>-->
- <!-- </div>-->
- <!--<div class="researchClassify" style="width: 100%;">
- <div class="option">
- <div style="display: inline-block;">
- <!–<span :class="classifySel2==-1?'active':''"
- style="font-size: 16px;margin: 0 0 0 10px;padding: 0 10px;font-weight: 600;"
- @click="dataChangeByType2(-1)"
- >{{$t('common.researchResource')}}</span>
- <span v-for="(item,index) in classify2" :class="index==classifySel2?'active':''"
- style=""
- :style="{fontSize: $i18n.locale=='zh'?'16px':'14px',padding: $i18n.locale=='zh'?'0 8px':'0 7px'}"
- :key="item.value"
- @click="dataChangeByType2(item,index)"
- >{{item.label}}</span>–>
- <!–<span :class="classifySel2==-1?'active':''"
- style="font-size: 16px;"
- :style="{marginRight:language=='zh'?'40px':'30px',fontSize:language=='zh'?'16px':'14px'}"
- @click="dataChangeByType2(-1)"
- >{{$t('common.researchResource')}}</span>
- <span
- v-for="(item,index) in classify2" :class="index==classifySel2?'active':''"
- style="font-size: 16px;"
- :style="{marginRight:language=='zh'?'40px':'30px',fontSize:language=='zh'?'16px':'14px'}"
- :key="item.value"
- @click="dataChangeByType2(item,index)"
- >{{item.label}}</span>–>
- </div>
- <div class="rankSearchPub">
- <div class="rank">
- <span style="font-size: 14px; font-weight: 700; color: rgb(0, 0, 0);margin-right: 20px;">{{$t('common.sort')}}</span>
- <span :class="rankActive==0?'active':''" style="margin-right: 25px"
- @click="dataChangeByTime2">{{$t("common.resourceAccordingTime")}}
- </span>
- <span :class="rankActive==1?'active':''" style="margin-right: 25px"
- @click="dataChangeByHeat2">{{$t("common.resourceAccordingHeat")}}
- </span>
- <!–<span :class="rankActive==0?'active':''" style="margin-right: 25px" @click="dataChangeByTime2">{{$t("common.resourceAccordingTime")}}</span>
- <span :class="rankActive==1?'active':''" style="margin-right: 25px" @click="dataChangeByHeat2">{{$t("common.resourceAccordingHeat")}}</span>–>
- </div>
- <div class="search" style="width: 200px;margin-top: 0;margin-bottom: 0">
- <!– <input type="text" style="width: 270px;" :placeholder="$t('common.resourceInputName')" onkeydown="dataChangeByName2" v-model="searchText2">–>
- <!– <el-input v-model="searchText2" :placeholder="$t('common.resourceInputName')" @change="dataChangeByName2" style="width: 103px;"></el-input>–>
- <el-input v-model="searchText2" @change="dataChangeByName2" style="width: 200px;"></el-input>
- <i style="position: absolute; right: 0;margin: 18px 8px 0 0;opacity: 0.5" class="el-icon-search" @click="dataChangeByName2"></i>
- </div>
- <div class="publishing">
- <span style="color: #0091FF;font-size: 12px;" @click="toResourceIssue">{{$t("common.resourceWantRelease")}}</span>
- </div>
- </div>
- </div>
- <!–<div style="width: 100%;height: 51px;">
- <div class="rankSearchPub">
- <div class="rank">
- <span :class="rankActive==0?'active':''" style="margin-right: 25px" @click="dataChangeByTime2">{{$t("common.resourceAccordingTime")}}</span>
- <span :class="rankActive==1?'active':''" style="margin-right: 25px" @click="dataChangeByHeat2">{{$t("common.resourceAccordingHeat")}}</span>
- </div>
- <div class="search" style="width: 270px;">
- <!– <input type="text" style="width: 270px;" :placeholder="$t('common.resourceInputName')" onkeydown="dataChangeByName2" v-model="searchText2">–>
- <el-input v-model="searchText2" :placeholder="$t('common.resourceInputName')" @change="dataChangeByName2" style="width: 270px;"></el-input>
- <i style="position: absolute; right: 0;margin: 8px 8px 0 0;opacity: 0.5" class="el-icon-search" @click="dataChangeByName2"></i>
- </div>
- <div class="publishing">
- <span style="color: #0091FF;font-size: 14px;" @click="toResourceIssue">{{$t("common.resourceResourceRelease")}}</span>
- </div>
- </div>
- </div>–>
- </div>-->
- <div class="researchClassify" style="width: 100%;border: 1px solid white;box-sizing: border-box;">
- <div class="option">
- <div style="display: inline-block;">
- <span :class="classifySel2==-1?'active':''"
- style="font-size: 16px;padding: 0 10px;font-weight: 600;"
- @click="dataChangeByType2(-1)"
- >{{$t('common.researchResource')}}</span>
- <span v-for="(item,index) in classify2" :class="index==classifySel2?'active':''"
- style="padding: 0 8px;"
- :style="{fontSize: $i18n.locale=='zh'?'16px':'14px',padding: $i18n.locale=='zh'?'0 8px':'0 5px'}"
- :key="item.value"
- @click="dataChangeByType2(item,index)"
- >{{item.label}}</span>
- <!--<span :class="classifySel2==-1?'active':''"
- style="font-size: 16px;"
- :style="{marginRight:language=='zh'?'40px':'30px',fontSize:language=='zh'?'16px':'14px'}"
- @click="dataChangeByType2(-1)"
- >{{$t('common.researchResource')}}</span>
- <span
- v-for="(item,index) in classify2" :class="index==classifySel2?'active':''"
- style="font-size: 16px;"
- :style="{marginRight:language=='zh'?'40px':'30px',fontSize:language=='zh'?'16px':'14px'}"
- :key="item.value"
- @click="dataChangeByType2(item,index)"
- >{{item.label}}</span>-->
- </div>
- <div class="rankSearchPub">
- <div class="rank">
- <span :class="rankActive==0?'active':''" style="margin-right: 25px"
- @click="dataChangeByTime2">{{$t("common.resourceAccordingTime")}}
- </span>
- <span :class="rankActive==1?'active':''" style="margin-right: 25px"
- @click="dataChangeByHeat2">{{$t("common.resourceAccordingHeat")}}
- </span>
- <!--<span :class="rankActive==0?'active':''" style="margin-right: 25px" @click="dataChangeByTime2">{{$t("common.resourceAccordingTime")}}</span>
- <span :class="rankActive==1?'active':''" style="margin-right: 25px" @click="dataChangeByHeat2">{{$t("common.resourceAccordingHeat")}}</span>-->
- </div>
- <div class="search" style="width: 104px;margin-top: 0;margin-bottom: 0">
- <el-input v-model="searchText2" @change="dataChangeByName2" style="width: 104px;"></el-input>
- <i style="position: absolute; right: 0;margin: 18px 8px 0 0;opacity: 0.5" class="el-icon-search" @click="dataChangeByName2"></i>
- </div>
- <!--我要发布-->
- <div class="publishing">
- <span style="color: #0091FF;font-size: 12px;" @click="toResourceIssue">{{$t("common.resourceWantRelease")}}</span>
- </div>
- </div>
- </div>
- </div>
- <div style="width: 98%; overflow: hidden;margin: auto;color: #2c5589;">
- <div v-show="cursorList2.length == 0 ||cursorList2.length == undefined" style="text-align: center;height: 60px;border-bottom: 1px solid #eee;border-top: 1px solid #eee;">
- <span v-show="language=='en'" style="line-height: 60px;">no data</span>
- <span v-show="language=='zh'" style="line-height: 60px;">暂无数据</span>
- </div>
- <div v-for="(item,index) in cursorList2" class="cursor" style="height: 525px;"
- :style="{'margin-left':index%3==0 ? '0':'2.5%','margin-right':index%3==2 ? '0':'2.5%'}"
- @click="toResourceDetails(item,index)"
- >
- <div style="box-sizing: border-box;height: 100%">
- <div style="height: 260px;">
- <!-- <img :src="item.researchResourcesMedia" alt="" width="100%">-->
- <img v-if="item.researchResourcesMedia==undefined||item.researchResourcesMedia==false||item.researchResourcesMedia==''||item.researchResourcesMedia=='null'" src="../../assets/img/nationaIntorduction/lavle.png" alt="" style="width: 100%; height: 260px;">
- <img v-else :src="'api/file/pub/'+ item.researchResourcesMedia" alt="" style="width: 100%; height: 260px;">
- </div>
- <div style="color: #333333;margin: 26px 0 0 0;">
- <h4 style="height:26px;font-weight: 700; font-size: 20px; margin: 8px 24px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
- <span>{{item.name}}</span>
- </h4>
- <p style="margin: 8px 24px;color: #666666;height:25px;">
- <i v-show="item.affiliatedUnitName" class="el-icon-office-building" style="margin:5px 3px 0 0;overflow: hidden"></i>
- <span style="font-weight: 400; font-size: 16px;display: inline-block;max-width: 92%" class="oneLine">{{item.affiliatedUnitName}}</span>
- </p>
- <p style="margin: 8px 24px;color: #666666;font-size: 16px;height:25px;">
- <i v-show="item.address" class="el-icon-location-outline" style="margin: 5px 3px 0 0;overflow: hidden;"></i>
- <span style="font-weight: 400; font-size: 16px;display: inline-block;max-width: 92%" class="oneLine">{{item.address}}</span>
- </p>
- <p style="margin: 26px 24px 48px;color: #1890FF;">
- <span style="font-weight: 400; font-size: 16px;border: 1px solid #1890FF;padding: 1px 8px;box-sizing: border-box;">{{item.researchResourcesType}}</span>
- </p>
- <div style="overflow: hidden;width: 100%;height: 46px;background: #F8F8F8;position: absolute;bottom: 0;left: 0">
- <span style="color: #666666;font-size: 14px;line-height: 46px;margin-left: 32px">{{item.createDate}}</span>
- <div style="float: right;line-height: 46px;color: #333333;">
- <img src="@/assets/img/ResourceSharing/collect.png" alt="" style="width: 16px;height: 16px;margin: 0 3px 0 15px;vertical-align: middle;">
- <!-- <i class="el-icon-star-off" style="margin-right: 5px;vertical-align: middle;font-size: 16px;"></i>-->
- <!-- <span style="margin-right: 15px;vertical-align: middle;">1</span>-->
- <span v-if="item.num=='null' || item.num==null" style="margin-right: 30px;vertical-align: middle;">0</span>
- <span v-else style="margin-right: 30px;vertical-align: middle;">{{item.num}}</span>
- <!-- |<i class="el-icon-star-off" style="margin-right: 3px;vertical-align: middle;font-size: 16px;"></i>-->
- <!-- |<img src="@/assets/img/ResourceSharing/heat.png" alt="" style="width: 16px;height: 16px;margin: 0 3px 0 15px;vertical-align: middle;">-->
- <!-- <span v-if="item.num=='null' || item.num==null" style="margin-right: 30px;vertical-align: middle;">0</span>-->
- <!-- <span v-else style="margin-right: 30px;vertical-align: middle;">{{item.num}}</span>-->
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div style="width: 100%;position: relative;height: 100px;margin-bottom: 30px;" v-show="cursorList2.length != 0 && cursorList2.length != undefined">
- <el-pagination
- background
- style="height: 80px;position: absolute;left: 50%;top: 100px;transform: translate(-50%,-50%);"
- :current-page="page.resource.currentPage-0"
- :page-size="page.resource.pageSize"
- @current-change="handleCurrentChange2"
- layout="prev, pager, next"
- :page-count="page.resource.totalPage-0"
- ></el-pagination>
- </div>
- </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 {getDicts,getDictByTypeValue} from '@/api/dict';
- import { getBaseResearchResultViews,gatAllCarouselMapPicture,getRecommendesearchResultList} from "@/api/research/baseResearchResultView";
- import { getBaseResearchResourcesViews} from "@/api/research/resource/baseResearchResourcesView";
- import { formatDate } from "@/utils/formatUtils";
- import Screen from "@/components/screen";
- export default {
- name: "resourceSharing",
- extends: Base,
- components: { Screen },
- 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>
|