Commit f5c48e37 by 无尘

feat: 增加路由

parent 7f99d878
.nav-wrap[data-v-1205f312]{height:48px;line-height:48px;padding:0 20px;-webkit-box-sizing:border-box;box-sizing:border-box}.nav-wrap .el-breadcrumb[data-v-1205f312]{line-height:48px}.el-breadcrumb__inner.is-link[data-v-1205f312]:hover,.el-breadcrumb__inner a[data-v-1205f312]:hover{color:#2f54eb}.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-1205f312],.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-1205f312]:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-1205f312],.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-1205f312]:hover{font-weight:700;text-decoration:none;cursor:pointer;color:#303133}.tab-left-list .tab-left-list-cell[data-v-61fa9846]{position:relative;text-align:left;height:40px;line-height:40px;white-space:nowrap;overflow:hidden;cursor:pointer}.tab-left-list .tab-left-list-cell .iconActive[data-v-61fa9846]{color:#2f54eb}.tab-left-list .tab-left-list-cell[data-v-61fa9846]:hover{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .tab-left-list-cell:hover i[data-v-61fa9846]{color:#2f54eb}.tab-left-list .tab-left-list-cell.active-tab[data-v-61fa9846]{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .tab-left-list-cell.active-tab i[data-v-61fa9846]{color:#2f54eb}.tab-left-list .child-tab-left-list[data-v-61fa9846]{-webkit-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.tab-left-list .child-tab-left-list li[data-v-61fa9846]{position:relative;text-align:left;height:40px;line-height:40px;white-space:nowrap;overflow:hidden;cursor:pointer}.tab-left-list .child-tab-left-list li[data-v-61fa9846]:hover{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .child-tab-left-list li:hover i[data-v-61fa9846]{color:#2f54eb}.tab-left-list .child-tab-left-list li.active-tab[data-v-61fa9846]{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .child-tab-left-list li.active-tab i[data-v-61fa9846]{color:#2f54eb}.line-h-18[data-v-46f3eec2]{line-height:18px}.my-customer-wrap[data-v-46f3eec2]{height:100%}.my-customer-wrap .move-row-cell .icontuozhuaiopen[data-v-46f3eec2]{display:none}.my-customer-wrap .move-row-cell.show-icon .icontuozhuaiopen[data-v-46f3eec2],.my-customer-wrap .move-row-cell:hover .icontuozhuaiopen[data-v-46f3eec2]{display:inline-block;vertical-align:middle}.right-content[data-v-46f3eec2]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-46f3eec2]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-left[data-v-46f3eec2]{min-width:205px;height:100%;background:#fff;overflow-x:hidden;overflow-y:auto}.right-content .right-box .apps-content .apps-content-right[data-v-46f3eec2]{width:calc(100% - 205px);padding-left:10px;background:#f0f2f5}.right-content .right-box .apps-content .apps-content-right .common-app-right[data-v-46f3eec2]{height:100%;padding:20px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff}.right-content .right-box .apps-content .apps-content-right .common-app-right.no-padding[data-v-46f3eec2]{padding:0}.right-content .right-box .apps-content .apps-content-right .common-app-right .font-22[data-v-46f3eec2]{font-size:22px}
\ No newline at end of file
.auth-step-body[data-v-c9703e40]{width:400px;margin:0 auto}.el-alert__title[data-v-6246f46e]{line-height:23px}.color-f5222d[data-v-6246f46e]{color:#f5222d}.auth-commit-success[data-v-68854cb4]{margin-top:154px}.auth-commit-success .color-49c958[data-v-68854cb4]{color:#49c958}.auth-commit-success .font-60[data-v-68854cb4]{font-size:60px}.auth-commit-success .m-t-12[data-v-68854cb4]{margin-top:12px}.auth-commit-success .m-t-28[data-v-68854cb4]{margin-top:28px}.input-line-cell[data-v-8106e482]{position:relative;display:inline-block}.w-340[data-v-8106e482]{width:340px}.w-340[data-v-8106e482] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.el-textarea[data-v-8106e482] .el-textarea__inner{font-size:14px;color:#606266;background-color:hsla(0,0%,100%,.1);resize:none;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,"\5FAE\8F6F\96C5\9ED1",Arial,sans-serif}.el-textarea.is-disabled[data-v-8106e482]{opacity:.5}.el-input .is-disabled[data-v-8106e482] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.tip[data-v-8106e482]{position:absolute;bottom:-5px;right:10px;display:inline-block;line-height:32px;text-align:right;font-size:12px;color:#909399}.auth-commit-admin[data-v-9d92d9c0]{width:400px;margin:0 auto}.auth-commit-admin .color-49c958[data-v-9d92d9c0]{color:#49c958}.auth-commit-admin .font-60[data-v-9d92d9c0]{font-size:60px}.auth-commit-admin .m-t-12[data-v-9d92d9c0]{margin-top:12px}.auth-commit-admin .m-t-28[data-v-9d92d9c0]{margin-top:28px}.auth-commit-admin .m-b-32[data-v-9d92d9c0]{margin-bottom:32px}.auth-commit-admin .w-198[data-v-9d92d9c0]{width:198px}.auth-commit-admin .audit-admin-body[data-v-9d92d9c0]{min-width:500px}.auth-commit-admin .audit-admin-body .audit-admin[data-v-9d92d9c0]{position:relative;color:#606266;font-size:14px;padding:0 8px;margin-bottom:10px}.auth-commit-admin .audit-admin-body .audit-admin[data-v-9d92d9c0]:nth-child(2n):after{content:"";position:absolute;left:0;top:10px;width:0;height:14px;border-left:1px solid #dcdfe6}.select-tree-wrap[data-v-36838884]{height:445px;overflow-y:auto;border:1px solid #e4e7ed}.m-b-20[data-v-a960be2a]{margin-bottom:20px}.w-173[data-v-a960be2a]{width:173px}.w-267[data-v-6ff17e52]{width:267px}.m-t-35[data-v-6ff17e52]{margin-top:35px}.common-bottom-border[data-v-6ff17e52]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.el-input-group__prepend[data-v-6ff17e52]{display:inline-block;width:86px;height:32px;line-height:32px;vertical-align:top;border-color:#c4c6cf}.select-search-input[data-v-6ff17e52]{display:inline-block;margin-left:-2px}.company-select[data-v-6ff17e52]{position:relative}.company-select .el-select-dropdown__item[data-v-6ff17e52]{height:52px;line-height:52px}.company-select .text-ellipsis[data-v-6ff17e52]{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.my-customer-wrap[data-v-6ff17e52]{height:100%}.my-customer-wrap .w-227[data-v-6ff17e52]{width:227px}.my-customer-wrap .auth-tip-body[data-v-6ff17e52]{width:645px;margin:0 auto}.my-customer-wrap .enterprise-version[data-v-6ff17e52]{display:inline-block;vertical-align:top;width:76px;height:32px;margin-right:-1px;background:#f5f7fa;border-radius:2px 0 0 2px;border:1px solid #c4c6cf;border-right:0;font-size:14px;color:#c0c4cc;text-align:center}.my-customer-wrap .store-item-content[data-v-6ff17e52]{position:relative;width:350px;height:32px;overflow:hidden;white-space:nowrap;border-radius:2px;border:1px solid #c4c6cf;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box}.my-customer-wrap .store-item-content .el-select__tags[data-v-6ff17e52]{max-width:348px;white-space:nowrap;overflow:hidden}.right-content[data-v-6ff17e52]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-6ff17e52]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-right[data-v-6ff17e52]{width:100%;padding:20px;background:#fff}.right-content .right-box .apps-content .apps-content-right .common-set-wrap[data-v-6ff17e52]{height:100%;background:#fff}
\ No newline at end of file
.auth-step-body[data-v-c9703e40]{width:400px;margin:0 auto}.el-alert__title[data-v-6246f46e]{line-height:23px}.color-f5222d[data-v-6246f46e]{color:#f5222d}.auth-commit-success[data-v-68854cb4]{margin-top:154px}.auth-commit-success .color-49c958[data-v-68854cb4]{color:#49c958}.auth-commit-success .font-60[data-v-68854cb4]{font-size:60px}.auth-commit-success .m-t-12[data-v-68854cb4]{margin-top:12px}.auth-commit-success .m-t-28[data-v-68854cb4]{margin-top:28px}.input-line-cell[data-v-8106e482]{position:relative;display:inline-block}.w-340[data-v-8106e482]{width:340px}.w-340[data-v-8106e482] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.el-textarea[data-v-8106e482] .el-textarea__inner{font-size:14px;color:#606266;background-color:hsla(0,0%,100%,.1);resize:none;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,"\5FAE\8F6F\96C5\9ED1",Arial,sans-serif}.el-textarea.is-disabled[data-v-8106e482]{opacity:.5}.el-input .is-disabled[data-v-8106e482] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.tip[data-v-8106e482]{position:absolute;bottom:-5px;right:10px;display:inline-block;line-height:32px;text-align:right;font-size:12px;color:#909399}.auth-commit-admin[data-v-9d92d9c0]{width:400px;margin:0 auto}.auth-commit-admin .color-49c958[data-v-9d92d9c0]{color:#49c958}.auth-commit-admin .font-60[data-v-9d92d9c0]{font-size:60px}.auth-commit-admin .m-t-12[data-v-9d92d9c0]{margin-top:12px}.auth-commit-admin .m-t-28[data-v-9d92d9c0]{margin-top:28px}.auth-commit-admin .m-b-32[data-v-9d92d9c0]{margin-bottom:32px}.auth-commit-admin .w-198[data-v-9d92d9c0]{width:198px}.auth-commit-admin .audit-admin-body[data-v-9d92d9c0]{min-width:500px}.auth-commit-admin .audit-admin-body .audit-admin[data-v-9d92d9c0]{position:relative;color:#606266;font-size:14px;padding:0 8px;margin-bottom:10px}.auth-commit-admin .audit-admin-body .audit-admin[data-v-9d92d9c0]:nth-child(2n):after{content:"";position:absolute;left:0;top:10px;width:0;height:14px;border-left:1px solid #dcdfe6}.select-tree-wrap[data-v-761c5b6a]{height:445px;overflow-y:auto;border:1px solid #e4e7ed}.m-b-20[data-v-a960be2a]{margin-bottom:20px}.w-173[data-v-a960be2a]{width:173px}.w-267[data-v-3f152e4d]{width:267px}.m-t-35[data-v-3f152e4d]{margin-top:35px}.common-bottom-border[data-v-3f152e4d]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.el-input-group__prepend[data-v-3f152e4d]{display:inline-block;width:86px;height:32px;line-height:32px;vertical-align:top;border-color:#c4c6cf}.select-search-input[data-v-3f152e4d]{display:inline-block;margin-left:-2px}.company-select[data-v-3f152e4d]{position:relative}.company-select .el-select-dropdown__item[data-v-3f152e4d]{height:52px;line-height:52px}.company-select .text-ellipsis[data-v-3f152e4d]{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.my-customer-wrap[data-v-3f152e4d]{height:100%}.my-customer-wrap .w-227[data-v-3f152e4d]{width:227px}.my-customer-wrap .auth-tip-body[data-v-3f152e4d]{width:645px;margin:0 auto}.my-customer-wrap .enterprise-version[data-v-3f152e4d]{display:inline-block;vertical-align:top;width:76px;height:32px;margin-right:-1px;background:#f5f7fa;border-radius:2px 0 0 2px;border:1px solid #c4c6cf;border-right:0;font-size:14px;color:#c0c4cc;text-align:center}.my-customer-wrap .store-item-content[data-v-3f152e4d]{position:relative;width:350px;height:32px;overflow:hidden;white-space:nowrap;border-radius:2px;border:1px solid #c4c6cf;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box}.my-customer-wrap .store-item-content .el-select__tags[data-v-3f152e4d]{max-width:348px;white-space:nowrap;overflow:hidden}.right-content[data-v-3f152e4d]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-3f152e4d]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-right[data-v-3f152e4d]{width:100%;padding:20px;background:#fff}.right-content .right-box .apps-content .apps-content-right .common-set-wrap[data-v-3f152e4d]{height:100%;background:#fff}
\ No newline at end of file
.font-22[data-v-2d2524c3]{font-size:22px}.common-bottom-border[data-v-2d2524c3]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.common-bottom-border.table-title[data-v-2d2524c3]{font-size:14px;line-height:20px;font-weight:600;color:#303133}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-01456cd4"],{4161:function(e,t,n){},5937:function(e,t,n){"use strict";var a=n("71f6"),r={getRoleMenu:"/list-staff-role-menu"};r=Object(a["a"])(r,"/hb-manage-web"),t["a"]=r},"5b4e":function(e,t,n){"use strict";var a=n("5c96");t["a"]={showmsg:function(e,t){Object(a["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},6065:function(e,t,n){e.exports=n.p+"img/opration.20666b86.png"},"6ce2a":function(e,t,n){e.exports=n.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("ac6a"),n("456d");var a=n("b775");function r(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var r=e[n];"string"===typeof r&&(r={url:r}),r.url="".concat(t).concat(r.url),e[n]=function(e,t){return Object(a["a"])(r,e,t)}})),e}},"7ded":function(e,t,n){"use strict";var a=n("71f6"),r={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};r=Object(a["a"])(r,"/hb-manage-web/auth"),t["a"]=r},"7f2e":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"enterprise-wrap"},[n("vue-office-header",{attrs:{"project-name":e.projectName,"current-menu-code":e.currentMenuCode},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),n("div",{staticClass:"enterprise-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view",{attrs:{"app-menu-data":e.appMenuData}})],1)],1)])])],1)},r=[],o=(n("96cf"),n("1da1")),i=(n("a481"),n("f777")),c=n("5937"),u=n("5b4e"),s=c["a"].getRoleMenu,l={name:"AppIndexPage",components:{vueOfficeHeader:i["a"]},data:function(){return{projectName:"haoban-manage-web",currentMenuCode:"app-controls",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px",appMenuData:[]}},beforeRouteEnter:function(e,t,n){n((function(e){e.getData()}))},mounted:function(){var e=this;window.history&&window.history.pushState&&(history.pushState(null,null,document.URL),window.addEventListener("popstate",e.goBack,!1)),e.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},destroyed:function(){var e=this;window.removeEventListener("popstate",e.goBack,!1)},methods:{goBack:function(){var e=this;"/apps"==e.$route.path&&e.$router.replace({path:"/app-list"})},treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),2==t.level&&1==t.isShow}));return t},getData:function(){var e=this,t={applicationId:e.$route.query.applicationId,appType:2};s(t).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n.result&&n.result.length){t.next=4;break}return u["a"].showmsg("该应用您无权限操作,请联系超级管理员!","warning"),e.$router.push("/app-list"),t.abrupt("return",!1);case 4:return t.next=6,e.treeData(JSON.parse(JSON.stringify(n.result)));case 6:if(e.appMenuData=t.sent,!(e.appMenuData[0]&&e.appMenuData[0].children&&e.appMenuData[0].children.length&&e.appMenuData[0].children[0].children&&e.appMenuData[0].children[0].children.length)){t.next=10;break}return e.$router.push("".concat(e.appMenuData[0].children[0].children[0].menuUrl,"?applicationId=").concat(e.$route.query.applicationId)),t.abrupt("return",!1);case 10:if(!(e.appMenuData[0]&&e.appMenuData[0].children&&e.appMenuData[0].children.length)){t.next=13;break}return e.$router.push("".concat(e.appMenuData[0].children[0].menuUrl,"?applicationId=").concat(e.$route.query.applicationId)),t.abrupt("return",!1);case 13:e.$router.push("".concat(e.appMenuData[0].menuUrl,"?applicationId=").concat(e.$route.query.applicationId));case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))},toRouterView:function(e){var t=this;t.$router.push({path:e.path})},collapseTag:function(e){var t=this;t.collapseFlag=e}},computed:{}},p=l,d=(n("ca0d"),n("2877")),h=Object(d["a"])(p,a,r,!1,null,"e07f8dba",null);t["default"]=h.exports},ac5f:function(e,t,n){},ca0d:function(e,t,n){"use strict";var a=n("ac5f"),r=n.n(a);r.a},f777:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav-header"},[a("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:e.toIndex}},[a("span",{staticClass:"pro-name"},[e._v("好办管理平台")])]),a("div",{staticClass:"nav-header-item fl"},[e._l(e.menuHead,(function(t,n){return[a("a",{key:n,class:["item-link menu-font-16"],on:{click:function(n){return e.changeRouter(t)}}},[a("span",{class:["inline-block bottom",-1!=t.menuUrl.indexOf(e.pathName)||e.currentMenuCode==t.menuCode?"current-module":""]},[e._v(e._s(t.menuName))])])]})),a("div",{staticClass:"navuser-info fr"},[e.userInfo.headImg?a("img",{staticClass:"user-img",attrs:{src:e.userInfo.headImg,alt:""}}):e._e(),e.userInfo.headImg||"operation_admin"==e.userInfo.roleCode?e._e():a("img",{staticClass:"user-img",attrs:{src:n("6ce2a"),alt:"img"}}),e.userInfo.headImg||"operation_admin"!=e.userInfo.roleCode?e._e():a("img",{staticClass:"user-img",attrs:{src:n("6065"),alt:"img"}}),a("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuer-wrap"},[a("li",[a("p",{staticClass:"font-14 color-606266 hide-item"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("p",{staticClass:"font-12 color-909399 hide-item"},[e._v(e._s(e.userInfo.roleName||"--"))])]),a("li",{staticClass:"user-item text-align",on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[a("a",{staticClass:"user-text"},[e._v("退出登录")])])]),a("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[a("span",{staticClass:"font-12 color-606266"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},r=[],o=(n("456d"),n("96cf"),n("1da1")),i=(n("ac6a"),n("7ded")),c=n("5937"),u=c["a"].getRoleMenu,s=i["a"].getUserInfo,l=i["a"].loginOut,p={name:"VueOfficeHeader",components:{},props:{currentMenuCode:{type:String,default:""}},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:"",roleCode:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,localStorage.removeItem("haoBanUser"),e.toLogin()},methods:{toIndex:function(){var e=this;e.$router.push("/contactsList")},changeRouter:function(e){var t=this;if(1==e.target)-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4".concat(e.menuUrl));else{t.setLeftData(e);var n={};t.roleMenuData.forEach((function(t){e.menuCode!=t.menuCode||t.children.length||(n=t),e.menuCode==t.menuCode&&t.children.length&&(n=t.children[0]),e.menuCode==t.menuCode&&t.children.length&&t.children[0].children.length&&(n=t.children[0].children[0])})),console.log("childRoute:",n),t.$router.push(n.menuUrl)}},setLeftData:function(e){var t=this,n=[];t.roleMenuData.forEach((function(t){e.menuCode==t.menuCode&&n.push(t)})),t.$emit("leftData",n)},toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){l({}).then((function(t){"0000"==t.code&&(e.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/login")})).catch((function(e){}))})).catch((function(){}))},toLogin:function(){var e=this;s({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:"",roleCode:""}}),localStorage.setItem("haoBanUser",JSON.stringify(t.result.loginStaff)),e.userInfo=Object.assign(t.result.loginStaff,t.result.role),e.getData()})).catch((function(e){}))},treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),""==t.parentCode&&1==t.isShow}));return t},getData:function(){var e=this,t={appType:1};u(t).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){var a,r,o,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("0000"!=n.code){t.next=14;break}return a=[],r={},o={},n.result.forEach((function(t){1==t.level&&1==t.isShow&&a.push(t),e.$route.path==t.menuUrl&&1==t.level&&1==t.isShow&&(r=t),e.$route.path==t.menuUrl&&1!=t.level&&(o=t)})),e.menuHead=a,t.next=8,e.treeData(JSON.parse(JSON.stringify(n.result)));case 8:e.roleMenuData=t.sent,Object.keys(o).length&&2==o.level&&n.result.forEach((function(e){o.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(r=e)})),i={},Object.keys(o).length&&3==o.level&&n.result.forEach((function(e){o.parentCode==e.menuCode&&2==e.level&&1==e.isShow&&(i=e)})),Object.keys(i).length&&2==i.level&&n.result.forEach((function(e){i.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(r=e)})),e.setLeftData(r);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},d=p,h=(n("fd34"),n("2877")),f=Object(h["a"])(d,a,r,!1,null,"7a4e6782",null);t["a"]=f.exports},fd34:function(e,t,n){"use strict";var a=n("4161"),r=n.n(a);r.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-080560e6"],{"21f4":function(t,e,a){"use strict";var n=a("71f6"),r={getAuthEnterprise:"/auth-enterprise-list",getGroupList:"/department-list",getStoreList:"/store-list",getAuthDetail:"/enterprise-auth-detail",getAuditLog:"/enterprise-auth-audit-list",cancelAudit:{url:"/enterprise-auth-audit",method:"post",useFormData:!0,useIntercept:!1},getCheckName:"/gic-admin-frist",checkName:{url:"/gic-name-validate",method:"post",useFormData:!0,useIntercept:!1},getAuditLogDetail:"/enterprise-auth-audit-range-detail",getEnterprise:"/enterprise-search",getGicAdmin:"/gic-manage-list",postEnterpriseAuth:{url:"/enterprise-auth",method:"post",useFormData:!0,useIntercept:!1},getEnterpriseDetail:"/gic-enterprise-detail"};r=Object(n["a"])(r,"/hb-manage-web"),e["a"]=r},"29b6":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nav-wrap border-box"},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navpath,(function(e,n){return[e.path?[a("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:e.path}},on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[a("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name)+"\n ")])])]:[a("el-breadcrumb-item",{key:"nav"+n},[t._v(t._s(e.name))])]]}))],2)],1)},r=[],o={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(t,e){var a=this;e?window.location.href=t:a.$router.push(t)}}},s=o,i=(a("6b4b"),a("2877")),l=Object(i["a"])(s,n,r,!1,null,"2c2a2724",null);e["a"]=l.exports},"56b3":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"my-customer-wrap common-set-wrap"},[n("nav-crumb",{attrs:{navpath:t.navpath}}),n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[n("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[n("div",{staticClass:"apps-content-right"},[n("div",{staticClass:"flex flex-space-between"},[n("div",{staticStyle:{width:"643px"}},[n("div",{staticClass:"el-alert el-alert--info flex flex-align-start",staticStyle:{width:"643px"},attrs:{role:"alert"}},[n("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),n("div",{staticClass:"el-alert__content"},[n("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("提示:授权的商户,需在同一个微信开放平台主体下;最多授权10个商户。 ")]),n("el-button",{attrs:{type:"text"},on:{click:t.openUrl}},[t._v("主体查询方法")])],1)])]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.changeRoute("/newAuthMerchant")}}},[t._v("新建GIC商户授权")])],1),n("div",{staticClass:"m-t-20"},[n("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{prop:"",label:"商户列表",width:"238","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"ul-li-cell flex"},[n("div",{staticClass:"cell-img"},[e.row.enterpriseLogo?n("img",{attrs:{src:e.row.enterpriseLogo,alt:"img"}}):n("img",{attrs:{src:a("6ce2a"),alt:"img"}})]),n("div",{staticClass:"cell-info"},[n("div",{staticClass:"cell-info-name flex font-14 color-303133"},[n("span",{staticClass:"gic-name"},[t._v(t._s(e.row.enterpriseName||"--"))]),n("span",{staticClass:"gic-version"},[t._v(t._s(e.row.version||"--"))])]),n("div",{staticClass:"cell-info-name flex font-14 color-303133"},[n("span",{staticClass:"gic-name"},[t._v(t._s(e.row.companyName||"--"))])])])])]}}])}),n("el-table-column",{attrs:{prop:"",label:"绑定门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.bindRange||"--")+"\n ")]}}])},[n("template",{slot:"header"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 绑定门店拥有门店资源管理权限。能查看数据,绑定导购账号,管理门店等\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("绑定门店")])])],1)],2),n("el-table-column",{attrs:{prop:"",label:"共享门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.shareRange||"--")+"\n ")]}}])},[n("template",{slot:"header"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 共享门店拥有门店资源查看权限。仅能授权查看数据,"),n("br"),t._v("如会员数据,任务数据等,但无法操作及进行导购账号绑定\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("共享门店")])])],1)],2),n("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.referStaffName||"--"))]}}])}),n("el-table-column",{attrs:{prop:"",label:"授权时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),n("el-table-column",{attrs:{prop:"",label:"更新时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime)))]),n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime)))])]}}])}),n("el-table-column",{attrs:{prop:"",label:"操作",width:"203"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEdit(e.$index,e.row)}}},[t._v("编辑授权设置")]),n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toAuditLog(e.$index,e.row)}}},[t._v("审核日志")])]}}])})],1)],1)])])])])],1)},r=[],o=a("29b6"),s=a("21f4"),i=s["a"].getAuthEnterprise,l={name:"AuthMerchant",components:{navCrumb:o["a"]},data:function(){return{navpath:[{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",currentPage:1,pageSize:20,total:0,tableData:[]}},mounted:function(){var t=this;t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{toEdit:function(t,e){var a=this;a.changeRoute("/newAuthMerchant?enterpriseId=".concat(e.enterpriseId))},toAuditLog:function(t,e){var a=this;a.changeRoute("/auditLog?enterpriseId=".concat(e.enterpriseId))},openUrl:function(){window.open("https://developers.weixin.qq.com/community/develop/doc/00046610a9cbb0fd80f9a7dd354c09")},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},getTableList:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId};i(e).then((function(e){t.tableData=e.result||[]})).catch((function(t){}))}}},c=l,u=(a("62f6"),a("2877")),p=Object(u["a"])(c,n,r,!1,null,"1c17dfdc",null);e["default"]=p.exports},"62f6":function(t,e,a){"use strict";var n=a("e10f"),r=a.n(n);r.a},"6b4b":function(t,e,a){"use strict";var n=a("76d4"),r=a.n(n);r.a},"6ce2a":function(t,e,a){t.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));a("ac6a"),a("456d");var n=a("b775");function r(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var r=t[a];"string"===typeof r&&(r={url:r}),r.url="".concat(e).concat(r.url),t[a]=function(t,e){return Object(n["a"])(r,t,e)}})),t}},"76d4":function(t,e,a){},e10f:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0eeefe9b"],{4161:function(e,t,n){},"50c8":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"enterprise-wrap"},[n("vue-office-header",{attrs:{"project-name":e.projectName,"current-menu-code":e.currentMenuCode},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),n("div",{staticClass:"enterprise-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},o=[],r=n("f777"),i={name:"EnterprisePage",components:{vueOfficeHeader:r["a"]},data:function(){return{projectName:"haoban-manage-web",currentMenuCode:"contactsList",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},mounted:function(){var e=this;e.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},methods:{toRouterView:function(e){var t=this;t.$router.push({path:e.path})},collapseTag:function(e){var t=this;t.collapseFlag=e}},watch:{$route:{handler:function(e,t){var n=this;n.currentMenuCode="contactsList"},deep:!0}}},s=i,c=(n("ef14"),n("2877")),u=Object(c["a"])(s,a,o,!1,null,"08da1fc0",null);t["default"]=u.exports},5937:function(e,t,n){"use strict";var a=n("71f6"),o={getRoleMenu:"/list-staff-role-menu"};o=Object(a["a"])(o,"/hb-manage-web"),t["a"]=o},6065:function(e,t,n){e.exports=n.p+"img/opration.20666b86.png"},"6ce2":function(e,t,n){e.exports=n.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("ac6a"),n("456d");var a=n("b775");function o(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var o=e[n];"string"===typeof o&&(o={url:o}),o.url="".concat(t).concat(o.url),e[n]=function(e,t){return Object(a["a"])(o,e,t)}})),e}},"7ded":function(e,t,n){"use strict";var a=n("71f6"),o={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};o=Object(a["a"])(o,"/hb-manage-web/auth"),t["a"]=o},e876:function(e,t,n){},ef14:function(e,t,n){"use strict";var a=n("e876"),o=n.n(a);o.a},f777:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav-header"},[a("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:e.toIndex}},[a("span",{staticClass:"pro-name"},[e._v("好办管理平台")])]),a("div",{staticClass:"nav-header-item fl"},[e._l(e.menuHead,(function(t,n){return[a("a",{key:n,class:["item-link menu-font-16"],on:{click:function(n){return e.changeRouter(t)}}},[a("span",{class:["inline-block bottom",-1!=t.menuUrl.indexOf(e.pathName)||e.currentMenuCode==t.menuCode?"current-module":""]},[e._v(e._s(t.menuName))])])]})),a("div",{staticClass:"navuser-info fr"},[e.userInfo.headImg?a("img",{staticClass:"user-img",attrs:{src:e.userInfo.headImg,alt:""}}):e._e(),e.userInfo.headImg||"operation_admin"==e.userInfo.roleCode?e._e():a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),alt:"img"}}),e.userInfo.headImg||"operation_admin"!=e.userInfo.roleCode?e._e():a("img",{staticClass:"user-img",attrs:{src:n("6065"),alt:"img"}}),a("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuer-wrap"},[a("li",[a("p",{staticClass:"font-14 color-606266 hide-item"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("p",{staticClass:"font-12 color-909399 hide-item"},[e._v(e._s(e.userInfo.roleName||"--"))])]),a("li",{staticClass:"user-item text-align",on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[a("a",{staticClass:"user-text"},[e._v("退出登录")])])]),a("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[a("span",{staticClass:"font-12 color-606266"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},o=[],r=(n("456d"),n("96cf"),n("1da1")),i=(n("ac6a"),n("7ded")),s=n("5937"),c=s["a"].getRoleMenu,u=i["a"].getUserInfo,l=i["a"].loginOut,f={name:"VueOfficeHeader",components:{},props:{currentMenuCode:{type:String,default:""}},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:"",roleCode:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,localStorage.removeItem("haoBanUser"),e.toLogin()},methods:{toIndex:function(){var e=this;e.$router.push("/contactsList")},changeRouter:function(e){var t=this;if(1==e.target)-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4".concat(e.menuUrl));else{t.setLeftData(e);var n={};t.roleMenuData.forEach((function(t){e.menuCode!=t.menuCode||t.children.length||(n=t),e.menuCode==t.menuCode&&t.children.length&&(n=t.children[0]),e.menuCode==t.menuCode&&t.children.length&&t.children[0].children.length&&(n=t.children[0].children[0])})),console.log("childRoute:",n),t.$router.push(n.menuUrl)}},setLeftData:function(e){var t=this,n=[];t.roleMenuData.forEach((function(t){e.menuCode==t.menuCode&&n.push(t)})),t.$emit("leftData",n)},toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){l({}).then((function(t){"0000"==t.code&&(e.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/login")})).catch((function(e){}))})).catch((function(){}))},toLogin:function(){var e=this;u({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:"",roleCode:""}}),localStorage.setItem("haoBanUser",JSON.stringify(t.result.loginStaff)),e.userInfo=Object.assign(t.result.loginStaff,t.result.role),e.getData()})).catch((function(e){}))},treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),""==t.parentCode&&1==t.isShow}));return t},getData:function(){var e=this,t={appType:1};c(t).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(n){var a,o,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("0000"!=n.code){t.next=14;break}return a=[],o={},r={},n.result.forEach((function(t){1==t.level&&1==t.isShow&&a.push(t),e.$route.path==t.menuUrl&&1==t.level&&1==t.isShow&&(o=t),e.$route.path==t.menuUrl&&1!=t.level&&(r=t)})),e.menuHead=a,t.next=8,e.treeData(JSON.parse(JSON.stringify(n.result)));case 8:e.roleMenuData=t.sent,Object.keys(r).length&&2==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(o=e)})),i={},Object.keys(r).length&&3==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&2==e.level&&1==e.isShow&&(i=e)})),Object.keys(i).length&&2==i.level&&n.result.forEach((function(e){i.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(o=e)})),e.setLeftData(o);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},d=f,h=(n("fd34"),n("2877")),m=Object(h["a"])(d,a,o,!1,null,"7a4e6782",null);t["a"]=m.exports},fd34:function(e,t,n){"use strict";var a=n("4161"),o=n.n(a);o.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-168cd8ff"],{4161:function(e,t,n){},5937:function(e,t,n){"use strict";var a=n("71f6"),r={getRoleMenu:"/list-staff-role-menu"};r=Object(a["a"])(r,"/hb-manage-web"),t["a"]=r},"5b4e":function(e,t,n){"use strict";var a=n("5c96");t["a"]={showmsg:function(e,t){Object(a["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},6065:function(e,t,n){e.exports=n.p+"img/opration.20666b86.png"},"6ce2":function(e,t,n){e.exports=n.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("ac6a"),n("456d");var a=n("b775");function r(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var r=e[n];"string"===typeof r&&(r={url:r}),r.url="".concat(t).concat(r.url),e[n]=function(e,t){return Object(a["a"])(r,e,t)}})),e}},"7ded":function(e,t,n){"use strict";var a=n("71f6"),r={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};r=Object(a["a"])(r,"/hb-manage-web/auth"),t["a"]=r},"7f2e":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"enterprise-wrap"},[n("vue-office-header",{attrs:{"project-name":e.projectName,"current-menu-code":e.currentMenuCode},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),n("div",{staticClass:"enterprise-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view",{attrs:{"app-menu-data":e.appMenuData}})],1)],1)])])],1)},r=[],o=(n("96cf"),n("1da1")),i=(n("a481"),n("f777")),c=n("5937"),u=n("5b4e"),s=c["a"].getRoleMenu,l={name:"AppIndexPage",components:{vueOfficeHeader:i["a"]},data:function(){return{projectName:"haoban-manage-web",currentMenuCode:"app-controls",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px",appMenuData:[]}},beforeRouteEnter:function(e,t,n){n((function(e){e.getData()}))},mounted:function(){var e=this;window.history&&window.history.pushState&&(history.pushState(null,null,document.URL),window.addEventListener("popstate",e.goBack,!1)),e.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},destroyed:function(){var e=this;window.removeEventListener("popstate",e.goBack,!1)},methods:{goBack:function(){var e=this;"/apps"==e.$route.path&&e.$router.replace({path:"/app-list"})},treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),2==t.level&&1==t.isShow}));return t},getData:function(){var e=this,t={applicationId:e.$route.query.applicationId,appType:2};s(t).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n.result&&n.result.length){t.next=4;break}return u["a"].showmsg("该应用您无权限操作,请联系超级管理员!","warning"),e.$router.push("/app-list"),t.abrupt("return",!1);case 4:return t.next=6,e.treeData(JSON.parse(JSON.stringify(n.result)));case 6:if(e.appMenuData=t.sent,!(e.appMenuData[0]&&e.appMenuData[0].children&&e.appMenuData[0].children.length&&e.appMenuData[0].children[0].children&&e.appMenuData[0].children[0].children.length)){t.next=10;break}return e.$router.push("".concat(e.appMenuData[0].children[0].children[0].menuUrl,"?applicationId=").concat(e.$route.query.applicationId)),t.abrupt("return",!1);case 10:if(!(e.appMenuData[0]&&e.appMenuData[0].children&&e.appMenuData[0].children.length)){t.next=13;break}return e.$router.push("".concat(e.appMenuData[0].children[0].menuUrl,"?applicationId=").concat(e.$route.query.applicationId)),t.abrupt("return",!1);case 13:e.$router.push("".concat(e.appMenuData[0].menuUrl,"?applicationId=").concat(e.$route.query.applicationId));case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))},toRouterView:function(e){var t=this;t.$router.push({path:e.path})},collapseTag:function(e){var t=this;t.collapseFlag=e}},computed:{}},p=l,d=(n("ca0d"),n("2877")),f=Object(d["a"])(p,a,r,!1,null,"e07f8dba",null);t["default"]=f.exports},ac5f:function(e,t,n){},ca0d:function(e,t,n){"use strict";var a=n("ac5f"),r=n.n(a);r.a},f777:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav-header"},[a("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:e.toIndex}},[a("span",{staticClass:"pro-name"},[e._v("好办管理平台")])]),a("div",{staticClass:"nav-header-item fl"},[e._l(e.menuHead,(function(t,n){return[a("a",{key:n,class:["item-link menu-font-16"],on:{click:function(n){return e.changeRouter(t)}}},[a("span",{class:["inline-block bottom",-1!=t.menuUrl.indexOf(e.pathName)||e.currentMenuCode==t.menuCode?"current-module":""]},[e._v(e._s(t.menuName))])])]})),a("div",{staticClass:"navuser-info fr"},[e.userInfo.headImg?a("img",{staticClass:"user-img",attrs:{src:e.userInfo.headImg,alt:""}}):e._e(),e.userInfo.headImg||"operation_admin"==e.userInfo.roleCode?e._e():a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),alt:"img"}}),e.userInfo.headImg||"operation_admin"!=e.userInfo.roleCode?e._e():a("img",{staticClass:"user-img",attrs:{src:n("6065"),alt:"img"}}),a("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuer-wrap"},[a("li",[a("p",{staticClass:"font-14 color-606266 hide-item"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("p",{staticClass:"font-12 color-909399 hide-item"},[e._v(e._s(e.userInfo.roleName||"--"))])]),a("li",{staticClass:"user-item text-align",on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[a("a",{staticClass:"user-text"},[e._v("退出登录")])])]),a("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[a("span",{staticClass:"font-12 color-606266"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},r=[],o=(n("456d"),n("96cf"),n("1da1")),i=(n("ac6a"),n("7ded")),c=n("5937"),u=c["a"].getRoleMenu,s=i["a"].getUserInfo,l=i["a"].loginOut,p={name:"VueOfficeHeader",components:{},props:{currentMenuCode:{type:String,default:""}},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:"",roleCode:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,localStorage.removeItem("haoBanUser"),e.toLogin()},methods:{toIndex:function(){var e=this;e.$router.push("/contactsList")},changeRouter:function(e){var t=this;if(1==e.target)-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4".concat(e.menuUrl));else{t.setLeftData(e);var n={};t.roleMenuData.forEach((function(t){e.menuCode!=t.menuCode||t.children.length||(n=t),e.menuCode==t.menuCode&&t.children.length&&(n=t.children[0]),e.menuCode==t.menuCode&&t.children.length&&t.children[0].children.length&&(n=t.children[0].children[0])})),console.log("childRoute:",n),t.$router.push(n.menuUrl)}},setLeftData:function(e){var t=this,n=[];t.roleMenuData.forEach((function(t){e.menuCode==t.menuCode&&n.push(t)})),t.$emit("leftData",n)},toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){l({}).then((function(t){"0000"==t.code&&(e.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/login")})).catch((function(e){}))})).catch((function(){}))},toLogin:function(){var e=this;s({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:"",roleCode:""}}),localStorage.setItem("haoBanUser",JSON.stringify(t.result.loginStaff)),e.userInfo=Object.assign(t.result.loginStaff,t.result.role),e.getData()})).catch((function(e){}))},treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),""==t.parentCode&&1==t.isShow}));return t},getData:function(){var e=this,t={appType:1};u(t).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){var a,r,o,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("0000"!=n.code){t.next=14;break}return a=[],r={},o={},n.result.forEach((function(t){1==t.level&&1==t.isShow&&a.push(t),e.$route.path==t.menuUrl&&1==t.level&&1==t.isShow&&(r=t),e.$route.path==t.menuUrl&&1!=t.level&&(o=t)})),e.menuHead=a,t.next=8,e.treeData(JSON.parse(JSON.stringify(n.result)));case 8:e.roleMenuData=t.sent,Object.keys(o).length&&2==o.level&&n.result.forEach((function(e){o.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(r=e)})),i={},Object.keys(o).length&&3==o.level&&n.result.forEach((function(e){o.parentCode==e.menuCode&&2==e.level&&1==e.isShow&&(i=e)})),Object.keys(i).length&&2==i.level&&n.result.forEach((function(e){i.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(r=e)})),e.setLeftData(r);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},d=p,f=(n("fd34"),n("2877")),h=Object(f["a"])(d,a,r,!1,null,"7a4e6782",null);t["a"]=h.exports},fd34:function(e,t,n){"use strict";var a=n("4161"),r=n.n(a);r.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0af63b"],{"0db3":function(n,t,e){"use strict";e.r(t);var a=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div")},c=[],o={name:"TargetSet",components:{},data:function(){return{}},methods:{},watch:{}},r=o,u=e("2877"),s=Object(u["a"])(r,a,c,!1,null,"22d50f06",null);t["default"]=s.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b3097"],{2751:function(n,t,e){"use strict";e.r(t);var a=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div")},c=[],o={name:"QuotaSet",components:{},data:function(){return{}},methods:{},watch:{}},u=o,r=e("2877"),s=Object(r["a"])(u,a,c,!1,null,"a2c1079a",null);t["default"]=s.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dad10"],{"6ce2":function(n,u,c){"use strict";c.r(u);var e,l,a=c("2877"),d={},o=Object(a["a"])(d,e,l,!1,null,null,null);u["default"]=o.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e1f21"],{"7d31":function(n,u,e){"use strict";e.r(u);var l,c,o=e("2877"),p={},s=Object(o["a"])(p,l,c,!1,null,null,null);u["default"]=s.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21d15a"],{d091:function(n,u,l){"use strict";l.r(u);var a,c,d=l("2877"),e={},o=Object(d["a"])(e,a,c,!1,null,null,null);u["default"]=o.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59f26ec8"],{4161:function(e,t,n){},"50c8":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"enterprise-wrap"},[n("vue-office-header",{attrs:{"project-name":e.projectName,"current-menu-code":e.currentMenuCode},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),n("div",{staticClass:"enterprise-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},o=[],r=n("f777"),i={name:"EnterprisePage",components:{vueOfficeHeader:r["a"]},data:function(){return{projectName:"haoban-manage-web",currentMenuCode:"contactsList",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},mounted:function(){var e=this;e.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},methods:{toRouterView:function(e){var t=this;t.$router.push({path:e.path})},collapseTag:function(e){var t=this;t.collapseFlag=e}},watch:{$route:{handler:function(e,t){var n=this;n.currentMenuCode="contactsList"},deep:!0}}},s=i,c=(n("ef14"),n("2877")),u=Object(c["a"])(s,a,o,!1,null,"08da1fc0",null);t["default"]=u.exports},5937:function(e,t,n){"use strict";var a=n("71f6"),o={getRoleMenu:"/list-staff-role-menu"};o=Object(a["a"])(o,"/hb-manage-web"),t["a"]=o},6065:function(e,t,n){e.exports=n.p+"img/opration.20666b86.png"},"6ce2a":function(e,t,n){e.exports=n.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("ac6a"),n("456d");var a=n("b775");function o(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var o=e[n];"string"===typeof o&&(o={url:o}),o.url="".concat(t).concat(o.url),e[n]=function(e,t){return Object(a["a"])(o,e,t)}})),e}},"7ded":function(e,t,n){"use strict";var a=n("71f6"),o={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};o=Object(a["a"])(o,"/hb-manage-web/auth"),t["a"]=o},e876:function(e,t,n){},ef14:function(e,t,n){"use strict";var a=n("e876"),o=n.n(a);o.a},f777:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav-header"},[a("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:e.toIndex}},[a("span",{staticClass:"pro-name"},[e._v("好办管理平台")])]),a("div",{staticClass:"nav-header-item fl"},[e._l(e.menuHead,(function(t,n){return[a("a",{key:n,class:["item-link menu-font-16"],on:{click:function(n){return e.changeRouter(t)}}},[a("span",{class:["inline-block bottom",-1!=t.menuUrl.indexOf(e.pathName)||e.currentMenuCode==t.menuCode?"current-module":""]},[e._v(e._s(t.menuName))])])]})),a("div",{staticClass:"navuser-info fr"},[e.userInfo.headImg?a("img",{staticClass:"user-img",attrs:{src:e.userInfo.headImg,alt:""}}):e._e(),e.userInfo.headImg||"operation_admin"==e.userInfo.roleCode?e._e():a("img",{staticClass:"user-img",attrs:{src:n("6ce2a"),alt:"img"}}),e.userInfo.headImg||"operation_admin"!=e.userInfo.roleCode?e._e():a("img",{staticClass:"user-img",attrs:{src:n("6065"),alt:"img"}}),a("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuer-wrap"},[a("li",[a("p",{staticClass:"font-14 color-606266 hide-item"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("p",{staticClass:"font-12 color-909399 hide-item"},[e._v(e._s(e.userInfo.roleName||"--"))])]),a("li",{staticClass:"user-item text-align",on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[a("a",{staticClass:"user-text"},[e._v("退出登录")])])]),a("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[a("span",{staticClass:"font-12 color-606266"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},o=[],r=(n("456d"),n("96cf"),n("1da1")),i=(n("ac6a"),n("7ded")),s=n("5937"),c=s["a"].getRoleMenu,u=i["a"].getUserInfo,l=i["a"].loginOut,f={name:"VueOfficeHeader",components:{},props:{currentMenuCode:{type:String,default:""}},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:"",roleCode:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,localStorage.removeItem("haoBanUser"),e.toLogin()},methods:{toIndex:function(){var e=this;e.$router.push("/contactsList")},changeRouter:function(e){var t=this;if(1==e.target)-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4".concat(e.menuUrl));else{t.setLeftData(e);var n={};t.roleMenuData.forEach((function(t){e.menuCode!=t.menuCode||t.children.length||(n=t),e.menuCode==t.menuCode&&t.children.length&&(n=t.children[0]),e.menuCode==t.menuCode&&t.children.length&&t.children[0].children.length&&(n=t.children[0].children[0])})),console.log("childRoute:",n),t.$router.push(n.menuUrl)}},setLeftData:function(e){var t=this,n=[];t.roleMenuData.forEach((function(t){e.menuCode==t.menuCode&&n.push(t)})),t.$emit("leftData",n)},toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){l({}).then((function(t){"0000"==t.code&&(e.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/login")})).catch((function(e){}))})).catch((function(){}))},toLogin:function(){var e=this;u({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:"",roleCode:""}}),localStorage.setItem("haoBanUser",JSON.stringify(t.result.loginStaff)),e.userInfo=Object.assign(t.result.loginStaff,t.result.role),e.getData()})).catch((function(e){}))},treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),""==t.parentCode&&1==t.isShow}));return t},getData:function(){var e=this,t={appType:1};c(t).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(n){var a,o,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("0000"!=n.code){t.next=14;break}return a=[],o={},r={},n.result.forEach((function(t){1==t.level&&1==t.isShow&&a.push(t),e.$route.path==t.menuUrl&&1==t.level&&1==t.isShow&&(o=t),e.$route.path==t.menuUrl&&1!=t.level&&(r=t)})),e.menuHead=a,t.next=8,e.treeData(JSON.parse(JSON.stringify(n.result)));case 8:e.roleMenuData=t.sent,Object.keys(r).length&&2==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(o=e)})),i={},Object.keys(r).length&&3==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&2==e.level&&1==e.isShow&&(i=e)})),Object.keys(i).length&&2==i.level&&n.result.forEach((function(e){i.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(o=e)})),e.setLeftData(o);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},d=f,h=(n("fd34"),n("2877")),m=Object(h["a"])(d,a,o,!1,null,"7a4e6782",null);t["a"]=m.exports},fd34:function(e,t,n){"use strict";var a=n("4161"),o=n.n(a);o.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-61425e0c"],{"46e5":function(t,e,a){},"503e":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"p-t-12"},[a("ul",{staticClass:"tab-left-list"},[t._l(t.tabData,(function(e,n){return[a("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",e.menuUrl!=t.activeTab||e.children&&e.children.length?"":"active-tab"],on:{click:function(a){return t.selectTab(e,!1,n)}}},[a("i",{class:["p-r-10 color-303133 iconfont",e.iconUrl,(e.onlyIconActive,"")]}),t._v(t._s(e.tabName||e.menuName)+"\n ")]),a("ul",{key:"childitem"+n,staticClass:"child-tab-left-list"},[t._l(e.children,(function(e,i){return[a("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",e.menuUrl!=t.activeTab||e.children&&e.children.length?"":"active-tab"],on:{click:function(a){return t.selectTab(e,"child",n)}}},[t._v(t._s(e.tabName||e.menuName))]),a("ul",{key:"thirditem"+i,staticClass:"third-tab-left-list"},[t._l(e.children,(function(e,i){return[a("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",e.menuUrl!=t.activeTab||e.children&&e.children.length?"":"active-tab"],on:{click:function(a){return t.selectTab(e,"child",n)}}},[t._v(t._s(e.tabName||e.menuName))])]}))],2)]}))],2)]}))],2)])},i=[],r=(a("ac6a"),a("c5f6"),{name:"CommonDetailLeft",props:{appName:{type:String,default:function(){return""}},activeSelTab:{type:[String,Number],default:function(){return""}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1",tabData:this.tabListData,collapsFlag:!0}},mounted:function(){this.activeTab=this.activeSelTab},methods:{selectTab:function(t,e,a){var n=this;if(e?n.tabData[a].onlyIconActive=!0:(n.tabData.forEach((function(t){t.onlyIconActive=!1})),t.hasOwnProperty("children")&&t.children.length&&(n.collapsFlag=!(n.collapsFlag&&t.hasOwnProperty("children")&&t.children.length))),t.hasOwnProperty("children")&&t.children.length)return n.tabData[a].onlyIconActive=!0,t.children[0]&&t.children[0].hasOwnProperty("children")&&t.children[0].children.length?(n.activeTab=t.children[0].children[0].menuUrl,n.$emit("setSelectTab",t.children[0].children[0]),!1):(n.activeTab=t.children[0].menuUrl,n.$emit("setSelectTab",t.children[0]),!1);n.activeTab=t.menuUrl,n.$emit("setSelectTab",t)}},watch:{tabListData:function(t,e){var a=this;a.tabData=t},activeSelTab:function(t,e){var a=this;a.activeTab=t}}}),c=r,o=(a("6255"),a("2877")),s=Object(o["a"])(c,n,i,!1,null,"61fa9846",null);e["a"]=s.exports},"57fc":function(t,e,a){},5834:function(t,e,a){"use strict";var n=a("a56b"),i=a.n(n);i.a},6255:function(t,e,a){"use strict";var n=a("57fc"),i=a.n(n);i.a},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));a("ac6a"),a("456d");var n=a("b775");function i(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var i=t[a];"string"===typeof i&&(i={url:i}),i.url="".concat(e).concat(i.url),t[a]=function(t,e){return Object(n["a"])(i,t,e)}})),t}},"96b6":function(t,e,a){"use strict";var n=a("71f6"),i={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};i=Object(n["a"])(i,"/hb-manage-web"),e["a"]=i},9924:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("common-detail-left",{attrs:{"tab-list-data":t.tabListData,"active-sel-tab":t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{"brand-id":t.activeBrand,"active-group-id":t.activeGroup,"tab-type":t.activeTab},on:{showTab:t.showTab}})],1)],1)])])])],1)},i=[],r=a("e1b3"),c=a("503e"),o={name:"Reviewed",components:{navCrumb:r["a"],commonDetailLeft:c["a"]},props:{appMenuData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/app-list"},{name:"指标管理",path:""}],tabListData:[],activeBrand:"",activeGroup:""}},mounted:function(){var t=this;t.tabListData=JSON.parse(JSON.stringify(t.appMenuData)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{selectBrandId:function(t,e){var a=this;a.activeBrand=t,a.activeGroup=e},changeRoute:function(t){this.$router.push(t)},setSelectTab:function(t){var e=this;e.activeTab=t.menuUrl,1==t.target?-1!=t.menuUrl.indexOf("http")?window.open(t.menuUrl):window.open("/haoban-4".concat(t.menuUrl)):e.$router.push("".concat(t.menuUrl,"?applicationId=").concat(e.$route.query.applicationId))},showTab:function(t){var e=this;e.activeTab=t,e.activeSelTab=t}},watch:{activeBrand:function(t,e){var a=this;a.activeBrand=t},appMenuData:function(t,e){var a=this;a.tabListData=JSON.parse(JSON.stringify(t))}}},s=o,l=(a("5834"),a("2877")),u=Object(l["a"])(s,n,i,!1,null,"46f3eec2",null);e["default"]=u.exports},a56b:function(t,e,a){},e1b3:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nav-wrap border-box flex flex-space-between"},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navpath,(function(e,n){return[e.path?[a("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:e.path}},on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[a("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name)+"\n ")])])]:[a("el-breadcrumb-item",{key:"nav"+n},[t._v(t._s(e.name))])]]}))],2),a("div",{staticClass:"my-customer-brand"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"不同商户的工作台可分别进行管理。点击后切换,可以管理不同商户下的应用",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("授权商户名称 ")])]),a("el-select",{staticClass:"p-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.activeBrand,callback:function(e){t.activeBrand=e},expression:"activeBrand"}},t._l(t.brandListData,(function(t){return a("el-option",{key:t.enterpriseId,attrs:{label:t.enterpriseName,value:t.enterpriseId}})})),1)],1)],1)},i=[],r=(a("ac6a"),a("96b6")),c=r["a"].getWxEnterprise,o={name:"NavAppPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"haoban",wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",activeBrand:"",brandListData:[]}},mounted:function(){var t=this;t.getBrandData()},methods:{changeRoute:function(t,e){var a=this;e?window.location.href=t:a.$router.push(t)},changeSelect:function(t){var e=this,a="";e.brandListData.forEach((function(e){e.enterpriseId==t&&(a=e.enterpriseId)})),e.$emit("selectBrandId",t,a)},getBrandData:function(){var t=this;c({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){if(e.result&&e.result.length){if(t.brandListData=e.result,t.$route.query.enterpriseId)return t.activeBrand=t.$route.query.enterpriseId,t.$emit("selectBrandId",t.$route.query.enterpriseId),!1;t.activeBrand=t.brandListData[0].enterpriseId,t.$emit("selectBrandId",t.brandListData[0].enterpriseId,t.brandListData[0].enterpriseId)}})).catch((function(t){}))}},watch:{brandId:function(t,e){var a=this;a.getBrandData()}}},s=o,l=(a("f962"),a("2877")),u=Object(l["a"])(s,n,i,!1,null,"1205f312",null);e["a"]=u.exports},f962:function(t,e,a){"use strict";var n=a("46e5"),i=a.n(n);i.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7addfe37"],{"21f4":function(t,e,a){"use strict";var n=a("71f6"),r={getAuthEnterprise:"/auth-enterprise-list",getGroupList:"/department-list",getStoreList:"/store-list",getAuthDetail:"/enterprise-auth-detail",getAuditLog:"/enterprise-auth-audit-list",cancelAudit:{url:"/enterprise-auth-audit",method:"post",useFormData:!0,useIntercept:!1},getCheckName:"/gic-admin-frist",checkName:{url:"/gic-name-validate",method:"post",useFormData:!0,useIntercept:!1},getAuditLogDetail:"/enterprise-auth-audit-range-detail",getEnterprise:"/enterprise-search",getGicAdmin:"/gic-manage-list",postEnterpriseAuth:{url:"/enterprise-auth",method:"post",useFormData:!0,useIntercept:!1},getEnterpriseDetail:"/gic-enterprise-detail"};r=Object(n["a"])(r,"/hb-manage-web"),e["a"]=r},"29b6":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nav-wrap border-box"},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navpath,(function(e,n){return[e.path?[a("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:e.path}},on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[a("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name)+"\n ")])])]:[a("el-breadcrumb-item",{key:"nav"+n},[t._v(t._s(e.name))])]]}))],2)],1)},r=[],o={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(t,e){var a=this;e?window.location.href=t:a.$router.push(t)}}},s=o,i=(a("6b4b"),a("2877")),l=Object(i["a"])(s,n,r,!1,null,"2c2a2724",null);e["a"]=l.exports},"56b3":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"my-customer-wrap common-set-wrap"},[n("nav-crumb",{attrs:{navpath:t.navpath}}),n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[n("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[n("div",{staticClass:"apps-content-right"},[n("div",{staticClass:"flex flex-space-between"},[n("div",{staticStyle:{width:"643px"}},[n("div",{staticClass:"el-alert el-alert--info flex flex-align-start",staticStyle:{width:"643px"},attrs:{role:"alert"}},[n("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),n("div",{staticClass:"el-alert__content"},[n("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("提示:授权的商户,需在同一个微信开放平台主体下;最多授权10个商户。 ")]),n("el-button",{attrs:{type:"text"},on:{click:t.openUrl}},[t._v("主体查询方法")])],1)])]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.changeRoute("/newAuthMerchant")}}},[t._v("新建GIC商户授权")])],1),n("div",{staticClass:"m-t-20"},[n("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{prop:"",label:"商户列表",width:"238","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"ul-li-cell flex"},[n("div",{staticClass:"cell-img"},[e.row.enterpriseLogo?n("img",{attrs:{src:e.row.enterpriseLogo,alt:"img"}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})]),n("div",{staticClass:"cell-info"},[n("div",{staticClass:"cell-info-name flex font-14 color-303133"},[n("span",{staticClass:"gic-name"},[t._v(t._s(e.row.enterpriseName||"--"))]),n("span",{staticClass:"gic-version"},[t._v(t._s(e.row.version||"--"))])]),n("div",{staticClass:"cell-info-name flex font-14 color-303133"},[n("span",{staticClass:"gic-name"},[t._v(t._s(e.row.companyName||"--"))])])])])]}}])}),n("el-table-column",{attrs:{prop:"",label:"绑定门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.bindRange||"--")+"\n ")]}}])},[n("template",{slot:"header"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 绑定门店拥有门店资源管理权限。能查看数据,绑定导购账号,管理门店等\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("绑定门店")])])],1)],2),n("el-table-column",{attrs:{prop:"",label:"共享门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.shareRange||"--")+"\n ")]}}])},[n("template",{slot:"header"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 共享门店拥有门店资源查看权限。仅能授权查看数据,"),n("br"),t._v("如会员数据,任务数据等,但无法操作及进行导购账号绑定\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("共享门店")])])],1)],2),n("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.referStaffName||"--"))]}}])}),n("el-table-column",{attrs:{prop:"",label:"授权时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),n("el-table-column",{attrs:{prop:"",label:"更新时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime)))]),n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime)))])]}}])}),n("el-table-column",{attrs:{prop:"",label:"操作",width:"203"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEdit(e.$index,e.row)}}},[t._v("编辑授权设置")]),n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toAuditLog(e.$index,e.row)}}},[t._v("审核日志")])]}}])})],1)],1)])])])])],1)},r=[],o=a("29b6"),s=a("21f4"),i=s["a"].getAuthEnterprise,l={name:"AuthMerchant",components:{navCrumb:o["a"]},data:function(){return{navpath:[{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",currentPage:1,pageSize:20,total:0,tableData:[]}},mounted:function(){var t=this;t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{toEdit:function(t,e){var a=this;a.changeRoute("/newAuthMerchant?enterpriseId=".concat(e.enterpriseId))},toAuditLog:function(t,e){var a=this;a.changeRoute("/auditLog?enterpriseId=".concat(e.enterpriseId))},openUrl:function(){window.open("https://developers.weixin.qq.com/community/develop/doc/00046610a9cbb0fd80f9a7dd354c09")},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},getTableList:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId};i(e).then((function(e){t.tableData=e.result||[]})).catch((function(t){}))}}},c=l,u=(a("62f6"),a("2877")),p=Object(u["a"])(c,n,r,!1,null,"1c17dfdc",null);e["default"]=p.exports},"62f6":function(t,e,a){"use strict";var n=a("e10f"),r=a.n(n);r.a},"6b4b":function(t,e,a){"use strict";var n=a("76d4"),r=a.n(n);r.a},"6ce2":function(t,e,a){t.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));a("ac6a"),a("456d");var n=a("b775");function r(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var r=t[a];"string"===typeof r&&(r={url:r}),r.url="".concat(e).concat(r.url),t[a]=function(t,e){return Object(n["a"])(r,t,e)}})),t}},"76d4":function(t,e,a){},e10f:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-afbfe244"],{"352e":function(t,e,n){"use strict";var a=n("4829"),r=n.n(a);r.a},4829:function(t,e,n){},"71f6":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("ac6a"),n("456d");var a=n("b775");function r(t,e){t=t||{};var n=Object.keys(t);return n.forEach((function(n){var r=t[n];"string"===typeof r&&(r={url:r}),r.url="".concat(e).concat(r.url),t[n]=function(t,e){return Object(a["a"])(r,t,e)}})),t}},fc87:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},r=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"common-app-right"},[n("div")])}],c=n("71f6"),i={getTargetList:"/"};i=Object(c["a"])(i,"/hb-app-customer-web");var s=i,o=s.getTargetList,u={name:"TargetList",components:{},props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",tableData:[]}},mounted:function(){var t=this;t.$emit("showTab","/target-list"),t.brandId&&t.getData()},methods:{getData:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId,enterpriseId:t.brandId};o(e,{headers:{sign:t.brandId}}).then((function(e){t.tableData=e.result||[]})).catch((function(t){}))}},watch:{brandId:function(t){var e=this;t&&e.getData()}}},d=u,f=(n("352e"),n("2877")),l=Object(f["a"])(d,a,r,!1,null,"2d2524c3",null);e["default"]=l.exports}}]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment