1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-94e65f50"],{"0bb4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return s}));var a=n("b775");function i(t){return Object(a["a"])({url:"/info/addinfo",method:"POST",data:t})}function r(t){return Object(a["a"])({url:"/info/getinfolist",method:"GET",params:t})}function o(t){return Object(a["a"])({url:"/info/deleteinfo",method:"POST",data:t})}function s(t){return Object(a["a"])({url:"/info/setinfotop",method:"POST",data:t})}},"15e4":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"team-container"},[n("el-form",{staticClass:"team-form",attrs:{"label-width":"80px"}},[n("el-form-item",{attrs:{label:"公告名称"}},[n("el-input",{staticClass:"team-input",attrs:{placeholder:"请输入公告名称"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"公告内容"}},[n("editor",{ref:"editorChild"})],1),t._v(" "),n("el-button",{staticClass:"team-submit",attrs:{type:"primary"},on:{click:t.addBtn}},[t._v("添加公告")])],1)],1)},i=[],r=(n("7f7f"),n("f27e")),o=n("0bb4"),s={name:"Dashboard",components:{editor:r["a"]},data:function(){return{form:{name:""}}},methods:{reset:function(){this.form.name="",this.$refs.editorChild.clear()},addBtn:function(){var t=this,e={title:this.form.name,contents:this.$refs.editorChild.content};return this.form.name?this.$refs.editorChild.content?void Object(o["a"])(e).then((function(e){t.reset(),t.$message({message:e.msg,type:"success"})})):(this.$message({message:"请添加团队简介",type:"error"}),!1):(this.$message({message:"请添加团队名称",type:"error"}),!1)}}},c=s,l=(n("544d"),n("2877")),u=Object(l["a"])(c,a,i,!1,null,"758ceaf8",null);e["default"]=u.exports},"544d":function(t,e,n){"use strict";var a=n("9f03"),i=n.n(a);i.a},"9f03":function(t,e,n){},be07:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return o}));var a=n("b775");function i(t){return Object(a["a"])({url:"/teams/addteam",method:"post",data:t})}function r(t){return Object(a["a"])({url:"/teams/uploadimg",method:"post",headers:{"Content-Type":"multipart/form-data"},data:t})}function o(t){return Object(a["a"])({url:"/teams/editteaminfo",method:"post",data:t})}},f27e:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("editor",{key:t.tinymceFlag,attrs:{id:"tinymceEditor",init:t.tinymceInit},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1)},i=[],r=(n("e562"),n("030f"),n("ca72")),o=(n("34de"),n("0902"),n("07d1"),n("64d8"),n("84ec"),n("bc54"),n("0a9d"),n("3154"),n("4ea8"),n("4237"),n("be07")),s={name:"TinymceEditor",components:{editor:r["a"]},data:function(){return{tinymceFlag:1,content:"",tinymceInit:{}}},created:function(){this.tinymceInit={skin_url:"/tinymce/skins/ui/oxide",language_url:"/tinymce/langs/zh_CN.js",language:"zh_CN",height:600,browser_spellcheck:!0,branding:!1,statusbar:!1,paste_data_images:!0,menubar:!1,plugins:"link lists image code table paste preview fullscreen",toolbar:"fontselect fontsizeselect forecolor backcolor bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | quicklink h2 h3 blockquote table numlist bullist preview fullscreen | image link",images_upload_handler:function(t,e,n){var a,i=this;a=new FormData,a.append("file",t.blob()),Object(o["c"])(a).then((function(t){200===t.error_code?e(t.location):i.$message({message:t.msg,type:"error"})}))}}},activated:function(){this.tinymceFlag++},methods:{clear:function(){this.content=""},setContent:function(t){this.content=t}}},c=s,l=n("2877"),u=Object(l["a"])(c,a,i,!1,null,null,null);e["a"]=u.exports}}]);
|