You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
5.1 KiB
1 line
5.1 KiB
2 years ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f5259418"],{"14a1":function(t,e,i){"use strict";i("20c5")},"20c5":function(t,e,i){},"9ea2":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"container"},[i("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activitiesTypeListname,callback:function(e){t.activitiesTypeListname=e},expression:"activitiesTypeListname"}},t._l(t.activitiesTypeList,(function(t){return i("el-tab-pane",{key:t.activitiesTypeId,attrs:{label:t.activitiesTypeName,name:t.activitiesTypeName}})})),1),i("div",{staticClass:"toolbar"},[i("el-button",{attrs:{icon:"el-icon-plus",size:"small",type:"primary"},on:{click:function(e){return t.navTodymic()}}},[t._v("新建")])],1),i("el-table",{attrs:{data:t.activitiesList,size:"medium","empty-text":"暂无数据",border:""}},[i("el-table-column",{attrs:{align:"center",prop:"startDate",label:"时间","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[t._v(t._s(t.getTimes(e.row.startDate)))])]}}])}),i("el-table-column",{attrs:{align:"center",prop:"activitiesLogo",label:"封面图","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[""!==e.row.activitiesLogo?i("img",{attrs:{src:e.row.activitiesLogo,width:"50px",height:"50px"}}):t._e()]}}])}),i("el-table-column",{attrs:{align:"center",prop:"activitiesName",label:"标题","min-width":"200","show-overflow-tooltip":""}}),i("el-table-column",{attrs:{align:"center",prop:"remarks",label:"简介","min-width":"200","show-overflow-tooltip":""}}),i("el-table-column",{attrs:{align:"center",label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-link",{attrs:{underline:!1,type:"primary"},on:{click:function(i){return t.compileCourse(e.row.activitiesId)}}},[t._v("编辑")]),i("el-popconfirm",{attrs:{title:"您确定要删除吗?"},on:{onConfirm:function(i){return t.delCourse(e.row,e.$index)}}},[i("el-link",{staticStyle:{"margin-left":"10px"},attrs:{slot:"reference",underline:!1,type:"danger"},slot:"reference"},[t._v("删除")])],1)]}}])})],1)],1)},n=[],c=(i("a434"),i("159b"),i("b0c0"),i("cb99")),r={name:"dynamic",data:function(){return{type:2,activitiesTypeListname:"最新动态",activitiesList:[],activitiesTypeList:[]}},methods:{compileCourse:function(t){this.$router.push({path:"adddynamic",query:{id:t}})},navTodymic:function(){this.$router.push({name:"adddynamic",params:{type:this.type}})},delCourse:function(t,e){var i=this;this.activitiesList.splice(e,1),Object(c["a"])(t.activitiesId).then((function(t){200==t.code&&i.$message.success("删除成功!")}))},handleClick:function(t){var e=this;this.activitiesTypeList.forEach((function(i){i.activitiesTypeName==t.name?(e.type=i.activitiesTypeId,i.active=!0,Object(c["b"])(i.activitiesTypeId).then((function(t){e.activitiesList=t.data}))):i.active=!1}))},getTimes:function(t){var e=new Date(t),i=e.getFullYear(),a=e.getMonth()+1;a=a<10?"0"+a:a;var n=e.getDate(),c=e.getHours();c=c<10?"0"+c:c;var r=e.getMinutes();r=r<10?"0"+r:r;var s=e.getSeconds();return s=s<10?"0"+s:s,i+"年"+a+"月"+n+"日"}},created:function(){var t=this;Object(c["c"])().then((function(e){console.log("分类",e),t.activitiesTypeList=e.data.list;for(var i=0;i<t.activitiesTypeList.length;i++)t.activitiesTypeList[i].activitiesTypeName==t.activitiesTypeListname&&Object(c["b"])(t.activitiesTypeList[i].activitiesTypeId).then((function(e){t.activitiesList=e.data,console.log(t.activitiesList)}))}))}},s=r,o=(i("14a1"),i("2877")),l=Object(o["a"])(s,a,n,!1,null,"db09ab2c",null);e["default"]=l.exports},a434:function(t,e,i){"use strict";var a=i("23e7"),n=i("23cb"),c=i("a691"),r=i("50c4"),s=i("7b0b"),o=i("65f0"),l=i("8418"),u=i("1dde"),d=i("ae40"),p=u("splice"),f=d("splice",{ACCESSORS:!0,0:0,1:2}),v=Math.max,m=Math.min,b=9007199254740991,h="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!p||!f},{splice:function(t,e){var i,a,u,d,p,f,y=s(this),g=r(y.length),T=n(t,g),w=arguments.length;if(0===w?i=a=0:1===w?(i=0,a=g-T):(i=w-2,a=m(v(c(
|