(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("21a1"),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},"18f0":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("21a1"),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},"279e":function(t,e,n){},"2a3d":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("21a1"),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("f6c3")},"2c04":function(t,e,n){},"30c3":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("21a1"),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},"32a1":function(t,e,n){"use strict";n("5a73")},4360:function(t,e,n){"use strict";var a=n("2b0e"),i=n("2f62"),o=(n("b0c0"),{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},keepList:function(t){return t.user.keepList},editableTabs:function(t){return t.user.editableTabs},editableTabsValue:function(t){return t.user.editableTabsValue}}),r=o,s=n("a78e"),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("5530"),k=(n("4de4"),n("c740"),n("e9c4"),n("b64b"),n("d3b7"),n("498a"),n("0643"),n("2382"),n("b775"));function C(t){return Object(k["a"])({url:"/login",method:"post",data:t})}var O=n("5f87"),S=n("a18c"),j=n("5c96"),E=function(){return{token:Object(O["a"])(),name:"",avatar:"",rolesTree:[],keepList:JSON.parse(localStorage.getItem("user-tabs"))||[],editableTabs:[],editableTabsValue:null}},A=E(),T={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},ADD_TABS:function(t,e){t.keepList||(t.keepList=[]);var n=t.keepList.findIndex((function(t){return t.path===e.path}));-1===n?t.keepList.push(e):t.keepList[n]=Object(x["a"])(Object(x["a"])({},t.keepList[n]),e),L(t.keepList)},REMOVE_TAB_BY_PATH:function(t,e){if(t.keepList&&Array.isArray(t.keepList)){var n=t.keepList.length;t.keepList=t.keepList.filter((function(t){return t.path!==e}));var a=t.keepList.length;n!==a&&(console.log("删除了标签: ".concat(e)),L(t.keepList),"undefined"!==typeof window&&window.dispatchEvent(new CustomEvent("tab-removed",{detail:{path:e}})))}}};function L(t){try{localStorage.setItem("user-tabs",JSON.stringify(t))}catch(e){console.error("保存缓存失败:",e)}}var P={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){A.keepList=[],localStorage.setItem("user-tabs",[]);var a=e.data;console.log(a,"login"),Object(j["Notification"])({title:"成功",message:"欢迎登陆~",type:"success"}),n("SET_TOKEN",a.token),Object(O["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(O["b"])(),Object(S["b"])(),e("RESET_STATE"),t()}))},resetToken:function(t){var e=t.commit;return new Promise((function(t){Object(O["b"])(),e("RESET_STATE"),t()}))},addTab:function(t,e){var n=t.commit;n("ADD_TABS",e)}},M={namespaced:!0,state:A,mutations:T,actions:P};a["default"].use(i["a"]);var B=new i["a"].Store({modules:{app:p,settings:_,user:M},getters:r});e["a"]=B},"46fd":function(t,e,n){},"47f1":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("21a1"),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},"4bc8":function(t,e,n){"use strict";n("ad41")},"4df5":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("21a1"),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},"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"},5399:function(t,e,n){},"56d7":function(t,e,n){"use strict";n.r(e);n("e260"),n("e6cf"),n("cca6"),n("a79d");var a=n("2b0e"),i=(n("f5df1"),n("5c96")),o=n.n(i),r=(n("0fae"),n("b2d6")),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=(n("7e1e"),{name:"App"}),d=u,p=(n("4bc8"),n("2877")),f=Object(p["a"])(d,l,c,!1,null,null,null),h=f.exports,m=n("4360"),b=n("a18c"),v=(n("d81d"),n("d3b7"),n("0643"),n("a573"),n("ddb0"),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)),k=x.exports;a["default"].component("svg-icon",k);var C=n("51ff"),O=function(t){return t.keys().map(t)};O(C);var S=n("c7eb"),j=n("1da1"),E=(n("b0c0"),n("323e")),A=n.n(E),T=(n("a5d8"),n("5f87")),L=(n("99af"),n("83d6")),P=n.n(L),M=P.a.title||"Vue Admin Template";function B(t){return t?"".concat(t," - ").concat(M):"".concat(M)}A.a.configure({showSpinner:!1});var V=["/login"];b["a"].beforeEach(function(){var t=Object(j["a"])(Object(S["a"])().mark((function t(e,n,a){var o,r;return Object(S["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(A.a.start(),document.title=B(e.meta.title),o=Object(T["a"])(),!o){t.next=27;break}if("/login"!==e.path){t.next=9;break}a({path:"/"}),A.a.done(),t.next=25;break;case 9:if(r=m["a"].getters.name,!r){t.next=14;break}a(),t.next=25;break;case 14:t.prev=14,a(),t.next=25;break;case 18:return t.prev=18,t.t0=t["catch"](14),t.next=22,m["a"].dispatch("user/resetToken");case 22:i["Message"].error(t.t0||"Has Error"),a("/login?redirect=".concat(e.path)),A.a.done();case 25:t.next=28;break;case 27:-1!==V.indexOf(e.path)?a():(a("/login?redirect=".concat(e.path)),A.a.done());case 28:case"end":return t.stop()}}),t,null,[[14,18]])})));return function(e,n,a){return t.apply(this,arguments)}}()),b["a"].afterEach((function(){A.a.done()}));var D=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("reject")?n("el-button",{attrs:{loading:t.batchRejectLoading,type:"danger",size:"small"},on:{click:function(e){return t.handlesetStatus("reject")}}},[t._v(" 批量驳回 ")]):t._e(),t.tableOptsJudge("pass")?n("el-button",{attrs:{loading:t.batchPassLoading,type:"primary",size:"small"},on:{click:function(e){return t.handlesetStatus("pass")}}},[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",{staticStyle:{"margin-bottom":"8px",padding:"0"},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:{"header-click":t.headerClick,"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,sortable:e.sortable,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("div",{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.link?n("div",[n("span",{staticStyle:{color:"#3a8ee6",cursor:"pointer"},on:{click:function(n){e.click?e.click(a.row):t.changeHtml()}}},[t._v(t._s(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.popover?n("div",[n("el-popover",{attrs:{trigger:"hover",placement:"top"}},[t._l(e.options,(function(e,i){return n("div",{directives:[{name:"show",rawName:"v-show",value:!e.vShow||e.vShow(a.row),expression:"option.vShow?option.vShow(scope.row):true"}],key:i},[t._v(" "+t._s(e.label)+": "+t._s(t.getValueByPath(a.row,e.value))+" ")])})),n("div",{staticClass:"name-wrapper",attrs:{slot:"reference"},slot:"reference"},[n("el-tag",{attrs:{type:e.tagType?e.tagType(a.row):"",size:"medium"}},[t._v(t._s(t.getValueByPath(a.row,e.props)||e.default))])],1)],2)],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","active-value":e.activeValue,"inactive-value":e.inactiveValue,"active-text":e.activeText||"","inactive-text":e.inactiveText||""},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("div",{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("div",[t._v(" "+t._s(t.renderOptions(a.row[e.prop],e.options))+" ")]):n("div",{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?t.actionsWidth||"200":t.actionsWidth?t.actionsWidth: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("ade3"),z=n("b85c"),R=n("53ca"),I=(n("7db0"),n("caad"),n("a15b"),n("a434"),n("a9e3"),n("b64b"),n("ac1f"),n("2532"),n("3ca3"),n("5319"),n("fffc"),n("4e3e"),n("159b"),n("b775")),N=function(){return n.e("chunk-2d2167b4").then(n.bind(null,"c33a"))},U=function(){return n.e("chunk-219108a3").then(n.bind(null,"40d8"))},F=function(){return n.e("chunk-ec49cb28").then(n.bind(null,"2948"))},q={name:"YMTable",components:{TableDetail:F,TableEditor:U,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[]}},actionsWidth:{type:Number,default:null},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:{},batchPassLoading:!1,batchRejectLoading:!1}},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){var n=t.tableOpts[e];if(!n)return!1;var a=void 0!==n.show&&n.show;return a&&!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:{getValueByPath:function(t,e){if(!t||!e)return"";var n="";if("string"===typeof e?n=e:Array.isArray(e)&&e.length>0&&(n=e[0]),!n)return"";var a,i=n.split("."),o=t,r=Object(z["a"])(i);try{for(r.s();!(a=r.n()).done;){var s=a.value;if(null===o||void 0===o)return"";o=o[s]||"--"}}catch(l){r.e(l)}finally{r.f()}return void 0!==o&&null!==o?o:""},changeHtml:function(){},handleDbclickCell:function(t,e){e&&t.target.setAttribute("contenteditable",!0)},handleCellBlur:function(t,e,n){var a=Object(H["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(H["a"])(Object(H["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))}))},handlesetStatus:function(t){var e=this;if(0===this.selectionList.length)return this.$message.error("选择批量操作数据!");"pass"===t?this.$confirm("确定通过审核?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.setStatus(t)})):this.$prompt("请输入原因","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^\S+$/,inputErrorMessage:"请输入原因"}).then((function(n){var a=n.value;e.setStatus(t,a)}))},setStatus:function(t,e){var n=this,a=this.selectionList,i=this.apiParams[t],o=null===i||void 0===i?void 0:i.params,r=null===i||void 0===i?void 0:i.status,s=null===i||void 0===i?void 0:i.remark,l=null===i||void 0===i?void 0:i.statusValue,c="";if(null!==i&&void 0!==i&&i.additionParams&&i.additionParams.length&&(c=null===i||void 0===i?void 0:i.additionParams.map((function(t){return n.selectionList[t]})).join("/"),c="/"+c),null!==i&&void 0!==i&&i.url){var u={url:(null===i||void 0===i?void 0:i.url)+c,method:null===i||void 0===i?void 0:i.method};u=Object.assign({},u,{data:Object(H["a"])(Object(H["a"])(Object(H["a"])({},o||"ids",a),r,l),s,e)}),"pass"===t?this.batchPassLoading=!0:this.batchRejectLoading=!0,Object(I["a"])(u).then((function(){n.batchPassLoading=!1,n.batchRejectLoading=!1,n.getList(n.searchParams),n.$message({type:"success",message:"操作成功"})})).finally((function(){n.batchPassLoading=!1,n.batchRejectLoading=!1}))}else this.$message.error("url参数缺失!")},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(H["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("32a1"),n("5866"),Object(p["a"])(W,D,$,!1,null,"6db0c58d",null)),G=K.exports,J=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:"150px","margin-right":"16px"},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:"150px","margin-right":"16px"},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":"16px"}},[t.isDateType(e.type)?n("el-date-picker",{style:{width:"datetimerange"===e.type||"daterange"===e.type?"230px":"150px"},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:"150px","margin-right":"16px"},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)])},Z=[],Y=n("2909"),X=n("5530"),Q=(n("4de4"),n("2382"),{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(H["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("a583"),Object(p["a"])(tt,J,Z,!1,null,"c974977a",null)),nt=et.exports;n("4d63"),n("2c3e"),n("00b4"),n("25f0"),n("4d90");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)}})},5866:function(t,e,n){"use strict";n("8583")},"588d":function(t,e,n){},"5a73":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("a78e"),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)}},"5fd8":function(t,e,n){},6110:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("21a1"),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},"61f7":function(t,e,n){"use strict";n.d(e,"a",(function(){return O}));n("c7eb"),n("5530"),n("1da1"),n("caad"),n("d3b7"),n("ac1f"),n("00b4"),n("b775"),n("5c96");var a=n("2b0e"),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("ade3"),s=(n("498a"),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("2877")),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=_,k=(n("a495"),Object(u["a"])(x,w,y,!1,null,"6fa33a1e",null)),C=k.exports;a["default"].extend(g),a["default"].extend(C),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("21a1"),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},"6c02":function(t,e,n){},"71a0":function(t,e,n){"use strict";n("6c02")},"7a48":function(t,e,n){},"7e1e":function(t,e,n){"use strict";n.d(e,"j",(function(){return i})),n.d(e,"I",(function(){return o})),n.d(e,"H",(function(){return r})),n.d(e,"y",(function(){return s})),n.d(e,"z",(function(){return l})),n.d(e,"J",(function(){return c})),n.d(e,"G",(function(){return u})),n.d(e,"B",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"A",(function(){return f})),n.d(e,"p",(function(){return h})),n.d(e,"d",(function(){return m})),n.d(e,"c",(function(){return b})),n.d(e,"s",(function(){return v})),n.d(e,"r",(function(){return g})),n.d(e,"x",(function(){return w})),n.d(e,"h",(function(){return y})),n.d(e,"k",(function(){return _})),n.d(e,"l",(function(){return x})),n.d(e,"n",(function(){return k})),n.d(e,"v",(function(){return C})),n.d(e,"w",(function(){return O})),n.d(e,"u",(function(){return S})),n.d(e,"E",(function(){return j})),n.d(e,"m",(function(){return E})),n.d(e,"C",(function(){return A})),n.d(e,"t",(function(){return T})),n.d(e,"a",(function(){return L})),n.d(e,"K",(function(){return P})),n.d(e,"F",(function(){return M})),n.d(e,"D",(function(){return B})),n.d(e,"L",(function(){return V})),n.d(e,"f",(function(){return D})),n.d(e,"i",(function(){return $})),n.d(e,"q",(function(){return H})),n.d(e,"b",(function(){return z})),n.d(e,"o",(function(){return R})),n.d(e,"g",(function(){return I}));var a=n("b775");function i(t){return Object(a["a"])({url:"home",method:"get",params:t})}function o(t){return Object(a["a"])({url:"wallet/topUp",method:"post",data:t})}function r(t){return Object(a["a"])({url:"wallet/debiting",method:"post",data:t})}function s(t){return Object(a["a"])({url:"room/completed",method:"post",data:t})}function l(t){return Object(a["a"])({url:"room/setScore",method:"post",data:t})}function c(t){return Object(a["a"])({url:"withdraw/setStatus",method:"post",data:t})}function u(t){return Object(a["a"])({url:"wallet/verifyRecharge",method:"post",data:t})}function d(t){return Object(a["a"])({url:"setPassword",method:"post",data:t})}function p(t){return Object(a["a"])({url:"config/set",method:"post",data:t})}function f(t){return Object(a["a"])({url:"config/sendChannelMessage",method:"post",data:t})}function h(t){return Object(a["a"])({url:"menu/check",method:"post",data:{uri:t}})}function m(t){return Object(a["a"])({url:"config/getAll",method:"get",params:t})}function b(t){return Object(a["a"])({url:"/config/get",method:"get",params:t})}function v(t){return Object(a["a"])({url:"menu/mineMenu",method:"get",params:t})}function g(t){return Object(a["a"])({url:"menu/tree",method:"get",params:t})}function w(t){return Object(a["a"])({url:"role/all",method:"get",params:t})}function y(t){return Object(a["a"])({url:"wallet/getPendingTasks",method:"get",params:t})}function _(t){return Object(a["a"])({url:"issue/betting",method:"post",data:t})}function x(t){return Object(a["a"])({url:"issue/close",method:"post",data:t})}function k(t){return Object(a["a"])({url:"issue/lotteryDraw",method:"post",data:t})}function C(t){return Object(a["a"])({url:"pcIssue/preDraw",method:"post",data:t})}function O(t){return Object(a["a"])({url:"rebate/submit",method:"post",data:t})}function S(t){return Object(a["a"])({url:"config/pc28Switch",method:"post",data:t})}function j(t){return Object(a["a"])({url:"/user/merge",method:"post",data:t})}function E(t){return Object(a["a"])({url:"issue/failure",method:"post",data:t})}function A(t){return Object(a["a"])({url:"user/address",method:"get",params:t})}function T(t){return Object(a["a"])({url:"paymentOrder/check",method:"get",params:t})}function L(t){return Object(a["a"])({url:"paymentOrder/audit",method:"post",data:t})}function P(t){return Object(a["a"])({url:"withdraw/setNote",method:"post",data:t})}function M(t){return Object(a["a"])({url:"user/setNote",method:"post",data:t})}function B(t){return Object(a["a"])({url:"user/banned",method:"post",data:t})}function V(t){return Object(a["a"])({url:"withdraw/setRmbNote",method:"post",data:t})}function D(t){return Object(a["a"])({url:"ActivityUser/finish",method:"post",data:t})}function $(t){return Object(a["a"])({url:"ActivityUser/gift",method:"post",data:t})}function H(t){return Object(a["a"])({url:"menu/submit",method:"post",data:t})}function z(t){return Object(a["a"])({url:"backflow/grant",method:"post",data:t})}function R(t){return Object(a["a"])({url:"menu/all",method:"get",params:t})}function I(t){return Object(a["a"])({url:"wallet/getChangeTypes",method:"get",params:t})}},"83d6":function(t,e){t.exports={title:"Vue Admin Template",fixedHeader:!1,sidebarLogo:!1}},8583:function(t,e,n){},"86e5":function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("21a1"),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},"8bfd":function(t,e,n){"use strict";n("46fd")},"8dd0":function(t,e,n){"use strict";n("c459")},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:{loading:t.loading,type:"primary"},on:{click:t.handleSubmit}},[t._v(t._s(t.actions.buttonTextRight))]):t._e()],1):t._e()],2)},i=[],o=n("5530"),r={props:{dialogActions:{type:Object,default:function(){return{}}},loading:{type:Boolean,default:!1}},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("bc88"),n("2877")),c=Object(l["a"])(s,a,i,!1,null,"251c7193",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("21a1"),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("5fd8")},a18c:function(t,e,n){"use strict";n.d(e,"b",(function(){return Rt}));n("d3b7"),n("3ca3"),n("ddb0");var a,i,o=n("2b0e"),r=n("8c4f"),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("navbar"),n("app-main")],1)],1)},l=[],c=(n("99af"),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("c7eb"),p=n("1da1"),f=n("5530"),h=n("a78e"),m=n.n(h),b=n("2f62"),v=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",t._l(t.keepList,(function(e){return n("el-tag",{key:e.name,staticStyle:{"margin-top":"20px","margin-right":"10px",cursor:"pointer"},attrs:{closable:"",type:t.activeMenu(e)},on:{click:function(n){return t.toPath(e)},close:function(n){return t.close(e)}}},[t._v(" "+t._s(e.name)+" ")])})),1)},g=[],w=(n("b0c0"),{data:function(){return{levelList:null}},computed:{keepList:function(){return this.$store.state.user.keepList}},watch:{keepList:{handler:function(t,e){t&&t.length>=12&&this.$store.commit("user/REMOVE_TAB_BY_PATH",t[0].path)},deep:!0,immediate:!0}},created:function(){},methods:{activeMenu:function(t){return console.log(this.$route,t,"this.$route.name"),this.$route.name===t.path?"danger":""},close:function(t){this.$store.commit("user/REMOVE_TAB_BY_PATH",t.path),this.$route.name===t.path&&this.keepList.length>0&&this.toPath(this.keepList[this.keepList.length-1])},toPath:function(t){this.$router.push({name:t.path})}}}),y=w,_=(n("a4f9"),n("2877")),x=Object(_["a"])(y,v,g,!1,null,"2036708d",null),k=x.exports,C=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"}})])])},O=[],S={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},j=S,E=(n("8dd0"),Object(_["a"])(j,C,O,!1,null,"49e15297",null)),A=E.exports,T=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)},L=[],P=n("7e1e"),M=n("5c96"),B={data:function(){var t=this,e=function(e,n,a){n?n.length<=8?a(new Error("密码需大于8位")):(t.form.password_confirmation&&t.$refs.form.validateField("password_confirmation"),a()):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(P["B"])(t.form).then((function(){Object(M["Notification"])({title:"成功",message:"修改成功~",type:"success"}),t.dialogVisible=!1})))}))},openClose:function(){this.dialogVisible=!this.dialogVisible}}},V=B,D=Object(_["a"])(V,T,L,!1,null,null,null),$=D.exports,H={components:{Breadcrumb:k,Hamburger:A,setPassword:$},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"])().mark((function e(){return Object(d["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("user/logout");case 2:t.$router.push("/login?redirect=".concat(t.$route.fullPath));case 3:case"end":return e.stop()}}),e)})))()}}},z=H,R=(n("af66"),Object(_["a"])(z,c,u,!1,null,"c434741a",null)),I=R.exports,N=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.uri,attrs:{item:t,"base-path":t.uri}})})),1)],1)],1)},U=[],F=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)},q=[],W={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"}}},K=W,G=(n("71a0"),Object(_["a"])(K,F,q,!1,null,"5bb1c0e2",null)),J=G.exports,Z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.item.children.length>0?n("el-submenu",{ref:"subMenu",attrs:{index:t.item.uri,"popper-append-to-body":""}},[n("template",{slot:"title"},[n("item",{attrs:{icon:t.item&&t.item.icon,title:t.item.title}})],1),t._l(t.item.children,(function(t){return n("sidebar-item",{key:t.uri,attrs:{"is-nest":!0,item:t,"base-path":t.uri}})}))],2):n("router-link",{attrs:{to:{name:t.item.uri}}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!t.isNest},attrs:{index:t.item.uri},on:{click:function(e){return t.openMenuItem(t.item)}}},[n("item",{attrs:{icon:t.item.icon,title:t.item.title}})],1)],1)],1)},Y=[],X=(n("4de4"),n("0643"),n("2382"),n("df7c")),Q=n.n(X),tt=n("61f7"),et=(n("caad"),n("2532"),{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}}),nt=et,at=(n("f87e"),Object(_["a"])(nt,a,i,!1,null,"18eeea00",null)),it=at.exports,ot=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)},rt=[],st={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return Object(tt["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}}}},lt=st,ct=Object(_["a"])(lt,ot,rt,!1,null,null,null),ut=ct.exports,dt={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)}}}}},pt={name:"SidebarItem",components:{Item:it,AppLink:ut},mixins:[dt],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{openMenuItem:function(t){var e={name:t.title,path:t.uri,id:t.id};this.$store.commit("user/ADD_TABS",e)},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(tt["a"])(t)?t:Object(tt["a"])(this.basePath)?this.basePath:Q.a.resolve(this.basePath,t)}}},ft=pt,ht=Object(_["a"])(ft,Z,Y,!1,null,null,null),mt=ht.exports,bt=n("cf1e"),vt=n.n(bt),gt={data:function(){return{routes:[]}},components:{SidebarItem:mt,Logo:J},computed:Object(f["a"])(Object(f["a"])({},Object(b["b"])(["sidebar"])),{},{activeMenu:function(){var t=this.$route;return null===t||void 0===t?void 0:t.name},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return vt.a},isCollapse:function(){return!this.sidebar.opened}}),mounted:function(){this.getMenu()},methods:{getMenu:function(){var t=this;return Object(p["a"])(Object(d["a"])().mark((function e(){var n,a;return Object(d["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.routes=[],e.next=3,Object(P["s"])();case 3:n=e.sent,a=n.data,t.routes=a,t.$store.commit("user/SET_ROLESTREE",t.routes),console.log(t.routes,"this.routes");case 8:case"end":return e.stop()}}),e)})))()}}},wt=gt,yt=Object(_["a"])(wt,N,U,!1,null,null,null),_t=yt.exports,xt=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)},kt=[],Ct={name:"AppMain",computed:{key:function(){return this.$route.path}}},Ot=Ct,St=(n("b3f7"),n("f4ba"),Object(_["a"])(Ot,xt,kt,!1,null,"395a6c9c",null)),jt=St.exports,Et=n("4360"),At=document,Tt=At.body,Lt=992,Pt={watch:{$route:function(t){"mobile"===this.device&&this.sidebar.opened&&Et["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&&(Et["a"].dispatch("app/toggleDevice","mobile"),Et["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var t=Tt.getBoundingClientRect();return t.width-10&&(i=!0,t.$notify({title:e.title,message:"".concat(e.message," 《").concat(r,"》"),offset:15*o,position:"top-left",duration:6e4,onClick:function(){t.$router.push({name:e.pathName})}}),o++)})),i&&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=Mt,Vt=(n("f53a"),Object(_["a"])(Bt,s,l,!1,null,"6ad675da",null)),Dt=Vt.exports;o["default"].use(r["a"]);var $t=[{path:"/login",component:function(){return n.e("chunk-ec8150d0").then(n.bind(null,"9ed6"))},hidden:!0},{path:"/404",component:function(){return n.e("chunk-159c7f2c").then(n.bind(null,"8cdb"))},hidden:!0},{path:"/test",component:Dt,children:[{path:"test",component:function(){return n.e("chunk-2d238672").then(n.bind(null,"feda"))},name:"示例",meta:{title:"示例",icon:"table"}}]},{path:"/",name:"/",component:Dt,redirect:"/Homepage",meta:{title:"统计面板",icon:"form"},children:[{path:"Homepage",component:function(){return Promise.all([n.e("chunk-3985bb13"),n.e("chunk-3b76b2b0")]).then(n.bind(null,"cd81"))},name:"Homepage",meta:{title:"统计面板"}}]},{path:"/user",name:"user",component:Dt,redirect:"/user/userList",meta:{title:"会员列表",icon:"form"},children:[{path:"userList",component:function(){return n.e("chunk-2a1640be").then(n.bind(null,"f4c9"))},name:"userList",meta:{title:"会员列表"}}]},{path:"/chamber",name:"chamber",component:Dt,redirect:"/chamber/room",meta:{title:"房间管理",icon:"form"},children:[{path:"room",component:function(){return n.e("chunk-5060aa1f").then(n.bind(null,"42fe"))},name:"room",meta:{title:"游戏房间"}},{path:"game",component:function(){return n.e("chunk-2d21a994").then(n.bind(null,"bbca"))},name:"game",meta:{title:"游戏管理"}}]},{path:"/withdraw",name:"withdraw",component:Dt,redirect:"/withdraw/listUSDT",meta:{title:"提现列表USDT",icon:"form"},children:[{path:"withdraw/topUp",component:function(){return n.e("chunk-1f4063e0").then(n.bind(null,"aa1d"))},name:"withdraw/topUp",meta:{title:"充值列表"}},{path:"treePay",component:function(){return n.e("chunk-2d0cf866").then(n.bind(null,"63a4"))},name:"treePay",meta:{title:"第三方支付"}},{path:"balance",component:function(){return n.e("chunk-57ce74a2").then(n.bind(null,"c8f6"))},name:"balance",meta:{title:"钱包记录"}},{path:"listUSDT",component:function(){return n.e("chunk-fef8ce9c").then(n.bind(null,"c6ac"))},name:"listUSDT",meta:{title:"提现列表USDT"}},{path:"listRMB",component:function(){return n.e("chunk-2065894b").then(n.bind(null,"bb8f"))},name:"listRMB",meta:{title:"提现列表RMB"}}]},{path:"/Activity",name:"Activity",component:Dt,redirect:"/Activity/ActivityUser",meta:{title:"活动管理",icon:"form"},children:[{path:"ActivityUser",component:function(){return n.e("chunk-2d0e2665").then(n.bind(null,"7f11"))},name:"ActivityUser",meta:{title:"参与列表"}},{path:"ActivityReward",component:function(){return n.e("chunk-2d0ccf79").then(n.bind(null,"4fd5"))},name:"ActivityReward",meta:{title:"活动列表"}}]},{path:"/config",name:"配置管理",component:Dt,redirect:"/config/getAll",meta:{title:"所有配置",icon:"form"},children:[{path:"reply",component:function(){return n.e("chunk-2d0ae9a2").then(n.bind(null,"0b82"))},name:"reply",meta:{title:"回复管理"}},{path:"configlist",component:function(){return n.e("chunk-2d0f04bf").then(n.bind(null,"9c87"))},name:"configlist",meta:{title:"配置列表"}},{path:"playing",component:function(){return n.e("chunk-2d2226a2").then(n.bind(null,"cf09"))},name:"playing",meta:{title:"玩法管理"}},{path:"getAll",component:function(){return n.e("chunk-b79d5444").then(n.bind(null,"af0e"))},name:"getAll",meta:{title:"所有配置"}},{path:"Message",component:function(){return n.e("chunk-1d1a3fb8").then(n.bind(null,"95f8"))},name:"Message",meta:{title:"频道管理"}},{path:"pcConfig",component:function(){return n.e("chunk-2d0d2c0c").then(n.bind(null,"5a9c"))},name:"pcConfig",meta:{title:"游戏切换"}}]},{path:"/certification",name:"certification",component:Dt,redirect:"/certification/issuenumber",meta:{title:"开奖记录",icon:"form"},children:[{path:"issuenumber",component:function(){return n.e("chunk-958f940c").then(n.bind(null,"5312"))},name:"issuenumber",meta:{title:"PC28"}},{path:"abnormal",component:function(){return n.e("chunk-1d8f4b48").then(n.bind(null,"d956"))},name:"abnormal",meta:{title:"错误分页"}},{path:"pcIssue",component:function(){return n.e("chunk-19ae7ca2").then(n.bind(null,"3bea"))},name:"pcIssue",meta:{title:"极速28"}}]},{path:"/order",name:"order",component:Dt,redirect:"/order/order",meta:{title:"投注记录",icon:"form"},children:[{path:"order",component:function(){return n.e("chunk-f9897958").then(n.bind(null,"6af2"))},name:"order",meta:{title:"投注记录"}}]},{path:"/rebate",name:"rebate",component:Dt,redirect:"/rebate/rebate",meta:{title:"返拥管理",icon:"form"},children:[{path:"rebate",component:function(){return n.e("chunk-2d0b3299").then(n.bind(null,"26cb"))},name:"rebate",meta:{title:"笔笔返"}},{path:"backflow",component:function(){return n.e("chunk-2d0ce753").then(n.bind(null,"6014"))},name:"backflow",meta:{title:"回水返"}}]},{path:"/authority",name:"authority",component:Dt,redirect:"/authority/menu",meta:{title:"权限管理",icon:"form"},children:[{path:"menu",component:function(){return n.e("chunk-b64dd4b2").then(n.bind(null,"625b"))},name:"menu",meta:{title:"菜单管理"}},{path:"role",component:function(){return n.e("chunk-2d0a38bb").then(n.bind(null,"0346"))},name:"role",meta:{title:"角色管理"}},{path:"account",component:function(){return n.e("chunk-2d0c51f8").then(n.bind(null,"3e6f"))},name:"account",meta:{title:"账号管理"}}]},{path:"*",redirect:"/404",hidden:!0}],Ht=function(){return new r["a"]({scrollBehavior:function(){return{y:0}},routes:$t})},zt=Ht();function Rt(){var t=Ht();zt.matcher=t.matcher}e["a"]=zt},a495:function(t,e,n){"use strict";n("eb4f")},a4f9:function(t,e,n){"use strict";n("5399")},a583:function(t,e,n){"use strict";n("ac6a")},a6eb:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("21a1"),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},a887:function(t,e,n){},ac5c:function(t,e,n){},ac6a:function(t,e,n){},ad41:function(t,e,n){},af66:function(t,e,n){"use strict";n("7a48")},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("21a1"),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("ac5c")},b775:function(t,e,n){"use strict";n("d3b7");var a=n("bc3a"),i=n.n(a),o=n("5c96"),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},bc88:function(t,e,n){"use strict";n("588d")},c459:function(t,e,n){},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("21a1"),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},dcf8:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("21a1"),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("21a1"),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("21a1"),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("21a1"),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},eb4f:function(t,e,n){},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("21a1"),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("a887")},f4c4:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("21a1"),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},f53a:function(t,e,n){"use strict";n("2c04")},f6c3:function(t,e,n){},f782:function(t,e,n){"use strict";n.r(e);var a=n("e017"),i=n.n(a),o=n("21a1"),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},f87e:function(t,e,n){"use strict";n("279e")},fcb5:function(t,e,n){t.exports=n.p+"static/img/logo.55c9512c.webp"}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]);