/*! * build: admin-pro * copyright: chuzhixin 1204505056@qq.com * time: 2022-11-22 15:52:37 */ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["extra"],{"02e2":function(e,t,i){},"0dca":function(e,t,i){"use strict";i.r(t);var o=i("db15");t["default"]=o["VabCount"]},"1fda":function(e,t,i){},"202f":function(e,t,i){"use strict";i("75c4")},"34d4":function(e,t,i){"use strict";i.r(t);var o=i("9484");i.d(t,"VabPlayerMp4",(function(){return o["VabPlayerMp4"]})),i.d(t,"VabPlayerHls",(function(){return o["VabPlayerHls"]})),i.d(t,"VabPlayerFlv",(function(){return o["VabPlayerFlv"]}))},4236:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{"close-on-click-modal":!1,title:"头像裁剪",visible:e.dialogVisible,width:"470px"},on:{"update:visible":function(t){e.dialogVisible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[t("div",[t("el-button",{attrs:{type:"primary"},on:{click:e.upload}},[e._v("上传并保存")]),t("el-upload",{ref:"upload",attrs:{accept:"image/jpeg,image/gif,image/png",action:e.action,"auto-upload":!1,data:e.uploadData,"list-type":"picture-card","on-change":e.onChange,"on-error":e.onError,"on-success":e.onSuccess},scopedSlots:e._u([{key:"default",fn:function(){return[t("el-button",{attrs:{type:"primary"}},[e._v("选择图片")])]},proxy:!0}])})],1)]},proxy:!0}])},[t("el-row",[t("el-col",{attrs:{span:24}},[t("vab-cropper-beta",{ref:"vabCropper",attrs:{options:e.options,"origin-img":e.slide.oriUrl,"preview-img":e.slide.preUrl},on:{"get-vab-cropper":function(t){return e.getCropper(arguments)}}})],1)],1)],1)},r=[],a=(i("91fe9"),i("dfe4")),l=i.n(a),s=i("7736"),n=i("f121"),c={action:"",name:"VabCropper",components:{VabCropperBeta:l.a},data(){return{dialogVisible:!1,uploadData:{file_type:"img",type:"headimg"},value:"",options:{width:220,height:220},slide:{oriUrl:i("65ba"),preUrl:i("65ba")},timer:null}},computed:{...Object(s["c"])({avatar:"user/avatar",username:"user/username"})},created(){this.action=n["baseURL"]+"/common/upload"},methods:{...Object(s["b"])({setAvatar:"user/setAvatar"}),showImg(e){this.dialogVisible=!0,this.slide={oriUrl:this.avatar,preUrl:this.avatar},console.log(e,"headimg----")},getCropper(e){this.timer&&clearInterval(this.timer),this.timer=setTimeout(()=>{this.slide.preUrl=e[0],this.value=e[0],console.log(e,"--------"),this.setAvatar(e[0])},10)},onSuccess(e){console.log(e,"response"),this.slide={oriUrl:e.data.url,preUrl:e.data.url},this.action=e.data.url,this.setAvatar(e.data.url),console.log(""+this.avatar,"link1"),console.log(this.$store,"link1"),this.$emit("fetch-data",this.action)},onError(){console.log("err")},onChange(e){this.slide={oriUrl:e.url,preUrl:e.url},console.log(e,"slide--file"),this.$refs["vabCropper"].drawImg()},upload(){this.$refs.upload.submit(),console.log(this.action,"this.action111"),this.dialogVisible=!1}}},h=c,u=(i("4fd0"),i("0b56")),d=Object(u["a"])(h,o,r,!1,null,"c7d1aec4",null);t["default"]=d.exports},"4a78":function(e,t,i){"use strict";i.r(t);var o=i("5e5a"),r=i.n(o);i("1a16");t["default"]=r.a},"4fd0":function(e,t,i){"use strict";i("1fda")},"55fd":function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"echarts"})},r=[],a=i("2228"),l=i("ba28"),s=i("c81a"),n=i.n(s),c=i("f9e3");const h=["theme","initOptions","autoResize"],u=["manualUpdate","watchShallow"];var d={props:{options:{type:Object,default:()=>{}},theme:{type:[String,Object],default:()=>{}},initOptions:{type:Object,default:()=>{}},group:{type:String,default:""},autoResize:{type:Boolean,default:!0},watchShallow:{type:Boolean,default:!1},manualUpdate:{type:Boolean,default:!1}},data(){return{lastArea:0}},watch:{group(e){this.chart.group=e}},created(){this.initOptionsWatcher(),h.forEach(e=>{this.$watch(e,()=>{this.refresh()},{deep:!0})}),u.forEach(e=>{this.$watch(e,()=>{this.initOptionsWatcher(),this.refresh()})})},mounted(){this.options&&(a["g"]("vab-echarts-theme",l),this.init())},activated(){this.autoResize&&this.chart&&this.chart.resize()},destroyed(){this.chart&&this.destroy()},methods:{mergeOptions(e,t,i){this.manualUpdate&&(this.manualOptions=e),this.chart?this.delegateMethod("setOption",e,t,i):this.init(e)},appendData(e){this.delegateMethod("appendData",e)},resize(e){this.delegateMethod("resize",e)},dispatchAction(e){this.delegateMethod("dispatchAction",e)},convertToPixel(e,t){return this.delegateMethod("convertToPixel",e,t)},convertFromPixel(e,t){return this.delegateMethod("convertFromPixel",e,t)},containPixel(e,t){return this.delegateMethod("containPixel",e,t)},showLoading(e,t){this.delegateMethod("showLoading",e,t)},hideLoading(){this.delegateMethod("hideLoading")},getDataURL(e){return this.delegateMethod("getDataURL",e)},getConnectedDataURL(e){return this.delegateMethod("getConnectedDataURL",e)},clear(){this.delegateMethod("clear")},dispose(){this.delegateMethod("dispose")},delegateMethod(e,...t){return this.chart||this.init(),this.chart[e](...t)},delegateGet(e){return this.chart||this.init(),this.chart[e]()},getArea(){return this.$el.offsetWidth*this.$el.offsetHeight},init(e){if(this.chart)return;const t=a["e"](this.$el,this.theme,this.initOptions);this.group&&(t.group=this.group),t.setOption(e||this.manualOptions||this.options||{},!0),Object.keys(this.$listeners).forEach(e=>{const i=this.$listeners[e];0===e.indexOf("zr:")?t.getZr().on(e.slice(3),i):t.on(e,i)}),this.autoResize&&(this.lastArea=this.getArea(),this.__resizeHandler=n()(()=>{0===this.lastArea?(this.mergeOptions({},!0),this.resize(),this.mergeOptions(this.options||this.manualOptions||{},!0)):this.resize(),this.lastArea=this.getArea()},100,{leading:!0}),Object(c["a"])(this.$el,this.__resizeHandler)),Object.defineProperties(this,{width:{configurable:!0,get:()=>this.delegateGet("getWidth")},height:{configurable:!0,get:()=>this.delegateGet("getHeight")},isDisposed:{configurable:!0,get:()=>!!this.delegateGet("isDisposed")},computedOptions:{configurable:!0,get:()=>this.delegateGet("getOption")}}),this.chart=t},initOptionsWatcher(){this.__unwatchOptions&&(this.__unwatchOptions(),this.__unwatchOptions=null),this.manualUpdate||(this.__unwatchOptions=this.$watch("options",(e,t)=>{!this.chart&&e?this.init():this.chart.setOption(e,e!==t)},{deep:!this.watchShallow}))},destroy(){this.autoResize&&Object(c["b"])(this.$el,this.__resizeHandler),this.dispose(),this.chart=null},refresh(){this.chart&&(this.destroy(),this.init())}},connect(e){"string"!==typeof e&&(e=e.map(e=>e.chart)),a["a"](e)},disconnect(e){a["b"](e)},getMap(e){return a["c"](e)},registerMap(e,t,i){a["f"](e,t,i)},graphic:a["d"]},p=d,m=(i("9257"),i("0b56")),g=Object(m["a"])(p,o,r,!1,null,null,null);t["default"]=g.exports},"584b":function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{"before-close":e.handleClose,"close-on-click-modal":!1,title:e.title,visible:e.dialogFormVisible,width:"909px"},on:{"update:visible":function(t){e.dialogFormVisible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[t("div",{staticStyle:{position:"relative","padding-right":"15px","text-align":"right"}},[e.show?t("div",{staticStyle:{position:"absolute",top:"10px",left:"15px",color:"#999"}},[e._v(" 正在上传中... 当前上传成功数:"+e._s(e.imgSuccessNum)+"张 当前上传失败数:"+e._s(e.imgErrorNum)+"张 ")]):e._e(),t("el-button",{attrs:{type:"primary"},on:{click:e.handleClose}},[e._v("关闭")]),t("el-button",{staticStyle:{"margin-left":"10px"},attrs:{loading:e.loading,size:"small",type:"success"},on:{click:e.submitUpload}},[e._v(" 开始上传 ")])],1)]},proxy:!0}])},[t("div",{staticClass:"upload"},[t("el-alert",{attrs:{closable:!1,title:`支持jpg、jpeg、png格式,单次可最多选择${e.limit}张图片,每张不可大于${e.size}M,如果大于${e.size}M会自动为您过滤`,type:"info"}}),t("el-upload",{ref:"upload",staticClass:"upload-content",attrs:{accept:"image/png, image/jpeg",action:e.action,"auto-upload":!1,"close-on-click-modal":!1,data:e.data,"file-list":e.fileList,headers:e.headers,limit:e.limit,"list-type":"picture-card",multiple:!0,name:e.name,"on-change":e.handleChange,"on-error":e.handleError,"on-exceed":e.handleExceed,"on-preview":e.handlePreview,"on-progress":e.handleProgress,"on-remove":e.handleRemove,"on-success":e.handleSuccess},scopedSlots:e._u([{key:"trigger",fn:function(){return[t("i",{staticClass:"el-icon-plus"})]},proxy:!0}])},[t("el-dialog",{attrs:{"append-to-body":"",title:"查看大图",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",[t("el-image",{attrs:{src:e.dialogImageUrl}})],1)])],1)],1)])},r=[],a=i("7c98"),l=i.n(a),s=i("7736"),n={name:"VabUpload",props:{url:{type:String,default:"/upload",required:!0},name:{type:String,default:"file",required:!0},limit:{type:Number,default:50,required:!0},size:{type:Number,default:1,required:!0}},data(){return{show:!1,loading:!1,dialogVisible:!1,dialogImageUrl:"",action:"https://vab-unicloud-3a9da9.service.tcloudbase.com/upload",headers:{},fileList:[],picture:"picture",imgNum:0,imgSuccessNum:0,imgErrorNum:0,typeList:null,title:"上传",dialogFormVisible:!1,data:{}}},computed:{...Object(s["c"])({token:"user/token"}),percentage(){return 0===this.allImgNum?0:100*l.a.round(this.imgNum/this.allImgNum,2)}},created(){this.headers["Authorization"]="Bearer "+this.token},methods:{submitUpload(){this.$refs.upload.submit()},handleProgress(){this.loading=!0,this.show=!0},handleChange(e,t){e.size>1048576*this.size?(t.filter(t=>t!==e),this.fileList=t):this.allImgNum=t.length},handleSuccess(e,t,i){this.imgNum=this.imgNum+1,this.imgSuccessNum=this.imgSuccessNum+1,i.length===this.imgNum&&setTimeout(()=>{this.$baseMessage(`上传完成! 共上传${i.length}张图片`,"success",!1,"vab-hey-message-success")},1e3),setTimeout(()=>{this.loading=!1,this.show=!1},1e3)},handleError(e,t){this.imgNum=this.imgNum+1,this.imgErrorNum=this.imgErrorNum+1,this.$baseMessage(`文件[${t.raw.name}]上传失败,文件大小为${l.a.round(t.raw.size/1024,0)}KB`,"error",!1,"vab-hey-message-error"),setTimeout(()=>{this.loading=!1,this.show=!1},1e3)},handleRemove(){this.imgNum=this.imgNum-1,this.allNum=this.allNum-1},handlePreview(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleExceed(e){this.$baseMessage(`当前限制选择 ${this.limit} 个文件,本次选择了\n ${e.length}\n 个文件`,"error",!1,"vab-hey-message-error")},handleShow(e){this.title="上传",this.data=e,this.dialogFormVisible=!0},handleClose(){this.fileList=[],this.picture="picture",this.allImgNum=0,this.imgNum=0,this.imgSuccessNum=0,this.imgErrorNum=0,this.headers["Authorization"]="Bearer "+this.token,this.dialogFormVisible=!1}}},c=n,h=(i("9635"),i("0b56")),u=Object(h["a"])(c,o,r,!1,null,"c18eff02",null);t["default"]=u.exports},"5fc8":function(e,t,i){},"62ce":function(e,t,i){"use strict";i.r(t);const o=e=>"object"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&1===e.nodeType&&"string"===typeof e.nodeName,r=e=>e!==document.body&&document.body.contains(e),a=e=>{let t=null,i=e;if(!r(i))return i;while(i){if(t){const e=i.cloneNode(!1);e.appendChild(t),t=e}else t=i.cloneNode(!0);i=i.parentElement}return t},l=e=>{let t="";const i=document.querySelectorAll("style,link");for(let o=0;o",t},s=e=>{const t=document.querySelectorAll("input"),i=document.querySelectorAll("textarea"),o=document.querySelectorAll("select");for(let r=0;r{try{setTimeout((function(){e.focus();try{e.document.execCommand("print",!1,null)||e.print()}catch(t){e.print()}e.close()}),10)}catch(t){console.log("err",t)}},c=e=>{const t=document.createElement("iframe"),i=document.body.appendChild(t);t.id="myIframe",t.setAttribute("style","position:absolute;width:0;height:0;top:-10px;left:-10px;");const o=i.contentWindow||i.contentDocument,r=i.contentDocument||i.contentWindow.document;r.open(),r.write(e),r.close(),t.onload=function(){n(o),setTimeout((function(){document.body.removeChild(t)}),100)}},h=(e,t)=>{let i;t={...t,noPrint:".no-print"},i="string"===typeof e?document.querySelector(e):o(e)?e:e.$el;const r=l(t)+s(i);c(r)};t["default"]=h},"63df":function(e,t,i){"use strict";i.r(t);i("39e1");var o=i("da1f"),r=i.n(o);t["default"]=r.a},"75c4":function(e,t,i){},9257:function(e,t,i){"use strict";i("02e2")},9635:function(e,t,i){"use strict";i("5fc8")},af6b:function(e,t,i){"use strict";i("fd22")},b25d:function(e,t,i){"use strict";i.r(t);var o=i("ca81");i.d(t,"directive",(function(){return o["directive"]})),i.d(t,"VabContextmenu",(function(){return o["VabContextmenu"]})),i.d(t,"VabContextmenuItem",(function(){return o["VabContextmenuItem"]}));i("5274")},ba28:function(e){e.exports=JSON.parse('{"color":["#1890FF","#36CBCB","#4ECB73","#FBD437","#F2637B","#975FE5"],"backgroundColor":"rgba(252,252,252,0)","textStyle":{},"title":{"textStyle":{"color":"#666666"},"subtextStyle":{"color":"#999999"}},"line":{"itemStyle":{"borderWidth":"2"},"lineStyle":{"normal":{"width":"3"}},"symbolSize":"8","symbol":"emptyCircle","smooth":false},"radar":{"itemStyle":{"borderWidth":"2"},"lineStyle":{"normal":{"width":"3"}},"symbolSize":"8","symbol":"emptyCircle","smooth":false},"bar":{"itemStyle":{"barBorderWidth":0,"barBorderColor":"#ccc"}},"pie":{"itemStyle":{"borderWidth":0,"borderColor":"#ccc"}},"scatter":{"itemStyle":{"borderWidth":0,"borderColor":"#ccc"}},"boxplot":{"itemStyle":{"borderWidth":0,"borderColor":"#ccc"}},"parallel":{"itemStyle":{"borderWidth":0,"borderColor":"#ccc"}},"sankey":{"itemStyle":{"borderWidth":0,"borderColor":"#ccc"}},"funnel":{"itemStyle":{"borderWidth":0,"borderColor":"#ccc"}},"gauge":{"itemStyle":{"borderWidth":0,"borderColor":"#ccc"}},"candlestick":{"itemStyle":{"color":"#e6a0d2","color0":"transparent","borderColor":"#e6a0d2","borderColor0":"#1890FF","borderWidth":"2"}},"graph":{"itemStyle":{"borderWidth":0,"borderColor":"#ccc"},"lineStyle":{"normal":{"width":"1","color":"#cccccc"}},"symbolSize":"8","symbol":"emptyCircle","smooth":false,"color":["#1890FF","#36CBCB","#4ECB73","#FBD437","#F2637B","#975FE5"],"label":{"color":"#ffffff"}},"map":{"itemStyle":{"areaColor":"#eeeeee","borderColor":"#aaaaaa","borderWidth":0.5},"label":{"color":"#ffffff"}},"geo":{"itemStyle":{"areaColor":"#eeeeee","borderColor":"#aaaaaa","borderWidth":0.5},"label":{"color":"#ffffff"}},"categoryAxis":{"axisLine":{"show":true,"lineStyle":{"color":"#cccccc"}},"axisTick":{"show":false,"lineStyle":{"color":"#333"}},"axisLabel":{"show":true,"color":"#999999"},"splitLine":{"show":true,"lineStyle":{"color":["#eeeeee"]}},"splitArea":{"show":false,"areaStyle":{"color":["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},"valueAxis":{"axisLine":{"show":true,"lineStyle":{"color":"#cccccc"}},"axisTick":{"show":true,"lineStyle":{"color":"#cccccc"}},"axisLabel":{"show":true,"color":"#999999"},"splitLine":{"show":true,"lineStyle":{"color":["#eeeeee"]}},"splitArea":{"show":false,"areaStyle":{"color":["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},"logAxis":{"axisLine":{"show":true,"lineStyle":{"color":"#cccccc"}},"axisTick":{"show":false,"lineStyle":{"color":"#333"}},"axisLabel":{"show":true,"color":"#999999"},"splitLine":{"show":true,"lineStyle":{"color":["#eeeeee"]}},"splitArea":{"show":false,"areaStyle":{"color":["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},"timeAxis":{"axisLine":{"show":true,"lineStyle":{"color":"#cccccc"}},"axisTick":{"show":false,"lineStyle":{"color":"#333"}},"axisLabel":{"show":true,"color":"#999999"},"splitLine":{"show":true,"lineStyle":{"color":["#eeeeee"]}},"splitArea":{"show":false,"areaStyle":{"color":["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},"toolbox":{"iconStyle":{"borderColor":"#999999"}},"legend":{"textStyle":{"color":"#999999"}},"tooltip":{"axisPointer":{"lineStyle":{"color":"#ffffff","width":1},"crossStyle":{"color":"#ffffff","width":1}}},"timeline":{"lineStyle":{"color":"#4ECB73","width":1},"itemStyle":{"color":"#4ECB73","borderWidth":1},"controlStyle":{"color":"#4ECB73","borderColor":"#4ECB73","borderWidth":0.5},"checkpointStyle":{"color":"#1890FF","borderColor":"rgba(63,177,227,0.15)"},"label":{"color":"#4ECB73"}},"visualMap":{"color":["#1890FF","#afe8ff"]},"dataZoom":{"backgroundColor":"rgba(255,255,255,0)","dataBackgroundColor":"rgba(222,222,222,1)","fillerColor":"rgba(114,230,212,0.25)","handleColor":"#cccccc","handleSize":"100%","textStyle":{"color":"#999999"}},"markPoint":{"label":{"color":"#ffffff"}}}')},cb7d:function(e,t,i){"use strict";i.r(t);var o=i("05eb"),r=i.n(o);i("1d57");t["default"]=r.a},cbec:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"vab-avatar-list"},e._l(e.avatarList,(function(e,i){return t("el-tooltip",{key:i,attrs:{content:e.username,effect:"dark",placement:"top-start"}},[t("el-avatar",{attrs:{src:e.avatar}})],1)})),1)},r=[],a={name:"VabAvatarList",props:{avatarList:{type:Array,default:()=>[]}}},l=a,s=(i("202f"),i("0b56")),n=Object(s["a"])(l,o,r,!1,null,"28093814",null);t["default"]=n.exports},f5b7:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e._self._c;return t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:24}},[t("vab-query-form",[t("vab-query-form-top-panel",[t("el-form",{attrs:{inline:!0,"label-width":"0"},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-form-item",{attrs:{label:""}},[t("el-input",{model:{value:e.queryForm.title,callback:function(t){e.$set(e.queryForm,"title",t)},expression:"queryForm.title"}})],1),t("el-form-item",{attrs:{"label-width":"0"}},[t("el-button",{attrs:{"native-type":"submit",type:"primary"},on:{click:e.queryData}},[e._v(" 查询 ")])],1)],1)],1)],1)],1),e._l(e.queryIcon,(function(i,o){return t("el-col",{key:o,attrs:{span:6}},[t("el-card",{attrs:{shadow:"hover"},nativeOn:{click:function(t){return e.handleIcon(i)}}},[t("vab-icon",{attrs:{icon:i}})],1)],1)})),t("el-col",{attrs:{span:24}},[t("el-pagination",{attrs:{background:e.background,"current-page":e.queryForm.pageNo,layout:e.layout,"page-size":e.queryForm.pageSize,total:e.total},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)],2)},r=[],a=i("878e"),l={name:"VabIconSelector",data(){return{icon:"24-hours-fill",layout:"total, prev, next",total:0,background:!0,height:0,selectRows:"",queryIcon:[],queryForm:{pageNo:1,pageSize:16,title:""}}},created(){this.fetchData()},methods:{handleSizeChange(e){this.queryForm.pageSize=e,this.fetchData()},handleCurrentChange(e){this.queryForm.pageNo=e,this.fetchData()},queryData(){this.queryForm.pageNo=1,this.fetchData()},async fetchData(){const{data:e}=await Object(a["getIconList"])(this.queryForm),{list:t,total:i}=e;this.queryIcon=t,this.total=i},handleIcon(e){this.icon=e,this.$emit("handle-icon",e)}}},s=l,n=(i("af6b"),i("0b56")),c=Object(n["a"])(s,o,r,!1,null,null,null);t["default"]=c.exports},fd22:function(e,t,i){e.exports={"menu-color":"rgba(255,255,255,.95)","menu-color-active":"rgba(255,255,255,.95)","menu-background":"#282c34","column-second-menu-background":"#fff"}}}]);