text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-11c4c994"],{"0da3":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var a=i("b775");function n(e){return Object(a["a"])({url:"/fanyibaidu/translate",method:"post",data:e})}},"1c18":function(e,t,i){},2498:function(e,t,i){"use strict";var a=i("b85c"),n=[];function l(){return window.tinymce}var o=function(e,t){var i=document.getElementById(e),o=t||function(){};if(!i){var s=document.createElement("script");s.src=e,s.id=e,document.body.appendChild(s),n.push(o);var r="onload"in s?c:u;r(s)}function c(t){t.onload=function(){this.onerror=this.onload=null;var e,i=Object(a["a"])(n);try{for(i.s();!(e=i.n()).done;){var l=e.value;l(null,t)}}catch(o){i.e(o)}finally{i.f()}n=null},t.onerror=function(){this.onerror=this.onload=null,o(new Error("Failed to load "+e),t)}}function u(e){e.onreadystatechange=function(){if("complete"===this.readyState||"loaded"===this.readyState){this.onreadystatechange=null;var t,i=Object(a["a"])(n);try{for(i.s();!(t=i.n()).done;){var l=t.value;l(null,e)}}catch(o){i.e(o)}finally{i.f()}n=null}}}i&&o&&(l()?o(null,i):n.push(o))};t["a"]=o},"276c":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"filter-container"},[i("el-row",[i("el-col",{attrs:{span:18}},[i("el-input",{staticClass:"filter-item",staticStyle:{width:"200px","margin-right":"10px"},attrs:{placeholder:"关键字"},model:{value:e.listQuery.key,callback:function(t){e.$set(e.listQuery,"key",t)},expression:"listQuery.key"}}),i("el-select",{staticClass:"filter-item",staticStyle:{width:"140px","margin-right":"10px"},attrs:{placeholder:"排序"},model:{value:e.listQuery.sort,callback:function(t){e.$set(e.listQuery,"sort",t)},expression:"listQuery.sort"}},e._l(e.sortOptions,(function(e){return i("el-option",{key:e.key,attrs:{label:e.label,value:e.key}})})),1),i("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v(" 搜索 ")])],1),i("el-col",{attrs:{span:6}},[i("el-button",{directives:[{name:"waves",rawName:"v-waves"},{name:"permission",rawName:"v-permission",value:["exit"],expression:"['exit']"}],staticClass:"filter-item",attrs:{loading:e.downloadLoading,type:"primary",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v(" 导出 ")])],1)],1)],1),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":""},on:{"sort-change":e.sortChange}},[i("el-table-column",{attrs:{label:"ID",prop:"id",sortable:"custom",align:"center",width:"80","class-name":e.getSortClass("id")},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("span",[i("el-checkbox",{attrs:{label:a.id},on:{change:e.changevalue},model:{value:e.checkArr,callback:function(t){e.checkArr=t},expression:"checkArr"}})],1)]}}])}),i("el-table-column",{attrs:{label:"公司",width:"400px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("span",[i("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:a.companyname,callback:function(t){e.$set(a,"companyname",t)},expression:"row.companyname"}})],1)]}}])}),i("el-table-column",{attrs:{label:"内容",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:a.content,callback:function(t){e.$set(a,"content",t)},expression:"row.content"}})]}}])}),i("el-table-column",{attrs:{label:"最后操作时间",width:"200px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("span",[e._v(e._s(e._f("parseTime")(a.time,"{y}-{m}-{d} {h}:{i}")))])]}}])}),i("el-table-column",{attrs:{label:"最后操作人",align:"center",width:"95"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[i("span",[e._v(e._s(a.admin_user))])]}}])}),i("el-table-column",{attrs:{label:e.$t("table.actions"),align:"center",width:"230","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;t.$index;return[i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["edit"],expression:"['edit']"}],attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleUpdate(a)}}},[e._v(" "+e._s(e.$t("table.edit"))+" ")]),"deleted"!=a.status?i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["delete"],expression:"['delete']"}],attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleDelete(a.id)}}},[e._v(" "+e._s(e.$t("table.delete"))+" ")]):e._e()]}}])})],1),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:18}},[i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.limit},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"limit",t)},pagination:e.getList}})],1),i("el-col",{attrs:{span:6}},[i("div",{staticClass:"pagination-container listpadding"},[i("el-checkbox",{staticStyle:{"margin-right":"20px"},on:{change:e.checkAllFun},model:{value:e.cheackAllChecked,callback:function(t){e.cheackAllChecked=t},expression:"cheackAllChecked"}},[e._v("全选")]),i("el-button",{attrs:{icon:"el-icon-edit",type:"info",size:"small"},on:{click:e.reverseChecked}},[e._v("反选")]),i("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.updateLoading,expression:"updateLoading"},{name:"permission",rawName:"v-permission",value:["edit"],expression:"['edit']"}],attrs:{type:"primary",icon:"el-icon-edit",size:"small"},on:{click:e.allupdate}},[e._v("批量更新")]),i("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.deleteLoading,expression:"deleteLoading"},{name:"permission",rawName:"v-permission",value:["delete"],expression:"['delete']"}],attrs:{type:"danger",icon:"el-icon-delete",size:"small"},on:{click:e.alldelete}},[e._v("批量删除")])],1)])],1),i("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"70%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[i("el-form",{ref:"dataForm",staticStyle:{width:"600px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"left","label-width":"70px","validate-on-rule-change":!0}},[i("el-form-item",{attrs:{label:"单位"}},[i("el-input",{model:{value:e.temp.companyname,callback:function(t){e.$set(e.temp,"companyname",t)},expression:"temp.companyname"}})],1),i("el-form-item",{attrs:{label:"联系人"}},[i("el-input",{model:{value:e.temp.name,callback:function(t){e.$set(e.temp,"name",t)},expression:"temp.name"}})],1),i("el-form-item",{attrs:{label:"联系人电话"}},[i("el-input",{model:{value:e.temp.tel,callback:function(t){e.$set(e.temp,"tel",t)},expression:"temp.tel"}})],1),i("el-form-item",{attrs:{label:"联系人邮箱"}},[i("el-input",{model:{value:e.temp.email,callback:function(t){e.$set(e.temp,"email",t)},expression:"temp.email"}})],1),i("el-form-item",{attrs:{label:"时间"}},[e._v(" "+e._s(e._f("parseTime")(e.temp.time,"{y}-{m}-{d} {h}:{i}"))+" ")]),i("el-form-item",{staticClass:"postInfo-container-item",attrs:{label:"状态:"}},[i("el-radio",{attrs:{label:"1"},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},[e._v("待回复")]),i("el-radio",{attrs:{label:"2"},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},[e._v("已回复")]),i("el-radio",{attrs:{label:"3"},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},[e._v("待处理")]),i("el-radio",{attrs:{label:"4"},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},[e._v("已处理")])],1),i("el-form-item",{attrs:{label:"留言内容"}},[i("el-input",{attrs:{autosize:{minRows:2,maxRows:7},type:"textarea",placeholder:""},model:{value:e.temp.content,callback:function(t){e.$set(e.temp,"content",t)},expression:"temp.content"}})],1),i("el-form-item",{directives:[{name:"loading",rawName:"v-loading",value:e.contentLoading,expression:"contentLoading"}],attrs:{label:"回复内容"}},[i("div",{staticClass:"tinymce-container",class:{fullscreen:e.fullscreen},style:{width:e.containerWidth}},[i("textarea",{staticClass:"tinymce-textarea",attrs:{id:e.tinymceId}})])])],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(" "+e._s(e.$t("permission.cancel"))+" ")]),i("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.createLoading,expression:"createLoading"}],attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.createData():e.updateData()}}},[e._v(" "+e._s(e.$t("permission.confirm"))+" ")])],1)],1),i("el-dialog",{attrs:{visible:e.dialogPvVisible,title:"Reading statistics"},on:{"update:visible":function(t){e.dialogPvVisible=t}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.pvData,border:"",fit:"","highlight-current-row":""}},[i("el-table-column",{attrs:{prop:"key",label:"Channel"}}),i("el-table-column",{attrs:{prop:"pv",label:"Pv"}})],1),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogPvVisible=!1}}},[e._v("Confirm")])],1)],1),i("el-dialog",{attrs:{title:"自动翻译",visible:e.fanyi_dialogFormVisible},on:{"update:visible":function(t){e.fanyi_dialogFormVisible=t}}},[i("el-form",[i("el-form-item",{attrs:{label:"当前页面语言:"}},[e._v(" "+e._s(e.thislang)+" ")]),i("el-form-item",{attrs:{label:"要翻译的语言:"}},[i("el-checkbox-group",{attrs:{max:3},on:{change:e.handleCheckedCitiesChange},model:{value:e.tolanglist,callback:function(t){e.tolanglist=t},expression:"tolanglist"}},e._l(e.lang_list_check,(function(t){return i("el-checkbox",{key:t.id,attrs:{label:t.title}},[e._v(e._s(t.title))])})),1)],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.fanyi_dialogFormVisible=!1}}},[e._v("取 消")]),i("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.fanyi_loading,expression:"fanyi_loading"}],attrs:{type:"primary"},on:{click:e.fanyi_ok}},[e._v("确 定")])],1)],1)],1)},n=[],l=(i("b680"),i("a9e3"),i("99af"),i("159b"),i("a434"),i("4e82"),i("d3b7"),i("3ca3"),i("ddb0"),i("d81d"),i("b0c0"),i("b775"));function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(l["a"])({url:"/datadata/Create_get_list?menu_id="+t,method:"get",params:e})}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(l["a"])({url:"/datadata/Create_edit?menu_id="+t,method:"post",data:e})}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(l["a"])({url:"/datadata/Create_delete?menu_id="+t,method:"post",data:e})}var c=i("4381"),u=i("6724"),d=i("a78e"),m=i.n(d),p=i("5f87"),h=i("ed08"),g=i("333d"),f=i("cb37"),b=i("9a18"),v=i("ea1b"),y=i("2498"),k=i("0da3"),_="https://cdn.jsdelivr.net/npm/tinymce-all-in-one@4.9.3/tinymce.min.js",w={name:"ComplexTable",components:{Pagination:g["a"],editorImage:f["a"]},directives:{waves:u["a"],permission:c["a"]},filters:{statusFilter:function(e){var t={published:"success",draft:"info",deleted:"danger"};return t[e]},typeFilter:function(e){return calendarTypeKeyValue[e]}},props:{id:{type:String,default:function(){return"vue-tinymce-"+ +new Date+(1e3*Math.random()).toFixed(0)}},value:{type:String,default:""},toolbar:{type:Array,required:!1,default:function(){return[]}},menubar:{type:String,default:"file edit insert view format table"},height:{type:[Number,String],required:!1,default:360},width:{type:[Number,String],required:!1,default:"650px"}},data:function(){return{fanyi_id:"",fanyi_loading:!1,lang_list_check_to:[],isIndeterminate:!0,lang_list:[],lang_list_check:[],tolanglist:[],tolang:"",thislang:"",fanyi_dialogFormVisible:!1,languageTypeList:{en:"en",zh:"zh_CN",es:"es_MX",ja:"ja"},tinymceId:this.id,fullscreen:!1,uploadHeaders:{},uploadUrl:"",dialogImageUrl:"",dialogVisible:!1,cheackAllChecked:!1,checkArr:[],checkCompleteArr:[],false:!1,tableKey:0,list:null,total:0,contentLoading:!1,listLoading:!0,updateLoading:!1,deleteLoading:!1,createLoading:!1,typeLoading:!1,listQuery:{page:1,limit:20,importance:"",key:"",parent:"",sort:""},importanceOptions:[1,2,3],sortOptions:[{label:"默认排序",key:""},{label:"最新修改",key:"1"},{label:"排序大到小",key:"2"},{label:"排序小到大",key:"3"}],statusOptions:["published","draft","deleted"],showReviewer:!1,temp:{companyname:"",content:"",weight:0,status:0,reback_content:"",image:[]},updateimage:[],dialogFormVisible:!1,dialogStatus:"",textMap:{update:"修改留言",create:"添加留言"},dialogPvVisible:!1,pvData:[],rules:{title:[{required:!0,message:"标题必须填写",trigger:"blur"}],weight:[{type:"integer",required:!0,message:"排序必须为整数",trigger:"blur",transform:function(e){return Number(e)}}]},downloadLoading:!1}},computed:{containerWidth:function(){var e=this.width;return/^[\d]+(\.[\d]+)?$/.test(e)?"".concat(e,"px"):e}},mounted:function(){},created:function(){this.uploadUrl="/public/index.php/upload/image",this.uploadHeaders={lang:m.a.get("language"),Authorization:"bearer "+Object(p["a"])()},this.lang_list=document.lang_list;var e=m.a.get("language");if(e&&""!=e)for(var t=0,i=0;i<this.lang_list.length;i++)e==this.lang_list[i].lang?this.thislang=this.lang_list[i].title:(this.lang_list_check[t]=this.lang_list[i],t++);this.getList()},methods:{handleCheckedCitiesChange:function(e){this.tolanglist=e,console.log(e)},fanyi_ok:function(){for(var e=this,t=0,i=0;i<this.lang_list.length;i++)this.tolanglist.indexOf(this.lang_list[i].title)>=0&&(this.lang_list_check_to[t]=this.lang_list[i].lang,t++);if(console.log(this.lang_list_check_to),this.lang_list_check_to.length<="0")return this.$notify({title:"错误",message:"请先选择要翻译的语言",type:"error",duration:2e3}),!1;this.fanyi_loading=!0,Object(k["a"])({q:"",from:m.a.get("language"),action:"onepage",tolanglist:this.lang_list_check_to,id:this.fanyi_id}).then((function(t){e.$notify({title:"操作成功",message:t.data,type:"success",duration:3e3}),e.fanyi_loading=!1,e.fanyi_dialogFormVisible=!1})).catch((function(t){e.$notify({title:"错误",message:t.msg,type:"error",duration:2e3}),e.fanyi_loading=!1}))},fanyi:function(e){this.fanyi_id=e,this.fanyi_dialogFormVisible=!0},beforeImageUpload:function(e){var t="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/gif"===e.type;t||this.$message.error("只支持 jpg/jpeg/png/gif 格式!");var i=!1;return i=e.size/1024/1024<5,i||this.$message.error("最大支持 5MB!"),t&&i},uploadUrl_success:function(e){200==e.code&&(this.temp.image=this.temp.image.concat(e.data),this.updateimage=this.updateimage.concat(e.data))},handleRemove:function(e){console.log(e)},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},alldelete:function(){var e=this;if(this.checkArr.length<="0")return this.$notify({title:"错误",message:"请先选择要操作的数据",type:"error",duration:2e3}),!1;this.$confirm("此操作将永久删除该内容且不可恢复！, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t={data:e.checkArr};e.deleteLoading=!0,r(t,"4").then((function(){e.$notify({title:"操作成功",message:"批量删除成功",type:"success",duration:2e3}),e.getList(),e.deleteLoading=!1})).catch((function(t){e.$notify({title:"错误",message:t.msg,type:"error",duration:2e3}),e.deleteLoading=!1}))}))},allupdate:function(){var e=this,t={data:this.list};this.updateLoading=!0,s(t,"4").then((function(){e.$notify({title:"操作成功",message:"批量更新成功",type:"success",duration:2e3}),e.updateLoading=!1,e.getList()})).catch((function(t){e.$notify({title:"错误",message:t.msg,type:"error",duration:2e3}),e.updateLoading=!1}))},checkAllFun:function(){var e=this;this.checkArr=[],this.cheackAllChecked&&this.list.forEach((function(t,i){i>=0&&e.checkArr.push(t.id)}))},reverseChecked:function(){var e=[];this.list.forEach((function(t,i){i>=0&&e.push(t.id)})),this.removeByValue(e,this.checkArr)},removeByValue:function(e,t){for(var i=this,a=0;a<t.length;a++)for(var n=0;n<e.length;n++)if(e[n]===t[a]){e.splice(n,1);break}this.checkArr=e,e.length<=i.checkCompleteArr.length&&(this.cheackAllChecked=!1),e.length===i.checkCompleteArr.length&&(this.cheackAllChecked=!0)},changevalue:function(){var e=this;this.checkArr.length<=e.checkCompleteArr.length&&(this.cheackAllChecked=!1),this.checkArr.length===e.checkCompleteArr.length&&(this.cheackAllChecked=!0)},getList:function(){var e=this;this.listLoading=!0,o(this.listQuery,"4").then((function(t){e.list=t.data.items,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),1500)}))},handleFilter:function(){this.listQuery.page=1,this.getList()},handleModifyStatus:function(e,t){this.$message({message:"操作Success",type:"success"}),e.status=t},sortChange:function(e){var t=e.prop,i=e.order;"id"===t&&this.sortByID(i)},sortByID:function(e){this.listQuery.sort="ascending"===e?"+id":"-id",this.handleFilter()},resetTemp:function(){this.temp={companyname:"",content:"",weight:0,status:0,reback_content:"",image:[]}},handleCreate:function(){var e=this;this.init(!1),this.resetTemp(),this.updateimage=[],this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},createData:function(){var e=this;this.createLoading=!0,this.$refs["dataForm"].validate((function(t){t?(e.temp.content=window.tinymce.get(e.tinymceId).getContent(),e.temp.image=JSON.stringify(e.temp.image),Create(e.temp,"4").then((function(){e.dialogFormVisible=!1,e.createLoading=!1,e.$notify({title:"成功",message:"添加新留言成功",type:"success",duration:2e3}),e.getList()})).catch((function(t){e.$notify({title:"错误",message:t.msg,type:"error",duration:2e3}),e.createLoading=!1}))):(e.$notify({title:"错误",message:"请检查必填项！",type:"error",duration:3e3}),e.createLoading=!1)}))},handleUpdate:function(e){var t=this;this.temp=Object.assign({},e),this.dialogStatus="update",this.dialogFormVisible=!0,this.init(!0),this.updateimage=[],this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},updateData:function(){var e=this;this.$refs["dataForm"].validate((function(t){if(t){e.createLoading=!0;var i=[];e.temp.reback_content=window.tinymce.get(e.tinymceId).getContent(),e.temp.image=JSON.stringify(e.temp.image),i[0]=e.temp,s({data:i},"4").then((function(){e.$notify({title:"操作成功",message:"更新成功",type:"success",duration:2e3}),e.createLoading=!1,e.dialogFormVisible=!1,e.getList()})).catch((function(t){e.$notify({title:"错误",message:t.msg,type:"error",duration:2e3}),e.createLoading=!1}))}}))},handleDelete:function(e){var t=this;this.$confirm("此操作将永久删除该内容且不可恢复！, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var i=[];i[0]=e,r({data:i},"4").then((function(){t.$notify({title:"操作成功",message:"批量删除成功",type:"success",duration:2e3}),t.getList(),t.deleteLoading=!1})).catch((function(e){t.$notify({title:"错误",message:e.msg,type:"error",duration:2e3}),t.deleteLoading=!1}))}))},handleFetchPv:function(e){var t=this;fetchPv(e,"4").then((function(e){t.pvData=e.data.pvData,t.dialogPvVisible=!0}))},handleDownload:function(){var e=this;this.downloadLoading=!0,Promise.all([i.e("chunk-0143048a"),i.e("chunk-2133cd4f")]).then(i.bind(null,"4bf8")).then((function(t){var i=["timestamp","title","type","importance","status"],a=["timestamp","title","type","importance","status"],n=e.formatJson(a);t.export_json_to_excel({header:i,data:n,filename:"table-list"}),e.downloadLoading=!1}))},formatJson:function(e){return this.list.map((function(t){return e.map((function(e){return"timestamp"===e?Object(h["d"])(t[e]):t[e]}))}))},getSortClass:function(e){var t=this.listQuery.sort;return t==="+".concat(e)?"ascending":"descending"},imageSuccessCBK:function(e){var t=this;e.forEach((function(e){return window.tinymce.get(t.tinymceId).insertContent('<img class="wscnph" src="'.concat(e.url,'" >'))}))},initTinymce:function(e){var t=this,i=this;window.tinymce.init({selector:"#".concat(this.tinymceId),language:this.languageTypeList["zh"],height:this.height,body_class:"panel-body ",object_resizing:!1,toolbar:this.toolbar.length>0?this.toolbar:v["a"],menubar:this.menubar,plugins:b["a"],end_container_on_empty_block:!0,powerpaste_word_import:"clean",valid_children:"+div[style]",paste_webkit_styles:!0,paste_data_images:!0,code_dialog_height:450,code_dialog_width:1e3,advlist_bullet_styles:"square",advlist_number_styles:"default",imagetools_cors_hosts:["www.tinymce.com","codepen.io"],default_link_target:"_blank",link_title:!1,nonbreaking_force_tab:!0,file_picker_callback:function(e,t,a){var n=i.uploadUrl,l=document.createElement("input");l.setAttribute("type","file"),l.click(),l.onchange=function(){var t,i,a=this.files[0];console.log(a.name),t=new XMLHttpRequest,t.withCredentials=!1,t.open("POST",n),t.setRequestHeader("Authorization","bearer "+Object(p["a"])()),t.setRequestHeader("lang",m.a.get("language")),t.onload=function(){var i;200==t.status?(i=JSON.parse(t.responseText),console.log(i),e(document.cdn+"/"+i.data.name)):failure("HTTP Error: "+t.status)},i=new FormData,i.append("file",a,a.name),t.send(i)}},init_instance_callback:function(e){i.hasInit=!0,e.on("NodeChange Change KeyUp SetContent",(function(){t.hasChange=!0,t.$emit("input",e.getContent())}))},setup:function(e){e.on("FullscreenStateChanged",(function(e){i.fullscreen=e.state}))},convert_urls:!1}),e?setTimeout((function(){console.log(i.temp),tinymce.get(t.tinymceId).setContent(i.temp.reback_content)}),1e3):setTimeout((function(){tinymce.get(t.tinymceId).setContent("")}),1e3)},init:function(e){var t=this,i=this;this.contentLoading=!0,Object(y["a"])(_,(function(a){a?t.$message.error(a.message):setTimeout((function(){i.initTinymce(e),i.contentLoading=!1}),3e3)}))}}},x=w,C=i("2877"),L=Object(C["a"])(x,a,n,!1,null,null,null);t["default"]=L.exports},"333d":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[i("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},n=[];i("a9e3");Math.easeInOutQuad=function(e,t,i,a){return e/=a/2,e<1?i/2*e*e+t:(e--,-i/2*(e*(e-2)-1)+t)};var l=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function r(e,t,i){var a=s(),n=e-a,r=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=r;var s=Math.easeInOutQuad(c,a,n,t);o(s),c<t?l(e):i&&"function"===typeof i&&i()};u()}var c={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&r(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&r(0,800)}}},u=c,d=(i("e498"),i("2877")),m=Object(d["a"])(u,a,n,!1,null,"6af373ef",null);t["a"]=m.exports},3530:function(e,t,i){},4381:function(e,t,i){"use strict";i("caad"),i("2532");var a=i("4360");function n(e,t){var i=t.value,n=a["a"].getters&&a["a"].getters.roles;if(!(i&&i instanceof Array))throw new Error("need roles! Like v-permission=\"['admin','editor']\"");if(i.length>0){var l=i,o=n.some((function(e){return l.includes(e)}));o||e.parentNode&&e.parentNode.removeChild(e)}}var l={inserted:function(e,t){n(e,t)},update:function(e,t){n(e,t)}},o=function(e){e.directive("permission",l)};window.Vue&&(window["permission"]=l,Vue.use(o)),l.install=o;t["a"]=l},6724:function(e,t,i){"use strict";i("8d41");var a="@@wavesContext";function n(e,t){function i(i){var a=Object.assign({},t.value),n=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},a),l=n.ele;if(l){l.style.position="relative",l.style.overflow="hidden";var o=l.getBoundingClientRect(),s=l.querySelector(".waves-ripple");switch(s?s.className="waves-ripple":(s=document.createElement("span"),s.className="waves-ripple",s.style.height=s.style.width=Math.max(o.width,o.height)+"px",l.appendChild(s)),n.type){case"center":s.style.top=o.height/2-s.offsetHeight/2+"px",s.style.left=o.width/2-s.offsetWidth/2+"px";break;default:s.style.top=(i.pageY-o.top-s.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",s.style.left=(i.pageX-o.left-s.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return s.style.backgroundColor=n.color,s.className="waves-ripple z-active",!1}}return e[a]?e[a].removeHandle=i:e[a]={removeHandle:i},i}var l={bind:function(e,t){e.addEventListener("click",n(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[a].removeHandle,!1),e.addEventListener("click",n(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[a].removeHandle,!1),e[a]=null,delete e[a]}},o=function(e){e.directive("waves",l)};window.Vue&&(window.waves=l,Vue.use(o)),l.install=o;t["a"]=l},"8d41":function(e,t,i){},"9a18":function(e,t,i){"use strict";var a=["advlist anchor autolink autosave code codesample colorpicker colorpicker contextmenu directionality emoticons fullscreen hr image imagetools insertdatetime link lists media nonbreaking noneditable pagebreak paste preview print save searchreplace spellchecker tabfocus table template textcolor textpattern visualblocks visualchars wordcount"];t["a"]=a},c94c:function(e,t,i){"use strict";i("3530")},cb37:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"upload-container"},[i("el-button",{style:{background:e.color,borderColor:e.color},attrs:{icon:"el-icon-upload",size:"mini",type:"primary"},on:{click:function(t){e.dialogVisible=!0}}},[e._v(" 上传图片 ")]),i("el-dialog",{attrs:{visible:e.dialogVisible,modal:!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-upload",{staticClass:"editor-slide-upload",attrs:{multiple:!0,"file-list":e.fileList,"show-file-list":!0,"on-remove":e.handleRemove,"on-success":e.handleSuccess,"before-upload":e.beforeUpload,action:"https://httpbin.org/post","list-type":"picture-card"}},[i("el-button",{attrs:{size:"small",type:"primary"}},[e._v(" 点击上传 ")])],1),i("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v(" 取消 ")]),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(" 确定 ")])],1)],1)},n=[],l=(i("b64b"),i("d81d"),i("d3b7"),i("3ca3"),i("ddb0"),i("2b3d"),i("9861"),{name:"EditorSlideUpload",props:{color:{type:String,default:"#1890ff"}},data:function(){return{dialogVisible:!1,listObj:{},fileList:[],false:!1}},methods:{checkAllSuccess:function(){var e=this;return Object.keys(this.listObj).every((function(t){return e.listObj[t].hasSuccess}))},handleSubmit:function(){var e=this,t=Object.keys(this.listObj).map((function(t){return e.listObj[t]}));this.checkAllSuccess()?(this.$emit("successCBK",t),this.listObj={},this.fileList=[],this.dialogVisible=!1):this.$message("Please wait for all images to be uploaded successfully. If there is a network problem, please refresh the page and upload again!")},handleSuccess:function(e,t){for(var i=t.uid,a=Object.keys(this.listObj),n=0,l=a.length;n<l;n++)if(this.listObj[a[n]].uid===i)return this.listObj[a[n]].url=e.files.file,void(this.listObj[a[n]].hasSuccess=!0)},handleRemove:function(e){for(var t=e.uid,i=Object.keys(this.listObj),a=0,n=i.length;a<n;a++)if(this.listObj[i[a]].uid===t)return void delete this.listObj[i[a]]},beforeUpload:function(e){var t=this,i=window.URL||window.webkitURL,a=e.uid;return this.listObj[a]={},new Promise((function(n,l){var o=new Image;o.src=i.createObjectURL(e),o.onload=function(){t.listObj[a]={hasSuccess:!1,uid:e.uid,width:this.width,height:this.height}},n(!0)}))}}}),o=l,s=(i("c94c"),i("2877")),r=Object(s["a"])(o,a,n,!1,null,"0c2a0980",null);t["a"]=r.exports},e498:function(e,t,i){"use strict";i("1c18")},ea1b:function(e,t,i){"use strict";var a=["searchreplace bold italic underline strikethrough alignleft aligncenter alignright outdent indent  blockquote undo redo removeformat subscript superscript code codesample","hr bullist numlist link image charmap preview anchor pagebreak insertdatetime media table emoticons forecolor backcolor fullscreen"];t["a"]=a}}]);