(window["webpackjsonp"]=window["webpackjsonp"]||[]).push([["chunk-08e0686f"],{"008d":function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,"\n.group-component[data-v-0c3ad249] {\n margin: 0 auto;\n width: 1000px;\n}\n",""])},1614:function(t,e,a){e=t.exports=a("2350")(!1),e.push([t.i,"\n.admin-content-warp {\n position: relative;\n width: 1000px;\n margin: 0 auto;\n}\n",""])},a11b:function(t,e,a){"use strict";a.r(e);a("7f7f");var n=a("44de"),i={name:"article-view",components:{},props:{content:string},data:function(){return{}},methods:{}},o=function(){var t=this,e=t.$createelement,a=t._self._c||e;return a("div",{staticclass:"admin-content-warp"},[a("div",{staticclass:"content-warp",staticstyle:{border:"1px solid #dedede"},domprops:{innerhtml:t._s(t.content)}})])},s=[],r=a("2455");function c(t){a("fb30")}var u=!1,l=c,d=null,h=null,p=object(r["a"])(i,o,s,u,l,d,h),v=p.exports,m=a("0b1a"),f={name:"group",components:{ueditor:n["a"],articleview:v,editortool:m["a"]},data:function(){return{status:!1,tabvalue:1,articledata:{articleid:"",content:""}}},watch:{$route:function(){this.$route.meta.category&&(this.getgrouparticle(),this.status=!1)}},computed:{},mounted:function(){this.getgrouparticle()},methods:{changeeditor:function(t){console.log(t)},ontabclick:function(t){var e=this;this.status=!1,this.$nexttick((function(){e.getgrouparticle(t)}))},getgrouparticle:function(t){var e=this,a=(new date).getfullyear(),n="";n=this.$route.name==="hr-"+a?"/manage/recruit/new":"/manage/article/get",this.$ajaxpost(n,{category:this.$route.meta.category||"",language:t||this.tabvalue||1}).then((function(t){1e4===t.code&&(e.articledata=t.data||{})})).catch((function(t){console.info(t)}))},onuechange:function(t){this.articledata.content=t},onarticleid:function(t){this.articledata.content=t.content||"",this.articledata.articleid=t.articleid||""},savearticle:function(){var t=this;if(!this.articledata.content)return this.$message.error("请输入内容"),!1;var e="";e=this.$route.name!=="hr-"+this.$thisyear?"/manage/article/saveorupdate":"/manage/recruit/new/saveorupdate",this.$ajaxpost(e,{articleid:this.articledata.articleid,category:this.$route.meta.category||1,content:this.articledata.content,language:this.tabvalue}).then((function(e){1e4===e.code?(t.$message.success(e.msg||"提交成功"),t.status=!1,t.getgrouparticle()):30001===e.code&&t.$message.error("登录已过期,请保存数据后,退出重新登录")})).catch((function(t){console.info(t)}))}}},g=function(){var t=this,e=t.$createelement,a=t._self._c||e;return a("div",{staticclass:"group-component"},[a("router-view"),t._v(" "),a("tabs",{directives:[{name:"show",rawname:"v-show",value:t.$route.name!=="hr-"+t.$thisyear,expression:"$route.name!=='hr-'+$thisyear"}],attrs:{animated:!1},on:{"on-click":t.ontabclick},model:{value:t.tabvalue,callback:function(e){t.tabvalue=e},expression:"tabvalue"}},[a("tabpane",{attrs:{name:"1",label:"中文版"}}),t._v(" "),a("tabpane",{attrs:{name:"2",label:"英文版"}})],1),t._v(" "),a("row",{staticstyle:{"padding-bottom":"10px"},attrs:{type:"flex"}},[a("div",{staticclass:"btn-wrap"},[a("button",{directives:[{name:"show",rawname:"v-show",value:t.status,expression:"status"}],attrs:{type:"primary",icon:"ios-paper-plane"},on:{click:t.savearticle}},[t._v("保存")]),t._v(" "),a("button",{directives:[{name:"show",rawname:"v-show",value:!t.status,expression:"!status"}],attrs:{type:"primary"},on:{click:function(e){t.status=!t.status}}},[t._v("编辑")])],1)]),t._v(" "),a("ueditor",{directives:[{name:"show",rawname:"v-show",value:t.status,expression:"status"}],ref:"ue",attrs:{isimage:!0,content:t.articledata.content},on:{onueditor:t.onuechange,getarticleid:t.onarticleid}}),t._v(" "),a("articleview",{directives:[{name:"show",rawname:"v-show",value:!t.status,expression:"!status"}],attrs:{content:t.articledata.content}})],1)},w=[];function b(t){a("bcea")}var x=!1,$=b,y="data-v-0c3ad249",_=null,a=object(r["a"])(f,g,w,x,$,y,_);e["default"]=a.exports},bcea:function(t,e,a){var n=a("008d");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("0aaab97b",n,!0,{})},fb30:function(t,e,a){var n=a("1614");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("62ddf15e",n,!0,{})}}]);