12 |
- "use strict";(self["webpackChunkapp"]=self["webpackChunkapp"]||[]).push([[1415],{91415:function(t,e,i){i.r(e),i.d(e,{default:function(){return y}});var a=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"titleCard"},[e("div",{staticStyle:{width:"60%"}},[e("h1",[t._v(t._s(t.name))]),e("span",{staticClass:"titleInfo"},[t._v(t._s(t.intro))])]),e("div",{staticStyle:{width:"10%"}},[e("a",{attrs:{href:t.official_link,target:"_blank"}},[e("img",{attrs:{width:"140px",src:t.logoUrl}})])])]),t._l(t.labList,(function(i,a){return e("div",{key:a,staticClass:"labCard"},[e("div",{staticClass:"labCardTitle"},[t._v(t._s(i.name))]),e("el-row",{attrs:{gutter:20}},t._l(i.digitalList,(function(t,i){return e("el-col",{key:i,attrs:{xs:20,sm:11,md:8,lg:6,xl:6}},[e("InfoCard",{staticClass:"infoCard",attrs:{id:t.id,pic:t.imgUrl,name:t.title,info:t.intro,date:null!=t.date?t.date.substring(0,10):"--- --, ----",activity:t.active}})],1)})),1)],1)}))],2)},n=[],s=function(){var t=this,e=t._self._c;return e("el-card",{attrs:{"body-style":{padding:"0px"},shadow:"hover"}},[e("div",{staticClass:"imgWrapper"},[e("img",{staticClass:"image",attrs:{src:null!=t.pic?t.pic:i(45038)}})]),e("div",{staticClass:"textWrapper"},[e("h3",[t._v(t._s(t.name))]),e("p",{staticClass:"textInfo"},[t._v(t._s(t._f("textFilter")(t.info,80)))])]),e("div",{staticStyle:{display:"flex","justify-content":"right"}},[e("el-rate",{attrs:{disabled:""},model:{value:t.activity,callback:function(e){t.activity=e},expression:"activity"}})],1),e("div",{staticClass:"operationWrapper"},[e("el-tag",[t._v(t._s(t.date))]),e("el-button",{staticClass:"button",attrs:{type:"text"},on:{click:function(e){return t.peek()}}},[t._v("查看详情")])],1)])},r=[];function l(t,e){return t&&t.length>e?t.substring(0,e)+"...":t}var o=i(64720),c={name:"InfoCard",components:{"el-card":o.Card,"el-button":o.Button,"el-tag":o.Tag,"el-rate":o.Rate},filters:{textFilter:l},props:{id:{type:String,default:"1"},name:{type:String,default:""},pic:{type:String,default:"tianwen/3.jpg"},info:{type:String,default:""},activity:{type:Number,default:2},date:{type:String,default:"--- --, ----"}},methods:{peek(){this.$router.push("/dataset/"+this.id)}},mounted(){}},d=c,u=i(1001),p=(0,u.Z)(d,s,r,!1,null,"bac3a636",null),f=p.exports,h=i(58482),m={name:"departmentPage",components:{"el-row":o.Row,"el-col":o.Col,InfoCard:f},data(){return{id:"1",pre:"@/assets/department/",name:"信息管理学院",labList:[],logoUrl:"logo.png",official_link:"https://im.nju.edu.cn/main.psp",intro:"南京大学信息管理学院是南京大学历史最悠久的学科之一,也是信息管理教育的优先序列学科,在国内稳居前列,在中国同类学科院系居于引领发展地位,具有良好的品牌专业建设基础和发展优势。"}},mounted(){this.init()},watch:{"$route.params.id":function(t,e){t!==e&&this.init()}},methods:{initId(){this.id=this.$route.params.id},initDepartment(){(0,h.nN)(this.id).then((t=>{this.name=t.data.name,this.logoUrl=t.data.logoUrl,this.intro=t.data.intro}))},initLabList(){const t=this;(0,h.s$)(t.id).then((t=>{console.log(t.data),this.labList=t.data}))},init(){this.initId(),this.initDepartment(),this.initLabList()},getImgUrl(t){return this.name_+"/"+t}}},g=m,v=(0,u.Z)(g,a,n,!1,null,"5e22504c",null),y=v.exports},58482:function(t,e,i){i.d(e,{Yc:function(){return n},nN:function(){return s},s$:function(){return r}});var a=i(75299);function n(){return(0,a.Z)({url:"/faculty/allFaculty",method:"GET"})}function s(t){return(0,a.Z)({url:"/faculty/getFacultyById/"+t,method:"GET"})}function r(t){return(0,a.Z)({url:"/faculty/getLabAndDigitalByFacultyId/"+t,method:"GET"})}},75299:function(t,e,i){var a=i(59521);a.Z.defaults.withCredentials=!0;const n=a.Z.create({baseURL:"/api",withCredentinpmals:!0,timeout:1e5});n.interceptors.response.use((t=>{const e=t.data;if(0!==e.code)return e}),(t=>(console.log("err requestjs err",t),t.response.data.length,Promise.reject(t)))),n.interceptors.request.use((function(t){let e=window.localStorage.getItem("accessToken");return e?(t.headers.accessToken=e,t):t})),e["Z"]=n},45038:function(t,e,i){t.exports=i.p+"img/1.19edf8d5.jpg"}}]);
- //# sourceMappingURL=1415.0a5f2482.js.map
|