Server : nginx/1.20.1 System : Linux iZ2ze9ojcl78uluczwag69Z 4.18.0-240.22.1.el8_3.x86_64 #1 SMP Thu Apr 8 19:01:30 UTC 2021 x86_64 User : www ( 1000) PHP Version : 7.3.28 Disable Function : passthru,exec,system,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv Directory : /www/wwwroot/0531yanglao.com/public/admin1131/static/js/ |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a0bdb894","chunk-fa87cc8e","chunk-1c1c1c51","chunk-0ff90dce","chunk-15bc4d45","chunk-2d231201"],{"026f":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:24}},[e.checkPermission(["admin/AdminIndex/statisticUser"])?a("statistic-user"):e._e()],1)],1)],1)},l=[],o=(a("b0c0"),a("e350")),n=a("494c"),r={name:"Index",components:{StatisticUser:n["default"]},data:function(){return{MapAmap:!1,StatisticUser:!0,MapSogou:!1,MapTencent:!1,MapBeidou:!1,actTabName:"StatisticUser"}},created:function(){},methods:{checkPermission:o["a"],tabClick:function(e){this[e.name]=!0}}},s=r,c=a("2877"),u=Object(c["a"])(s,i,l,!1,null,null,null);t["default"]=u.exports},"03c3":function(e,t,a){"use strict";a("77a9")},"0550":function(e,t,a){"use strict";a("8b4a")},"05c9":function(e,t,a){"use strict";a("28fb")},"0623":function(e,t,a){"use strict";a("1b56")},"0625":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("transition",{attrs:{name:e.transitionName}},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"back-to-ceiling",style:e.customStyle,on:{click:e.backToTop}},[a("i",{staticClass:"el-icon-top"})])])},l=[],o=(a("a9e3"),{name:"BackToTop",props:{visibilityHeight:{type:Number,default:200},backPosition:{type:Number,default:0},customStyle:{type:Object,default:function(){return{right:"50px",bottom:"50px",width:"40px",height:"40px","border-radius":"4px","line-height":"45px",background:"#e7eaf1"}}},transitionName:{type:String,default:"fade"}},data:function(){return{visible:!1,interval:null,isMoving:!1}},mounted:function(){window.addEventListener("scroll",this.handleScroll)},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll),this.interval&&clearInterval(this.interval)},methods:{handleScroll:function(){this.visible=window.pageYOffset>this.visibilityHeight},backToTop:function(){var e=this;if(!this.isMoving){var t=window.pageYOffset,a=0;this.isMoving=!0,this.interval=setInterval((function(){var i=Math.floor(e.easeInOutQuad(10*a,t,-t,500));i<=e.backPosition?(window.scrollTo(0,e.backPosition),clearInterval(e.interval),e.isMoving=!1):window.scrollTo(0,i),a++}),16.7)}},easeInOutQuad:function(e,t,a,i){return(e/=i/2)<1?a/2*e*e+t:-a/2*(--e*(e-2)-1)+t}}}),n=o,r=(a("a8ac"),a("2877")),s=Object(r["a"])(n,i,l,!1,null,"766863d9",null);t["a"]=s.exports},"0784":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("iframe",{attrs:{src:e.src,frameborder:"0",width:"100%",height:e.height}})},l=[],o=a("98b1"),n={name:"MapBaidu",components:{},data:function(){return{src:"https://api.map.baidu.com/lbsapi/getpoint/index.html",height:500}},created:function(){this.height=Object(o["a"])(180)},methods:{}},r=n,s=a("2877"),c=Object(s["a"])(r,i,l,!1,null,null,null);t["default"]=c.exports},"094a":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[e._m(0),a("div",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addition("")}}},[e._v("添加")])],1)]),a("el-form",{attrs:{model:e.form}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.form.data,height:e.height,border:"","row-key":"cid"}},[a("el-table-column",{attrs:{type:"index",prop:"cid",label:"ID","min-width":"30"}}),a("el-table-column",{attrs:{prop:"title",label:"标题","show-overflow-tooltip":"","min-width":"120"}}),a("el-table-column",{attrs:{prop:"sort",label:"创建时间","min-width":"80",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(e._f("parseTime")(a.create_time))+" ")]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"40",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.modify(i)}}},[e._v("修改")])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.categoryList}}),a("el-dialog",{attrs:{title:e.dataDialogTitle,visible:e.dataDialog,width:"65%",top:"1vh","before-close":e.cancel},on:{"update:visible":function(t){e.dataDialog=t}}},[a("el-form",{ref:"memberRef",staticClass:"dialog-body",attrs:{model:e.model,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"标题",prop:"title"}},[a("el-input",{key:"title",attrs:{placeholder:"",clearable:""},model:{value:e.model.title,callback:function(t){e.$set(e.model,"title",t)},expression:"model.title"}})],1),a("el-form-item",{attrs:{label:"上级分类",prop:"pid"}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.form.data,props:e.menuProps,clearable:"",filterable:"",placeholder:"顶级分类"},on:{change:e.menuPidChange},model:{value:e.model.parent_id,callback:function(t){e.$set(e.model,"parent_id",t)},expression:"model.parent_id"}})],1),e.unitShow?a("el-form-item",{attrs:{label:"单位",prop:"unit_id"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.model.unit_id,callback:function(t){e.$set(e.model,"unit_id",t)},expression:"model.unit_id"}},e._l(e.unit,(function(e,t){return a("el-option",{key:e.unit_id,attrs:{label:e.title,value:Number(e.unit_id)}})})),1)],1):e._e(),a("el-form-item",{attrs:{label:"排序"}},[a("el-input-number",{attrs:{min:1,max:1e6,label:""},model:{value:e.model.sort,callback:function(t){e.$set(e.model,"sort",t)},expression:"model.sort"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("提交")])],1)],1)],1)},l=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{float:"left"}},[a("div",{staticStyle:{"margin-right":"10px",float:"left"}})])}],o=a("ade3"),n=(a("b0c0"),a("14d9"),a("98b1")),r=a("333d"),s=a("50fc"),c={name:"category",components:{Pagination:r["a"]},data:function(){var e;return e={this_:this,height:680,loading:!1,form:{data:[]},count:0,query:{page:1,limit:20},type:"",dataDialog:!1,dataDialogTitle:"",menuProps:{checkStrictly:!0,value:"cid",label:"title"},model:{cid:"",parent_id:0,title:"",unit_id:"",sort:1},rules:{title:[{required:!0,message:"标题不能为空",trigger:"blur"}]}},Object(o["a"])(e,"type",""),Object(o["a"])(e,"category",[]),Object(o["a"])(e,"unit",[]),Object(o["a"])(e,"unitShow",!1),e},created:function(){this.type=this.$route.name,"categoryDefault"==this.type&&(this.unitShow=!0),this.height=Object(n["a"])(),this.categoryList(),this.unitAll()},methods:{categoryGetCategory:function(){var e=this;Object(s["categoryGetCategory"])().then((function(t){e.category=t.data}))},unitAll:function(){var e=this;Object(s["unitAll"])().then((function(t){e.unit=t.data}))},categoryList:function(){var e=this;this.loading=!0,this.query.type=this.type,Object(s["y"])(this.query).then((function(t){e.form.data=t.data.data,e.count=t.data.total,e.loading=!1})).catch((function(){e.loading=!1}))},search:function(){this.query.page=1,this.categoryList()},reset:function(){this.query={page:1,limit:13},this.categoryList()},modelReset:function(){this.model=this.$options.data().model,void 0!==this.$refs["memberRef"]&&this.$refs["memberRef"].resetFields()},addition:function(){this.dataDialog=!0,this.dataDialogTitle="添加",this.modelReset()},modify:function(e){var t=this;this.dataDialogTitle="修改:",Object(s["w"])({cid:e.cid}).then((function(e){t.model=e.data,t.dataDialog=!0}))},disable:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"status";this.loading=!0,e.table="Test",e.field=a,Object(s["gc"])(e).then((function(e){t.categoryList(),t.$message({message:e.msg,type:"success"})})).catch((function(){t.categoryList()}))},menuPidChange:function(e){e&&(this.model.parent_id=e[e.length-1])},remove:function(e){var t=this;this.$confirm('确定要删除 <span style="color:red">'+e.name+" </span>吗?","删除确认",{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(s["v"])({cid:e.cid}).then((function(e){t.$message({message:e.msg,type:"success"}),t.categoryList()})).catch((function(){t.loading=!1}))}))},cancel:function(){this.reset(),this.dataDialog=!1},updateSort:function(e,t){var a=this,i=[];i.push({id:e.cid,sort:e[t]});var l={data:i,table:"Category"};Object(s["fc"])(l).then((function(e){a.dataDialog=!1,a.$message({message:e.msg,type:"success"}),a.categoryList()})).catch((function(){a.loading=!1}))},submit:function(){var e=this;this.$refs["memberRef"].validate((function(t){if(t){e.loading=!0,e.model.type=e.type;var a=e.model;a.cid?Object(s["w"])(a,"post").then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.categoryList()})).catch((function(){e.loading=!1})):Object(s["t"])(a).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.categoryList()})).catch((function(){e.loading=!1}))}}))}},filters:{}},u=c,d=(a("5973"),a("2877")),m=Object(d["a"])(u,i,l,!1,null,null,null);t["default"]=m.exports},"0995":function(e,t,a){"use strict";a("6d1b")},"0a74":function(e,t,a){"use strict";a("d78b")},"0c98":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticStyle:{border:"1px solid #ccc","margin-top":"10px"}},[a("Toolbar",{staticStyle:{"border-bottom":"1px solid #ccc"},attrs:{editor:e.editor,defaultConfig:e.toolbarConfig,mode:e.mode}}),a("Editor",{staticStyle:{height:"400px","overflow-y":"hidden"},attrs:{defaultConfig:e.editorConfig,mode:e.mode},on:{onChange:e.onChange,onCreated:e.onCreated},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1)])},l=[],o=(a("af93"),a("5f87")),n=a("4e15"),r={name:"editoritem",components:{Editor:n["a"],Toolbar:n["b"]},data:function(){return{editor:null,content:"",toolbarConfig:{},editorConfig:{placeholder:"请输入内容...",MENU_CONF:{uploadImage:{server:"http://yl.jnbinzang.com/backend.php/UploadEditor/index",fieldName:"file",maxFileSize:10485760,maxNumberOfFiles:10,allowedFileTypes:["image/*"],timeout:15e3,headers:{AdminToken:Object(o["f"])(),AdminUserId:Object(o["g"])()},customInsert:function(e,t){var a=e.data[0]["url"],i="",l="";t(a,i,l)}},uploadVideo:{server:"http://yl.jnbinzang.com/backend.php/UploadEditor/index",fieldName:"file",maxFileSize:5242880,maxNumberOfFiles:3,allowedFileTypes:["video/*"],timeout:15e3}}},mode:"simple"}},model:{prop:"value",event:"change"},props:{value:{type:String,default:""},isClear:{type:Boolean,default:!1}},created:function(){this.content=this.value},watch:{isClear:function(e){e&&(this.editor.txt.clear(),this.info_=null)},value:function(e){this.content=this.value}},mounted:function(){console.log(this.value),setTimeout((function(){}),1500)},beforeDestroy:function(){var e=this.editor;null!=e&&e.destroy()},methods:{onCreated:function(e){this.editor=Object.seal(e)},onChange:function(e){this.$emit("change",e.getHtml())},insertTextHandler:function(){this.editor},printEditorHtml:function(){var e=this.editor;null!=e&&console.log(e.getHtml())},disableHandler:function(){var e=this.editor;null!=e&&e.disable()}}},s=r,c=(a("d0b7"),a("caaa"),a("2877")),u=Object(c["a"])(s,i,l,!1,null,null,null);t["a"]=u.exports},"0d48":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[e._m(0),a("div",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addition("")}}},[e._v("添加")])],1)]),a("el-form",{attrs:{model:e.form}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.form.data,height:e.height}},[a("el-table-column",{attrs:{type:"index",label:"ID","min-width":"30"}}),a("el-table-column",{attrs:{prop:"category_name",label:"设备/材料名称","show-overflow-tooltip":"","min-width":"120"}}),a("el-table-column",{attrs:{prop:"warehousing_time",label:"单位/数量","min-width":"120",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(a.quantity)+" "+e._s(a.unit_name)+" ")]}}])}),a("el-table-column",{attrs:{prop:"delivery_company_name[0]",label:"送货单位","show-overflow-tooltip":"","min-width":"80"}}),a("el-table-column",{attrs:{prop:"delivery_company_name[1]",label:"开票人","show-overflow-tooltip":"","min-width":"80"}}),a("el-table-column",{attrs:{prop:"user.nickname",label:"收货人","show-overflow-tooltip":"","min-width":"80"}}),a("el-table-column",{attrs:{prop:"warehousing_time",label:"入库时间","min-width":"120",fixed:"right"}}),a("el-table-column",{attrs:{prop:"remark",label:"备注","show-overflow-tooltip":"","min-width":"120"}}),a("el-table-column",{attrs:{label:"操作","min-width":"120",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.view(i)}}},[e._v("查看")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.remove(i)}}},[e._v("删除")])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.materialsList}}),a("el-dialog",{attrs:{title:e.dataDialogTitle1,visible:e.dataDialog1,width:"65%",top:"1vh","before-close":e.cancel1},on:{"update:visible":function(t){e.dataDialog1=t}}},[a("el-form",{ref:"memberRef",staticClass:"dialog-body",attrs:{model:e.model,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"材料分类",prop:"category_id"}},[e._v(" "+e._s(e.model.category_name)+" ")]),a("el-form-item",{attrs:{label:"计量单位",prop:"unit_name"}},[e._v(" "+e._s(e.model.unit_name)+" ")]),a("el-form-item",{attrs:{label:"采购单价",prop:"purchase_price"}},[e._v(" "+e._s(e.model.purchase_price)+" ")]),a("el-form-item",{attrs:{label:"入库数量"}},[e._v(" "+e._s(e.model.quantity)+" ")]),a("el-form-item",{attrs:{label:"单位/开票人",prop:"delivery_company"}},[e.model.delivery_company_name?a("span",[e._v(" "+e._s(e.model.delivery_company_name[0])+"/"+e._s(e.model.delivery_company_name[1])+" ")]):e._e()]),a("el-form-item",{attrs:{label:"发车时间"}},[e._v(" "+e._s(e.model.departure_time)+" ")]),a("el-form-item",{attrs:{label:"入库时间"}},[e._v(" "+e._s(e.model.warehousing_time)+" ")]),a("el-form-item",{attrs:{label:"送货司机",prop:"delivery_driver"}},[e._v(" "+e._s(e.model.delivery_driver)+" ")]),a("el-form-item",{attrs:{label:"货单照片"}},[a("img",{staticStyle:{"max-width":"350px"},attrs:{src:e.model.receiptr_img,alt:""},on:{click:function(t){return e.handlePreView(e.model.receiptr_img)}}})]),a("el-form-item",{attrs:{label:"材料照片"}},[a("img",{staticStyle:{"max-width":"350px"},attrs:{src:e.model.materials_img,alt:""},on:{click:function(t){return e.handlePreView(e.model.materials_img)}}})]),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[e._v(" "+e._s(e.model.remark)+" ")])],1)],1),a("el-dialog",{attrs:{title:e.dataDialogTitle,visible:e.dataDialog,width:"65%",top:"1vh","before-close":e.cancel},on:{"update:visible":function(t){e.dataDialog=t}}},[a("el-form",{ref:"memberRef",staticClass:"dialog-body",attrs:{model:e.model,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"材料分类",prop:"category_id"}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.category,props:e.menuProps,clearable:"",filterable:""},on:{change:e.menuPidChange},model:{value:e.model.category_id,callback:function(t){e.$set(e.model,"category_id",t)},expression:"model.category_id"}})],1),a("el-form-item",{attrs:{label:"计量单位",prop:"unit_name"}},[e._v(" "+e._s(e.unit_name)+" ")]),a("el-form-item",{attrs:{label:"采购单价",prop:"purchase_price"}},[a("el-input",{key:"purchase_price",attrs:{placeholder:"",clearable:""},model:{value:e.model.purchase_price,callback:function(t){e.$set(e.model,"purchase_price",t)},expression:"model.purchase_price"}})],1),a("el-form-item",{attrs:{label:"入库数量"}},[a("el-input-number",{attrs:{min:1,max:1e6,label:""},model:{value:e.model.quantity,callback:function(t){e.$set(e.model,"quantity",t)},expression:"model.quantity"}})],1),a("el-form-item",{attrs:{label:"送货单位",prop:"delivery_company"}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.category1,props:e.menuProps,clearable:"",filterable:""},on:{change:e.menuPidChange1},model:{value:e.model.delivery_company,callback:function(t){e.$set(e.model,"delivery_company",t)},expression:"model.delivery_company"}})],1),a("el-form-item",{attrs:{label:"发车时间",prop:"departure_time"}},[a("el-date-picker",{attrs:{type:"datetime","default-value":"","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择日期"},model:{value:e.model.departure_time,callback:function(t){e.$set(e.model,"departure_time",t)},expression:"model.departure_time"}})],1),a("el-form-item",{attrs:{label:"入库时间",prop:"warehousing_time"}},[a("el-date-picker",{attrs:{type:"datetime","default-value":"","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择日期"},model:{value:e.model.warehousing_time,callback:function(t){e.$set(e.model,"warehousing_time",t)},expression:"model.warehousing_time"}})],1),a("el-form-item",{attrs:{label:"送货司机",prop:"delivery_driver"}},[a("el-input",{key:"delivery_driver",attrs:{placeholder:"",clearable:""},model:{value:e.model.delivery_driver,callback:function(t){e.$set(e.model,"delivery_driver",t)},expression:"model.delivery_driver"}})],1),a("el-form-item",{attrs:{label:"货单照片"}},[a("Upload",{attrs:{"img-url":e.model.receiptr_img},on:{callback:function(t){e.model.receiptr_img=t}},model:{value:e.model.receiptr_img,callback:function(t){e.$set(e.model,"receiptr_img",t)},expression:"model.receiptr_img"}})],1),a("el-form-item",{attrs:{label:"材料照片"}},[a("Upload",{attrs:{"img-url":e.model.materials_img},on:{callback:function(t){e.model.materials_img=t}},model:{value:e.model.materials_img,callback:function(t){e.$set(e.model,"materials_img",t)},expression:"model.materials_img"}})],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:12},placeholder:"",clearable:""},model:{value:e.model.remark,callback:function(t){e.$set(e.model,"remark",t)},expression:"model.remark"}})],1),a("el-form-item",{attrs:{label:"详细内容",prop:"content"}},[a("editor-bar",{attrs:{isClear:e.isClear},model:{value:e.model.content,callback:function(t){e.$set(e.model,"content",t)},expression:"model.content"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("提交")])],1)],1)],1)},l=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{float:"left"}},[a("div",{staticStyle:{"margin-right":"10px",float:"left"}})])}],o=(a("14d9"),a("98b1")),n=a("333d"),r=a("50fc"),s=a("d443"),c=a("0c98"),u={name:"materials",components:{Pagination:n["a"],Upload:s["a"],EditorBar:c["a"]},data:function(){return{this_:this,height:680,loading:!1,form:{data:[]},count:0,query:{page:1,limit:20},type:"",dataDialog:!1,dataDialogTitle:"",dataDialog1:!1,dataDialogTitle1:"",menuProps:{checkStrictly:!1,value:"cid",label:"title"},model:{materials_id:"",city_id:1,category_id:"",unit_id:"",purchase_price:"",quantity:"",delivery_company:"",departure_time:"",delivery_driver:"",receiptr_img:"",materials_img:"",remark:"",warehousing_time:""},rules:{title:[{required:!0,message:"标题不能为空",trigger:"blur"}]},category:[],category1:[],unit:[],dictionary:[],unit_name:"",isClear:!1}},created:function(){this.type="default",this.height=Object(o["a"])(),this.materialsList(),this.dictionaryData(),this.categoryAll()},methods:{dictionaryData:function(){var e=this;Object(r["F"])().then((function(t){e.dictionary=t.data})).catch((function(){e.loading=!1}))},categoryAll:function(){var e=this;this.loading=!0,Object(r["u"])({type:"category_default"}).then((function(t){e.category=t.data,e.loading=!1})).catch((function(){e.loading=!1})),Object(r["u"])({type:"category_company"}).then((function(t){e.category1=t.data,e.loading=!1})).catch((function(){e.loading=!1}))},materialsGetmaterials:function(){var e=this;Object(r["materialsGetmaterials"])().then((function(t){e.materials=t.data}))},unitAll:function(){var e=this;Object(r["unitAll"])().then((function(t){e.unit=t.data}))},materialsList:function(){var e=this;this.loading=!0,this.query.type=this.type,Object(r["materialsList"])(this.query).then((function(t){e.form.data=t.data.data,e.count=t.data.total,e.loading=!1})).catch((function(){e.loading=!1}))},search:function(){this.query.page=1,this.materialsList()},reset:function(){this.query={page:1,limit:13},this.materialsList()},modelReset:function(){this.model=this.$options.data().model,void 0!==this.$refs["memberRef"]&&this.$refs["memberRef"].resetFields()},addition:function(){this.dataDialog=!0,this.dataDialogTitle="添加",this.modelReset()},modify:function(e){var t=this;this.dataDialogTitle="修改:",Object(r["materialsEdit"])({materials_id:e.materials_id}).then((function(e){t.model=e.data,t.dataDialog=!0}))},view:function(e){var t=this;this.dataDialogTitle1="查看",Object(r["materialsEdit"])({materials_id:e.materials_id}).then((function(e){t.model=e.data,t.dataDialog1=!0}))},handlePreView:function(e){window.open(e,"_blank")},changeData:function(){if(this.model.warehousing_time&&this.model.departure_time>this.model.warehousing_time)return this.model.departure_time=null,this.$message.error("入库时间不能大于发车时间!"),!1},disable:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"status";this.loading=!0,e.table="Test",e.field=a,Object(r["gc"])(e).then((function(e){t.materialsList(),t.$message({message:e.msg,type:"success"})})).catch((function(){t.materialsList()}))},menuPidChange:function(e){var t=this;e&&(this.model.category_id=e[e.length-1],Object(r["z"])({cid:this.model.category_id}).then((function(e){t.unit_name=e.data})))},menuPidChange1:function(e){e&&(this.model.delivery_company=e[e.length-1])},remove:function(e){var t=this;this.$confirm('确定要删除 <span style="color:red">'+e.category_name+" </span>吗?","删除确认",{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(r["materialsDel"])({materials_id:e.materials_id}).then((function(e){t.$message({message:e.msg,type:"success"}),t.materialsList()})).catch((function(){t.loading=!1}))}))},cancel:function(){this.reset(),this.dataDialog=!1},cancel1:function(){this.reset(),this.dataDialog1=!1},updateSort:function(e,t){var a=this,i=[];i.push({id:e.cid,sort:e[t]});var l={data:i,table:"materials"};Object(r["fc"])(l).then((function(e){a.dataDialog=!1,a.$message({message:e.msg,type:"success"}),a.materialsList()})).catch((function(){a.loading=!1}))},submit:function(){var e=this;this.$refs["memberRef"].validate((function(t){if(t&&e.changeData()){e.loading=!0,e.model.type=e.type;var a=e.model;a.materials_id?Object(r["materialsEdit"])(a,"post").then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.materialsList()})).catch((function(){e.loading=!1})):Object(r["materialsAdd"])(a).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.materialsList()})).catch((function(){e.loading=!1}))}}))}},filters:{}},d=u,m=(a("7f18"),a("2877")),p=Object(m["a"])(d,i,l,!1,null,null,null);t["default"]=p.exports},1389:function(e,t,a){},1482:function(e,t,a){},"14c1":function(e,t,a){},1586:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("iframe",{attrs:{src:e.src,frameborder:"0",width:"100%",height:e.height}})},l=[],o=a("98b1"),n={name:"MapSogou",components:{},data:function(){return{src:"https://map.sogou.com/api/documentation/javascript/api2.5/examples_doc/event-arguments.html",height:500}},created:function(){this.height=Object(o["a"])(180)},methods:{}},r=n,s=a("2877"),c=Object(s["a"])(r,i,l,!1,null,null,null);t["default"]=c.exports},"160f":function(e,t,a){"use strict";a("32ba")},"162c":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"login-container"},[a("el-form",{ref:"loginRef",staticClass:"login-form",attrs:{model:e.loginModel,rules:e.loginRules,"label-position":"left"}},[a("div",{staticClass:"title-container"},[a("h3",{staticClass:"title"},[e._v(e._s(e.systemName))])]),a("el-form-item",{attrs:{prop:"username"}},[a("el-input",{attrs:{type:"text",placeholder:"请输入账号","prefix-icon":"el-icon-user",autocomplete:"on",clearable:""},model:{value:e.loginModel.username,callback:function(t){e.$set(e.loginModel,"username",t)},expression:"loginModel.username"}})],1),a("el-form-item",{attrs:{prop:"password"}},[a("el-input",{attrs:{type:"password",placeholder:"请输入密码","prefix-icon":"el-icon-lock",autocomplete:"on",clearable:"","show-password":""},model:{value:e.loginModel.password,callback:function(t){e.$set(e.loginModel,"password",t)},expression:"loginModel.password"}})],1),e.verifyShow?a("el-form-item",{attrs:{prop:"verify_code"}},[a("el-col",{attrs:{span:13}},[a("el-input",{ref:"verify_code_ipt",staticStyle:{height:"50px","line-height":"50px"},attrs:{type:"text",placeholder:"请输入验证码","prefix-icon":"el-icon-picture",autocomplete:"off",clearable:""},model:{value:e.loginModel.verify_code,callback:function(t){e.$set(e.loginModel,"verify_code",t)},expression:"loginModel.verify_code"}})],1),a("el-col",{attrs:{span:11}},[a("el-image",{staticStyle:{width:"200px",height:"50px",float:"right"},attrs:{src:e.verifySrc,fit:"fill",alt:"验证码",title:"点击刷新验证码"},on:{click:e.verifyRefresh}})],1)],1):e._e(),a("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{loading:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("登录")])],1)],1)},l=[],o=(a("14d9"),a("13d5"),a("d3b7"),a("b64b"),a("83d6")),n=a.n(o),r=a("50fc"),s={name:"Login",components:{},data:function(){return{systemName:n.a.systemName,loading:!1,redirect:void 0,otherQuery:{},verifyShow:!1,verifySrc:"",loginModel:{username:"",password:"",verify_id:"",verify_code:""},loginRules:{username:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}],verify_code:[{required:!0,message:"请输入验证码",trigger:"blur"}]}}},watch:{$route:{handler:function(e){var t=e.query;t&&(this.redirect=t.redirect,this.otherQuery=this.getOtherQuery(t))},immediate:!0}},created:function(){this.getVerify()},mounted:function(){},destroyed:function(){},methods:{getVerify:function(){var e=this;Object(r["rc"])().then((function(t){e.verifyShow=t.data.verify_switch,t.data.verify_switch&&(e.verifySrc=t.data.verify_src,e.loginModel.verify_id=t.data.verify_id)}))},verifyRefresh:function(){this.loginModel.verify_id="",this.loginModel.verify_code="",this.getVerify()},handleLogin:function(){var e=this;this.$refs["loginRef"].validate((function(t){if(!t)return!1;e.loading=!0,e.$store.dispatch("user/login",e.loginModel).then((function(){e.$router.push({path:e.redirect||"/",query:e.otherQuery}).catch((function(){})),e.loading=!1})).catch((function(){e.loading=!1}))}))},getOtherQuery:function(e){return Object.keys(e).reduce((function(t,a){return"redirect"!==a&&(t[a]=e[a]),t}),{})}}},c=s,u=(a("05c9"),a("2e20"),a("2877")),d=Object(u["a"])(c,i,l,!1,null,"17823338",null);t["default"]=d.exports},1728:function(e,t,a){"use strict";a("b1e7")},1965:function(e,t,a){},"1adf":function(e,t,a){},"1b56":function(e,t,a){},"1c56":function(e,t,a){"use strict";a("a6fd")},"21c2":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"allUpload"},[a("div",{staticClass:"clearfix"},[a("div",{staticClass:"wrap"},[a("draggable",{staticClass:"clearfix",attrs:{forceFallback:"true",animation:"400"},on:{update:e.datadragEnd},model:{value:e.list,callback:function(t){e.list=t},expression:"list"}},[a("transition-group",{staticClass:"el-upload-list el-upload-list--picture-card"},e._l(e.list,(function(t,i){return a("div",{key:t.aid,staticClass:"el-upload-list__item",class:e.name?"on":""},["mp4"==t.ext?a("span",[a("video",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:t.url,fit:"contain"}})]):a("span",[a("el-image",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:t.url,fit:"contain"}})],1),a("span",{staticClass:"el-upload-list__item-actions"},[a("span",{staticClass:"el-upload-list__item-delete",on:{click:function(a){return e.image_del(t,i)}}},[a("i",{staticClass:"el-icon-delete"})]),a("span",{staticClass:"el-upload-list__item-delete",on:{click:function(a){return e.showImg(t.url,t.ext)}}},[a("i",{staticClass:"el-icon-zoom-in"})])]),e.name?a("el-input",{key:"title",attrs:{placeholder:"名称",clearable:""},model:{value:t.name,callback:function(a){e.$set(t,"name",a)},expression:"item.name"}}):e._e(),e.summary?a("el-input",{key:"title",attrs:{placeholder:"描述",clearable:""},model:{value:t.summary,callback:function(a){e.$set(t,"summary",a)},expression:"item.summary"}}):e._e()],1)})),0),a("span",{attrs:{slot:"footer"},slot:"footer"},[a("el-upload",{staticClass:"avatar-uploader",attrs:{name:"file",action:e.uploadAction,headers:e.uploadHeaders,"show-file-list":!1,multiple:"","on-success":function(t,a){return e.uploadsSuccess(t,a)}}},[a("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1)],1)],1)]),a("el-dialog",{attrs:{title:"查看图片",visible:e.dialogVisible,modal:!1},on:{"update:visible":function(t){e.dialogVisible=t}}},["mp4"==e.dialogImageExt?a("div",[a("video",{staticStyle:{},attrs:{src:e.dialogImageUrl,width:"100%",controls:"controls"}},[e._v("您的浏览器不支持视频播放")])]):a("div",[a("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})])])],1)},l=[],o=(a("14d9"),a("d3b7"),a("159b"),a("b0c0"),a("b76a")),n=a.n(o),r=a("50fc"),s=a("5f87"),c=a("ed08"),u={name:"Uploads",components:{draggable:n.a},data:function(){return{dialogImageUrl:"",dialogImageExt:"jpg",dialogVisible:!1,uploadAction:"http://yl.jnbinzang.com/backend.php/Upload/index",uploadHeaders:{AdminToken:Object(s["f"])(),AdminUserId:Object(s["g"])()},list:[]}},props:{value:{type:Array,default:function(){return[]}},name:{type:Boolean,default:!1},summary:{type:Boolean,default:!1}},watch:{value:function(e){console.log(e),e&&(this.list=e)}},created:function(){this.value&&(this.list=this.value)},mounted:function(){},methods:{uploadsSuccess:function(e,t){if(200===e.code){var a={aid:e.data.aid,url:e.data.url,hash:e.data.hash,ext:e.data.ext,sort:"",name:"",summary:""};this.list.push(a),this.$message({message:e.msg,type:"success"}),this.go()}else this.$message({message:e.msg,type:"error"})},showImg:function(e,t){this.dialogImageUrl=e,this.dialogVisible=!0,this.dialogImageExt=t},image_del:function(e,t){var a=this;a.$confirm("确定删除吗?","提示").then((function(){Object(r["hc"])({hash:e.hash}).then((function(e){a.$message({message:"删除成功",type:"success"}),Object(c["c"])(a.list,t)})).catch((function(){}))})).catch((function(){}))},go:function(){this.$emit("callback",this.list)},datadragEnd:function(e){e.preventDefault();var t=[],a=this.list;a.forEach((function(e,a){var i={hash:e.hash,name:e.name,summary:e.summary,savename:e.savename,sort:a,url:e.url,ext:e.ext};t.push(i)})),this.list=t,this.go()}}},d=u,m=(a("6c70"),a("2877")),p=Object(m["a"])(d,i,l,!1,null,"38cef9e0",null);t["a"]=p.exports},2250:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"filter-container"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{xs:24,sm:24}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"日志类型",clearable:""},model:{value:e.logQuery.log_type,callback:function(t){e.$set(e.logQuery,"log_type",t)},expression:"logQuery.log_type"}},[a("el-option",{attrs:{value:1,label:"登录日志"}}),a("el-option",{attrs:{value:2,label:"操作日志"}})],1),a("el-input",{staticClass:"filter-item",staticStyle:{width:"155px"},attrs:{placeholder:"请求IP/地区/ISP",clearable:""},model:{value:e.logQuery.request_keyword,callback:function(t){e.$set(e.logQuery,"request_keyword",t)},expression:"logQuery.request_keyword"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"280px"},attrs:{placeholder:"菜单链接/名称",clearable:""},model:{value:e.logQuery.menu_keyword,callback:function(t){e.$set(e.logQuery,"menu_keyword",t)},expression:"logQuery.menu_keyword"}}),a("el-date-picker",{staticClass:"filter-item",staticStyle:{width:"240px"},attrs:{type:"daterange","range-separator":"-","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.logQuery.create_time,callback:function(t){e.$set(e.logQuery,"create_time",t)},expression:"logQuery.create_time"}}),a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.logSearch()}}},[e._v("查询")]),a("el-button",{staticClass:"filter-item",on:{click:function(t){return e.logRefresh()}}},[e._v("刷新")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.logData,height:e.height-50,border:""},on:{"sort-change":e.logSort}},[a("el-table-column",{attrs:{prop:"admin_log_id",label:"日志ID","min-width":"100",sortable:"custom",fixed:"left"}}),a("el-table-column",{attrs:{prop:"menu_url",label:"菜单链接","min-width":"250"}}),a("el-table-column",{attrs:{prop:"menu_name",label:"菜单名称","min-width":"150"}}),a("el-table-column",{attrs:{prop:"request_method",label:"请求方式 ","min-width":"110",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"request_ip",label:"请求IP","min-width":"130",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"request_region",label:"请求地区","min-width":"160"}}),a("el-table-column",{attrs:{prop:"request_isp",label:"请求ISP","min-width":"110"}}),a("el-table-column",{attrs:{prop:"create_time",label:"请求时间","min-width":"160",sortable:"custom"}})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.logCount>0,expression:"logCount > 0"}],attrs:{total:e.logCount,page:e.logQuery.page,limit:e.logQuery.limit},on:{"update:page":function(t){return e.$set(e.logQuery,"page",t)},"update:limit":function(t){return e.$set(e.logQuery,"limit",t)},pagination:e.myLogList}})],1)},l=[],o=a("98b1"),n=a("333d"),r=a("50fc"),s={name:"MyLog",components:{Pagination:n["a"]},data:function(){return{height:680,loading:!0,logData:[],logCount:0,logQuery:{page:1,limit:13}}},created:function(){this.height=Object(o["a"])(),this.myLogList()},methods:{myLogList:function(){var e=this;this.loading=!0,Object(r["pb"])(this.logQuery).then((function(t){e.logData=t.data.list,e.logCount=t.data.count,e.loading=!1})).catch((function(){e.loading=!1}))},logSearch:function(){this.logQuery.page=1,this.myLogList()},logRefresh:function(){this.logQuery=this.$options.data().logQuery,this.myLogList()},logSort:function(e){this.logQuery.sort_field=e.prop,this.logQuery.sort_type="","ascending"===e.order&&(this.logQuery.sort_type="asc",this.myLogList()),"descending"===e.order&&(this.logQuery.sort_type="desc",this.myLogList())}}},c=s,u=a("2877"),d=Object(u["a"])(c,i,l,!1,null,null,null);t["default"]=d.exports},2269:function(e,t,a){"use strict";a("c48a")},2462:function(e,t,a){"use strict";a("cfc6")},"24bd":function(e,t,a){"use strict";a("78bb")},2628:function(e,t,a){"use strict";a("5a07")},2862:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("IP查询")])]),a("div",{staticClass:"text item"},[a("el-form",{ref:"ipQueryRef",attrs:{model:e.ipQueryModel,rules:e.ipQueryRules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"IP"}},[a("el-input",{attrs:{type:"text",clearable:""},model:{value:e.ipQueryModel.ip,callback:function(t){e.$set(e.ipQueryModel,"ip",t)},expression:"ipQueryModel.ip"}})],1),a("el-form-item",{attrs:{label:"国家"}},[a("el-input",{attrs:{type:"text"},model:{value:e.ipQueryModel.country,callback:function(t){e.$set(e.ipQueryModel,"country",t)},expression:"ipQueryModel.country"}})],1),a("el-form-item",{attrs:{label:"省份"}},[a("el-input",{attrs:{type:"text"},model:{value:e.ipQueryModel.province,callback:function(t){e.$set(e.ipQueryModel,"province",t)},expression:"ipQueryModel.province"}})],1),a("el-form-item",{attrs:{label:"城市"}},[a("el-input",{attrs:{type:"text"},model:{value:e.ipQueryModel.city,callback:function(t){e.$set(e.ipQueryModel,"city",t)},expression:"ipQueryModel.city"}})],1),a("el-form-item",{attrs:{label:"区县"}},[a("el-input",{attrs:{type:"text"},model:{value:e.ipQueryModel.area,callback:function(t){e.$set(e.ipQueryModel,"area",t)},expression:"ipQueryModel.area"}})],1),a("el-form-item",{attrs:{label:"运营商"}},[a("el-input",{attrs:{type:"text"},model:{value:e.ipQueryModel.isp,callback:function(t){e.$set(e.ipQueryModel,"isp",t)},expression:"ipQueryModel.isp"}})],1),a("el-form-item",[a("el-button",{on:{click:function(t){return e.ipQueryClear()}}},[e._v("清空")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.ipQuerySubmit()}}},[e._v("查询")])],1)],1)],1)])},l=[],o=a("50fc"),n={name:"MixIpQuery",components:{},data:function(){return{ipQueryModel:{ip:"",country:"",province:"",city:"",area:"",isp:""},ipQueryRules:{}}},created:function(){},methods:{ipQueryClear:function(){this.ipQueryModel=this.$options.data().ipQueryModel},ipQuerySubmit:function(){var e=this;this.$refs["ipQueryRef"].validate((function(t){t&&Object(o["Q"])({ip:e.ipQueryModel.ip}).then((function(t){e.ipQueryModel=t.data}))}))}}},r=n,s=(a("f8dd"),a("2877")),c=Object(s["a"])(r,i,l,!1,null,"450b7654",null);t["default"]=c.exports},"28fb":function(e,t,a){},"2c61":function(e,t,a){},"2e20":function(e,t,a){"use strict";a("1965")},"2e50":function(e,t,a){},"31b8":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.cacheLoad,expression:"cacheLoad"}],staticClass:"box-card",style:{height:e.height+130+"px",overflow:"auto"}},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{xs:24,sm:12}},[a("el-form",{ref:"cacheRef",attrs:{model:e.cacheModel,rules:e.cacheRules,"label-width":"130px"}},[a("el-form-item",{attrs:{label:"缓存类型",prop:"type"}},[a("el-input",{model:{value:e.cacheModel.type,callback:function(t){e.$set(e.cacheModel,"type",t)},expression:"cacheModel.type"}})],1),"redis"===e.cacheModel.type?a("div",[a("el-form-item",{attrs:{label:"Redis",prop:""}},[a("el-input",{model:{value:e.cacheModel.redis_version,callback:function(t){e.$set(e.cacheModel,"redis_version",t)},expression:"cacheModel.redis_version"}})],1),a("el-form-item",{attrs:{label:"运行时长",prop:""}},[a("el-input",{model:{value:e.cacheModel.uptime_in_days,callback:function(t){e.$set(e.cacheModel,"uptime_in_days",t)},expression:"cacheModel.uptime_in_days"}})],1),a("el-form-item",{attrs:{label:"已用内存",prop:""}},[a("el-input",{model:{value:e.cacheModel.used_memory_human,callback:function(t){e.$set(e.cacheModel,"used_memory_human",t)},expression:"cacheModel.used_memory_human"}})],1),a("el-form-item",{attrs:{label:"峰值内存",prop:""}},[a("el-input",{model:{value:e.cacheModel.used_memory_peak_human,callback:function(t){e.$set(e.cacheModel,"used_memory_peak_human",t)},expression:"cacheModel.used_memory_peak_human"}})],1),a("el-form-item",{attrs:{label:"Lua内存",prop:""}},[a("el-input",{model:{value:e.cacheModel.used_memory_lua_human,callback:function(t){e.$set(e.cacheModel,"used_memory_lua_human",t)},expression:"cacheModel.used_memory_lua_human"}})],1),a("el-form-item",{attrs:{label:"客户端数",prop:""}},[a("el-input",{model:{value:e.cacheModel.connected_clients,callback:function(t){e.$set(e.cacheModel,"connected_clients",t)},expression:"cacheModel.connected_clients"}})],1),a("el-form-item",{attrs:{label:"总连接数",prop:""}},[a("el-input",{model:{value:e.cacheModel.total_connections_received,callback:function(t){e.$set(e.cacheModel,"total_connections_received",t)},expression:"cacheModel.total_connections_received"}})],1),a("el-form-item",{attrs:{label:"总命令数",prop:""}},[a("el-input",{model:{value:e.cacheModel.total_commands_processed,callback:function(t){e.$set(e.cacheModel,"total_commands_processed",t)},expression:"cacheModel.total_commands_processed"}})],1),a("el-form-item",{attrs:{label:"DB0",prop:""}},[a("el-input",{model:{value:e.cacheModel.db0,callback:function(t){e.$set(e.cacheModel,"db0",t)},expression:"cacheModel.db0"}})],1)],1):"memcache"===e.cacheModel.type?a("div",[a("el-form-item",{attrs:{label:"memcache",prop:""}},[a("el-input",{model:{value:e.cacheModel.version,callback:function(t){e.$set(e.cacheModel,"version",t)},expression:"cacheModel.version"}})],1),a("el-form-item",{attrs:{label:"运行秒数",prop:""}},[a("el-input",{model:{value:e.cacheModel.uptime,callback:function(t){e.$set(e.cacheModel,"uptime",t)},expression:"cacheModel.uptime"}})],1),a("el-form-item",{attrs:{label:"读取字节总数",prop:""}},[a("el-input",{model:{value:e.cacheModel.bytes_read,callback:function(t){e.$set(e.cacheModel,"bytes_read",t)},expression:"cacheModel.bytes_read"}})],1),a("el-form-item",{attrs:{label:"写入字节总数",prop:""}},[a("el-input",{model:{value:e.cacheModel.bytes_written,callback:function(t){e.$set(e.cacheModel,"bytes_written",t)},expression:"cacheModel.bytes_written"}})],1),a("el-form-item",{attrs:{label:"分配的内存数",prop:""}},[a("el-input",{model:{value:e.cacheModel.limit_maxbytes,callback:function(t){e.$set(e.cacheModel,"limit_maxbytes",t)},expression:"cacheModel.limit_maxbytes"}})],1),a("el-form-item",{attrs:{label:"当前打开链接数",prop:""}},[a("el-input",{model:{value:e.cacheModel.curr_connections,callback:function(t){e.$set(e.cacheModel,"curr_connections",t)},expression:"cacheModel.curr_connections"}})],1),a("el-form-item",{attrs:{label:"曾打开连接总数",prop:""}},[a("el-input",{model:{value:e.cacheModel.total_connections,callback:function(t){e.$set(e.cacheModel,"total_connections",t)},expression:"cacheModel.total_connections"}})],1),a("el-form-item",{attrs:{label:"执行get命令总数",prop:""}},[a("el-input",{model:{value:e.cacheModel.cmd_get,callback:function(t){e.$set(e.cacheModel,"cmd_get",t)},expression:"cacheModel.cmd_get"}})],1),a("el-form-item",{attrs:{label:"执行set命令总数",prop:""}},[a("el-input",{model:{value:e.cacheModel.cmd_set,callback:function(t){e.$set(e.cacheModel,"cmd_set",t)},expression:"cacheModel.cmd_set"}})],1),a("el-form-item",{attrs:{label:"flush_all命令总数",prop:""}},[a("el-input",{model:{value:e.cacheModel.cmd_flush,callback:function(t){e.$set(e.cacheModel,"cmd_flush",t)},expression:"cacheModel.cmd_flush"}})],1),a("el-form-item",{attrs:{label:"当前服务器时间",prop:""}},[a("el-input",{model:{value:e.cacheModel.time,callback:function(t){e.$set(e.cacheModel,"time",t)},expression:"cacheModel.time"}})],1)],1):"wincache"===e.cacheModel.type?a("div",[a("el-form-item",{attrs:{label:"缓存信息",prop:"store_config"}},[a("pre",[e._v(e._s(e.cacheModel.wincache_info))])])],1):e._e()],1)],1),a("el-col",{attrs:{xs:24,sm:12}},[a("el-form",{ref:"cacheRef",attrs:{model:e.cacheModel,rules:e.cacheRules,"label-width":"130px"}},[a("el-form-item",{attrs:{label:"缓存读取次数",prop:"read_times"}},[a("el-input",{model:{value:e.cacheModel.read_times,callback:function(t){e.$set(e.cacheModel,"read_times",t)},expression:"cacheModel.read_times"}})],1),a("el-form-item",{attrs:{label:"缓存写入次数",prop:"write_times"}},[a("el-input",{model:{value:e.cacheModel.write_times,callback:function(t){e.$set(e.cacheModel,"write_times",t)},expression:"cacheModel.write_times"}})],1),a("el-form-item",{attrs:{label:"缓存配置",prop:"store_config"}},[a("pre",[e._v(e._s(e.cacheModel.store_config))])]),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{title:"刷新信息"},on:{click:function(t){return e.cacheRefresh()}}},[e._v("刷新")]),a("el-button",{attrs:{type:"primary",title:"清空缓存"},on:{click:function(t){return e.cacheClear()}}},[e._v("清空")])],1)],1)],1)],1)],1)],1)},l=[],o=a("98b1"),n=a("50fc"),r={name:"SettingCache",components:{},data:function(){return{height:680,cacheLoad:!1,cacheModel:{},cacheRules:{}}},created:function(){this.height=Object(o["a"])(),this.cacheGet()},methods:{cacheGet:function(){var e=this;Object(n["Fb"])().then((function(t){e.cacheModel=t.data}))},cacheRefresh:function(){var e=this;this.cacheLoad=!0,Object(n["Fb"])().then((function(t){e.cacheModel=t.data,e.cacheLoad=!1,e.$message.success(t.msg)})).catch((function(){e.cacheLoad=!1}))},cacheClear:function(){var e=this;this.cacheLoad=!0,Object(n["Fb"])({},"post").then((function(t){e.cacheGet(),e.cacheLoad=!1,e.$message.success(t.data.msg)})).catch((function(){e.cacheLoad=!1}))}}},s=r,c=a("2877"),u=Object(c["a"])(s,i,l,!1,null,null,null);t["default"]=u.exports},"32b0":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e._m(0),a("el-form",{attrs:{model:e.form}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.form.data,height:e.height}},[a("el-table-column",{attrs:{prop:"rid",label:"ID","min-width":"30"}}),a("el-table-column",{attrs:{prop:"user.nickname",label:"用户","show-overflow-tooltip":"","min-width":"120"}}),a("el-table-column",{attrs:{prop:"origion_data",label:"原数据","show-overflow-tooltip":"","min-width":"120"}}),a("el-table-column",{attrs:{prop:"update_data",label:"添加数据","show-overflow-tooltip":"","min-width":"80"}}),a("el-table-column",{attrs:{prop:"diff_data",label:"不同数据","show-overflow-tooltip":"","min-width":"80"}}),a("el-table-column",{attrs:{prop:"action_type_name",label:"操作类型","show-overflow-tooltip":"","min-width":"80"}}),a("el-table-column",{attrs:{prop:"type_name",label:"菜单","show-overflow-tooltip":"","min-width":"120"}})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.actionRecordList}}),a("el-dialog",{attrs:{title:e.dataDialogTitle,visible:e.dataDialog,width:"65%",top:"1vh","before-close":e.cancel},on:{"update:visible":function(t){e.dataDialog=t}}},[a("el-form",{ref:"memberRef",staticClass:"dialog-body",attrs:{model:e.model,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"库房",prop:"city_id"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.model.city_id,callback:function(t){e.$set(e.model,"city_id",t)},expression:"model.city_id"}},e._l(e.dictionary.city,(function(e,t){return a("el-option",{key:e,attrs:{label:e,value:Number(t)}})})),1)],1),a("el-form-item",{attrs:{label:"材料分类",prop:"category_id"}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.category,props:e.menuProps,clearable:"",filterable:""},on:{change:e.menuPidChange},model:{value:e.model.category_id,callback:function(t){e.$set(e.model,"category_id",t)},expression:"model.category_id"}})],1),a("el-form-item",{attrs:{label:"采购单价",prop:"purchase_price"}},[a("el-input",{key:"purchase_price",attrs:{placeholder:"",clearable:""},model:{value:e.model.purchase_price,callback:function(t){e.$set(e.model,"purchase_price",t)},expression:"model.purchase_price"}})],1),a("el-form-item",{attrs:{label:"入库数量"}},[a("el-input-number",{attrs:{min:1,max:1e6,label:""},model:{value:e.model.quantity,callback:function(t){e.$set(e.model,"quantity",t)},expression:"model.quantity"}})],1),a("el-form-item",{attrs:{label:"计量单位",prop:"unit_id"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.model.unit_id,callback:function(t){e.$set(e.model,"unit_id",t)},expression:"model.unit_id"}},e._l(e.unit,(function(e,t){return a("el-option",{key:e.unit_id,attrs:{label:e.title,value:Number(e.unit_id)}})})),1)],1),a("el-form-item",{attrs:{label:"送货单位/人",prop:"delivery_person"}},[a("el-input",{key:"delivery_person",attrs:{placeholder:"",clearable:""},model:{value:e.model.delivery_person,callback:function(t){e.$set(e.model,"delivery_person",t)},expression:"model.delivery_person"}})],1),a("el-form-item",{attrs:{label:"货单照片"}},[a("Upload",{attrs:{"img-url":e.model.receiptr_img},on:{callback:function(t){e.model.receiptr_img=t}},model:{value:e.model.receiptr_img,callback:function(t){e.$set(e.model,"receiptr_img",t)},expression:"model.receiptr_img"}})],1),a("el-form-item",{attrs:{label:"材料照片"}},[a("Upload",{attrs:{"img-url":e.model.actionRecord_img},on:{callback:function(t){e.model.actionRecord_img=t}},model:{value:e.model.actionRecord_img,callback:function(t){e.$set(e.model,"actionRecord_img",t)},expression:"model.actionRecord_img"}})],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:12},placeholder:"",clearable:""},model:{value:e.model.remark,callback:function(t){e.$set(e.model,"remark",t)},expression:"model.remark"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("提交")])],1)],1)],1)},l=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"filter-container"},[a("div",{staticStyle:{float:"left"}},[a("div",{staticStyle:{"margin-right":"10px",float:"left"}})]),a("div",{staticStyle:{float:"right"}})])}],o=(a("14d9"),a("98b1")),n=a("333d"),r=a("50fc"),s=a("d443"),c={name:"actionRecord",components:{Pagination:n["a"],Upload:s["a"]},data:function(){return{this_:this,height:680,loading:!1,form:{data:[]},count:0,query:{page:1,limit:20},type:"",dataDialog:!1,dataDialogTitle:"",menuProps:{checkStrictly:!1,value:"cid",label:"title"},model:{actionRecord_id:"",city_id:"",category_id:"",unit_id:"",purchase_price:"",quantity:"",delivery_person:"",receiptr_img:"",actionRecord_img:"",remark:""},rules:{title:[{required:!0,message:"标题不能为空",trigger:"blur"}]},category:[],unit:[],dictionary:[]}},created:function(){this.type="default",this.height=Object(o["a"])(),this.actionRecordList(),this.unitAll(),this.dictionaryData(),this.categoryAll()},methods:{dictionaryData:function(){var e=this;Object(r["F"])().then((function(t){e.dictionary=t.data})).catch((function(){e.loading=!1}))},categoryAll:function(){var e=this;this.loading=!0,Object(r["u"])(this.query).then((function(t){e.category=t.data,e.loading=!1})).catch((function(){e.loading=!1}))},actionRecordGetactionRecord:function(){var e=this;Object(r["actionRecordGetactionRecord"])().then((function(t){e.actionRecord=t.data}))},unitAll:function(){var e=this;Object(r["unitAll"])().then((function(t){e.unit=t.data}))},actionRecordList:function(){var e=this;this.loading=!0,this.query.type=this.type,Object(r["actionRecordList"])(this.query).then((function(t){e.form.data=t.data.data,e.count=t.data.total,e.loading=!1})).catch((function(){e.loading=!1}))},search:function(){this.query.page=1,this.actionRecordList()},reset:function(){this.query={page:1,limit:13},this.actionRecordList()},modelReset:function(){this.model=this.$options.data().model,void 0!==this.$refs["memberRef"]&&this.$refs["memberRef"].resetFields()},addition:function(){this.dataDialog=!0,this.dataDialogTitle="添加",this.modelReset()},modify:function(e){var t=this;this.dataDialogTitle="修改:",Object(r["actionRecordEdit"])({actionRecord_id:e.actionRecord_id}).then((function(e){t.model=e.data,t.dataDialog=!0}))},disable:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"status";this.loading=!0,e.table="Test",e.field=a,Object(r["gc"])(e).then((function(e){t.actionRecordList(),t.$message({message:e.msg,type:"success"})})).catch((function(){t.actionRecordList()}))},menuPidChange:function(e){e&&(this.model.category_id=e[e.length-1])},remove:function(e){var t=this;this.$confirm('确定要删除 <span style="color:red">'+e.category_name+" </span>吗?","删除确认",{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(r["actionRecordDel"])({actionRecord_id:e.actionRecord_id}).then((function(e){t.$message({message:e.msg,type:"success"}),t.actionRecordList()})).catch((function(){t.loading=!1}))}))},cancel:function(){this.reset(),this.dataDialog=!1},updateSort:function(e,t){var a=this,i=[];i.push({id:e.cid,sort:e[t]});var l={data:i,table:"actionRecord"};Object(r["fc"])(l).then((function(e){a.dataDialog=!1,a.$message({message:e.msg,type:"success"}),a.actionRecordList()})).catch((function(){a.loading=!1}))},submit:function(){var e=this;this.$refs["memberRef"].validate((function(t){if(t){e.loading=!0,e.model.type=e.type;var a=e.model;a.actionRecord_id?Object(r["actionRecordEdit"])(a,"post").then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.actionRecordList()})).catch((function(){e.loading=!1})):Object(r["actionRecordAdd"])(a).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.actionRecordList()})).catch((function(){e.loading=!1}))}}))}},filters:{}},u=c,d=(a("7c32"),a("2877")),m=Object(d["a"])(u,i,l,!1,null,null,null);t["default"]=m.exports},"32ba":function(e,t,a){},"333d":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[a("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)},l=[];a("a9e3");Math.easeInOutQuad=function(e,t,a,i){return e/=i/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,a){var i=r(),l=e-i,s=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=s;var r=Math.easeInOutQuad(c,i,l,t);n(r),c<t?o(e):a&&"function"===typeof a&&a()};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,13,20,30,50,80,100,150,200]}},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&&s(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&s(0,800)}}},u=c,d=(a("b38d"),a("2877")),m=Object(d["a"])(u,i,l,!1,null,"5c5bab72",null);t["a"]=m.exports},"336f":function(e,t,a){"use strict";a("88f0")},"3b4b":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.verifyLoad,expression:"verifyLoad"}],staticClass:"box-card"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{xs:24,sm:12}},[a("el-form",{ref:"verifyRef",attrs:{model:e.verifyModel,rules:e.verifyRules,"label-width":"120px"}},[e.verifyModel.verify_switch?a("el-form-item",{attrs:{label:"验证码",prop:"verify_code"}},[a("el-image",{staticStyle:{width:"200px",height:"50px"},attrs:{src:e.verifyModel.verify_src,fit:"fill",alt:"验证码",title:"点击刷新验证码"},on:{click:function(t){return e.settingVerify()}}})],1):e._e(),a("el-form-item",{attrs:{label:"验证码开关",prop:"switch"}},[a("el-switch",{model:{value:e.verifyModel.switch,callback:function(t){e.$set(e.verifyModel,"switch",t)},expression:"verifyModel.switch"}})],1),a("el-form-item",{attrs:{label:"验证码曲线",prop:"curve"}},[a("el-switch",{model:{value:e.verifyModel.curve,callback:function(t){e.$set(e.verifyModel,"curve",t)},expression:"verifyModel.curve"}})],1),a("el-form-item",{attrs:{label:"验证码杂点",prop:"noise"}},[a("el-switch",{model:{value:e.verifyModel.noise,callback:function(t){e.$set(e.verifyModel,"noise",t)},expression:"verifyModel.noise"}})],1),a("el-form-item",{attrs:{label:"验证码背景图",prop:"bgimg"}},[a("el-switch",{model:{value:e.verifyModel.bgimg,callback:function(t){e.$set(e.verifyModel,"bgimg",t)},expression:"verifyModel.bgimg"}})],1),a("el-form-item",{attrs:{label:"验证码类型",prop:"type"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择"},model:{value:e.verifyModel.type,callback:function(t){e.$set(e.verifyModel,"type",t)},expression:"verifyModel.type"}},e._l(e.verify_type_arr,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}},[e._v(" "+e._s(t.label)+" ")])})),1)],1),a("el-form-item",{attrs:{label:"验证码位数",prop:"length"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择"},model:{value:e.verifyModel.length,callback:function(t){e.$set(e.verifyModel,"length",t)},expression:"verifyModel.length"}},e._l(e.verify_length_arr,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}},[e._v(" "+e._s(t.label)+" ")])})),1)],1),a("el-form-item",{attrs:{label:"验证码有效时间",prop:"expire"}},[a("el-col",{attrs:{xs:24,sm:8}},[a("el-input",{attrs:{type:"number"},model:{value:e.verifyModel.expire,callback:function(t){e.$set(e.verifyModel,"expire",t)},expression:"verifyModel.expire"}},[a("template",{slot:"append"},[e._v("秒")])],2)],1)],1),a("el-form-item",[a("el-button",{on:{click:function(t){return e.verifyRefresh()}}},[e._v("刷新")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.verifySubmit()}}},[e._v("提交")])],1)],1)],1)],1)],1)],1)},l=[],o=a("90e7"),n={name:"Verify",components:{},data:function(){return{verifyLoad:!1,verify_type_arr:[{value:1,label:"数字"},{value:2,label:"字母"},{value:3,label:"数字字母"},{value:4,label:"算术"},{value:5,label:"中文"}],verify_length_arr:[{value:3,label:"3位"},{value:4,label:"4位"},{value:5,label:"5位"},{value:6,label:"6位"}],verifyModel:{switch:!1,curve:!1,noise:!1,bgimg:!1,type:1,length:4,expire:180,verify_id:"",verify_src:"",verify_switch:!1},verifyRules:{type:[{required:!0,message:"请选择验证码类型",trigger:"blur"}],length:[{required:!0,message:"请选择验证码位数",trigger:"blur"}],expire:[{required:!0,message:"请输入验证码有效时间",trigger:"blur"}]}}},created:function(){this.settingVerify()},methods:{settingVerify:function(){var e=this;Object(o["b"])().then((function(t){e.verifyModel=t.data}))},verifyRefresh:function(){var e=this;this.verifyLoad=!0,Object(o["b"])().then((function(t){e.verifyModel=t.data,e.verifyLoad=!1,e.$message.success(t.msg)})).catch((function(){e.verifyLoad=!1}))},verifySubmit:function(){var e=this;this.$refs["verifyRef"].validate((function(t){t&&(e.verifyLoad=!0,Object(o["b"])(e.verifyModel).then((function(t){e.verifyModel=t.data,e.verifyLoad=!1,e.$message.success(t.msg)})).catch((function(){e.verifyLoad=!1})))}))}}},r=n,s=a("2877"),c=Object(s["a"])(r,i,l,!1,null,null,null);t["default"]=c.exports},4143:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"box-card"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{xs:24,sm:12}},[a("el-form",{ref:"userRef",attrs:{"label-width":"100px"}},[a("el-form-item",{attrs:{label:"头像"}},[e.avatar?a("el-avatar",{attrs:{shape:"circle",fit:"contain",size:100,src:e.avatar}}):e._e()],1),a("el-form-item",{attrs:{label:""}},[a("div",[e._v("jpg、png图片,小于50kb,宽高1:1")])]),a("el-form-item",[a("el-upload",{attrs:{name:"avatar_file","show-file-list":!1,"before-upload":e.uploadBefore,action:e.uploadAction,headers:e.uploadHeaders,data:e.uploadData,"on-success":e.uploadSuccess,"on-error":e.uploadError}},[a("el-button",{attrs:{type:"primary"}},[e._v("更换")])],1)],1)],1)],1)],1)],1)],1)},l=[],o=a("5530"),n=a("5f87"),r=a("2f62"),s=a("4360"),c={name:"MyAvatar",components:{},data:function(){return{loading:!1,uploadAction:"http://yl.jnbinzang.com/backend.php/AdminMy/myAvatar",uploadHeaders:{AdminToken:Object(n["f"])(),AdminUserId:Object(n["g"])()},uploadData:{admin_user_id:Object(n["g"])()}}},computed:Object(o["a"])({},Object(r["b"])(["avatar"])),methods:{uploadBefore:function(e){this.loading=!0},uploadSuccess:function(e,t){200===e.code?(s["a"].commit("user/SET_AVATAR",e.data.avatar),this.loading=!1,this.$message.success(e.msg)):(this.loading=!1,this.$message.error(e.msg))},uploadError:function(e){this.loading=!1}}},u=c,d=a("2877"),m=Object(d["a"])(u,i,l,!1,null,null,null);t["default"]=m.exports},4196:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticStyle:{float:"left"}},[a("div",{staticStyle:{"margin-right":"10px",float:"left"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"",clearable:""},model:{value:e.query.title,callback:function(t){e.$set(e.query,"title",t)},expression:"query.title"}})],1),a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")]),a("el-button",{staticClass:"filter-item",on:{click:function(t){return e.reset()}}},[e._v("重置")])],1),a("div",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addition("")}}},[e._v("添加")])],1)]),a("el-form",{attrs:{model:e.form}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.form.data,height:e.height,border:""}},[a("el-table-column",{attrs:{type:"index",label:"ID","min-width":"50",fixed:"left"}}),a("el-table-column",{attrs:{prop:"title",label:"单位","min-width":"170"}}),a("el-table-column",{attrs:{prop:"sort",label:"创建时间","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(e._f("parseTime")(a.create_time))+" ")]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"80",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.modify(i)}}},[e._v("修改")])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.unitList}}),a("el-dialog",{attrs:{title:e.dataDialogTitle,visible:e.dataDialog,width:"65%",top:"1vh","before-close":e.cancel},on:{"update:visible":function(t){e.dataDialog=t}}},[a("el-form",{ref:"memberRef",staticClass:"dialog-body",style:{height:e.height+50+"px"},attrs:{model:e.model,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"单位",prop:"title"}},[a("el-input",{key:"title",attrs:{placeholder:"",clearable:""},model:{value:e.model.title,callback:function(t){e.$set(e.model,"title",t)},expression:"model.title"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("提交")])],1)],1)],1)},l=[],o=(a("d3b7"),a("159b"),a("4e82"),a("98b1")),n=a("333d"),r=a("50fc"),s={name:"unit",components:{Pagination:n["a"]},data:function(){return{this_:this,height:680,loading:!1,form:{data:[]},count:0,query:{page:1,limit:20},dataDialog:!1,dataDialogTitle:"",model:{cid:0,title:""},rules:{title:[{required:!0,message:"标题不能为空",trigger:"blur"}]}}},created:function(){this.height=Object(o["a"])(),this.unitList()},methods:{unitList:function(){var e=this;this.loading=!0,Object(r["unitList"])(this.query).then((function(t){e.form.data=t.data.data,e.count=t.data.total,e.loading=!1})).catch((function(){e.loading=!1}))},search:function(){this.query.page=1,this.unitList()},reset:function(){this.query={page:1,limit:13},this.unitList()},modelReset:function(){this.model=this.$options.data().model,void 0!==this.$refs["memberRef"]&&this.$refs["memberRef"].resetFields()},addition:function(){this.dataDialog=!0,this.dataDialogTitle="添加",this.modelReset()},modify:function(e){var t=this;this.dataDialogTitle="修改:"+e.title,Object(r["unitEdit"])({unit_id:e.unit_id}).then((function(e){e.data.create_time=1e3*e.data.create_time,t.model=e.data,t.dataDialog=!0}))},disable:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"status";this.loading=!0,e.table="Test",e.field=a,Object(r["gc"])(e).then((function(e){t.unitList(),t.$message({message:e.msg,type:"success"})})).catch((function(){t.unitList()}))},remove:function(e){var t=this;this.$confirm('确定要删除 <span style="color:red">'+e.title+" </span>吗?","删除确认",{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(r["unitDel"])({unit_id:e.unit_id}).then((function(e){t.$message({message:e.msg,type:"success"}),t.unitList()})).catch((function(){t.loading=!1}))}))},cancel:function(){this.reset(),this.dataDialog=!1},updateSort:function(){var e=this,t=[],a=this.form.data;a.forEach((function(e,a){var i={id:e.cid,sort:e.sort||""};t[a]=i}));var i={data:t,table:"Test"};Object(r["fc"])(i).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.unitList()})).catch((function(){e.loading=!1}))},submit:function(){var e=this;this.$refs["memberRef"].validate((function(t){if(t){e.loading=!0;var a=e.model;a.unit_id?Object(r["unitEdit"])(a,"post").then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.unitList()})).catch((function(){e.loading=!1})):Object(r["unitAdd"])(a).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.unitList()})).catch((function(){e.loading=!1}))}}))}},filters:{}},c=s,u=(a("e66a"),a("2877")),d=Object(u["a"])(c,i,l,!1,null,null,null);t["default"]=d.exports},4381:function(e,t,a){"use strict";a("d3b7"),a("caad"),a("2532"),a("d9e2");var i=a("4360");function l(e,t){var a=t.value,l=i["a"].getters&&i["a"].getters.roles;if(!(a&&a instanceof Array))throw new Error("need roles! Like v-permission=\"['admin','editor']\"");if(a.length>0){var o=a,n=l.some((function(e){return o.includes(e)}));n||e.parentNode&&e.parentNode.removeChild(e)}}var o={inserted:function(e,t){l(e,t)},update:function(e,t){l(e,t)}},n=function(e){e.directive("permission",o)};window.Vue&&(window["permission"]=o,Vue.use(n)),o.install=n;t["a"]=o},"443c":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticStyle:{float:"left"}},[a("div",{staticStyle:{"margin-right":"10px",float:"left"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"",clearable:""},model:{value:e.query.keyword,callback:function(t){e.$set(e.query,"keyword",t)},expression:"query.keyword"}})],1),a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")]),a("el-button",{staticClass:"filter-item",on:{click:function(t){return e.reset()}}},[e._v("重置")])],1),a("div",{staticStyle:{float:"right"}})]),a("el-form",{attrs:{model:e.form}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.form.data,height:e.height,border:""}},[a("el-table-column",{attrs:{prop:"id",label:"ID","min-width":"50"}}),a("el-table-column",{attrs:{prop:"name",label:"姓名","min-width":"70"}}),a("el-table-column",{attrs:{prop:"age",label:"年龄","min-width":"70"}}),a("el-table-column",{attrs:{prop:"sex",label:"性别","min-width":"70"}}),a("el-table-column",{attrs:{prop:"living_ability",label:"生活能力","min-width":"70"}}),a("el-table-column",{attrs:{prop:"budget",label:"预算","min-width":"70"}}),a("el-table-column",{attrs:{prop:"health",label:"健康情况","min-width":"70"}}),a("el-table-column",{attrs:{prop:"contacts",label:"联系人","min-width":"70"}}),a("el-table-column",{attrs:{prop:"relationship",label:"关系","min-width":"70"}}),a("el-table-column",{attrs:{prop:"contacts_tel",label:"联系人手机号","min-width":"80"}}),a("el-table-column",{attrs:{prop:"sort",label:"创建时间","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(e._f("parseTime")(a.create_time))+" ")]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"80",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.remove(i)}}},[e._v("删除")])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.submitGuestbookList}})],1)},l=[],o=(a("b0c0"),a("d3b7"),a("25f0"),a("159b"),a("4e82"),a("98b1")),n=a("333d"),r=a("50fc"),s={name:"unit",components:{Pagination:n["a"]},data:function(){return{this_:this,height:680,loading:!1,form:{data:[]},count:0,query:{page:1,limit:20},dataDialog:!1,dataDialogTitle:"",model:{cid:0,title:""},rules:{title:[{required:!0,message:"标题不能为空",trigger:"blur"}]}}},created:function(){this.height=Object(o["a"])(),this.submitGuestbookList()},methods:{submitGuestbookList:function(){var e=this;this.loading=!0,Object(r["Wb"])(this.query).then((function(t){e.form.data=t.data.data,e.count=t.data.total,e.loading=!1})).catch((function(){e.loading=!1}))},search:function(){this.query.page=1,this.submitGuestbookList()},reset:function(){this.query={page:1,limit:13},this.unitList()},modelReset:function(){this.model=this.$options.data().model,void 0!==this.$refs["memberRef"]&&this.$refs["memberRef"].resetFields()},remove:function(e){var t=this;this.$confirm('确定要删除 <span style="color:red">'+e.name+" </span>吗?","删除确认",{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(r["Vb"])({id:e.id}).then((function(e){t.$message({message:e.msg,type:"success"}),t.submitGuestbookList()})).catch((function(){t.loading=!1}))}))},cancel:function(){this.reset(),this.dataDialog=!1},updateSort:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=this,t=[],a=this.form.data;a.forEach((function(e,a){var i={id:e.cid,sort:e.sort||""};t[a]=i}));var i={data:t,table:"Test"};updateSort(i).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.unitList()})).catch((function(){e.loading=!1}))})),submit:function(){var e=this;this.$refs["memberRef"].validate((function(t){if(t){e.loading=!0;var a=e.model;a.unit_id?unitEdit(a,"post").then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.unitList()})).catch((function(){e.loading=!1})):unitAdd(a).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.unitList()})).catch((function(){e.loading=!1}))}}))}},filters:{}},c=s,u=(a("9f06"),a("2877")),d=Object(u["a"])(c,i,l,!1,null,null,null);t["default"]=d.exports},"44d5":function(e,t,a){"use strict";a("9474")},"45ee":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"app-container"},[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loadNum,expression:"loadNum"}],staticClass:"box-card"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{sm:24,md:12}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("总计")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"el-icon-odometer icon"})]),a("el-col",{attrs:{span:12}},[e._v(" "+e._s(e.number.total)+" ")])],1)],1)])],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{sm:12}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("今天")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"el-icon-odometer icon"})]),a("el-col",{attrs:{span:12}},[e._v(" "+e._s(e.number.today)+" ")])],1)],1)])],1),a("el-col",{attrs:{sm:12}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("昨天")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"el-icon-odometer icon"})]),a("el-col",{attrs:{span:12}},[e._v(" "+e._s(e.number.yesterday)+" ")])],1)],1)])],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{sm:12}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("本周")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"el-icon-odometer icon"})]),a("el-col",{attrs:{span:12}},[e._v(" "+e._s(e.number.thisweek)+" ")])],1)],1)])],1),a("el-col",{attrs:{sm:12}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("上周")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"el-icon-odometer icon"})]),a("el-col",{attrs:{span:12}},[e._v(" "+e._s(e.number.lastweek)+" ")])],1)],1)])],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{sm:12}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("本月")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"el-icon-odometer icon"})]),a("el-col",{attrs:{span:12}},[e._v(" "+e._s(e.number.thismonth)+" ")])],1)],1)])],1),a("el-col",{attrs:{sm:12}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("上月")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"el-icon-odometer icon"})]),a("el-col",{attrs:{span:12}},[e._v(" "+e._s(e.number.lastmonth)+" ")])],1)],1)])],1)],1)],1)],1),a("div",{staticClass:"app-container"},[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loadDate,expression:"loadDate"}],staticClass:"box-card"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{sm:24}},[a("el-date-picker",{staticStyle:{"max-width":"280px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:function(t){return e.echartDateChange()}},model:{value:e.date.date,callback:function(t){e.$set(e.date,"date",t)},expression:"date.date"}})],1)],1),a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{sm:24}},[a("div",{style:{height:e.height+"px"},attrs:{id:"echartDate"}})])],1)],1)],1),a("div",{staticClass:"app-container"},[a("el-card",{staticClass:"box-card"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{sm:24,md:8}},[a("el-date-picker",{staticStyle:{"max-width":"280px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:function(t){return e.echartRegionChange()}},model:{value:e.region.date,callback:function(t){e.$set(e.region,"date",t)},expression:"region.date"}})],1),a("el-col",{attrs:{sm:24,md:16}},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:function(t){return e.echartRegionChange()}},model:{value:e.regionValue,callback:function(t){e.regionValue=t},expression:"regionValue"}},e._l(e.regionType,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),a("el-divider"),a("el-row",{directives:[{name:"loading",rawName:"v-loading",value:e.loadRegion,expression:"loadRegion"}],attrs:{gutter:0}},[a("el-col",{attrs:{sm:24}},[a("div",{style:{height:e.height+"px"},attrs:{id:"echartRegionLine"}})])],1),a("el-divider"),a("el-row",{directives:[{name:"loading",rawName:"v-loading",value:e.loadRegion,expression:"loadRegion"}],attrs:{gutter:0}},[a("el-col",{attrs:{sm:24}},[a("div",{style:{height:e.height+"px"},attrs:{id:"echartRegionPie"}})])],1)],1)],1),a("back-to-top",{attrs:{"transition-name":"fade"}})],1)},l=[],o=a("0625"),n=a("dec9"),r=a("3eba");a("ef97"),a("94b1"),a("c037"),a("007d"),a("d28f"),a("627c");var s={name:"UserLogsta",components:{BackToTop:o["a"]},data:function(){return{height:680,loadNum:!1,loadDate:!1,loadRegion:!1,number:{total:"--",today:"--",yesterday:"--",thisweek:"--",lastweek:"--",thismonth:"--",lastmonth:"--"},date:{x_data:[],y_data:[],date:[]},region:{x_data:[],y_data:[],date:[]},regionType:[{value:"country",label:"国家"},{value:"province",label:"省份"},{value:"city",label:"城市"},{value:"isp",label:"ISP"}],regionValue:"city",regionLabel:"城市"}},computed:{},created:function(){this.userLogSta()},mounted:function(){},methods:{userLogSta:function(){var e=this;this.loadNum=!0,Object(n["d"])().then((function(t){e.number=t.data.number,e.date=t.data.date,e.region=t.data.region,e.echartDate(t.data.date),e.echartRegionLine(t.data.region),e.echartRegionPie(t.data.region),e.loadNum=!1})).catch((function(){e.loadNum=!1}))},echartDateChange:function(){var e=this;this.loadDate=!0,Object(n["d"])({type:"date",date:this.date.date}).then((function(t){e.echartDate(t.data.date),e.loadDate=!1})).catch((function(){e.loadDate=!1}))},echartRegionChange:function(e){var t=this;this.loadRegion=!0,Object(n["d"])({type:"region",date:this.region.date,region:this.regionValue}).then((function(e){t.echartRegionLine(e.data.region),t.echartRegionPie(e.data.region),t.loadRegion=!1})).catch((function(){t.loadRegion=!1}))},echartDate:function(e){var t=r.init(document.getElementById("echartDate")),a={title:{text:"",left:"center",textStyle:{color:"#666",fontSize:14}},color:["#3398DB"],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:e.x_data},yAxis:{type:"value"},series:[{data:e.y_data,type:"line",areaStyle:{}}]};t.setOption(a)},echartRegionLine:function(e){var t=r.init(document.getElementById("echartRegionLine")),a={title:{text:"",left:"center",textStyle:{color:"#666",fontSize:14}},color:["#3398DB"],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:e.x_data,axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value"}],series:[{name:"",type:"bar",barWidth:"60%",data:e.y_data}]};t.setOption(a)},echartRegionPie:function(e){var t=r.init(document.getElementById("echartRegionPie")),a={title:{text:"",left:"center",textStyle:{color:"#666",fontSize:14}},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"3%",top:"20px"},series:[{name:"",type:"pie",radius:"55%",center:["50%","60%"],data:e.p_data,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};t.setOption(a)}}},c=s,u=(a("24bd"),a("2877")),d=Object(u["a"])(c,i,l,!1,null,"b0b16310",null);t["default"]=d.exports},"494c":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:{height:e.height+"px"}},[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loadNum,expression:"loadNum"}],staticClass:"box-card"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{sm:4}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("用户")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"el-icon-user icon"})]),a("el-col",{attrs:{span:12,title:"总数"}},[e._v(" "+e._s(e.number.total)+" ")])],1)],1)])],1),a("el-col",{attrs:{sm:3}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("今天")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12,title:"新增"}},[e._v(" + "+e._s(e.number.today)+" ")]),a("el-col",{attrs:{span:12,title:"活跃"}},[e._v(" ~ "+e._s(e.active.today)+" ")])],1)],1)])],1),a("el-col",{attrs:{sm:3}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("昨天")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12,title:"新增"}},[e._v(" + "+e._s(e.number.yesterday)+" ")]),a("el-col",{attrs:{span:12,title:"活跃"}},[e._v(" ~ "+e._s(e.active.yesterday)+" ")])],1)],1)])],1),a("el-col",{attrs:{sm:3}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("本周")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12,title:"新增"}},[e._v(" + "+e._s(e.number.yesterday)+" ")]),a("el-col",{attrs:{span:12,title:"活跃"}},[e._v(" ~ "+e._s(e.active.thisweek)+" ")])],1)],1)])],1),a("el-col",{attrs:{sm:3}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("上周")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12,title:"新增"}},[e._v(" + "+e._s(e.number.yesterday)+" ")]),a("el-col",{attrs:{span:12,title:"活跃"}},[e._v(" ~ "+e._s(e.active.lastweek)+" ")])],1)],1)])],1),a("el-col",{attrs:{sm:4}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("本月")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12,title:"新增"}},[e._v(" + "+e._s(e.number.yesterday)+" ")]),a("el-col",{attrs:{span:12,title:"活跃"}},[e._v(" ~ "+e._s(e.active.thismonth)+" ")])],1)],1)])],1),a("el-col",{attrs:{sm:4}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("上月")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12,title:"新增"}},[e._v(" + "+e._s(e.number.yesterday)+" ")]),a("el-col",{attrs:{span:12,title:"活跃"}},[e._v(" ~ "+e._s(e.active.lastmonth)+" ")])],1)],1)])],1)],1)],1),a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loadDate,expression:"loadDate"}],staticClass:"box-card"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{sm:24}},[a("el-date-picker",{staticStyle:{"max-width":"280px"},attrs:{type:"daterange","range-separator":"-","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:function(t){return e.echartDateChange()}},model:{value:e.date_new.date,callback:function(t){e.$set(e.date_new,"date",t)},expression:"date_new.date"}})],1)],1),a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{sm:24}},[a("div",{staticStyle:{height:"500px"},attrs:{id:"echartDate"}})])],1)],1),a("back-to-top",{attrs:{"transition-name":"fade"}})],1)},l=[],o=a("98b1"),n=a("0625"),r=a("50fc"),s=a("3eba");a("ef97"),a("94b1"),a("c037"),a("007d"),a("d28f"),a("627c");var c={name:"StatisticUser",components:{BackToTop:n["a"]},data:function(){return{height:680,loadNum:!1,loadDate:!1,loadRegion:!1,number:{total:"-",today:"-",yesterday:"-",thisweek:"-",lastweek:"-",thismonth:"-",lastmonth:"-"},active:{total:"-",today:"-",yesterday:"-",thisweek:"-",lastweek:"-",thismonth:"-",lastmonth:"-"},date_new:{x_data:[],y_data:[],date:[]},date_act:{x_data:[],y_data:[],date:[]},region:{x_data:[],y_data:[],date:[]}}},computed:{},created:function(){this.height=Object(o["a"])(180),this.statisticUser()},mounted:function(){},methods:{statisticUser:function(){var e=this;this.loadNum=!0,Object(r["Sb"])().then((function(t){e.number=t.data.number,e.active=t.data.active,e.date_new=t.data.date_new,e.date_act=t.data.date_act,e.region=t.data.region,e.echartDate(t.data.date_new,t.data.date_act),e.loadNum=!1})).catch((function(){e.loadNum=!1}))},echartDateChange:function(){var e=this;this.loadDate=!0,Object(r["Sb"])({type:"date",date:this.date_new.date}).then((function(t){e.echartDate(t.data.date_new,t.data.date_act),e.loadDate=!1})).catch((function(){e.loadDate=!1}))},echartDate:function(e,t){var a=s.init(document.getElementById("echartDate")),i={title:{text:""},tooltip:{trigger:"axis"},legend:{data:["新增","活跃"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!1,data:e.x_data},yAxis:{type:"value"},series:[{name:"新增",type:"line",smooth:!0,data:e.y_data},{name:"活跃",type:"line",smooth:!0,data:t.y_data}]};a.setOption(i)}}},u=c,d=(a("6750"),a("2877")),m=Object(d["a"])(u,i,l,!1,null,"7ea87f7c",null);t["default"]=m.exports},"4b3f":function(e,t,a){},"4b63":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.verifyLoad,expression:"verifyLoad"}],staticClass:"box-card"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{xs:24,sm:12}},[a("el-form",{ref:"verifyRef",attrs:{model:e.verifyModel,rules:e.verifyRules,"label-width":"120px"}},[e.verifyShow?a("el-form-item",{attrs:{label:"验证码",prop:"verify_code"}},[a("el-image",{staticStyle:{width:"200px",height:"50px"},attrs:{src:e.verifySrc,fit:"fill",alt:"验证码",title:"点击刷新验证码"},on:{click:function(t){return e.refreshVerify()}}})],1):e._e(),a("el-form-item",{attrs:{label:"验证码开关",prop:"switch"}},[a("el-switch",{model:{value:e.verifyModel.switch,callback:function(t){e.$set(e.verifyModel,"switch",t)},expression:"verifyModel.switch"}})],1),a("el-form-item",{attrs:{label:"验证码曲线",prop:"curve"}},[a("el-switch",{model:{value:e.verifyModel.curve,callback:function(t){e.$set(e.verifyModel,"curve",t)},expression:"verifyModel.curve"}})],1),a("el-form-item",{attrs:{label:"验证码杂点",prop:"noise"}},[a("el-switch",{model:{value:e.verifyModel.noise,callback:function(t){e.$set(e.verifyModel,"noise",t)},expression:"verifyModel.noise"}})],1),a("el-form-item",{attrs:{label:"验证码背景图",prop:"bgimg"}},[a("el-switch",{model:{value:e.verifyModel.bgimg,callback:function(t){e.$set(e.verifyModel,"bgimg",t)},expression:"verifyModel.bgimg"}})],1),a("el-form-item",{attrs:{label:"验证码类型",prop:"type"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择"},model:{value:e.verifyModel.type,callback:function(t){e.$set(e.verifyModel,"type",t)},expression:"verifyModel.type"}},e._l(e.verify_type_arr,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}},[e._v(" "+e._s(t.label)+" ")])})),1)],1),a("el-form-item",{attrs:{label:"验证码位数",prop:"length"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择"},model:{value:e.verifyModel.length,callback:function(t){e.$set(e.verifyModel,"length",t)},expression:"verifyModel.length"}},e._l(e.verify_length_arr,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}},[e._v(" "+e._s(t.label)+" ")])})),1)],1),a("el-form-item",{attrs:{label:"验证码有效时间",prop:"expire"}},[a("el-col",{attrs:{xs:24,sm:8}},[a("el-input",{attrs:{type:"number"},model:{value:e.verifyModel.expire,callback:function(t){e.$set(e.verifyModel,"expire",t)},expression:"verifyModel.expire"}},[a("template",{slot:"append"},[e._v("秒")])],2)],1)],1),a("el-form-item",[a("el-button",{on:{click:function(t){return e.verifyRefresh()}}},[e._v("刷新")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.verifySubmit()}}},[e._v("提交")])],1)],1)],1)],1)],1)],1)},l=[],o=a("50fc"),n={name:"SettingVerify",components:{},data:function(){return{verifyLoad:!1,verifyShow:!1,verifySrc:"",verify_type_arr:[{value:1,label:"数字"},{value:2,label:"字母"},{value:3,label:"数字字母"},{value:4,label:"算术"},{value:5,label:"中文"}],verify_length_arr:[{value:3,label:"3位"},{value:4,label:"4位"},{value:5,label:"5位"},{value:6,label:"6位"}],verifyModel:{switch:!1,curve:!1,noise:!1,bgimg:!1,type:1,length:4,expire:180},verifyRules:{type:[{required:!0,message:"请选择验证码类型",trigger:"blur"}],length:[{required:!0,message:"请选择验证码位数",trigger:"blur"}],expire:[{required:!0,message:"请输入验证码有效时间",trigger:"blur"}]}}},created:function(){this.getVerify(),this.verifyGet()},methods:{verifyGet:function(){var e=this;Object(o["Hb"])().then((function(t){e.verifyModel=t.data}))},verifyRefresh:function(){var e=this;this.verifyLoad=!0,Object(o["Hb"])().then((function(t){e.getVerify(),e.verifyModel=t.data,e.verifyLoad=!1,e.$message.success(t.msg)})).catch((function(){e.verifyLoad=!1}))},verifySubmit:function(){var e=this;this.$refs["verifyRef"].validate((function(t){t&&(e.verifyLoad=!0,Object(o["Hb"])(e.verifyModel).then((function(t){e.getVerify(),e.verifyLoad=!1,e.$message.success(t.msg)})).catch((function(){e.verifyLoad=!1})))}))},getVerify:function(){var e=this;Object(o["rc"])().then((function(t){e.verifyShow=t.data.verify_switch,t.data.verify_switch&&(e.verifySrc=t.data.verify_src)}))},refreshVerify:function(){this.getVerify()}}},r=n,s=a("2877"),c=Object(s["a"])(r,i,l,!1,null,null,null);t["default"]=c.exports},"4bd3":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:e.loading,expression:"loading",modifiers:{fullscreen:!0,lock:!0}}],attrs:{"element-loading-text":"正在退出"}})},l=[],o=a("c7eb"),n=a("1da1"),r=(a("14d9"),{name:"Logout",components:{},data:function(){return{loading:!0}},created:function(){this.logout()},methods:{logout:function(){var e=this;return Object(n["a"])(Object(o["a"])().mark((function t(){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("user/logout");case 2:e.$router.push("/login");case 3:case"end":return t.stop()}}),t)})))()}}}),s=r,c=a("2877"),u=Object(c["a"])(s,i,l,!1,null,null,null);t["default"]=u.exports},"4d21":function(e,t,a){e.exports=a.p+"static/img/401.0cf191c5.jpg"},"4f18":function(e,t,a){e.exports=a.p+"static/img/404.222241b4.jpg"},5033:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.tokenLoad,expression:"tokenLoad"}],staticClass:"box-card"},[a("el-form",{ref:"ref",attrs:{rules:e.rules,model:e.model,"label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{xs:24,sm:24}},[a("el-form-item",{attrs:{label:"网站标题",prop:"title"}},[a("el-input",{attrs:{type:"text",row:"12"},model:{value:e.model.title,callback:function(t){e.$set(e.model,"title",t)},expression:"model.title"}})],1),a("el-form-item",{attrs:{label:"详细内容",prop:"content"}},[a("editor-bar",{attrs:{isClear:e.isClear},model:{value:e.model.content,callback:function(t){e.$set(e.model,"content",t)},expression:"model.content"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("提交")])],1)],1)],1)],1)],1)],1)},l=[],o=(a("b0c0"),a("50fc")),n=a("0c98"),r={name:"WebsiteConfig",components:{EditorBar:n["a"]},data:function(){return{tokenLoad:!1,query:{},model:{title:"",type:"",content:""},isClear:!1,rules:{content:[{required:!0,message:"内容不能为空",trigger:"blur"}]}}},created:function(){this.query.type=this.$route.name,this.get()},methods:{get:function(){var e=this;Object(o["P"])(this.query).then((function(t){t.data&&(e.model=t.data)}))},submit:function(){var e=this;this.$refs["ref"].validate((function(t){t&&(e.tokenLoad=!0,e.model.type=e.query.type,Object(o["P"])(e.model,"post").then((function(t){e.tokenLoad=!1,e.$message({message:t.msg,type:"success"})})).catch((function(){e.tokenLoad=!1})))}))}}},s=r,c=a("2877"),u=Object(c["a"])(s,i,l,!1,null,null,null);t["default"]=u.exports},5379:function(e,t,a){},"53db":function(e,t,a){},"556e":function(e,t,a){"use strict";a("fd30")},5856:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.tokenLoad,expression:"tokenLoad"}],staticClass:"box-card"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{xs:24,sm:12}},[a("el-form",{ref:"tokenRef",attrs:{model:e.tokenModel,rules:e.tokenRules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"Token签发者",prop:"iss"}},[a("el-input",{attrs:{type:"text"},model:{value:e.tokenModel.iss,callback:function(t){e.$set(e.tokenModel,"iss",t)},expression:"tokenModel.iss"}})],1),a("el-form-item",{attrs:{label:"Token有效时间",prop:"exp"}},[a("el-input",{attrs:{type:"number"},model:{value:e.tokenModel.exp,callback:function(t){e.$set(e.tokenModel,"exp",t)},expression:"tokenModel.exp"}},[a("template",{slot:"append"},[e._v("小时")])],2)],1),a("el-form-item",[a("el-button",{on:{click:function(t){return e.tokenRefresh()}}},[e._v("刷新")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.tokenSubmit()}}},[e._v("提交")])],1)],1)],1)],1)],1)],1)},l=[],o=a("50fc"),n={name:"SettingToken",components:{},data:function(){return{tokenLoad:!1,tokenModel:{iss:"yylAdmin",exp:1},tokenRules:{iss:[{required:!0,message:"请输入签发者",trigger:"blur"}],exp:[{required:!0,message:"请输入有效时间",trigger:"blur"}]}}},created:function(){this.tokenGet()},methods:{tokenGet:function(){var e=this;Object(o["Gb"])().then((function(t){e.tokenModel=t.data}))},tokenRefresh:function(){var e=this;this.tokenLoad=!0,Object(o["Gb"])().then((function(t){e.tokenModel=t.data,e.tokenLoad=!1,e.$message.success(t.msg)})).catch((function(){e.tokenLoad=!1}))},tokenSubmit:function(){var e=this;this.$refs["tokenRef"].validate((function(t){t&&(e.tokenLoad=!0,Object(o["Gb"])(e.tokenModel).then((function(t){e.tokenLoad=!1,e.$message.success(t.msg)})).catch((function(){e.tokenLoad=!1})))}))}}},r=n,s=a("2877"),c=Object(s["a"])(r,i,l,!1,null,null,null);t["default"]=c.exports},5973:function(e,t,a){"use strict";a("53db")},"5a07":function(e,t,a){},"5e94":function(e,t,a){},"5ec0":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[e._m(0),a("div",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addition("")}}},[e._v("添加")])],1)]),a("el-form",{attrs:{model:e.form}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.form.data,height:e.height}},[a("el-table-column",{attrs:{type:"index",label:"ID","min-width":"30"}}),a("el-table-column",{attrs:{prop:"category_name",label:"设备分类","show-overflow-tooltip":"","min-width":"120"}}),a("el-table-column",{attrs:{prop:"warehousing_time",label:"单位/数量","min-width":"120",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(a.quantity)+" "+e._s(a.unit_name)+" ")]}}])}),a("el-table-column",{attrs:{prop:"delivery_company_name[0]",label:"送货单位","show-overflow-tooltip":"","min-width":"80"}}),a("el-table-column",{attrs:{prop:"delivery_company_name[1]",label:"开票人","show-overflow-tooltip":"","min-width":"80"}}),a("el-table-column",{attrs:{prop:"user.nickname",label:"收货人","show-overflow-tooltip":"","min-width":"80"}}),a("el-table-column",{attrs:{prop:"warehousing_time",label:"入库时间","min-width":"120",fixed:"right"}}),a("el-table-column",{attrs:{prop:"remark",label:"备注","show-overflow-tooltip":"","min-width":"120"}}),a("el-table-column",{attrs:{label:"操作","min-width":"120",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.view(i)}}},[e._v("查看")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.remove(i)}}},[e._v("删除")])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.equipmentList}}),a("el-dialog",{attrs:{title:e.dataDialogTitle1,visible:e.dataDialog1,width:"65%",top:"1vh","before-close":e.cancel1},on:{"update:visible":function(t){e.dataDialog1=t}}},[a("el-form",{ref:"memberRef",staticClass:"dialog-body",attrs:{model:e.model,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"设备分类",prop:"category_id"}},[e._v(" "+e._s(e.model.category_name)+" ")]),a("el-form-item",{attrs:{label:"计量单位",prop:"unit_id"}},[e._v(" "+e._s(e.model.unit_name)+" ")]),a("el-form-item",{attrs:{label:"生产厂家",prop:"manufacturer"}},[e._v(" "+e._s(e.model.manufacturer)+" ")]),a("el-form-item",{attrs:{label:"采购单价",prop:"purchase_price"}},[e._v(" "+e._s(e.model.purchase_price)+" ")]),a("el-form-item",{attrs:{label:"入库数量"}},[e._v(" "+e._s(e.model.quantity)+" ")]),a("el-form-item",{attrs:{label:"单位/开票人",prop:"delivery_company"}},[e.model.delivery_company_name?a("span",[e._v(" "+e._s(e.model.delivery_company_name[0])+"/"+e._s(e.model.delivery_company_name[1])+" ")]):e._e()]),a("el-form-item",{attrs:{label:"发车时间"}},[e._v(" "+e._s(e.model.departure_time)+" ")]),a("el-form-item",{attrs:{label:"入库时间"}},[e._v(" "+e._s(e.model.warehousing_time)+" ")]),a("el-form-item",{attrs:{label:"送货司机",prop:"delivery_driver"}},[e._v(" "+e._s(e.model.delivery_driver)+" ")]),a("el-form-item",{attrs:{label:"货单照片"}},[a("img",{staticStyle:{"max-width":"350px"},attrs:{src:e.model.receiptr_img,alt:""},on:{click:function(t){return e.handlePreView(e.model.receiptr_img)}}})]),a("el-form-item",{attrs:{label:"设备照片"}},[a("img",{staticStyle:{"max-width":"350px"},attrs:{src:e.model.equipment_img,alt:""},on:{click:function(t){return e.handlePreView(e.model.equipment_img)}}})]),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[e._v(" "+e._s(e.model.remark)+" ")])],1)],1),a("el-dialog",{attrs:{title:e.dataDialogTitle,visible:e.dataDialog,width:"65%",top:"1vh","before-close":e.cancel},on:{"update:visible":function(t){e.dataDialog=t}}},[a("el-form",{ref:"memberRef",staticClass:"dialog-body",attrs:{model:e.model,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"设备分类",prop:"category_id"}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.category,props:e.menuProps,clearable:"",filterable:""},on:{change:e.menuPidChange},model:{value:e.model.category_id,callback:function(t){e.$set(e.model,"category_id",t)},expression:"model.category_id"}})],1),a("el-form-item",{attrs:{label:"计量单位",prop:"unit_id"}},[e._v(" "+e._s(e.unit_name)+" ")]),a("el-form-item",{attrs:{label:"生产厂家",prop:"manufacturer"}},[a("el-input",{key:"manufacturer",attrs:{placeholder:"",clearable:""},model:{value:e.model.manufacturer,callback:function(t){e.$set(e.model,"manufacturer",t)},expression:"model.manufacturer"}})],1),a("el-form-item",{attrs:{label:"采购单价",prop:"purchase_price"}},[a("el-input",{key:"purchase_price",attrs:{placeholder:"",clearable:""},model:{value:e.model.purchase_price,callback:function(t){e.$set(e.model,"purchase_price",t)},expression:"model.purchase_price"}})],1),a("el-form-item",{attrs:{label:"入库数量"}},[a("el-input-number",{attrs:{min:1,max:1e6,label:""},model:{value:e.model.quantity,callback:function(t){e.$set(e.model,"quantity",t)},expression:"model.quantity"}})],1),a("el-form-item",{attrs:{label:"送货单位",prop:"delivery_company"}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.category1,props:e.menuProps,clearable:"",filterable:""},on:{change:e.menuPidChange1},model:{value:e.model.delivery_company,callback:function(t){e.$set(e.model,"delivery_company",t)},expression:"model.delivery_company"}})],1),a("el-form-item",{attrs:{label:"发车时间",prop:"departure_time"}},[a("el-date-picker",{attrs:{type:"datetime","default-value":"","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择日期"},model:{value:e.model.departure_time,callback:function(t){e.$set(e.model,"departure_time",t)},expression:"model.departure_time"}})],1),a("el-form-item",{attrs:{label:"入库时间",prop:"warehousing_time"}},[a("el-date-picker",{attrs:{type:"datetime","default-value":"","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择日期"},model:{value:e.model.warehousing_time,callback:function(t){e.$set(e.model,"warehousing_time",t)},expression:"model.warehousing_time"}})],1),a("el-form-item",{attrs:{label:"送货司机",prop:"delivery_driver"}},[a("el-input",{key:"delivery_driver",attrs:{placeholder:"",clearable:""},model:{value:e.model.delivery_driver,callback:function(t){e.$set(e.model,"delivery_driver",t)},expression:"model.delivery_driver"}})],1),a("el-form-item",{attrs:{label:"货单照片"}},[a("Upload",{attrs:{"img-url":e.model.receiptr_img},on:{callback:function(t){e.model.receiptr_img=t}},model:{value:e.model.receiptr_img,callback:function(t){e.$set(e.model,"receiptr_img",t)},expression:"model.receiptr_img"}})],1),a("el-form-item",{attrs:{label:"设备照片"}},[a("Upload",{attrs:{"img-url":e.model.equipment_img},on:{callback:function(t){e.model.equipment_img=t}},model:{value:e.model.equipment_img,callback:function(t){e.$set(e.model,"equipment_img",t)},expression:"model.equipment_img"}})],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:12},placeholder:"",clearable:""},model:{value:e.model.remark,callback:function(t){e.$set(e.model,"remark",t)},expression:"model.remark"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("提交")])],1)],1)],1)},l=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{float:"left"}},[a("div",{staticStyle:{"margin-right":"10px",float:"left"}})])}],o=(a("14d9"),a("98b1")),n=a("333d"),r=a("50fc"),s=a("d443"),c={name:"equipment",components:{Pagination:n["a"],Upload:s["a"]},data:function(){return{this_:this,height:680,loading:!1,form:{data:[]},count:0,query:{page:1,limit:20},type:"",dataDialog:!1,dataDialogTitle:"",dataDialog1:!1,dataDialogTitle1:"",menuProps:{checkStrictly:!1,value:"cid",label:"title"},model:{equipment_id:"",city_id:1,category_id:"",unit_id:"",manufacturer:"",purchase_price:"",quantity:"",delivery_person:"",receiptr_img:"",equipment_img:"",remark:"",delivery_company:"",departure_time:"",delivery_driver:"",warehousing_time:""},rules:{title:[{required:!0,message:"标题不能为空",trigger:"blur"}]},category:[],category1:[],unit:[],dictionary:[],unit_name:""}},created:function(){this.type="default",this.height=Object(o["a"])(),this.equipmentList(),this.unitAll(),this.dictionaryData(),this.categoryAll()},methods:{dictionaryData:function(){var e=this;Object(r["F"])().then((function(t){e.dictionary=t.data})).catch((function(){e.loading=!1}))},categoryAll:function(){var e=this;this.loading=!0,Object(r["u"])({type:"category_default"}).then((function(t){e.category=t.data,e.loading=!1})).catch((function(){e.loading=!1})),Object(r["u"])({type:"category_company"}).then((function(t){e.category1=t.data,e.loading=!1})).catch((function(){e.loading=!1}))},equipmentGetequipment:function(){var e=this;Object(r["equipmentGetequipment"])().then((function(t){e.equipment=t.data}))},unitAll:function(){var e=this;Object(r["unitAll"])().then((function(t){e.unit=t.data}))},equipmentList:function(){var e=this;this.loading=!0,this.query.type=this.type,Object(r["equipmentList"])(this.query).then((function(t){e.form.data=t.data.data,e.count=t.data.total,e.loading=!1})).catch((function(){e.loading=!1}))},search:function(){this.query.page=1,this.equipmentList()},reset:function(){this.query={page:1,limit:13},this.equipmentList()},modelReset:function(){this.model=this.$options.data().model,void 0!==this.$refs["memberRef"]&&this.$refs["memberRef"].resetFields()},addition:function(){this.dataDialog=!0,this.dataDialogTitle="添加",this.modelReset()},modify:function(e){var t=this;this.dataDialogTitle="修改:",Object(r["equipmentEdit"])({eid:e.eid}).then((function(e){t.model=e.data,t.dataDialog=!0}))},view:function(e){var t=this;this.dataDialogTitle1="查看:",Object(r["equipmentEdit"])({eid:e.eid}).then((function(e){t.model=e.data,t.dataDialog1=!0}))},handlePreView:function(e){window.open(e,"_blank")},disable:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"status";this.loading=!0,e.table="Test",e.field=a,Object(r["gc"])(e).then((function(e){t.equipmentList(),t.$message({message:e.msg,type:"success"})})).catch((function(){t.equipmentList()}))},menuPidChange:function(e){var t=this;e&&(this.model.category_id=e[e.length-1],Object(r["z"])({cid:this.model.category_id}).then((function(e){t.unit_name=e.data})))},menuPidChange1:function(e){e&&(this.model.delivery_company=e[e.length-1])},remove:function(e){var t=this;this.$confirm('确定要删除 <span style="color:red">'+e.category_name+" </span>吗?","删除确认",{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(r["equipmentDel"])({eid:e.eid}).then((function(e){t.$message({message:e.msg,type:"success"}),t.equipmentList()})).catch((function(){t.loading=!1}))}))},cancel:function(){this.reset(),this.dataDialog=!1},cancel1:function(){this.reset(),this.dataDialog1=!1},updateSort:function(e,t){var a=this,i=[];i.push({id:e.cid,sort:e[t]});var l={data:i,table:"equipment"};Object(r["fc"])(l).then((function(e){a.dataDialog=!1,a.$message({message:e.msg,type:"success"}),a.equipmentList()})).catch((function(){a.loading=!1}))},submit:function(){var e=this;this.$refs["memberRef"].validate((function(t){if(t){e.loading=!0,e.model.type=e.type;var a=e.model;a.eid?Object(r["equipmentEdit"])(a,"post").then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.equipmentList()})).catch((function(){e.loading=!1})):Object(r["equipmentAdd"])(a).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.equipmentList()})).catch((function(){e.loading=!1}))}}))}},filters:{}},u=c,d=(a("2269"),a("2877")),m=Object(d["a"])(u,i,l,!1,null,null,null);t["default"]=m.exports},"5f55":function(e,t,a){"use strict";a("2e50")},"5fd0":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("iframe",{attrs:{src:e.src,frameborder:"0",width:"100%",height:e.height}})},l=[],o=a("98b1"),n={name:"MapAmap",components:{},data:function(){return{src:"https://lbs.amap.com/console/show/picker",height:500}},created:function(){this.height=Object(o["a"])(180)},methods:{}},r=n,s=a("2877"),c=Object(s["a"])(r,i,l,!1,null,null,null);t["default"]=c.exports},6245:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("生成二维码")])]),a("div",{staticClass:"text item"},[a("el-form",{ref:"qrcodeRef",attrs:{model:e.qrcodeModel,rules:e.qrcodeRules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"文本内容",prop:"str"}},[a("el-input",{attrs:{placeholder:"请输入文本内容",clearable:""},model:{value:e.qrcodeModel.str,callback:function(t){e.$set(e.qrcodeModel,"str",t)},expression:"qrcodeModel.str"}})],1),a("el-form-item",{staticStyle:{"margin-bottom":"0"},attrs:{label:"二维码",prop:"url"}},[a("el-image",{staticStyle:{width:"150px",height:"150px"},attrs:{src:e.qrcodeModel.url,fit:"fill",title:"右击图片另存为"}},[a("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[a("i",{staticClass:"el-icon-picture-outline"})])])],1),a("el-form-item",[a("el-button",{on:{click:function(t){return e.qrcodeDown()}}},[e._v("下载")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.qrcodeSubmit()}}},[e._v("生成")])],1)],1)],1)])},l=[],o=a("50fc"),n={name:"MixQrcode",components:{},data:function(){return{qrcodeModel:{str:"",url:""},qrcodeRules:{}}},created:function(){},methods:{qrcodeDown:function(){this.qrcodeModel.url?window.open(this.qrcodeModel.url):this.$message.error("请生成二维码")},qrcodeSubmit:function(){var e=this;this.$refs["qrcodeRef"].validate((function(t){t&&Object(o["wb"])({str:e.qrcodeModel.str}).then((function(t){e.qrcodeModel=t.data}))}))}}},r=n,s=(a("adb6"),a("2877")),c=Object(s["a"])(r,i,l,!1,null,"c4f9de56",null);t["default"]=c.exports},6750:function(e,t,a){"use strict";a("aa6d")},"6a0b":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{staticStyle:{"text-align":"right"},attrs:{xs:24,sm:24}},[a("el-button",{staticClass:"filter-item",on:{click:function(t){return e.menuRefresh()}}},[e._v("刷新")]),a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.menuAddition()}}},[e._v("添加")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.menuData,height:e.height+80,"row-key":"admin_menu_id",border:""}},[a("el-table-column",{attrs:{prop:"menu_name",label:"菜单名称","min-width":"220",fixed:"left"}}),a("el-table-column",{attrs:{prop:"menu_url",label:"菜单链接","min-width":"260","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"menu_sort",label:"排序","min-width":"60"}}),a("el-table-column",{attrs:{prop:"admin_menu_id",label:"ID","min-width":"60"}}),a("el-table-column",{attrs:{prop:"menu_pid",label:"PID","min-width":"60"}}),a("el-table-column",{attrs:{prop:"vue_path",label:"Path","min-width":"160"}}),a("el-table-column",{attrs:{prop:"vue_component",label:"component","min-width":"160"}}),a("el-table-column",{attrs:{prop:"is_disable",label:"是否禁用","min-width":"80",align:"center",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.menu_url?a("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(a){return e.menuIsProhibit(t.row)}},model:{value:t.row.is_disable,callback:function(a){e.$set(t.row,"is_disable",a)},expression:"scope.row.is_disable"}}):e._e()]}}])}),a("el-table-column",{attrs:{prop:"is_unauth",label:"无需权限","min-width":"80",align:"center",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.menu_url?a("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(a){return e.menuIsUnauth(t.row)}},model:{value:t.row.is_unauth,callback:function(a){e.$set(t.row,"is_unauth",a)},expression:"scope.row.is_unauth"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"410",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.menuRoleShow(i)}}},[e._v("角色")]),a("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(t){return e.menuCopy(i)}}},[e._v("复制")]),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.menuAddition(i)}}},[e._v("添加")]),a("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(t){return e.menuModify(i)}}},[e._v("修改")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.menuDelete(i)}}},[e._v("删除")])]}}])})],1),a("el-dialog",{attrs:{title:e.menuDialogTitle,visible:e.menuDialog,top:"1vh",width:"65%","before-close":e.menuCancel},on:{"update:visible":function(t){e.menuDialog=t},opened:function(t){return e.DialogOpened()},closed:function(t){return e.DialogClosed()}}},[a("el-form",{ref:"menuRef",staticClass:"dialog-body",style:{height:e.height+50+"px"},attrs:{rules:e.menuRules,model:e.menuModel,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"菜单父级",prop:"menu_pid"}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.menuData,props:e.menuProps,clearable:"",filterable:"",placeholder:"一级菜单"},on:{change:e.menuPidChange},model:{value:e.menuModel.menu_pid,callback:function(t){e.$set(e.menuModel,"menu_pid",t)},expression:"menuModel.menu_pid"}})],1),a("el-form-item",{attrs:{label:"菜单名称",prop:"menu_name"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入菜单名称"},model:{value:e.menuModel.menu_name,callback:function(t){e.$set(e.menuModel,"menu_name",t)},expression:"menuModel.menu_name"}})],1),a("el-form-item",{attrs:{label:"菜单链接",prop:"menu_url"}},[a("el-input",{attrs:{clearable:"",placeholder:""},model:{value:e.menuModel.menu_url,callback:function(t){e.$set(e.menuModel,"menu_url",t)},expression:"menuModel.menu_url"}})],1),a("el-form-item",{attrs:{label:"菜单排序",prop:"menu_sort"}},[a("el-input",{attrs:{type:"number",placeholder:"200"},model:{value:e.menuModel.menu_sort,callback:function(t){e.$set(e.menuModel,"menu_sort",t)},expression:"menuModel.menu_sort"}})],1),a("el-form-item",{attrs:{label:"Component",prop:"vue_component"}},[a("el-input",{attrs:{placeholder:"组件路径"},model:{value:e.menuModel.vue_component,callback:function(t){e.$set(e.menuModel,"vue_component",t)},expression:"menuModel.vue_component"}})],1),a("el-form-item",{attrs:{label:"Path",prop:"vue_path"}},[a("el-input",{attrs:{placeholder:"路由地址"},model:{value:e.menuModel.vue_path,callback:function(t){e.$set(e.menuModel,"vue_path",t)},expression:"menuModel.vue_path"}})],1),a("el-form-item",{attrs:{label:"Name",prop:"vue_name"}},[a("el-input",{attrs:{placeholder:"路由名称"},model:{value:e.menuModel.vue_name,callback:function(t){e.$set(e.menuModel,"vue_name",t)},expression:"menuModel.vue_name"}})],1),a("el-form-item",{attrs:{label:"icon",prop:"vue_icon"}},[a("el-input",{attrs:{placeholder:"点击选择图标",clearable:""},model:{value:e.menuModel.vue_icon,callback:function(t){e.$set(e.menuModel,"vue_icon",t)},expression:"menuModel.vue_icon"}},[a("el-button",{attrs:{slot:"append",type:"success",icon:"el-icon-thumb"},on:{click:function(t){return e.iconOpen("icon")}},slot:"append"},[e._v("请选择")])],1)],1),a("el-form-item",{attrs:{label:"隐藏菜单",prop:"vue_hidden"}},[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.menuModel.vue_hidden,callback:function(t){e.$set(e.menuModel,"vue_hidden",t)},expression:"menuModel.vue_hidden"}})],1)],1),e.menuModel.menu_footer?a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.menuCancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.menuSubmit}},[e._v("提交")])],1):e._e(),a("Icon",{attrs:{iconshow:e.iconDialogStatus,currentIconModel:e.menuModel.vue_hidden,size:"small"},on:{"update:iconshow":function(t){e.iconDialogStatus=t},"update:currentIconModel":function(t){return e.$set(e.menuModel,"vue_hidden",t)},"update:current-icon-model":function(t){return e.$set(e.menuModel,"vue_hidden",t)},selectIcon:e.selectIcon}})],1),a("el-dialog",{attrs:{title:e.roleTitle,visible:e.roleDialog,width:"65%",top:"1vh"},on:{"update:visible":function(t){e.roleDialog=t}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.roleLoad,expression:"roleLoad"}],ref:"roleRef",staticStyle:{width:"100%"},attrs:{data:e.roleData,height:e.height+30,border:""},on:{"sort-change":e.menuRoleSort}},[a("el-table-column",{attrs:{prop:"admin_role_id",label:"ID","min-width":"100",sortable:"custom",fixed:"left"}}),a("el-table-column",{attrs:{prop:"role_name",label:"角色","min-width":"120",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"role_desc",label:"描述","min-width":"130"}}),a("el-table-column",{attrs:{prop:"is_disable",label:"是否禁用","min-width":"110",align:"center",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,disabled:""},model:{value:t.row.is_disable,callback:function(a){e.$set(t.row,"is_disable",a)},expression:"scope.row.is_disable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"120",align:"right","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.menuUserShow(i)}}},[e._v("管理员")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.menuRoleRemove(i)}}},[e._v("解除")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.roleCount>0,expression:"roleCount > 0"}],attrs:{total:e.roleCount,page:e.roleQuery.page,limit:e.roleQuery.limit},on:{"update:page":function(t){return e.$set(e.roleQuery,"page",t)},"update:limit":function(t){return e.$set(e.roleQuery,"limit",t)},pagination:e.menuRoleList}})],1),a("el-dialog",{attrs:{title:e.userTitle,visible:e.userDialog,width:"65%",top:"1vh"},on:{"update:visible":function(t){e.userDialog=t}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.userLoad,expression:"userLoad"}],ref:"userRef",staticStyle:{width:"100%"},attrs:{data:e.userData,height:e.height+30,border:""},on:{"sort-change":e.menuUserSort}},[a("el-table-column",{attrs:{prop:"admin_user_id",label:"ID","min-width":"100",sortable:"custom",fixed:"left"}}),a("el-table-column",{attrs:{prop:"username",label:"账号","min-width":"120",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"nickname",label:"昵称","min-width":"120"}}),a("el-table-column",{attrs:{prop:"email",label:"邮箱","min-width":"200","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"remark",label:"备注",width:"100"}}),a("el-table-column",{attrs:{prop:"is_admin",label:"是否超管","min-width":"96",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,disabled:""},model:{value:t.row.is_admin,callback:function(a){e.$set(t.row,"is_admin",a)},expression:"scope.row.is_admin"}})]}}])}),a("el-table-column",{attrs:{prop:"is_disable",label:"是否禁用","min-width":"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,disabled:""},model:{value:t.row.is_disable,callback:function(a){e.$set(t.row,"is_disable",a)},expression:"scope.row.is_disable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"100",align:"right","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.userQuery.admin_menu_id?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.menuUserRemove(i)}}},[e._v("解除")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.userCount>0,expression:"userCount > 0"}],attrs:{total:e.userCount,page:e.userQuery.page,limit:e.userQuery.limit},on:{"update:page":function(t){return e.$set(e.userQuery,"page",t)},"update:limit":function(t){return e.$set(e.userQuery,"limit",t)},pagination:e.menuUserList}})],1)],1)},l=[],o=a("d4ec"),n=a("bee2"),r=a("262e"),s=a("2caf"),c=(a("99af"),a("98b1")),u=a("333d"),d=a("4381"),m=a("5f87"),p=a("50fc"),f=a("6fad"),h=a.n(f),g=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{staticClass:"icon-dialog",attrs:{title:"设置字体图标",width:"800px",top:"20px",visible:e.iconshow,"before-close":e.closeForm,"append-to-body":""},on:{"update:visible":function(t){e.iconshow=t}}},[a("ul",{staticClass:"icon-ul"},e._l(e.iconList,(function(t){return a("li",{key:t,on:{click:function(a){return e.onSelect(t)}}},[a("i",{class:t}),a("div",[e._v(e._s(t))])])})),0)])},b=[],v=(a("d81d"),a("cfcd")),_={name:"Icon",props:{iconshow:{type:Boolean,default:!1},currentIconModel:{type:String}},data:function(){return{iconList:""}},watch:{iconshow:function(){var e=v.map((function(e){return"el-icon-".concat(e)}));this.iconList=e}},methods:{onSelect:function(e){this.$emit("selectIcon",e),this.$emit("update:iconshow",!1)},closeForm:function(){this.$emit("update:iconshow",!1)}}},y=_,x=(a("82ce"),a("2877")),w=Object(x["a"])(y,g,b,!1,null,null,null),k=w.exports,M={name:"Menu",components:{Pagination:u["a"],Icon:k},directives:{permission:d["a"]},data:function(){return{height:680,loading:!1,menuData:[],menuDialog:!1,menuDialogTitle:"",menuProps:{checkStrictly:!0,value:"admin_menu_id",label:"menu_name"},menuModel:{admin_menu_id:"",menu_pid:0,menu_name:"",menu_url:"",menu_sort:200,menu_request:'<table border="0" width="100%" cellpadding="0" cellspacing="0" style="text-align:center;"><tbody><tr><th>参数</th><th>类型</th><th>属性</th><th>说明</th><th>示例</th></tr><tr><td>field_name</td><td>string</td><td>选填</td><td>请求参数示例字段</td><td>示例值</td></tr></tbody></table>',menu_response:'<table border="0" width="100%" cellpadding="0" cellspacing="0" style="text-align:center;"><tbody><tr><th>参数</th><th>类型</th><th>属性</th><th>说明</th><th>示例</th></tr><tr><td>code</td><td>integer</td><td>必返</td><td>返回码,200成功,401登录失效,404接口地址错误,500服务器错误,其它失败</td><td>200</td></tr><tr><td>msg</td><td>string</td><td>必返</td><td>返回描述</td><td>成功</td></tr><tr><td>data</td><td>array</td><td>必返</td><td>返回数据</td><td></td></tr></tbody></table><p>返回数据data:</p><table border="0" width="100%" cellpadding="0" cellspacing="0" style="text-align:center;"><tbody><tr><th>字段</th><th>类型</th><th>属性</th><th>说明</th><th>示例</th></tr><tr><td>field_name</td><td>string</td><td>选返</td><td>返回数据示例字段</td><td>示例值</td></tr></tbody></table>',menu_explain:"",menu_footer:!0,vue_component:"",vue_hidden:0,vue_path:"",vue_name:"",vue_icon:""},menu_request_editor:null,menu_response_editor:null,uploadAction:"http://yl.jnbinzang.com/backend.php/admin/AdminMenu/menuUpload",uploadHeaders:{AdminToken:Object(m["f"])(),AdminUserId:Object(m["g"])()},menuRules:{menu_name:[{required:!0,message:"请输入菜单名称",trigger:"blur"}]},roleDialog:!1,roleTitle:"",roleLoad:!1,roleData:[],roleCount:0,roleQuery:{page:1,limit:13},userDialog:!1,userTitle:"",userLoad:!1,userData:[],userCount:0,userQuery:{page:1,limit:10},iconDialogStatus:!1}},created:function(){this.height=Object(c["a"])(),this.menuList()},methods:{menuList:function(){var e=this;this.loading=!0,Object(p["hb"])().then((function(t){e.menuData=t.data.list,e.loading=!1})).catch((function(){e.loading=!1}))},menuRefresh:function(){this.menuList()},menuIsProhibit:function(e){var t=this;this.loading=!0,Object(p["eb"])({admin_menu_id:e.admin_menu_id,is_disable:e.is_disable}).then((function(e){t.menuList(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))},menuIsUnauth:function(e){var t=this;this.loading=!0,Object(p["kb"])({admin_menu_id:e.admin_menu_id,is_unauth:e.is_unauth}).then((function(e){t.menuList(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))},menuDoc:function(e){var t=this;this.loading=!0,this.menuDialogTitle="接口文档:"+e.menu_name,Object(p["fb"])({admin_menu_id:e.admin_menu_id}).then((function(e){t.menuReset(e.data),t.menuModel.menu_footer=!1,t.menuDialog=!0,t.loading=!1})).catch((function(){t.loading=!1}))},menuAddition:function(e){this.menuDialog=!0,this.menuDialogTitle="菜单添加",this.menuModel=this.$options.data().menuModel,e&&(this.menuModel.menu_pid=e.admin_menu_id)},menuModify:function(e){var t=this;this.loading=!0,this.menuDialogTitle="菜单修改:"+e.menu_name,Object(p["gb"])({admin_menu_id:e.admin_menu_id}).then((function(e){t.menuReset(e.data),t.menuDialog=!0,t.loading=!1})).catch((function(){t.loading=!1}))},menuCopy:function(e){var t=this;this.loading=!0,this.menuDialogTitle="菜单复制:"+e.menu_name,Object(p["gb"])({admin_menu_id:e.admin_menu_id}).then((function(e){e.data.admin_menu_id="",t.menuReset(e.data),t.menuDialog=!0,t.loading=!1})).catch((function(){t.loading=!1}))},menuPidChange:function(e){e&&(this.menuModel.menu_pid=e[e.length-1])},menuCancel:function(){this.menuReset(),this.menuDialog=!1},menuSubmit:function(){var e=this;this.$refs["menuRef"].validate((function(t){t&&(e.loading=!0,e.menuModel.admin_menu_id?Object(p["gb"])(e.menuModel,"post").then((function(t){e.menuDialog=!1,e.menuList(),e.menuReset(),e.$message.success(t.msg)})).catch((function(){e.loading=!1})):Object(p["cb"])(e.menuModel).then((function(t){e.menuDialog=!1,e.menuList(),e.menuReset(),e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))},menuReset:function(e){e?(this.menuModel=e,this.menuModel.menu_footer=!0):this.menuModel=this.$options.data().menuModel,void 0!==this.$refs["menuRef"]&&this.$refs["menuRef"].resetFields()},DialogOpened:function(){var e=this,t=this,a=h.a.BtnMenu,i=function(e){Object(r["a"])(i,e);var a=Object(s["a"])(i);function i(e){Object(o["a"])(this,i);var t=h.a.$('<div class="w-e-menu" data-title="请求参数模板"><el-button>模板</el-button></div>');return a.call(this,t,e)}return Object(n["a"])(i,[{key:"clickHandler",value:function(){t.menu_request_editor.txt.append(t.$options.data().menuModel.menu_request)}},{key:"tryChangeActive",value:function(){}}]),i}(a),l=function(e){Object(r["a"])(i,e);var a=Object(s["a"])(i);function i(e){Object(o["a"])(this,i);var t=h.a.$('<div class="w-e-menu" data-title="清空内容"><el-button>清空</el-button></div>');return a.call(this,t,e)}return Object(n["a"])(i,[{key:"clickHandler",value:function(){t.menu_request_editor.txt.clear()}},{key:"tryChangeActive",value:function(){}}]),i}(a);this.menu_request_editor=new h.a("#menu_request"),this.menu_request_editor.menus.extend("menuRequestKey",i),this.menu_request_editor.config.menus=this.menu_request_editor.config.menus.concat("menuRequestKey"),this.menu_request_editor.menus.extend("menuClearKey",l),this.menu_request_editor.config.menus=this.menu_request_editor.config.menus.concat("menuClearKey"),this.menu_request_editor.config.uploadImgServer=this.uploadAction,this.menu_request_editor.config.uploadImgMaxLength=1,this.menu_request_editor.config.uploadImgParams={image_field:"menu_request"},this.menu_request_editor.config.uploadFileName="image_file",this.menu_request_editor.config.uploadImgHeaders=this.uploadHeaders,this.menu_request_editor.config.uploadImgHooks={customInsert:function(e,a){200===a.code?e(a.data.image_src):t.$message.error(a.msg)}},this.menu_request_editor.config.focus=!1,this.menu_request_editor.config.placeholder="",this.menu_request_editor.config.onchange=function(t){e.menuModel.menu_request=t},this.menu_request_editor.create(),this.menu_request_editor.txt.html(this.menuModel.menu_request);var c=function(e){Object(r["a"])(i,e);var a=Object(s["a"])(i);function i(e){Object(o["a"])(this,i);var t=h.a.$('<div class="w-e-menu" data-title="返回参数模板"><el-button>模板</el-button></div>');return a.call(this,t,e)}return Object(n["a"])(i,[{key:"clickHandler",value:function(){t.menu_response_editor.txt.append(t.$options.data().menuModel.menu_response)}},{key:"tryChangeActive",value:function(){}}]),i}(a),u=function(e){Object(r["a"])(i,e);var a=Object(s["a"])(i);function i(e){Object(o["a"])(this,i);var t=h.a.$('<div class="w-e-menu" data-title="清空内容"><el-button>清空</el-button></div>');return a.call(this,t,e)}return Object(n["a"])(i,[{key:"clickHandler",value:function(){t.menu_response_editor.txt.clear()}},{key:"tryChangeActive",value:function(){}}]),i}(a);this.menu_response_editor=new h.a("#menu_response"),this.menu_response_editor.menus.extend("menuResponseKey",c),this.menu_response_editor.config.menus=this.menu_response_editor.config.menus.concat("menuResponseKey"),this.menu_response_editor.menus.extend("menuResponseClearKey",u),this.menu_response_editor.config.menus=this.menu_response_editor.config.menus.concat("menuResponseClearKey"),this.menu_response_editor.config.uploadImgServer=this.uploadAction,this.menu_response_editor.config.uploadImgMaxLength=1,this.menu_response_editor.config.uploadImgParams={image_field:"menu_response"},this.menu_response_editor.config.uploadFileName="image_file",this.menu_response_editor.config.uploadImgHeaders=this.uploadHeaders,this.menu_response_editor.config.uploadImgHooks={customInsert:function(e,a){200===a.code?e(a.data.image_src):t.$message.error(a.msg)}},this.menu_response_editor.config.height=500,this.menu_response_editor.config.focus=!1,this.menu_response_editor.config.placeholder="",this.menu_response_editor.config.onchange=function(t){e.menuModel.menu_response=t},this.menu_response_editor.create(),this.menu_response_editor.txt.html(this.menuModel.menu_response),this.menuModel.menu_footer?(this.menu_response_editor.enable(),this.menu_request_editor.enable()):(this.menu_response_editor.disable(),this.menu_request_editor.disable())},DialogClosed:function(){this.menu_request_editor.destroy(),this.menu_request_editor=null,this.menu_response_editor.destroy(),this.menu_response_editor=null},menuDelete:function(e){var t=this;this.$confirm('确定要删除菜单 <span style="color:red">'+e.menu_name+" </span>吗?","删除:"+e.admin_menu_id,{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(p["db"])({admin_menu_id:e.admin_menu_id}).then((function(e){t.menuList(),t.menuReset(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))})).catch((function(){}))},menuRoleShow:function(e){this.roleDialog=!0,this.roleTitle="菜单角色:"+e.menu_name,this.roleQuery.admin_menu_id=e.admin_menu_id,this.menuRoleList()},menuRoleList:function(){var e=this;this.roleLoad=!0,Object(p["ib"])(this.roleQuery).then((function(t){e.roleData=t.data.list,e.roleCount=t.data.count,e.roleLoad=!1,e.$nextTick((function(){e.$refs["roleRef"].doLayout()}))})).catch((function(){e.roleLoad=!1}))},menuRoleSort:function(e){this.roleQuery.sort_field=e.prop,this.roleQuery.sort_type="","ascending"===e.order&&(this.roleQuery.sort_type="asc",this.menuRoleList()),"descending"===e.order&&(this.roleQuery.sort_type="desc",this.menuRoleList())},menuRoleRemove:function(e){var t=this;this.$confirm('确定要解除菜单与角色 <span style="color:red">'+e.role_name+" </span>的关联吗?","解除:"+e.admin_role_id,{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.roleLoad=!0,Object(p["jb"])({admin_menu_id:t.roleQuery.admin_menu_id,admin_role_id:e.admin_role_id}).then((function(e){t.menuRoleList(),t.$message.success(e.msg)})).catch((function(){t.roleLoad=!1}))})).catch((function(){}))},menuUserShow:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"admin_role_id";this.userDialog=!0,"admin_menu_id"===t?(this.userTitle="菜单管理员(按菜单):"+e.menu_name,this.userQuery.admin_menu_id=e.admin_menu_id,this.userQuery.admin_role_id=""):(this.userTitle="菜单管理员(按角色):"+e.role_name,this.userQuery.admin_menu_id="",this.userQuery.admin_role_id=e.admin_role_id),this.menuUserList()},menuUserList:function(){var e=this;this.userLoad=!0,Object(p["lb"])(this.userQuery).then((function(t){e.userData=t.data.list,e.userCount=t.data.count,e.userLoad=!1,e.$nextTick((function(){e.$refs["userRef"].doLayout()}))})).catch((function(){e.userLoad=!1}))},menuUserSort:function(e){this.userQuery.sort_field=e.prop,this.userQuery.sort_type="","ascending"===e.order&&(this.userQuery.sort_type="asc",this.menuUserList()),"descending"===e.order&&(this.userQuery.sort_type="desc",this.menuUserList())},menuUserRemove:function(e){var t=this;this.$confirm('确定要解除菜单与管理员 <span style="color:red">'+e.username+" </span>的关联吗?","解除:"+e.admin_user_id,{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.userLoad=!0,Object(p["mb"])({admin_menu_id:t.userQuery.admin_menu_id,admin_user_id:e.admin_user_id}).then((function(e){t.menuUserList(),t.$message.success(e.msg)})).catch((function(){t.userLoad=!1}))})).catch((function(){}))},iconOpen:function(e){this.iconDialogStatus=!0,this.currentIconModel=e},selectIcon:function(e){this.menuModel.vue_icon=e}}},$=M,C=Object(x["a"])($,i,l,!1,null,null,null);t["default"]=C.exports},"6c70":function(e,t,a){"use strict";a("e3f3")},"6d1b":function(e,t,a){},"6e03":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticStyle:{float:"left"}},[a("div",{staticStyle:{"margin-right":"10px",float:"left"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"",clearable:""},model:{value:e.query.name,callback:function(t){e.$set(e.query,"name",t)},expression:"query.name"}})],1),a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")])],1),a("div",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addition("")}}},[e._v("添加")])],1)]),a("el-form",{attrs:{model:e.form}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.form.data,height:e.height,border:""}},[a("el-table-column",{attrs:{prop:"id",label:"ID","min-width":"100",fixed:"left"}}),a("el-table-column",{attrs:{prop:"name",label:"标题","min-width":"120"}}),a("el-table-column",{attrs:{prop:"adv_type",label:"类型","min-width":"120"}}),a("el-table-column",{attrs:{prop:"width",label:"宽度","min-width":"120",formatter:function(e){return e.width+" px"}}}),a("el-table-column",{attrs:{prop:"height",label:"高度","min-width":"120",formatter:function(e){return e.height+" px"}}}),a("el-table-column",{attrs:{label:"操作","min-width":"160",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"}},[a("router-link",{attrs:{to:{name:"advDataAdd",query:{ap_id:i.id}}}},[e._v("广告列表")])],1),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.modify(i)}}},[e._v("修改")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.remove(i)}}},[e._v("删除")])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.AdvList}}),a("el-dialog",{attrs:{title:e.dataDialogTitle,visible:e.dataDialog,width:"65%",top:"1vh","before-close":e.cancel},on:{"update:visible":function(t){e.dataDialog=t}}},[a("el-form",{ref:"memberRef",staticClass:"dialog-body",style:{height:e.height+50+"px"},attrs:{model:e.model,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"标题",prop:"name"}},[a("el-input",{key:"name",attrs:{placeholder:"",clearable:""},model:{value:e.model.name,callback:function(t){e.$set(e.model,"name",t)},expression:"model.name"}})],1),a("el-form-item",{attrs:{label:"广告类型",prop:"adv_type"}},[a("el-radio-group",{model:{value:e.model.adv_type,callback:function(t){e.$set(e.model,"adv_type",t)},expression:"model.adv_type"}},e._l(e.adv_type,(function(t,i){return a("el-radio",{key:i,attrs:{label:Number(i)}},[e._v(e._s(t)+" ")])})),1)],1),a("el-form-item",{attrs:{label:"宽度"}},[a("el-input-number",{attrs:{min:1,max:1e6,label:""},model:{value:e.model.width,callback:function(t){e.$set(e.model,"width",t)},expression:"model.width"}}),e._v("px ")],1),a("el-form-item",{attrs:{label:"高度"}},[a("el-input-number",{attrs:{min:1,max:1e6,label:""},model:{value:e.model.height,callback:function(t){e.$set(e.model,"height",t)},expression:"model.height"}}),e._v("px ")],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("提交")])],1)],1)],1)},l=[],o=(a("b0c0"),a("98b1")),n=a("333d"),r=a("50fc"),s=a("0c98"),c={name:"Adv",components:{Pagination:n["a"],EditorBar:s["a"]},data:function(){return{this_:this,height:680,loading:!1,form:{data:[]},count:0,query:{page:1,limit:13,type:""},dataDialog:!1,dataDialogTitle:"",model:{id:0,name:"",adv_type:2,width:0,height:0,type:""},rules:{name:[{required:!0,message:"名称不能为空",trigger:"blur"}]},isClear:!1,adv_type:[]}},created:function(){this.height=Object(o["a"])(),this.query.type=this.$route.name,this.model.type=this.$route.name,this.AdvList(),this.dictionary()},methods:{dictionary:function(){var e=this;Object(r["F"])().then((function(t){e.area=t.data.area,e.adv_type=t.data[1]})).catch((function(){e.loading=!1}))},AdvList:function(){var e=this;this.loading=!0,Object(r["i"])(this.query).then((function(t){e.form.data=t.data.data,e.count=t.data.total,e.loading=!1})).catch((function(){e.loading=!1}))},showImage:function(e){return Object({VUE_APP_BASE_API:"http://yl.jnbinzang.com/backend.php",NODE_ENV:"production",BASE_URL:"/admin1131/"}).VUE_APP_IMAGE_URL+e},search:function(){this.query.page=1,this.AdvList()},reset:function(){this.AdvList()},modelReset:function(){this.model=this.$options.data().model,void 0!==this.$refs["memberRef"]&&this.$refs["memberRef"].resetFields()},addition:function(){this.dataDialog=!0,this.dataDialogTitle="广告添加",this.modelReset()},modify:function(e){var t=this;this.dataDialogTitle="广告修改:"+e.name,Object(r["g"])({id:e.id}).then((function(e){t.model=e.data,t.dataDialog=!0}))},uploadBefore:function(e){},image_del:function(e,t,a){var i=this;this.$confirm("确定删除吗?","提示").then((function(){Object(r["hc"])({hash:e.hash}).then((function(e){i.$message({message:"删除成功",type:"success"}),removeByIndex(i.model[a],t)})).catch((function(){}))})).catch((function(){}))},uploadSuccess:function(e,t,a){200===e.code?(this.model[a]=e.data.savename,this.$message({message:e.msg,type:"success"})):this.$message({message:e.msg,type:"error"})},disable:function(e){var t=this;this.loading=!0,e.table="Adv",e.field="is_recommend",updateStatus(e).then((function(e){t.AdvList(),t.$message({message:e.msg,type:"success"})})).catch((function(){t.AdvList()}))},handleRemove:function(e){console.log(e)},remove:function(e){var t=this;this.$confirm('确定要删除广告位 <span style="color:red">'+e.name+" </span>吗?","广告位删除确认",{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(r["f"])({id:e.id}).then((function(e){t.$message({message:e.msg,type:"success"}),t.AdvList()})).catch((function(){t.loading=!1}))}))},cancel:function(){this.reset(),this.dataDialog=!1},submit:function(){var e=this;this.$refs["memberRef"].validate((function(t){if(t){e.loading=!0,e.model.type=e.query.type;var a=e.model;a.id?Object(r["g"])(a,"post").then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.AdvList()})).catch((function(){e.loading=!1})):Object(r["a"])(a).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.AdvList()})).catch((function(){e.loading=!1}))}}))}},filters:{}},u=c,d=(a("e834"),a("2877")),m=Object(d["a"])(u,i,l,!1,null,null,null);t["default"]=m.exports},7115:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.serverLoad,expression:"serverLoad"}],staticClass:"box-card"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{xs:24,sm:12}},[a("el-form",{ref:"serverInfoRef",attrs:{model:e.serverModel,rules:e.serverRules,"label-width":"150px"}},[a("el-form-item",{attrs:{label:"OS"}},[a("el-input",{model:{value:e.serverModel.system_info,callback:function(t){e.$set(e.serverModel,"system_info",t)},expression:"serverModel.system_info"}})],1),a("el-form-item",{attrs:{label:"Web"}},[a("el-input",{model:{value:e.serverModel.server_software,callback:function(t){e.$set(e.serverModel,"server_software",t)},expression:"serverModel.server_software"}})],1),a("el-form-item",{attrs:{label:"MySQL"}},[a("el-input",{model:{value:e.serverModel.mysql,callback:function(t){e.$set(e.serverModel,"mysql",t)},expression:"serverModel.mysql"}})],1),a("el-form-item",{attrs:{label:"PHP"}},[a("el-input",{model:{value:e.serverModel.php_version,callback:function(t){e.$set(e.serverModel,"php_version",t)},expression:"serverModel.php_version"}})],1),a("el-form-item",{attrs:{label:"php_sapi_name"}},[a("el-input",{model:{value:e.serverModel.php_sapi_name,callback:function(t){e.$set(e.serverModel,"php_sapi_name",t)},expression:"serverModel.php_sapi_name"}})],1),a("el-form-item",{attrs:{label:"ThinkPHP"}},[a("el-input",{model:{value:e.serverModel.thinkphp,callback:function(t){e.$set(e.serverModel,"thinkphp",t)},expression:"serverModel.thinkphp"}})],1),a("el-form-item",{attrs:{label:"IP"}},[a("el-input",{model:{value:e.serverModel.ip,callback:function(t){e.$set(e.serverModel,"ip",t)},expression:"serverModel.ip"}})],1),a("el-form-item",{attrs:{label:"Domain"}},[a("el-input",{model:{value:e.serverModel.domain,callback:function(t){e.$set(e.serverModel,"domain",t)},expression:"serverModel.domain"}})],1),a("el-form-item",{attrs:{label:"Port"}},[a("el-input",{model:{value:e.serverModel.port,callback:function(t){e.$set(e.serverModel,"port",t)},expression:"serverModel.port"}})],1),a("el-form-item",{attrs:{label:"Protocol"}},[a("el-input",{model:{value:e.serverModel.server_protocol,callback:function(t){e.$set(e.serverModel,"server_protocol",t)},expression:"serverModel.server_protocol"}})],1),a("el-form-item",{attrs:{label:"max_execution_time"}},[a("el-input",{model:{value:e.serverModel.max_execution_time,callback:function(t){e.$set(e.serverModel,"max_execution_time",t)},expression:"serverModel.max_execution_time"}})],1),a("el-form-item",{attrs:{label:"upload_max_filesize"}},[a("el-input",{model:{value:e.serverModel.upload_max_filesize,callback:function(t){e.$set(e.serverModel,"upload_max_filesize",t)},expression:"serverModel.upload_max_filesize"}})],1),a("el-form-item",{attrs:{label:"post_max_size"}},[a("el-input",{model:{value:e.serverModel.post_max_size,callback:function(t){e.$set(e.serverModel,"post_max_size",t)},expression:"serverModel.post_max_size"}})],1)],1)],1)],1)],1)],1)},l=[],o=a("50fc"),n={name:"ServerInfo",components:{},data:function(){return{serverLoad:!1,serverModel:{},serverRules:{}}},created:function(){this.serverGet()},methods:{serverGet:function(){var e=this;Object(o["Eb"])().then((function(t){e.serverModel=t.data}))},serverRefresh:function(){var e=this;this.serverLoad=!0,Object(o["Eb"])().then((function(t){e.serverModel=t.data,e.serverLoad=!1,e.$message.success(t.msg)})).catch((function(){e.serverLoad=!1}))}}},r=n,s=(a("2462"),a("2877")),c=Object(s["a"])(r,i,l,!1,null,"c1154338",null);t["default"]=c.exports},7161:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"box-card"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{xs:24,sm:12}},[a("el-form",{ref:"userRef",attrs:{rules:e.userRules,model:e.userModel,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"旧密码",prop:"password_old"}},[a("el-input",{attrs:{type:"password",placeholder:"请输入旧密码",autocomplete:"off",clearable:"","show-password":""},model:{value:e.userModel.password_old,callback:function(t){e.$set(e.userModel,"password_old",t)},expression:"userModel.password_old"}})],1),a("el-form-item",{attrs:{label:"新密码",prop:"password_new"}},[a("el-input",{attrs:{type:"password",placeholder:"请输入新密码",autocomplete:"off",clearable:"","show-password":""},model:{value:e.userModel.password_new,callback:function(t){e.$set(e.userModel,"password_new",t)},expression:"userModel.password_new"}})],1),a("el-form-item",[a("el-button",{on:{click:e.userReset}},[e._v("重置")]),a("el-button",{attrs:{type:"primary"},on:{click:e.userSubmit}},[e._v("提交")])],1)],1)],1)],1)],1)],1)},l=[],o=a("5f87"),n=a("50fc"),r={name:"MyPwd",components:{},data:function(){return{loading:!1,userModel:{admin_user_id:Object(o["g"])(),password_old:"",password_new:""},userRules:{password_old:[{required:!0,message:"请输入旧密码",trigger:"blur"}],password_new:[{required:!0,message:"请输入新密码",trigger:"blur"}]}}},methods:{userReset:function(){this.$refs["userRef"].resetFields()},userSubmit:function(){var e=this;this.$refs["userRef"].validate((function(t){t&&(e.loading=!0,Object(n["qb"])(e.userModel).then((function(t){e.userReset(),e.loading=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))}}},s=r,c=a("2877"),u=Object(c["a"])(s,i,l,!1,null,null,null);t["default"]=u.exports},"71fd":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("随机字符串")])]),a("div",{staticClass:"text item"},[a("el-form",{ref:"strRandRef",attrs:{model:e.strRandModel,rules:e.strRandRules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"所用字符",prop:"ids"}},[a("el-checkbox-group",{staticStyle:{width:"100px"},model:{value:e.strRandModel.ids,callback:function(t){e.$set(e.strRandModel,"ids",t)},expression:"strRandModel.ids"}},e._l(e.strRandModel.idss,(function(t){return a("el-checkbox",{key:t.id,attrs:{label:t.id}},[e._v(" "+e._s(t.name)+" ")])})),1)],1),a("el-form-item",{attrs:{label:"字符长度",prop:"len"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择"},model:{value:e.strRandModel.len,callback:function(t){e.$set(e.strRandModel,"len",t)},expression:"strRandModel.len"}},e._l(e.strRandModel.lens,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}},[e._v(" "+e._s(t)+" ")])})),1)],1),a("el-form-item",{attrs:{label:"生成字符",prop:"str"}},[a("el-input",{attrs:{type:"textarea",rows:"4",clearable:""},model:{value:e.strRandModel.str,callback:function(t){e.$set(e.strRandModel,"str",t)},expression:"strRandModel.str"}})],1),a("el-form-item",[a("el-button",{on:{click:function(t){return e.strRandCopy(e.strRandModel.str,t)}}},[e._v("复制")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.strRandSubmit()}}},[e._v("生成")])],1)],1)],1)])},l=[],o=a("2b0e"),n=a("b311"),r=a.n(n);function s(){o["default"].prototype.$message({message:"复制成功",type:"success",duration:1500})}function c(){o["default"].prototype.$message({message:"复制失败",type:"error"})}function u(e,t){var a=new r.a(t.target,{text:function(){return e}});a.on("success",(function(){s(),a.destroy()})),a.on("error",(function(){c(),a.destroy()})),a.onClick(t)}var d=a("50fc"),m={name:"MixStrRand",components:{},data:function(){return{strRandModel:{idss:[{id:1,name:"数字"},{id:2,name:"小写字母"},{id:3,name:"大写字母"},{id:4,name:"标点符号"}],lens:[8,10,12],ids:[1,2,3],len:12,str:""},strRandRules:{ids:[{required:!0,message:"请选择所用字符",trigger:"blur"}],len:[{required:!0,message:"请选择字符长度",trigger:"blur"}]}}},created:function(){this.strRandLens()},methods:{strRandLens:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:128,t=[];this.strRandModel.lens=[];for(var a=0;a<e;a++)t[a]=a+1;this.strRandModel.lens=t},strRandCopy:function(e,t){e?u(e,t):this.$message({message:"请生成随机字符串",type:"error"})},strRandSubmit:function(){var e=this;this.$refs["strRandRef"].validate((function(t){t&&Object(d["Tb"])({ids:e.strRandModel.ids,len:e.strRandModel.len}).then((function(t){e.strRandModel.str=t.data.str}))}))}}},p=m,f=(a("8792"),a("2877")),h=Object(f["a"])(p,i,l,!1,null,"460da1a4",null);t["default"]=h.exports},7600:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[e._m(0),a("div",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addition("")}}},[e._v("添加")])],1)]),a("el-form",{attrs:{model:e.form}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.form.data,height:e.height}},[a("el-table-column",{attrs:{prop:"sid",label:"ID","min-width":"30"}}),a("el-table-column",{attrs:{prop:"title",label:"城市名称","show-overflow-tooltip":"","min-width":"120"}}),a("el-table-column",{attrs:{prop:"temperature",label:"温度","show-overflow-tooltip":"","min-width":"80"}}),a("el-table-column",{attrs:{prop:"aqi",label:"空气质量","show-overflow-tooltip":"","min-width":"80"}}),a("el-table-column",{attrs:{prop:"scenic_spot",label:"景区","show-overflow-tooltip":"","min-width":"80"}}),a("el-table-column",{attrs:{label:"操作","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.modify(i)}}},[e._v("修改")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.remove(i)}}},[e._v("删除")])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.sojournCityList}}),a("el-dialog",{attrs:{title:e.dataDialogTitle,visible:e.dataDialog,width:"65%",top:"1vh","before-close":e.cancel},on:{"update:visible":function(t){e.dataDialog=t}}},[a("el-form",{ref:"memberRef",staticClass:"dialog-body",attrs:{model:e.model,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"城市名称",prop:"title"}},[a("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.model.title,callback:function(t){e.$set(e.model,"title",t)},expression:"model.title"}})],1),a("el-form-item",{attrs:{label:"城市简介",prop:"summary"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:12},placeholder:"",clearable:""},model:{value:e.model.summary,callback:function(t){e.$set(e.model,"summary",t)},expression:"model.summary"}})],1),a("el-form-item",{attrs:{label:"缩略图"}},[a("Upload",{attrs:{"img-url":e.model.filename},on:{callback:function(t){e.model.filename=t}},model:{value:e.model.filename,callback:function(t){e.$set(e.model,"filename",t)},expression:"model.filename"}})],1),a("el-form-item",{attrs:{label:"温度",prop:"temperature"}},[a("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.model.temperature,callback:function(t){e.$set(e.model,"temperature",t)},expression:"model.temperature"}})],1),a("el-form-item",{attrs:{label:"空气质量",prop:"aqi"}},[a("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.model.aqi,callback:function(t){e.$set(e.model,"aqi",t)},expression:"model.aqi"}})],1),a("el-form-item",{attrs:{label:"特色景区",prop:"scenic_spot"}},[a("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.model.scenic_spot,callback:function(t){e.$set(e.model,"scenic_spot",t)},expression:"model.scenic_spot"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("提交")])],1)],1)],1)},l=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{float:"left"}},[a("div",{staticStyle:{"margin-right":"10px",float:"left"}})])}],o=(a("14d9"),a("98b1")),n=a("333d"),r=a("50fc"),s=a("d443"),c={name:"sojournCity",components:{Pagination:n["a"],Upload:s["a"]},data:function(){return{this_:this,height:680,loading:!1,form:{data:[]},count:0,query:{page:1,limit:20},type:"",dataDialog:!1,dataDialogTitle:"",model:{sid:"",city_id:1,filename:""},rules:{title:[{required:!0,message:"标题不能为空",trigger:"blur"}]}}},created:function(){this.type="default",this.height=Object(o["a"])(),this.sojournCityList()},methods:{sojournCityList:function(){var e=this;this.loading=!0,this.query.type=this.type,Object(r["Ob"])(this.query).then((function(t){e.form.data=t.data.data,e.count=t.data.total,e.loading=!1})).catch((function(){e.loading=!1}))},search:function(){this.query.page=1,this.sojournCityList()},reset:function(){this.query={page:1,limit:13},this.sojournCityList()},modelReset:function(){this.model=this.$options.data().model,void 0!==this.$refs["memberRef"]&&this.$refs["memberRef"].resetFields()},addition:function(){this.dataDialog=!0,this.dataDialogTitle="添加",this.modelReset()},modify:function(e){var t=this;this.dataDialogTitle="修改:",Object(r["Nb"])({sid:e.sid}).then((function(e){t.model=e.data,t.dataDialog=!0}))},disable:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"status";this.loading=!0,e.table="Test",e.field=a,Object(r["gc"])(e).then((function(e){t.sojournCityList(),t.$message({message:e.msg,type:"success"})})).catch((function(){t.sojournCityList()}))},remove:function(e){var t=this;this.$confirm('确定要删除 <span style="color:red">'+e.title+" </span>吗?","删除确认",{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(r["Mb"])({sid:e.sid}).then((function(e){t.$message({message:e.msg,type:"success"}),t.sojournCityList()})).catch((function(){t.loading=!1}))}))},cancel:function(){this.reset(),this.dataDialog=!1},updateSort:function(e,t){var a=this,i=[];i.push({id:e.cid,sort:e[t]});var l={data:i,table:"sojournCity"};Object(r["fc"])(l).then((function(e){a.dataDialog=!1,a.$message({message:e.msg,type:"success"}),a.sojournCityList()})).catch((function(){a.loading=!1}))},submit:function(){var e=this;this.$refs["memberRef"].validate((function(t){if(t){e.loading=!0,e.model.type=e.type;var a=e.model;a.sid?Object(r["Nb"])(a,"post").then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.sojournCityList()})).catch((function(){e.loading=!1})):Object(r["Kb"])(a).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.sojournCityList()})).catch((function(){e.loading=!1}))}}))}},filters:{}},u=c,d=(a("556e"),a("2877")),m=Object(d["a"])(u,i,l,!1,null,null,null);t["default"]=m.exports},"77a9":function(e,t,a){},"78bb":function(e,t,a){},"7c32":function(e,t,a){"use strict";a("2c61")},"7cb8":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"box-card"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{xs:24,sm:12}},[a("el-form",{ref:"userRef",attrs:{rules:e.userRules,model:e.userModel,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"账号",prop:"username"}},[a("el-input",{attrs:{placeholder:"请输入账号",clearable:""},model:{value:e.userModel.username,callback:function(t){e.$set(e.userModel,"username",t)},expression:"userModel.username"}})],1),a("el-form-item",{attrs:{label:"昵称",prop:"nickname"}},[a("el-input",{attrs:{placeholder:"请输入昵称",clearable:""},model:{value:e.userModel.nickname,callback:function(t){e.$set(e.userModel,"nickname",t)},expression:"userModel.nickname"}})],1),a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{attrs:{placeholder:"请输入邮箱",clearable:""},model:{value:e.userModel.email,callback:function(t){e.$set(e.userModel,"email",t)},expression:"userModel.email"}})],1),a("el-form-item",[a("el-button",{on:{click:e.userRefresh}},[e._v("刷新")]),a("el-button",{attrs:{type:"primary"},on:{click:e.userSubmit}},[e._v("提交")])],1)],1)],1)],1)],1)],1)},l=[],o=a("5f87"),n=a("50fc"),r=a("4360"),s={name:"MyEdit",components:{},data:function(){return{loading:!1,userModel:{admin_user_id:Object(o["g"])(),username:"",nickname:"",email:""},userRules:{username:[{required:!0,message:"请输入账号",trigger:"blur"}],nickname:[{required:!0,message:"请输入昵称",trigger:"blur"}]}}},created:function(){this.myEdit()},methods:{myEdit:function(){var e=this;Object(n["nb"])({admin_user_id:this.userModel.admin_user_id}).then((function(t){e.$refs["userRef"].resetFields(),e.userModel=t.data}))},userRefresh:function(){this.loading=!0,this.myEdit(),this.loading=!1},userSubmit:function(){var e=this;this.$refs["userRef"].validate((function(t){t&&(e.loading=!0,Object(n["nb"])(e.userModel,"post").then((function(t){e.userRefresh(),r["a"].commit("user/SET_NICKNAME",t.data.nickname),r["a"].commit("user/SET_USERNAME",t.data.username),e.loading=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))}}},c=s,u=a("2877"),d=Object(u["a"])(c,i,l,!1,null,null,null);t["default"]=d.exports},"7f18":function(e,t,a){"use strict";a("4b3f")},"7f30":function(e,t,a){"use strict";a("ad60")},"82ce":function(e,t,a){"use strict";a("d3e5")},8332:function(e,t,a){},8645:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticStyle:{float:"left"}},[a("div",{staticStyle:{"margin-right":"10px",float:"left"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"",clearable:""},model:{value:e.query.title,callback:function(t){e.$set(e.query,"title",t)},expression:"query.title"}})],1),a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")]),a("el-button",{staticClass:"filter-item",on:{click:function(t){return e.reset()}}},[e._v("重置")])],1),a("div",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addition("")}}},[e._v("添加")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.updateSort()}}},[e._v("更新排序")]),a("download-excel",{attrs:{data:e.excel_data,field:e.excel_field,header:e.excel_header,name:"测试下名称123"}})],1)]),a("el-form",{attrs:{model:e.form}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.form.data,height:e.height,border:""}},[a("el-table-column",{attrs:{prop:"article_id",label:"ID","min-width":"50",fixed:"left"}}),a("el-table-column",{attrs:{prop:"title",label:"标题","min-width":"170"}}),a("el-table-column",{attrs:{prop:"keywords",label:"关键词","min-width":"100"}}),a("el-table-column",{attrs:{prop:"sort",label:"创建时间","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(e._f("parseTime")(a.create_time))+" ")]}}])}),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"50"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-input",{key:"title",attrs:{placeholder:"",clearable:""},model:{value:i.sort,callback:function(t){e.$set(i,"sort",t)},expression:"row.sort"}})]}}])}),a("el-table-column",{attrs:{label:"状态","min-width":"40"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(a){return e.disable(t.row)}},model:{value:t.row.status,callback:function(a){e.$set(t.row,"status",a)},expression:"scope.row.status"}})]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"80",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.modify(i)}}},[e._v("修改")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.remove(i)}}},[e._v("删除")])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.articleList}}),a("el-dialog",{attrs:{title:e.dataDialogTitle,visible:e.dataDialog,width:"65%",top:"1vh","before-close":e.cancel},on:{"update:visible":function(t){e.dataDialog=t}}},[a("el-form",{ref:"memberRef",staticClass:"dialog-body",style:{height:e.height+50+"px"},attrs:{model:e.model,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"标题",prop:"title"}},[a("el-input",{key:"title",attrs:{placeholder:"",clearable:""},model:{value:e.model.title,callback:function(t){e.$set(e.model,"title",t)},expression:"model.title"}})],1),a("el-form-item",{attrs:{label:"导航颜色",prop:"title"}},[a("el-color-picker",{model:{value:e.model.color,callback:function(t){e.$set(e.model,"color",t)},expression:"model.color"}})],1),a("el-form-item",{attrs:{label:"所在区域"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.model.area,callback:function(t){e.$set(e.model,"area",t)},expression:"model.area"}},e._l(e.area,(function(e,t){return a("el-option",{key:t,attrs:{label:e,value:Number(t)}})})),1)],1),a("el-form-item",{attrs:{label:"推荐位",prop:"recommend_position"}},[a("el-checkbox-group",{model:{value:e.model.recommend_position,callback:function(t){e.$set(e.model,"recommend_position",t)},expression:"model.recommend_position"}},e._l(e.recommend_position,(function(t,i){return a("el-checkbox",{key:i,attrs:{label:i}},[e._v(e._s(t))])})),1)],1),a("el-form-item",{attrs:{label:"推荐指数"}},[a("el-rate",{model:{value:e.model.star,callback:function(t){e.$set(e.model,"star",t)},expression:"model.star"}})],1),a("el-form-item",{attrs:{label:"发布时间"}},[a("el-date-picker",{attrs:{type:"datetime","default-value":"","value-format":"timestamp",placeholder:"选择日期"},model:{value:e.model.create_time,callback:function(t){e.$set(e.model,"create_time",t)},expression:"model.create_time"}})],1),a("el-form-item",{attrs:{label:"状态显示",prop:"status"}},[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":1,"inactive-value":0},model:{value:e.model.status,callback:function(t){e.$set(e.model,"status",t)},expression:"model.status"}})],1),a("el-form-item",{attrs:{label:"关键词",prop:"keywords"}},[a("el-input",{key:"keywords",attrs:{placeholder:"",clearable:""},model:{value:e.model.keywords,callback:function(t){e.$set(e.model,"keywords",t)},expression:"model.keywords"}})],1),a("el-form-item",{attrs:{label:"描述",prop:"summary"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:12},placeholder:"",clearable:""},model:{value:e.model.summary,callback:function(t){e.$set(e.model,"summary",t)},expression:"model.summary"}})],1),a("el-form-item",{attrs:{label:"排序"}},[a("el-input-number",{attrs:{min:1,max:1e6,label:""},model:{value:e.model.sort,callback:function(t){e.$set(e.model,"sort",t)},expression:"model.sort"}})],1),a("el-form-item",{attrs:{label:"缩略图"}},[a("Upload",{attrs:{"img-url":e.model.image},on:{callback:function(t){e.model.image=t}},model:{value:e.model.image,callback:function(t){e.$set(e.model,"image",t)},expression:"model.image"}})],1),a("el-form-item",{attrs:{label:"显示图片"}},[a("show-image",{attrs:{imgUrl:e.model.image,imageData:e.model.image}})],1),a("el-form-item",{attrs:{label:"多图上传"}},[a("Uploads",{attrs:{name:!0,summary:!1},on:{callback:function(t){e.model.pics=t}},model:{value:e.model.pics,callback:function(t){e.$set(e.model,"pics",t)},expression:"model.pics"}})],1),a("el-form-item",{attrs:{label:"详细内容",prop:"content"}},[a("editor-bar",{attrs:{isClear:e.isClear},model:{value:e.model.content,callback:function(t){e.$set(e.model,"content",t)},expression:"model.content"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("提交")])],1)],1)],1)},l=[],o=(a("d3b7"),a("159b"),a("4e82"),a("98b1")),n=a("333d"),r=a("50fc"),s=a("0c98"),c=a("d443"),u=a("21c2"),d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"image"},[a("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e.imgUrl,"preview-src-list":e.images()}})],1)},m=[],p=(a("14d9"),{name:"ShowImage",data:function(){return{}},props:{imgUrl:{type:String,default:function(){return""}},imageData:{type:[Array,String],default:function(){return[]}}},methods:{images:function(){var e=[];return this.imageData instanceof Array?this.imageData.forEach((function(t){t.url&&e.push(t.url)})):e.push(this.imageData),e}}}),f=p,h=(a("dfd3"),a("2877")),g=Object(h["a"])(f,d,m,!1,null,null,null),b=g.exports,v=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"excel"},[a("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.exportExcel}},[e._v("导出表格")])],1)},_=[],y=(a("b0c0"),a("d81d"),a("4bf8"),{name:"DownloadExcel",data:function(){return{showWindow:!1}},props:{header:{type:Array,default:function(){return[]}},field:{type:[Array],default:function(){return[]}},data:{type:[Array],default:function(){return[]}},name:{type:String,default:"导出Excel"}},methods:{exportExcel:function(){var e=this;Promise.resolve().then(function(){var t=a("4bf8"),i=t.export_json_to_excel,l=e.header,o=e.field,n=e.data,r=e.formatJson(o,n);i(l,r,e.name)}.bind(null,a)).catch(a.oe)},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return t[e]}))}))}}}),x=y,w=Object(h["a"])(x,v,_,!1,null,null,null),k=w.exports,M={name:"Article",components:{Pagination:n["a"],EditorBar:s["a"],Upload:c["a"],Uploads:u["a"],DownloadExcel:k,ShowImage:b},data:function(){return{this_:this,height:680,loading:!1,form:{data:[]},count:0,query:{page:1,limit:20},dataDialog:!1,dataDialogTitle:"",model:{article_id:0,title:"",keywords:"",summary:"",click_count:100,image:"",pics:[],content:"",type:"",sort:1,area:"",recommend_position:[]},rules:{title:[{required:!0,message:"标题不能为空",trigger:"blur"}],content:[{required:!0,message:"内容不能为空",trigger:"blur"}]},isClear:!1,area:[],recommend_position:[],excel_header:[],excel_field:[],excel_data:[]}},created:function(){this.height=Object(o["a"])(),this.articleList(),this.dictionary()},methods:{dictionary:function(){var e=this;Object(r["F"])().then((function(t){e.area=t.data.area,e.recommend_position=t.data.recommend_position,e.excel_header=t.data.excel.header,e.excel_field=t.data.excel.field,e.excel_data=t.data.excel.excel_data})).catch((function(){e.loading=!1}))},articleList:function(){var e=this;this.loading=!0,Object(r["r"])(this.query).then((function(t){e.form.data=t.data.data,e.count=t.data.total,e.loading=!1})).catch((function(){e.loading=!1}))},search:function(){this.query.page=1,this.articleList()},reset:function(){this.query={page:1,limit:13},this.articleList()},modelReset:function(){this.model=this.$options.data().model,void 0!==this.$refs["memberRef"]&&this.$refs["memberRef"].resetFields()},addition:function(){this.dataDialog=!0,this.dataDialogTitle="添加",this.modelReset()},modify:function(e){var t=this;this.dataDialogTitle="修改:"+e.title,Object(r["q"])({article_id:e.article_id}).then((function(e){e.data.create_time=1e3*e.data.create_time,t.model=e.data,t.dataDialog=!0}))},disable:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"status";this.loading=!0,e.table="Test",e.field=a,Object(r["gc"])(e).then((function(e){t.articleList(),t.$message({message:e.msg,type:"success"})})).catch((function(){t.articleList()}))},handleRemove:function(e){console.log(e)},remove:function(e){var t=this;this.$confirm('确定要删除 <span style="color:red">'+e.title+" </span>吗?","删除确认",{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(r["p"])({article_id:e.article_id}).then((function(e){t.$message({message:e.msg,type:"success"}),t.articleList()})).catch((function(){t.loading=!1}))}))},cancel:function(){this.reset(),this.dataDialog=!1},updateSort:function(){var e=this,t=[],a=this.form.data;a.forEach((function(e,a){var i={id:e.article_id,sort:e.sort||""};t[a]=i}));var i={data:t,table:"Test"};Object(r["fc"])(i).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.articleList()})).catch((function(){e.loading=!1}))},submit:function(){var e=this;this.$refs["memberRef"].validate((function(t){if(t){e.loading=!0;var a=e.model;a.article_id?Object(r["q"])(a,"post").then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.articleList()})).catch((function(){e.loading=!1})):Object(r["o"])(a).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.articleList()})).catch((function(){e.loading=!1}))}}))}},filters:{}},$=M,C=(a("1728"),Object(h["a"])($,i,l,!1,null,null,null));t["default"]=C.exports},"86c1":function(e,t,a){"use strict";a("5e94")},"86db":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-row",[a("el-col",{staticClass:"yyl-center yyl-top",attrs:{span:12,offset:6}},[a("el-image",{staticStyle:{width:"600px"},attrs:{src:e.error401,fit:"contain"}})],1)],1),a("el-row",[a("el-col",{staticClass:"yyl-center yyl-top",attrs:{span:6,offset:6}},[a("el-button",{attrs:{icon:"el-icon-arrow-left"},on:{click:e.back}},[e._v("返回")])],1),a("el-col",{staticClass:"yyl-center yyl-top",attrs:{span:6}},[a("el-button",{attrs:{icon:"el-icon-s-home"},on:{click:e.dashboard}},[e._v("控制台")])],1)],1)],1)},l=[],o=(a("14d9"),a("4d21")),n=a.n(o),r={name:"Error401",data:function(){return{error401:n.a}},methods:{back:function(){this.$route.query.noGoBack?this.$router.push({path:"/dashboard"}):this.$router.go(-1)},dashboard:function(){this.$router.push({path:"/dashboard"})}}},s=r,c=(a("ee0d"),a("2877")),u=Object(c["a"])(s,i,l,!1,null,"39e25cdf",null);t["default"]=u.exports},8792:function(e,t,a){"use strict";a("ea26")},"87c8":function(e,t,a){},"88f0":function(e,t,a){},"89eb":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("iframe",{attrs:{src:e.src,frameborder:"0",width:"100%",height:e.height}})},l=[],o=a("98b1"),n={name:"MapTencent",components:{},data:function(){return{src:"https://lbs.qq.com/tool/getpoint/index.html",height:500}},created:function(){this.height=Object(o["a"])(180)},methods:{}},r=n,s=a("2877"),c=Object(s["a"])(r,i,l,!1,null,null,null);t["default"]=c.exports},"8a36":function(e,t,a){},"8b4a":function(e,t,a){},9041:function(e,t,a){},"90e7":function(e,t,a){"use strict";a.d(t,"b",(function(){return l})),a.d(t,"a",(function(){return o}));var i=a("b775");function l(e){return e?Object(i["a"])({url:"/admin/Setting/settingVerify",method:"post",data:e}):Object(i["a"])({url:"/admin/Setting/settingVerify",method:"get"})}function o(e){return e?Object(i["a"])({url:"/admin/Setting/settingToken",method:"post",data:e}):Object(i["a"])({url:"/admin/Setting/settingToken",method:"get"})}},9323:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-tabs",{on:{"tab-click":e.tabClick},model:{value:e.actTabName,callback:function(t){e.actTabName=t},expression:"actTabName"}},[e.checkPermission(["admin/AdminMy/myInfo"])?a("el-tab-pane",{attrs:{label:"我的信息",name:"info"}},[e.info?a("my-info"):e._e()],1):e._e(),e.checkPermission(["admin/AdminMy/myEdit"])?a("el-tab-pane",{attrs:{label:"修改信息",name:"edit"}},[e.edit?a("my-edit"):e._e()],1):e._e(),e.checkPermission(["admin/AdminMy/myPwd"])?a("el-tab-pane",{attrs:{label:"修改密码",name:"pwd"}},[e.pwd?a("my-pwd"):e._e()],1):e._e(),e.checkPermission(["admin/AdminMy/myAvatar"])?a("el-tab-pane",{attrs:{label:"更换头像",name:"avatar"}},[e.avatar?a("my-avatar"):e._e()],1):e._e(),e.checkPermission(["admin/AdminMy/myLog"])?a("el-tab-pane",{attrs:{label:"我的日志",name:"log"}},[e.log?a("my-log"):e._e()],1):e._e(),e.checkPermission(["admin/AdminMy/mySetting"])?a("el-tab-pane",{attrs:{label:"我的设置",name:"setting"}},[e.setting?a("my-setting"):e._e()],1):e._e()],1)],1)},l=[],o=(a("b0c0"),a("e350")),n=a("e0d5"),r=a("7cb8"),s=a("7161"),c=a("4143"),u=a("2250"),d=a("eca7"),m={name:"My",components:{MyInfo:n["default"],MyEdit:r["default"],MyPwd:s["default"],MyAvatar:c["default"],MyLog:u["default"],MySetting:d["default"]},data:function(){return{info:!0,edit:!1,pwd:!1,avatar:!1,log:!1,setting:!1,actTabName:"info"}},methods:{checkPermission:o["a"],tabClick:function(e){this[e.name]=!0}}},p=m,f=a("2877"),h=Object(f["a"])(p,i,l,!1,null,null,null);t["default"]=h.exports},9474:function(e,t,a){},"96e3":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticStyle:{float:"left"}},[a("div",{staticStyle:{"margin-right":"10px",float:"left"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"",clearable:""},model:{value:e.query.keyword,callback:function(t){e.$set(e.query,"keyword",t)},expression:"query.keyword"}})],1),a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")]),a("el-button",{staticClass:"filter-item",on:{click:function(t){return e.reset()}}},[e._v("重置")])],1),a("div",{staticStyle:{float:"right"}})]),a("el-form",{attrs:{model:e.form}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.form.data,height:e.height,border:""}},[a("el-table-column",{attrs:{prop:"id",label:"ID","min-width":"50",fixed:"left"}}),a("el-table-column",{attrs:{prop:"consulting_tel",label:"咨询电话","min-width":"70"}}),a("el-table-column",{attrs:{prop:"cooperative_tel",label:"合作电话","min-width":"70"}}),a("el-table-column",{attrs:{prop:"email",label:"邮箱","min-width":"170"}}),a("el-table-column",{attrs:{prop:"sort",label:"创建时间","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(e._f("parseTime")(a.create_time))+" ")]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"80",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.remove(i)}}},[e._v("删除")])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.submitJoinList}})],1)},l=[],o=(a("d3b7"),a("25f0"),a("159b"),a("4e82"),a("98b1")),n=a("333d"),r=a("50fc"),s={name:"unit",components:{Pagination:n["a"]},data:function(){return{this_:this,height:680,loading:!1,form:{data:[]},count:0,query:{page:1,limit:20},dataDialog:!1,dataDialogTitle:"",model:{cid:0,title:""},rules:{title:[{required:!0,message:"标题不能为空",trigger:"blur"}]}}},created:function(){this.height=Object(o["a"])(),this.submitJoinList()},methods:{submitJoinList:function(){var e=this;this.loading=!0,Object(r["Yb"])(this.query).then((function(t){e.form.data=t.data.data,e.count=t.data.total,e.loading=!1})).catch((function(){e.loading=!1}))},search:function(){this.query.page=1,this.submitJoinList()},reset:function(){this.query={page:1,limit:13},this.unitList()},modelReset:function(){this.model=this.$options.data().model,void 0!==this.$refs["memberRef"]&&this.$refs["memberRef"].resetFields()},remove:function(e){var t=this;this.$confirm('确定要删除 <span style="color:red">咨询电话:'+e.consulting_tel+" </span>吗?","删除确认",{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(r["Xb"])({id:e.id}).then((function(e){t.$message({message:e.msg,type:"success"}),t.submitJoinList()})).catch((function(){t.loading=!1}))}))},cancel:function(){this.reset(),this.dataDialog=!1},updateSort:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=this,t=[],a=this.form.data;a.forEach((function(e,a){var i={id:e.cid,sort:e.sort||""};t[a]=i}));var i={data:t,table:"Test"};updateSort(i).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.unitList()})).catch((function(){e.loading=!1}))})),submit:function(){var e=this;this.$refs["memberRef"].validate((function(t){if(t){e.loading=!0;var a=e.model;a.unit_id?unitEdit(a,"post").then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.unitList()})).catch((function(){e.loading=!1})):unitAdd(a).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.unitList()})).catch((function(){e.loading=!1}))}}))}},filters:{}},c=s,u=(a("0550"),a("2877")),d=Object(u["a"])(c,i,l,!1,null,null,null);t["default"]=d.exports},"98b1":function(e,t,a){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=880,a=document.documentElement.clientHeight||document.body.clientHeight;return a?a-e:t-e}a.d(t,"a",(function(){return i}))},"9a28":function(e,t,a){},"9f06":function(e,t,a){"use strict";a("ebef")},a555:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.tokenLoad,expression:"tokenLoad"}],staticClass:"box-card"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{xs:24,sm:12}},[a("el-form",{ref:"tokenRef",attrs:{model:e.tokenModel,rules:e.tokenRules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"Token签发者",prop:"iss"}},[a("el-input",{attrs:{type:"text"},model:{value:e.tokenModel.iss,callback:function(t){e.$set(e.tokenModel,"iss",t)},expression:"tokenModel.iss"}})],1),a("el-form-item",{attrs:{label:"Token有效时间",prop:"exp"}},[a("el-input",{attrs:{type:"number"},model:{value:e.tokenModel.exp,callback:function(t){e.$set(e.tokenModel,"exp",t)},expression:"tokenModel.exp"}},[a("template",{slot:"append"},[e._v("小时")])],2)],1),a("el-form-item",[a("el-button",{on:{click:function(t){return e.tokenRefresh()}}},[e._v("刷新")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.tokenSubmit()}}},[e._v("提交")])],1)],1)],1)],1)],1)],1)},l=[],o=a("90e7"),n={name:"Token",components:{},data:function(){return{tokenLoad:!1,tokenModel:{iss:"index",exp:720},tokenRules:{iss:[{required:!0,message:"请输入签发者",trigger:"blur"}],exp:[{required:!0,message:"请输入有效时间",trigger:"blur"}]}}},created:function(){this.tokenGet()},methods:{tokenGet:function(){var e=this;Object(o["a"])().then((function(t){e.tokenModel=t.data}))},tokenRefresh:function(){var e=this;this.tokenLoad=!0,Object(o["a"])().then((function(t){e.tokenModel=t.data,e.tokenLoad=!1,e.$message.success(t.msg)})).catch((function(){e.tokenLoad=!1}))},tokenSubmit:function(){var e=this;this.$refs["tokenRef"].validate((function(t){t&&(e.tokenLoad=!0,Object(o["a"])(e.tokenModel).then((function(t){e.tokenLoad=!1,e.$message.success(t.msg)})).catch((function(){e.tokenLoad=!1})))}))}}},r=n,s=a("2877"),c=Object(s["a"])(r,i,l,!1,null,null,null);t["default"]=c.exports},a593:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticStyle:{float:"left"}},[a("div",{staticStyle:{"margin-right":"10px",float:"left"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"",clearable:""},model:{value:e.query.keyword,callback:function(t){e.$set(e.query,"keyword",t)},expression:"query.keyword"}})],1)]),a("div",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addition("")}}},[e._v("添加")])],1)]),a("el-form",{attrs:{model:e.form}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.form.data,height:e.height,border:"","row-key":"cid","default-expand-all":""}},[a("el-table-column",{attrs:{prop:"article_id",label:"ID","min-width":"30"}}),a("el-table-column",{attrs:{prop:"title",label:"标题","show-overflow-tooltip":"","min-width":""}}),a("el-table-column",{attrs:{prop:"click_num",label:"阅读量","show-overflow-tooltip":"","min-width":""}}),a("el-table-column",{attrs:{prop:"sort",label:"创建时间","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(e._f("parseTime")(a.create_time))+" ")]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"80",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.modify(i)}}},[e._v("修改")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.remove(i)}}},[e._v("删除")])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.articleList}}),a("el-dialog",{attrs:{title:e.dataDialogTitle,visible:e.dataDialog,width:"65%",top:"1vh","before-close":e.cancel},on:{"update:visible":function(t){e.dataDialog=t}}},[a("el-form",{ref:"memberRef",staticClass:"dialog-body",attrs:{model:e.model,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"标题",prop:"title"}},[a("el-input",{key:"title",attrs:{placeholder:"",clearable:""},model:{value:e.model.title,callback:function(t){e.$set(e.model,"title",t)},expression:"model.title"}})],1),a("el-form-item",{attrs:{label:"SEO标题",prop:"seo_t"}},[a("el-input",{key:"title",attrs:{placeholder:"",clearable:""},model:{value:e.model.seo_t,callback:function(t){e.$set(e.model,"seo_t",t)},expression:"model.seo_t"}})],1),a("el-form-item",{attrs:{label:"SEO描述",prop:"seo_d"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:12},placeholder:"",clearable:""},model:{value:e.model.seo_d,callback:function(t){e.$set(e.model,"seo_d",t)},expression:"model.seo_d"}})],1),a("el-form-item",{attrs:{label:"SEO关键词",prop:"seo_k"}},[a("el-input",{key:"title",attrs:{placeholder:"",clearable:""},model:{value:e.model.seo_k,callback:function(t){e.$set(e.model,"seo_k",t)},expression:"model.seo_k"}})],1),a("el-form-item",{attrs:{label:"描述",prop:"summary"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:12},placeholder:"",clearable:""},model:{value:e.model.summary,callback:function(t){e.$set(e.model,"summary",t)},expression:"model.summary"}})],1),a("el-form-item",{attrs:{label:"点击量"}},[a("el-input-number",{attrs:{min:1,max:1e6,label:""},model:{value:e.model.click_num,callback:function(t){e.$set(e.model,"click_num",t)},expression:"model.click_num"}})],1),a("el-form-item",{attrs:{label:"缩略图"}},[a("Upload",{attrs:{"img-url":e.model.filename},on:{callback:function(t){e.model.filename=t}},model:{value:e.model.filename,callback:function(t){e.$set(e.model,"filename",t)},expression:"model.filename"}})],1),a("el-form-item",{attrs:{label:"发布时间"}},[a("el-date-picker",{attrs:{type:"datetime","default-value":"","value-format":"timestamp",placeholder:"选择日期"},model:{value:e.model.create_time,callback:function(t){e.$set(e.model,"create_time",t)},expression:"model.create_time"}})],1),a("el-form-item",{attrs:{label:"详细内容",prop:"content"}},[a("editor-bar",{attrs:{isClear:e.isClear},model:{value:e.model.content,callback:function(t){e.$set(e.model,"content",t)},expression:"model.content"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("提交")])],1)],1)],1)},l=[],o=(a("b0c0"),a("d3b7"),a("159b"),a("4e82"),a("98b1")),n=a("333d"),r=a("50fc"),s=a("0c98"),c=a("d443"),u=a("21c2"),d={name:"Article",components:{Pagination:n["a"],EditorBar:s["a"],Upload:c["a"],Uploads:u["a"]},data:function(){return{this_:this,height:680,loading:!1,form:{data:[]},count:0,query:{page:1,limit:20},type:"",dataDialog:!1,dataDialogTitle:"",menuProps:{checkStrictly:!0,value:"cid",label:"name"},model:{article_id:"",filename:"",click_num:"1",type:"",content:""},rules:{title:[{required:!0,message:"标题不能为空",trigger:"blur"}],content:[{required:!0,message:"内容不能为空",trigger:"blur"}]},isClear:!1}},created:function(){this.type=this.$route.name,this.height=Object(o["a"])(),this.articleList()},methods:{articleList:function(){var e=this;this.loading=!0,this.query.type=this.type,Object(r["r"])(this.query).then((function(t){e.form.data=t.data.data,e.count=t.data.total,e.loading=!1})).catch((function(){e.loading=!1}))},search:function(){this.query.page=1,this.articleList()},reset:function(){this.query={page:1,limit:13},this.articleList()},modelReset:function(){this.model=this.$options.data().model,void 0!==this.$refs["memberRef"]&&this.$refs["memberRef"].resetFields()},addition:function(){this.dataDialog=!0,this.dataDialogTitle="添加",this.modelReset()},modify:function(e){var t=this;this.dataDialogTitle="修改:"+e.title,Object(r["q"])({article_id:e.article_id}).then((function(e){t.model=e.data,t.model.create_time=1e3*t.model.create_time,t.dataDialog=!0}))},disable:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"status";this.loading=!0,e.table="Test",e.field=a,Object(r["gc"])(e).then((function(e){t.articleList(),t.$message({message:e.msg,type:"success"})})).catch((function(){t.articleList()}))},remove:function(e){var t=this;this.$confirm('确定要删除 <span style="color:red">'+e.title+" </span>吗?","删除确认",{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(r["p"])({article_id:e.article_id}).then((function(e){t.$message({message:e.msg,type:"success"}),t.articleList()})).catch((function(){t.loading=!1}))}))},cancel:function(){this.reset(),this.dataDialog=!1},updateSort:function(){var e=this,t=[],a=this.form.data;a.forEach((function(e,a){var i={id:e.article_id,sort:e.sort||""};t[a]=i}));var i={data:t,table:"Article"};Object(r["fc"])(i).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.articleList()})).catch((function(){e.loading=!1}))},submit:function(){var e=this;this.$refs["memberRef"].validate((function(t){if(t){e.loading=!0,e.model.type=e.type;var a=e.model;a.article_id?Object(r["q"])(a,"post").then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.articleList()})).catch((function(){e.loading=!1})):Object(r["o"])(a).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.articleList()})).catch((function(){e.loading=!1}))}}))}},filters:{}},m=d,p=(a("160f"),a("2877")),f=Object(p["a"])(m,i,l,!1,null,null,null);t["default"]=f.exports},a6fd:function(e,t,a){},a7ad:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{xs:24,sm:22}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"角色",clearable:""},model:{value:e.roleQuery.role_name,callback:function(t){e.$set(e.roleQuery,"role_name",t)},expression:"roleQuery.role_name"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"描述",clearable:""},model:{value:e.roleQuery.role_desc,callback:function(t){e.$set(e.roleQuery,"role_desc",t)},expression:"roleQuery.role_desc"}}),a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.roleSearch()}}},[e._v("查询")]),a("el-button",{staticClass:"filter-item",on:{click:function(t){return e.roleRefresh()}}},[e._v("刷新")])],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{xs:24,sm:2}},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.roleAddition()}}},[e._v("添加")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"roleTableRef",staticStyle:{width:"100%"},attrs:{data:e.roleData,height:e.height,border:""},on:{"sort-change":e.roleSort}},[a("el-table-column",{attrs:{prop:"admin_role_id",label:"角色ID","min-width":"100",sortable:"custom",fixed:"left"}}),a("el-table-column",{attrs:{prop:"role_name",label:"角色","min-width":"120","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"role_desc",label:"描述","min-width":"130","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"role_sort",label:"排序","min-width":"100",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"create_time",label:"添加时间","min-width":"160",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"update_time",label:"修改时间","min-width":"160",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"is_disable",label:"是否禁用","min-width":"110",align:"center",fixed:"right",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(a){return e.roleIsDisable(t.row)}},model:{value:t.row.is_disable,callback:function(a){e.$set(t.row,"is_disable",a)},expression:"scope.row.is_disable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"220",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.roleUserShow(i)}}},[e._v("管理员")]),a("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(t){return e.roleModify(i)}}},[e._v("修改")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.roleDelete(i)}}},[e._v("删除")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.roleCount>0,expression:"roleCount > 0"}],attrs:{total:e.roleCount,page:e.roleQuery.page,limit:e.roleQuery.limit},on:{"update:page":function(t){return e.$set(e.roleQuery,"page",t)},"update:limit":function(t){return e.$set(e.roleQuery,"limit",t)},pagination:e.roleList}}),a("el-dialog",{attrs:{title:e.roleDialogTitle,visible:e.roleDialog,top:"1vh","before-close":e.roleCancel},on:{"update:visible":function(t){e.roleDialog=t}}},[a("el-form",{ref:"roleRef",staticClass:"dialog-body",style:{height:e.height+30+"px"},attrs:{rules:e.roleRules,model:e.roleModel,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"角色",prop:"role_name"}},[a("el-input",{attrs:{placeholder:"请输入角色名称",clearable:""},model:{value:e.roleModel.role_name,callback:function(t){e.$set(e.roleModel,"role_name",t)},expression:"roleModel.role_name"}})],1),a("el-form-item",{attrs:{label:"描述",prop:"role_desc"}},[a("el-input",{attrs:{clearable:""},model:{value:e.roleModel.role_desc,callback:function(t){e.$set(e.roleModel,"role_desc",t)},expression:"roleModel.role_desc"}})],1),a("el-form-item",{attrs:{label:"排序",prop:"role_sort"}},[a("el-input",{attrs:{type:"number"},model:{value:e.roleModel.role_sort,callback:function(t){e.$set(e.roleModel,"role_sort",t)},expression:"roleModel.role_sort"}})],1),a("el-form-item",{attrs:{label:"菜单"}},[a("el-tree",{ref:"menuRef",attrs:{data:e.menuTree,"default-checked-keys":e.roleModel.admin_menu_ids,props:e.menuProps,"expand-on-click-node":!1,"node-key":"admin_menu_id","default-expand-all":"","show-checkbox":"","check-strictly":"","highlight-current":""},on:{check:e.menuCheck},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node,l=t.data;return a("span",{staticClass:"custom-tree-node"},[a("span",[e._v(e._s(i.label))]),a("span",[l.children[0]?a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(){return e.menuChildrenAllCheck(l)}}},[e._v("全选")]):e._e(),l.children[0]?a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(){return e.menuChildrenAllCheck(l,!0)}}},[e._v("反选")]):e._e(),l.menu_url?a("i",{staticClass:"el-icon-link",staticStyle:{"margin-left":"10px"},attrs:{title:l.menu_url}}):a("i",{staticClass:"el-icon-link",staticStyle:{"margin-left":"10px",color:"#fff"}})],1)])}}])})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.roleCancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.roleSubmit}},[e._v("提交")])],1)],1),a("el-dialog",{attrs:{title:e.userTitle,visible:e.userDialog,width:"65%",top:"1vh"},on:{"update:visible":function(t){e.userDialog=t}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.userLoad,expression:"userLoad"}],ref:"userRef",staticStyle:{width:"100%"},attrs:{data:e.userData,height:e.height+30,border:""},on:{"sort-change":e.userSort}},[a("el-table-column",{attrs:{prop:"admin_user_id",label:"ID","min-width":"100",sortable:"custom",fixed:"left"}}),a("el-table-column",{attrs:{prop:"username",label:"账号","min-width":"120",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"nickname",label:"昵称","min-width":"120"}}),a("el-table-column",{attrs:{prop:"email",label:"邮箱","min-width":"200","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"remark",label:"备注",width:"100"}}),a("el-table-column",{attrs:{prop:"is_admin",label:"是否超管","min-width":"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,disabled:""},model:{value:t.row.is_admin,callback:function(a){e.$set(t.row,"is_admin",a)},expression:"scope.row.is_admin"}})]}}])}),a("el-table-column",{attrs:{prop:"is_disable",label:"是否禁用","min-width":"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,disabled:""},model:{value:t.row.is_disable,callback:function(a){e.$set(t.row,"is_disable",a)},expression:"scope.row.is_disable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"100",align:"right","class-name":"small-padding fixed-width",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.roleUserRemove(i)}}},[e._v("解除")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.userCount>0,expression:"userCount > 0"}],attrs:{total:e.userCount,page:e.userQuery.page,limit:e.userQuery.limit},on:{"update:page":function(t){return e.$set(e.userQuery,"page",t)},"update:limit":function(t){return e.$set(e.userQuery,"limit",t)},pagination:e.roleUser}})],1)],1)},l=[],o=(a("14d9"),a("a434"),a("99af"),a("98b1")),n=a("333d"),r=a("50fc"),s={name:"Role",components:{Pagination:n["a"]},data:function(){return{height:680,loading:!1,menuTree:[],menuProps:{children:"children",label:"menu_name"},roleDialog:!1,roleDialogTitle:"",roleData:[],roleCount:0,roleQuery:{page:1,limit:13},roleModel:{admin_role_id:"",admin_menu_ids:[],role_name:"",role_desc:"",role_sort:200},roleRules:{role_name:[{required:!0,message:"请输入角色名称",trigger:"blur"}]},userDialog:!1,userLoad:!1,userData:[],userCount:0,userQuery:{},userTitle:""}},created:function(){this.height=Object(o["a"])(),this.roleList()},methods:{roleList:function(){var e=this;this.loading=!0,Object(r["Bb"])(this.roleQuery).then((function(t){e.roleData=t.data.list,e.roleCount=t.data.count,e.loading=!1,e.$nextTick((function(){e.$refs["roleTableRef"].doLayout()}))})).catch((function(){e.loading=!1}))},roleSearch:function(){this.roleQuery.page=1,this.roleList()},roleRefresh:function(){this.roleQuery=this.$options.data().roleQuery,this.roleList()},roleSort:function(e){this.roleQuery.sort_field=e.prop,this.roleQuery.sort_type="","ascending"===e.order&&(this.roleQuery.sort_type="asc",this.roleList()),"descending"===e.order&&(this.roleQuery.sort_type="desc",this.roleList())},roleAddition:function(){var e=this;this.roleDialog=!0,Object(r["xb"])().then((function(t){e.menuTree=t.data.menu_tree})),this.roleReset()},roleModify:function(e){var t=this;this.roleDialog=!0,Object(r["Ab"])({admin_role_id:e.admin_role_id}).then((function(e){t.menuTree=e.data.menu_tree,t.roleReset(e.data.admin_role)}))},roleDelete:function(e){var t=this;this.$confirm('确定要删除角色 <span style="color:red">'+e.role_name+" </span>吗?","删除:"+e.admin_role_id,{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(r["yb"])({admin_role_id:e.admin_role_id}).then((function(e){t.roleReset(),t.roleList(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))})).catch((function(){}))},roleIsDisable:function(e){var t=this;this.loading=!0,Object(r["zb"])({admin_role_id:e.admin_role_id,is_disable:e.is_disable}).then((function(e){t.roleList(),t.$message.success(e.msg)})).catch((function(){t.loading=!0}))},menuCheck:function(e,t){this.roleModel.admin_menu_ids=t.checkedKeys},menuChildrenAllCheck:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this.roleModel.admin_menu_ids,i=[];i.push(e.admin_menu_id);for(var l=0;l<e.children.length;l++)i.push(e.children[l].admin_menu_id);if(t){for(var o=0;o<a.length;o++)for(var n=0;n<i.length;n++)a[o]===i[n]&&a.splice(o,1);this.roleModel.admin_menu_ids=a,this.$refs.menuRef.setCheckedKeys(a)}else{for(var r=[],s=a.concat(i),c=0;c<s.length;c++)-1===r.indexOf(s[c])&&r.push(s[c]);this.roleModel.admin_menu_ids=r,this.$refs.menuRef.setCheckedKeys(r)}},roleReset:function(e){e?(this.roleModel=e,this.roleDialogTitle="角色修改:"+e.role_name):(this.roleModel=this.$options.data().roleModel,this.roleDialogTitle="角色添加"),void 0!==this.$refs["roleRef"]&&this.$refs["roleRef"].resetFields()},roleCancel:function(){this.roleDialog=!1,this.roleReset()},roleSubmit:function(){var e=this;this.$refs["roleRef"].validate((function(t){t&&(e.loading=!0,e.roleModel.admin_role_id?Object(r["Ab"])(e.roleModel,"post").then((function(t){e.roleList(),e.roleReset(),e.roleDialog=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})):Object(r["xb"])(e.roleModel,"post").then((function(t){e.roleList(),e.roleReset(),e.roleDialog=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))},roleUserShow:function(e){this.userDialog=!0,this.userTitle="角色:"+e.role_name+" > 管理员",this.userQuery.admin_role_id=e.admin_role_id,this.roleUser()},roleUser:function(){var e=this;this.userLoad=!0,Object(r["Cb"])(this.userQuery).then((function(t){e.userData=t.data.list,e.userCount=t.data.count,e.userLoad=!1,e.$nextTick((function(){e.$refs["userRef"].doLayout()}))})).catch((function(){e.userLoad=!1}))},userSort:function(e){this.userQuery.sort_field=e.prop,this.userQuery.sort_type="","ascending"===e.order&&(this.userQuery.sort_type="asc",this.roleUser()),"descending"===e.order&&(this.userQuery.sort_type="desc",this.roleUser())},roleUserRemove:function(e){var t=this;this.$confirm('确定要解除该角色与管理员 <span style="color:red">'+e.username+" </span>的关联吗?","解除:"+e.admin_user_id,{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.userLoad=!0,Object(r["Db"])({admin_role_id:t.userQuery.admin_role_id,admin_user_id:e.admin_user_id}).then((function(e){t.roleUser(),t.$message.success(e.msg)})).catch((function(){t.userLoad=!1}))})).catch((function(){}))}}},c=s,u=(a("44d5"),a("2877")),d=Object(u["a"])(c,i,l,!1,null,"bf7917bc",null);t["default"]=d.exports},a809:function(e,t,a){},a8ac:function(e,t,a){"use strict";a("a809")},aa6d:function(e,t,a){},ad60:function(e,t,a){},adb6:function(e,t,a){"use strict";a("1482")},ae85:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("时间戳转换")])]),a("div",{staticClass:"text item"},[a("el-form",{ref:"timeTranRef",attrs:{model:e.timeTranModel,rules:e.timeTranRules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"时间戳"}},[a("el-input",{attrs:{type:"number","prefix-icon":"el-icon-stopwatch",placeholder:"请输入时间戳",clearable:""},on:{input:function(t){return e.timeTranValue("timestamp")}},model:{value:e.timeTranModel.timestamp,callback:function(t){e.$set(e.timeTranModel,"timestamp",t)},expression:"timeTranModel.timestamp"}})],1),a("el-form-item",{attrs:{label:"日期时间"}},[a("el-date-picker",{attrs:{type:"datetime","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择日期时间",clearable:""},on:{change:function(t){return e.timeTranValue("datetime")}},model:{value:e.timeTranModel.datetime,callback:function(t){e.$set(e.timeTranModel,"datetime",t)},expression:"timeTranModel.datetime"}})],1),a("el-form-item",[a("el-button",{on:{click:function(t){return e.timeTranClear()}}},[e._v("清空")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.timeTranSubmit()}}},[e._v("转换")])],1)],1)],1)])},l=[],o=a("50fc"),n={name:"MixTimeTran",components:{},data:function(){return{timeTranModel:{type:"timestamp",value:"",timestamp:"",datetime:""},timeTranRules:{}}},created:function(){},methods:{timeTranValue:function(e){this.timeTranModel.type=e,this.timeTranModel.value=this.timeTranModel[e]},timeTranClear:function(){this.timeTranModel=this.$options.data().timeTranModel},timeTranSubmit:function(){var e=this;Object(o["Zb"])(this.timeTranModel).then((function(t){e.timeTranModel=t.data}))}}},r=n,s=(a("0623"),a("2877")),c=Object(s["a"])(r,i,l,!1,null,"268b7aaa",null);t["default"]=c.exports},afb0:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{xs:24,sm:22}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"日志类型",clearable:""},model:{value:e.logQuery.log_type,callback:function(t){e.$set(e.logQuery,"log_type",t)},expression:"logQuery.log_type"}},[a("el-option",{attrs:{value:1,label:"登录日志"}}),a("el-option",{attrs:{value:2,label:"操作日志"}})],1),a("el-input",{staticClass:"filter-item",staticStyle:{width:"135px"},attrs:{placeholder:"管理员账号/昵称",clearable:""},model:{value:e.logQuery.user_keyword,callback:function(t){e.$set(e.logQuery,"user_keyword",t)},expression:"logQuery.user_keyword"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"155px"},attrs:{placeholder:"请求IP/地区/ISP",clearable:""},model:{value:e.logQuery.request_keyword,callback:function(t){e.$set(e.logQuery,"request_keyword",t)},expression:"logQuery.request_keyword"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"280px"},attrs:{placeholder:"菜单链接/名称",clearable:""},model:{value:e.logQuery.menu_keyword,callback:function(t){e.$set(e.logQuery,"menu_keyword",t)},expression:"logQuery.menu_keyword"}}),a("el-date-picker",{staticClass:"filter-item",staticStyle:{width:"240px"},attrs:{type:"daterange","range-separator":"-","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.logQuery.create_time,callback:function(t){e.$set(e.logQuery,"create_time",t)},expression:"logQuery.create_time"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"100px"},attrs:{placeholder:"返回码",clearable:""},model:{value:e.logQuery.response_code,callback:function(t){e.$set(e.logQuery,"response_code",t)},expression:"logQuery.response_code"}}),a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.logSearch()}}},[e._v("查询")]),a("el-button",{staticClass:"filter-item",on:{click:function(t){return e.logRefresh()}}},[e._v("刷新")])],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{xs:24,sm:2}},[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["admin/AdminLog/logStatistic"],expression:"['admin/AdminLog/logStatistic']"}],staticClass:"filter-item",attrs:{type:"primary",title:"日志统计"},on:{click:e.logStaRouter}},[e._v("统计")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.logData,height:e.height,border:""},on:{"sort-change":e.logSort}},[a("el-table-column",{attrs:{prop:"admin_log_id",label:"日志ID","min-width":"100",sortable:"custom",fixed:"left"}}),a("el-table-column",{attrs:{prop:"nickname",label:"管理员昵称","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{trigger:"hover",placement:"top"}},[a("p",[e._v("管理员ID: "+e._s(t.row.admin_user_id))]),a("p",[e._v("管理员账号: "+e._s(t.row.username))]),a("p",[e._v("管理员昵称: "+e._s(t.row.nickname))]),a("div",{staticClass:"name-wrapper",attrs:{slot:"reference"},slot:"reference"},[a("el-tag",[e._v(e._s(t.row.nickname))])],1)])]}}])}),a("el-table-column",{attrs:{prop:"menu_url",label:"菜单链接","min-width":"240"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{trigger:"hover",placement:"top"}},[a("p",[e._v("菜单ID: "+e._s(t.row.admin_menu_id))]),a("p",[e._v("菜单链接: "+e._s(t.row.menu_url))]),a("div",{staticClass:"name-wrapper",attrs:{slot:"reference"},slot:"reference"},[e._v(" "+e._s(t.row.menu_url)+" ")])])]}}])}),a("el-table-column",{attrs:{prop:"menu_name",label:"菜单名称","min-width":"140","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"request_method",label:"请求方式 ","min-width":"110",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"request_ip",label:"请求IP","min-width":"130",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"request_region",label:"请求地区","min-width":"150","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"request_isp",label:"请求ISP","min-width":"110","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"create_time",label:"请求时间","min-width":"160",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"response_code",label:"返回码","min-width":"80"}}),a("el-table-column",{attrs:{prop:"response_msg",label:"返回描述","min-width":"130","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"操作","min-width":"150",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.logDetail(i)}}},[e._v("详情")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.logDelete(i)}}},[e._v("删除")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.logCount>0,expression:"logCount > 0"}],attrs:{total:e.logCount,page:e.logQuery.page,limit:e.logQuery.limit},on:{"update:page":function(t){return e.$set(e.logQuery,"page",t)},"update:limit":function(t){return e.$set(e.logQuery,"limit",t)},pagination:e.logLists}}),a("el-dialog",{attrs:{title:"日志详情:"+e.logModel.admin_log_id,visible:e.logDialog,top:"1vh","before-close":e.logCancel},on:{"update:visible":function(t){e.logDialog=t}}},[a("el-form",{ref:"logRef",staticClass:"dialog-body",style:{height:e.height+30+"px"},attrs:{rules:e.logRules,model:e.logModel,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"管理员ID",prop:"admin_user_id"}},[a("el-col",{attrs:{span:10}},[a("el-input",{model:{value:e.logModel.admin_user_id,callback:function(t){e.$set(e.logModel,"admin_user_id",t)},expression:"logModel.admin_user_id"}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:4}},[e._v("管理员昵称")]),a("el-col",{attrs:{span:10}},[a("el-input",{model:{value:e.logModel.nickname,callback:function(t){e.$set(e.logModel,"nickname",t)},expression:"logModel.nickname"}})],1)],1),a("el-form-item",{attrs:{label:"管理员账号",prop:"username"}},[a("el-input",{model:{value:e.logModel.username,callback:function(t){e.$set(e.logModel,"username",t)},expression:"logModel.username"}})],1),a("el-form-item",{attrs:{label:"菜单ID",prop:"admin_menu_id"}},[a("el-col",{attrs:{span:10}},[a("el-input",{model:{value:e.logModel.admin_menu_id,callback:function(t){e.$set(e.logModel,"admin_menu_id",t)},expression:"logModel.admin_menu_id"}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:4}},[e._v("菜单名称")]),a("el-col",{attrs:{span:10}},[a("el-input",{model:{value:e.logModel.menu_name,callback:function(t){e.$set(e.logModel,"menu_name",t)},expression:"logModel.menu_name"}})],1)],1),a("el-form-item",{attrs:{label:"菜单链接",prop:"menu_url"}},[a("el-input",{model:{value:e.logModel.menu_url,callback:function(t){e.$set(e.logModel,"menu_url",t)},expression:"logModel.menu_url"}})],1),a("el-form-item",{attrs:{label:"请求方式",prop:"request_method"}},[a("el-col",{attrs:{span:10}},[a("el-input",{model:{value:e.logModel.request_method,callback:function(t){e.$set(e.logModel,"request_method",t)},expression:"logModel.request_method"}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:4}},[e._v("请求IP")]),a("el-col",{attrs:{span:10}},[a("el-input",{model:{value:e.logModel.request_ip,callback:function(t){e.$set(e.logModel,"request_ip",t)},expression:"logModel.request_ip"}})],1)],1),a("el-form-item",{attrs:{label:"请求地区",prop:"request_region"}},[a("el-col",{attrs:{span:10}},[a("el-input",{model:{value:e.logModel.request_region,callback:function(t){e.$set(e.logModel,"request_region",t)},expression:"logModel.request_region"}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:4}},[e._v("请求ISP")]),a("el-col",{attrs:{span:10}},[a("el-input",{model:{value:e.logModel.request_isp,callback:function(t){e.$set(e.logModel,"request_isp",t)},expression:"logModel.request_isp"}})],1)],1),a("el-form-item",{attrs:{label:"请求时间",prop:"create_time"}},[a("el-input",{model:{value:e.logModel.create_time,callback:function(t){e.$set(e.logModel,"create_time",t)},expression:"logModel.create_time"}})],1),a("el-form-item",{attrs:{label:"请求参数",prop:"request_param"}},[a("pre",[e._v(e._s(e.logModel.request_param))])]),a("el-form-item",{attrs:{label:"返回码",prop:"response_code"}},[a("el-input",{model:{value:e.logModel.response_code,callback:function(t){e.$set(e.logModel,"response_code",t)},expression:"logModel.response_code"}})],1),a("el-form-item",{attrs:{label:"返回描述",prop:"response_msg"}},[a("el-input",{attrs:{type:"textarea"},model:{value:e.logModel.response_msg,callback:function(t){e.$set(e.logModel,"response_msg",t)},expression:"logModel.response_msg"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.logCancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.logSubmit}},[e._v("确定")])],1)],1)],1)},l=[],o=(a("14d9"),a("98b1")),n=a("333d"),r=a("4381"),s=a("50fc"),c={name:"Log",components:{Pagination:n["a"]},directives:{permission:r["a"]},data:function(){return{height:680,loading:!1,logData:[],logCount:0,logQuery:{page:1,limit:13},logDialog:!1,logModel:{},logRules:{}}},created:function(){this.height=Object(o["a"])(),this.logLists()},methods:{logLists:function(){var e=this;this.loading=!0,Object(s["T"])(this.logQuery).then((function(t){e.logData=t.data.list,e.logCount=t.data.count,e.loading=!1})).catch((function(){e.loading=!1}))},logSort:function(e){this.logQuery.sort_field=e.prop,this.logQuery.sort_type="","ascending"===e.order&&(this.logQuery.sort_type="asc",this.logLists()),"descending"===e.order&&(this.logQuery.sort_type="desc",this.logLists())},logSearch:function(){this.logQuery.page=1,this.logLists()},logRefresh:function(){this.logQuery=this.$options.data().logQuery,this.logLists()},logStaRouter:function(){this.$router.push("/admin/rule/log-sta")},logDetail:function(e){var t=this;this.loading=!0,this.logDialog=!0,Object(s["S"])({admin_log_id:e.admin_log_id}).then((function(e){t.logReset(e.data),t.loading=!1})).catch((function(){t.loading=!1}))},logCancel:function(){this.logReset(),this.logDialog=!1},logSubmit:function(){this.logReset(),this.logDialog=!1},logReset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.logModel=""===e?this.$options.data().logModel:e},logDelete:function(e){var t=this;this.$confirm('确定要删除日志 <span style="color:red">'+e.admin_log_id+" </span>吗?","删除:"+e.admin_log_id,{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(s["R"])({admin_log_id:e.admin_log_id}).then((function(e){t.logLists(),t.logReset(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))}))}}},u=c,d=a("2877"),m=Object(d["a"])(u,i,l,!1,null,null,null);t["default"]=m.exports},aff1:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-row",[a("el-col",{attrs:{xm:24,sm:22}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"名称",clearable:""},model:{value:e.regionQuery.region_name,callback:function(t){e.$set(e.regionQuery,"region_name",t)},expression:"regionQuery.region_name"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"拼音",clearable:""},model:{value:e.regionQuery.region_pinyin,callback:function(t){e.$set(e.regionQuery,"region_pinyin",t)},expression:"regionQuery.region_pinyin"}}),a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.regionSearch()}}},[e._v("查询")]),a("el-button",{staticClass:"filter-item",on:{click:function(t){return e.regionRefresh()}}},[e._v("刷新")])],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{xm:24,sm:2}},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.regionAddition("")}}},[e._v("添加")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.regionData,height:e.height+80,"row-key":"region_id",border:"",lazy:"",load:e.regionListLoad},on:{"sort-change":e.regionSort}},[a("el-table-column",{attrs:{prop:"region_name",label:"名称","min-width":"250",fixed:"left"}}),a("el-table-column",{attrs:{prop:"region_pinyin",label:"拼音","min-width":"250",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"region_jianpin",label:"简拼","min-width":"120",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"region_initials",label:"首字母","min-width":"90",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"region_citycode",label:"区号","min-width":"80",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"region_zipcode",label:"邮编","min-width":"80",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"region_sort",label:"排序","min-width":"80",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"region_id",label:"地区ID","min-width":"90",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"region_pid",label:"地区PID","min-width":"80"}}),a("el-table-column",{attrs:{label:"操作",width:"220",fixed:"right",align:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.regionAddition(i)}}},[e._v("添加")]),a("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(t){return e.regionModify(i)}}},[e._v("修改")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.regionDelete(i)}}},[e._v("删除")])]}}])})],1),a("el-dialog",{attrs:{title:e.regionDialogTitle,visible:e.regionDialog,top:"1vh","before-close":e.regionCancel},on:{"update:visible":function(t){e.regionDialog=t}}},[a("el-form",{ref:"regionRef",staticClass:"dialog-body",style:{height:e.height+30+"px"},attrs:{rules:e.regionRules,model:e.regionModel,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"父级",prop:"region_pid"}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.regionTree,props:e.regionProps,clearable:"",filterable:"",placeholder:"一级"},on:{change:e.regionPidChange},model:{value:e.regionModel.region_pid,callback:function(t){e.$set(e.regionModel,"region_pid",t)},expression:"regionModel.region_pid"}})],1),a("el-form-item",{attrs:{label:"名称",prop:"region_name"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入名称:北京市"},model:{value:e.regionModel.region_name,callback:function(t){e.$set(e.regionModel,"region_name",t)},expression:"regionModel.region_name"}})],1),a("el-form-item",{attrs:{label:"拼音",prop:"region_pinyin"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入拼音:Beijing"},model:{value:e.regionModel.region_pinyin,callback:function(t){e.$set(e.regionModel,"region_pinyin",t)},expression:"regionModel.region_pinyin"}})],1),a("el-form-item",{attrs:{label:"简拼",prop:"region_jianpin"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入简拼:BJ"},model:{value:e.regionModel.region_jianpin,callback:function(t){e.$set(e.regionModel,"region_jianpin",t)},expression:"regionModel.region_jianpin"}})],1),a("el-form-item",{attrs:{label:"首字母",prop:"region_initials"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入首字母:B"},model:{value:e.regionModel.region_initials,callback:function(t){e.$set(e.regionModel,"region_initials",t)},expression:"regionModel.region_initials"}})],1),a("el-form-item",{attrs:{label:"排序",prop:"region_sort"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入排序:1000",type:"number"},model:{value:e.regionModel.region_sort,callback:function(t){e.$set(e.regionModel,"region_sort",t)},expression:"regionModel.region_sort"}})],1),a("el-form-item",{attrs:{label:"区号",prop:"region_citycode"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入区号:010"},model:{value:e.regionModel.region_citycode,callback:function(t){e.$set(e.regionModel,"region_citycode",t)},expression:"regionModel.region_citycode"}})],1),a("el-form-item",{attrs:{label:"邮编",prop:"region_zipcode"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入邮编:1000"},model:{value:e.regionModel.region_zipcode,callback:function(t){e.$set(e.regionModel,"region_zipcode",t)},expression:"regionModel.region_zipcode"}})],1),a("el-form-item",{attrs:{label:"经度",prop:"region_longitude"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入经度:116.403263"},model:{value:e.regionModel.region_longitude,callback:function(t){e.$set(e.regionModel,"region_longitude",t)},expression:"regionModel.region_longitude"}})],1),a("el-form-item",{attrs:{label:"纬度",prop:"region_latitude"}},[a("el-input",{attrs:{clearable:"",placeholder:"请输入纬度:39.915156"},model:{value:e.regionModel.region_latitude,callback:function(t){e.$set(e.regionModel,"region_latitude",t)},expression:"regionModel.region_latitude"}})],1),a("el-form-item",{attrs:{label:"添加时间",prop:""}},[a("el-col",{attrs:{span:10}},[a("el-input",{attrs:{clearable:"",placeholder:"",disabled:""},model:{value:e.regionModel.create_time,callback:function(t){e.$set(e.regionModel,"create_time",t)},expression:"regionModel.create_time"}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:4}},[e._v("更新时间")]),a("el-col",{attrs:{span:10}},[a("el-input",{attrs:{clearable:"",placeholder:"",disabled:""},model:{value:e.regionModel.update_time,callback:function(t){e.$set(e.regionModel,"update_time",t)},expression:"regionModel.update_time"}})],1)],1),a("el-form-item",{attrs:{label:"",prop:""}},[a("el-col",{attrs:{span:12}},[a("el-link",{attrs:{type:"info",href:"https://www.ip138.com/post/",target:"_blank"}},[e._v("查询区号邮编")])],1),a("el-col",{attrs:{span:12}},[a("el-link",{attrs:{type:"info",href:"http://api.map.baidu.com/lbsapi/getpoint/index.html",target:"_blank"}},[e._v("查询经度纬度")])],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.regionCancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.regionSubmit}},[e._v("提交")])],1)],1)],1)},l=[],o=a("98b1"),n=a("b775");function r(e){return Object(n["a"])({url:"/admin/Region/regionList",method:"get",params:e})}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get";return"get"===t?Object(n["a"])({url:"/admin/Region/regionAdd",method:"get",params:e}):Object(n["a"])({url:"/admin/Region/regionAdd",method:"post",data:e})}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get";return"get"===t?Object(n["a"])({url:"/admin/Region/regionEdit",method:"get",params:e}):Object(n["a"])({url:"/admin/Region/regionEdit",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/admin/Region/regionDele",method:"post",data:e})}var d={name:"Region",components:{},data:function(){return{height:680,loading:!1,regionData:[],regionCount:0,regionQuery:{},regionDialog:!1,regionDialogTitle:"",regionProps:{expandTrigger:"click",checkStrictly:!0,value:"region_id",label:"region_name"},regionModel:{region_id:"",region_pid:0,region_name:"",region_pinyin:"",region_jianpin:"",region_initials:"",region_citycode:"",region_zipcode:"",region_longitude:"",region_latitude:"",region_sort:1e3},regionTree:[],regionRules:{region_name:[{required:!0,message:"请输入名称",trigger:"blur"}]}}},created:function(){this.height=Object(o["a"])(),this.regionList()},methods:{regionList:function(){var e=this;this.loading=!0,this.regionData=[],r(this.regionQuery).then((function(t){e.regionData=t.data.list,e.regionCount=t.data.count,e.loading=!1})).catch((function(){e.loading=!1}))},regionSort:function(e){this.regionQuery.sort_field=e.prop,this.regionQuery.sort_type="","ascending"===e.order&&(this.regionQuery.sort_type="asc",this.regionList()),"descending"===e.order&&(this.regionQuery.sort_type="desc",this.regionList())},regionSearch:function(){this.regionQuery.page=1,this.regionList()},regionListLoad:function(e,t,a){r({region_pid:e.region_id}).then((function(e){a(e.data.list)}))},regionRefresh:function(){this.regionQuery={},this.regionList()},regionAddition:function(e){var t=this;this.regionDialog=!0,this.regionDialogTitle="地区添加",s().then((function(a){e?(t.regionModel=t.$options.data().regionModel,t.regionModel.region_pid=e.region_id):t.regionReset(),t.regionTree=a.data.region_tree}))},regionModify:function(e){var t=this;this.regionDialog=!0,this.regionDialogTitle="地区修改:"+e.region_name,c({region_id:e.region_id}).then((function(e){t.regionModel=e.data.region_info,t.regionTree=e.data.region_tree}))},regionDelete:function(e){var t=this;this.$confirm('确定要删除地区 <span style="color:red">'+e.region_name+" </span>吗?","删除:"+e.region_id,{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,u({region_id:e.region_id}).then((function(e){t.regionList(),t.regionReset(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))})).catch((function(){}))},regionPidChange:function(e){e&&(this.regionModel.region_pid=e[e.length-1])},regionReset:function(e){this.regionModel=e||this.$options.data().regionModel,void 0!==this.$refs["regionRef"]&&this.$refs["regionRef"].resetFields()},regionCancel:function(){this.regionDialog=!1,this.regionReset()},regionSubmit:function(){var e=this;this.$refs["regionRef"].validate((function(t){t&&(e.loading=!0,e.regionModel.region_id?c(e.regionModel,"post").then((function(t){e.regionList(),e.regionReset(),e.regionDialog=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})):s(e.regionModel,"post").then((function(t){e.regionList(),e.regionReset(),e.regionDialog=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))}}},m=d,p=a("2877"),f=Object(p["a"])(m,i,l,!1,null,null,null);t["default"]=f.exports},b124:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("字符串转换")])]),a("div",{staticClass:"text item"},[a("el-form",{ref:"strTranRef",attrs:{model:e.strTranModel,rules:e.strTranRules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"字符串",prop:"str"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入字符串",clearable:""},model:{value:e.strTranModel.str,callback:function(t){e.$set(e.strTranModel,"str",t)},expression:"strTranModel.str"}})],1),a("el-form-item",{attrs:{label:"长度",prop:"len"}},[a("el-input",{attrs:{clearable:""},model:{value:e.strTranModel.len,callback:function(t){e.$set(e.strTranModel,"len",t)},expression:"strTranModel.len"}})],1),a("el-form-item",{attrs:{label:"小写",prop:"lower"}},[a("el-input",{attrs:{clearable:""},model:{value:e.strTranModel.lower,callback:function(t){e.$set(e.strTranModel,"lower",t)},expression:"strTranModel.lower"}})],1),a("el-form-item",{attrs:{label:"大写",prop:"upper"}},[a("el-input",{attrs:{clearable:""},model:{value:e.strTranModel.upper,callback:function(t){e.$set(e.strTranModel,"upper",t)},expression:"strTranModel.upper"}})],1),a("el-form-item",{attrs:{label:"反转",prop:"rev"}},[a("el-input",{attrs:{clearable:""},model:{value:e.strTranModel.rev,callback:function(t){e.$set(e.strTranModel,"rev",t)},expression:"strTranModel.rev"}})],1),a("el-form-item",{attrs:{label:"MD5",prop:"md5"}},[a("el-input",{attrs:{clearable:""},model:{value:e.strTranModel.md5,callback:function(t){e.$set(e.strTranModel,"md5",t)},expression:"strTranModel.md5"}})],1),a("el-form-item",[a("el-button",{on:{click:function(t){return e.strTranClear()}}},[e._v("清空")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.strTranSubmit()}}},[e._v("转换")])],1)],1)],1)])},l=[],o=a("50fc"),n={name:"MixStrTran",components:{},data:function(){return{strTranModel:{str:"",len:"",lower:"",upper:"",rev:"",md5:""},strTranRules:{}}},created:function(){},methods:{strTranClear:function(){this.strTranModel=this.$options.data().strTranModel},strTranSubmit:function(){var e=this;this.$refs["strTranRef"].validate((function(t){t&&Object(o["Ub"])({str:e.strTranModel.str}).then((function(t){e.strTranModel=t.data}))}))}}},r=n,s=(a("5f55"),a("2877")),c=Object(s["a"])(r,i,l,!1,null,"7f0e4187",null);t["default"]=c.exports},b1e7:function(e,t,a){},b20b:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-tabs",{on:{"tab-click":e.tabClick},model:{value:e.actTabName,callback:function(t){e.actTabName=t},expression:"actTabName"}},[e.checkPermission(["admin/AdminTool/toolMapAmap"])?a("el-tab-pane",{attrs:{label:"高德地图坐标拾取",name:"MapAmap"}},[e.MapAmap?a("map-amap"):e._e()],1):e._e(),e.checkPermission(["admin/AdminTool/toolMapBaidu"])?a("el-tab-pane",{attrs:{label:"百度地图坐标拾取",name:"MapBaidu"}},[e.MapBaidu?a("map-baidu"):e._e()],1):e._e(),e.checkPermission(["admin/AdminTool/toolMapSogou"])?a("el-tab-pane",{attrs:{label:"搜狗地图坐标拾取",name:"MapSogou"}},[e.MapSogou?a("map-sogou"):e._e()],1):e._e(),e.checkPermission(["admin/AdminTool/toolMapTencent"])?a("el-tab-pane",{attrs:{label:"腾讯地图坐标拾取",name:"MapTencent"}},[e.MapTencent?a("map-tencent"):e._e()],1):e._e(),e.checkPermission(["admin/AdminTool/toolMapBeidou"])?a("el-tab-pane",{attrs:{label:"北斗卫星导航系统",name:"MapBeidou"}},[e.MapBeidou?a("map-beidou"):e._e()],1):e._e()],1)],1)},l=[],o=(a("b0c0"),a("e350")),n=a("5fd0"),r=a("0784"),s=a("1586"),c=a("89eb"),u=a("b419"),d={name:"ToolMap",components:{MapAmap:n["default"],MapBaidu:r["default"],MapSogou:s["default"],MapTencent:c["default"],MapBeidou:u["default"]},data:function(){return{MapAmap:!1,MapBaidu:!0,MapSogou:!1,MapTencent:!1,MapBeidou:!1,actTabName:"MapBaidu"}},created:function(){},methods:{checkPermission:o["a"],tabClick:function(e){this[e.name]=!0}}},m=d,p=a("2877"),f=Object(p["a"])(m,i,l,!1,null,null,null);t["default"]=f.exports},b38d:function(e,t,a){"use strict";a("8332")},b419:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("iframe",{attrs:{src:e.src,frameborder:"0",width:"100%",height:e.height}})},l=[],o=a("98b1"),n={name:"MapBeidou",components:{},data:function(){return{src:"http://www.beidou.gov.cn/",height:500}},created:function(){this.height=Object(o["a"])(180)},methods:{}},r=n,s=a("2877"),c=Object(s["a"])(r,i,l,!1,null,null,null);t["default"]=c.exports},b587:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticStyle:{float:"left"}},[a("div",{staticStyle:{"margin-right":"10px",float:"left"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"",clearable:""},model:{value:e.query.title,callback:function(t){e.$set(e.query,"title",t)},expression:"query.title"}}),a("el-select",{staticClass:"filter-item",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){return e.resthomeList()}},model:{value:e.query.recommend_position,callback:function(t){e.$set(e.query,"recommend_position",t)},expression:"query.recommend_position"}},e._l(e.recommend,(function(e,t){return a("el-option",{key:t,attrs:{label:e,value:Number(t)}})})),1)],1),a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")]),a("el-button",{staticClass:"filter-item",on:{click:function(t){return e.reset()}}},[e._v("重置")])],1),a("div",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addition("")}}},[e._v("添加")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.updateSort()}}},[e._v("更新排序")])],1)]),a("el-form",{attrs:{model:e.form}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.form.data,height:e.height,border:""}},[a("el-table-column",{attrs:{prop:"sid",label:"ID","min-width":"50",fixed:"left"}}),a("el-table-column",{attrs:{prop:"title",label:"标题","min-width":"170"}}),a("el-table-column",{attrs:{prop:"sort",label:"创建时间","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(e._f("parseTime")(a.create_time))+" ")]}}])}),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"50"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-input",{key:"title",attrs:{placeholder:"",clearable:""},model:{value:i.sort,callback:function(t){e.$set(i,"sort",t)},expression:"row.sort"}})]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"80",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.modify(i)}}},[e._v("修改")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.remove(i)}}},[e._v("删除")])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.sojournList}}),a("el-dialog",{attrs:{title:e.dataDialogTitle,visible:e.dataDialog,width:"65%",top:"1vh","before-close":e.cancel},on:{"update:visible":function(t){e.dataDialog=t}}},[a("el-form",{ref:"memberRef",staticClass:"dialog-body",style:{height:e.height+50+"px"},attrs:{model:e.model,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"名称",prop:"title"}},[a("el-input",{key:"title",attrs:{placeholder:"",clearable:""},model:{value:e.model.title,callback:function(t){e.$set(e.model,"title",t)},expression:"model.title"}})],1),a("el-form-item",{attrs:{label:"SEO标题",prop:"seo_t"}},[a("el-input",{key:"title",attrs:{placeholder:"",clearable:""},model:{value:e.model.seo_t,callback:function(t){e.$set(e.model,"seo_t",t)},expression:"model.seo_t"}})],1),a("el-form-item",{attrs:{label:"SEO描述",prop:"seo_d"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:12},placeholder:"",clearable:""},model:{value:e.model.seo_d,callback:function(t){e.$set(e.model,"seo_d",t)},expression:"model.seo_d"}})],1),a("el-form-item",{attrs:{label:"SEO关键词",prop:"seo_k"}},[a("el-input",{key:"title",attrs:{placeholder:"",clearable:""},model:{value:e.model.seo_k,callback:function(t){e.$set(e.model,"seo_k",t)},expression:"model.seo_k"}})],1),a("el-form-item",{attrs:{label:"选择城市"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.model.city_id,callback:function(t){e.$set(e.model,"city_id",t)},expression:"model.city_id"}},e._l(e.city,(function(e,t){return a("el-option",{key:e.sid,attrs:{label:e.title,value:e.sid}})})),1)],1),a("el-form-item",{attrs:{label:"价格",prop:"price"}},[a("el-input",{staticStyle:{width:"100px"},attrs:{placeholder:""},model:{value:e.model.min_price,callback:function(t){e.$set(e.model,"min_price",t)},expression:"model.min_price"}}),e._v(" - "),a("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:""},model:{value:e.model.max_price,callback:function(t){e.$set(e.model,"max_price",t)},expression:"model.max_price"}},[a("template",{slot:"append"},[e._v("元")])],2)],1),a("el-form-item",{attrs:{label:"位置",prop:"area"}},[a("el-input",{staticStyle:{width:"260px"},attrs:{placeholder:"经度"},model:{value:e.model.lng,callback:function(t){e.$set(e.model,"lng",t)},expression:"model.lng"}}),e._v(" - "),a("el-input",{staticStyle:{width:"260px"},attrs:{placeholder:"纬度"},model:{value:e.model.lat,callback:function(t){e.$set(e.model,"lat",t)},expression:"model.lat"}})],1),a("el-form-item",{attrs:{label:"详细地址",prop:"address"}},[a("el-input",{key:"address",attrs:{placeholder:"",clearable:""},model:{value:e.model.address,callback:function(t){e.$set(e.model,"address",t)},expression:"model.address"}})],1),a("el-form-item",{attrs:{label:"机构类型"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.model.type,callback:function(t){e.$set(e.model,"type",t)},expression:"model.type"}},e._l(e.type,(function(e,t){return a("el-option",{key:t,attrs:{label:e,value:t}})})),1)],1),a("el-form-item",{attrs:{label:"机构性质",prop:"lnstitutional_nature"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.model.lnstitutional_nature,callback:function(t){e.$set(e.model,"lnstitutional_nature",t)},expression:"model.lnstitutional_nature"}},e._l(e.lnstitutional_nature,(function(e,t){return a("el-option",{key:t,attrs:{label:e,value:t}})})),1)],1),a("el-form-item",{attrs:{label:"标签",prop:"tags"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.model.tags,callback:function(t){e.$set(e.model,"tags",t)},expression:"model.tags"}},e._l(e.tags,(function(e,t){return a("el-option",{key:t,attrs:{label:e,value:t}})})),1)],1),a("el-form-item",{attrs:{label:"推荐位",prop:"recommend"}},[a("el-checkbox-group",{model:{value:e.model.recommend,callback:function(t){e.$set(e.model,"recommend",t)},expression:"model.recommend"}},e._l(e.recommend,(function(t,i){return a("el-checkbox",{key:i,attrs:{label:i}},[e._v(e._s(t))])})),1)],1),a("el-form-item",{attrs:{label:"床位"}},[a("el-input-number",{attrs:{min:1,max:1e6,label:""},model:{value:e.model.beds,callback:function(t){e.$set(e.model,"beds",t)},expression:"model.beds"}})],1),a("el-form-item",{attrs:{label:"服务评分",prop:"service_score"}},[a("el-input",{key:"service_score",attrs:{placeholder:"",clearable:""},model:{value:e.model.service_score,callback:function(t){e.$set(e.model,"service_score",t)},expression:"model.service_score"}})],1),a("el-form-item",{attrs:{label:"服务水平",prop:"service_level"}},[a("el-input",{key:"service_level",attrs:{placeholder:"",clearable:""},model:{value:e.model.service_level,callback:function(t){e.$set(e.model,"service_level",t)},expression:"model.service_level"}})],1),a("el-form-item",{attrs:{label:"综合评分",prop:"comprehensive_score"}},[a("el-input",{key:"comprehensive_score",attrs:{placeholder:"",clearable:""},model:{value:e.model.comprehensive_score,callback:function(t){e.$set(e.model,"comprehensive_score",t)},expression:"model.comprehensive_score"}})],1),a("el-form-item",{attrs:{label:"缩略图"}},[a("Upload",{attrs:{"img-url":e.model.filename},on:{callback:function(t){e.model.filename=t}},model:{value:e.model.filename,callback:function(t){e.$set(e.model,"filename",t)},expression:"model.filename"}})],1),a("el-form-item",{attrs:{label:"多图上传"}},[a("Uploads",{attrs:{name:!0,summary:!1},on:{callback:function(t){e.model.pics=t}},model:{value:e.model.pics,callback:function(t){e.$set(e.model,"pics",t)},expression:"model.pics"}})],1),a("el-form-item",{attrs:{label:"详细内容",prop:"content"}},[a("editor-bar",{attrs:{isClear:e.isClear},model:{value:e.model.content,callback:function(t){e.$set(e.model,"content",t)},expression:"model.content"}})],1),a("el-form-item",{attrs:{label:"服务内容",prop:"service_content"}},[a("editor-bar",{attrs:{isClear:e.isClear},model:{value:e.model.service_content,callback:function(t){e.$set(e.model,"service_content",t)},expression:"model.service_content"}})],1),a("el-form-item",{attrs:{label:"入住须知",prop:"notice_content"}},[a("editor-bar",{attrs:{isClear:e.isClear},model:{value:e.model.notice_content,callback:function(t){e.$set(e.model,"notice_content",t)},expression:"model.notice_content"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("提交")])],1)],1)],1)},l=[],o=(a("d3b7"),a("159b"),a("4e82"),a("98b1")),n=a("333d"),r=a("d443"),s=a("21c2"),c=a("0c98"),u=a("50fc"),d={name:"sojourn",components:{Pagination:n["a"],Upload:r["a"],Uploads:s["a"],EditorBar:c["a"]},data:function(){return{this_:this,height:680,loading:!1,form:{data:[]},count:0,query:{page:1,limit:20},dataDialog:!1,dataDialogTitle:"",model:{nid:"",type:"",tags:"",lnstitutional_nature:"",beds:"1",title:"",filename:"",pics:[],recommend:[]},rules:{title:[{required:!0,message:"标题不能为空",trigger:"blur"}]},isClear:!1,category:[],type:[],tags:[],lnstitutional_nature:[],city:[],recommend:[]}},created:function(){this.height=Object(o["a"])(),this.sojournList(),this.dictionaryList(),this.sojournCityAll()},methods:{dictionaryList:function(){var e=this;Object(u["F"])().then((function(t){e.type=t.data[2],e.lnstitutional_nature=t.data[3],e.tags=t.data[4],e.recommend=t.data[6]})).catch((function(){e.loading=!1}))},sojournCityAll:function(){var e=this;Object(u["Lb"])().then((function(t){e.city=t.data})).catch((function(){e.loading=!1}))},sojournList:function(){var e=this;this.loading=!0,Object(u["Rb"])(this.query).then((function(t){e.form.data=e.query.recommend_position?t.data:t.data.data,e.count=t.data.total,e.loading=!1})).catch((function(){e.loading=!1}))},search:function(){this.query.page=1,this.sojournList()},reset:function(){this.query={page:1,limit:13},this.sojournList()},modelReset:function(){this.model=this.$options.data().model,void 0!==this.$refs["memberRef"]&&this.$refs["memberRef"].resetFields()},addition:function(){this.dataDialog=!0,this.dataDialogTitle="添加",this.modelReset()},modify:function(e){var t=this;this.dataDialogTitle="修改:"+e.title,Object(u["Qb"])({sid:e.sid}).then((function(e){t.model=e.data,t.dataDialog=!0}))},disable:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"status";this.loading=!0,e.table="Test",e.field=a,Object(u["gc"])(e).then((function(e){t.sojournList(),t.$message({message:e.msg,type:"success"})})).catch((function(){t.sojournList()}))},remove:function(e){var t=this;this.$confirm('确定要删除 <span style="color:red">'+e.title+" </span>吗?","删除确认",{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(u["Pb"])({sid:e.sid}).then((function(e){t.$message({message:e.msg,type:"success"}),t.sojournList()})).catch((function(){t.loading=!1}))}))},cancel:function(){this.reset(),this.dataDialog=!1},updateSort:function(){var e=this,t=[],a=this.form.data;a.forEach((function(e,a){var i={id:e.sid,sort:e.sort||""};t[a]=i}));var i={data:t,table:"Sojourn",recommend_position:this.query.recommend_position};Object(u["fc"])(i).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.sojournList()})).catch((function(){e.loading=!1}))},submit:function(){var e=this;this.$refs["memberRef"].validate((function(t){if(t){e.loading=!0;var a=e.model;a.sid?Object(u["Qb"])(a,"post").then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.sojournList()})).catch((function(){e.loading=!1})):Object(u["Ib"])(a).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.sojournList()})).catch((function(){e.loading=!1}))}}))}},filters:{}},m=d,p=(a("0a74"),a("2877")),f=Object(p["a"])(m,i,l,!1,null,null,null);t["default"]=f.exports},b843:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{xs:24,sm:23}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"用户ID",clearable:""},model:{value:e.userQuery.user_id,callback:function(t){e.$set(e.userQuery,"user_id",t)},expression:"userQuery.user_id"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"账号",clearable:""},model:{value:e.userQuery.username,callback:function(t){e.$set(e.userQuery,"username",t)},expression:"userQuery.username"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"手机",clearable:""},model:{value:e.userQuery.phone,callback:function(t){e.$set(e.userQuery,"phone",t)},expression:"userQuery.phone"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"250px"},attrs:{placeholder:"邮箱",clearable:""},model:{value:e.userQuery.email,callback:function(t){e.$set(e.userQuery,"email",t)},expression:"userQuery.email"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"日期类型",clearable:""},model:{value:e.userQuery.date_type,callback:function(t){e.$set(e.userQuery,"date_type",t)},expression:"userQuery.date_type"}},[a("el-option",{attrs:{value:"create_time",label:"注册时间"}}),a("el-option",{attrs:{value:"login_time",label:"登录时间"}}),a("el-option",{attrs:{value:"update_time",label:"更新时间"}})],1),a("el-date-picker",{staticClass:"filter-item",staticStyle:{width:"240px"},attrs:{type:"daterange","range-separator":"-","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.userQuery.date_range,callback:function(t){e.$set(e.userQuery,"date_range",t)},expression:"userQuery.date_range"}}),a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.userSearch()}}},[e._v("查询")]),a("el-button",{staticClass:"filter-item",on:{click:function(t){return e.userRefresh()}}},[e._v("刷新")])],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{xs:24,sm:1}},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.userAddition()}}},[e._v("添加")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.userData,height:e.height,border:""},on:{"sort-change":e.userSort}},[a("el-table-column",{attrs:{prop:"user_id",label:"用户ID","min-width":"100",sortable:"custom",fixed:"left"}}),a("el-table-column",{attrs:{prop:"username",label:"账号","min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"nickname",label:"昵称","min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"phone",label:"手机","min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"email",label:"邮箱","min-width":"220",sortable:"custom","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"create_time",label:"注册时间","min-width":"160",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"login_time",label:"登录时间","min-width":"160",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"remark",label:"备注","min-width":"110","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"sort",label:"排序",width:"80",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"is_disable",label:"禁用","min-width":"80",sortable:"custom",align:"center",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(a){return e.userIsProhibit(t.row)}},model:{value:t.row.is_disable,callback:function(a){e.$set(t.row,"is_disable",a)},expression:"scope.row.is_disable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"210",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.userPassword(i)}}},[e._v("密码")]),a("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(t){return e.userModify(i)}}},[e._v("修改")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.userDelete(i)}}},[e._v("删除")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.userCount>0,expression:"userCount > 0"}],attrs:{total:e.userCount,page:e.userQuery.page,limit:e.userQuery.limit},on:{"update:page":function(t){return e.$set(e.userQuery,"page",t)},"update:limit":function(t){return e.$set(e.userQuery,"limit",t)},pagination:e.userList}}),a("el-dialog",{attrs:{title:e.userDialogTitle,visible:e.userDialog,top:"1vh","before-close":e.userCancel},on:{"update:visible":function(t){e.userDialog=t}}},[a("el-form",{ref:"userRef",staticClass:"dialog-body",style:{height:e.height+30+"px"},attrs:{model:e.userModel,rules:e.userRules,"label-width":"100px"}},[e.userModel.user_id?a("el-form-item",{attrs:{label:"头像",prop:"avatar"}},[a("el-col",{attrs:{span:10}},[a("el-avatar",{attrs:{shape:"circle",fit:"contain",size:100,src:e.userModel.avatar}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:4}}),a("el-col",{attrs:{span:10}},[a("el-upload",{attrs:{name:"avatar_file","show-file-list":!1,"before-upload":e.uploadBefore,action:e.uploadAction,headers:e.uploadHeaders,data:e.uploadData,"on-success":e.uploadSuccess}},[a("el-button",[e._v("更换头像")])],1),a("span",[e._v("jpg、png图片,小于100KB,宽高1:1")])],1)],1):e._e(),a("el-form-item",{attrs:{label:"账号",prop:"username"}},[a("el-input",{key:"username",attrs:{placeholder:"请输入账号",clearable:""},model:{value:e.userModel.username,callback:function(t){e.$set(e.userModel,"username",t)},expression:"userModel.username"}})],1),a("el-form-item",{attrs:{label:"昵称",prop:"nickname"}},[a("el-input",{key:"nickname",attrs:{placeholder:"请输入昵称",clearable:""},model:{value:e.userModel.nickname,callback:function(t){e.$set(e.userModel,"nickname",t)},expression:"userModel.nickname"}})],1),""==e.userModel.user_id?a("el-form-item",{attrs:{label:"密码",prop:"password"}},[a("el-input",{key:"password",attrs:{placeholder:"请输入密码",clearable:"","show-password":""},model:{value:e.userModel.password,callback:function(t){e.$set(e.userModel,"password",t)},expression:"userModel.password"}})],1):e._e(),a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{attrs:{clearable:""},model:{value:e.userModel.email,callback:function(t){e.$set(e.userModel,"email",t)},expression:"userModel.email"}})],1),a("el-form-item",{attrs:{label:"手机",prop:"phone"}},[a("el-input",{attrs:{clearable:""},model:{value:e.userModel.phone,callback:function(t){e.$set(e.userModel,"phone",t)},expression:"userModel.phone"}})],1),a("el-form-item",{attrs:{label:"地区",prop:"region_id"}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.regionTree,props:e.regionProps,placeholder:""},on:{change:e.regionChange},model:{value:e.userModel.region_id,callback:function(t){e.$set(e.userModel,"region_id",t)},expression:"userModel.region_id"}})],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{clearable:""},model:{value:e.userModel.remark,callback:function(t){e.$set(e.userModel,"remark",t)},expression:"userModel.remark"}})],1),a("el-form-item",{attrs:{label:"排序",prop:"sort"}},[a("el-input",{attrs:{type:"number"},model:{value:e.userModel.sort,callback:function(t){e.$set(e.userModel,"sort",t)},expression:"userModel.sort"}})],1),e.userModel.user_id?a("el-form-item",{attrs:{label:"登录时间",prop:"login_time"}},[a("el-col",{attrs:{span:10}},[a("el-input",{attrs:{disabled:""},model:{value:e.userModel.login_time,callback:function(t){e.$set(e.userModel,"login_time",t)},expression:"userModel.login_time"}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:4}},[e._v("登录地区")]),a("el-col",{attrs:{span:10}},[a("el-input",{attrs:{disabled:""},model:{value:e.userModel.login_region,callback:function(t){e.$set(e.userModel,"login_region",t)},expression:"userModel.login_region"}})],1)],1):e._e(),e.userModel.user_id?a("el-form-item",{attrs:{label:"注册时间",prop:"create_time"}},[a("el-col",{attrs:{span:10}},[a("el-input",{attrs:{disabled:""},model:{value:e.userModel.create_time,callback:function(t){e.$set(e.userModel,"create_time",t)},expression:"userModel.create_time"}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:4}},[e._v("更新时间")]),a("el-col",{attrs:{span:10}},[a("el-input",{attrs:{disabled:""},model:{value:e.userModel.update_time,callback:function(t){e.$set(e.userModel,"update_time",t)},expression:"userModel.update_time"}})],1)],1):e._e()],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.userCancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.userSubmit}},[e._v("提交")])],1)],1),a("el-dialog",{attrs:{title:"密码重置:"+e.userModel.username,visible:e.userPwdDialog,top:"1vh","before-close":e.userCancelPwd},on:{"update:visible":function(t){e.userPwdDialog=t}}},[a("el-form",{ref:"userPwdRef",staticClass:"dialog-body",style:{height:e.height+30+"px"},attrs:{rules:e.userPwdRules,model:e.userModel,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"账号"}},[a("el-input",{attrs:{clearable:"",disabled:""},model:{value:e.userModel.username,callback:function(t){e.$set(e.userModel,"username",t)},expression:"userModel.username"}})],1),a("el-form-item",{attrs:{label:"昵称"}},[a("el-input",{attrs:{clearable:"",disabled:""},model:{value:e.userModel.nickname,callback:function(t){e.$set(e.userModel,"nickname",t)},expression:"userModel.nickname"}})],1),a("el-form-item",{attrs:{label:"密码",prop:"password"}},[a("el-input",{attrs:{placeholder:"请输入新密码",clearable:"","show-password":""},model:{value:e.userModel.password,callback:function(t){e.$set(e.userModel,"password",t)},expression:"userModel.password"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.userCancelPwd}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.userSubmitPwd}},[e._v("提交")])],1)],1)],1)},l=[],o=a("98b1"),n=a("333d"),r=a("5f87"),s=a("b775");function c(e){return Object(s["a"])({url:"/admin/User/userList",method:"get",params:e})}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get";return"get"===t?Object(s["a"])({url:"/admin/User/userAdd",method:"get",params:e}):Object(s["a"])({url:"/admin/User/userAdd",method:"post",data:e})}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get";return"get"===t?Object(s["a"])({url:"/admin/User/userEdit",method:"get",params:e}):Object(s["a"])({url:"/admin/User/userEdit",method:"post",data:e})}function m(e){return Object(s["a"])({url:"/admin/User/userDele",method:"post",data:e})}function p(e){return Object(s["a"])({url:"/admin/User/userPassword",method:"post",data:e})}function f(e){return Object(s["a"])({url:"/admin/User/userDisable",method:"post",data:e})}var h={name:"UserList",components:{Pagination:n["a"]},data:function(){return{height:680,loading:!1,userData:[],userCount:0,userQuery:{page:1,limit:13},userDialog:!1,userDialogTitle:"",userPwdDialog:!1,userModel:{user_id:"",username:"",nickname:"",password:"",email:"",phone:"",region_id:"",avatar:"",remark:"",sort:1e4,login_region:""},regionTree:[],regionProps:{expandTrigger:"click",checkStrictly:!0,value:"region_id",label:"region_name"},uploadAction:"http://yl.jnbinzang.com/backend.php/admin/User/userAvatar",uploadHeaders:{AdminToken:Object(r["f"])(),AdminUserId:Object(r["g"])()},uploadData:{user_id:""},userRules:{username:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},userPwdRules:{password:[{required:!0,message:"请输入新密码",trigger:"blur"}]}}},created:function(){this.height=Object(o["a"])(),this.userList()},methods:{userList:function(){var e=this;this.loading=!0,c(this.userQuery).then((function(t){e.userData=t.data.list,e.userCount=t.data.count,e.loading=!1})).catch((function(){e.loading=!1}))},userSearch:function(){this.userQuery.page=1,this.userList()},userRefresh:function(){this.userQuery=this.$options.data().userQuery,this.userList()},userSort:function(e){this.userQuery.sort_field=e.prop,this.userQuery.sort_type="","ascending"===e.order&&(this.userQuery.sort_type="asc",this.userList()),"descending"===e.order&&(this.userQuery.sort_type="desc",this.userList())},userModelReset:function(){this.userModel=this.$options.data().userModel,void 0!==this.$refs["userRef"]&&this.$refs["userRef"].resetFields()},regionChange:function(e){e&&(this.userModel.region_id=e[e.length-1])},userAddition:function(){var e=this;this.userDialog=!0,this.userDialogTitle="用户添加",u().then((function(t){e.regionTree=t.data.region_tree})),this.userModelReset()},userModify:function(e){var t=this;this.userDialog=!0,this.userDialogTitle="用户修改:"+e.username,d({user_id:e.user_id}).then((function(e){t.userModel=e.data.user_info,t.regionTree=e.data.region_tree}))},uploadBefore:function(e){this.uploadData.user_id=this.userModel.user_id},uploadSuccess:function(e,t){200===e.code?(this.userModel.avatar=e.data.avatar,this.$message.success(e.msg)):this.$message.error(e.msg)},userDelete:function(e){var t=this;this.$confirm('确定要删除用户 <span style="color:red">'+e.username+" </span>吗?","删除:"+e.user_id,{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,m({user_id:e.user_id}).then((function(e){t.userList(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))})).catch((function(){}))},userIsProhibit:function(e){var t=this;this.loading=!0,f(e).then((function(e){t.userList(),t.$message.success(e.msg)})).catch((function(){t.userList()}))},userPassword:function(e){this.userPwdDialog=!0,this.userModel.user_id=e.user_id,this.userModel.username=e.username,this.userModel.nickname=e.nickname,this.userModel.password=""},userCancelPwd:function(){this.userPwdDialog=!1,this.userModelReset()},userSubmitPwd:function(){var e=this;this.$refs["userPwdRef"].validate((function(t){t&&(e.loading=!0,p({user_id:e.userModel.user_id,password:e.userModel.password}).then((function(t){e.userList(),e.userPwdDialog=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))},userCancel:function(){this.userModelReset(),this.userDialog=!1},userSubmit:function(){var e=this;this.$refs["userRef"].validate((function(t){t&&(e.loading=!0,e.userModel.user_id?d(e.userModel,"post").then((function(t){e.userList(),e.userDialog=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})):u(e.userModel,"post").then((function(t){e.userList(),e.userDialog=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))}}},g=h,b=a("2877"),v=Object(b["a"])(g,i,l,!1,null,null,null);t["default"]=v.exports},bca3:function(e,t,a){"use strict";a("14c1")},c089:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"app-container"},[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loadNum,expression:"loadNum"}],staticClass:"box-card"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{sm:24,md:12}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("总计")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"el-icon-odometer icon"})]),a("el-col",{attrs:{span:12}},[e._v(" "+e._s(e.number.total)+" ")])],1)],1)])],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{sm:12}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("今天")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"el-icon-odometer icon"})]),a("el-col",{attrs:{span:12}},[e._v(" "+e._s(e.number.today)+" ")])],1)],1)])],1),a("el-col",{attrs:{sm:12}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("昨天")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"el-icon-odometer icon"})]),a("el-col",{attrs:{span:12}},[e._v(" "+e._s(e.number.yesterday)+" ")])],1)],1)])],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{sm:12}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("本周")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"el-icon-odometer icon"})]),a("el-col",{attrs:{span:12}},[e._v(" "+e._s(e.number.thisweek)+" ")])],1)],1)])],1),a("el-col",{attrs:{sm:12}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("上周")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"el-icon-odometer icon"})]),a("el-col",{attrs:{span:12}},[e._v(" "+e._s(e.number.lastweek)+" ")])],1)],1)])],1)],1),a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{sm:12}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("本月")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"el-icon-odometer icon"})]),a("el-col",{attrs:{span:12}},[e._v(" "+e._s(e.number.thismonth)+" ")])],1)],1)])],1),a("el-col",{attrs:{sm:12}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("上月")])]),a("div",{staticClass:"text item"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"el-icon-odometer icon"})]),a("el-col",{attrs:{span:12}},[e._v(" "+e._s(e.number.lastmonth)+" ")])],1)],1)])],1)],1)],1)],1),a("div",{staticClass:"app-container"},[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loadDate,expression:"loadDate"}],staticClass:"box-card"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{sm:24}},[a("el-date-picker",{staticStyle:{"max-width":"280px"},attrs:{type:"daterange","range-separator":"-","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:function(t){return e.echartDateChange()}},model:{value:e.date.date,callback:function(t){e.$set(e.date,"date",t)},expression:"date.date"}})],1)],1),a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{sm:24}},[a("div",{style:{height:e.height+"px"},attrs:{id:"echartDate"}})])],1)],1)],1),a("div",{staticClass:"app-container"},[a("el-card",{staticClass:"box-card"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{sm:24,md:8}},[a("el-date-picker",{staticStyle:{"max-width":"280px"},attrs:{type:"daterange","range-separator":"-","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:function(t){return e.echartRegionChange()}},model:{value:e.region.date,callback:function(t){e.$set(e.region,"date",t)},expression:"region.date"}})],1),a("el-col",{attrs:{sm:24,md:16}},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:function(t){return e.echartRegionChange()}},model:{value:e.regionValue,callback:function(t){e.regionValue=t},expression:"regionValue"}},e._l(e.regionType,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),a("el-divider"),a("el-row",{directives:[{name:"loading",rawName:"v-loading",value:e.loadRegion,expression:"loadRegion"}],attrs:{gutter:0}},[a("el-col",{attrs:{sm:24}},[a("div",{style:{height:e.height+"px"},attrs:{id:"echartRegionLine"}})])],1),a("el-divider"),a("el-row",{directives:[{name:"loading",rawName:"v-loading",value:e.loadRegion,expression:"loadRegion"}],attrs:{gutter:0}},[a("el-col",{attrs:{sm:24}},[a("div",{style:{height:e.height+"px"},attrs:{id:"echartRegionPie"}})])],1)],1)],1),a("back-to-top",{attrs:{"transition-name":"fade"}})],1)},l=[],o=a("0625"),n=a("50fc"),r=a("3eba");a("ef97"),a("94b1"),a("c037"),a("007d"),a("d28f"),a("627c");var s={name:"Logsta",components:{BackToTop:o["a"]},data:function(){return{height:680,loadNum:!1,loadDate:!1,loadRegion:!1,number:{total:"--",today:"--",yesterday:"--",thisweek:"--",lastweek:"--",thismonth:"--",lastmonth:"--"},date:{x_data:[],y_data:[],date:[]},region:{x_data:[],y_data:[],date:[]},regionType:[{value:"country",label:"国家"},{value:"province",label:"省份"},{value:"city",label:"城市"},{value:"isp",label:"ISP"}],regionValue:"city",regionLabel:"城市"}},computed:{},created:function(){this.logStatistic()},mounted:function(){},methods:{logStatistic:function(){var e=this;this.loadNum=!0,Object(n["U"])().then((function(t){e.number=t.data.number,e.date=t.data.date,e.region=t.data.region,e.echartDate(t.data.date),e.echartRegionLine(t.data.region),e.echartRegionPie(t.data.region),e.loadNum=!1})).catch((function(){e.loadNum=!1}))},echartDateChange:function(){var e=this;this.loadDate=!0,Object(n["U"])({type:"date",date:this.date.date}).then((function(t){e.echartDate(t.data.date),e.loadDate=!1})).catch((function(){e.loadDate=!1}))},echartRegionChange:function(e){var t=this;this.loadRegion=!0,Object(n["U"])({type:"region",date:this.region.date,region:this.regionValue}).then((function(e){t.echartRegionLine(e.data.region),t.echartRegionPie(e.data.region),t.loadRegion=!1})).catch((function(){t.loadRegion=!1}))},echartDate:function(e){var t=r.init(document.getElementById("echartDate")),a={title:{text:"",left:"center",textStyle:{color:"#666",fontSize:14}},color:["#3398DB"],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:e.x_data},yAxis:{type:"value"},series:[{data:e.y_data,type:"line",areaStyle:{}}]};t.setOption(a)},echartRegionLine:function(e){var t=r.init(document.getElementById("echartRegionLine")),a={title:{text:"",left:"center",textStyle:{color:"#666",fontSize:14}},color:["#3398DB"],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:e.x_data,axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value"}],series:[{name:"",type:"bar",barWidth:"60%",data:e.y_data}]};t.setOption(a)},echartRegionPie:function(e){var t=r.init(document.getElementById("echartRegionPie")),a={title:{text:"",left:"center",textStyle:{color:"#666",fontSize:14}},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"3%",top:"20px"},series:[{name:"",type:"pie",radius:"55%",center:["50%","60%"],data:e.p_data,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};t.setOption(a)}}},c=s,u=(a("bca3"),a("2877")),d=Object(u["a"])(c,i,l,!1,null,"7a863938",null);t["default"]=d.exports},c48a:function(e,t,a){},c7d6:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticStyle:{float:"left"}},[a("div",{staticStyle:{"margin-right":"10px",float:"left"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"",clearable:""},model:{value:e.query.name,callback:function(t){e.$set(e.query,"name",t)},expression:"query.name"}})],1),a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")])],1),a("div",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addition("")}}},[e._v("添加")])],1)]),a("el-form",{attrs:{model:e.form}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.form.data,height:e.height,border:""}},[a("el-table-column",{attrs:{prop:"adv_data_id",label:"ID","min-width":"100",fixed:"left"}}),a("el-table-column",{attrs:{prop:"name",label:"名称","min-width":"120"}}),a("el-table-column",{attrs:{prop:"adv.name",label:"所属广告位","min-width":"120"}}),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"120"}}),e._v(" px "),a("el-table-column",{attrs:{label:"操作","min-width":"110",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.modify(i)}}},[e._v("修改")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.remove(i)}}},[e._v("删除")])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.AdvDataList}}),a("el-dialog",{attrs:{title:e.dataDialogTitle,visible:e.dataDialog,width:"65%",top:"1vh","before-close":e.cancel},on:{"update:visible":function(t){e.dataDialog=t}}},[a("el-form",{ref:"memberRef",staticClass:"dialog-body",style:{height:e.height+50+"px"},attrs:{model:e.model,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"广告位名称",prop:"name"}},[a("el-input",{key:"name",attrs:{placeholder:"",clearable:""},model:{value:e.model.name,callback:function(t){e.$set(e.model,"name",t)},expression:"model.name"}})],1),a("el-form-item",{attrs:{label:"所属广告位"}},[a("el-select",{attrs:{type:"number",placeholder:"请选择"},model:{value:e.query.ap_id,callback:function(t){e.$set(e.query,"ap_id",e._n(t))},expression:"query.ap_id"}},e._l(e.adv_all,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:Number(e.id)}})})),1)],1),a("el-form-item",{attrs:{label:"排序"}},[a("el-input-number",{attrs:{min:1,max:1e6,label:""},model:{value:e.model.sort,callback:function(t){e.$set(e.model,"sort",t)},expression:"model.sort"}})],1),a("el-form-item",{attrs:{label:"链接地址",prop:"url"}},[a("el-input",{key:"name",attrs:{placeholder:"",clearable:""},model:{value:e.model.url,callback:function(t){e.$set(e.model,"url",t)},expression:"model.url"}})],1),a("el-form-item",{attrs:{label:"描述",prop:"summary"}},[a("el-input",{attrs:{type:"textarea",row:"2",placeholder:"",clearable:""},model:{value:e.model.summary,callback:function(t){e.$set(e.model,"summary",t)},expression:"model.summary"}})],1),a("el-form-item",{attrs:{label:"封面图"}},[a("Upload",{attrs:{"img-url":e.model.filename},on:{callback:function(t){e.model.filename=t}},model:{value:e.model.filename,callback:function(t){e.$set(e.model,"filename",t)},expression:"model.filename"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("提交")])],1)],1)],1)},l=[],o=(a("b0c0"),a("98b1")),n=a("333d"),r=a("50fc"),s=a("d443"),c=(a("ed08"),{name:"advAdd",components:{Pagination:n["a"],Upload:s["a"]},data:function(){return{this_:this,ap_id:"",height:680,loading:!1,form:{data:[]},count:0,query:{page:1,limit:13,ap_id:0},dataDialog:!1,dataDialogTitle:"",model:{adv_data_id:0,ap_id:0,name:"",sort:1,url:"",filename:"",summary:""},rules:{name:[{required:!0,message:"名称不能为空",trigger:"blur"}]},adv_all:[]}},created:function(){this.height=Object(o["a"])(),this.query.ap_id=parseInt(this.$route.query.ap_id),this.model.ap_id=this.$route.query.ap_id,this.AdvDataList(),this.AdvGetAll()},methods:{AdvGetAll:function(){var e=this;Object(r["h"])().then((function(t){e.adv_all=t.data})).catch((function(){e.loading=!1}))},AdvDataList:function(){var e=this;this.loading=!0,Object(r["e"])(this.query).then((function(t){e.form.data=t.data.data,e.count=t.data.total,e.loading=!1})).catch((function(){e.loading=!1}))},showImage:function(e){return Object({VUE_APP_BASE_API:"http://yl.jnbinzang.com/backend.php",NODE_ENV:"production",BASE_URL:"/admin1131/"}).VUE_APP_IMAGE_URL+e},search:function(){this.query.page=1,this.AdvDataList()},reset:function(){this.AdvDataList()},modelReset:function(){this.model=this.$options.data().model,void 0!==this.$refs["memberRef"]&&this.$refs["memberRef"].resetFields()},addition:function(){this.dataDialog=!0,this.dataDialogTitle="广告添加",this.modelReset()},modify:function(e){var t=this;this.dataDialogTitle="广告修改:"+e.name,Object(r["d"])({adv_data_id:e.adv_data_id}).then((function(e){t.model=e.data,t.dataDialog=!0}))},remove:function(e){var t=this;this.$confirm('确定要删除广告位 <span style="color:red">'+e.name+" </span>吗?","广告位删除确认",{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(r["c"])({adv_data_id:e.adv_data_id}).then((function(e){t.$message({message:e.msg,type:"success"}),t.AdvDataList()})).catch((function(){t.loading=!1}))}))},cancel:function(){this.reset(),this.dataDialog=!1},goBack:function(){this.$store.dispatch("tagsView/delView",this.$route),window.history.back()},submit:function(){var e=this;this.$refs["memberRef"].validate((function(t){if(t){e.loading=!0,e.model.ap_id=e.query.ap_id;var a=e.model;a.adv_data_id?Object(r["d"])(a,"post").then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.AdvDataList()})).catch((function(){e.loading=!1})):Object(r["b"])(a).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.AdvDataList()})).catch((function(){e.loading=!1}))}}))}},filters:{}}),u=c,d=(a("fa54"),a("2877")),m=Object(d["a"])(u,i,l,!1,null,null,null);t["default"]=m.exports},c93e:function(e,t,a){},cb5a:function(e,t,a){"use strict";a("9a28")},cfc6:function(e,t,a){},cfcd:function(e){e.exports=JSON.parse('["platform-eleme","eleme","delete-solid","delete","s-tools","setting","user-solid","user","phone","phone-outline","more","more-outline","star-on","star-off","s-goods","goods","warning","warning-outline","question","info","remove","circle-plus","success","error","zoom-in","zoom-out","remove-outline","circle-plus-outline","circle-check","circle-close","s-help","help","minus","plus","check","close","picture","picture-outline","picture-outline-round","upload","upload2","download","camera-solid","camera","video-camera-solid","video-camera","message-solid","bell","s-cooperation","s-order","s-platform","s-fold","s-unfold","s-operation","s-promotion","s-home","s-release","s-ticket","s-management","s-open","s-shop","s-marketing","s-flag","s-comment","s-finance","s-claim","s-custom","s-opportunity","s-data","s-check","s-grid","menu","share","d-caret","caret-left","caret-right","caret-bottom","caret-top","bottom-left","bottom-right","back","right","bottom","top","top-left","top-right","arrow-left","arrow-right","arrow-down","arrow-up","d-arrow-left","d-arrow-right","video-pause","video-play","refresh","refresh-right","refresh-left","finished","sort","sort-up","sort-down","rank","loading","view","c-scale-to-original","date","edit","edit-outline","folder","folder-opened","folder-add","folder-remove","folder-delete","folder-checked","tickets","document-remove","document-delete","document-copy","document-checked","document","document-add","printer","paperclip","takeaway-box","search","monitor","attract","mobile","scissors","umbrella","headset","brush","mouse","coordinate","magic-stick","reading","data-line","data-board","pie-chart","data-analysis","collection-tag","film","suitcase","suitcase-1","receiving","collection","files","notebook-1","notebook-2","toilet-paper","office-building","school","table-lamp","house","no-smoking","smoking","shopping-cart-full","shopping-cart-1","shopping-cart-2","shopping-bag-1","shopping-bag-2","sold-out","sell","present","box","bank-card","money","coin","wallet","discount","price-tag","news","guide","male","female","thumb","cpu","link","connection","open","turn-off","set-up","chat-round","chat-line-round","chat-square","chat-dot-round","chat-dot-square","chat-line-square","message","postcard","position","turn-off-microphone","microphone","close-notification","bangzhu","time","odometer","crop","aim","switch-button","full-screen","copy-document","mic","stopwatch","medal-1","medal","trophy","trophy-1","first-aid-kit","discover","place","location","location-outline","location-information","add-location","delete-location","map-location","alarm-clock","timer","watch-1","watch","lock","unlock","key","service","mobile-phone","bicycle","truck","ship","basketball","football","soccer","baseball","wind-power","light-rain","lightning","heavy-rain","sunrise","sunrise-1","sunset","sunny","cloudy","partly-cloudy","cloudy-and-sunny","moon","moon-night","dish","dish-1","food","chicken","fork-spoon","knife-fork","burger","tableware","sugar","dessert","ice-cream","hot-water","water-cup","coffee-cup","cold-drink","goblet","goblet-full","goblet-square","goblet-square-full","refrigerator","grape","watermelon","cherry","apple","pear","orange","coffee","ice-tea","ice-drink","milk-tea","potato-strips","lollipop","ice-cream-square","ice-cream-round"]')},d09b:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-tabs",{model:{value:e.toolTabName,callback:function(t){e.toolTabName=t},expression:"toolTabName"}},[e.checkPermission(["admin/AdminTool/strRand","admin/AdminTool/strTran"])?a("el-tab-pane",{attrs:{label:"字符串",name:"string"}},[a("el-row",{attrs:{gutter:8}},[a("el-col",{directives:[{name:"permission",rawName:"v-permission",value:["admin/AdminTool/strRand"],expression:"['admin/AdminTool/strRand']"}],attrs:{xs:24,sm:12}},[a("div",{staticClass:" filter-container"},[a("mix-str-rand")],1)]),a("el-col",{directives:[{name:"permission",rawName:"v-permission",value:["admin/AdminTool/strTran"],expression:"['admin/AdminTool/strTran']"}],attrs:{xs:24,sm:12}},[a("div",{staticClass:"filter-container"},[a("mix-str-tran")],1)])],1)],1):e._e(),e.checkPermission(["admin/AdminTool/timeTran"])?a("el-tab-pane",{attrs:{label:"时间戳",name:"timestamp"}},[a("el-row",{attrs:{gutter:8}},[a("el-col",{attrs:{xs:24,sm:12}},[a("div",{staticClass:"filter-container"},[a("mix-time-tran")],1)])],1)],1):e._e(),e.checkPermission(["admin/AdminTool/qrcode"])?a("el-tab-pane",{attrs:{label:"二维码",name:"qrcode"}},[a("el-row",{attrs:{gutter:8}},[a("el-col",{attrs:{xs:24,sm:12}},[a("div",{staticClass:"filter-container"},[a("mix-qrcode")],1)])],1)],1):e._e(),e.checkPermission(["admin/AdminTool/byteTran"])?a("el-tab-pane",{attrs:{label:"字节转换",name:"byte"}},[a("el-row",{attrs:{gutter:8}},[a("el-col",{attrs:{xs:24,sm:12}},[a("div",{staticClass:"filter-container"},[a("mix-byte-tran")],1)])],1)],1):e._e(),e.checkPermission(["admin/AdminTool/admin/AdminTool/ipQuery"])?a("el-tab-pane",{attrs:{label:"IP查询",name:"ip"}},[a("el-row",{attrs:{gutter:8}},[a("el-col",{attrs:{xs:24,sm:12}},[a("div",{staticClass:"filter-container"},[a("mix-ip-query")],1)])],1)],1):e._e()],1)],1)},l=[],o=a("e350"),n=a("4381"),r=a("b124"),s=a("71fd"),c=a("ae85"),u=a("6245"),d=a("f91d"),m=a("2862"),p={name:"ToolMix",directives:{permission:n["a"]},components:{MixStrTran:r["default"],MixStrRand:s["default"],MixTimeTran:c["default"],MixQrcode:u["default"],MixByteTran:d["default"],MixIpQuery:m["default"]},data:function(){return{toolTabName:"string"}},created:function(){},methods:{checkPermission:o["a"]}},f=p,h=a("2877"),g=Object(h["a"])(f,i,l,!1,null,null,null);t["default"]=g.exports},d0b7:function(e,t,a){"use strict";a("c93e")},d185:function(e,t,a){"use strict";a("1adf")},d3e5:function(e,t,a){},d443:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"about"},[a("el-upload",{staticClass:"avatar-uploader",class:{disabled:e.uploadDisabled},attrs:{action:e.uploadAction,"list-type":"picture-card","file-list":e.list,headers:e.uploadHeaders,name:"file","on-success":e.uploadsSuccess,"on-error":e.uploadsError,"on-remove":e.handleRemove,"on-preview":e.handlePictureCardPreview},scopedSlots:e._u([{key:"file",fn:function(t){var i=t.file;return a("div",{},["video"==i.ext?a("span",[a("video",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:i.url,fit:"contain"}})]):"image"==i.ext?a("span",[a("el-image",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:i.url,fit:"contain"}})],1):"excel"==i.ext?a("span",[a("el-image",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:"../static/img/download.jpg",fit:"contain"}})],1):"radio"==i.ext?a("span",[a("el-image",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:"../static/img/music.jpg",fit:"contain"}})],1):e._e(),a("span",{staticClass:"el-upload-list__item-actions"},[a("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(i)}}},[a("i",{staticClass:"el-icon-delete"})]),a("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handlePictureCardPreview(i)}}},[a("i",{staticClass:"el-icon-zoom-in"})])])])}}])},[a("i",{staticClass:"el-icon-plus"})]),a("el-dialog",{attrs:{visible:e.dialogVisible,modal:!1},on:{"update:visible":function(t){e.dialogVisible=t}}},["image"==e.dialogImageExt?a("div",[a("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})]):"video"==e.dialogImageExt?a("div",[a("video",{staticStyle:{},attrs:{src:e.dialogImageUrl,width:"100%",controls:"controls"}},[e._v("您的浏览器不支持视频播放")])]):a("div",[e._v(" 跳转走 ")])])],1)},l=[],o=(a("14d9"),a("5f87"));a("d3b7");function n(e){var t="",a="";try{var i=e.split(".");t=i[i.length-1]}catch(m){t=""}if(!t)return a=!1,a;var l=["png","jpg","jpeg","bmp","gif"];if(a=l.some((function(e){return e==t})),a)return a="image",a;var o=["txt"];if(a=o.some((function(e){return e==t})),a)return a="txt",a;var n=["xls","xlsx"];if(a=n.some((function(e){return e==t})),a)return a="excel",a;var r=["doc","docx"];if(a=r.some((function(e){return e==t})),a)return a="word",a;var s=["pdf"];if(a=s.some((function(e){return e==t})),a)return a="pdf",a;var c=["ppt"];if(a=c.some((function(e){return e==t})),a)return a="ppt",a;var u=["mp4","m2v","mkv"];if(a=u.some((function(e){return e==t})),a)return a="video",a;var d=["mp3","wav","wmv"];return a=d.some((function(e){return e==t})),a?(a="radio",a):(a="other",a)}var r=a("50fc"),s={name:"Upload",data:function(){return{uploadAction:"http://yl.jnbinzang.com/backend.php/Upload/index",uploadHeaders:{AdminToken:Object(o["f"])(),AdminUserId:Object(o["g"])()},dialogImageUrl:"",dialogImageExt:"",dialogVisible:!1,list:[]}},props:{imgUrl:{type:[String],default:function(){return""}},name:{type:Boolean,default:!1}},watch:{imgUrl:function(e){e?this.appendImgUrl(e):this.list=[]}},created:function(){this.imgUrl&&this.appendImgUrl(this.imgUrl)},computed:{uploadDisabled:function(){return this.list.length>0}},methods:{appendImgUrl:function(e){this.list=[];var t={url:this.imgUrl,ext:n(this.imgUrl)};this.list.push(t)},handleRemove:function(e){this.list=[],this.dialogImageUrl="",Object(r["hc"])({hash:e.url}),this.go()},handlePictureCardPreview:function(e){"image"==e.ext||"video"==e.ext?(this.dialogImageUrl=e.url,this.dialogImageExt=e.ext,this.dialogVisible=!0):window.open(e.url,"_blank")},uploadsSuccess:function(e,t){if(200===e.code){var a={savename:e.data.savename,url:e.data.url,ext:e.data.ext,hash:e.data.hash};this.list.push(a),this.$message({message:e.msg,type:"success"}),this.dialogImageUrl=e.data.url,this.go()}else this.$message({message:e.msg,type:"error"})},uploadsError:function(e,t){this.$message({message:e,type:"error"})},go:function(){this.$emit("callback",this.dialogImageUrl)}}},c=s,u=(a("7f30"),a("2877")),d=Object(u["a"])(c,i,l,!1,null,null,null);t["a"]=d.exports},d573:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-row",[a("el-col",{staticClass:"yyl-center yyl-top",attrs:{span:12,offset:6}},[a("el-image",{staticStyle:{width:"600px"},attrs:{src:e.error404,fit:"contain"}})],1)],1),a("el-row",[a("el-col",{staticClass:"yyl-center yyl-top",attrs:{span:6,offset:6}},[a("el-button",{attrs:{icon:"el-icon-arrow-left"},on:{click:e.back}},[e._v("返回")])],1),a("el-col",{staticClass:"yyl-center yyl-top",attrs:{span:6}},[a("el-button",{attrs:{icon:"el-icon-s-home"},on:{click:e.dashboard}},[e._v("控制台")])],1)],1)],1)},l=[],o=(a("14d9"),a("4f18")),n=a.n(o),r={name:"Error404",data:function(){return{error404:n.a}},methods:{back:function(){this.$route.query.noGoBack,this.$router.push({path:"/dashboard"})},dashboard:function(){this.$router.push({path:"/dashboard"})}}},s=r,c=(a("86c1"),a("2877")),u=Object(c["a"])(s,i,l,!1,null,"1e3c97a6",null);t["default"]=u.exports},d78b:function(e,t,a){},dd08:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{xs:24,sm:22}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"名称",clearable:""},model:{value:e.apiEnvQuery.name,callback:function(t){e.$set(e.apiEnvQuery,"name",t)},expression:"apiEnvQuery.name"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"300px"},attrs:{placeholder:"Host",clearable:""},model:{value:e.apiEnvQuery.host,callback:function(t){e.$set(e.apiEnvQuery,"host",t)},expression:"apiEnvQuery.host"}}),a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.apiEnvSearch()}}},[e._v("查询")]),a("el-button",{staticClass:"filter-item",on:{click:function(t){return e.apiEnvRefresh()}}},[e._v("刷新")])],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{xs:24,sm:2}},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.apiEnvAddition()}}},[e._v("添加")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"apiEnvTableRef",staticStyle:{width:"100%"},attrs:{data:e.apiEnvData,height:e.height,border:""},on:{"sort-change":e.apiEnvSort}},[a("el-table-column",{attrs:{prop:"api_env_id",label:"ID","min-width":"100",sortable:"custom",fixed:"left"}}),a("el-table-column",{attrs:{prop:"name",label:"名称","min-width":"180"}}),a("el-table-column",{attrs:{prop:"host",label:"Host","min-width":"320","show-overflow-tooltip":""}},[a("template",{slot:"header"},[a("span",[e._v("Host ")]),a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v(" Host与接口链接组成完整的接口URL,如:"),a("br"),a("br"),e._v(" Host:https://api.yyladmin.top"),a("br"),a("br"),e._v(" 接口链接:index/Login/login"),a("br"),a("br"),e._v(" 接口URL:https://api.yyladmin.top/index/Login/login ")]),a("i",{staticClass:"el-icon-info",attrs:{title:""}})])],1)],2),a("el-table-column",{attrs:{prop:"header",label:"Header","min-width":"250","show-overflow-tooltip":""}},[a("template",{slot:"header"},[a("span",[e._v("Header ")]),a("el-tooltip",{attrs:{placement:"top",content:"请求头部自定义字段,如token"}},[a("i",{staticClass:"el-icon-info",attrs:{title:""}})])],1)],2),a("el-table-column",{attrs:{prop:"remark",label:"备注","min-width":"180","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"100",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"create_time",label:"添加时间","min-width":"160",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"update_time",label:"修改时间","min-width":"160",sortable:"custom"}}),a("el-table-column",{attrs:{label:"操作","min-width":"160",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(t){return e.apiEnvModify(i)}}},[e._v("修改")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.apiEnvDelete(i)}}},[e._v("删除")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.apiEnvCount>0,expression:"apiEnvCount > 0"}],attrs:{total:e.apiEnvCount,page:e.apiEnvQuery.page,limit:e.apiEnvQuery.limit},on:{"update:page":function(t){return e.$set(e.apiEnvQuery,"page",t)},"update:limit":function(t){return e.$set(e.apiEnvQuery,"limit",t)},pagination:e.apiEnvList}}),a("el-dialog",{attrs:{title:e.apiEnvDialogTitle,visible:e.apiEnvDialog,top:"1vh","before-close":e.apiEnvCancel},on:{"update:visible":function(t){e.apiEnvDialog=t}}},[a("el-form",{ref:"apiEnvRef",staticClass:"dialog-body",style:{height:e.height+30+"px"},attrs:{rules:e.apiEnvRules,model:e.apiEnvModel,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"名称",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入接口环境名称",clearable:""},model:{value:e.apiEnvModel.name,callback:function(t){e.$set(e.apiEnvModel,"name",t)},expression:"apiEnvModel.name"}})],1),a("el-form-item",{attrs:{label:"Host",prop:"host"}},[a("el-input",{attrs:{placeholder:"请输入接口环境Host",clearable:""},model:{value:e.apiEnvModel.host,callback:function(t){e.$set(e.apiEnvModel,"host",t)},expression:"apiEnvModel.host"}})],1),a("el-form-item",{attrs:{label:"Header",prop:"header"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请求头部自定义字段",clearable:""},model:{value:e.apiEnvModel.header,callback:function(t){e.$set(e.apiEnvModel,"header",t)},expression:"apiEnvModel.header"}})],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{placeholder:"接口环境备注",clearable:""},model:{value:e.apiEnvModel.remark,callback:function(t){e.$set(e.apiEnvModel,"remark",t)},expression:"apiEnvModel.remark"}})],1),a("el-form-item",{attrs:{label:"排序",prop:"sort"}},[a("el-input",{attrs:{type:"number",placeholder:"200"},model:{value:e.apiEnvModel.sort,callback:function(t){e.$set(e.apiEnvModel,"sort",t)},expression:"apiEnvModel.sort"}})],1),e.apiEnvModel.api_env_id?a("el-form-item",{attrs:{label:"添加时间",prop:"create_time"}},[a("el-input",{attrs:{placeholder:"",disabled:""},model:{value:e.apiEnvModel.create_time,callback:function(t){e.$set(e.apiEnvModel,"create_time",t)},expression:"apiEnvModel.create_time"}})],1):e._e(),e.apiEnvModel.api_env_id?a("el-form-item",{attrs:{label:"修改时间",prop:"update_time"}},[a("el-input",{attrs:{placeholder:"",disabled:""},model:{value:e.apiEnvModel.update_time,callback:function(t){e.$set(e.apiEnvModel,"update_time",t)},expression:"apiEnvModel.update_time"}})],1):e._e()],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.apiEnvCancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.apiEnvSubmit}},[e._v("提交")])],1)],1)],1)},l=[],o=(a("b0c0"),a("98b1")),n=a("333d"),r=a("b775");function s(e){return Object(r["a"])({url:"/admin/ApiEnv/apiEnvList",method:"get",params:e})}function c(e){return Object(r["a"])({url:"/admin/ApiEnv/apiEnvAdd",method:"post",data:e})}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get";return"get"===t?Object(r["a"])({url:"/admin/ApiEnv/apiEnvEdit",method:"get",params:e}):Object(r["a"])({url:"/admin/ApiEnv/apiEnvEdit",method:"post",data:e})}function d(e){return Object(r["a"])({url:"/admin/ApiEnv/apiEnvDele",method:"post",data:e})}var m={name:"ApiEnv",components:{Pagination:n["a"]},data:function(){return{height:680,loading:!1,apiEnvDialog:!1,apiEnvDialogTitle:"",apiEnvData:[],apiEnvCount:0,apiEnvQuery:{page:1,limit:13},apiEnvModel:{api_env_id:"",name:"",host:"",header:"",remark:"",sort:200},apiEnvRules:{name:[{required:!0,message:"请输入接口环境名称",trigger:"blur"}],host:[{required:!0,message:"请输入接口环境Host",trigger:"blur"}]}}},created:function(){this.height=Object(o["a"])(),this.apiEnvList()},methods:{apiEnvList:function(){var e=this;this.loading=!0,s(this.apiEnvQuery).then((function(t){e.apiEnvData=t.data.list,e.apiEnvCount=t.data.count,e.loading=!1,e.$nextTick((function(){e.$refs["apiEnvTableRef"].doLayout()}))})).catch((function(){e.loading=!1}))},apiEnvSearch:function(){this.apiEnvQuery.page=1,this.apiEnvList()},apiEnvRefresh:function(){this.apiEnvQuery=this.$options.data().apiEnvQuery,this.apiEnvList()},apiEnvSort:function(e){this.apiEnvQuery.sort_field=e.prop,this.apiEnvQuery.sort_type="","ascending"===e.order&&(this.apiEnvQuery.sort_type="asc",this.apiEnvList()),"descending"===e.order&&(this.apiEnvQuery.sort_type="desc",this.apiEnvList())},apiEnvAddition:function(){this.apiEnvDialog=!0,this.apiEnvReset()},apiEnvModify:function(e){var t=this;this.apiEnvDialog=!0,u({api_env_id:e.api_env_id}).then((function(e){t.apiEnvReset(e.data)}))},apiEnvReset:function(e){e?(this.apiEnvModel=e,this.apiEnvDialogTitle="接口环境修改:"+e.name):(this.apiEnvModel=this.$options.data().apiEnvModel,this.apiEnvDialogTitle="接口环境添加"),void 0!==this.$refs["apiEnvRef"]&&this.$refs["apiEnvRef"].resetFields()},apiEnvCancel:function(){this.apiEnvDialog=!1,this.apiEnvReset()},apiEnvSubmit:function(){var e=this;this.$refs["apiEnvRef"].validate((function(t){t&&(e.loading=!0,e.apiEnvModel.api_env_id?u(e.apiEnvModel,"post").then((function(t){e.apiEnvList(),e.apiEnvReset(),e.apiEnvDialog=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})):c(e.apiEnvModel).then((function(t){e.apiEnvList(),e.apiEnvReset(),e.apiEnvDialog=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))},apiEnvDelete:function(e){var t=this;this.$confirm('确定要删除接口环境 <span style="color:red">'+e.name+" </span>吗?","删除:"+e.api_env_id,{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,d({api_env_id:e.api_env_id}).then((function(e){t.apiEnvReset(),t.apiEnvList(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))})).catch((function(){}))}}},p=m,f=(a("1c56"),a("2877")),h=Object(f["a"])(p,i,l,!1,null,"2219930a",null);t["default"]=h.exports},dec9:function(e,t,a){"use strict";a.d(t,"c",(function(){return l})),a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return n})),a.d(t,"d",(function(){return r}));var i=a("b775");function l(e){return Object(i["a"])({url:"/admin/UserLog/userLogList",method:"get",params:e})}function o(e){return Object(i["a"])({url:"/admin/UserLog/userLogInfo",method:"get",params:e})}function n(e){return Object(i["a"])({url:"/admin/UserLog/userLogDele",method:"post",data:e})}function r(e){return Object(i["a"])({url:"/admin/UserLog/userLogSta",method:"post",data:e})}},dfd3:function(e,t,a){"use strict";a("5379")},dfd4:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addition("")}}},[e._v("添加")])],1)]),a("el-form",{attrs:{model:e.form}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.form.data,height:e.height,border:"","row-key":"cid","default-expand-all":""}},[a("el-table-column",{attrs:{prop:"id",label:"ID","min-width":"30"}}),a("el-table-column",{attrs:{prop:"name",label:"姓名","show-overflow-tooltip":"","min-width":""}}),a("el-table-column",{attrs:{prop:"avatar",label:"头像","min-width":"50"},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row;return[a("img",{staticStyle:{"max-height":"70px","max-width":"70px",padding:"5px"},attrs:{src:t.avatar}})]}}])}),a("el-table-column",{attrs:{prop:"content",label:"内容","show-overflow-tooltip":"","min-width":""}}),a("el-table-column",{attrs:{prop:"sort",label:"创建时间","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(e._f("parseTime")(a.create_time))+" ")]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"80",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.modify(i)}}},[e._v("修改")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.remove(i)}}},[e._v("删除")])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.commentList}}),a("el-dialog",{attrs:{title:e.dataDialogTitle,visible:e.dataDialog,width:"65%",top:"1vh","before-close":e.cancel},on:{"update:visible":function(t){e.dataDialog=t}}},[a("el-form",{ref:"memberRef",staticClass:"dialog-body",attrs:{model:e.model,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"选择养老院"}},[a("el-select",{attrs:{filterable:"",placeholder:"请选择"},model:{value:e.model.table_id,callback:function(t){e.$set(e.model,"table_id",t)},expression:"model.table_id"}},e._l(e.lists,(function(e,t){return a("el-option",{key:e.nid,attrs:{label:e.title,value:Number(e.nid)}})})),1)],1),a("el-form-item",{attrs:{label:"姓名",prop:"name"}},[a("el-input",{key:"name",attrs:{placeholder:"",clearable:""},model:{value:e.model.name,callback:function(t){e.$set(e.model,"name",t)},expression:"model.name"}})],1),a("el-form-item",{attrs:{label:"头像"}},[a("Upload",{attrs:{"img-url":e.model.avatar},on:{callback:function(t){e.model.avatar=t}},model:{value:e.model.avatar,callback:function(t){e.$set(e.model,"avatar",t)},expression:"model.avatar"}})],1),a("el-form-item",{attrs:{label:"发布时间"}},[a("el-date-picker",{attrs:{type:"datetime","default-value":"","value-format":"timestamp",placeholder:"选择日期"},model:{value:e.model.create_time,callback:function(t){e.$set(e.model,"create_time",t)},expression:"model.create_time"}})],1),a("el-form-item",{attrs:{label:"内容",prop:"content"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:12},placeholder:"",clearable:""},model:{value:e.model.content,callback:function(t){e.$set(e.model,"content",t)},expression:"model.content"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("提交")])],1)],1)],1)},l=[],o=(a("b0c0"),a("d3b7"),a("159b"),a("4e82"),a("98b1")),n=a("333d"),r=a("50fc"),s=a("0c98"),c=a("d443"),u=a("21c2"),d={name:"comment",components:{Pagination:n["a"],EditorBar:s["a"],Upload:c["a"],Uploads:u["a"]},data:function(){return{this_:this,height:680,loading:!1,form:{data:[]},count:0,query:{page:1,limit:20},type:"",dataDialog:!1,dataDialogTitle:"",menuProps:{checkStrictly:!0,value:"cid",label:"name"},model:{id:"",avatar:"",type:"",content:""},rules:{name:[{required:!0,message:"姓名不能为空",trigger:"blur"}],content:[{required:!0,message:"内容不能为空",trigger:"blur"}]},isClear:!1,lists:[]}},created:function(){this.type=this.$route.name,this.height=Object(o["a"])(),this.commentList(),"sojourn_comment"==this.type?this.sojournAll():this.nursingHomeAll()},methods:{commentList:function(){var e=this;this.loading=!0,this.query.type=this.type,Object(r["D"])(this.query).then((function(t){e.form.data=t.data.data,e.count=t.data.total,e.loading=!1})).catch((function(){e.loading=!1}))},nursingHomeAll:function(){var e=this;Object(r["sb"])().then((function(t){e.lists=t.data})).catch((function(){}))},sojournAll:function(){var e=this;Object(r["Jb"])().then((function(t){e.lists=t.data})).catch((function(){}))},search:function(){this.query.page=1,this.commentList()},reset:function(){this.query={page:1,limit:13},this.commentList()},modelReset:function(){this.model=this.$options.data().model,void 0!==this.$refs["memberRef"]&&this.$refs["memberRef"].resetFields()},addition:function(){this.dataDialog=!0,this.dataDialogTitle="添加",this.modelReset()},modify:function(e){var t=this;this.dataDialogTitle="修改:"+e.name,Object(r["C"])({id:e.id}).then((function(e){t.model=e.data,t.model.create_time=1e3*t.model.create_time,t.dataDialog=!0}))},disable:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"status";this.loading=!0,e.table="Test",e.field=a,Object(r["gc"])(e).then((function(e){t.commentList(),t.$message({message:e.msg,type:"success"})})).catch((function(){t.commentList()}))},remove:function(e){var t=this;this.$confirm('确定要删除 <span style="color:red">'+e.name+" </span>吗?","删除确认",{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(r["B"])({id:e.id}).then((function(e){t.$message({message:e.msg,type:"success"}),t.commentList()})).catch((function(){t.loading=!1}))}))},cancel:function(){this.reset(),this.dataDialog=!1},updateSort:function(){var e=this,t=[],a=this.form.data;a.forEach((function(e,a){var i={id:e.comment_id,sort:e.sort||""};t[a]=i}));var i={data:t,table:"comment"};Object(r["fc"])(i).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.commentList()})).catch((function(){e.loading=!1}))},submit:function(){var e=this;this.$refs["memberRef"].validate((function(t){if(t){e.loading=!0,e.model.table_type=e.type;var a=e.model;a.id?Object(r["C"])(a,"post").then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.commentList()})).catch((function(){e.loading=!1})):Object(r["A"])(a).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.commentList()})).catch((function(){e.loading=!1}))}}))}},filters:{}},m=d,p=(a("cb5a"),a("2877")),f=Object(p["a"])(m,i,l,!1,null,null,null);t["default"]=f.exports},e0d5:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"box-card"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{xs:24,sm:12}},[a("el-form",{ref:"userRef",staticClass:"dialog-body",attrs:{rules:e.userRules,model:e.userModel,"label-width":"100px"}},[e.userModel.admin_user_id&&e.userModel.avatar?a("el-form-item",{attrs:{label:"头像"}},[a("el-avatar",{attrs:{shape:"circle",fit:"contain",size:100,src:e.userModel.avatar}})],1):e._e(),a("el-form-item",{attrs:{label:"账号",prop:"username"}},[a("el-input",{attrs:{placeholder:"请输入账号",clearable:""},model:{value:e.userModel.username,callback:function(t){e.$set(e.userModel,"username",t)},expression:"userModel.username"}})],1),a("el-form-item",{attrs:{label:"昵称",prop:"nickname"}},[a("el-input",{attrs:{placeholder:"请输入昵称",clearable:""},model:{value:e.userModel.nickname,callback:function(t){e.$set(e.userModel,"nickname",t)},expression:"userModel.nickname"}})],1),""==e.userModel.admin_user_id?a("el-form-item",{attrs:{label:"密码",prop:"password"}},[a("el-input",{attrs:{placeholder:"请输入密码",clearable:"","show-password":""},model:{value:e.userModel.password,callback:function(t){e.$set(e.userModel,"password",t)},expression:"userModel.password"}})],1):e._e(),a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{attrs:{clearable:""},model:{value:e.userModel.email,callback:function(t){e.$set(e.userModel,"email",t)},expression:"userModel.email"}})],1),e.userModel.admin_user_id?a("el-form-item",{attrs:{label:"添加时间",prop:"create_time"}},[a("el-input",{attrs:{placeholder:""},model:{value:e.userModel.create_time,callback:function(t){e.$set(e.userModel,"create_time",t)},expression:"userModel.create_time"}})],1):e._e(),e.userModel.admin_user_id?a("el-form-item",{attrs:{label:"更新时间",prop:"update_time"}},[a("el-input",{attrs:{placeholder:""},model:{value:e.userModel.update_time,callback:function(t){e.$set(e.userModel,"update_time",t)},expression:"userModel.update_time"}})],1):e._e(),e.userModel.admin_user_id?a("el-form-item",{attrs:{label:"登录时间",prop:"update_time"}},[a("el-input",{attrs:{placeholder:""},model:{value:e.userModel.login_time,callback:function(t){e.$set(e.userModel,"login_time",t)},expression:"userModel.login_time"}})],1):e._e(),e.userModel.admin_user_id?a("el-form-item",{attrs:{label:"退出时间",prop:"logout_time"}},[a("el-input",{attrs:{placeholder:""},model:{value:e.userModel.logout_time,callback:function(t){e.$set(e.userModel,"logout_time",t)},expression:"userModel.logout_time"}})],1):e._e(),a("el-form-item",[a("el-button",{on:{click:e.userRefresh}},[e._v("刷新")])],1)],1)],1)],1)],1)],1)},l=[],o=a("5f87"),n=a("50fc"),r={name:"MyInfo",components:{},data:function(){return{loading:!1,userModel:{admin_user_id:Object(o["g"])(),username:"",nickname:"",email:"",create_time:"",update_time:"",login_time:"",logout_time:""},userRules:{}}},created:function(){this.myInfo()},methods:{myInfo:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.loading=!0,Object(n["ob"])({admin_user_id:this.userModel.admin_user_id}).then((function(a){e.userModel=a.data,e.loading=!1,t&&e.$message.success(a.msg)})).catch((function(){e.loading=!1}))},userRefresh:function(){this.myInfo(!0)}}},s=r,c=a("2877"),u=Object(c["a"])(s,i,l,!1,null,null,null);t["default"]=u.exports},e1c4:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{xs:24,sm:22}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"账号",clearable:""},model:{value:e.userQuery.username,callback:function(t){e.$set(e.userQuery,"username",t)},expression:"userQuery.username"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"150px"},attrs:{placeholder:"昵称",clearable:""},model:{value:e.userQuery.nickname,callback:function(t){e.$set(e.userQuery,"nickname",t)},expression:"userQuery.nickname"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"250px"},attrs:{placeholder:"邮箱",clearable:""},model:{value:e.userQuery.email,callback:function(t){e.$set(e.userQuery,"email",t)},expression:"userQuery.email"}}),a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.userSearch()}}},[e._v("查询")]),a("el-button",{staticClass:"filter-item",on:{click:function(t){return e.userRefresh()}}},[e._v("刷新")])],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{xs:24,sm:2}},[a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.userAddition()}}},[e._v("添加")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.userData,height:e.height,border:""},on:{"sort-change":e.userSort}},[a("el-table-column",{attrs:{prop:"admin_user_id",label:"管理员ID","min-width":"100",sortable:"custom",fixed:"left"}}),a("el-table-column",{attrs:{prop:"username",label:"账号","min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"nickname",label:"昵称","min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"email",label:"邮箱","min-width":"250",sortable:"custom","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"login_ip",label:"登录IP","min-width":"130",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"login_time",label:"登录时间","min-width":"160",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"login_num",label:"登录次数","min-width":"105",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"sort",label:"排序",width:"80",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"is_admin",label:"超管","min-width":"80",sortable:"custom",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(a){return e.userIsAdmin(t.row)}},model:{value:t.row.is_admin,callback:function(a){e.$set(t.row,"is_admin",a)},expression:"scope.row.is_admin"}})]}}])}),a("el-table-column",{attrs:{prop:"is_disable",label:"禁用","min-width":"80",sortable:"custom",align:"center",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(a){return e.userIsProhibit(t.row)}},model:{value:t.row.is_disable,callback:function(a){e.$set(t.row,"is_disable",a)},expression:"scope.row.is_disable"}})]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"285",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.userEditRule(i)}}},[e._v("权限")]),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.userPassword(i)}}},[e._v("密码")]),a("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(t){return e.userModify(i)}}},[e._v("修改")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.userDelete(i)}}},[e._v("删除")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.userCount>0,expression:"userCount > 0"}],attrs:{total:e.userCount,page:e.userQuery.page,limit:e.userQuery.limit},on:{"update:page":function(t){return e.$set(e.userQuery,"page",t)},"update:limit":function(t){return e.$set(e.userQuery,"limit",t)},pagination:e.userList}}),a("el-dialog",{attrs:{title:e.userDialogTitle,visible:e.userDialog,top:"1vh","before-close":e.userCancel},on:{"update:visible":function(t){e.userDialog=t}}},[a("el-form",{ref:"userRef",staticClass:"dialog-body",style:{height:e.height+30+"px"},attrs:{model:e.userModel,rules:e.userRoles,"label-width":"100px"}},[e.userModel.admin_user_id&&e.userModel.avatar?a("el-form-item",{attrs:{label:"头像",prop:"avatar"}},[a("el-col",{attrs:{span:10}},[a("el-avatar",{attrs:{shape:"circle",fit:"contain",size:100,src:e.userModel.avatar}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:4}}),a("el-col",{attrs:{span:10}},[a("el-upload",{attrs:{name:"avatar_file","show-file-list":!1,"before-upload":e.uploadBefore,action:e.uploadAction,headers:e.uploadHeaders,data:e.uploadData,"on-success":e.uploadSuccess}},[a("el-button",[e._v("更换头像")])],1),a("span",[e._v("jpg、png图片,小于50kb,宽高1:1")])],1)],1):e._e(),a("el-form-item",{attrs:{label:"账号",prop:"username"}},[a("el-input",{key:"username",attrs:{placeholder:"请输入账号",clearable:""},model:{value:e.userModel.username,callback:function(t){e.$set(e.userModel,"username",t)},expression:"userModel.username"}})],1),a("el-form-item",{attrs:{label:"昵称",prop:"nickname"}},[a("el-input",{key:"nickname",attrs:{placeholder:"请输入昵称",clearable:""},model:{value:e.userModel.nickname,callback:function(t){e.$set(e.userModel,"nickname",t)},expression:"userModel.nickname"}})],1),""==e.userModel.admin_user_id?a("el-form-item",{attrs:{label:"密码",prop:"password"}},[a("el-input",{key:"password",attrs:{placeholder:"请输入密码",clearable:"","show-password":""},model:{value:e.userModel.password,callback:function(t){e.$set(e.userModel,"password",t)},expression:"userModel.password"}})],1):e._e(),a("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[a("el-input",{attrs:{clearable:""},model:{value:e.userModel.email,callback:function(t){e.$set(e.userModel,"email",t)},expression:"userModel.email"}})],1),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{clearable:""},model:{value:e.userModel.remark,callback:function(t){e.$set(e.userModel,"remark",t)},expression:"userModel.remark"}})],1),a("el-form-item",{attrs:{label:"排序",prop:"sort"}},[a("el-input",{attrs:{type:"number"},model:{value:e.userModel.sort,callback:function(t){e.$set(e.userModel,"sort",t)},expression:"userModel.sort"}})],1),e.userModel.admin_user_id?a("el-form-item",{attrs:{label:"登录IP",prop:"login_ip"}},[a("el-col",{attrs:{span:10}},[a("el-input",{attrs:{disabled:""},model:{value:e.userModel.login_ip,callback:function(t){e.$set(e.userModel,"login_ip",t)},expression:"userModel.login_ip"}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:4}},[e._v("登录地区")]),a("el-col",{attrs:{span:10}},[a("el-input",{attrs:{disabled:""},model:{value:e.userModel.login_region,callback:function(t){e.$set(e.userModel,"login_region",t)},expression:"userModel.login_region"}})],1)],1):e._e(),e.userModel.admin_user_id?a("el-form-item",{attrs:{label:"登录时间",prop:"login_time"}},[a("el-col",{attrs:{span:10}},[a("el-input",{attrs:{disabled:""},model:{value:e.userModel.login_time,callback:function(t){e.$set(e.userModel,"login_time",t)},expression:"userModel.login_time"}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:4}},[e._v("退出时间")]),a("el-col",{attrs:{span:10}},[a("el-input",{attrs:{disabled:""},model:{value:e.userModel.logout_time,callback:function(t){e.$set(e.userModel,"logout_time",t)},expression:"userModel.logout_time"}})],1)],1):e._e(),e.userModel.admin_user_id?a("el-form-item",{attrs:{label:"添加时间",prop:"create_time"}},[a("el-col",{attrs:{span:10}},[a("el-input",{attrs:{disabled:""},model:{value:e.userModel.create_time,callback:function(t){e.$set(e.userModel,"create_time",t)},expression:"userModel.create_time"}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:4}},[e._v("更新时间")]),a("el-col",{attrs:{span:10}},[a("el-input",{attrs:{disabled:""},model:{value:e.userModel.update_time,callback:function(t){e.$set(e.userModel,"update_time",t)},expression:"userModel.update_time"}})],1)],1):e._e()],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.userCancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.userSubmit}},[e._v("提交")])],1)],1),a("el-dialog",{attrs:{title:"权限分配:"+e.userModel.username,visible:e.userDialogRole,top:"1vh"},on:{"update:visible":function(t){e.userDialogRole=t}}},[a("el-form",{ref:"roleRef",staticClass:"dialog-body",style:{height:e.height+30+"px"},attrs:{model:e.userModel,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"账号"}},[a("el-input",{attrs:{clearable:"",disabled:""},model:{value:e.userModel.username,callback:function(t){e.$set(e.userModel,"username",t)},expression:"userModel.username"}})],1),a("el-form-item",{attrs:{label:"昵称"}},[a("el-input",{attrs:{clearable:"",disabled:""},model:{value:e.userModel.nickname,callback:function(t){e.$set(e.userModel,"nickname",t)},expression:"userModel.nickname"}})],1),a("el-form-item",{attrs:{label:"按角色"}},[a("el-checkbox-group",{model:{value:e.userModel.admin_role_ids,callback:function(t){e.$set(e.userModel,"admin_role_ids",t)},expression:"userModel.admin_role_ids"}},e._l(e.roleData,(function(t){return a("el-checkbox",{key:t.admin_role_id,attrs:{label:t.admin_role_id}},[e._v(e._s(t.role_name))])})),1)],1),a("el-form-item",{attrs:{label:"按菜单"}},[a("el-tree",{ref:"menuRef",attrs:{data:e.menuTree,"default-checked-keys":e.userModel.admin_menu_ids,props:e.menuProps,"expand-on-click-node":!1,"node-key":"admin_menu_id","default-expand-all":"","show-checkbox":"","check-strictly":"","highlight-current":""},on:{check:e.menuCheck},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node,l=t.data;return a("span",{staticClass:"custom-tree-node"},[a("span",[e._v(e._s(i.label)),l.is_check?a("i",{staticClass:"el-icon-check",attrs:{title:"已分配"}}):e._e()]),a("span",[l.is_role?a("i",{staticClass:"el-icon-s-custom",staticStyle:{"margin-left":"10px"},attrs:{title:"按角色"}}):e._e(),l.is_menu?a("i",{staticClass:"el-icon-menu",staticStyle:{"margin-left":"10px"},attrs:{title:"按菜单"}}):e._e(),l.menu_url?a("i",{staticClass:"el-icon-link",staticStyle:{"margin-left":"10px"},attrs:{title:l.menu_url}}):a("i",{staticClass:"el-icon-link",staticStyle:{"margin-left":"10px",color:"#fff"}})])])}}])})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.userCancelRule}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.userSubmitRule}},[e._v("提交")])],1)],1),a("el-dialog",{attrs:{title:"密码重置:"+e.userModel.username,visible:e.userDialogPwd,top:"1vh"},on:{"update:visible":function(t){e.userDialogPwd=t}}},[a("el-form",{ref:"pwdRef",staticClass:"dialog-body",style:{height:e.height+30+"px"},attrs:{rules:e.pwdRoles,model:e.userModel,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"账号"}},[a("el-input",{attrs:{clearable:"",disabled:""},model:{value:e.userModel.username,callback:function(t){e.$set(e.userModel,"username",t)},expression:"userModel.username"}})],1),a("el-form-item",{attrs:{label:"昵称"}},[a("el-input",{attrs:{clearable:"",disabled:""},model:{value:e.userModel.nickname,callback:function(t){e.$set(e.userModel,"nickname",t)},expression:"userModel.nickname"}})],1),a("el-form-item",{attrs:{label:"密码",prop:"password"}},[a("el-input",{attrs:{placeholder:"请输入新密码",clearable:"","show-password":""},model:{value:e.userModel.password,callback:function(t){e.$set(e.userModel,"password",t)},expression:"userModel.password"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.userCancelPwd}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.userSubmitPwd}},[e._v("提交")])],1)],1)],1)},l=[],o=a("98b1"),n=a("333d"),r=a("5f87"),s=a("50fc"),c={name:"User",components:{Pagination:n["a"]},data:function(){return{height:680,loading:!1,userData:[],userCount:0,userQuery:{page:1,limit:13},userDialog:!1,userDialogTitle:"",userDialogRole:!1,userDialogPwd:!1,userModel:{admin_user_id:"",admin_role_ids:[],admin_menu_ids:[],menu_ids:[],username:"",nickname:"",password:"",email:"",remark:"",sort:200,login_region:""},uploadAction:"http://yl.jnbinzang.com/backend.php/admin/AdminUser/userAvatar",uploadHeaders:{AdminToken:Object(r["f"])(),AdminUserId:Object(r["g"])()},uploadData:{admin_user_id:""},roleData:[],menuProps:{children:"children",label:"menu_name"},menuTree:[],userRoles:{username:[{required:!0,message:"请输入账号",trigger:"blur"}],nickname:[{required:!0,message:"请输入昵称",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},pwdRoles:{password:[{required:!0,message:"请输入新密码",trigger:"blur"}]}}},created:function(){this.height=Object(o["a"])(),this.userList()},methods:{userList:function(){var e=this;this.loading=!0,Object(s["oc"])(this.userQuery).then((function(t){e.userData=t.data.list,e.userCount=t.data.count,e.loading=!1})).catch((function(){e.loading=!1}))},userSearch:function(){this.userQuery.page=1,this.userList()},userRefresh:function(){this.userQuery=this.$options.data().userQuery,this.userList()},userSort:function(e){this.userQuery.sort_field=e.prop,this.userQuery.sort_type="","ascending"===e.order&&(this.userQuery.sort_type="asc",this.userList()),"descending"===e.order&&(this.userQuery.sort_type="desc",this.userList())},userReset:function(){this.userModel=this.$options.data().userModel,void 0!==this.$refs["userRef"]&&this.$refs["userRef"].resetFields()},userAddition:function(){this.userDialog=!0,this.userDialogTitle="管理员添加",this.userReset()},userModify:function(e){var t=this;this.userDialog=!0,this.userDialogTitle="管理员修改:"+e.username,this.userReset(),Object(s["nc"])({admin_user_id:e.admin_user_id}).then((function(e){t.userModel=e.data.admin_user}))},uploadBefore:function(e){this.uploadData.admin_user_id=this.userModel.admin_user_id},uploadSuccess:function(e,t){200===e.code?(this.userModel.avatar=e.data.avatar,this.$message.success(e.msg)):this.$message.error(e.msg)},userDelete:function(e){var t=this;this.$confirm('确定要删除管理员 <span style="color:red">'+e.username+" </span>吗?","删除:"+e.admin_user_id,{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(s["lc"])({admin_user_id:e.admin_user_id}).then((function(e){t.userList(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))})).catch((function(){}))},userIsAdmin:function(e){var t=this;this.loading=!0,Object(s["jc"])({admin_user_id:e.admin_user_id,is_admin:e.is_admin}).then((function(e){t.userList(),t.$message.success(e.msg)})).catch((function(){t.userList()}))},userIsProhibit:function(e){var t=this;this.loading=!0,Object(s["mc"])({admin_user_id:e.admin_user_id,is_disable:e.is_disable}).then((function(e){t.userList(),t.$message.success(e.msg)})).catch((function(){t.userList()}))},userEditRule:function(e){var t=this;this.userDialogRole=!0,Object(s["qc"])({admin_user_id:e.admin_user_id}).then((function(a){t.roleData=a.data.admin_role,t.menuTree=a.data.admin_menu,t.userModel.username=a.data.username,t.userModel.nickname=a.data.nickname,t.userModel.admin_user_id=e.admin_user_id,t.userModel.admin_role_ids=a.data.admin_role_ids,t.userModel.admin_menu_ids=a.data.admin_menu_ids,t.userModel.menu_ids=a.data.menu_ids}))},userCancelRule:function(){this.userDialogRole=!1,this.userReset()},menuCheck:function(e,t){this.userModel.admin_menu_ids=t.checkedKeys},userSubmitRule:function(){var e=this;this.$refs["roleRef"].validate((function(t){t&&(e.loading=!0,Object(s["qc"])({admin_user_id:e.userModel.admin_user_id,admin_role_ids:e.userModel.admin_role_ids,admin_menu_ids:e.userModel.admin_menu_ids},"post").then((function(t){e.userList(),e.userDialogRole=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))},userPassword:function(e){this.userDialogPwd=!0,this.userModel.admin_user_id=e.admin_user_id,this.userModel.username=e.username,this.userModel.nickname=e.nickname,this.userModel.password=""},userCancelPwd:function(){this.userDialogPwd=!1,this.userReset()},userSubmitPwd:function(){var e=this;this.$refs["pwdRef"].validate((function(t){t&&(e.loading=!0,Object(s["pc"])({admin_user_id:e.userModel.admin_user_id,password:e.userModel.password}).then((function(t){e.userList(),e.userDialogPwd=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))},userCancel:function(){this.userReset(),this.userDialog=!1},userSubmit:function(){var e=this;this.$refs["userRef"].validate((function(t){t&&(e.loading=!0,e.userModel.admin_user_id?Object(s["nc"])(e.userModel,"post").then((function(t){e.userList(),e.userDialog=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})):Object(s["ic"])(e.userModel).then((function(t){e.userList(),e.userDialog=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))}}},u=c,d=(a("336f"),a("2877")),m=Object(d["a"])(u,i,l,!1,null,"ce8d31c8",null);t["default"]=m.exports},e350:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));a("d3b7"),a("caad"),a("2532");var i=a("4360");function l(e){if(e&&e instanceof Array&&e.length>0){var t=i["a"].getters&&i["a"].getters.roles,a=e,l=t.some((function(e){return a.includes(e)}));return l}return console.error("need roles! Like v-permission=\"['admin','editor']\""),!1}},e3f3:function(e,t,a){},e50c:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticStyle:{float:"left"}},[a("div",{staticStyle:{"margin-right":"10px",float:"left"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"",clearable:""},model:{value:e.query.title,callback:function(t){e.$set(e.query,"title",t)},expression:"query.title"}})],1),a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")]),a("el-button",{staticClass:"filter-item",on:{click:function(t){return e.reset()}}},[e._v("重置")])],1),a("div",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addition("")}}},[e._v("添加")])],1)]),a("el-form",{attrs:{model:e.form}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.form.data,height:e.height,border:""}},[a("el-table-column",{attrs:{prop:"did",label:"ID","min-width":"50",fixed:"left"}}),a("el-table-column",{attrs:{prop:"title",label:"标题","min-width":"170"}}),a("el-table-column",{attrs:{prop:"sort",label:"创建时间","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(e._f("parseTime")(a.create_time))+" ")]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"80",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.modify(i)}}},[e._v("修改")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.remove(i)}}},[e._v("删除")])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.dictionaryList}}),a("el-dialog",{attrs:{title:e.dataDialogTitle,visible:e.dataDialog,width:"65%",top:"1vh","before-close":e.cancel},on:{"update:visible":function(t){e.dataDialog=t}}},[a("el-form",{ref:"memberRef",staticClass:"dialog-body",style:{height:e.height+50+"px"},attrs:{model:e.model,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"标题",prop:"title"}},[a("el-input",{key:"title",attrs:{placeholder:"",clearable:""},model:{value:e.model.title,callback:function(t){e.$set(e.model,"title",t)},expression:"model.title"}})],1),a("el-form-item",{attrs:{label:"键值对",prop:"value"}},[a("draggable",e._b({attrs:{handle:".jzd-handle"},model:{value:e.model.value,callback:function(t){e.$set(e.model,"value",t)},expression:"model.value"}},"draggable",{group:"item"},!1),e._l(e.model.value,(function(t,i){return a("el-row",{key:i,staticStyle:{padding:"5px"}},[a("el-col",{attrs:{span:10}},[a("el-form-item",{staticClass:"activeItem"},[a("el-input",{attrs:{placeholder:"选项名称"},model:{value:t.key,callback:function(a){e.$set(t,"key",a)},expression:"item.key"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{staticClass:"activeItem"},[a("el-input",{staticStyle:{position:"relative",left:"5px"},attrs:{placeholder:"选项值"},model:{value:t.val,callback:function(a){e.$set(t,"val",a)},expression:"item.val"}})],1)],1),a("el-col",{attrs:{span:4}},[a("el-button",{staticStyle:{position:"relative",left:"15px"},attrs:{type:"danger",size:"mini",icon:"el-icon-close"},on:{click:function(t){return e.deleteItem(i)}}}),a("el-button",{staticClass:"jzd-handle",staticStyle:{position:"relative",left:"15px"},attrs:{type:"success",size:"mini",icon:"el-icon-rank"}})],1)],1)})),1),a("div",[a("el-button",{staticStyle:{padding:"5px 7px"},attrs:{type:"info",icon:"el-icon-plus",size:"mini"},on:{click:function(t){return e.addItem()}}},[e._v("追加")]),e.model.value.length>0?a("el-button",{staticStyle:{padding:"5px 7px"},attrs:{type:"warning",icon:"el-icon-delete",size:"mini"},on:{click:function(t){return e.clearItem()}}},[e._v("清空")]):e._e()],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("提交")])],1)],1)],1)},l=[],o=(a("14d9"),a("a434"),a("98b1")),n=a("333d"),r=a("b76a"),s=a.n(r),c=a("50fc"),u={name:"Article",components:{Pagination:n["a"],draggable:s.a},data:function(){return{this_:this,height:680,loading:!1,form:{data:[]},count:0,query:{page:1,limit:13},dataDialog:!1,dataDialogTitle:"",model:{did:"",title:"",value:[]},rules:{title:[{required:!0,message:"标题不能为空",trigger:"blur"}],value:[{required:!0,type:"array",message:"设置键值",trigger:"blur"}]}}},created:function(){this.height=Object(o["a"])(),this.dictionaryList()},methods:{dictionaryList:function(){var e=this;this.loading=!0,Object(c["J"])(this.query).then((function(t){e.form.data=t.data.data,e.count=t.data.total,e.loading=!1})).catch((function(){e.loading=!1}))},search:function(){this.query.page=1,this.dictionaryList()},reset:function(){this.query={page:1,limit:13},this.dictionaryList()},modelReset:function(){this.model=this.$options.data().model,void 0!==this.$refs["memberRef"]&&this.$refs["memberRef"].resetFields()},addition:function(){this.dataDialog=!0,this.dataDialogTitle="添加",this.modelReset()},modify:function(e){var t=this;this.dataDialogTitle="修改:"+e.title,Object(c["I"])({did:e.did}).then((function(e){t.model=e.data,t.dataDialog=!0}))},remove:function(e){var t=this;this.$confirm('确定要删除 <span style="color:red">'+e.title+" </span>吗?","删除确认",{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(c["H"])({did:e.did}).then((function(e){t.$message({message:e.msg,type:"success"}),t.dictionaryList()})).catch((function(){t.loading=!1}))}))},cancel:function(){this.reset(),this.dataDialog=!1},addItem:function(){this.model["value"].push({})},deleteItem:function(e){this.model["value"].splice(e,1)},clearItem:function(e){this.model["value"]=[]},submit:function(){var e=this;this.$refs["memberRef"].validate((function(t){if(t){e.loading=!0;var a=e.model;a.did?Object(c["I"])(a,"post").then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.dictionaryList()})).catch((function(){e.loading=!1})):Object(c["G"])(a).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.dictionaryList()})).catch((function(){e.loading=!1}))}}))}},filters:{}},d=u,m=(a("03c3"),a("2877")),p=Object(m["a"])(d,i,l,!1,null,null,null);t["default"]=p.exports},e559:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.tokenLoad,expression:"tokenLoad"}],staticClass:"box-card"},[a("el-form",{ref:"ref",attrs:{rules:e.rules,model:e.model,"label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{xs:24,sm:18}},[a("el-form-item",{attrs:{label:"网站标题",prop:"title"}},[a("el-input",{attrs:{type:"text",row:"12"},model:{value:e.model.title,callback:function(t){e.$set(e.model,"title",t)},expression:"model.title"}})],1),a("el-form-item",{attrs:{label:"网站关键词",prop:"keywords"}},[a("el-input",{attrs:{type:"textarea",row:"12"},model:{value:e.model.keywords,callback:function(t){e.$set(e.model,"keywords",t)},expression:"model.keywords"}})],1),a("el-form-item",{attrs:{label:"网站描述",prop:"description"}},[a("el-input",{attrs:{type:"textarea",row:"12"},model:{value:e.model.description,callback:function(t){e.$set(e.model,"description",t)},expression:"model.description"}})],1),a("el-form-item",{attrs:{label:"百度统计代码",prop:"iss"}},[a("el-input",{attrs:{type:"textarea",row:"12"},model:{value:e.model.statistical_code,callback:function(t){e.$set(e.model,"statistical_code",t)},expression:"model.statistical_code"}})],1),a("el-form-item",{attrs:{label:"电脑沟通代码",prop:"iss"}},[a("el-input",{attrs:{type:"textarea",row:"12"},model:{value:e.model.pc_chat_code,callback:function(t){e.$set(e.model,"pc_chat_code",t)},expression:"model.pc_chat_code"}})],1),a("el-form-item",{attrs:{label:"手机沟通代码",prop:"iss"}},[a("el-input",{attrs:{type:"textarea",row:"12"},model:{value:e.model.wap_chat_code,callback:function(t){e.$set(e.model,"wap_chat_code",t)},expression:"model.wap_chat_code"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit()}}},[e._v("提交")])],1)],1)],1)],1)],1)],1)},l=[],o=a("50fc"),n={name:"WebsiteConfig",components:{},data:function(){return{tokenLoad:!1,model:{title:"",keywords:"",description:"",statistical_code:"",pc_chat_code:"",wap_chat_code:""},rules:{statistical_code:[{required:!0,message:"请输入代码",trigger:"blur"}]}}},created:function(){this.get()},methods:{get:function(){var e=this;Object(o["E"])().then((function(t){t.data&&(e.model=t.data)}))},submit:function(){var e=this;this.$refs["ref"].validate((function(t){t&&(e.tokenLoad=!0,Object(o["E"])(e.model,"post").then((function(t){e.tokenLoad=!1,e.$message({message:t.msg,type:"success"})})).catch((function(){e.tokenLoad=!1})))}))}}},r=n,s=a("2877"),c=Object(s["a"])(r,i,l,!1,null,null,null);t["default"]=c.exports},e66a:function(e,t,a){"use strict";a("fa59")},e6c6:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("div",{staticStyle:{float:"left"}},[a("div",{staticStyle:{"margin-right":"10px",float:"left"}},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"",clearable:""},model:{value:e.query.title,callback:function(t){e.$set(e.query,"title",t)},expression:"query.title"}}),a("el-select",{staticClass:"filter-item",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){return e.resthomeList()}},model:{value:e.query.recommend_position,callback:function(t){e.$set(e.query,"recommend_position",t)},expression:"query.recommend_position"}},e._l(e.recommend,(function(e,t){return a("el-option",{key:t,attrs:{label:e,value:Number(t)}})})),1)],1),a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")]),a("el-button",{staticClass:"filter-item",on:{click:function(t){return e.reset()}}},[e._v("重置")])],1),a("div",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addition("")}}},[e._v("添加")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.updateSort()}}},[e._v("更新排序")])],1)]),a("el-form",{attrs:{model:e.form}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.form.data,height:e.height,border:""}},[a("el-table-column",{attrs:{prop:"nid",label:"ID","min-width":"50",fixed:"left"}}),a("el-table-column",{attrs:{prop:"title",label:"标题","min-width":"170"}}),a("el-table-column",{attrs:{prop:"sort",label:"创建时间","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v(" "+e._s(e._f("parseTime")(a.create_time))+" ")]}}])}),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"50"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-input",{key:"title",attrs:{placeholder:"",clearable:""},model:{value:i.sort,callback:function(t){e.$set(i,"sort",t)},expression:"row.sort"}})]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"80",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.modify(i)}}},[e._v("修改")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.remove(i)}}},[e._v("删除")])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.count>0,expression:"count > 0"}],attrs:{total:e.count,page:e.query.page,limit:e.query.limit},on:{"update:page":function(t){return e.$set(e.query,"page",t)},"update:limit":function(t){return e.$set(e.query,"limit",t)},pagination:e.nursingHomeList}}),a("el-dialog",{attrs:{title:e.dataDialogTitle,visible:e.dataDialog,width:"65%",top:"1vh","before-close":e.cancel},on:{"update:visible":function(t){e.dataDialog=t}}},[a("el-form",{ref:"memberRef",staticClass:"dialog-body",style:{height:e.height+50+"px"},attrs:{model:e.model,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"名称",prop:"title"}},[a("el-input",{key:"title",attrs:{placeholder:"",clearable:""},model:{value:e.model.title,callback:function(t){e.$set(e.model,"title",t)},expression:"model.title"}})],1),a("el-form-item",{attrs:{label:"SEO标题",prop:"seo_t"}},[a("el-input",{key:"title",attrs:{placeholder:"",clearable:""},model:{value:e.model.seo_t,callback:function(t){e.$set(e.model,"seo_t",t)},expression:"model.seo_t"}})],1),a("el-form-item",{attrs:{label:"SEO描述",prop:"seo_d"}},[a("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:12},placeholder:"",clearable:""},model:{value:e.model.seo_d,callback:function(t){e.$set(e.model,"seo_d",t)},expression:"model.seo_d"}})],1),a("el-form-item",{attrs:{label:"SEO关键词",prop:"seo_k"}},[a("el-input",{key:"title",attrs:{placeholder:"",clearable:""},model:{value:e.model.seo_k,callback:function(t){e.$set(e.model,"seo_k",t)},expression:"model.seo_k"}})],1),a("el-form-item",{attrs:{label:"价格",prop:"price"}},[a("el-input",{staticStyle:{width:"100px"},attrs:{placeholder:""},model:{value:e.model.min_price,callback:function(t){e.$set(e.model,"min_price",t)},expression:"model.min_price"}}),e._v(" - "),a("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:""},model:{value:e.model.max_price,callback:function(t){e.$set(e.model,"max_price",t)},expression:"model.max_price"}},[a("template",{slot:"append"},[e._v("元")])],2)],1),a("el-form-item",{attrs:{label:"位置",prop:"area"}},[a("el-input",{staticStyle:{width:"260px"},attrs:{placeholder:"经度"},model:{value:e.model.lng,callback:function(t){e.$set(e.model,"lng",t)},expression:"model.lng"}}),e._v(" - "),a("el-input",{staticStyle:{width:"260px"},attrs:{placeholder:"纬度"},model:{value:e.model.lat,callback:function(t){e.$set(e.model,"lat",t)},expression:"model.lat"}})],1),a("el-form-item",{attrs:{label:"详细地址",prop:"address"}},[a("el-input",{key:"address",attrs:{placeholder:"",clearable:""},model:{value:e.model.address,callback:function(t){e.$set(e.model,"address",t)},expression:"model.address"}})],1),a("el-form-item",{attrs:{label:"机构类型"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.model.type,callback:function(t){e.$set(e.model,"type",t)},expression:"model.type"}},e._l(e.type,(function(e,t){return a("el-option",{key:t,attrs:{label:e,value:t}})})),1)],1),a("el-form-item",{attrs:{label:"机构性质",prop:"lnstitutional_nature"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.model.lnstitutional_nature,callback:function(t){e.$set(e.model,"lnstitutional_nature",t)},expression:"model.lnstitutional_nature"}},e._l(e.lnstitutional_nature,(function(e,t){return a("el-option",{key:t,attrs:{label:e,value:t}})})),1)],1),a("el-form-item",{attrs:{label:"标签",prop:"tags"}},[a("el-checkbox-group",{model:{value:e.model.tags,callback:function(t){e.$set(e.model,"tags",t)},expression:"model.tags"}},e._l(e.tags,(function(t,i){return a("el-checkbox",{key:i,attrs:{label:i}},[e._v(e._s(t))])})),1)],1),a("el-form-item",{attrs:{label:"推荐位",prop:"recommend"}},[a("el-checkbox-group",{model:{value:e.model.recommend,callback:function(t){e.$set(e.model,"recommend",t)},expression:"model.recommend"}},e._l(e.recommend,(function(t,i){return a("el-checkbox",{key:i,attrs:{label:i}},[e._v(e._s(t))])})),1)],1),a("el-form-item",{attrs:{label:"地区",prop:"location"}},[a("el-checkbox-group",{model:{value:e.model.location,callback:function(t){e.$set(e.model,"location",t)},expression:"model.location"}},e._l(e.location,(function(t,i){return a("el-checkbox",{key:i,attrs:{label:i}},[e._v(e._s(t))])})),1)],1),a("el-form-item",{attrs:{label:"服务",prop:"service"}},[a("el-checkbox-group",{model:{value:e.model.service,callback:function(t){e.$set(e.model,"service",t)},expression:"model.service"}},e._l(e.service,(function(t,i){return a("el-checkbox",{key:i,attrs:{label:i}},[e._v(e._s(t))])})),1)],1),a("el-form-item",{attrs:{label:"成立时间"}},[a("el-date-picker",{attrs:{type:"date","default-value":"","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.model.establishment_date,callback:function(t){e.$set(e.model,"establishment_date",t)},expression:"model.establishment_date"}})],1),a("el-form-item",{attrs:{label:"机构特色",prop:"institutional_characteristics"}},[a("el-checkbox-group",{model:{value:e.model.institutional_characteristics,callback:function(t){e.$set(e.model,"institutional_characteristics",t)},expression:"model.institutional_characteristics"}},e._l(e.institutional_characteristics,(function(t,i){return a("el-checkbox",{key:i,attrs:{label:i}},[e._v(e._s(t))])})),1)],1),a("el-form-item",{attrs:{label:"收住对象",prop:"retract_objects"}},[a("el-checkbox-group",{model:{value:e.model.retract_objects,callback:function(t){e.$set(e.model,"retract_objects",t)},expression:"model.retract_objects"}},e._l(e.retract_objects,(function(t,i){return a("el-checkbox",{key:i,attrs:{label:i}},[e._v(e._s(t))])})),1)],1),a("el-form-item",{attrs:{label:"床位"}},[a("el-input-number",{attrs:{min:1,max:1e6,label:""},model:{value:e.model.beds,callback:function(t){e.$set(e.model,"beds",t)},expression:"model.beds"}})],1),a("el-form-item",{attrs:{label:"服务评分",prop:"service_score"}},[a("el-input",{key:"service_score",attrs:{placeholder:"",clearable:""},model:{value:e.model.service_score,callback:function(t){e.$set(e.model,"service_score",t)},expression:"model.service_score"}})],1),a("el-form-item",{attrs:{label:"服务水平",prop:"service_level"}},[a("el-input",{key:"service_level",attrs:{placeholder:"",clearable:""},model:{value:e.model.service_level,callback:function(t){e.$set(e.model,"service_level",t)},expression:"model.service_level"}})],1),a("el-form-item",{attrs:{label:"综合评分",prop:"comprehensive_score"}},[a("el-input",{key:"comprehensive_score",attrs:{placeholder:"",clearable:""},model:{value:e.model.comprehensive_score,callback:function(t){e.$set(e.model,"comprehensive_score",t)},expression:"model.comprehensive_score"}})],1),a("el-form-item",{attrs:{label:"缩略图"}},[a("Upload",{attrs:{"img-url":e.model.filename},on:{callback:function(t){e.model.filename=t}},model:{value:e.model.filename,callback:function(t){e.$set(e.model,"filename",t)},expression:"model.filename"}})],1),a("el-form-item",{attrs:{label:"多图上传"}},[a("Uploads",{attrs:{name:!0,summary:!1},on:{callback:function(t){e.model.pics=t}},model:{value:e.model.pics,callback:function(t){e.$set(e.model,"pics",t)},expression:"model.pics"}})],1),a("el-form-item",{attrs:{label:"机构简介",prop:"content"}},[a("editor-bar",{attrs:{isClear:e.isClear},model:{value:e.model.content,callback:function(t){e.$set(e.model,"content",t)},expression:"model.content"}})],1),a("el-form-item",{attrs:{label:"服务内容",prop:"service_content"}},[a("editor-bar",{attrs:{isClear:e.isClear},model:{value:e.model.service_content,callback:function(t){e.$set(e.model,"service_content",t)},expression:"model.service_content"}})],1),a("el-form-item",{attrs:{label:"入住须知",prop:"notice_content"}},[a("editor-bar",{attrs:{isClear:e.isClear},model:{value:e.model.notice_content,callback:function(t){e.$set(e.model,"notice_content",t)},expression:"model.notice_content"}})],1),a("el-form-item",{attrs:{label:"关联养老",prop:"relation_nursing"}},[a("el-input",{key:"relation_nursing",attrs:{placeholder:"以,号格开养老ID如1,3,4",clearable:""},model:{value:e.model.relation_nursing,callback:function(t){e.$set(e.model,"relation_nursing",t)},expression:"model.relation_nursing"}})],1),a("el-form-item",{attrs:{label:"关联文章",prop:"relation_article"}},[a("el-input",{key:"relation_article",attrs:{placeholder:"以,号格开文章ID如1,3,4",clearable:""},model:{value:e.model.relation_article,callback:function(t){e.$set(e.model,"relation_article",t)},expression:"model.relation_article"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("提交")])],1)],1)],1)},l=[],o=(a("d3b7"),a("159b"),a("4e82"),a("98b1")),n=a("333d"),r=a("d443"),s=a("21c2"),c=a("0c98"),u=a("50fc"),d={name:"nursingHome",components:{Pagination:n["a"],Upload:r["a"],Uploads:s["a"],EditorBar:c["a"]},data:function(){return{this_:this,height:680,loading:!1,form:{data:[]},count:0,query:{page:1,limit:20},dataDialog:!1,dataDialogTitle:"",model:{nid:"",type:"",tags:[],lnstitutional_nature:"",beds:"1",title:"",filename:"",pics:[],recommend:[],location:[],service:[],institutional_characteristics:[],retract_objects:[]},rules:{title:[{required:!0,message:"标题不能为空",trigger:"blur"}]},isClear:!1,category:[],type:[],tags:[],lnstitutional_nature:[],recommend:[],location:[],service:[],institutional_characteristics:[],retract_objects:[]}},created:function(){this.height=Object(o["a"])(),this.nursingHomeList(),this.dictionaryList()},methods:{dictionaryList:function(){var e=this;Object(u["F"])().then((function(t){e.type=t.data[2],e.lnstitutional_nature=t.data[3],e.tags=t.data[4],e.recommend=t.data[5],e.location=t.data[7],e.service=t.data[8],e.institutional_characteristics=t.data[10],e.retract_objects=t.data[11]})).catch((function(){e.loading=!1})),console.log(this.type)},nursingHomeList:function(){var e=this;this.loading=!0,Object(u["vb"])(this.query).then((function(t){e.form.data=e.query.recommend_position?t.data:t.data.data,e.count=t.data.total,e.loading=!1})).catch((function(){e.loading=!1}))},search:function(){this.query.page=1,this.nursingHomeList()},reset:function(){this.query={page:1,limit:13},this.nursingHomeList()},modelReset:function(){this.model=this.$options.data().model,void 0!==this.$refs["memberRef"]&&this.$refs["memberRef"].resetFields()},addition:function(){this.dataDialog=!0,this.dataDialogTitle="添加",this.modelReset()},modify:function(e){var t=this;this.dataDialogTitle="修改:"+e.title,Object(u["ub"])({nid:e.nid}).then((function(e){t.model=e.data,t.dataDialog=!0}))},disable:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"status";this.loading=!0,e.table="Test",e.field=a,Object(u["gc"])(e).then((function(e){t.nursingHomeList(),t.$message({message:e.msg,type:"success"})})).catch((function(){t.nursingHomeList()}))},remove:function(e){var t=this;this.$confirm('确定要删除 <span style="color:red">'+e.title+" </span>吗?","删除确认",{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(u["tb"])({nid:e.nid}).then((function(e){t.$message({message:e.msg,type:"success"}),t.nursingHomeList()})).catch((function(){t.loading=!1}))}))},cancel:function(){this.reset(),this.dataDialog=!1},updateSort:function(){var e=this,t=[],a=this.form.data;a.forEach((function(e,a){var i={id:e.nid,sort:e.sort||""};t[a]=i}));var i={data:t,table:"NursingHome",recommend_position:this.query.recommend_position};Object(u["fc"])(i).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.nursingHomeList()})).catch((function(){e.loading=!1}))},submit:function(){var e=this;this.$refs["memberRef"].validate((function(t){if(t){e.loading=!0;var a=e.model;a.nid?Object(u["ub"])(a,"post").then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.nursingHomeList()})).catch((function(){e.loading=!1})):Object(u["rb"])(a).then((function(t){e.dataDialog=!1,e.$message({message:t.msg,type:"success"}),e.nursingHomeList()})).catch((function(){e.loading=!1}))}}))}},filters:{}},m=d,p=(a("d185"),a("2877")),f=Object(p["a"])(m,i,l,!1,null,null,null);t["default"]=f.exports},e834:function(e,t,a){"use strict";a("1389")},ea26:function(e,t,a){},ebef:function(e,t,a){},eca7:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-card",{staticClass:"box-card"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{xs:24,sm:12}},[a("el-form",{ref:"settingRef",attrs:{"label-width":"100px"}},[a("el-form-item",{attrs:{label:"设置主题"}},[a("theme-picker",{on:{change:e.themeChange}})],1),a("el-form-item",{attrs:{label:"便签导航"}},[a("el-switch",{staticClass:"drawer-switch",model:{value:e.tagsView,callback:function(t){e.tagsView=t},expression:"tagsView"}})],1),a("el-form-item",{attrs:{label:"固定头部"}},[a("el-switch",{staticClass:"drawer-switch",model:{value:e.fixedHeader,callback:function(t){e.fixedHeader=t},expression:"fixedHeader"}})],1),a("el-form-item",{attrs:{label:"Logo名称"}},[a("el-switch",{staticClass:"drawer-switch",model:{value:e.sidebarLogo,callback:function(t){e.sidebarLogo=t},expression:"sidebarLogo"}})],1)],1)],1)],1)],1)],1)},l=[],o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-color-picker",{staticClass:"theme-picker",attrs:{predefine:["#409EFF","#1890ff","#304156","#212121","#11a983","#13c2c2","#6959CD","#f5222d"],"popper-class":"theme-picker-dropdown"},model:{value:e.theme,callback:function(t){e.theme=t},expression:"theme"}})},n=[],r=a("c7eb"),s=a("1da1"),c=(a("ac1f"),a("5319"),a("4de4"),a("d3b7"),a("fb6a"),a("00b4"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("159b"),a("a15b"),a("99af"),a("14d9"),a("a9e3"),a("b680"),a("f6f8").version),u="#409EFF",d={data:function(){return{chalk:"",theme:""}},computed:{defaultTheme:function(){return this.$store.state.settings.theme}},watch:{defaultTheme:{handler:function(e,t){this.theme=e},immediate:!0},theme:function(e){var t=this;return Object(s["a"])(Object(r["a"])().mark((function a(){var i,l,o,n,s,d,m,p;return Object(r["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i=t.chalk?t.theme:u,"string"===typeof e){a.next=3;break}return a.abrupt("return");case 3:if(l=t.getThemeCluster(e.replace("#","")),o=t.getThemeCluster(i.replace("#","")),console.log(l,o),n=t.$message({message:" Compiling the theme",customClass:"theme-message",type:"success",duration:0,iconClass:"el-icon-loading"}),s=function(e,a){return function(){var i=t.getThemeCluster(u.replace("#","")),o=t.updateStyle(t[e],i,l),n=document.getElementById(a);n||(n=document.createElement("style"),n.setAttribute("id",a),document.head.appendChild(n)),n.innerText=o}},t.chalk){a.next=12;break}return d="https://unpkg.com/element-ui@".concat(c,"/lib/theme-chalk/index.css"),a.next=12,t.getCSSString(d,"chalk");case 12:m=s("chalk","chalk-style"),m(),p=[].slice.call(document.querySelectorAll("style")).filter((function(e){var t=e.innerText;return new RegExp(i,"i").test(t)&&!/Chalk Variables/.test(t)})),p.forEach((function(e){var a=e.innerText;"string"===typeof a&&(e.innerText=t.updateStyle(a,o,l))})),t.$emit("change",e),n.close();case 18:case"end":return a.stop()}}),a)})))()}},methods:{updateStyle:function(e,t,a){var i=e;return t.forEach((function(e,t){i=i.replace(new RegExp(e,"ig"),a[t])})),i},getCSSString:function(e,t){var a=this;return new Promise((function(i){var l=new XMLHttpRequest;l.onreadystatechange=function(){4===l.readyState&&200===l.status&&(a[t]=l.responseText.replace(/@font-face{[^}]+}/,""),i())},l.open("GET",e),l.send()}))},getThemeCluster:function(e){for(var t=function(e,t){var a=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),l=parseInt(e.slice(4,6),16);return 0===t?[a,i,l].join(","):(a+=Math.round(t*(255-a)),i+=Math.round(t*(255-i)),l+=Math.round(t*(255-l)),a=a.toString(16),i=i.toString(16),l=l.toString(16),"#".concat(a).concat(i).concat(l))},a=function(e,t){var a=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),l=parseInt(e.slice(4,6),16);return a=Math.round((1-t)*a),i=Math.round((1-t)*i),l=Math.round((1-t)*l),a=a.toString(16),i=i.toString(16),l=l.toString(16),"#".concat(a).concat(i).concat(l)},i=[e],l=0;l<=9;l++)i.push(t(e,Number((l/10).toFixed(2))));return i.push(a(e,.1)),i}}},m=d,p=(a("0995"),a("2877")),f=Object(p["a"])(m,o,n,!1,null,null,null),h=f.exports,g={name:"MySetting",components:{ThemePicker:h},data:function(){return{}},computed:{tagsView:{get:function(){return this.$store.state.settings.tagsView},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"tagsView",value:e})}},fixedHeader:{get:function(){return this.$store.state.settings.fixedHeader},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"fixedHeader",value:e})}},sidebarLogo:{get:function(){return this.$store.state.settings.sidebarLogo},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"sidebarLogo",value:e})}}},methods:{themeChange:function(e){this.$store.dispatch("settings/changeSetting",{key:"theme",value:e})}}},b=g,v=Object(p["a"])(b,i,l,!1,null,null,null);t["default"]=v.exports},ee0d:function(e,t,a){"use strict";a("87c8")},eee0:function(e,t,a){"use strict";a.r(t);a("ac1f"),a("5319");var i,l,o={data:function(){return{}},created:function(){var e=this.$route,t=e.params,a=e.query,i=t.path;this.$router.replace({path:"/"+i,query:a}).catch((function(){}))},render:function(e){return e()}},n=o,r=a("2877"),s=Object(r["a"])(n,i,l,!1,null,null,null);t["default"]=s.exports},f0a3:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{staticStyle:{"text-align":"right"},attrs:{xs:24,sm:24}},[a("el-button",{staticClass:"filter-item",on:{click:function(t){return e.apiRefresh()}}},[e._v("刷新")]),a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.apiAddition()}}},[e._v("添加")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.apiData,height:e.height+80,"row-key":"api_id",border:""}},[a("el-table-column",{attrs:{prop:"api_name",label:"接口名称","min-width":"200",fixed:"left"}}),a("el-table-column",{attrs:{prop:"api_url",label:"接口链接","min-width":"260","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"api_sort",label:"接口排序","min-width":"90"}}),a("el-table-column",{attrs:{prop:"api_id",label:"接口ID","min-width":"80"}}),a("el-table-column",{attrs:{prop:"api_pid",label:"接口PID","min-width":"80"}}),a("el-table-column",{attrs:{prop:"create_time",label:"添加时间","min-width":"160"}}),a("el-table-column",{attrs:{prop:"update_time",label:"修改时间","min-width":"160"}}),a("el-table-column",{attrs:{prop:"is_disable",label:"是否禁用","min-width":"80",align:"center",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.api_url?a("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(a){return e.apiIsProhibit(t.row)}},model:{value:t.row.is_disable,callback:function(a){e.$set(t.row,"is_disable",a)},expression:"scope.row.is_disable"}}):e._e()]}}])}),a("el-table-column",{attrs:{prop:"is_unauth",label:"无需权限","min-width":"80",align:"center",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.api_url?a("el-switch",{attrs:{"active-value":1,"inactive-value":0},on:{change:function(a){return e.apiIsUnauth(t.row)}},model:{value:t.row.is_unauth,callback:function(a){e.$set(t.row,"is_unauth",a)},expression:"scope.row.is_unauth"}}):e._e()]}}])}),a("el-table-column",{attrs:{label:"操作","min-width":"280",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["admin/Api/apiDoc"],expression:"['admin/Api/apiDoc']"}],attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.apiDoc(i)}}},[e._v("文档")]),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.apiAddition(i)}}},[e._v("添加")]),a("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(t){return e.apiModify(i)}}},[e._v("修改")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.apiDelete(i)}}},[e._v("删除")])]}}])})],1),a("el-dialog",{attrs:{title:e.apiDialogTitle,visible:e.apiDialog,width:"65%",top:"1vh","before-close":e.apiCancel},on:{"update:visible":function(t){e.apiDialog=t},opened:function(t){return e.DialogOpened()},closed:function(t){return e.DialogClosed()}}},[a("el-form",{ref:"apiRef",staticClass:"dialog-body",style:{height:e.height+50+"px"},attrs:{rules:e.apiRules,model:e.apiModel,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"接口父级",prop:"api_pid"}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.apiData,props:e.apiProps,clearable:"",filterable:"",placeholder:"一级接口"},on:{change:e.apiPidChange},model:{value:e.apiModel.api_pid,callback:function(t){e.$set(e.apiModel,"api_pid",t)},expression:"apiModel.api_pid"}})],1),a("el-form-item",{attrs:{label:"接口名称",prop:"api_name"}},[a("el-input",{attrs:{placeholder:"请输入接口名称",clearable:""},model:{value:e.apiModel.api_name,callback:function(t){e.$set(e.apiModel,"api_name",t)},expression:"apiModel.api_name"}})],1),a("el-form-item",{attrs:{label:"请求方式",prop:"api_method"}},[a("el-col",{attrs:{span:10}},[a("el-select",{attrs:{placeholder:"请选择请求方式"},model:{value:e.apiModel.api_method,callback:function(t){e.$set(e.apiModel,"api_method",t)},expression:"apiModel.api_method"}},[a("el-option",{attrs:{label:"GET",value:"GET"}}),a("el-option",{attrs:{label:"POST",value:"POST"}}),a("el-option",{attrs:{label:"PUT",value:"PUT"}}),a("el-option",{attrs:{label:"DELETE",value:"DELETE"}})],1)],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:4}},[e._v("接口排序")]),a("el-col",{attrs:{span:10}},[a("el-input",{attrs:{type:"number",placeholder:"200"},model:{value:e.apiModel.api_sort,callback:function(t){e.$set(e.apiModel,"api_sort",t)},expression:"apiModel.api_sort"}})],1)],1),a("el-form-item",{attrs:{label:"接口链接",prop:"api_url"}},[a("el-input",{model:{value:e.apiModel.api_url,callback:function(t){e.$set(e.apiModel,"api_url",t)},expression:"apiModel.api_url"}})],1),a("el-form-item",{attrs:{label:"请求参数",prop:"api_request"}},[a("div",{attrs:{id:"api_request"}})]),a("el-form-item",{attrs:{label:"返回参数",prop:"api_response"}},[a("div",{attrs:{id:"api_response"}})]),a("el-form-item",{attrs:{label:"接口说明",prop:"api_explain"}},[a("el-input",{attrs:{type:"textarea",placeholder:"接口额外说明"},model:{value:e.apiModel.api_explain,callback:function(t){e.$set(e.apiModel,"api_explain",t)},expression:"apiModel.api_explain"}})],1),e.apiModel.api_id?a("el-form-item",{attrs:{label:"添加时间",prop:"create_time"}},[a("el-col",{attrs:{span:10}},[a("el-input",{attrs:{disabled:""},model:{value:e.apiModel.create_time,callback:function(t){e.$set(e.apiModel,"create_time",t)},expression:"apiModel.create_time"}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:4}},[e._v("修改时间")]),a("el-col",{attrs:{span:10}},[a("el-input",{attrs:{disabled:""},model:{value:e.apiModel.update_time,callback:function(t){e.$set(e.apiModel,"update_time",t)},expression:"apiModel.update_time"}})],1)],1):e._e()],1),e.apiModel.api_footer?a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.apiCancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.apiSubmit}},[e._v("提交")])],1):e._e()],1)],1)},l=[],o=a("d4ec"),n=a("bee2"),r=a("262e"),s=a("2caf"),c=(a("99af"),a("98b1")),u=a("4381"),d=a("5f87"),m=a("b775");function p(){return Object(m["a"])({url:"/admin/Api/apiList",method:"get"})}function f(e){return Object(m["a"])({url:"/admin/Api/apiAdd",method:"post",data:e})}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get";return"get"===t?Object(m["a"])({url:"/admin/Api/apiEdit",method:"get",params:e}):Object(m["a"])({url:"/admin/Api/apiEdit",method:"post",data:e})}function g(e){return Object(m["a"])({url:"/admin/Api/apiDele",method:"post",data:e})}function b(e){return Object(m["a"])({url:"/admin/Api/apiDoc",method:"get",params:e})}function v(e){return Object(m["a"])({url:"/admin/Api/apiDisable",method:"post",data:e})}function _(e){return Object(m["a"])({url:"/admin/Api/apiUnauth",method:"post",data:e})}var y=a("6fad"),x=a.n(y),w={name:"Api",components:{},directives:{permission:u["a"]},data:function(){return{height:680,loading:!1,apiData:[],apiDialog:!1,apiDialogTitle:"",apiProps:{checkStrictly:!0,value:"api_id",label:"api_name"},apiModel:{api_id:"",api_pid:0,api_name:"",api_method:"POST",api_url:"",api_request:'<table border="0" width="100%" cellpadding="0" cellspacing="0" style="text-align:center;"><tbody><tr><th>参数</th><th>类型</th><th>属性</th><th>说明</th><th>示例</th></tr><tr><td>field_name</td><td>string</td><td>选填</td><td>请求参数示例字段</td><td>示例值</td></tr></tbody></table>',api_response:'<table border="0" width="100%" cellpadding="0" cellspacing="0" style="text-align:center;"><tbody><tr><th>参数</th><th>类型</th><th>属性</th><th>说明</th><th>示例</th></tr><tr><td>code</td><td>integer</td><td>必返</td><td>返回码,200成功,401登录失效,404接口地址错误,500服务器错误,其它失败</td><td>200</td></tr><tr><td>msg</td><td>string</td><td>必返</td><td>返回描述</td><td>成功</td></tr><tr><td>data</td><td>array</td><td>必返</td><td>返回数据</td><td></td></tr></tbody></table><p>返回数据data:</p><table border="0" width="100%" cellpadding="0" cellspacing="0" style="text-align:center;"><tbody><tr><th>字段</th><th>类型</th><th>属性</th><th>说明</th><th>示例</th></tr><tr><td>field_name</td><td>string</td><td>选返</td><td>返回数据示例字段</td><td>示例值</td></tr></tbody></table>',api_explain:"",api_sort:200,api_footer:!0},api_request_editor:null,api_response_editor:null,uploadAction:"http://yl.jnbinzang.com/backend.php/admin/Api/apiUpload",uploadHeaders:{AdminToken:Object(d["f"])(),AdminUserId:Object(d["g"])()},apiRules:{api_name:[{required:!0,message:"请输入接口名称",trigger:"blur"}]}}},created:function(){this.height=Object(c["a"])(),this.apiList()},methods:{apiList:function(){var e=this;this.loading=!0,p().then((function(t){e.apiData=t.data.list,e.loading=!1})).catch((function(){e.loading=!1}))},apiRefresh:function(){this.apiList()},apiIsProhibit:function(e){var t=this;this.loading=!0,v({api_id:e.api_id,is_disable:e.is_disable}).then((function(e){t.apiList(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))},apiIsUnauth:function(e){var t=this;this.loading=!0,_({api_id:e.api_id,is_unauth:e.is_unauth}).then((function(e){t.apiList(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))},apiDoc:function(e){var t=this;this.loading=!0,this.apiDialogTitle="接口文档:"+e.api_name,b({api_id:e.api_id}).then((function(e){t.apiReset(e.data),t.apiModel.api_footer=!1,t.apiDialog=!0,t.loading=!1})).catch((function(){t.loading=!1}))},apiAddition:function(e){this.apiDialog=!0,this.apiDialogTitle="接口添加",this.apiModel=this.$options.data().apiModel,e&&(this.apiModel.api_pid=e.api_id)},apiModify:function(e){var t=this;this.loading=!0,this.apiDialogTitle="接口修改:"+e.api_name,h({api_id:e.api_id}).then((function(e){t.apiReset(e.data),t.apiDialog=!0,t.loading=!1})).catch((function(){t.loading=!1}))},apiPidChange:function(e){e&&(this.apiModel.api_pid=e[e.length-1])},apiCancel:function(){this.apiDialog=!1,this.apiReset()},apiSubmit:function(){var e=this;this.$refs["apiRef"].validate((function(t){t&&(e.loading=!0,e.apiModel.api_id?h(e.apiModel,"post").then((function(t){e.apiList(),e.apiReset(),e.apiDialog=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})):f(e.apiModel).then((function(t){e.apiList(),e.apiReset(),e.apiDialog=!1,e.$message.success(t.msg)})).catch((function(){e.loading=!1})))}))},apiReset:function(e){e?(this.apiModel=e,this.apiModel.api_footer=!0):this.apiModel=this.$options.data().apiModel,void 0!==this.$refs["apiRef"]&&this.$refs["apiRef"].resetFields()},DialogOpened:function(){var e=this,t=this,a=x.a.BtnMenu,i=function(e){Object(r["a"])(i,e);var a=Object(s["a"])(i);function i(e){Object(o["a"])(this,i);var t=x.a.$('<div class="w-e-menu" data-title="请求参数模板"><el-button>模板</el-button></div>');return a.call(this,t,e)}return Object(n["a"])(i,[{key:"clickHandler",value:function(){t.api_request_editor.txt.append(t.$options.data().apiModel.api_request)}},{key:"tryChangeActive",value:function(){}}]),i}(a),l=function(e){Object(r["a"])(i,e);var a=Object(s["a"])(i);function i(e){Object(o["a"])(this,i);var t=x.a.$('<div class="w-e-menu" data-title="清空内容"><el-button>清空</el-button></div>');return a.call(this,t,e)}return Object(n["a"])(i,[{key:"clickHandler",value:function(){t.api_request_editor.txt.clear()}},{key:"tryChangeActive",value:function(){}}]),i}(a);this.api_request_editor=new x.a("#api_request"),this.api_request_editor.menus.extend("menuRequestKey",i),this.api_request_editor.config.menus=this.api_request_editor.config.menus.concat("menuRequestKey"),this.api_request_editor.menus.extend("menuClearKey",l),this.api_request_editor.config.menus=this.api_request_editor.config.menus.concat("menuClearKey"),this.api_request_editor.config.uploadImgServer=this.uploadAction,this.api_request_editor.config.uploadImgMaxLength=1,this.api_request_editor.config.uploadImgParams={image_field:"api_request"},this.api_request_editor.config.uploadFileName="image_file",this.api_request_editor.config.uploadImgHeaders=this.uploadHeaders,this.api_request_editor.config.uploadImgHooks={customInsert:function(e,a){200===a.code?e(a.data.image_src):t.$message.error(a.msg)}},this.api_request_editor.config.height=300,this.api_request_editor.config.focus=!1,this.api_request_editor.config.placeholder="",this.api_request_editor.config.onchange=function(t){e.apiModel.api_request=t},this.api_request_editor.create(),this.api_request_editor.txt.html(this.apiModel.api_request);var c=function(e){Object(r["a"])(i,e);var a=Object(s["a"])(i);function i(e){Object(o["a"])(this,i);var t=x.a.$('<div class="w-e-menu" data-title="返回参数模板"><el-button>模板</el-button></div>');return a.call(this,t,e)}return Object(n["a"])(i,[{key:"clickHandler",value:function(){t.api_response_editor.txt.append(t.$options.data().apiModel.api_response)}},{key:"tryChangeActive",value:function(){}}]),i}(a),u=function(e){Object(r["a"])(i,e);var a=Object(s["a"])(i);function i(e){Object(o["a"])(this,i);var t=x.a.$('<div class="w-e-menu" data-title="清空内容"><el-button>清空</el-button></div>');return a.call(this,t,e)}return Object(n["a"])(i,[{key:"clickHandler",value:function(){t.api_response_editor.txt.clear()}},{key:"tryChangeActive",value:function(){}}]),i}(a);this.api_response_editor=new x.a("#api_response"),this.api_response_editor.menus.extend("menuResponseKey",c),this.api_response_editor.config.menus=this.api_response_editor.config.menus.concat("menuResponseKey"),this.api_response_editor.menus.extend("menuResponseClearKey",u),this.api_response_editor.config.menus=this.api_response_editor.config.menus.concat("menuResponseClearKey"),this.api_response_editor.config.uploadImgServer=this.uploadAction,this.api_response_editor.config.uploadImgMaxLength=1,this.api_response_editor.config.uploadImgParams={image_field:"api_response"},this.api_response_editor.config.uploadFileName="image_file",this.api_response_editor.config.uploadImgHeaders=this.uploadHeaders,this.api_response_editor.config.uploadImgHooks={customInsert:function(e,a){200===a.code?e(a.data.image_src):t.$message.error(a.msg)}},this.api_response_editor.config.height=500,this.api_response_editor.config.focus=!1,this.api_response_editor.config.placeholder="",this.api_response_editor.config.onchange=function(t){e.apiModel.api_response=t},this.api_response_editor.create(),this.api_response_editor.txt.html(this.apiModel.api_response),this.apiModel.api_footer?(this.api_response_editor.enable(),this.api_request_editor.enable()):(this.api_response_editor.disable(),this.api_request_editor.disable())},DialogClosed:function(){this.api_request_editor.destroy(),this.api_request_editor=null,this.api_response_editor.destroy(),this.api_response_editor=null},apiDelete:function(e){var t=this;this.$confirm('确定要删除接口 <span style="color:red">'+e.api_name+" </span>吗?","删除:"+e.api_id,{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,g({api_id:e.api_id}).then((function(e){t.apiReset(),t.apiList(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))})).catch((function(){}))}}},k=w,M=a("2877"),$=Object(M["a"])(k,i,l,!1,null,null,null);t["default"]=$.exports},f31b:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-row",{attrs:{gutter:0}},[a("el-col",{attrs:{xs:24,sm:22}},[a("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"日志类型",clearable:""},model:{value:e.userLogQuery.log_type,callback:function(t){e.$set(e.userLogQuery,"log_type",t)},expression:"userLogQuery.log_type"}},[a("el-option",{attrs:{value:1,label:"注册日志"}}),a("el-option",{attrs:{value:2,label:"登录日志"}}),a("el-option",{attrs:{value:3,label:"操作日志"}})],1),a("el-input",{staticClass:"filter-item",staticStyle:{width:"135px"},attrs:{placeholder:"用户账号/昵称",clearable:""},model:{value:e.userLogQuery.user_keyword,callback:function(t){e.$set(e.userLogQuery,"user_keyword",t)},expression:"userLogQuery.user_keyword"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"235px"},attrs:{placeholder:"接口链接/名称",clearable:""},model:{value:e.userLogQuery.api_keyword,callback:function(t){e.$set(e.userLogQuery,"api_keyword",t)},expression:"userLogQuery.api_keyword"}}),a("el-input",{staticClass:"filter-item",staticStyle:{width:"155px"},attrs:{placeholder:"请求IP/地区/ISP",clearable:""},model:{value:e.userLogQuery.request_keyword,callback:function(t){e.$set(e.userLogQuery,"request_keyword",t)},expression:"userLogQuery.request_keyword"}}),a("el-date-picker",{staticClass:"filter-item",staticStyle:{width:"240px"},attrs:{type:"daterange","range-separator":"-","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.userLogQuery.create_time,callback:function(t){e.$set(e.userLogQuery,"create_time",t)},expression:"userLogQuery.create_time"}}),a("el-button",{staticClass:"filter-item",attrs:{type:"primary"},on:{click:function(t){return e.userLogSearch()}}},[e._v("查询")]),a("el-button",{staticClass:"filter-item",on:{click:function(t){return e.userLogRefresh()}}},[e._v("刷新")])],1),a("el-col",{staticStyle:{"text-align":"right"},attrs:{xs:24,sm:2}},[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["admin/UserLog/userLogSta"],expression:"['admin/UserLog/userLogSta']"}],staticClass:"filter-item",attrs:{type:"primary",title:"用户日志统计"},on:{click:e.userLogSta}},[e._v("统计")])],1)],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.userLogData,height:e.height,border:""},on:{"sort-change":e.userLogSort}},[a("el-table-column",{attrs:{prop:"user_log_id",label:"ID","min-width":"100",sortable:"custom",fixed:"left"}}),a("el-table-column",{attrs:{prop:"username",label:"用户账号","min-width":"110","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"nickname",label:"用户昵称","min-width":"110","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"api_url",label:"接口链接","min-width":"235",sortable:"custom","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"api_name",label:"接口名称","min-width":"130","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"request_method",label:"请求方式 ","min-width":"110",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"request_ip",label:"请求IP","min-width":"130",sortable:"custom"}}),a("el-table-column",{attrs:{prop:"request_region",label:"请求地区","min-width":"150","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"request_isp",label:"请求ISP","min-width":"110"}}),a("el-table-column",{attrs:{prop:"create_time",label:"请求时间","min-width":"160",sortable:"custom"}}),a("el-table-column",{attrs:{label:"操作","min-width":"150",align:"right",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.userLogDetail(i)}}},[e._v("详情")]),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.userLogDelete(i)}}},[e._v("删除")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.userLogCount>0,expression:"userLogCount > 0"}],attrs:{total:e.userLogCount,page:e.userLogQuery.page,limit:e.userLogQuery.limit},on:{"update:page":function(t){return e.$set(e.userLogQuery,"page",t)},"update:limit":function(t){return e.$set(e.userLogQuery,"limit",t)},pagination:e.userLogList}}),a("el-dialog",{attrs:{title:e.userLogDialogTitle,visible:e.userLogDialog,top:"1vh","before-close":e.userLogCancel},on:{"update:visible":function(t){e.userLogDialog=t}}},[a("el-form",{ref:"userLogRef",staticClass:"dialog-body",style:{height:e.height+30+"px"},attrs:{rules:e.userLogRules,model:e.userLogModel,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"用户ID",prop:"user_id"}},[a("el-col",{attrs:{span:10}},[a("el-input",{model:{value:e.userLogModel.user_id,callback:function(t){e.$set(e.userLogModel,"user_id",t)},expression:"userLogModel.user_id"}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:4}},[e._v("用户昵称")]),a("el-col",{attrs:{span:10}},[a("el-input",{model:{value:e.userLogModel.nickname,callback:function(t){e.$set(e.userLogModel,"nickname",t)},expression:"userLogModel.nickname"}})],1)],1),a("el-form-item",{attrs:{label:"用户账号",prop:"username"}},[a("el-input",{model:{value:e.userLogModel.username,callback:function(t){e.$set(e.userLogModel,"username",t)},expression:"userLogModel.username"}})],1),a("el-form-item",{attrs:{label:"接口ID",prop:"api_id"}},[a("el-col",{attrs:{span:10}},[a("el-input",{model:{value:e.userLogModel.api_id,callback:function(t){e.$set(e.userLogModel,"api_id",t)},expression:"userLogModel.api_id"}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:4}},[e._v("接口名称")]),a("el-col",{attrs:{span:10}},[a("el-input",{model:{value:e.userLogModel.api_name,callback:function(t){e.$set(e.userLogModel,"api_name",t)},expression:"userLogModel.api_name"}})],1)],1),a("el-form-item",{attrs:{label:"接口链接",prop:"api_url"}},[a("el-input",{model:{value:e.userLogModel.api_url,callback:function(t){e.$set(e.userLogModel,"api_url",t)},expression:"userLogModel.api_url"}})],1),a("el-form-item",{attrs:{label:"请求方式",prop:"request_method"}},[a("el-col",{attrs:{span:10}},[a("el-input",{model:{value:e.userLogModel.request_method,callback:function(t){e.$set(e.userLogModel,"request_method",t)},expression:"userLogModel.request_method"}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:4}},[e._v("请求IP")]),a("el-col",{attrs:{span:10}},[a("el-input",{model:{value:e.userLogModel.request_ip,callback:function(t){e.$set(e.userLogModel,"request_ip",t)},expression:"userLogModel.request_ip"}})],1)],1),a("el-form-item",{attrs:{label:"请求地区",prop:"request_region"}},[a("el-col",{attrs:{span:10}},[a("el-input",{model:{value:e.userLogModel.request_region,callback:function(t){e.$set(e.userLogModel,"request_region",t)},expression:"userLogModel.request_region"}})],1),a("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:4}},[e._v("请求ISP")]),a("el-col",{attrs:{span:10}},[a("el-input",{model:{value:e.userLogModel.request_isp,callback:function(t){e.$set(e.userLogModel,"request_isp",t)},expression:"userLogModel.request_isp"}})],1)],1),a("el-form-item",{attrs:{label:"请求时间",prop:"create_time"}},[a("el-input",{model:{value:e.userLogModel.create_time,callback:function(t){e.$set(e.userLogModel,"create_time",t)},expression:"userLogModel.create_time"}})],1),a("el-form-item",{attrs:{label:"请求参数",prop:"request_param"}},[a("pre",[e._v(e._s(e.userLogModel.request_param))])])],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.userLogCancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.userLogSubmit}},[e._v("确定")])],1)],1)],1)},l=[],o=(a("14d9"),a("98b1")),n=a("333d"),r=a("4381"),s=a("dec9"),c={name:"UserLog",components:{Pagination:n["a"]},directives:{permission:r["a"]},data:function(){return{height:680,loading:!1,userLogData:[],userLogCount:0,userLogQuery:{page:1,limit:13},userLogDialog:!1,userLogDialogTitle:"",userLogModel:{},userLogRules:{}}},created:function(){this.height=Object(o["a"])(),this.userLogList()},methods:{userLogList:function(){var e=this;this.loading=!0,Object(s["c"])(this.userLogQuery).then((function(t){e.userLogData=t.data.list,e.userLogCount=t.data.count,e.loading=!1})).catch((function(){e.loading=!1}))},userLogSearch:function(){this.userLogQuery.page=1,this.userLogList()},userLogRefresh:function(){this.userLogQuery=this.$options.data().userLogQuery,this.userLogList()},userLogSort:function(e){this.userLogQuery.sort_field=e.prop,this.userLogQuery.sort_type="","ascending"===e.order&&(this.userLogQuery.sort_type="asc",this.userLogList()),"descending"===e.order&&(this.userLogQuery.sort_type="desc",this.userLogList())},userLogSta:function(){this.$router.push("/users/user-logsta")},userLogDetail:function(e){var t=this;this.loading=!0,this.userLogDialog=!0,this.userLogDialogTitle="用户日志详情:"+e.user_log_id,Object(s["b"])({user_log_id:e.user_log_id}).then((function(e){t.userLogModelReset(e.data),t.loading=!1})).catch((function(){t.loading=!1}))},userLogDelete:function(e){var t=this;this.$confirm('确定要删除用户日志 <span style="color:red">'+e.user_log_id+" </span>吗?","删除:"+e.user_log_id,{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){t.loading=!0,Object(s["a"])({user_log_id:e.user_log_id}).then((function(e){t.userLogList(),t.userLogModelReset(),t.$message.success(e.msg)})).catch((function(){t.loading=!1}))})).catch((function(){}))},userLogModelReset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.userLogModel=e},userLogCancel:function(){this.userLogDialog=!1,this.userLogModelReset()},userLogSubmit:function(){this.userLogDialog=!1,this.userLogModelReset()}}},u=c,d=a("2877"),m=Object(d["a"])(u,i,l,!1,null,null,null);t["default"]=m.exports},f8dd:function(e,t,a){"use strict";a("9041")},f91d:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("字节转换")])]),a("div",{staticClass:"text item"},[a("el-form",{ref:"byteTranRef",attrs:{model:e.byteTranModel,rules:e.byteTranRules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"比特(b)"}},[a("el-input",{attrs:{type:"number",clearable:""},on:{input:function(t){return e.byteTranValue("b")}},model:{value:e.byteTranModel.b,callback:function(t){e.$set(e.byteTranModel,"b",t)},expression:"byteTranModel.b"}})],1),a("el-form-item",{attrs:{label:"字节(B)"}},[a("el-input",{attrs:{type:"number",clearable:""},on:{input:function(t){return e.byteTranValue("B")}},model:{value:e.byteTranModel.B,callback:function(t){e.$set(e.byteTranModel,"B",t)},expression:"byteTranModel.B"}})],1),a("el-form-item",{attrs:{label:"千字节(KB)"}},[a("el-input",{attrs:{type:"number",clearable:""},on:{input:function(t){return e.byteTranValue("KB")}},model:{value:e.byteTranModel.KB,callback:function(t){e.$set(e.byteTranModel,"KB",t)},expression:"byteTranModel.KB"}})],1),a("el-form-item",{attrs:{label:"兆字节(MB)"}},[a("el-input",{attrs:{type:"number",clearable:""},on:{input:function(t){return e.byteTranValue("MB")}},model:{value:e.byteTranModel.MB,callback:function(t){e.$set(e.byteTranModel,"MB",t)},expression:"byteTranModel.MB"}})],1),a("el-form-item",{attrs:{label:"吉字节(GB)"}},[a("el-input",{attrs:{type:"number",clearable:""},on:{input:function(t){return e.byteTranValue("GB")}},model:{value:e.byteTranModel.GB,callback:function(t){e.$set(e.byteTranModel,"GB",t)},expression:"byteTranModel.GB"}})],1),a("el-form-item",{attrs:{label:"太字节(TB)"}},[a("el-input",{attrs:{type:"number",clearable:""},on:{input:function(t){return e.byteTranValue("TB")}},model:{value:e.byteTranModel.TB,callback:function(t){e.$set(e.byteTranModel,"TB",t)},expression:"byteTranModel.TB"}})],1),a("el-form-item",[a("el-button",{on:{click:function(t){return e.byteTranClear()}}},[e._v("清空")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.byteTranSubmit()}}},[e._v("转换")])],1)],1)],1)])},l=[],o=a("50fc"),n={name:"MixByteTran",components:{},data:function(){return{byteTranModel:{type:"",value:"",b:"",B:"",KB:"",MB:"",GB:"",TB:""},byteTranRules:{}}},created:function(){},methods:{byteTranValue:function(e){this.byteTranModel.type=e,this.byteTranModel.value=this.byteTranModel[e]},byteTranClear:function(){this.byteTranModel=this.$options.data().byteTranModel},byteTranSubmit:function(){var e=this;this.$refs["byteTranRef"].validate((function(t){t&&Object(o["s"])({type:e.byteTranModel.type,value:e.byteTranModel.value}).then((function(t){e.byteTranModel=t.data}))}))}}},r=n,s=(a("2628"),a("2877")),c=Object(s["a"])(r,i,l,!1,null,"302dc58e",null);t["default"]=c.exports},fa54:function(e,t,a){"use strict";a("8a36")},fa59:function(e,t,a){},fd30:function(e,t,a){},feca:function(e,t,a){var i={"./admin/actionRecord/index.vue":"32b0","./admin/adv/adv.vue":"6e03","./admin/adv/adv_data.vue":"c7d6","./admin/article/index.vue":"a593","./admin/base/401.vue":"86db","./admin/base/404.vue":"d573","./admin/base/redirect.vue":"eee0","./admin/category/index.vue":"094a","./admin/comment/index.vue":"dfd4","./admin/config/config.vue":"e559","./admin/dictionary/dictionary.vue":"e50c","./admin/equipment/city.vue":"5ec0","./admin/index/components/StatisticUser.vue":"494c","./admin/index/index.vue":"026f","./admin/intro/index.vue":"5033","./admin/log/log.vue":"afb0","./admin/log/logsta.vue":"c089","./admin/login/login.vue":"162c","./admin/login/logout.vue":"4bd3","./admin/materials/index.vue":"0d48","./admin/menu/menu.vue":"6a0b","./admin/my/components/avatar.vue":"4143","./admin/my/components/edit.vue":"7cb8","./admin/my/components/info.vue":"e0d5","./admin/my/components/log.vue":"2250","./admin/my/components/pwd.vue":"7161","./admin/my/components/setting.vue":"eca7","./admin/my/my.vue":"9323","./admin/nursingHome/index.vue":"e6c6","./admin/role/role.vue":"a7ad","./admin/setting/cache.vue":"31b8","./admin/setting/server.vue":"7115","./admin/setting/token.vue":"5856","./admin/setting/verify.vue":"4b63","./admin/sojourn/city.vue":"7600","./admin/sojourn/index.vue":"b587","./admin/submit/guestbook.vue":"443c","./admin/submit/join.vue":"96e3","./admin/test/test.vue":"8645","./admin/tool/components/MapAmap.vue":"5fd0","./admin/tool/components/MapBaidu.vue":"0784","./admin/tool/components/MapBeidou.vue":"b419","./admin/tool/components/MapSogou.vue":"1586","./admin/tool/components/MapTencent.vue":"89eb","./admin/tool/components/MixByteTran.vue":"f91d","./admin/tool/components/MixIpQuery.vue":"2862","./admin/tool/components/MixQrcode.vue":"6245","./admin/tool/components/MixStrRand.vue":"71fd","./admin/tool/components/MixStrTran.vue":"b124","./admin/tool/components/MixTimeTran.vue":"ae85","./admin/tool/map.vue":"b20b","./admin/tool/mix.vue":"d09b","./admin/unit/index.vue":"4196","./admin/user/user.vue":"e1c4","./api-env/api-env.vue":"dd08","./api/api.vue":"f0a3","./region/region.vue":"aff1","./setting/token.vue":"a555","./setting/verify.vue":"3b4b","./user-log/user-log.vue":"f31b","./user-log/user-logsta.vue":"45ee","./user/user.vue":"b843"};function l(e){var t=o(e);return a(t)}function o(e){if(!a.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}l.keys=function(){return Object.keys(i)},l.resolve=o,e.exports=l,l.id="feca"}}]);