2.3c408bcc116cdd442a53.js 15 KB

1
  1. webpackJsonp([2],{"2Hf+":function(t,e,a){"use strict";var i=a("SQ4B"),s={name:"TechnologyCard",props:["techArticleList"],methods:{gotoDetail:function(t){var e=this;i.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 c=a("VU/8")(s,n,!1,function(t){a("soet")},"data-v-41399e68",null);e.a=c.exports},Dh9S:function(t,e){},"F/FT":function(t,e){},FmoD:function(t,e){},"G/xr":function(t,e,a){"use strict";var i={name:"TechnologyMG",props:["techArticleList"],methods:{gotoDetail:function(t){t.chineseBrief&&window.open(t.chineseBrief)}}},s={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")(i,s,!1,function(t){a("f6kb")},"data-v-49f5c90b",null);e.a=n.exports},IoJw:function(t,e){},f6kb:function(t,e){},iWA6:function(t,e){t.exports="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QN6aHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjUtYzAxNCA3OS4xNTE0ODEsIDIwMTMvMDMvMTMtMTI6MDk6MTUgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG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FAQMHBgEAAwADAQAAAAAAAAAAAAAAAQMFAAIEBhAAAgAEBQICCAcAAAAAAAAAAQIREgMEACExEwUiBlGhQWFxgZHBQhRSYoIjMwcXEQABAwMABgoDAAAAAAAAAAABABECITEDQVFh8RIE8HGBkbHB0eEUBVJicv/aAAwDAQACEQMRAD8A3jkO5ryp1UrRXQRC9R+WLGLk4i8lEzc9M1EXXPX3dfOpHb4lX/U+KGLkcRvNS832WYWxv3pZZd4Xl5XuqVSy2OSs13UoKzFXGkhJzBJy9hw3JykISAEnjLSk4ufyZIykYtKGjXRX0+RZqAgxhE6bvj+RSME4WO5AZyY7/JC0S91bGq9WsWLuvS7AQVoD0YZJoFmFgkQecXJlc6Uh41pO7ORoTP1IEmLGfNl+rWON8pcRP6nxS8I4TMVrMddlNlcVqlorBHYFm6lpV3GR/EjqvljpysJe48wuTDxGPtLyKGva1rbKDcAUFcmUvQuVBOph+5rjXiMrV7Y+iJjGN6dkvVKOPr7nM3dS3U1LYUiz1ESoVFNep2KxLwCgk9UcYb1vw7NfcgLHhqOLbZq7VLbEWhNLM0u1vSQjlLHP45+OG16MkU3OyCvNqAh6/wCXch7o4FejIlt7rQv6x2v8/wC9Ybcftqs0u5p9rUhNHKGumfliH9i/yMXWPEL0n1TfFzfydf4lf//Z"},mLJg:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("SQ4B"),s=a("b9vf"),n=a("ggl6"),c=a("2Hf+"),l=a("G/xr"),o={name:"CrowdTool",props:["caseList"],methods:{gotoDetail:function(t){window.open(t.endPointVO.token)}}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"technology-card"},[t.caseList&&t.caseList.length?a("div",{staticClass:"card-wrapper"},t._l(t.caseList,function(e){return a("el-card",{key:e.id,staticStyle:{"margin-bottom":"15px"}},[a("el-row",[a("el-col",{attrs:{span:21}},[a("div",{staticClass:"technology-title"},[t._v("\n "+t._s(e.title)+"\n"),t._v(" "),a("el-tag",{staticClass:"case-status",attrs:{size:"medium"}},[t._v(t._s(e.serviceType))])],1),t._v(" "),a("div",{staticClass:"technology-info"},[t._v("\n 任务描述:"+t._s(e.description)+"\n ")]),t._v(" "),a("div",{staticClass:"technology-info"},[t._v("\n 发布时间:"+t._s(t.$moment(e.createTime).format("YYYY-MM-DD HH:mm:ss"))+"\n ")]),t._v(" "),a("div",{staticClass:"technology-info"},[t._v("\n 截至时间:"+t._s(t.$moment(e.dateTime).format("YYYY-MM-DD HH:mm:ss"))+"\n ")])]),t._v(" "),a("el-col",{attrs:{span:3}},[a("div",{on:{click:function(a){return t.gotoDetail(e)}}},[a("span",{staticStyle:{"font-size":"14px"}},[t._v("查看详情")]),t._v(" "),a("i",{staticClass:"el-icon-arrow-right get-info-btn"})])])],1)],1)}),1):a("div",[t._v("\n 暂无内容\n ")])])},staticRenderFns:[]};var h=a("VU/8")(o,r,!1,function(t){a("IoJw")},"data-v-0c3efdd8",null).exports,A={name:"CrowdTool",props:["toolList"],methods:{gotoDetail:function(t){window.open(t.linkUrl)}}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"technology-card"},[t.toolList&&t.toolList.length?a("div",{staticClass:"card-wrapper"},t._l(t.toolList,function(e){return a("el-card",{key:e.id,staticStyle:{"margin-bottom":"15px"}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("img",{staticClass:"pull-left technology-img",attrs:{src:e.photoUrl,alt:"tool-img"}})]),t._v(" "),a("el-col",{staticClass:"technology-detail",attrs:{span:17}},[a("div",{staticClass:"technology-title"},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),a("div",[t._v("简介:"+t._s(e.description))]),t._v(" "),a("div",{staticClass:"technology-info"},[a("div",[t._v("开发:"+t._s(e.owner))])])]),t._v(" "),a("el-col",{attrs:{span:3}},[a("div",{on:{click:function(a){return t.gotoDetail(e)}}},[a("span",{staticStyle:{"font-size":"14px"}},[t._v("查看详情")]),t._v(" "),a("i",{staticClass:"el-icon-arrow-right get-info-btn"})])])],1)],1)}),1):a("div",[t._v("\n 暂无内容\n ")])])},staticRenderFns:[]};var u=a("VU/8")(A,v,!1,function(t){a("Dh9S")},"data-v-642648f7",null).exports,d={name:"HotArticle",props:["articleArr"],data:function(){return{}},methods:{gotoArticle:function(t){var e=this;i.a.get("/api/technical/updateranking/"+t.id).then(function(){e.$emit("refreshHotArticle"),window.open(t.articlesUrl)})},goToMore:function(){this.$router.push({name:"TechnologyMore"})}},mounted:function(){}},p={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"hot-article"},[i("el-card",{staticClass:"popular-card"},[i("div",{staticClass:"popular-header",attrs:{slot:"header"},slot:"header"},[i("img",{staticClass:"popular-header-img",attrs:{src:a("iWA6"),alt:"hot-crowd"}}),t._v(" "),i("span",{staticClass:"popular-header-title"},[t._v("热门文章")]),t._v(" "),i("el-button",{staticStyle:{float:"right",padding:"3px 0","line-height":"25px"},attrs:{type:"text"},on:{click:function(e){return t.goToMore()}}},[t._v("more>>")])],1),t._v(" "),i("div",{staticClass:"popular-list"},t._l(t.articleArr,function(e,a){return a<7?i("el-row",{key:e.id,staticClass:"popular-list-item"},[i("el-col",{attrs:{span:24}},[i("img",{staticClass:"pull-left project-logo-img",attrs:{src:e.photoUrl,alt:"logo-project"}}),t._v(" "),i("div",{staticStyle:{"margin-left":"55px"}},[i("div",{staticClass:"list-item-title",on:{click:function(a){return t.gotoArticle(e)}}},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),i("div",{staticClass:"project-Tester-reading"},[t._v("\n "+t._s(e.reading)+"阅读\n ")])])])],1):t._e()}),1)])],1)},staticRenderFns:[]};var g=a("VU/8")(d,p,!1,function(t){a("F/FT")},null,null).exports,f=a("/grZ"),m=a("vGYV"),_=a("qI5z"),y=a("2uFj"),C={name:"Technology2.0",components:{SearchBar:n.a,TechnologyCard:c.a,TechnologyMG:l.a,PopularProject:f.a,HotActicle:g,CrowdCase:h,CrowdTool:u},data:function(){return{logoTitle:y.a.logoTitle,TECHNOLOGY_DISPLAY:y.a.TECHNOLOGY_DISPLAY,loading:!1,isLogin:!1,searchVal:"",searchType:y.a.technology_searchType,searchTypeArr:y.a.technology_searchTypeArr,articleArr:[],keyword:"",activePage:1,techArticleList:{}}},methods:{loadData:function(){null!=Object(m.J)("user")&&(this.isLogin=!0)},checkLogin:function(){this.checkCreateProjectAuth()},checkCreateProjectAuth:function(){var t=this;this.isLogin?this.isLogin&&i.a.get(s.a.USER.IS_PART.replace("{userId}",this.user.id)).then(function(e){t.$router.push("/project/create")}).catch(function(t){Object(_.a)("error",t.data)}):Object(_.a)("warning","请登录后访问")},showLoading:function(){this.loading=!0},hideLoading:function(){this.loading=!1},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)},loadHotArticles:function(){var t=this;i.a.get("/api/technical/ranking").then(function(e){t.articleArr=e.data.technicalArticlesPage.content})},loadTechnologyArticles:function(t){var e=this;this.showLoading();this.activePage=t;var a={keyword:this.searchVal,activePage:this.activePage,columnFilters:[{field:"type",type:"enums",enums:this.searchTypeArr,value:this.searchType}],sortType:"2"===this.searchType||"3"===this.searchType?"id":"publicTime"};i.a.post("/api/technical/articles",a).then(function(t){var a=t.data,i=a.technicalArticlesPage,s=a.publicationsPage,n=a.toolVOPage,c=a.taskVOS;e.techArticleList=i||s||n||c,e.hideLoading()})},handlePageChange:function(t){this.activePage=t,this.loadTechnologyArticles(t)},setUserInfo:function(){this.user=Object(m.J)("user")&&Object(m.J)("user").userVO}},mounted:function(){this.loadData(),this.setUserInfo(),this.loadHotArticles(),this.loadTechnologyArticles(1)}},T={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"technology-container"},[i("div",{staticClass:"nav",attrs:{stype:"height:500px"}},[i("el-row",{staticClass:"search-nav",staticStyle:{padding:"30px 0 20px 0"}},[i("el-col",{attrs:{span:6}},[i("div",{staticClass:"pull-left",staticStyle:{cursor:"pointer"},on:{click:t.gotoHome}},[i("img",{staticClass:"logo-img",attrs:{src:a("mIp/")}}),t._v(" "),i("span",{staticClass:"logo-title"},[t._v(t._s(t.logoTitle))])])]),t._v(" "),i("el-col",{attrs:{span:12}},[i("div",{staticClass:"search-nav"},[i("div",{attrs:{id:"search-block "}},[i("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 i("el-tab-pane",{key:t.value,attrs:{label:t.label,name:t.value}})}),1),t._v(" "),i("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入内容"},model:{value:t.searchVal,callback:function(e){t.searchVal=e},expression:"searchVal"}},[i("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(" "),i("el-col",{attrs:{span:6}},[i("el-button",{staticClass:"releaseBtn",attrs:{type:"primary pull-right"},on:{click:function(e){return t.checkLogin()}}},[t._v("免费发布众测需求")])],1)],1),t._v(" "),i("el-tabs",{staticClass:"square-tab",on:{"tab-click":t.handleTabClick},model:{value:t.searchType,callback:function(e){t.searchType=e},expression:"searchType"}},t._l(t.searchTypeArr,function(e){return i("el-tab-pane",{key:e.value,attrs:{name:e.value}},[i("span",{staticStyle:{"font-size":"18px"},attrs:{slot:"label"},slot:"label"},[t._v(t._s(e.name))])])}),1),t._v(" "),i("div")],1),t._v(" "),i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"container",staticStyle:{margin:"15px auto"}},[i("el-row",[i("el-col",{staticClass:"project-task",attrs:{span:18}},["2"==t.searchType?i("CrowdTool",{attrs:{toolList:t.techArticleList.content}}):t._e(),t._v(" "),"3"==t.searchType?i("CrowdCase",{attrs:{caseList:t.techArticleList.content},on:{refreshList:function(e){return t.loadTechnologyArticles(t.activePage)}}}):t._e(),t._v(" "),"0"==t.searchType?i("TechnologyCard",{attrs:{techArticleList:t.techArticleList.content},on:{refreshList:function(e){return t.loadTechnologyArticles(t.activePage)}}}):t._e(),t._v(" "),"1"==t.searchType?i("TechnologyMG",{attrs:{techArticleList:t.techArticleList.content}}):t._e(),t._v(" "),t.techArticleList.content&&t.techArticleList.content.length?i("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),t._v(" "),t.TECHNOLOGY_DISPLAY.hot_article?i("el-col",{staticClass:"popular-modules",attrs:{span:6}},[i("HotActicle",{attrs:{articleArr:t.articleArr},on:{refreshHotArticle:t.loadHotArticles}})],1):t._e()],1)],1)])},staticRenderFns:[]};var b=a("VU/8")(C,T,!1,function(t){a("FmoD")},null,null);e.default=b.exports},soet:function(t,e){}});