(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-be81c790"],{"095c":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"editor",staticClass:"editor",style:e.styles})},o=[],r=(n("99af"),n("a9e3"),n("9339")),l=n.n(r),a=(n("a753"),n("8096"),n("14e1"),{name:"Editor",props:{value:{type:String,default:""},height:{type:Number,default:null},minHeight:{type:Number,default:null}},data:function(){return{Quill:null,currentValue:"",options:{theme:"snow",bounds:document.body,debug:"warn",modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"请输入内容",readOnly:!1}}},computed:{styles:function(){var e={};return this.minHeight&&(e.minHeight="".concat(this.minHeight,"px")),this.height&&(e.height="".concat(this.height,"px")),e}},watch:{value:{handler:function(e){e!==this.currentValue&&(this.currentValue=null===e?"":e,this.Quill&&this.Quill.pasteHTML(this.currentValue))},immediate:!0}},mounted:function(){this.init()},beforeDestroy:function(){this.Quill=null},methods:{init:function(){var e=this,t=this.$refs.editor;this.Quill=new l.a(t,this.options),this.Quill.pasteHTML(this.currentValue),this.Quill.on("text-change",(function(t,n,i){var o=e.$refs.editor.children[0].innerHTML,r=e.Quill.getText(),l=e.Quill;e.currentValue=o,e.$emit("input",o),e.$emit("on-change",{html:o,text:r,quill:l})})),this.Quill.on("text-change",(function(t,n,i){e.$emit("on-text-change",t,n,i)})),this.Quill.on("selection-change",(function(t,n,i){e.$emit("on-selection-change",t,n,i)})),this.Quill.on("editor-change",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o0,expression:"total > 0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),n("el-dialog",{staticClass:"eldialog-wrap",attrs:{"close-on-click-modal":!1,title:e.title,visible:e.open,width:"650px"},on:{"update:visible":function(t){e.open=t}}},[n("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[n("el-form-item",{attrs:{label:"版本号:",prop:"version"}},[n("el-input",{attrs:{placeholder:"请输入版本号"},model:{value:e.form.version,callback:function(t){e.$set(e.form,"version",t)},expression:"form.version"}})],1),n("el-form-item",{attrs:{label:"标题:",prop:"title"}},[n("el-input",{attrs:{placeholder:"请输入标题"},model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),n("el-form-item",{attrs:{label:"升级时间:",prop:"uploadTime"}},[n("el-date-picker",{staticStyle:{width:"100%"},attrs:{clearable:"",size:"small",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择升级时间"},model:{value:e.form.uploadTime,callback:function(t){e.$set(e.form,"uploadTime",t)},expression:"form.uploadTime"}})],1),n("el-form-item",{attrs:{label:"升级内容:",prop:"content"}},[n("editor",{staticClass:"editor-wrap",model:{value:e.form.content,callback:function(t){e.$set(e.form,"content",t)},expression:"form.content"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),n("el-button",{attrs:{size:"mini"},on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},o=[],r=(n("d81d"),n("5530")),l=n("095c"),a=n("3eee"),s={name:"Uplog",components:{Editor:l["a"]},data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,total:0,uplogList:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,version:void 0,title:void 0,orderByColumn:"createTime",isAsc:"desc"},form:{},rules:{}}},created:function(){this.getList()},methods:{indexFormatter:function(e){return e+1+(this.queryParams.pageNum-1)*this.queryParams.pageSize},sortChange:function(e){var t={isAsc:"descending"===e.order?"desc":"asc",orderByColumn:e.prop};this.queryParams=Object.assign(this.queryParams,t),this.handleQuery()},getList:function(){var e=this;this.loading=!0,Object(a["d"])(this.queryParams).then((function(t){e.uplogList=t.rows,e.total=t.total,e.loading=!1}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={id:void 0,version:void 0,title:void 0,content:void 0,uploadTime:void 0,createTime:void 0,createBy:void 0,updateTime:void 0,updateBy:void 0,remark:void 0},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.id})),this.single=1!=e.length,this.multiple=!e.length},handleAdd:function(){this.reset(),this.open=!0,this.title="添加系统升级日志"},handleUpdate:function(e){var t=this;this.reset();var n=e.id||this.ids;Object(a["c"])(n).then((function(e){t.form=e.data,t.open=!0,t.title="修改系统升级日志"}))},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(void 0!=e.form.id?Object(a["f"])(e.form).then((function(t){200===t.code&&(e.msgSuccess("修改成功"),e.open=!1,e.getList())})):Object(a["a"])(e.form).then((function(t){200===t.code&&(e.msgSuccess("新增成功"),e.open=!1,e.getList())})))}))},handleDelete:function(e){var t=this,n=e.id||this.ids;this.$confirm("是否删除该选项","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(a["b"])(n)})).then((function(){t.getList(),t.msgSuccess("删除成功")})).catch((function(){}))},handleExport:function(){this.download("system/uplog/export",Object(r["a"])({},this.queryParams),"system_uplog.xlsx")}}},u=s,c=(n("add2"),n("2877")),d=Object(c["a"])(u,i,o,!1,null,null,null);t["default"]=d.exports},add2:function(e,t,n){"use strict";n("89185")}}]);