(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-03d7540c"],{"129d":function(t,e,a){"use strict";a("a210")},"3ab6":function(t,e,a){},9973:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-pagination",{attrs:{background:"","page-size":t.page_size?t.page_size:20,"current-page":t.current,"page-sizes":[10,20,30,40,50,60,70,80,90,100],layout:"total,sizes,prev, pager, next",total:t.total},on:{"current-change":t.getData,"size-change":t.handleSizeChange}})},n=[],s={data:function(){return{page:1}},props:{total:"",page_size:"",current:""},methods:{getData:function(t){this.page=t,this.$emit("pageChange")},handleSizeChange:function(t){this.$emit("pageChange",t)}},created:function(){}},l=s,r=(a("129d"),a("5d22")),o=Object(r["a"])(l,i,n,!1,null,null,null);e["a"]=o.exports},a210:function(t,e,a){},aff5:function(t,e,a){"use strict";a("3ab6")},f922:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",[t._m(0),a("div",{staticClass:"content"},[a("div",{staticClass:"filter"},[a("el-form",{attrs:{size:"small","label-width":"70px",inline:!0,"label-position":"left"}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入标题"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.search}},[t._v("搜索")])],1),a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:t.addActivity}},[t._v("发布活动")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.list,height:"50vh",border:"","default-expand-all":"","row-key":"id"}},[a("el-table-column",{attrs:{prop:"img",label:"活动海报"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("img",{attrs:{src:t.row.img,alt:"",height:"80",width:"60"}})]}}])}),a("el-table-column",{attrs:{prop:"name",label:"活动名称",width:"300px"}}),a("el-table-column",{attrs:{prop:"journal_name",label:"发布单位"}}),a("el-table-column",{attrs:{prop:"publish_time",label:"主办方"}}),a("el-table-column",{attrs:{prop:"",label:"承办方"}}),a("el-table-column",{attrs:{prop:"begin_time",label:"活动时间"}}),a("el-table-column",{attrs:{prop:"address",label:"活动地址"}}),a("el-table-column",{attrs:{prop:"desc",label:"活动简介",width:"500"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"desc"},[t._v(t._s(e.row.desc))])]}}])}),a("el-table-column",{attrs:{prop:"zip",width:"150",label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"edit",attrs:{type:"text"},on:{click:function(a){return t.edit(e.row)}}},[t._v("编辑")]),a("el-button",{staticClass:"del",attrs:{type:"text"},on:{click:function(a){return t.del(e.row.id)}}},[t._v("删除")])]}}])})],1),a("Page",{ref:"pageButton",attrs:{current:t.form.page,page_size:t.form.page_size,total:t.total},on:{pageChange:t.gopage}})],1)])},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("p",[a("span",[t._v("信息管理>")]),t._v("活动管理")])}],s=a("9973"),l=a("5d89"),r={components:{Page:s["a"],fuEditor:l["a"]},data:function(){return{form:{name:"",page:1,page_size:20},total:1,list:[{name:"2333"}],loading:!1,rules:{name:[{required:!0,message:"请输入标题",trigger:"blur"}]}}},methods:{search:function(){this.form;this.getData()},openDiag:function(){this.form1={},this.dialogVisible=!0,this.dialogTitle="发送消息"},addActivity:function(){this.$router.push({path:"/learning/activity/add"})},gopage:function(t){t&&(this.form.page_size=t),this.form.page=this.$refs.pageButton.page,this.getData()},getData:function(){var t=this,e=this.form;this.loading=!0,e.type=0,this.$api.getActivityList(e).then((function(e){t.list=e.data.data.list,t.loading=!1}))},del:function(t){var e=this;this.$confirm("确定删除吗","提示",{type:"warning"}).then((function(){e.$api.delActivity({id:t}).then((function(t){e.$message({message:"删除成功",type:"success"}),e.getData()}))}))},edit:function(t){this.$router.push({path:"/learning/activity/add",query:{id:t.id}})},save:function(){var t=this;this.$refs["form1"].validate((function(e){if(e){var a=t.form1,i=t.form1.id,n=t.$router.query.type;a.type=n,a.receiver_id=JSON.stringify(a.receiver_id),i?t.$api.editMessage(a).then((function(e){0==e.data.code?t.$message({type:"success",message:"保存成功!"}):t.$message.error("保存失败!"),t.getData(),t.dialogVisible=!1})):t.$api.addMessage(a).then((function(e){0==e.data.code?t.$message({type:"success",message:"保存成功!"}):t.$message.error("保存失败!"),t.getData(),t.dialogVisible=!1}))}}))}},created:function(){this.getData()}},o=r,c=(a("aff5"),a("5d22")),u=Object(c["a"])(o,i,n,!1,null,null,null);e["default"]=u.exports}}]); //# sourceMappingURL=chunk-03d7540c.d1a4b5e6.js.map