(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(t,e,n){t.exports=n("56d7")},"0247":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-Iphone",use:"icon-Iphone-usage",viewBox:"0 0 20 20",content:'\n\n\n\n'});r.a.add(s);e["default"]=s},"0316":function(t,e,n){"use strict";n("5cf3")},1089:function(t,e,n){},1650:function(t,e,n){"use strict";n("b9f6")},"18f0":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});r.a.add(s);e["default"]=s},"1b39":function(t,e,n){},"1da7":function(t,e,n){},2474:function(t,e,n){},"260f":function(t,e,n){},"2a3d":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});r.a.add(s);e["default"]=s},"2b29":function(t,e,n){"use strict";n("b17a")},"2b4f":function(t,e,n){},"30c3":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});r.a.add(s);e["default"]=s},"36ec":function(t,e,n){},"3c5f":function(t,e,n){},4360:function(t,e,n){"use strict";var a=n("ba49"),i=n("8327"),o=(n("452e"),{sidebar:function(t){return t.app.sidebar},device:function(t){return t.app.device},token:function(t){return t.user.token},avatar:function(t){return t.user.avatar},name:function(t){return t.user.name},rolesTree:function(t){return t.user.rolesTree}}),r=o,s=n("4314"),l=n.n(s),c={sidebar:{opened:!l.a.get("sidebarStatus")||!!+l.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},u={TOGGLE_SIDEBAR:function(t){t.sidebar.opened=!t.sidebar.opened,t.sidebar.withoutAnimation=!1,t.sidebar.opened?(console.log(111),l.a.set("sidebarStatus",1)):(console.log(2322),l.a.set("sidebarStatus",0))},CLOSE_SIDEBAR:function(t,e){l.a.set("sidebarStatus",0),t.sidebar.opened=!1,t.sidebar.withoutAnimation=e},TOGGLE_DEVICE:function(t,e){t.device=e}},d={toggleSideBar:function(t){var e=t.commit;e("TOGGLE_SIDEBAR")},closeSideBar:function(t,e){var n=t.commit,a=e.withoutAnimation;n("CLOSE_SIDEBAR",a)},toggleDevice:function(t,e){var n=t.commit;n("TOGGLE_DEVICE",e)}},p={namespaced:!0,state:c,mutations:u,actions:d},f=n("83d6"),h=n.n(f),m=h.a.showSettings,b=h.a.fixedHeader,v=h.a.sidebarLogo,g={showSettings:m,fixedHeader:b,sidebarLogo:v},w={CHANGE_SETTING:function(t,e){var n=e.key,a=e.value;t.hasOwnProperty(n)&&(t[n]=a)}},y={changeSetting:function(t,e){var n=t.commit;n("CHANGE_SETTING",e)}},_={namespaced:!0,state:g,mutations:w,actions:y},x=(n("90c8"),n("bd1a"),n("b775"));function C(t){return Object(x["a"])({url:"/login",method:"post",data:t})}var k=n("5f87"),O=n("a18c"),S=n("067c"),E=function(){return{token:Object(k["a"])(),name:"",avatar:"",rolesTree:[]}},j=E(),A={RESET_STATE:function(t){Object.assign(t,E())},SET_TOKEN:function(t,e){t.token=e},SET_ROLESTREE:function(t,e){t.rolesTree=e},SET_NAME:function(t,e){t.name=e},SET_AVATAR:function(t,e){t.avatar=e}},T={login:function(t,e){var n=t.commit,a=e.username,i=e.password,o=e.code;return new Promise((function(t,e){C({username:a.trim(),password:i,code:o}).then((function(e){var a=e.data;console.log(a,"login"),Object(S["Notification"])({title:"成功",message:"欢迎登陆~",type:"success"}),n("SET_TOKEN",a.token),Object(k["c"])(a.token),t()})).catch((function(t){e(t)}))}))},logout:function(t){var e=t.commit;t.state;return new Promise((function(t,n){Object(k["b"])(),Object(O["b"])(),e("RESET_STATE"),t()}))},resetToken:function(t){var e=t.commit;return new Promise((function(t){Object(k["b"])(),e("RESET_STATE"),t()}))}},M={namespaced:!0,state:j,mutations:A,actions:T};a["default"].use(i["a"]);var P=new i["a"].Store({modules:{app:p,settings:_,user:M},getters:r});e["a"]=P},"47f1":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});r.a.add(s);e["default"]=s},"4df5":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});r.a.add(s);e["default"]=s},"4e2f":function(t,e,n){},"51ff":function(t,e,n){var a={"./Android.svg":"62c8","./Apple.svg":"f3bb","./Devices.svg":"e9d5","./Iphone.svg":"0247","./Remind.svg":"a6eb","./dashboard.svg":"f782","./empt.svg":"6110","./example.svg":"30c3","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./link.svg":"18f0","./nested.svg":"dcf8","./password.svg":"2a3d","./phone.svg":"dd82","./table.svg":"47f1","./tree.svg":"93cd","./type.svg":"f4c4","./user.svg":"b3b5","./useragency.svg":"86e5"};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}i.keys=function(){return Object.keys(a)},i.resolve=o,t.exports=i,i.id="51ff"},"56d7":function(t,e,n){"use strict";n.r(e);n("d299"),n("099a"),n("0b67"),n("5f41");var a=n("ba49"),i=(n("d6a9"),n("067c")),o=n.n(i),r=(n("f0ef"),n("4c1e")),s=n.n(r),l=(n("b20f"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)}),c=[],u={name:"App"},d=u,p=(n("0316"),n("2410")),f=Object(p["a"])(d,l,c,!1,null,null,null),h=f.exports,m=n("4360"),b=n("a18c"),v=(n("4cc3"),n("90c8"),n("6e0d"),n("eb9e"),n("3399"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.isExternal?n("div",t._g({staticClass:"svg-external-icon svg-icon",style:t.styleExternalIcon},t.$listeners)):n("svg",t._g({class:t.svgClass,attrs:{"aria-hidden":"true"}},t.$listeners),[n("use",{attrs:{"xlink:href":t.iconName}})])}),g=[],w=n("61f7"),y={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(w["a"])(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},_=y,x=(n("2b29"),Object(p["a"])(_,v,g,!1,null,"f9f7fefc",null)),C=x.exports;a["default"].component("svg-icon",C);var k=n("51ff"),O=function(t){return t.keys().map(t)};O(k);var S=n("2510"),E=n("5a74"),j=(n("452e"),n("e44a")),A=n.n(j),T=(n("50e8"),n("5f87")),M=(n("e168"),n("83d6")),P=n.n(M),V=P.a.title||"Vue Admin Template";function D(t){return t?"".concat(t," - ").concat(V):"".concat(V)}A.a.configure({showSpinner:!1});var L=["/login"];b["a"].beforeEach(function(){var t=Object(E["a"])(Object(S["a"])().m((function t(e,n,a){var o,r,s;return Object(S["a"])().w((function(t){while(1)switch(t.p=t.n){case 0:if(A.a.start(),document.title=D(e.meta.title),o=Object(T["a"])(),!o){t.n=6;break}if("/login"!==e.path){t.n=1;break}a({path:"/"}),A.a.done(),t.n=5;break;case 1:if(r=m["a"].getters.name,!r){t.n=2;break}a(),t.n=5;break;case 2:t.p=2,a(),t.n=5;break;case 3:return t.p=3,s=t.v,t.n=4,m["a"].dispatch("user/resetToken");case 4:i["Message"].error(s||"Has Error"),a("/login?redirect=".concat(e.path)),A.a.done();case 5:t.n=7;break;case 6:-1!==L.indexOf(e.path)?a():(a("/login?redirect=".concat(e.path)),A.a.done());case 7:return t.a(2)}}),t,null,[[2,3]])})));return function(e,n,a){return t.apply(this,arguments)}}()),b["a"].afterEach((function(){A.a.done()}));var B=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ym-table",style:t.customStyle},[n("div",{staticClass:"table-opts"},[t._t("table-opts-left"),t.tableOptsJudge("add")?n("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:t.handleAddRowItem}},[t._v(" 新增 ")]):t._e(),t.tableOptsJudge("import")?n("Excel2Table",{attrs:{options:t.tableOpts.import,apis:t.apis},on:{callback:t.handleTableImportCallback}}):t._e(),t.tableOptsJudge("download")?n("a",{staticClass:"el-button el-button--small",attrs:{href:t.comDownloadUrl,download:""}},[n("i",{staticClass:"el-icon-download"}),t._v(" 模板下载 ")]):t._e(),t.tableOptsJudge("export")?n("Table2Excel",{ref:"table2Excel",attrs:{options:t.tableOpts.export,"thead-map":t.tableOpts.export.theadMap,"thead-props":t.tableOpts.export.theadProps,"base-api":t.tableOpts.export.baseApi,"data-name":t.tableOpts.export.dataName,"tfoot-data":t.tableOpts.export.tfootData},on:{click:function(e){return t.handleExport()}}}):t._e(),t.tableOptsJudge("batchDelete")?n("el-tooltip",{attrs:{disabled:t.delTooltipAble,"popper-class":"button-del-tooltip",effect:"dark",content:"请选择要删除的数据",placement:"top"}},[t.selection?n("el-button",{attrs:{icon:"el-icon-delete",size:"small",loading:t.batchDeleteLoading,disabled:t.deleteLoading},on:{click:function(e){return e.stopPropagation(),t.handleBatchDelete()}}},[t._v("批量删除 ")]):t._e()],1):t._e(),t._t("table-opts"),n("div",{staticClass:"table-opts-right"},[t._t("table-opts-right")],2)],2),t.alertTip?n("el-alert",{attrs:{type:"warning","show-icon":"",title:t.alertTip,closable:!1}}):t._e(),t.columns.length>0?n("el-table",t._g(t._b({directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,ref:"table"+t.tableKey,style:{width:"100%"},attrs:{id:"listTable"+t.tableKey,border:!1,"element-loading-text":"Loading","highlight-current-row":"",stripe:!1,height:"100%",data:t.listData},on:{"selection-change":t.handleSelectionChange}},"el-table",t.$attrs,!1),t.$listeners),[t.selection?n("el-table-column",{attrs:{type:"selection",width:"60",fixed:"left",align:"center",selectable:t.selectableFunc}}):t._e(),t.index?n("el-table-column",{attrs:{label:"序号","label-class-name":"indexClass","min-width":"80px",type:"index",fixed:"left",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.limit*(t.page-1)+(e.$index+1))+" ")]}}],null,!1,814819778)}):t._e(),t._l(t.columns,(function(e,a){return n("el-table-column",{key:a,attrs:{label:e.label,prop:e.prop,width:e.image?"100px":e.width,"min-width":"100px","max-width":"300px",align:"center",fixed:e.fixed},scopedSlots:t._u([{key:"default",fn:function(a){return e.children?void 0:[t._t(e.prop,[n("div",{class:{link:"link"===e.type},staticStyle:{"text-align":"center"},on:{mouseover:function(e){return e.stopPropagation(),t.handleMouseOver(e)}}},[n("el-tooltip",{attrs:{disabled:!t.showOverflowTooltip,"popper-class":"ym-table-tooltip",placement:"top",effect:"dark"}},[n("div",{staticClass:"ym-table-tooltip-content",attrs:{slot:"content"},domProps:{innerHTML:t._s(e.method?e.method(a.row):a.row[e.prop])},slot:"content"}),e.html?n("p",{domProps:{innerHTML:t._s(e.method?e.method(a.row):a.row[e.prop])}}):e.svgIcon?n("svg-icon",{staticClass:"type_icon",attrs:{"icon-class":e.method?e.method(a.row):a.row[e.prop]}}):e.image?n("div",[0===t.imageUrl(a.row[e.prop]).length?n("span",[t._v("--")]):n("el-image",{staticStyle:{width:"80px",height:"80px"},attrs:{"scroll-container":"#listTable"+t.tableKey+" .el-table__body-wrapper",lazy:!0,src:t.imageUrl(a.row[e.prop])[0],"preview-src-list":t.imageUrl(a.row[e.prop])}})],1):e.video?n("div",[""===a.row[e.prop]?n("span",[t._v("--")]):n("video",{staticStyle:{width:"150px",height:"80px"},attrs:{controls:"",src:a.row[e.prop]}},[n("source",{attrs:{src:a.row[e.prop],type:"video/mp4"}})])]):e.switch?n("div",[n("el-switch",{attrs:{disabled:!!e.disabled&&e.disabled(a.row),"active-color":"#13ce66","inactive-color":"#e2e2e3"},on:{change:function(t){e.switchChange&&e.switchChange(a.row)}},model:{value:a.row[e.prop],callback:function(n){t.$set(a.row,e.prop,n)},expression:"scope.row[item.prop]"}})],1):e.method?n("p",{attrs:{contenteditable:"false",celleditable:e.input},on:{dblclick:function(n){return t.handleDbclickCell(n,e.input)},blur:function(n){return t.handleCellBlur(n,a.row,e)}}},[t._v(" "+t._s(e.method(a.row))+" ")]):e.options?n("p",[t._v(" "+t._s(t.renderOptions(a.row[e.prop],e.options))+" ")]):n("p",{attrs:{contenteditable:"false",celleditable:e.input},on:{dblclick:function(n){return t.handleDbclickCell(n,e.input)},blur:function(n){return t.handleCellBlur(n,a.row,e)}}},[t._v(" "+t._s(t.dealWithValue(a.row[e.prop]||"--"))+" ")])],1)],1)],{row:a.row})]}}],null,!0)},[n("template",{slot:"header"},[n("span",{domProps:{innerHTML:t._s(e.label)}})]),e.children?[t._l(e.children,(function(i){return[n("el-table-column",{attrs:{width:i.width||i.image?"100px":"","show-overflow-tooltip":!0,align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){var o=a.row;return[t._t(i.prop,[n("div",{class:{link:"link"===i.type},staticStyle:{"text-align":"center"},on:{mouseover:function(e){return e.stopPropagation(),t.handleMouseOver(e)}}},[n("el-tooltip",{attrs:{disabled:!t.showOverflowTooltip,"popper-class":"ym-table-tooltip",placement:"top",effect:"dark"}},[n("div",{staticClass:"ym-table-tooltip-content",attrs:{slot:"content"},domProps:{innerHTML:t._s(e.method?e.method(o):o[i.prop])},slot:"content"}),i.html?n("p",{domProps:{innerHTML:t._s(o[i.prop])}}):i.image?n("div",[0===t.imageUrl(o[i.prop]).length?n("span",[t._v("--")]):n("el-image",{staticStyle:{width:"80px",height:"80px"},attrs:{"scroll-container":"#listTable"+t.tableKey+" .el-table__body-wrapper",lazy:!0,src:t.imageUrl(o[i.prop])[0],"preview-src-list":t.imageUrl(o[i.prop])}})],1):i.method?n("p",{attrs:{contenteditable:"false",celleditable:i.input},on:{dblclick:function(e){return t.handleDbclickCell(e,i.input)},blur:function(e){return t.handleCellBlur(e,o,i)}}},[t._v(" "+t._s(i.method(o))+" ")]):i.options?n("p",[t._v(" "+t._s(t.renderOptions(o[i.prop],i.options))+" ")]):n("p",{attrs:{contenteditable:"false",celleditable:i.input},on:{dblclick:function(e){return t.handleDbclickCell(e,i.input)},blur:function(e){return t.handleCellBlur(e,o,i)}}},[t._v(" "+t._s(t.dealWithValue(o[i.prop]||"--"))+" ")])])],1)],{row:o})]}}],null,!0)},[n("template",{slot:"header"},[n("span",{domProps:{innerHTML:t._s(i.label)}})]),t._l(i.children,(function(i){return n("el-table-column",{key:i.prop+a,attrs:{width:i.width||i.image?"100px":"","show-overflow-tooltip":!0,align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){var o=a.row;return[t._t(i.prop,[n("div",{class:{link:"link"===i.type},staticStyle:{"text-align":"center"},on:{mouseover:function(e){return e.stopPropagation(),t.handleMouseOver(e)}}},[n("el-tooltip",{attrs:{disabled:!t.showOverflowTooltip,"popper-class":"ym-table-tooltip",placement:"top",effect:"dark"}},[n("div",{staticClass:"ym-table-tooltip-content",attrs:{slot:"content"},domProps:{innerHTML:t._s(e.method?e.method(o):o[i.prop])},slot:"content"}),i.html?n("p",{domProps:{innerHTML:t._s(o[i.prop])}}):i.image?n("div",[0===t.imageUrl(o[i.prop]).length?n("span",[t._v("--")]):n("el-image",{staticStyle:{width:"80px",height:"80px"},attrs:{"scroll-container":"#listTable"+t.tableKey+" .el-table__body-wrapper",lazy:!0,src:t.imageUrl(o[i.prop])[0],"preview-src-list":t.imageUrl(o[i.prop])}})],1):i.method?n("p",{attrs:{contenteditable:"false",celleditable:i.input},on:{dblclick:function(e){return t.handleDbclickCell(e,i.input)},blur:function(e){return t.handleCellBlur(e,o,i)}}},[t._v(" "+t._s(i.method(o))+" ")]):i.options?n("p",[t._v(" "+t._s(t.renderOptions(o[i.prop],i.options))+" ")]):n("p",{attrs:{contenteditable:"false",celleditable:i.input},on:{dblclick:function(e){return t.handleDbclickCell(e,i.input)},blur:function(e){return t.handleCellBlur(e,o,i)}}},[t._v(" "+t._s(t.dealWithValue(o[i.prop]||"--"))+" ")])])],1)],{row:o})]}}],null,!0)},[n("template",{slot:"header"},[n("span",{domProps:{innerHTML:t._s(i.label)}})])],2)}))],2)]}))]:t._e()],2)})),t.tableRowsActions&&t.tableRowsActions.length?n("el-table-column",{attrs:{label:"操作",fixed:"right",align:"center",width:t.tableRowsActions.length>3?"240":80*t.tableRowsActions.length},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._l(t.tableRowsActions,(function(e){return[!e.vIF||e.vIF(a)?n("el-button",{key:e.key,class:e.class,style:e.style,attrs:{type:e.type||"text",icon:e.icon,size:"small",disabled:e.disabled},on:{click:function(n){e.method?e.method(a):t.handleTableRowOpt(e.key,a)}}},[t._v(" "+t._s(e.setLabel?e.setLabel(a):e.label)+" ")]):t._e()]}))]}}],null,!1,1618950225)}):t._e()],2):t._e(),t._t("table_footer"),0===t.columns.length?n("el-alert",{staticStyle:{height:"100%"},attrs:{title:"无表格配置数据",type:"warning",center:"",closable:!1,"show-icon":""}}):t._e(),t.columns.length>0&&t.isPage?n("el-pagination",{attrs:{background:"",layout:"total, prev, pager, next, jumper","page-size":t.limit,"page-sizes":[15,30,45,60],"current-page":t.page,total:t.totalPage},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e(),n("TableDetail",{ref:"tableDetail",attrs:{"detail-format":t.detailFormat,"detail-data":t.selectRow},model:{value:t.tableDetailDrawerVisible,callback:function(e){t.tableDetailDrawerVisible=e},expression:"tableDetailDrawerVisible"}}),n("TableEditor",{ref:"tableEditor",attrs:{"edit-form":t.editForm,"edit-data":t.selectRow,config:t.editConfig,apis:t.apiParams,"opt-type":t.optType},on:{onValueChange:t.editValueChange,callback:t.handleTableEditorCallback},model:{value:t.tableEditorDrawerVisible,callback:function(e){t.tableEditorDrawerVisible=e},expression:"tableEditorDrawerVisible"}})],2)},$=[],H=n("ab46"),z=n("deab"),R=n("1abb"),I=(n("a6a9"),n("d987"),n("e224"),n("485c"),n("374d"),n("5227"),n("8d8a"),n("6de1"),n("3363"),n("9d08"),n("aa56"),n("264f"),n("f2e9"),n("b775")),N=function(){return n.e("chunk-2d2167b4").then(n.bind(null,"c33a"))},F=function(){return n.e("chunk-20e6dd39").then(n.bind(null,"40d8"))},U=function(){return n.e("chunk-52eed71e").then(n.bind(null,"2948d"))},q={name:"YMTable",components:{TableDetail:U,TableEditor:F,Table2Excel:N},props:{tableKey:{type:[String,Number],default:1},loading:{type:Boolean,default:!1},customStyle:{type:[String,Object],default:function(){return{}}},summarySpan:{type:Array,default:function(){return[]}},tableOptions:{type:Object,default:function(){return{export:{show:!1,theadMap:{type:Array,default:function(){return[]}},theadProps:{type:Array,default:function(){}},tableData:{type:Array,default:function(){return[]}},tfootData:{type:Array,default:function(){return[]}},dataName:{type:String,default:"excel.xlsx"}}}}},selection:{type:Boolean,default:!1},selectableAction:{type:Function,default:function(){return!0}},index:{type:Boolean,default:!0},rowsActions:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},editForm:{type:Array,default:function(){return[]}},editConfig:{type:Object,default:function(){return{title:"",addTip:"",editTip:"",size:""}}},detailFormat:{type:Array,default:function(){return[]}},apis:{type:Object,default:function(){}},alertTip:{type:String,default:""},isPage:{type:Boolean,default:!0}},data:function(){return{optType:"add",showOverflowTooltip:!1,tableOpts:Object.assign({},{hideAll:!1,add:{show:!1},batchDelete:{show:!1},import:{show:!1},export:{show:!1},download:{show:!1,url:"/static/template.xlsx"}},this.tableOptions),tableRowsActions:[],apiParams:Object.assign({},{list:{url:"",params:{},dataParam:"data"},preivew:{},import:{},edit:{}},this.apis),selectionList:[],page:1,limit:15,totalPage:0,isExport:!1,listData:[],listLoading:!1,tableDetailDrawerVisible:!1,tableEditorDrawerVisible:!1,selectRow:{},batchDeleteLoading:!1,deleteLoading:!1,searchParams:{}}},computed:{removeHtml:function(){return function(t){return t}},selectableFunc:function(){var t=this;return function(e,n){return t.selectableAction(e,n)}},delTooltipAble:function(){return!!this.selectionList.length},formatImageUrl:function(){var t=this;return function(e){if(!e)return[];if("[]"===String(e))return"";if(String(e).indexOf("http")>-1)return e;if(!e)return[];"/"!==e.charAt(0)&&(e="/".concat(e));var n=t.apiParams.imgApi||Object({VUE_APP_BASE_API:"",NODE_ENV:"production",BASE_URL:""}).VUE_APP_BASE_IMG;return"".concat(n).concat(e)}},imageUrl:function(){var t=this;return function(e){if(!e)return[];if(Array.isArray(e)||(e=e.split(",")),String(e).includes("[]"))return[];if(Array.isArray(e))return e.map((function(e){return t.formatImageUrl(e)}))||[];if(String(e).includes("[")&&String(e).includes("]")&&!String(e).includes("[]")){if(!e)return[];var n=JSON.parse(e);if(!Array.isArray(n))return[];var a=n.map((function(e){return"object"===Object(R["a"])(e)?t.formatImageUrl(e.url):t.formatImageUrl(e)}));return console.log("🚀 表格显示的图片:",a),a}if(String(e).includes('""')){var i=e.replace('""',"");return t.imageUrl(i)}var o=String(e).split(",");o.includes("")&&o.splice(o.indexOf(""),1);var r=o.map((function(e){return t.formatImageUrl(String(e).includes("[]")?"":e)}))||[];return r}},comDownloadUrl:function(){var t;console.log("process.env.VUE_APP_BASE_DOWNLOAD",Object({VUE_APP_BASE_API:"",NODE_ENV:"production",BASE_URL:""}).VUE_APP_BASE_DOWNLOAD);var e=(null===(t=this.tableOpts)||void 0===t||null===(t=t.download)||void 0===t?void 0:t.prefix)||(void 0!==Object({VUE_APP_BASE_API:"",NODE_ENV:"production",BASE_URL:""}).VUE_APP_BASE_DOWNLOAD?Object({VUE_APP_BASE_API:"",NODE_ENV:"production",BASE_URL:""}).VUE_APP_BASE_DOWNLOAD:Object({VUE_APP_BASE_API:"",NODE_ENV:"production",BASE_URL:""}).VUE_APP_BASE_PREFIX);return e+this.tableOpts.download.url},tableOptsJudge:function(){var t=this;return function(e){return t.tableOpts[e].show&&!t.tableOptions.hideAll}},renderOptions:function(){return function(t,e){var n;return e&&e.length&&(null===(n=e.find((function(e){return"string"===typeof t?String(e.value)===String(t):"number"===typeof t?Number(e.value)===Number(t):e.value===t})))||void 0===n?void 0:n.label)||t}},dealWithValue:function(){return function(t){return"number"===typeof t?parseFloat(Math.round(t*Math.pow(10,2))/Math.pow(10,2)):t}}},watch:{loading:function(t){this.listLoading=t},listData:{handler:function(t){var e=this;this.$refs["table"+this.tableKey]&&this.$nextTick((function(){if(e.$attrs["show-summary"]&&e.summarySpan.length){var t=document.querySelectorAll("#listTable"+e.tableKey+" .el-table__footer-wrapper tr>td"),n=document.querySelectorAll("#listTable"+e.tableKey+" .el-table__fixed-footer-wrapper tr>td");e.summarySpan.forEach((function(e,a){"object"===Object(R["a"])(e)?(t[a].colSpan=e.span,t[a].innerText=e.value,n[a].colSpan=e.span):e?(t[a].colSpan=e.span,n[a].colSpan=e.span):(t[a].style.display="none",n[a].style.display="none")}))}e.$refs["table"+e.tableKey].doLayout(),e.$refs["table"+e.tableKey].bodyWrapper.scrollTop=0}))},immediate:!0}},updated:function(){var t=this;this.$nextTick((function(){t.$refs["table"+t.tableKey].doLayout()}))},created:function(){var t,e,n;(console.log("$slots",this.$slots,this.$attrs),this._dealWidthRowsActions(),null!==(t=this.apiParams)&&void 0!==t&&null!==(t=t.list)&&void 0!==t&&t.url&&[void 0,!0].includes(null===(e=this.apiParams)||void 0===e||null===(e=e.list)||void 0===e?void 0:e.init))&&this.getList(null===(n=this.apiParams)||void 0===n||null===(n=n.list)||void 0===n?void 0:n.Params)},methods:{handleDbclickCell:function(t,e){e&&t.target.setAttribute("contenteditable",!0)},handleCellBlur:function(t,e,n){var a=Object(z["a"])({},n.prop,n.validate?n.validate(t.target.innerText):t.target.innerText);console.log(),"true"===t.target.contentEditable&&this.$emit("onTableEdit",a,Object.assign({},e,a)),t.target.setAttribute("contenteditable",!1)},editValueChange:function(t){this.$emit("onEditValueChange",t)},handleMouseOver:function(t){var e,n,a=null===(e=t.fromElement)||void 0===e||null===(e=e.childNodes[0])||void 0===e||null===(e=e.childNodes[0])||void 0===e?void 0:e.clientHeight,i=null===(n=t.fromElement)||void 0===n||null===(n=n.childNodes[0])||void 0===n||null===(n=n.childNodes[0])||void 0===n?void 0:n.scrollHeight;this.showOverflowTooltip=a0&&(e.searchParams=t),e._getList(t).then((function(t){e.listLoading=!1;var a=e._returnResponse(t),i=e._returnListData(t);e.$listeners.onResponse&&e.$emit("onResponse",a),e.isExport?(console.log("🚀 导出数据:",i),e.isExport=!1,e.$refs.table2Excel.exportToExcel(i)):(e.listData=i,e.totalPage=a.total,n(t))})).catch((function(t){e.isExport=!1,e.listLoading=!1,a(t)}))}))},_getList:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};null!==t&&void 0!==t&&t.page&&(this.page=t.page),console.log("🚀 查询列表参数:",t);var e=this.apiParams.list,n=e.url,a=e.params,i=void 0===a?{}:a,o=e.method,r=e.limit,s=void 0===r?"limit":r,l=e.page,c=void 0===l?"page":l,u={method:o||"GET",url:n};return t&&Object.keys(t).length&&Object.assign(i,t),"post"===String(o).toLocaleLowerCase()?Object.assign(u,{data:i}):(Object.assign(i,this.isExport?this.searchParams:{},Object(z["a"])(Object(z["a"])({},c,this.isExport?1:this.page),s,this.isExport?99999:this.limit)),Object.assign(u,{params:i})),new Promise((function(t,e){t(Object(I["a"])(u))}))},handleBatchDelete:function(){if(!this.delTooltipAble)return!1;this._optDelete("batchDelete",this.selectionList)},_optDelete:function(t,e){var n,a=this;this.$confirm("delete"===t?"确定删除该条数据吗?":'数据删除后不可恢复,是否确认删除所选'.concat(null===(n=this.selectionList)||void 0===n?void 0:n.length,"条数据?"),"温馨提示",{type:"warning",dangerouslyUseHTMLString:!0}).then((function(){var n="delete"===t?e.id:a.selectionList.join(",");if(a.$listeners["delete"])a.$emit("delete",n);else{var i=a.apiParams[t],o=null===i||void 0===i?void 0:i.params,r="";if(null!==i&&void 0!==i&&i.additionParams&&i.additionParams.length&&(r=null===i||void 0===i?void 0:i.additionParams.map((function(t){return e[t]})).join("/"),r="/"+r),null===i||void 0===i||!i.url)return void a.$message.error("url参数缺失!");var s={url:(null===i||void 0===i?void 0:i.url)+r,method:(null===i||void 0===i?void 0:i.method)||"delete"};s=Object.assign({},s,{data:Object(z["a"])({},o||"id",n)}),"batchDelete"===t&&(a.batchDeleteLoading=!0),a.deleteLoading=!0,Object(I["a"])(s).then((function(){var e;a.deleteLoading=!1,a.batchDeleteLoading=!1,a.$message({type:"success",message:"删除成功"});var n=a.listData.length,o="delete"===t?1:null===(e=a.selectionList)||void 0===e?void 0:e.length;n-o>0?a.handleCurrentChange(a.page):a.page>1?a.handleCurrentChange(a.page-1):a.handleCurrentChange(1),null===i||void 0===i||i.callback()})).finally((function(){a.deleteLoading=!1,a.batchDeleteLoading=!1}))}}))},handleTableRowOpt:function(t,e){console.log("🚀 表格当前操作行:",t,e),this.selectRow=e,"edit"===t?(this.optType="edit",this.tableEditorDrawerVisible=!0):"delete"===t?this._optDelete("delete",e):"detail"===t?(this.$emit("detail",e),this.tableDetailDrawerVisible=!0):"preview"===t?this.tableEditorDrawerVisible=!0:console.log("🚀 表格操作行:",e)},handleAddRowItem:function(){var t,e,n,a;null!==(t=this.tableOpts)&&void 0!==t&&null!==(t=t.add)&&void 0!==t&&t.method?null===(e=this.tableOpts)||void 0===e||null===(e=e.add)||void 0===e||e.method():(this.selectRow=null!==(n=this.tableOpts)&&void 0!==n&&null!==(n=n.add)&&void 0!==n&&n.initData?null===(a=this.tableOpts)||void 0===a||null===(a=a.add)||void 0===a?void 0:a.initData():{},this.optType="add",this.tableEditorDrawerVisible=!0)}}},W=q,K=(n("bb1a"),n("8baa"),Object(p["a"])(W,B,$,!1,null,"9aba2882",null)),G=K.exports,Z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ym-table-search",attrs:{id:"ym-table-search"}},[n("div",{staticClass:"main-content"},[n("el-form",{ref:"form",attrs:{model:t.form,"label-width":"78px",inline:!1,size:"small"}},[n("div",{staticStyle:{display:"flex","flex-wrap":"wrap"}},[t._l(t.renderSearchForm,(function(e,a){return n("div",{key:a},["button"===e.type?n("el-button",{attrs:{type:e.danger?"danger":"primary",size:"small"},on:{click:e.method}},[t._v(t._s(e.text))]):t._e(),n("el-form-item",{attrs:{label:e.label,prop:e.prop,required:e.required}},["input"===e.type?n("el-input",{staticStyle:{width:"230px","margin-right":"26px"},attrs:{placeholder:e.placeholder||"请输入"+e.label,clearable:t.clearable(e)},model:{value:t.form[e.prop],callback:function(n){t.$set(t.form,e.prop,n)},expression:"form[item.prop]"}}):t._e(),"select"===e.type?n("el-select",{staticStyle:{width:"230px","margin-right":"26px"},attrs:{placeholder:e.placeholder||"请选择"+e.label,clearable:t.clearable(e)},on:{change:function(n){e.method&&e.method(t.form[e.prop])}},model:{value:t.form[e.prop],callback:function(n){t.$set(t.form,e.prop,n)},expression:"form[item.prop]"}},t._l(e.options,(function(t,e){return n("el-option",{key:t.value+""+e,attrs:{label:t.label,value:t.value}})})),1):t._e(),n("div",{staticStyle:{"margin-right":"26px"}},[t.isDateType(e.type)?n("el-date-picker",{staticStyle:{width:"100%"},attrs:{"value-format":e.valueFormat||t.dateValueFormat(e.type),format:e.format,type:e.type,placeholder:e.placeholder||"请选择"+e.label,"start-placeholder":e.startPlaceholder||"开始日期","end-placeholder":e.endPlaceholder||"结束日期",clearable:t.clearable(e)},model:{value:t.form[e.prop],callback:function(n){t.$set(t.form,e.prop,n)},expression:"form[item.prop]"}}):t._e()],1),"cascader"===e.type?n("el-cascader",{ref:"areaCascader",refInFor:!0,staticStyle:{width:"230px","margin-right":"26px"},attrs:{options:e.options||t.areaOptions,clearable:t.clearable(e),filterable:"",props:Object.assign({expandTrigger:"hover",checkStrictly:!0,label:"label",value:"value",children:"children"},e.props)},on:{change:function(n){return t.onAreaChange(n,e.prop)}},model:{value:t.form[e.prop],callback:function(n){t.$set(t.form,e.prop,n)},expression:"form[item.prop]"}}):t._e()],1)],1)})),t.renderSearchForm.length?n("el-col",{staticClass:"opts-item",staticStyle:{"margin-left":"auto"},attrs:{span:2}},[n("el-form-item",{staticClass:"opts-item-btns",class:{"flex-start":1===t.renderSearchForm.length}},[n("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:t.onSubmit}},[t._v("查询")]),t.renderSearchForm.length>1?n("el-button",{on:{click:t.onReset}},[t._v("重置")]):t._e()],1)],1):n("el-col",{staticStyle:{"padding-bottom":"20px"},attrs:{span:24}},[n("el-alert",{attrs:{title:"无表单数据",type:"warning",center:"",closable:!1,"show-icon":""}})],1)],2)])],1),n("div",{staticClass:"extra-content"},[t._t("extra")],2)])},J=[],Y=n("f54a"),X=n("7f70"),Q=(n("3dd5"),n("13b1"),{name:"YMTableSearch",props:{searchForm:{type:Array,default:function(){return[]}},loading:{type:Boolean,default:!1}},data:function(){return{initFlag:!0,dropdownAction:!1,form:{},areaOptions:[],areaListProp:"",searchHeight:0,optsCols:24,cancalDebounce:null}},computed:{clearable:function(){return function(t){return void 0===t.clearable||t.clearable}},actionCols:function(){return this.optsCols},isDateType:function(){return function(t){return-1!=="year/month/date/dates/months/years/week/datetime/datetimerange/daterange/monthrange".indexOf(t)}},dateValueFormat:function(){return function(t){var e={year:"yyyy",month:"yyyy-MM",date:"yyyy-MM-dd",dates:"yyyy-MM-dd",months:"yyyy-MM",years:"yyyy",week:"yyyy-ww",datetime:"yyyy-MM-dd HH:mm:ss",datetimerange:"yyyy-MM-dd HH:mm:ss",daterange:"yyyy-MM-dd"};return e[t]}},searchFormNum:function(){return this.renderSearchForm.length},colSpan:function(){if(!this.renderSearchForm)return this.$message.warning("请配置查询表单"),24;var t=3-this.searchFormNum%3;return 8*t},renderSearchForm:function(){return this.searchForm.filter((function(t,e){return Object(X["a"])({},t)}))}},watch:{form:{handler:function(t){this.$emit("onValueChange",t)},deep:!0}},mounted:function(){this.getWindowInfo(),window.addEventListener("resize",this.cancalDebounce)},beforeDestroy:function(){window.removeEventListener("resize",this.cancalDebounce)},created:function(){this.initData();var t=this.renderSearchForm.find((function(t){return t.isArea}));t&&(console.log("🚀 获取区域数据……"),this.areaList(t)),this.cancalDebounce=this.debounce(this.getWindowInfo,500),window.addEventListener("resize",this.cancalDebounce),this.getWindowInfo()},methods:{getWindowInfo:function(){var t=document.body.getBoundingClientRect(),e=t.width;this.optsCols=e<768?this.freeSpace(2):e>=768&&e<1920?this.freeSpace(3):this.freeSpace(4),this.initFlag?this.initFlag=!1:console.log("刷新")},freeSpace:function(t){var e=this.renderSearchForm.length,n=e%t,a=24/t,i=24-n*a;return i},debounce:function(t,e){var n;return function(){n&&clearTimeout(n),n=setTimeout((function(){t()}),e)}},initData:function(){this.form=Object.assign.apply(Object,[{}].concat(Object(Y["a"])(this.searchForm.map((function(t){return Object(z["a"])({},t.prop,t.default||"")}))))),console.table("🚀 初始化查询参数:",this.searchForm,this.form)},onSubmit:function(){var t=Object.assign({},this.form,{page:1});this.$emit("submit",t)},resetFields:function(){console.log("🚀 重置查询"),this.$refs.form.resetFields()},onReset:function(){this.resetFields(),this.onSubmit()},areaList:function(t){var e=this,n=t.isArea;[!0,1,2,3,4,5].includes(n)?Object(I["a"])({url:"/lv/area_list",method:"get",params:{type:!0===n?4:n}}).then((function(a){[!0,4].includes(n)?e.areaOptions=e.areaOptions.concat(a.data[0].children):[1,2,3].includes(n)&&(e.areaOptions=e.areaOptions.concat(a.data),[1,3].includes(n)&&(e.cascaderProps=Object.assign({},e.cascaderProps,{label:"name",value:"id"}))),null!==t&&void 0!==t&&t.areaOptions&&(e.areaOptions=[].concat(Object(Y["a"])(null===t||void 0===t?void 0:t.areaOptions),Object(Y["a"])(e.areaOptions)))})):this.$message.error("请设置isArea为1/2/3/4/5/true")},onAreaChange:function(t,e){console.log("🚀 区域变化值:",t,e),this.form[e]=t},getAreaValue:function(){if(this.$refs.areaCascader)return this.$refs.areaCascader[0].getCheckedNodes()}}}),tt=Q,et=(n("1650"),Object(p["a"])(tt,Z,J,!1,null,"3df49f26",null)),nt=et.exports;n("fe02"),n("1b55"),n("e17a"),n("fa87"),n("04b0");function at(t){if(!t)return"-";function e(t){return t>9?t:"0"+t}var n=new Date(t);console.log("时间",n);var a=n.getFullYear(),i=e(n.getMonth()+1),o=e(n.getDate()),r=n.getHours();r=e(r);var s=e(n.getMinutes()),l=e(n.getSeconds()),c=a+"-"+i+"-"+o+" "+r+":"+s+":"+l;return c}function it(t,e){if(0===arguments.length||!t)return null;var n,a=e||"{y}-{m}-{d} {h}:{i}:{s}";"object"===Object(R["a"])(t)?n=t:("string"===typeof t&&(t=/^[0-9]+$/.test(t)?parseInt(t):t.replace(new RegExp(/-/gm),"/")),"number"===typeof t&&10===t.toString().length&&(t*=1e3),n=new Date(t));var i={y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),a:n.getDay()},o=a.replace(/{([ymdhisa])+}/g,(function(t,e){var n=i[e];return"a"===e?["日","一","二","三","四","五","六"][n]:n.toString().padStart(2,"0")}));return o}a["default"].prototype.$parseTime=it,a["default"].prototype.$utcToBeijing=at,a["default"].component("YMTable",G),a["default"].component("YMTableSearch",nt),a["default"].use(o.a,{locale:s.a}),a["default"].config.productionTip=!1,new a["default"]({el:"#app",router:b["a"],store:m["a"],render:function(t){return t(h)}})},"59e8":function(t,e,n){},"5cf3":function(t,e,n){},"5f87":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return l}));var a=n("4314"),i=n.n(a),o="Bearer ";function r(){return i.a.get(o)}function s(t){return i.a.set(o,t)}function l(){return i.a.remove(o)}},6110:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-empt",use:"icon-empt-usage",viewBox:"0 0 1024 1024",content:''});r.a.add(s);e["default"]=s},6134:function(t,e,n){"use strict";n("1089")},"61f7":function(t,e,n){"use strict";n.d(e,"a",(function(){return O}));n("2510"),n("7f70"),n("5a74"),n("d987"),n("90c8"),n("8d8a"),n("e17a"),n("b775"),n("067c");var a=n("ba49"),i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Dialog",{ref:"dialog",attrs:{"dialog-actions":{width:t.width,title:t.title}},on:{confirm:t.handleConfirm,cancel:t.handleCancel},scopedSlots:t._u([{key:"content",fn:function(){return[n("div",{staticClass:"confirm-content"},[t.message?n("p",{staticClass:"tip-message"},[t._v(t._s(t.message))]):t._e(),n("el-input",{class:{"error-border":t.showError},attrs:{type:"textarea",rows:5,placeholder:t.placeholder},on:{input:t.handleInput},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}}),n("transition",{attrs:{name:"el-zoom-in-top"}},[t.showError?n("p",{staticClass:"error-msg"},[t._v(t._s(t.errorMessage))]):t._e()])],1)]},proxy:!0}])})},o=[],r=n("deab"),s=(n("bd1a"),n("9039")),l={name:"InputConfirmDialog",components:{Dialog:s["a"]},props:{prop:{type:String,default:"inputValue"},visible:{type:Boolean,default:!1},title:{type:String,default:"提示"},width:{type:String,default:"620px"},message:String,placeholder:{type:String,default:"请输入确认内容"},errorMessage:{type:String,default:"输入内容不能为空"},validate:{type:Function,default:function(t){return t.trim().length>0}}},data:function(){return{inputValue:"",showError:!1}},watch:{visible:{immediate:!0,handler:function(t){var e=this;this.$nextTick((function(){t?e.$refs.dialog.open():e.$refs.dialog.close(),t||e.resetState()}))}}},methods:{handleInput:function(){this.showError=!this.validate(this.inputValue)},handleConfirm:function(){if(this.validate(this.inputValue)){var t=Object(r["a"])({},this.prop,this.inputValue);this.$emit("confirm",t),this.closeDialog()}else this.showError=!0},handleCancel:function(){this.$emit("cancel"),this.closeDialog()},resetState:function(){this.inputValue="",this.showError=!1},closeDialog:function(){this.resetState(),this.$emit("update:visible",!1)}}},c=l,u=(n("9f61"),n("2410")),d=Object(u["a"])(c,i,o,!1,null,"bf345dbe",null),p=d.exports,f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Dialog",{ref:"dialog",staticClass:"report-dialog",attrs:{"dialog-actions":{width:t.width,title:t.title,confirmButtom:!1}},scopedSlots:t._u([{key:"content",fn:function(){return[n("div",{staticClass:"dialog-content"},[n("div",{staticClass:"report-header"},[n("div",{staticClass:"reporter"},[n("span",{staticClass:"label"},[t._v("举报者:")]),n("span",{staticClass:"value"},[t._v("用户_123456")])]),n("div",{staticClass:"reported"},[n("span",{staticClass:"label"},[t._v("被举报者:")]),n("span",{staticClass:"value"},[t._v("用户_654321")])])]),n("div",{staticClass:"report-content"},[n("div",{staticClass:"content-title"},[t._v("举报内容")]),n("div",{staticClass:"content-box"},[t._v(t._s(t.inputValue))])]),n("div",{staticClass:"image-section"},[n("div",{staticClass:"subtitle"},[t._v("图片说明")]),n("div",{staticClass:"image-list"},[n("el-image",{staticClass:"evidence-image",attrs:{src:"https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg","preview-src-list":["https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg"],fit:"cover"}},[n("div",{staticClass:"image-error",attrs:{slot:"error"},slot:"error"},[n("i",{staticClass:"el-icon-picture-outline"})])])],1)])])]},proxy:!0}])})},h=[],m={components:{Dialog:s["a"]},props:{prop:{type:String,default:"xxxx"},visible:{type:Boolean,default:!1},title:{type:String,default:"提示"},width:{type:String,default:"620px"},inputValue:{type:String,default:"举报内容举报内容举报内容举报内容"}},watch:{visible:{immediate:!0,handler:function(t){var e=this;this.$nextTick((function(){t?e.$refs.dialog.open():e.$refs.dialog.close()}))}}}},b=m,v=(n("8bfd"),Object(u["a"])(b,f,h,!1,null,"2d5e46f5",null)),g=v.exports,w=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("Dialog",{ref:"dialog",staticClass:"report-dialog",attrs:{"dialog-actions":{title:t.title,width:t.width,confirmButtom:!1}}},[n("template",{slot:"content"},[n("div",{staticClass:"dialog-content"},[n("div",{staticClass:"report-header"},[n("div",{staticClass:"reporter"},[n("span",{staticClass:"label"},[t._v("被举报者:")]),n("span",{staticClass:"value"},[t._v("用户_654321")])]),n("div",{staticClass:"reported"},[n("span",{staticClass:"label"},[t._v("被举报单号:")]),n("span",{staticClass:"value"},[t._v("654321")])])]),n("div",{staticClass:"report-content"},[n("div",{staticClass:"content-title"},[t._v("受理内容")]),n("div",{staticClass:"content-box"},[t._v(t._s(t.inputValue))])])])])],2)},y=[],_={name:"InputConfirmDialog",components:{Dialog:s["a"]},props:{prop:{type:String,default:"xxxx"},visible:{type:Boolean,default:!1},title:{type:String,default:"提示"},width:{type:String,default:"620px"}},data:function(){return{inputValue:"受理内容受理内容受理内容"}},watch:{visible:function(t){t?this.$refs.dialog.open():this.$refs.dialog.close()}},methods:{}},x=_,C=(n("a495"),Object(u["a"])(x,w,y,!1,null,"6fa33a1e",null)),k=C.exports;a["default"].extend(g),a["default"].extend(k),a["default"].extend(p);function O(t){return/^(https?:|mailto:|tel:)/.test(t)}},"62c8":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-Android",use:"icon-Android-usage",viewBox:"0 0 20 20",content:'\n\n'});r.a.add(s);e["default"]=s},"66b8":function(t,e,n){"use strict";n("3c5f")},"71a0":function(t,e,n){"use strict";n("36ec")},"79cf":function(t,e,n){"use strict";n("2b4f")},"7e1e":function(t,e,n){"use strict";n.d(e,"q",(function(){return i})),n.d(e,"l",(function(){return o})),n.d(e,"m",(function(){return r})),n.d(e,"r",(function(){return s})),n.d(e,"p",(function(){return l})),n.d(e,"o",(function(){return c})),n.d(e,"c",(function(){return u})),n.d(e,"n",(function(){return d})),n.d(e,"h",(function(){return p})),n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return h})),n.d(e,"j",(function(){return m})),n.d(e,"i",(function(){return b})),n.d(e,"k",(function(){return v})),n.d(e,"d",(function(){return g})),n.d(e,"e",(function(){return w})),n.d(e,"f",(function(){return y})),n.d(e,"g",(function(){return _}));var a=n("b775");function i(t){return Object(a["a"])({url:"wallet/topUp",method:"post",data:t})}function o(t){return Object(a["a"])({url:"room/completed",method:"post",data:t})}function r(t){return Object(a["a"])({url:"room/setScore",method:"post",data:t})}function s(t){return Object(a["a"])({url:"withdraw/setStatus",method:"post",data:t})}function l(t){return Object(a["a"])({url:"wallet/verifyRecharge",method:"post",data:t})}function c(t){return Object(a["a"])({url:"setPassword",method:"post",data:t})}function u(t){return Object(a["a"])({url:"config/set",method:"post",data:t})}function d(t){return Object(a["a"])({url:"config/sendChannelMessage",method:"post",data:t})}function p(t){return Object(a["a"])({url:"menu/check",method:"post",data:{uri:t}})}function f(t){return Object(a["a"])({url:"config/getAll",method:"get",params:t})}function h(t){return Object(a["a"])({url:"/config/get",method:"get",params:t})}function m(t){return Object(a["a"])({url:"menu/mineMenu",method:"get",params:t})}function b(t){return Object(a["a"])({url:"menu/tree",method:"get",params:t})}function v(t){return Object(a["a"])({url:"role/all",method:"get",params:t})}function g(t){return Object(a["a"])({url:"wallet/getPendingTasks",method:"get",params:t})}function w(t){return Object(a["a"])({url:"issue/betting",method:"post",data:t})}function y(t){return Object(a["a"])({url:"issue/close",method:"post",data:t})}function _(t){return Object(a["a"])({url:"issue/lotteryDraw",method:"post",data:t})}},"83d6":function(t,e){t.exports={title:"Vue Admin Template",fixedHeader:!1,sidebarLogo:!1}},"86e5":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-useragency",use:"icon-useragency-usage",viewBox:"0 0 1024 1024",content:''});r.a.add(s);e["default"]=s},8843:function(t,e,n){},"8baa":function(t,e,n){"use strict";n("4e2f")},"8bfd":function(t,e,n){"use strict";n("260f")},"8dd0":function(t,e,n){"use strict";n("1b39")},9039:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",t._g(t._b({attrs:{visible:t.visible,width:t.actions.width,modal:t.actions.modal},on:{"update:visible":function(e){t.visible=e}}},"el-dialog",t.$attrs,!1),t.$listeners),[n("template",{slot:"title"},[n("div",{staticClass:"title"},[t._v(t._s(t.actions.title))])]),n("span",[t._t("content")],2),t.actions.buttom?n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t.actions.cancelButtom?n("el-button",{on:{click:t.close}},[t._v(" "+t._s(t.actions.buttonTextLeft))]):t._e(),t.actions.confirmButtom?n("el-button",{attrs:{type:"primary"},on:{click:t.handleSubmit}},[t._v(t._s(t.actions.buttonTextRight))]):t._e()],1):t._e()],2)},i=[],o=n("7f70"),r={props:{dialogActions:{type:Object,default:function(){return{}}}},data:function(){return{visible:!1,actions:Object.assign(Object(o["a"])({title:"提示",editTip:"",width:"1080px",buttom:!0,confirmButtom:!0,cancelButtom:!0,buttonTextLeft:"取消",buttonTextRight:"确定",modal:!0},this.dialogActions))}},mounted:function(){},created:function(){},methods:{open:function(){this.visible=!0,this.$emit("update:visible",!0)},close:function(){this.visible=!1,this.$emit("update:visible",!1)},handleSubmit:function(){this.$emit("confirm")}}},s=r,l=(n("79cf"),n("2410")),c=Object(l["a"])(s,a,i,!1,null,"6b15eb70",null);e["a"]=c.exports},"93cd":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});r.a.add(s);e["default"]=s},"9f61":function(t,e,n){"use strict";n("2474")},a0fc:function(t,e,n){},a18c:function(t,e,n){"use strict";n.d(e,"b",(function(){return Nt}));n("90c8"),n("3363"),n("3399");var a,i,o=n("ba49"),r=n("4838"),s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-wrapper",class:t.classObj},["mobile"!==t.device&&t.sidebar.opened?n("div",{staticClass:"theTitle"},[t._v("后台管理")]):t._e(),"mobile"===t.device&&t.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:t.handleClickOutside}}):t._e(),n("sidebar",{staticClass:"sidebar-container"}),n("div",{staticClass:"main-container"},[n("div",{class:{"fixed-header":t.fixedHeader}},[n("navbar")],1),n("app-main")],1)],1)},l=[],c=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"navbar"},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.sidebar.opened,expression:"sidebar.opened"}],staticClass:"theTitle"},[t._v("后台管理")]),a("hamburger",{staticClass:"hamburger-container",attrs:{"is-active":t.sidebar.opened},on:{toggleClick:t.toggleSideBar}}),a("breadcrumb",{staticClass:"breadcrumb-container"}),a("div",{staticClass:"right-menu"},[a("el-dropdown",{staticClass:"avatar-container",attrs:{trigger:"click"}},[a("div",{staticClass:"avatar-wrapper"},[a("img",{staticClass:"user-avatar",attrs:{src:n("fcb5")}}),a("i",{staticClass:"el-icon-caret-bottom"})]),a("el-dropdown-menu",{staticClass:"user-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(e){return t.logout(e)}}},[a("span",{staticStyle:{display:"block"}},[t._v("退出登陆")])]),a("el-dropdown-item",{nativeOn:{click:function(e){return t.setPassword(e)}}},[a("span",{staticStyle:{display:"block"}},[t._v("修改密码")])])],1)],1)],1),a("setPassword",{ref:"setPassword"})],1)},u=[],d=n("2510"),p=n("5a74"),f=n("7f70"),h=n("4314"),m=n.n(h),b=n("8327"),v=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},t._l(t.levelList,(function(e,a){return n("el-breadcrumb-item",{key:e.path},["noRedirect"===e.redirect||a==t.levelList.length-1?n("span",{staticClass:"no-redirect"},[t._v(t._s(e.meta.title))]):n("a",{on:{click:function(n){return n.preventDefault(),t.handleLink(e)}}},[t._v(t._s(e.meta.title))])])})),1)],1)},g=[],w=(n("3dd5"),n("452e"),n("bd1a"),n("6e0d"),n("13b1"),n("6699")),y=n.n(w),_={data:function(){return{levelList:null}},watch:{$route:function(){this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var t=this.$route.matched.filter((function(t){return t.meta&&t.meta.title})),e=t[0];this.isDashboard(e)||(t=t),this.levelList=t.filter((function(t){return t.meta&&t.meta.title&&!1!==t.meta.breadcrumb}))},isDashboard:function(t){var e=t&&t.name;return!!e&&e.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(t){var e=this.$route.params,n=y.a.compile(t);return n(e)},handleLink:function(t){var e=t.redirect,n=t.path;e?this.$router.push(e):this.$router.push(this.pathCompile(n))}}},x=_,C=(n("aedc"),n("2410")),k=Object(C["a"])(x,v,g,!1,null,"385e978e",null),O=k.exports,S=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{padding:"0 15px"},on:{click:t.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":t.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},E=[],j={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},A=j,T=(n("8dd0"),Object(C["a"])(A,S,E,!1,null,"49e15297",null)),M=T.exports,P=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:"修改密码",visible:t.dialogVisible,width:"500px"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.handleClose}},[n("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"100px"}},[n("el-form-item",{attrs:{label:"旧密码",prop:"oldPassword"}},[n("el-input",{attrs:{type:"password","show-password":"",placeholder:"请输入当前密码"},model:{value:t.form.oldPassword,callback:function(e){t.$set(t.form,"oldPassword",e)},expression:"form.oldPassword"}})],1),n("el-form-item",{attrs:{label:"新密码",prop:"password"}},[n("el-input",{attrs:{type:"password","show-password":"",placeholder:"6-16位字母数字组合"},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),n("el-form-item",{attrs:{label:"确认密码",prop:"password_confirmation"}},[n("el-input",{attrs:{type:"password","show-password":"",placeholder:"请再次输入新密码"},on:{blur:t.validateConfirmPass},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submitForm(e)}},model:{value:t.form.password_confirmation,callback:function(e){t.$set(t.form,"password_confirmation",e)},expression:"form.password_confirmation"}})],1)],1),n("span",{attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取消")]),n("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("确定")])],1)],1)},V=[],D=(n("8d8a"),n("e17a"),n("7e1e")),L=n("067c"),B={data:function(){var t=this,e=function(e,n,a){n?/^[\w]{6,16}$/.test(n)?(t.form.password_confirmation&&t.$refs.form.validateField("password_confirmation"),a()):a(new Error("密码需6-16位字母数字")):a(new Error("请输入新密码"))},n=function(e,n,a){n?n!==t.form.password?a(new Error("两次输入密码不一致")):a():a(new Error("请确认密码"))};return{dialogVisible:!1,form:{oldPassword:"",password:"",password_confirmation:""},rules:{oldPassword:[{required:!0,message:"请输入旧密码",trigger:"blur"}],password:[{validator:e,trigger:"blur"}],password_confirmation:[{validator:n,trigger:"blur"}]}}},methods:{handleClose:function(){this.$refs.form.resetFields()},validateConfirmPass:function(){this.$refs.form.validateField("password_confirmation")},submitForm:function(){var t=this;this.$refs.form.validate((function(e){e&&(console.log("提交数据:",t.form),Object(D["o"])(t.form).then((function(){Object(L["Notification"])({title:"成功",message:"修改成功~",type:"success"}),t.dialogVisible=!1})))}))},openClose:function(){this.dialogVisible=!this.dialogVisible}}},$=B,H=Object(C["a"])($,P,V,!1,null,null,null),z=H.exports,R={components:{Breadcrumb:O,Hamburger:M,setPassword:z},data:function(){return{isShow:m.a.get("sidebarStatus")}},computed:Object(f["a"])({},Object(b["b"])(["sidebar","avatar"])),methods:{setPassword:function(){this.$refs.setPassword.openClose()},toggleSideBar:function(){console.log(m.a.get("sidebarStatus")),this.isShow=m.a.get("sidebarStatus"),this.$store.dispatch("app/toggleSideBar")},logout:function(){var t=this;return Object(p["a"])(Object(d["a"])().m((function e(){return Object(d["a"])().w((function(e){while(1)switch(e.n){case 0:return e.n=1,t.$store.dispatch("user/logout");case 1:t.$router.push("/login?redirect=".concat(t.$route.fullPath));case 2:return e.a(2)}}),e)})))()}}},I=R,N=(n("66b8"),Object(C["a"])(I,c,u,!1,null,"01a740d4",null)),F=N.exports,U=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:{"has-logo":t.showLogo}},[t.showLogo?n("logo",{attrs:{collapse:t.isCollapse}}):t._e(),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":t.activeMenu,collapse:t.isCollapse,"background-color":t.variables.menuBg,"text-color":t.variables.menuText,"unique-opened":!1,"active-text-color":t.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},t._l(t.routes,(function(t){return n("sidebar-item",{key:t.path,attrs:{item:t,"base-path":t.path}})})),1)],1)],1)},q=[],W=(n("e168"),n("4cc3"),n("eb9e"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:t.collapse}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[t.collapse?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[t.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:t.logo}}):n("h1",{staticClass:"sidebar-title"},[t._v(t._s(t.title)+" ")])]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[t.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:t.logo}}):t._e(),n("h1",{staticClass:"sidebar-title"},[t._v(t._s(t.title)+" ")])])],1)],1)}),K=[],G={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:"Vue Admin Template",logo:"https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png"}}},Z=G,J=(n("71a0"),Object(C["a"])(Z,W,K,!1,null,"5bb1c0e2",null)),Y=J.exports,X=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.item.hidden?t._e():n("div",[!t.hasOneShowingChild(t.item.children,t.item)||t.onlyOneChild.children&&!t.onlyOneChild.noShowingChildren||t.item.alwaysShow?n("el-submenu",{ref:"subMenu",attrs:{index:t.resolvePath(t.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[t.item.meta?n("item",{attrs:{icon:t.item.meta&&t.item.meta.icon,title:t.item.meta.title}}):t._e()],1),t._l(t.item.children,(function(e){return n("sidebar-item",{key:e.path,attrs:{"is-nest":!0,item:e,"base-path":t.resolvePath(e.path)}})}))],2):[t.onlyOneChild.meta?n("app-link",{attrs:{to:t.resolvePath(t.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!t.isNest},attrs:{index:t.resolvePath(t.onlyOneChild.path)}},[n("item",{attrs:{icon:t.onlyOneChild.meta.icon||t.item.meta&&t.item.meta.icon,title:t.onlyOneChild.meta.title}})],1)],1):t._e()]],2)},Q=[],tt=n("cad9"),et=n.n(tt),nt=n("61f7"),at=(n("d987"),n("6de1"),{name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(t,e){var n=e.props,a=n.icon,i=n.title,o=[];return a&&(a.includes("el-icon")?o.push(t("i",{class:[a,"sub-el-icon"]})):o.push(t("svg-icon",{attrs:{"icon-class":a}}))),i&&o.push(t("span",{slot:"title"},[i])),o}}),it=at,ot=(n("f87e"),Object(C["a"])(it,a,i,!1,null,"18eeea00",null)),rt=ot.exports,st=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.type,t._b({tag:"component"},"component",t.linkProps(t.to),!1),[t._t("default")],2)},lt=[],ct={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return Object(nt["a"])(this.to)},type:function(){return this.isExternal?"a":"router-link"}},methods:{linkProps:function(t){return this.isExternal?{href:t,target:"_blank",rel:"noopener"}:{to:t}}}},ut=ct,dt=Object(C["a"])(ut,st,lt,!1,null,null,null),pt=dt.exports,ft={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var t=this,e=this.$refs.subMenu;if(e){var n=e.handleMouseleave;e.handleMouseleave=function(e){"mobile"!==t.device&&n(e)}}}}},ht={name:"SidebarItem",components:{Item:rt,AppLink:pt},mixins:[ft],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,a=e.filter((function(e){return!e.hidden&&(t.onlyOneChild=e,!0)}));return 1===a.length||0===a.length&&(this.onlyOneChild=Object(f["a"])(Object(f["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(t){return Object(nt["a"])(t)?t:Object(nt["a"])(this.basePath)?this.basePath:et.a.resolve(this.basePath,t)}}},mt=ht,bt=Object(C["a"])(mt,X,Q,!1,null,null,null),vt=bt.exports,gt=n("cf1e"),wt=n.n(gt),yt={data:function(){return{routes:[]}},components:{SidebarItem:vt,Logo:Y},computed:Object(f["a"])(Object(f["a"])({},Object(b["b"])(["sidebar"])),{},{activeMenu:function(){var t=this.$route,e=t.meta,n=t.path;return e.activeMenu?e.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return wt.a},isCollapse:function(){return!this.sidebar.opened}}),mounted:function(){this.getMenu()},methods:{getMenu:function(){var t=this;return Object(p["a"])(Object(d["a"])().m((function e(){var n,a;return Object(d["a"])().w((function(e){while(1)switch(e.n){case 0:return t.routes=[],e.n=1,Object(D["j"])();case 1:n=e.v,a=n.data,t.routes=t.generateRoutes(a),t.$store.commit("user/SET_ROLESTREE",t.routes),console.log(t.routes,"this.routes");case 2:return e.a(2)}}),e)})))()},generateRoutes:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.map((function(t){var a,i=n?"".concat(n,"/").concat(t.uri):t.uri,o={path:t.uri,name:t.title,id:t.id,component:(null===t||void 0===t?void 0:t.children.length)>0?Ht:"@/views".concat(i,"/index.vue"),meta:{title:t.title,icon:t.icon}};return null!==(a=t.children)&&void 0!==a&&a.length&&(o.children=e.generateRoutes(t.children,i)),o}))}}},_t=yt,xt=Object(C["a"])(_t,U,q,!1,null,null,null),Ct=xt.exports,kt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("router-view",{key:t.key})],1)],1)},Ot=[],St={name:"AppMain",computed:{key:function(){return this.$route.path}}},Et=St,jt=(n("b3f7"),n("f4ba"),Object(C["a"])(Et,kt,Ot,!1,null,"395a6c9c",null)),At=jt.exports,Tt=n("4360"),Mt=document,Pt=Mt.body,Vt=992,Dt={watch:{$route:function(t){"mobile"===this.device&&this.sidebar.opened&&Tt["a"].dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var t=this.$_isMobile();t&&(Tt["a"].dispatch("app/toggleDevice","mobile"),Tt["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var t=Pt.getBoundingClientRect();return t.width-10&&t.$notify({title:"提示",message:"待处理充值任务"+n.recharge_task,duration:6e4}),n.withdraw_task>0&&t.$notify({title:"提示",offset:62,message:"待处理提现任务"+n.withdraw_task,duration:6e4}),(n.withdraw_task>0||n.recharge_task>0)&&t.audioPlay()}))},audioPlay:function(){var t=new Audio(this.audi);t.currentTime=0,t.play().catch((function(t){return console.error("播放失败:",t)}))},handleClickOutside:function(){this.$store.dispatch("app/closeSideBar",{withoutAnimation:!1})}}},Bt=Lt,$t=(n("6134"),Object(C["a"])(Bt,s,l,!1,null,"478e77ee",null)),Ht=$t.exports;o["default"].use(r["a"]);var zt=[{path:"/login",component:function(){return n.e("chunk-10c4537e").then(n.bind(null,"9ed6"))},hidden:!0},{path:"/404",component:function(){return n.e("chunk-c900af6e").then(n.bind(null,"8cdb"))},hidden:!0},{path:"/test",component:Ht,children:[{path:"test",component:function(){return n.e("chunk-2d238672").then(n.bind(null,"feda"))},name:"示例",meta:{title:"示例",icon:"table"}}]},{path:"/",name:"会员管理",component:Ht,redirect:"/user/userList",meta:{title:"会员列表",icon:"form"},children:[{path:"/",component:function(){return n.e("chunk-639a3d7d").then(n.bind(null,"f4c9"))},name:"会员列表",meta:{title:"会员列表"}}]},{path:"/wallet",name:"充值管理",component:Ht,redirect:"/wallet/topUp",meta:{title:"充值列表",icon:"form"},children:[{path:"topUp",component:function(){return n.e("chunk-2d212b69").then(n.bind(null,"aa1d"))},name:"充值列表",meta:{title:"充值列表"}}]},{path:"/chamber",name:"房间管理",component:Ht,redirect:"/chamber/room",meta:{title:"房间管理",icon:"form"},children:[{path:"room",component:function(){return n.e("chunk-2162dcf4").then(n.bind(null,"42fe"))},name:"游戏房间",meta:{title:"游戏房间"}},{path:"game",component:function(){return n.e("chunk-c0ce9790").then(n.bind(null,"bbca"))},name:"游戏管理",meta:{title:"游戏管理"}}]},{path:"/withdraw",name:"提现管理",component:Ht,redirect:"/withdraw/list",meta:{title:"提现列表",icon:"form"},children:[{path:"list",component:function(){return n.e("chunk-13fa0248").then(n.bind(null,"b6fa"))},name:"提现列表",meta:{title:"提现列表"}}]},{path:"/balance",name:"钱包管理",component:Ht,redirect:"/balance/log",meta:{title:"钱包记录",icon:"form"},children:[{path:"log",component:function(){return n.e("chunk-5f185b04").then(n.bind(null,"c8f6"))},name:"钱包记录",meta:{title:"钱包记录"}}]},{path:"/config",name:"配置管理",component:Ht,redirect:"/config/getAll",meta:{title:"所有配置",icon:"form"},children:[{path:"list",component:function(){return n.e("chunk-2d0f04bf").then(n.bind(null,"9c87"))},name:"配置列表",meta:{title:"配置列表"}},{path:"getAll",component:function(){return n.e("chunk-8d50495a").then(n.bind(null,"af0e"))},name:"所有配置",meta:{title:"所有配置"}},{path:"Message",component:function(){return n.e("chunk-4dd2e8db").then(n.bind(null,"95f8"))},name:"频道管理",meta:{title:"频道管理"}}]},{path:"/authority",name:"权限管理",component:Ht,redirect:"/authority/menu",meta:{title:"权限管理",icon:"form"},children:[{path:"menu",component:function(){return n.e("chunk-2d0cef7f").then(n.bind(null,"625b"))},name:"菜单管理",meta:{title:"菜单管理"}},{path:"role",component:function(){return n.e("chunk-2d0a38bb").then(n.bind(null,"0346"))},name:"角色管理",meta:{title:"角色管理"}},{path:"account",component:function(){return n.e("chunk-2d0c51f8").then(n.bind(null,"3e6f"))},name:"账号管理",meta:{title:"账号管理"}}]},{path:"/reply",name:"回复管理",component:Ht,redirect:"/reply/list",meta:{title:"回复管理",icon:"form"},children:[{path:"list",component:function(){return n.e("chunk-2d0ae9a2").then(n.bind(null,"0b82"))},name:"回复管理",meta:{title:"回复管理"}}]},{path:"/certification",name:"认证管理",component:Ht,redirect:"/certification/issuenumber",meta:{title:"认证管理",icon:"form"},children:[{path:"issuenumber",component:function(){return n.e("chunk-d94118ac").then(n.bind(null,"5312"))},name:"期数分页",meta:{title:"期数分页"}}]},{path:"/playing",name:"玩法管理",component:Ht,redirect:"/playing/list",meta:{title:"玩法管理",icon:"form"},children:[{path:"list",component:function(){return n.e("chunk-2d2226a2").then(n.bind(null,"cf09"))},name:"玩法管理",meta:{title:"玩法管理"}}]},{path:"*",redirect:"/404",hidden:!0}],Rt=function(){return new r["a"]({scrollBehavior:function(){return{y:0}},routes:zt})},It=Rt();function Nt(){var t=Rt();It.matcher=t.matcher}e["a"]=It},a495:function(t,e,n){"use strict";n("59e8")},a6eb:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-Remind",use:"icon-Remind-usage",viewBox:"0 0 24 24",content:'\n\n\n'});r.a.add(s);e["default"]=s},aedc:function(t,e,n){"use strict";n("dab5")},b17a:function(t,e,n){},b20f:function(t,e,n){t.exports={menuText:"#333",menuActiveText:"#2474d3",subMenuActiveText:"#3e7bfa",menuBg:"#fff",menuHover:"#e7eeff",subMenuBg:"#001529",subMenuHover:"#e7eeff",sideBarWidth:"210px"}},b3b5:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});r.a.add(s);e["default"]=s},b3f7:function(t,e,n){"use strict";n("8843")},b775:function(t,e,n){"use strict";n("90c8");var a=n("940b"),i=n.n(a),o=n("067c"),r=n("5f87"),s=n("a18c"),l=n("4360"),c=i.a.create({baseURL:window.global.baseURL,timeout:3e4});c.interceptors.request.use((function(t){return Object(r["a"])()&&(t.headers["Authorization"]=Object(r["a"])()),t})),c.interceptors.response.use((function(t){var e=t.data;return 0===e.code||99===e.code?e:101011!==e.code?-1===e.code||"-1"===e.code?(Object(o["Notification"])({title:"警告",message:e.msg,type:"warning"}),Promise.reject(e)):(Object(o["Notification"])({title:"失败",message:e.msg,type:"error"}),Promise.reject(e)):(Object(o["Notification"])({title:"失败",message:"登录失效,请重新登录",type:"error"}),void setTimeout((function(){l["a"].dispatch("user/logout").then((function(){s["a"].push("/login")}))}),500))}),(function(t){return Promise.reject(t)})),e["a"]=c},b9f6:function(t,e,n){},bb1a:function(t,e,n){"use strict";n("f85a")},cf1e:function(t,e,n){t.exports={menuText:"#333",menuActiveText:"#2474d3",subMenuActiveText:"#3e7bfa",menuBg:"#fff",menuHover:"#e7eeff",subMenuBg:"#001529",subMenuHover:"#e7eeff",sideBarWidth:"210px"}},d7ec:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});r.a.add(s);e["default"]=s},dab5:function(t,e,n){},dcf8:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});r.a.add(s);e["default"]=s},dd82:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-phone",use:"icon-phone-usage",viewBox:"0 0 1024 1024",content:''});r.a.add(s);e["default"]=s},e9d5:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-Devices",use:"icon-Devices-usage",viewBox:"0 0 20 20",content:'\n\n\n\n\n'});r.a.add(s);e["default"]=s},eb1b:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});r.a.add(s);e["default"]=s},f040:function(t,e,n){t.exports=n.p+"static/media/masg.4b6e1513.mp3"},f3bb:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-Apple",use:"icon-Apple-usage",viewBox:"0 0 20 20",content:'\n\n\n'});r.a.add(s);e["default"]=s},f4ba:function(t,e,n){"use strict";n("1da7")},f4c4:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-type",use:"icon-type-usage",viewBox:"0 0 1097 1024",content:''});r.a.add(s);e["default"]=s},f782:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("f675"),r=n.n(o),s=new i.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});r.a.add(s);e["default"]=s},f85a:function(t,e,n){},f87e:function(t,e,n){"use strict";n("a0fc")},fcb5:function(t,e,n){t.exports=n.p+"static/img/logo.55c9512c.webp"}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]);