/*! * build: xiaofa-admin * copyright: https://www.lancerdt.com * time: 2025-8-18 10:15:10 */ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["vab-extra"],{"0dca":function(e,t,i){"use strict";i.r(t);var r=i("6955");t["default"]=r["VabCount"]},1341:function(e,t,i){"use strict";i("5413")},"28dc":function(e,t,i){"use strict";i("3e96")},"34d4":function(e,t,i){"use strict";i.r(t);var r=i("45f9");i.d(t,"VabPlayerMp4",(function(){return r["VabPlayerMp4"]})),i.d(t,"VabPlayerHls",(function(){return r["VabPlayerHls"]})),i.d(t,"VabPlayerFlv",(function(){return r["VabPlayerFlv"]}))},"36f3":function(e,t,i){e.exports={"menu-color":"#fff","menu-color-active":"#fff","menu-background":"#282c34","column-second-menu-background":"#fff"}},"3e96":function(e,t,i){},4236:function(e,t,i){"use strict";i.r(t);var r=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(" "+e._s(e.__("上传并保存"))+" ")]),t("el-upload",{attrs:{accept:"image/jpeg,image/gif,image/png",action:"#","auto-upload":!1,"list-type":"picture-card","on-change":e.onChange},scopedSlots:e._u([{key:"default",fn:function(){return[t("el-button",{attrs:{type:"primary"}},[e._v(e._s(e.__("选择图片")))])]},proxy:!0}])})],1)]},proxy:!0}])},[t("el-alert",{attrs:{title:"未保存到数据库,请放心使用,刷新后即可还原到原有状态",type:"success"}}),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)}}},[t("div",{staticClass:"vab-cropper-preview-circle"},[t("img",{attrs:{src:e.value}})]),t("div",{staticClass:"vab-cropper-preview-square"},[t("img",{attrs:{src:e.value}})])])],1)],1)],1)},o=[],a=(i("5db9"),i("38c2")),l=i.n(a),s=i("2f62"),n={name:"VabCropper",components:{VabCropperBeta:l.a},data(){return{dialogVisible:!1,value:"",options:{width:220,height:220},slide:{oriUrl:i("65ba"),preUrl:i("65ba")},timer:null}},methods:{...Object(s["b"])({setAvatar:"user/setAvatar"}),getCropper(e){this.timer&&clearInterval(this.timer),this.timer=setTimeout(()=>{this.slide.preUrl=e[0],this.value=e[0],this.setAvatar(e[0])},10)},onChange(e){this.$refs["vabCropper"].cancelCropper(),this.slide={oriUrl:e.url,preUrl:e.url},this.$refs["vabCropper"].drawImg()},upload(){this.setAvatar(this.value),this.$baseMessage("模拟保存成功","success","vab-hey-message-success"),this.dialogVisible=!1}}},c=n,h=(i("28dc"),i("2877")),u=Object(h["a"])(c,r,o,!1,null,"7f7baab5",null);t["default"]=u.exports},"45eb":function(e,t,i){"use strict";i("9430")},"4a78":function(e,t,i){"use strict";i.r(t);var r=i("5328"),o=i.n(r);i("ff73");t["default"]=o.a},5413:function(e,t,i){},5568:function(e,t,i){"use strict";i("36f3")},"55fd":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"echarts"})},o=[],a=i("313e"),l=i("ba284"),s=i("b047"),n=i.n(s),c=i("406e");const h=["theme","initOptions","autoResize"],u=["manualUpdate","watchShallow"];var d={props:{option:{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.option&&(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.option||{},!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.option||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("option",(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("6bc4"),i("2877")),f=Object(m["a"])(p,r,o,!1,null,null,null);t["default"]=f.exports},"584b":function(e,t,i){"use strict";i.r(t);var r=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(" "+e._s(e.__("关闭"))+" ")]),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)])},o=[],a=i("2ef0"),l=i.n(a),s=i("2f62"),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:"",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","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","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","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("45eb"),i("2877")),u=Object(h["a"])(c,r,o,!1,null,"3aef4cea",null);t["default"]=u.exports},"62ce":function(e,t,i){"use strict";i.r(t);const r=e=>"object"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&1===e.nodeType&&"string"===typeof e.nodeName,o=e=>e!==document.body&&document.body.contains(e),a=e=>{let t=null,i=e;if(!o(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 r=0;r",t},s=(e,t)=>{const i=document.querySelectorAll("input"),r=document.querySelectorAll("textarea"),o=document.querySelectorAll("select");for(let a=0;a{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 r=i.contentWindow||i.contentDocument,o=i.contentDocument||i.contentWindow.document;o.open(),o.write(e),o.close(),t.onload=function(){n(r),setTimeout((function(){document.body.removeChild(t)}),100)}},h=(e,t)=>{let i;t={...t,noPrint:".no-print"},i="string"===typeof e?document.querySelector(e):r(e)?e:e.$el;const o=l(t)+s(i,t);c(o)};t["default"]=h},"63df":function(e,t,i){"use strict";i.r(t);i("beb2");var r=i("d45c"),o=i.n(r);t["default"]=o.a},"6bc4":function(e,t,i){"use strict";i("950f")},9430:function(e,t,i){},"950f":function(e,t,i){},b25d:function(e,t,i){"use strict";i.r(t);var r=i("c8b0");i.d(t,"directive",(function(){return r["directive"]})),i.d(t,"VabContextmenu",(function(){return r["VabContextmenu"]})),i.d(t,"VabContextmenuItem",(function(){return r["VabContextmenuItem"]}));i("a23f")},ba284: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 r=i("cd64"),o=i.n(r);i("bad2");t["default"]=o.a},cbec:function(e,t,i){"use strict";i.r(t);var r=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)},o=[],a={name:"VabAvatarList",props:{avatarList:{type:Array,default:()=>[]}}},l=a,s=(i("1341"),i("2877")),n=Object(s["a"])(l,r,o,!1,null,"28093814",null);t["default"]=n.exports},f5b74:function(e,t,i){"use strict";i.r(t);var r=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,r){return t("el-col",{key:r,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)},o=[],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:{list:e,total:t}}=await Object(a["getIconList"])(this.queryForm);this.queryIcon=e,this.total=t},handleIcon(e){this.icon=e,this.$emit("handle-icon",e)}}},s=l,n=(i("5568"),i("2877")),c=Object(n["a"])(s,r,o,!1,null,null,null);t["default"]=c.exports}}]);