1 |
- webpackJsonp([9],{"/e8l":function(t,e){},"0S8L":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("SQ4B"),c=a("b9vf"),n=a("ggl6"),i=a("2Hf+"),l=a("G/xr"),r=a("vGYV"),o=a("qI5z"),h=a("2uFj"),u={name:"TechnologyMore",components:{SearchBar:n.a,TechnologyCard:i.a,TechnologyMG:l.a},data:function(){return{logoTitle:h.a.logoTitle,logo_transparent:h.a.logo_transparent,loading:!1,isLogin:!1,searchVal:"",searchType:"",searchTypeArr:[{name:"技术文章",value:"0",label:"文章"}],articleArr:[],keyword:"",activePage:1,techArticleList:{}}},methods:{loadData:function(){null!=Object(r.K)("user")&&(this.isLogin=!0)},checkLogin:function(){this.checkCreateProjectAuth()},checkCreateProjectAuth:function(){var t=this;this.isLogin?this.isLogin&&s.a.get(c.a.USER.IS_PART.replace("{userId}",this.user.id)).then(function(e){t.$router.push("/project/create")}).catch(function(t){Object(o.a)("error",t.data)}):(console.log("请登录后访问"),Object(o.a)("warning","请登录后访问"))},gotoHome:function(){this.$router.push("/home")},handleTypeClick:function(t){this.handleTabClick(t)},handleTabClick:function(t){this.searchType=t.name,this.activePage=1,this.searchVal="",this.loadTechnologyArticles(1)},loadTechnologyArticles:function(t){var e=this;this.activePage=t;var a={keyword:this.searchVal,activePage:this.activePage,columnFilters:[{field:"type",type:"enums",enums:this.searchTypeArr,value:this.searchType}]};s.a.post(c.a.TECHNOLOGY.GET_MORE,a).then(function(t){console.log(t.data.technicalArticlesPage),t.data.technicalArticlesPage?(e.techArticleList=t.data.technicalArticlesPage,e.searchType="0"):t.data.publicationsPage&&(e.techArticleList=t.data.publicationsPage,e.searchType="1"),console.log(e.techArticleList)})},handlePageChange:function(t){this.activePage=t,this.loadTechnologyArticles(t)},setUserInfo:function(){this.user=Object(r.K)("user")&&Object(r.K)("user").userVO}},mounted:function(){this.loadData(),this.setUserInfo(),this.loadTechnologyArticles(1)}},g={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"technology-container"},[a("div",{staticClass:"nav",attrs:{stype:"height:500px"}},[a("el-row",{staticClass:"search-nav",staticStyle:{padding:"30px 0 20px 0"}},[a("el-col",{attrs:{span:6}},[a("div",{staticClass:"pull-left",staticStyle:{cursor:"pointer"},on:{click:t.gotoHome}},[a("img",{staticClass:"logo-img",attrs:{src:t.logo_transparent}}),t._v(" "),a("span",{staticClass:"logo-title"},[t._v(t._s(t.logoTitle))])])]),t._v(" "),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"search-nav"},[a("div",{attrs:{id:"search-block "}},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTypeClick},model:{value:t.searchType,callback:function(e){t.searchType=e},expression:"searchType"}},t._l(t.searchTypeArr,function(t){return a("el-tab-pane",{key:t.value,attrs:{label:t.label,name:t.value}})}),1),t._v(" "),a("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入内容"},model:{value:t.searchVal,callback:function(e){t.searchVal=e},expression:"searchVal"}},[a("el-button",{staticClass:"search-button",attrs:{slot:"append",type:"primary"},on:{click:function(e){return t.loadTechnologyArticles(1)}},slot:"append"},[t._v("搜索")])],1)],1)])]),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-button",{staticClass:"releaseBtn",attrs:{type:"primary pull-right"},on:{click:function(e){return t.checkLogin()}}},[t._v("免费发布众测需求")])],1)],1),t._v(" "),a("div")],1),t._v(" "),a("div",{staticClass:"container",staticStyle:{margin:"15px auto"}},[a("el-row",[a("el-col",{staticClass:"project-task",attrs:{span:18}},["0"==t.searchType?a("TechnologyCard",{attrs:{techArticleList:t.techArticleList.content},on:{refreshList:function(e){return t.loadTechnologyArticles(t.activePage)}}}):t._e(),t._v(" "),"1"==t.searchType?a("TechnologyMG",{attrs:{techArticleList:t.techArticleList.content}}):t._e(),t._v(" "),t.techArticleList.content&&t.techArticleList.content.length?a("el-pagination",{staticClass:"pull-right",attrs:{"page-size":5,layout:"prev, pager, next",total:t.techArticleList.totalElements,"current-page":t.activePage},on:{"current-change":t.handlePageChange}}):t._e()],1)],1)],1)])},staticRenderFns:[]};var p=a("VU/8")(u,g,!1,function(t){a("/e8l")},null,null);e.default=p.exports},"2Hf+":function(t,e,a){"use strict";var s=a("SQ4B"),c={name:"TechnologyCard",props:["techArticleList"],methods:{gotoDetail:function(t){var e=this;s.a.get("/api/technical/updateranking/"+t.id).then(function(){e.$emit("refreshList"),window.open(t.articlesUrl)})}}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"technology-card"},[t.techArticleList&&t.techArticleList.length?a("div",{staticClass:"card-wrapper"},t._l(t.techArticleList,function(e){return a("el-card",{key:e.id,staticStyle:{"margin-bottom":"15px"}},[a("el-row",[a("el-col",{attrs:{span:6}},[a("img",{staticClass:"pull-left technology-img",attrs:{src:e.photoUrl,alt:"technology-img"}})]),t._v(" "),a("el-col",{staticClass:"technology-detail",attrs:{span:18}},[a("div",{staticClass:"technology-title",on:{click:function(a){return t.gotoDetail(e)}}},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),a("div",{staticClass:"technology-info"},[a("el-row",[a("el-col",{attrs:{span:6}},[t._v("\n 原创:"+t._s(e.author)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:6}},[t._v("\n 来源:"+t._s(e.source)+"\n ")]),t._v(" "),a("el-col",{staticStyle:{color:"rgba(103,103,103,0.7)"},attrs:{span:4}},[t._v("\n "+t._s(e.time_interval)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:8}},[a("span",{staticClass:"reading-count"},[t._v(t._s(e.reading))]),t._v("阅读\n ")])],1)],1)])],1)],1)}),1):a("div",[t._v("\n 暂无内容\n ")])])},staticRenderFns:[]};var i=a("VU/8")(c,n,!1,function(t){a("ZwGg")},"data-v-d400d5da",null);e.a=i.exports},"G/xr":function(t,e,a){"use strict";var s={name:"TechnologyMG",props:["techArticleList"],methods:{gotoDetail:function(t){t.chineseBrief&&window.open(t.chineseBrief)}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"technology-card"},[t.techArticleList&&t.techArticleList.length?a("div",{staticClass:"card-wrapper"},t._l(t.techArticleList,function(e){return a("el-card",{key:e.id,staticStyle:{"margin-bottom":"15px"}},[a("el-row",{nativeOn:{click:function(a){return t.gotoDetail(e)}}},[a("div",{staticClass:"technology-title"},[t._v("\n "+t._s(e.title)+"\n "),e.chineseBrief?a("span",{staticStyle:{color:"rgba(0, 118, 203, 1)",cursor:"pointer"}},[t._v("[chineseBrief]")]):t._e()]),t._v(" "),a("div",{staticClass:"technology-info"},[t._v("\n 发表年份:"+t._s(e.publicTime)+"\n ")]),t._v(" "),a("div",{staticClass:"technology-info"},[t._v("\n 会议:"+t._s(e.conferenceJournal)+"\n ")]),t._v(" "),a("div",{staticClass:"technology-info"},[a("el-row",[t._v("\n 作者:"+t._s(e.authorList)+"\n ")])],1)])],1)}),1):a("div",[t._v("\n 暂无内容\n ")])])},staticRenderFns:[]};var n=a("VU/8")(s,c,!1,function(t){a("tsEt")},"data-v-069fe877",null);e.a=n.exports},ZwGg:function(t,e){},tsEt:function(t,e){}});
|