Commit 572e5dd7 by 无尘

fix: 修改选择商户和人群

parent 7fbe6c02
.clerk-tag-body .clerk-tag-left[data-v-6d7db23d]{position:relative;width:190px;min-width:190px;max-width:190px;padding:30px 0 0 0}.clerk-tag-body .clerk-tag-left .clerk-tag-add .el-button[data-v-6d7db23d]{border-style:dashed}.clerk-tag-body .clerk-tag-right[data-v-6d7db23d]{position:relative;min-width:calc(100% - 190px);min-height:calc(100vh - 94px);border-left:1px solid #e4e7ed}
\ No newline at end of file
.input-line-cell[data-v-6dc46a31]{position:relative;display:inline-block}.input-line-cell.limit-color .input-cell-tip[data-v-6dc46a31]{color:hsla(0,0%,100%,.7)}.input-line-cell .input-cell-tip[data-v-6dc46a31]{position:absolute;top:2px;right:10px;display:inline-block;line-height:32px;text-align:right;font-size:12px;color:#c0c4cc}.w-340[data-v-6dc46a31]{width:340px}.w-340[data-v-6dc46a31] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.el-input[data-v-6dc46a31] .el-input__inner{font-size:14px;color:#606266;background-color:hsla(0,0%,100%,.1)}.el-input.is-disabled[data-v-6dc46a31]{opacity:.5}.el-input .is-disabled[data-v-6dc46a31] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.tag-classify-body .tag-classify-item[data-v-47321783]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:5px 10px 5px 20px;font-size:14px;font-weight:400;line-height:20px;color:#606266;cursor:pointer}.tag-classify-body .tag-classify-item.active[data-v-47321783],.tag-classify-body .tag-classify-item[data-v-47321783]:hover{color:#2f54ed;background-color:rgba(47,84,235,.05)}.tag-classify-body .tag-classify-item:hover .edit-icon[data-v-47321783]{opacity:1;color:#2f54ed;background-color:rgba(47,84,235,.09)}.tag-classify-body .tag-classify-item .edit-icon[data-v-47321783]{padding:4px;opacity:0;font-size:12px}.tag-classify-body .tag-classify-item .tag-classify-name[data-v-47321783]{display:block;width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag-classify-body .no-data[data-v-47321783]{padding:10px 0 40px 0;text-align:center;color:#909399}.clerk-tag-body .clerk-tag-left[data-v-6f87c39e]{position:relative;width:190px;min-width:190px;max-width:190px;padding:30px 0 0 0}.clerk-tag-body .clerk-tag-left .clerk-tag-add .el-button[data-v-6f87c39e]{border-style:dashed}.clerk-tag-body .clerk-tag-right[data-v-6f87c39e]{position:relative;min-width:calc(100% - 190px);min-height:calc(100vh - 94px);border-left:1px solid #e4e7ed}
\ No newline at end of file
.nav-wrap[data-v-2c2a2724]{padding:12px 20px}.el-breadcrumb__inner.is-link[data-v-2c2a2724]:hover,.el-breadcrumb__inner a[data-v-2c2a2724]:hover{color:#2f54eb}.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-2c2a2724],.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-2c2a2724]:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-2c2a2724],.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-2c2a2724]:hover{font-weight:700;text-decoration:none;cursor:pointer;color:#303133}.span-dot[data-v-0ed83f17]{display:inline-block;vertical-align:middle;width:6px;height:6px;margin-right:6px;border-radius:3px}.span-dot.bg-52c41a[data-v-0ed83f17]{background:#52c41a}.span-dot.bg-f5222d[data-v-0ed83f17]{background:#f5222d}.bg-82C5FF[data-v-0ed83f17]{background:#82c5ff}.color-508CEE[data-v-0ed83f17]{color:#508cee}.color-FF585C[data-v-0ed83f17]{color:#ff585c}.line-h-18[data-v-0ed83f17]{line-height:18px}.tooltip-text[data-v-0ed83f17]{width:100%;white-space:pre-wrap;word-break:break-all}.w-293[data-v-0ed83f17]{width:293px}.w-191[data-v-0ed83f17]{width:191px}.common-bottom-border[data-v-0ed83f17]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.my-customer-wrap[data-v-0ed83f17]{height:100%}.right-content[data-v-0ed83f17]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-0ed83f17]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-right[data-v-0ed83f17]{width:100%;padding:20px;background:#fff}.right-content .right-box .apps-content .apps-content-right .common-set-wrap[data-v-0ed83f17]{height:100%;background:#fff}.ul-li-cell .cell-img[data-v-0ed83f17]{width:40px;min-width:40px;max-width:40px;height:40px;border-radius:2px;border:1px solid #e4e7ed;-webkit-box-sizing:border-box;box-sizing:border-box}.ul-li-cell .cell-img img[data-v-0ed83f17]{width:100%}.ul-li-cell .cell-info[data-v-0ed83f17]{padding-left:10px;-webkit-box-sizing:border-box;box-sizing:border-box}.ul-li-cell .cell-info .cell-info-name[data-v-0ed83f17]{max-width:157px;height:20px;line-height:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ul-li-cell .cell-info .gic-name[data-v-0ed83f17]{font-size:14px;color:#303133;line-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ul-li-cell .cell-info .gic-version[data-v-0ed83f17]{display:inline-block;padding:0 5px;height:15px;line-height:15px;margin-left:5px;background:#fff1f0;border-radius:2px;border:1px solid #ffa39e;font-size:10px;color:#f5222d}
\ No newline at end of file
.auth-step-body[data-v-c9703e40]{width:400px;margin:0 auto}.el-alert__title[data-v-24435593]{line-height:23px}.color-f5222d[data-v-24435593]{color:#f5222d}.auth-commit-success[data-v-647310ec]{margin-top:154px}.auth-commit-success .color-49c958[data-v-647310ec]{color:#49c958}.auth-commit-success .font-60[data-v-647310ec]{font-size:60px}.auth-commit-success .m-t-12[data-v-647310ec]{margin-top:12px}.auth-commit-success .m-t-28[data-v-647310ec]{margin-top:28px}.input-line-cell[data-v-730049ed]{position:relative;display:inline-block}.w-340[data-v-730049ed]{width:340px}.w-340[data-v-730049ed] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.el-textarea[data-v-730049ed] .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-730049ed]{opacity:.5}.el-input .is-disabled[data-v-730049ed] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.tip[data-v-730049ed]{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-e858e1f0]{width:400px;margin:0 auto}.auth-commit-admin .color-49c958[data-v-e858e1f0]{color:#49c958}.auth-commit-admin .font-60[data-v-e858e1f0]{font-size:60px}.auth-commit-admin .m-t-12[data-v-e858e1f0]{margin-top:12px}.auth-commit-admin .m-t-28[data-v-e858e1f0]{margin-top:28px}.auth-commit-admin .m-b-32[data-v-e858e1f0]{margin-bottom:32px}.auth-commit-admin .w-198[data-v-e858e1f0]{width:198px}.auth-commit-admin .audit-admin-body[data-v-e858e1f0]{min-width:500px}.auth-commit-admin .audit-admin-body .audit-admin[data-v-e858e1f0]{position:relative;color:#606266;font-size:14px;padding:0 8px;margin-bottom:10px}.auth-commit-admin .audit-admin-body .audit-admin[data-v-e858e1f0]: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-083200de]{height:445px;overflow-y:auto;border:1px solid #e4e7ed}.w-267[data-v-dbbd3738]{width:267px}.m-t-35[data-v-dbbd3738]{margin-top:35px}.el-input-group__prepend[data-v-dbbd3738]{display:inline-block;width:86px;height:32px;line-height:32px;vertical-align:top}.select-search-input[data-v-dbbd3738]{display:inline-block;margin-left:-2px}.company-select[data-v-dbbd3738]{position:relative}.company-select .el-select-dropdown__item[data-v-dbbd3738]{height:52px;line-height:52px}.company-select .text-ellipsis[data-v-dbbd3738]{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.my-customer-wrap[data-v-dbbd3738]{height:100%}.my-customer-wrap .w-227[data-v-dbbd3738]{width:227px}.my-customer-wrap .auth-tip-body[data-v-dbbd3738]{width:645px;margin:0 auto}.my-customer-wrap .enterprise-version[data-v-dbbd3738]{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-dbbd3738]{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-dbbd3738]{max-width:348px;white-space:nowrap;overflow:hidden}.right-content[data-v-dbbd3738]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-dbbd3738]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-right[data-v-dbbd3738]{width:100%;padding:20px;background:#fff}.right-content .right-box .apps-content .apps-content-right .common-set-wrap[data-v-dbbd3738]{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-24435593]{line-height:23px}.color-f5222d[data-v-24435593]{color:#f5222d}.auth-commit-success[data-v-647310ec]{margin-top:154px}.auth-commit-success .color-49c958[data-v-647310ec]{color:#49c958}.auth-commit-success .font-60[data-v-647310ec]{font-size:60px}.auth-commit-success .m-t-12[data-v-647310ec]{margin-top:12px}.auth-commit-success .m-t-28[data-v-647310ec]{margin-top:28px}.input-line-cell[data-v-730049ed]{position:relative;display:inline-block}.w-340[data-v-730049ed]{width:340px}.w-340[data-v-730049ed] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.el-textarea[data-v-730049ed] .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-730049ed]{opacity:.5}.el-input .is-disabled[data-v-730049ed] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.tip[data-v-730049ed]{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-e858e1f0]{width:400px;margin:0 auto}.auth-commit-admin .color-49c958[data-v-e858e1f0]{color:#49c958}.auth-commit-admin .font-60[data-v-e858e1f0]{font-size:60px}.auth-commit-admin .m-t-12[data-v-e858e1f0]{margin-top:12px}.auth-commit-admin .m-t-28[data-v-e858e1f0]{margin-top:28px}.auth-commit-admin .m-b-32[data-v-e858e1f0]{margin-bottom:32px}.auth-commit-admin .w-198[data-v-e858e1f0]{width:198px}.auth-commit-admin .audit-admin-body[data-v-e858e1f0]{min-width:500px}.auth-commit-admin .audit-admin-body .audit-admin[data-v-e858e1f0]{position:relative;color:#606266;font-size:14px;padding:0 8px;margin-bottom:10px}.auth-commit-admin .audit-admin-body .audit-admin[data-v-e858e1f0]: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-083200de]{height:445px;overflow-y:auto;border:1px solid #e4e7ed}.w-267[data-v-313f37a8]{width:267px}.m-t-35[data-v-313f37a8]{margin-top:35px}.el-input-group__prepend[data-v-313f37a8]{display:inline-block;width:86px;height:32px;line-height:32px;vertical-align:top}.select-search-input[data-v-313f37a8]{display:inline-block;margin-left:-2px}.company-select[data-v-313f37a8]{position:relative}.company-select .el-select-dropdown__item[data-v-313f37a8]{height:52px;line-height:52px}.company-select .text-ellipsis[data-v-313f37a8]{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.my-customer-wrap[data-v-313f37a8]{height:100%}.my-customer-wrap .w-227[data-v-313f37a8]{width:227px}.my-customer-wrap .auth-tip-body[data-v-313f37a8]{width:645px;margin:0 auto}.my-customer-wrap .enterprise-version[data-v-313f37a8]{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-313f37a8]{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-313f37a8]{max-width:348px;white-space:nowrap;overflow:hidden}.right-content[data-v-313f37a8]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-313f37a8]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-right[data-v-313f37a8]{width:100%;padding:20px;background:#fff}.right-content .right-box .apps-content .apps-content-right .common-set-wrap[data-v-313f37a8]{height:100%;background:#fff}
\ No newline at end of file
.nav-wrap[data-v-0804a383]{height:48px;line-height:48px;padding:0 20px;-webkit-box-sizing:border-box;box-sizing:border-box}.nav-wrap .el-breadcrumb[data-v-0804a383]{line-height:48px}.el-breadcrumb__inner.is-link[data-v-0804a383]:hover,.el-breadcrumb__inner a[data-v-0804a383]:hover{color:#2f54eb}.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-0804a383],.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-0804a383]:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-0804a383],.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-0804a383]:hover{font-weight:700;text-decoration:none;cursor:pointer;color:#303133}.tab-left-list .tab-left-list-cell[data-v-51e072e6]{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-51e072e6]{color:#2f54eb}.tab-left-list .tab-left-list-cell[data-v-51e072e6]:hover{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .tab-left-list-cell:hover i[data-v-51e072e6]{color:#2f54eb}.tab-left-list .tab-left-list-cell.active-tab[data-v-51e072e6]{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .tab-left-list-cell.active-tab i[data-v-51e072e6]{color:#2f54eb}.tab-left-list .child-tab-left-list[data-v-51e072e6]{-webkit-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.tab-left-list .child-tab-left-list li[data-v-51e072e6]{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-51e072e6]:hover{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .child-tab-left-list li:hover i[data-v-51e072e6]{color:#2f54eb}.tab-left-list .child-tab-left-list li.active-tab[data-v-51e072e6]{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .child-tab-left-list li.active-tab i[data-v-51e072e6]{color:#2f54eb}.line-h-18[data-v-5fa19d6b]{line-height:18px}.my-customer-wrap[data-v-5fa19d6b]{height:100%}.my-customer-wrap .move-row-cell .icontuozhuaiopen[data-v-5fa19d6b]{display:none}.my-customer-wrap .move-row-cell.show-icon .icontuozhuaiopen[data-v-5fa19d6b],.my-customer-wrap .move-row-cell:hover .icontuozhuaiopen[data-v-5fa19d6b]{display:inline-block;vertical-align:middle}.right-content[data-v-5fa19d6b]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-5fa19d6b]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-left[data-v-5fa19d6b]{min-width:205px;height:100%;background:#fff;overflow-x:hidden;overflow-y:auto}.right-content .right-box .apps-content .apps-content-right[data-v-5fa19d6b]{width:calc(100% - 205px);padding-left:10px;background:#f0f2f5}.right-content .right-box .apps-content .apps-content-right .common-app-right[data-v-5fa19d6b]{height:100%;padding:20px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff}
\ No newline at end of file
.nav-wrap[data-v-3c6cb7c4]{height:48px;line-height:48px;padding:0 20px;-webkit-box-sizing:border-box;box-sizing:border-box}.nav-wrap .el-breadcrumb[data-v-3c6cb7c4]{line-height:48px}.el-breadcrumb__inner.is-link[data-v-3c6cb7c4]:hover,.el-breadcrumb__inner a[data-v-3c6cb7c4]:hover{color:#2f54eb}.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-3c6cb7c4],.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-3c6cb7c4]:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-3c6cb7c4],.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-3c6cb7c4]:hover{font-weight:700;text-decoration:none;cursor:pointer;color:#303133}.tab-left-list .tab-left-list-cell[data-v-51e072e6]{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-51e072e6]{color:#2f54eb}.tab-left-list .tab-left-list-cell[data-v-51e072e6]:hover{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .tab-left-list-cell:hover i[data-v-51e072e6]{color:#2f54eb}.tab-left-list .tab-left-list-cell.active-tab[data-v-51e072e6]{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .tab-left-list-cell.active-tab i[data-v-51e072e6]{color:#2f54eb}.tab-left-list .child-tab-left-list[data-v-51e072e6]{-webkit-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.tab-left-list .child-tab-left-list li[data-v-51e072e6]{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-51e072e6]:hover{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .child-tab-left-list li:hover i[data-v-51e072e6]{color:#2f54eb}.tab-left-list .child-tab-left-list li.active-tab[data-v-51e072e6]{color:#2f54eb;background:rgba(47,84,235,.05)}.tab-left-list .child-tab-left-list li.active-tab i[data-v-51e072e6]{color:#2f54eb}.line-h-18[data-v-6873d81c]{line-height:18px}.my-customer-wrap[data-v-6873d81c]{height:100%}.my-customer-wrap .move-row-cell .icontuozhuaiopen[data-v-6873d81c]{display:none}.my-customer-wrap .move-row-cell.show-icon .icontuozhuaiopen[data-v-6873d81c],.my-customer-wrap .move-row-cell:hover .icontuozhuaiopen[data-v-6873d81c]{display:inline-block;vertical-align:middle}.right-content[data-v-6873d81c]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-6873d81c]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-left[data-v-6873d81c]{min-width:205px;height:100%;background:#fff;overflow-x:hidden;overflow-y:auto}.right-content .right-box .apps-content .apps-content-right[data-v-6873d81c]{width:calc(100% - 205px);padding-left:10px;background:#f0f2f5}.right-content .right-box .apps-content .apps-content-right .common-app-right[data-v-6873d81c]{height:100%;padding:20px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff}
\ No newline at end of file
.m-l-20[data-v-7b68bb10]{margin-left:20px}.li-cell[data-v-7b68bb10]{position:relative;line-height:32px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.li-cell .color-fff[data-v-7b68bb10]{color:#fff}.li-cell.li-cell-active[data-v-7b68bb10]{background:rgba(47,84,235,.05)}.li-cell.li-cell-active span[data-v-7b68bb10]{color:#2f54eb}.li-cell.li-cell-active .color-fff[data-v-7b68bb10]{color:rgba(47,84,235,.05)}.li-cell-inner[data-v-7b68bb10]{line-height:32px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.w-110[data-v-7b68bb10]{width:110px}.w-320[data-v-7b68bb10]{width:320px}.m-t-14[data-v-7b68bb10]{margin-top:14px}.child-row[data-v-7b68bb10]{padding-left:10px}.w-100[data-v-cfa01dee]{width:100px}.w-402[data-v-cfa01dee]{width:402px}.m-b-20[data-v-cfa01dee]{margin-bottom:20px}.p-l-18[data-v-cfa01dee]{padding-left:18px}.span-line[data-v-cfa01dee]{position:relative;padding:0 15px}.span-line[data-v-cfa01dee]:after{content:"";position:absolute;top:5px;height:11px;width:1px;background:#c4c6cf}.color-f5222d[data-v-cfa01dee]{color:#f5222d}.clerk-list-ul[data-v-cfa01dee]{min-height:40px;max-height:400px;overflow-y:auto}.check-all[data-v-cfa01dee]{background:#f5f7fa;height:36px;line-height:36px;padding:0 10px}.clerk-cell[data-v-cfa01dee]{height:40px;line-height:40px;padding:0 10px;border-bottom:1px solid #e4e7ed}.m-b-20[data-v-e269d89c]{margin-bottom:20px}.w-274[data-v-e269d89c]{width:274px}.w-500[data-v-45949c0a]{width:500px}.w-195[data-v-45949c0a]{width:195px}.color-1890ff[data-v-45949c0a]{color:#2f54eb}.p-20[data-v-45949c0a]{padding:20px}.p-l-38[data-v-45949c0a]{padding-left:38px}.p-l-199[data-v-45949c0a]{padding-left:199px}.m-b-10[data-v-45949c0a]{margin-bottom:10px}.el-breadcrumb__inner.is-link[data-v-45949c0a]:hover,.el-breadcrumb__inner a[data-v-45949c0a]:hover{color:#2f54eb}.app-detail-wrap[data-v-45949c0a]{height:100%;background:#fff}.app-detail-wrap .list-body[data-v-45949c0a]{position:relative;width:100%}.app-detail-wrap .list-body .list-left[data-v-45949c0a]{position:relative;width:300px;min-width:300px;max-width:300px;padding:20px 0 0 0}.app-detail-wrap .list-body .list-right[data-v-45949c0a]{position:relative;min-width:calc(100% - 300px);min-height:calc(100vh - 94px);border-left:1px solid #e4e7ed}
\ No newline at end of file
.m-t-46[data-v-516479cd]{margin-top:46px}.common-bottom-border[data-v-516479cd]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}
\ No newline at end of file
.m-t-46[data-v-2a40b7e2]{margin-top:46px}.common-bottom-border[data-v-2a40b7e2]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}
\ No newline at end of file
.common-bottom-border[data-v-497467c6]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.dcrowd-scene-table i.icon-color[data-v-497467c6]{color:#606266}.dcrowd-scene-table i.disable[data-v-497467c6]{color:#909399;cursor:not-allowed}.dcrowd-scene-table .line-18[data-v-497467c6]{line-height:18px}
\ No newline at end of file
.m-l-20[data-v-77549889]{margin-left:20px}.li-cell[data-v-77549889]{position:relative;line-height:32px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.li-cell .color-fff[data-v-77549889]{color:#fff}.li-cell.li-cell-active[data-v-77549889]{background:rgba(47,84,235,.05)}.li-cell.li-cell-active span[data-v-77549889]{color:#2f54eb}.li-cell.li-cell-active .color-fff[data-v-77549889]{color:rgba(47,84,235,.05)}.li-cell-inner[data-v-77549889]{line-height:32px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.w-110[data-v-77549889]{width:110px}.w-320[data-v-77549889]{width:320px}.m-t-14[data-v-77549889]{margin-top:14px}.child-row[data-v-77549889]{padding-left:10px}.w-100[data-v-6f5e066c]{width:100px}.w-402[data-v-6f5e066c]{width:402px}.m-b-20[data-v-6f5e066c]{margin-bottom:20px}.p-l-18[data-v-6f5e066c]{padding-left:18px}.span-line[data-v-6f5e066c]{position:relative;padding:0 15px}.span-line[data-v-6f5e066c]:after{content:"";position:absolute;top:5px;height:11px;width:1px;background:#c4c6cf}.color-f5222d[data-v-6f5e066c]{color:#f5222d}.clerk-list-ul[data-v-6f5e066c]{min-height:40px;max-height:400px;overflow-y:auto}.check-all[data-v-6f5e066c]{background:#f5f7fa;height:36px;line-height:36px;padding:0 10px}.clerk-cell[data-v-6f5e066c]{height:40px;line-height:40px;padding:0 10px;border-bottom:1px solid #e4e7ed}.m-b-20[data-v-77c76e9c]{margin-bottom:20px}.w-274[data-v-77c76e9c]{width:274px}.w-500[data-v-45949c0a]{width:500px}.w-195[data-v-45949c0a]{width:195px}.color-1890ff[data-v-45949c0a]{color:#2f54eb}.p-20[data-v-45949c0a]{padding:20px}.p-l-38[data-v-45949c0a]{padding-left:38px}.p-l-199[data-v-45949c0a]{padding-left:199px}.m-b-10[data-v-45949c0a]{margin-bottom:10px}.el-breadcrumb__inner.is-link[data-v-45949c0a]:hover,.el-breadcrumb__inner a[data-v-45949c0a]:hover{color:#2f54eb}.app-detail-wrap[data-v-45949c0a]{height:100%;background:#fff}.app-detail-wrap .list-body[data-v-45949c0a]{position:relative;width:100%}.app-detail-wrap .list-body .list-left[data-v-45949c0a]{position:relative;width:300px;min-width:300px;max-width:300px;padding:20px 0 0 0}.app-detail-wrap .list-body .list-right[data-v-45949c0a]{position:relative;min-width:calc(100% - 300px);min-height:calc(100vh - 94px);border-left:1px solid #e4e7ed}
\ No newline at end of file
.line-18[data-v-d629a700]{line-height:18px}.w-165[data-v-d629a700]{width:165px}.bind-store-body[data-v-b486ddd2]{width:331px;padding:10px;margin:20px 0 0 0;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-b486ddd2]{width:215px}.bind-store-body .w-115[data-v-b486ddd2]{width:115px}.bind-store-body .select-tree-wrap[data-v-b486ddd2]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-b486ddd2]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-b486ddd2]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}.daily-store-select[data-v-465abb03]{position:relative;width:331px;min-height:398px;margin:20px 0 0 0;padding:10px;border:1px solid #e4e7ed}.daily-store-select .define-search-select .el-select-dropdown__wrap[data-v-465abb03]{max-height:343px}.daily-store-select .define-search-select .el-checkbox-group[data-v-465abb03]{overflow-x:auto;height:338px}.daily-store-select .define-search-select .el-checkbox-group ul[data-v-465abb03]{height:100%}.daily-store-select .define-search-select .el-checkbox-group ul li[data-v-465abb03]{overflow:unset;text-overflow:unset}.select-tree-wrap[data-v-b3b843c8]{height:445px;overflow-y:auto;border:1px solid #e4e7ed}.common-bottom-border[data-v-3ba3d1bb]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.w-162[data-v-3ba3d1bb]{width:162px}.crowd-scene-table .line-18[data-v-3ba3d1bb]{line-height:18px}
\ No newline at end of file
.nav-wrap[data-v-2c2a2724]{padding:12px 20px}.el-breadcrumb__inner.is-link[data-v-2c2a2724]:hover,.el-breadcrumb__inner a[data-v-2c2a2724]:hover{color:#2f54eb}.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-2c2a2724],.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-2c2a2724]:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-2c2a2724],.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-2c2a2724]:hover{font-weight:700;text-decoration:none;cursor:pointer;color:#303133}.line-h-18[data-v-a9841722]{line-height:18px}.bg-f5f7fa[data-v-a9841722]{background:#f5f7fa}.store-cell-ul[data-v-a9841722]{height:289px;overflow-y:auto}.store-cell-ul li[data-v-a9841722]{margin-top:10px}.line-h-18[data-v-f71e6ec8]{line-height:18px}.w-270[data-v-f71e6ec8]{width:270px}.my-customer-wrap[data-v-f71e6ec8]{height:100%}.my-customer-wrap .common-bottom-border[data-v-f71e6ec8]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.right-content[data-v-f71e6ec8]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-f71e6ec8]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-right[data-v-f71e6ec8]{width:100%;padding:20px;background:#fff}.right-content .right-box .apps-content .apps-content-right .common-set-wrap[data-v-f71e6ec8]{height:100%;background:#fff}.right-content .right-box .apps-content .apps-content-right .auth-merchant-img[data-v-f71e6ec8]{width:40px;min-width:40px;max-width:40px;height:40px;border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box}.right-content .right-box .apps-content .apps-content-right .auth-merchant-img img[data-v-f71e6ec8]{width:100%}.right-content .right-box .apps-content .apps-content-right .auth-merchant-name[data-v-f71e6ec8]{max-width:270px;margin-left:10px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.right-content .right-box .apps-content .apps-content-right .auth-merchant-name .merchant-name-span[data-v-f71e6ec8]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.right-content .right-box .apps-content .apps-content-right .auth-merchant-name .el-tag[data-v-f71e6ec8]{height:18px;line-height:18px}
\ No newline at end of file
.nav-wrap[data-v-2c2a2724]{padding:12px 20px}.el-breadcrumb__inner.is-link[data-v-2c2a2724]:hover,.el-breadcrumb__inner a[data-v-2c2a2724]:hover{color:#2f54eb}.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-2c2a2724],.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-2c2a2724]:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-2c2a2724],.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-2c2a2724]:hover{font-weight:700;text-decoration:none;cursor:pointer;color:#303133}.line-h-18[data-v-a9841722]{line-height:18px}.bg-f5f7fa[data-v-a9841722]{background:#f5f7fa}.store-cell-ul[data-v-a9841722]{height:289px;overflow-y:auto}.store-cell-ul li[data-v-a9841722]{margin-top:10px}.line-h-18[data-v-f155d3a4]{line-height:18px}.w-270[data-v-f155d3a4]{width:270px}.my-customer-wrap[data-v-f155d3a4]{height:100%}.my-customer-wrap .common-bottom-border[data-v-f155d3a4]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.right-content[data-v-f155d3a4]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-f155d3a4]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-right[data-v-f155d3a4]{width:100%;padding:20px;background:#fff}.right-content .right-box .apps-content .apps-content-right .common-set-wrap[data-v-f155d3a4]{height:100%;background:#fff}.right-content .right-box .apps-content .apps-content-right .auth-merchant-img[data-v-f155d3a4]{width:40px;min-width:40px;max-width:40px;height:40px;border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box}.right-content .right-box .apps-content .apps-content-right .auth-merchant-img img[data-v-f155d3a4]{width:100%}.right-content .right-box .apps-content .apps-content-right .auth-merchant-name[data-v-f155d3a4]{max-width:270px;margin-left:10px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.right-content .right-box .apps-content .apps-content-right .auth-merchant-name .merchant-name-span[data-v-f155d3a4]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.right-content .right-box .apps-content .apps-content-right .auth-merchant-name .el-tag[data-v-f155d3a4]{height:18px;line-height:18px}
\ No newline at end of file
.nav-wrap[data-v-2c2a2724]{padding:12px 20px}.el-breadcrumb__inner.is-link[data-v-2c2a2724]:hover,.el-breadcrumb__inner a[data-v-2c2a2724]:hover{color:#2f54eb}.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-2c2a2724],.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-2c2a2724]:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-2c2a2724],.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-2c2a2724]:hover{font-weight:700;text-decoration:none;cursor:pointer;color:#303133}.span-dot[data-v-e06f66ac]{display:inline-block;vertical-align:middle;width:6px;height:6px;margin-right:6px;border-radius:3px}.span-dot.bg-52c41a[data-v-e06f66ac]{background:#52c41a}.span-dot.bg-f5222d[data-v-e06f66ac]{background:#f5222d}.bg-82C5FF[data-v-e06f66ac]{background:#82c5ff}.color-508CEE[data-v-e06f66ac]{color:#508cee}.color-FF585C[data-v-e06f66ac]{color:#ff585c}.line-h-18[data-v-e06f66ac]{line-height:18px}.tooltip-text[data-v-e06f66ac]{width:100%;white-space:pre-wrap;word-break:break-all}.w-293[data-v-e06f66ac]{width:293px}.w-191[data-v-e06f66ac]{width:191px}.common-bottom-border[data-v-e06f66ac]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.my-customer-wrap[data-v-e06f66ac]{height:100%}.right-content[data-v-e06f66ac]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-e06f66ac]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-right[data-v-e06f66ac]{width:100%;padding:20px;background:#fff}.right-content .right-box .apps-content .apps-content-right .common-set-wrap[data-v-e06f66ac]{height:100%;background:#fff}.ul-li-cell .cell-img[data-v-e06f66ac]{width:40px;min-width:40px;max-width:40px;height:40px;border-radius:2px;border:1px solid #e4e7ed;-webkit-box-sizing:border-box;box-sizing:border-box}.ul-li-cell .cell-img img[data-v-e06f66ac]{width:100%}.ul-li-cell .cell-info[data-v-e06f66ac]{padding-left:10px;-webkit-box-sizing:border-box;box-sizing:border-box}.ul-li-cell .cell-info .cell-info-name[data-v-e06f66ac]{max-width:157px;height:20px;line-height:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ul-li-cell .cell-info .gic-name[data-v-e06f66ac]{font-size:14px;color:#303133;line-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ul-li-cell .cell-info .gic-version[data-v-e06f66ac]{display:inline-block;padding:0 5px;height:15px;line-height:15px;margin-left:5px;background:#fff1f0;border-radius:2px;border:1px solid #ffa39e;font-size:10px;color:#f5222d}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0644f611"],{"0973":function(t,i,e){t.exports=e.p+"img/error_404.bf587478.svg"},"1c41":function(t,i,e){t.exports=e.p+"img/error_500.ed0cba44.svg"},"28a5":function(t,i,e){"use strict";var n=e("aae3"),s=e("cb7c"),r=e("ebd6"),a=e("0390"),c=e("9def"),l=e("5f1b"),u=e("520a"),o=e("79e5"),d=Math.min,f=[].push,h="split",g="length",p="lastIndex",v=4294967295,m=!o((function(){RegExp(v,"y")}));e("214f")("split",2,(function(t,i,e,o){var b;return b="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[g]||2!="ab"[h](/(?:ab)*/)[g]||4!="."[h](/(.?)(.?)/)[g]||"."[h](/()()/)[g]>1||""[h](/.?/)[g]?function(t,i){var s=String(this);if(void 0===t&&0===i)return[];if(!n(t))return e.call(s,t,i);var r,a,c,l=[],o=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,h=void 0===i?v:i>>>0,m=new RegExp(t.source,o+"g");while(r=u.call(m,s)){if(a=m[p],a>d&&(l.push(s.slice(d,r.index)),r[g]>1&&r.index<s[g]&&f.apply(l,r.slice(1)),c=r[0][g],d=a,l[g]>=h))break;m[p]===r.index&&m[p]++}return d===s[g]?!c&&m.test("")||l.push(""):l.push(s.slice(d)),l[g]>h?l.slice(0,h):l}:"0"[h](void 0,0)[g]?function(t,i){return void 0===t&&0===i?[]:e.call(this,t,i)}:e,[function(e,n){var s=t(this),r=void 0==e?void 0:e[i];return void 0!==r?r.call(e,s,n):b.call(String(s),e,n)},function(t,i){var n=o(b,t,this,i,b!==e);if(n.done)return n.value;var u=s(t),f=String(this),h=r(u,RegExp),g=u.unicode,p=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(m?"y":"g"),x=new h(m?u:"^(?:"+u.source+")",p),_=void 0===i?v:i>>>0;if(0===_)return[];if(0===f.length)return null===l(x,f)?[f]:[];var w=0,C=0,S=[];while(C<f.length){x.lastIndex=m?C:0;var k,y=l(x,m?f:f.slice(C));if(null===y||(k=d(c(x.lastIndex+(m?0:C)),f.length))===w)C=a(f,C,g);else{if(S.push(f.slice(w,C)),S.length===_)return S;for(var E=1;E<=y.length-1;E++)if(S.push(y[E]),S.length===_)return S;C=w=k}}return S.push(f.slice(w)),S}]}))},"2de8":function(t,i,e){"use strict";var n=e("cd38"),s=e.n(n);s.a},"4cf1":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100vh"}},[e("div",{staticClass:"wscn-http-404"},[e("div",{staticClass:"pic-404"},[e("img",{staticClass:"pic-404__parent",attrs:{src:t.imgSrc,alt:"404"}})]),e("div",{staticClass:"bullshit"},[e("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),e("a",{staticClass:"bullshit__return-home",attrs:{href:"#/contactsList"}},[t._v("返回首页")])])])])},s=[],r=(e("28a5"),e("d1ea")),a=e.n(r),c=e("0973"),l=e.n(c),u=e("1c41"),o=e.n(u),d={name:"ErrPage",data:function(){return{imgSrc:"",message:"",srcList:{403:a.a,404:l.a,500:o.a},msgList:{403:"抱歉,你无权访问该页面",404:"抱歉,你访问的页面不存在",500:"抱歉,服务器出错了"}}},mounted:function(){var t=this,i=t.$route.path.split("/")[1];t.imgSrc=t.srcList[i],t.message=t.msgList[i]}},f=d,h=(e("2de8"),e("2877")),g=Object(h["a"])(f,n,s,!1,null,"0d9d0575",null);i["default"]=g.exports},cd38:function(t,i,e){},d1ea:function(t,i,e){t.exports=e.p+"img/error_403.829774f4.svg"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b34723d"],{"0d0f":function(t,e,a){},"5b4e6":function(t,e,a){"use strict";var n=a("5c96");e["a"]={showmsg:function(t,e){Object(n["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));a("ac6a"),a("456d");var n=a("b775");function s(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var s=t[a];"string"===typeof s&&(s={url:s}),s.url="".concat(e).concat(s.url),t[a]=function(t){return Object(n["a"])(s,t)}})),t}},b5b0: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:"common-app-right"},[a("div",{staticClass:"clerk-tag-body flex"},[a("div",{staticClass:"clerk-tag-left border-box"},[a("div",{staticClass:"clerk-tag-add"},[a("el-button",{attrs:{icon:"el-icon-plus"}},[t._v("新建分类")])],1)]),a("div",{staticClass:"clerk-tag-right p-20 border-box"},[a("div",{staticClass:"clerk-tag-search"},[a("div",{staticClass:"flex flex-space-between"},[a("div",[a("el-input",{staticStyle:{width:"298px"},attrs:{placeholder:"请输入标签名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return function(e){return t.toInput(e)}(e)}},model:{value:t.searchVal,callback:function(e){t.searchVal=e},expression:"searchVal"}})],1),a("div",[a("el-button",{attrs:{type:"primary"}},[t._v("新建标签")])],1)])]),a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tagsData}},[a("el-table-column",{attrs:{prop:"",label:"",width:"100","class-name":"move-row-cell"}},[[a("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c4c6cf",staticStyle:{cursor:"move"}})]],2),a("el-table-column",{attrs:{prop:"",label:"标签名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.name||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEditTag(e.$index,e.row)}}},[t._v("编辑")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEditVisiable(e.$index,e.row)}}},[t._v("编辑可见范围")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDelTag(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)])])])},s=[],r=a("d11a"),o=a("d157"),u=a("5b4e6"),i=r["a"].getTagClassify,c=r["a"].getClerkTag,l=r["a"].delClerkTag,f={name:"ClerkTag",components:{},data:function(){return{currentClassify:"",tagsClassifyData:[],tagsData:[],showTagDialog:!1,showTagVisiable:!1}},mounted:function(){var t=this;t.getClassifyList()},methods:{toEditTag:function(t,e){var a=this;a.showTagDialog=!0},toEditVisiable:function(t,e){var a=this;a.showTagVisiable=!0},refreshTagData:function(){var t=this;t.getTableList()},toDelTag:function(t,e){var a=this;a.$confirm("是否要删除选中的标签?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.delTagData(e.tagId)})).catch((function(){}))},delTagData:function(t){var e=this,a={tagId:t};l(a).then((function(t){e.getTableList(),"0000"==t.code?u["a"].showmsg("删除成功","success"):u["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){}))},toInput:Object(o["a"])((function(){var t=this;t.getTableList()}),500),clearInput:function(){var t=this;t.getTableList()},getTableList:function(){var t=this;t.loading=!0;var e={};c(e).then((function(e){t.tagsData=e.result||[]})).catch((function(t){}))},getClassifyList:function(){var t=this;t.loading=!0;var e={};i(e).then((function(e){t.tagsClassifyData=e.result||[],e.result&&e.result.length&&(t.currentClassify=e.result[0].classifyId,t.getTableList())})).catch((function(t){}))}},watch:{}},d=f,g=(a("f203"),a("2877")),p=Object(g["a"])(d,n,s,!1,null,"6d7db23d",null);e["default"]=p.exports},d11a:function(t,e,a){"use strict";var n=a("71f6"),s={getGroupList:"/department-list",getStoreList:"/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/app-get-member-info-list",method:"post",useFormData:!0},getClerkList:"/clerk-list",getMemberCount:"",saveAssign:{url:"/",method:"post",useFormData:!0},getMemberData:"",getServiceData:"",saveSortMember:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"",getClassifyData:"",postSortGroup:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"",saveSync:{url:"/",method:"post",useFormData:!0,useIntercept:!1},saveVisiable:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"",addClassify:"",delClassify:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"",addClerkTag:"",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1}};s=Object(n["a"])(s,"/hb-manage-web"),e["a"]=s},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return r}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(t,e){var a,n=e||200;return function(){var e=this,s=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,s)}),n)}}function s(t,e){var a,n,s=e||200;return function(){var e=this,r=arguments,o=+new Date;a&&o-a<s?(clearTimeout(n),n=setTimeout((function(){a=o,t.apply(e,r)}),s)):(a=o,t.apply(e,r))}}function r(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},f203:function(t,e,a){"use strict";var n=a("0d0f"),s=a.n(n);s.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-14c0f460","chunk-33b0918a"],{"0082":function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("ul",{staticClass:"role-menu"},[Array.isArray(e.roleList)&&0!=e.roleList.length?e._e():o("li",{staticClass:"no-data"},[e._v("暂无数据")]),e._l(e.roleList,(function(t){return o("li",{key:t,class:["role-item",{active:e.activeRoleId==t.roleId}],on:{click:function(o){return e.onChangeRole(t)}}},[o("span",{staticClass:"role-name"},[e._v(e._s(t.roleName))]),o("el-dropdown",{attrs:{placement:"bottom-start"}},[o("i",{staticClass:"iconfont icongengduo edit-icon"}),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[o("el-dropdown-item",{nativeOn:{click:function(o){return e.onEditRole(t)}}},[e._v("编辑")]),e.showDelRoleButton?o("el-dropdown-item",{nativeOn:{click:function(o){return e.onDelRole(t)}}},[e._v("删除")]):e._e()],1)],1)],1)}))],2),o("el-dialog",{attrs:{visible:e.delRole.show,title:"删除角色",width:"600px"},on:{"update:visible":function(t){return e.$set(e.delRole,"show",t)},closed:e.onDelRoleClose}},[o("div",{staticClass:"del-role"},[o("i",{staticClass:"el-icon-warning"}),o("div",{staticClass:"del-role-content"},[o("p",{staticClass:"del-role-tip"},[e._v("确认删除“"+e._s(e.delRole.roleName)+"”角色吗?")]),o("p",{staticClass:"del-role-tip"},[e._v("请在输入框中输入该角色名称,以避免误操作。")]),o("el-input",{staticStyle:{"margin-top":"10px",width:"440px"},model:{value:e.delRole.roleNameInput,callback:function(t){e.$set(e.delRole,"roleNameInput","string"===typeof t?t.trim():t)},expression:"delRole.roleNameInput"}})],1)]),o("template",{slot:"footer"},[o("el-button",{on:{click:function(t){e.delRole.show=!1}}},[e._v("取消")]),o("el-button",{attrs:{type:"primary",loading:e.delRole.loading},on:{click:e.onDelRoleSure}},[e._v("确定")])],1)],2)],1)},l=[],i=(o("c5f6"),o("f286")),a=i["a"].delRole,r={name:"RoleList",props:{roleList:{type:Array,default:function(){return[]}},activeRoleId:[String,Number],showDelRoleButton:{type:Boolean,default:!1}},data:function(){return{delRole:{show:!1,loading:!1,roleId:"",roleName:"",roleNameInput:""}}},methods:{onChangeRole:function(e){this.$emit("change-role",e)},onEditRole:function(e){this.$emit("edit-role",e)},onDelRole:function(e){var t=e.roleId,o=e.roleName;Object.assign(this.delRole,{show:!0,roleId:t,roleName:o})},onDelRoleClose:function(){Object.assign(this.delRole,{roleId:"",roleName:"",roleNameInput:""})},onDelRoleSure:function(){var e=this,t=this.delRole,o=t.roleId,n=t.roleName,l=t.roleNameInput;return 0==l.length?this.$message.warning("请输入角色名称!"):n!=l?this.$message.warning("请输入正确的角色名称!"):(this.delRole.loading=!0,void a({roleId:o}).then((function(t){"0000"==t.code&&(e.$message.success("删除成功!"),e.$emit("del-role-succ",o==e.activeRoleId),e.delRole.show=!1)})).finally((function(){return e.delRole.loading=!1})))}}},s=r,c=(o("575f"),o("2877")),d=Object(c["a"])(s,n,l,!1,null,"7c337432",null);t["default"]=d.exports},"44e1":function(e,t,o){},"575f":function(e,t,o){"use strict";var n=o("44e1"),l=o.n(n);l.a},"71f6":function(e,t,o){"use strict";o.d(t,"a",(function(){return l}));o("ac6a"),o("456d");var n=o("b775");function l(e,t){e=e||{};var o=Object.keys(e);return o.forEach((function(o){var l=e[o];"string"===typeof l&&(l={url:l}),l.url="".concat(t).concat(l.url),e[o]=function(e){return Object(n["a"])(l,e)}})),e}},b6fa:function(e,t,o){"use strict";var n=o("e2aa"),l=o.n(n);l.a},db80:function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"admin"},[o("div",{staticClass:"role-list"},[o("div",{staticClass:"add-role"},[o("el-button",{on:{click:function(t){return e.onEditRole()}}},[o("i",{staticClass:"iconfont icontianjiajiahaowubiankuang"}),e._v(" 新建管理角色")])],1),o("role-list",{attrs:{"role-list":e.roleList,"active-role-id":e.activeRoleId,"show-del-role-button":""},on:{"del-role-succ":e.onDelRoleSucc,"edit-role":e.onEditRole,"change-role":e.onChangeRole}})],1),o("div",{staticClass:"admin-list"},[o("h3",{staticClass:"admin-list-title"},[e._v("管理员列表")]),o("el-input",{staticStyle:{width:"277px"},attrs:{placeholder:"请输入姓名/账号/手机号码","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search,callback:function(t){e.search="string"===typeof t?t.trim():t},expression:"search"}}),o("el-button",{staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:e.toEditAdmin}},[e._v("添加管理员")]),o("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.adminList}},[o("el-table-column",{attrs:{label:"姓名",prop:"staffName",formatter:function(e,t,o){return o||"--"}}}),o("el-table-column",{attrs:{label:"账号",prop:"wxUserId",formatter:function(e,t,o){return o||"--"},"show-overflow-tooltip":""}}),o("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber",formatter:function(e,t,o){return o||"--"}}}),o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[o("el-button",{attrs:{type:"text"},on:{click:function(t){return e.toEditAdmin(n)}}},[e._v("管辖范围")]),o("el-button",{attrs:{type:"text"},on:{click:function(t){return e.onDelAdmin(n)}}},[e._v("删除")])]}}])})],1),e.pager.total>0?o("dm-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"size-change":e.onSizeChange,"current-change":e.onCurrentChange}}):e._e()],1)])},l=[],i=(o("386d"),o("0082")),a=o("f286"),r=a["a"].roleList,s=a["a"].roleAdminList,c=a["a"].delAdmin,d={name:"AdminList",components:{RoleList:i["default"]},data:function(){return{activeRoleId:"",roleList:[],search:"",pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1},adminList:[]}},created:function(){this.$emit("showTab","/admin-list"),this.getRoleList()},methods:{getRoleList:function(){var e=this;r({roleType:2}).then((function(t){e.roleList=t.result||[],e.roleList.length>0&&!e.activeRoleId&&(e.activeRoleId=e.roleList[0].roleId,e.getAdminList())}))},onEditRole:function(e){var t=e||{},o=t.roleId;this.$router.push("/edit-role".concat(o?"?roleId=".concat(o):""))},onChangeRole:function(e){this.activeRoleId=e.roleId,this.getAdminList()},onDelRoleSucc:function(e){e&&(this.activeRoleId=""),this.getRoleList()},getAdminList:function(){var e=this,t=this.pager,o=t.currentPage,n=t.pageSize,l={roleId:this.activeRoleId,search:this.search,pageNum:o,pageSize:n};s(l).then((function(t){var o=t.result||{},n=o.totalCount,l=o.result;e.pager.total=n,e.adminList=l||[]}))},onSearch:function(){this.pager.currentPage=1,this.getAdminList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},onCurrentChange:function(e){this.pager.currentPage=e,this.getAdminList()},toEditAdmin:function(e){var t=e||{},o=t.staffId,n=t.staffName;this.$router.push("/edit-admin?roleId=".concat(this.activeRoleId).concat(n?"&staffName=".concat(n):"").concat(o?"&staffId=".concat(o):""))},onDelAdmin:function(e){var t=this,o=e.staffName,n=e.staffId;this.$confirm("确定删除【 ".concat(o," 】吗?"),"提示",{type:"warning"}).then((function(){var e={staffId:n,roleId:t.activeRoleId};c(e).then((function(e){"0000"==e.code&&(t.$message.success("删除成功!"),t.pager.currentPage>1&&1==t.adminList.length&&t.pager.currentPage--,t.getAdminList())}))}))}}},u=d,f=(o("b6fa"),o("2877")),p=Object(f["a"])(u,n,l,!1,null,"2e313758",null);t["default"]=p.exports},e2aa:function(e,t,o){},f286:function(e,t,o){"use strict";var n=o("71f6"),l={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list"};t["a"]=Object(n["a"])(l,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1c295d3c","chunk-784402ec"],{"0fd6":function(e,t,n){"use strict";var a=n("cf90"),r=n.n(a);r.a},2249: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",[n("nav-crumb",{attrs:{navpath:e.bread}}),n("div",{staticStyle:{padding:"20px",background:"#fff"}},[n("el-alert",{staticStyle:{"margin-bottom":"30px",width:"572px"},attrs:{type:"info",title:"管理角色:查看区域或门店日常业务,进行一些经营性的管理工作。不必关联导购账号。",closable:!1,"show-icon":""}}),n("el-form",{ref:"roleData",attrs:{model:e.roleData,rules:e.roleDataRule,"label-width":"140px"}},[n("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[n("el-input",{staticStyle:{width:"432px"},attrs:{placeholder:"请输入角色名称",maxlength:"20","show-word-limit":""},model:{value:e.roleData.roleName,callback:function(t){e.$set(e.roleData,"roleName","string"===typeof t?t.trim():t)},expression:"roleData.roleName"}})],1),n("el-form-item",{attrs:{label:"权限配置",prop:"menuIds"}},[n("el-radio-group",{staticClass:"specter",attrs:{size:"small"},model:{value:e.activeType,callback:function(t){e.activeType=t},expression:"activeType"}},e._l(e.tabList,(function(t){return n("el-radio-button",{key:t.appType,attrs:{label:t.appType}},[e._v(e._s(t.label))])})),1),n("menu-tree",{staticStyle:{"margin-top":"12px"},attrs:{"menu-list":e.getActiveMenuList(),"checked-id":e.getActiveMenuChecked()},on:{change:e.onCheckedChange}})],1),n("el-form-item",{staticStyle:{"margin-top":"50px"}},[n("el-button",{attrs:{type:"primary",loading:e.roleData.loading},on:{click:e.onSave}},[e._v(e._s(e.roleData.roleId?"保存":"确认新建"))])],1)],1)],1)],1)},r=[],i=(n("20d6"),n("28a5"),n("5df3"),n("ac6a"),n("96cf"),n("1da1")),c=n("29b6"),o=n("a088"),u=n("f286"),s=u["a"].menuList,l=u["a"].addRole,d=u["a"].editRole,h=u["a"].roleDetail,f={name:"EditRole",components:{navCrumb:c["a"],MenuTree:o["default"]},data:function(){var e=function(e,t,n){Array.isArray(t)&&0!=t.length&&!t.every((function(e){return 0==e.menuIds.length}))||n(new Error("请至少选择一个权限菜单")),n()};return{bread:[{name:"管理员",path:"/admin-list"},{name:"新建管理角色"}],roleData:{loading:!1,roleId:"",roleName:"",menuIds:[]},roleDataRule:{roleName:[{required:!0,message:"角色名称不能为空",trigger:"blur"}],menuIds:[{required:!0,validator:e}]},activeType:1,tabList:[{label:"好办后台",appType:1,flatMenu:[],menuList:[],checkedId:{}},{label:"应用后台",appType:2,flatMenu:[],menuList:[],checkedId:{}},{label:"好办小程序",appType:3,flatMenu:[],menuList:[],checkedId:{}},{label:"小程序应用",appType:4,flatMenu:[],menuList:[],checkedId:{}}]}},created:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.$route.query.roleId,this.$emit("showAsideMenu",!1),e.next=4,this.getMenuList();case 4:t&&(this.bread[1]={name:"编辑管理角色"},this.getRoleDetail(t));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{getMenuList:function(){var e=this,t=JSON.parse(localStorage.getItem("haoBanUser")||"{}"),n={wxEnterpriseId:t.wxEnterpriseId},a=[];return this.tabList.forEach((function(t){a.push(s(Object.assign({},n,{appType:t.appType,roleType:1})).then((function(n){t.menuList=e.flatDataToTree(n.result||[]),t.flatMenu=n.result||[],t.menuList.forEach((function(n){e.$set(t.checkedId,n.menuId,[])}))})))})),Promise.all(a)},getRoleDetail:function(e){var t=this;function n(e,t){var a=[];return e.forEach((function(e){t.some((function(t){return t==e.menuId}))&&a.push(e.menuId),Array.isArray(e.children)&&(a=a.concat(n(e.children,t)))})),a}function a(e,t){var n=[];return e.map((function(e){if(t.some((function(t){return t==e.menuId}))){var i=[];Array.isArray(e.children)&&(i=r(e.children)),(0==i.length||i.every((function(e){return t.some((function(t){return t==e}))})))&&n.push(e.menuId),Array.isArray(e.children)&&(n=n.concat(a(e.children,t)))}})),n}function r(e){var t=[];return e.forEach((function(e){t.push(e.menuId),Array.isArray(e.children)&&(t=t.concat(r(e.children)))})),t}h({roleId:e}).then((function(e){var r=e.result,i=r.roleId,c=r.roleName,o=r.menuIds;o="string"==typeof o?o.split(","):[],Object.assign(t.roleData,{roleId:i,roleName:c}),t.tabList.forEach((function(e){var r=[];e.menuList.forEach((function(t){e.checkedId[t.menuId]=a([t],o),r=r.concat(n([t],o))})),t.roleData.menuIds.push({appType:e.appType,menuIds:r})}))}))},flatDataToTree:function(e){return e.filter((function(t){var n=e.filter((function(e){return e.parentId==t.menuId}));return n.length>0&&(t.children=n),""==t.parentCode}))},getActiveMenuList:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].menuList},getActiveMenuChecked:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].checkedId},onCheckedChange:function(e){var t=this,n=[],a=[],r=[];for(var i in e)n=n.concat(e[i]);function c(e,t){var n=[e];return t.some((function(a){return a.menuId==e&&a.parentId>0&&(n=n.concat(c(a.parentId,t))),a.menuId==e})),n}this.tabList=this.tabList.map((function(n){return n.appType==t.activeType&&(n.checkedId=e,a=n.flatMenu),n})),n.map((function(e){r=r.concat(c(e,a))})),r=r.filter((function(e,t){return t==r.findIndex((function(t){return t==e}))})),this.roleData.menuIds.some((function(e){return e.appType==t.activeType}))?this.roleData.menuIds.forEach((function(e){e.appType==t.activeType&&(e.menuIds=r)})):this.roleData.menuIds.push({appType:this.activeType,menuIds:r})},onSave:function(){var e=this;this.$refs.roleData.validate((function(t){if(t){var n=e.roleData,a=n.roleId,r=n.roleName,i=n.menuIds,c={roleName:r,menuIds:JSON.stringify(i)};e.roleData.loading=!0,a?(c.roleId=a,d(c).then(o.bind(e,"保存成功!")).finally((function(){return e.roleData.loading=!1}))):l(c).then(o.bind(e,"新建成功!")).finally((function(){return e.roleData.loading=!1}))}function o(e){this.$message.success(e),this.$router.go(-1)}}))}}},p=f,m=n("2877"),v=Object(m["a"])(p,a,r,!1,null,null,null);t["default"]=v.exports},"29b6":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"nav-wrap border-box"},[n("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e._l(e.navpath,(function(t,a){return[t.path?[n("el-breadcrumb-item",{key:"nav"+a,attrs:{to:{path:t.path}},on:{click:function(n){return e.changeRoute(t.path,t.relocation)}}},[n("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(n){return e.changeRoute(t.path,t.relocation)}}},[e._v("\n "+e._s(t.name)+"\n ")])])]:[n("el-breadcrumb-item",{key:"nav"+a},[e._v(e._s(t.name))])]]}))],2)],1)},r=[],i={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(e,t){var n=this;t?window.location.href=e:n.$router.push(e)}}},c=i,o=(n("6b4b"),n("2877")),u=Object(o["a"])(c,a,r,!1,null,"2c2a2724",null);t["a"]=u.exports},"6b4b":function(e,t,n){"use strict";var a=n("76d4"),r=n.n(a);r.a},"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){return Object(a["a"])(r,e)}})),e}},"76d4":function(e,t,n){},a088: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:"menu-tree"},[n("ul",{staticClass:"first-menu"},[0==e.menuList.length?n("li",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.menuList,(function(t){return n("li",{key:t.menuId,class:["first-menu-item",{active:t.menuId==e.activeMenuId}],on:{click:function(n){return e.onMenuChange(t)}}},[e._v("\n "+e._s(t.menuName)+"\n ")])}))],2),n("div",{staticClass:"all-menu"},[n("el-tree",{ref:"menuList",attrs:{data:e.treeData,"show-checkbox":"","default-expand-all":"","node-key":"menuId","expand-on-click-node":!1,"check-on-click-node":!0,props:{label:"menuName"},"default-checked-keys":e.checkedId[e.activeMenuId]},on:{"node-click":e.onNodeClick,check:e.onNodeClick}})],1)])},r=[],i=(n("ac6a"),{name:"MenuTree",props:{menuList:Array,checkedId:Object},data:function(){return{activeMenuId:"",treeData:[]}},methods:{onMenuChange:function(e){this.activeMenuId=e?e.menuId:"",this.treeData=e?[e]:[]},onNodeClick:function(){this.onChange(this.$refs.menuList.getCheckedKeys())},getAllMenuId:function(e){var t=this,n=[];return e.forEach((function(e){n.push(e.menuId),Array.isArray(e.children)&&(n=n.concat(t.getAllMenuId(e.children)))})),n},onChange:function(e){var t={};t[this.activeMenuId]=e,this.$emit("change",Object.assign({},this.checkedId,t))}},watch:{checkedId:{deep:!0,handler:function(e){this.$refs.menuList.setCheckedKeys(e[this.activeMenuId]||[])}},menuList:{immediate:!0,handler:function(e){this.onMenuChange(e[0])}}}}),c=i,o=(n("0fd6"),n("2877")),u=Object(o["a"])(c,a,r,!1,null,"6d51b677",null);t["default"]=u.exports},cf90:function(e,t,n){},f286:function(e,t,n){"use strict";var a=n("71f6"),r={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list"};t["a"]=Object(a["a"])(r,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1fbcb7b4","chunk-33b0918a"],{"0082":function(e,t,o){"use strict";o.r(t);var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("ul",{staticClass:"role-menu"},[Array.isArray(e.roleList)&&0!=e.roleList.length?e._e():o("li",{staticClass:"no-data"},[e._v("暂无数据")]),e._l(e.roleList,(function(t){return o("li",{key:t,class:["role-item",{active:e.activeRoleId==t.roleId}],on:{click:function(o){return e.onChangeRole(t)}}},[o("span",{staticClass:"role-name"},[e._v(e._s(t.roleName))]),o("el-dropdown",{attrs:{placement:"bottom-start"}},[o("i",{staticClass:"iconfont icongengduo edit-icon"}),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[o("el-dropdown-item",{nativeOn:{click:function(o){return e.onEditRole(t)}}},[e._v("编辑")]),e.showDelRoleButton?o("el-dropdown-item",{nativeOn:{click:function(o){return e.onDelRole(t)}}},[e._v("删除")]):e._e()],1)],1)],1)}))],2),o("el-dialog",{attrs:{visible:e.delRole.show,title:"删除角色",width:"600px"},on:{"update:visible":function(t){return e.$set(e.delRole,"show",t)},closed:e.onDelRoleClose}},[o("div",{staticClass:"del-role"},[o("i",{staticClass:"el-icon-warning"}),o("div",{staticClass:"del-role-content"},[o("p",{staticClass:"del-role-tip"},[e._v("确认删除“"+e._s(e.delRole.roleName)+"”角色吗?")]),o("p",{staticClass:"del-role-tip"},[e._v("请在输入框中输入该角色名称,以避免误操作。")]),o("el-input",{staticStyle:{"margin-top":"10px",width:"440px"},model:{value:e.delRole.roleNameInput,callback:function(t){e.$set(e.delRole,"roleNameInput","string"===typeof t?t.trim():t)},expression:"delRole.roleNameInput"}})],1)]),o("template",{slot:"footer"},[o("el-button",{on:{click:function(t){e.delRole.show=!1}}},[e._v("取消")]),o("el-button",{attrs:{type:"primary",loading:e.delRole.loading},on:{click:e.onDelRoleSure}},[e._v("确定")])],1)],2)],1)},n=[],r=(o("c5f6"),o("f286")),l=r["a"].delRole,a={name:"RoleList",props:{roleList:{type:Array,default:function(){return[]}},activeRoleId:[String,Number],showDelRoleButton:{type:Boolean,default:!1}},data:function(){return{delRole:{show:!1,loading:!1,roleId:"",roleName:"",roleNameInput:""}}},methods:{onChangeRole:function(e){this.$emit("change-role",e)},onEditRole:function(e){this.$emit("edit-role",e)},onDelRole:function(e){var t=e.roleId,o=e.roleName;Object.assign(this.delRole,{show:!0,roleId:t,roleName:o})},onDelRoleClose:function(){Object.assign(this.delRole,{roleId:"",roleName:"",roleNameInput:""})},onDelRoleSure:function(){var e=this,t=this.delRole,o=t.roleId,i=t.roleName,n=t.roleNameInput;return 0==n.length?this.$message.warning("请输入角色名称!"):i!=n?this.$message.warning("请输入正确的角色名称!"):(this.delRole.loading=!0,void l({roleId:o}).then((function(t){"0000"==t.code&&(e.$message.success("删除成功!"),e.$emit("del-role-succ",o==e.activeRoleId),e.delRole.show=!1)})).finally((function(){return e.delRole.loading=!1})))}}},s=a,c=(o("575f"),o("2877")),d=Object(c["a"])(s,i,n,!1,null,"7c337432",null);t["default"]=d.exports},2058:function(e,t,o){"use strict";o.r(t);var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"store-admin-list"},[o("div",{staticClass:"store-role-list"},[0==e.roleList.length?o("p",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.roleList,(function(t){return o("div",{key:t.enterpriseId},[o("h3",{staticClass:"role-title"},[o("i",{staticClass:"iconfont iconshanghu role-title-icon"}),o("p",{staticClass:"role-title-text"},[e._v(e._s(t.enterpriseName))])]),o("role-list",{attrs:{"role-list":t.roleList,"active-role-id":e.activeRoleId},on:{"edit-role":e.onEditRole,"change-role":e.onChangeRole}})],1)}))],2),o("div",{staticClass:"admin-list"},[o("h3",{staticClass:"admin-list-title"},[e._v("门店成员列表")]),o("el-input",{staticStyle:{width:"238px"},attrs:{placeholder:"请输入姓名/账号/手机号码","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search,callback:function(t){e.search="string"===typeof t?t.trim():t},expression:"search"}}),o("el-alert",{staticStyle:{float:"right",width:"720px"},attrs:{type:"info",title:"拥有门店的权限,能进行一些门店日常业务,如打标签,完成话务等。必须是导购账号 ,不可添加删除门店成员。",closable:!1,"show-icon":""}}),o("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.adminList}},[o("el-table-column",{attrs:{label:"姓名",prop:"staffName",formatter:function(e,t,o){return o||"--"}}}),o("el-table-column",{attrs:{label:"账号",prop:"wxUserId",formatter:function(e,t,o){return o||"--"}}}),o("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber",formatter:function(e,t,o){return o||"--"}}})],1),e.pager.total>0?o("dm-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"current-change":e.onCurrentChange,"size-change":e.onSizeChange}}):e._e()],1)])},n=[],r=(o("386d"),o("5df3"),o("ac6a"),o("0082")),l=o("f286"),a=l["a"].enterpriseList,s=l["a"].roleList,c=l["a"].roleAdminList,d={name:"StoreAdminList",components:{RoleList:r["default"]},data:function(){return{roleList:[],activeRoleId:"",enterpriseId:"",adminList:[],search:"",pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1}}},created:function(){this.$emit("showTab","/store-admin-list"),this.getRoleList()},methods:{getRoleList:function(){var e=this,t=JSON.parse(localStorage.getItem("haoBanUser")||"{}"),o=t.wxEnterpriseId,i=[];o&&a({wxEnterpriseId:o}).then((function(t){var o=t.result||[];e.roleList=o.map((function(e){var t=e.enterpriseId,o=e.enterpriseName;return{enterpriseId:t,enterpriseName:o,roleList:[]}})),0!=e.roleList.length&&(e.roleList.forEach((function(e){i.push(s({enterpriseId:e.enterpriseId,roleType:1}).then((function(t){e.roleList=t.result||[]})))})),Promise.all(i).then((function(){e.activeRoleId||e.roleList.some((function(t){return t.roleList.length>0&&(e.activeRoleId=t.roleList[0].roleId,e.enterpriseId=t.roleList[0].enterpriseId),t.roleList.length>0})),e.activeRoleId&&e.getAdminList()})))}))},getAdminList:function(){var e=this,t={roleId:this.activeRoleId,enterpriseId:this.enterpriseId,search:this.search,pageNum:this.pager.currentPage,pageSize:this.pager.pageSize};c(t).then((function(t){var o=t.result||{},i=o.totalCount,n=o.result;e.pager.total=i||0,e.adminList=n||[]}))},onChangeRole:function(e){var t=e.roleId,o=e.enterpriseId;this.activeRoleId=t,this.enterpriseId=o,this.search="",this.pager.currentPage=1,this.getAdminList()},onEditRole:function(e){this.$router.push("/edit-store-role?roleId=".concat(e.roleId))},onSearch:function(){this.pager.currentPage=1,this.getAdminList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},onCurrentChange:function(e){this.pager.currentPage=e,this.getAdminList()}}},u=d,p=(o("b14d"),o("2877")),h=Object(p["a"])(u,i,n,!1,null,"3f411422",null);t["default"]=h.exports},3018:function(e,t,o){},"44e1":function(e,t,o){},"575f":function(e,t,o){"use strict";var i=o("44e1"),n=o.n(i);n.a},"71f6":function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));o("ac6a"),o("456d");var i=o("b775");function n(e,t){e=e||{};var o=Object.keys(e);return o.forEach((function(o){var n=e[o];"string"===typeof n&&(n={url:n}),n.url="".concat(t).concat(n.url),e[o]=function(e){return Object(i["a"])(n,e)}})),e}},b14d:function(e,t,o){"use strict";var i=o("3018"),n=o.n(i);n.a},f286:function(e,t,o){"use strict";var i=o("71f6"),n={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list"};t["a"]=Object(i["a"])(n,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-220f7958"],{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},"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){return Object(a["a"])(o,e)}})),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},"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},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:"AppIndexPage",components:{vueOfficeHeader:r["a"]},data:function(){return{projectName:"haoban-manage-web",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}},computed:{}},s=i,c=(n("ed60"),n("2877")),u=Object(c["a"])(s,a,o,!1,null,"7b2e96ec",null);t["default"]=u.exports},cc0d:function(e,t,n){"use strict";var a=n("ed94"),o=n.n(a);o.a},ed60:function(e,t,n){"use strict";var a=n("fc51"),o=n.n(a);o.a},ed94:function(e,t,n){},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)?"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:""}}):a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),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("28a5"),n("7ded")),s=n("5937"),c=s["a"].getRoleMenu,u=i["a"].getUserInfo,l=i["a"].loginOut,f={name:"VueOfficeHeader",components:{},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,e.routePathName=window.location.hash.split("/")[1],-1!=e.routePathName.indexOf("?")&&(e.routePathName=e.routePathName.split("?")[0]),-1!=e.routePathName.indexOf("/")&&(e.routePathName=e.routePathName.split("/")[0]),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])})),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(){}))},toRouter:function(e,t,n){var a=this,o={path:"/"+e,name:t};a.$emit("toRouterView",o)},toLogin:function(){var e=this;u({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),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={};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){}))}}},h=f,m=(n("cc0d"),n("2877")),d=Object(m["a"])(h,a,o,!1,null,"2a4f88b9",null);t["a"]=d.exports},fc51:function(e,t,n){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-24cc6bb9"],{"1c48":function(t,e,a){"use strict";var n=a("93c9"),i=a.n(n);i.a},3081:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-alert-tip"},[a("div",{style:{"min-width":t.width}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:t.width},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipContent)+"\n ")]),t.tipTwoContent?a("div",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipTwoContent)+"\n ")]):t._e()])])])])},i=[],o={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""},tipTwoContent:{type:String,default:""}},data:function(){return{}}},r=o,s=a("2877"),l=Object(s["a"])(r,n,i,!1,null,"537f2e35",null);e["a"]=l.exports},"55f3":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:"common-app-right"},[a("div",[a("div",{staticClass:"data-dimension-tip"},[a("common-alert-tip",{attrs:{width:"100%","tip-content":t.tipContent}})],1),a("div",{staticClass:"data-dimension-table flex"},[a("div",{staticClass:"data-dimension-table_left flex-1"},[a("div",{staticClass:"m-b-18"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 排序越靠上的权重越高,当一家门店拥有多个会员卡时,优先展示排序最靠上的会员卡\n ")]),a("span",{staticClass:"common-bottom-border table-title"},[t._v("会员卡权重")])])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loadingMember,expression:"loadingMember"}],ref:"memberCardData",staticStyle:{width:"100%"},attrs:{data:t.memberCardData,"row-key":"memberCardId"}},[a("el-table-column",{attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell show-icon"}},[[a("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c0c4cc",staticStyle:{cursor:"move"}})]],2),a("el-table-column",{attrs:{prop:"name",label:"会员卡名称","show-overflow-tooltip":""}})],1)],1),a("div",{staticClass:"data-dimension-table_right flex-1"},[a("div",{staticClass:"m-b-18"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 排序越靠上的权重越高,当一家门店拥有多个服务号时,优先展示排序最靠上的服务号\n ")]),a("span",{staticClass:"common-bottom-border table-title"},[t._v("服务号权重")])])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loadingService,expression:"loadingService"}],ref:"serviceNumData",staticStyle:{width:"100%"},attrs:{data:t.serviceNumData,"row-key":"serviceCardId"}},[a("el-table-column",{attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell show-icon"}},[[a("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c0c4cc",staticStyle:{cursor:"move"}})]],2),a("el-table-column",{attrs:{prop:"name",label:"服务号名称","show-overflow-tooltip":""}})],1)],1)])])])},i=[],o=a("3081"),r=a("aa47"),s=a("d11a"),l=a("5b4e"),c=s["a"].getMemberData,d=s["a"].getServiceData,m=s["a"].saveSortMember,p={name:"DataDimensionPage",components:{commonAlertTip:o["a"]},props:{brandId:{type:String,default:""}},data:function(){return{tipContent:"当商户有多个会员卡和服务号时,会造成单家门店适用于多个会员卡或服务号,即单个顾客会有多个域的身份信息,这容易造成门店成员的困扰。请为以下会员卡和服务号域做权重排序,当顾客有多个域的身份信息时,门店成员将只能看到权重最高域的一个身份信息。",memberCardData:[],serviceNumData:[],loadingMember:!1,loadingService:!1}},mounted:function(){var t=this;t.rowDrop("memberCardData"),t.rowDrop("serviceNumData"),t.brandId&&(t.getMemberCrad(),t.getServiceNum())},methods:{rowDrop:function(t){var e=this.$refs[t].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],a=this;r["a"].create(e,{onEnd:function(e){var n=e.newIndex,i=e.oldIndex;if(n==i)return!1;var o=JSON.parse(JSON.stringify(a[t])),r=o.splice(i,1)[0];o.splice(n,0,r),a.setSort(o)}})},setSort:function(){var t=this,e={enterpriseId:t.brandId};m(e).then((function(e){t.getMemberCrad(),t.getServiceNum(),"0000"==e.code?l["a"].showmsg("操作成功","success"):l["a"].showmsg(e.message||"接口异常","warning")})).catch((function(t){}))},getMemberCrad:function(){var t=this;t.loadingMember=!0;var e={enterpriseId:t.brandId};c(e).then((function(e){t.loadingMember=!1,t.memberCardData=e.result||[]})).catch((function(e){t.loadingMember=!1}))},getServiceNum:function(){var t=this;t.loadingService=!0;var e={enterpriseId:t.brandId};d(e).then((function(e){t.loadingService=!1,t.serviceNumData=e.result||[]})).catch((function(e){t.loadingService=!1}))}},watch:{brandId:function(t){var e=this;t&&(e.getMemberCrad(),e.getServiceNum())}}},u=p,v=(a("1c48"),a("2877")),f=Object(v["a"])(u,n,i,!1,null,"6a55f87f",null);e["default"]=f.exports},"93c9":function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3c06dd3c"],{5898:function(t,e,a){"use strict";var o=a("d363"),s=a.n(o);s.a},"5b4e6":function(t,e,a){"use strict";var o=a("5c96");e["a"]={showmsg:function(t,e){Object(o["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));a("ac6a"),a("456d");var o=a("b775");function s(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var s=t[a];"string"===typeof s&&(s={url:s}),s.url="".concat(e).concat(s.url),t[a]=function(t){return Object(o["a"])(s,t)}})),t}},d11a:function(t,e,a){"use strict";var o=a("71f6"),s={getGroupList:"/department-list",getStoreList:"/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/app-get-member-info-list",method:"post",useFormData:!0},getClerkList:"/clerk-list",getMemberCount:"",saveAssign:{url:"/",method:"post",useFormData:!0},getMemberData:"",getServiceData:"",saveSortMember:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"",getClassifyData:"",postSortGroup:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"",saveSync:{url:"/",method:"post",useFormData:!0,useIntercept:!1},saveVisiable:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"",addClassify:"",delClassify:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"",addClerkTag:"",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1}};s=Object(o["a"])(s,"/hb-manage-web"),e["a"]=s},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return o})),a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return r}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function o(t,e){var a,o=e||200;return function(){var e=this,s=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,s)}),o)}}function s(t,e){var a,o,s=e||200;return function(){var e=this,r=arguments,n=+new Date;a&&n-a<s?(clearTimeout(o),o=setTimeout((function(){a=n,t.apply(e,r)}),s)):(a=n,t.apply(e,r))}}function r(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},d363:function(t,e,a){},f766:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-app-right"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.mainStoreFlag,callback:function(e){t.$set(t.customerShowData,"mainStoreFlag",e)},expression:"customerShowData.mainStoreFlag"}},[t._v("展示服务门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看本门店作为服务门店名下顾客")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.minorStoreFlag,callback:function(e){t.$set(t.customerShowData,"minorStoreFlag",e)},expression:"customerShowData.minorStoreFlag"}},[t._v("展示协管门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看本门店作为协管门店名下顾客")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.openCardStoreFlag,callback:function(e){t.$set(t.customerShowData,"openCardStoreFlag",e)},expression:"customerShowData.openCardStoreFlag"}},[t._v("展示开卡门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看本门店作为开卡门店名下顾客")])],1),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return t.submit()}}},[t._v("保存")])],1)])},s=[],r=a("d11a"),n=a("d157"),u=a("5b4e6"),c=r["a"].getShowSet,i=r["a"].saveShowSet,l={name:"CustomerShowSet",components:{},props:{brandId:{type:String,default:""}},data:function(){return{customerShowData:{mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1},loading:!1}},mounted:function(){var t=this;t.brandId&&t.getShowData()},methods:{submit:Object(n["a"])((function(){var t=this;t.loading=!0,t.setData()}),500),setData:function(){var t=this,e={enterpriseId:t.brandId,mainStoreFlag:t.customerShowData.mainStoreFlag?1:"0",minorStoreFlag:t.customerShowData.minorStoreFlag?1:"0",openCardStoreFlag:t.customerShowData.openCardStoreFlag?1:"0"};i(e).then((function(e){t.loading=!1,t.getShowData(),"0000"==e.code?u["a"].showmsg("操作成功","success"):u["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){t.loading=!1}))},getShowData:function(){var t=this,e={enterpriseId:t.brandId};c(e).then((function(e){t.customerShowData=e.result||[]})).catch((function(t){}))}},watch:{brandId:function(t){var e=this;t&&e.getShowData()}}},m=l,d=(a("5898"),a("2877")),p=Object(d["a"])(m,o,s,!1,null,"fdef3edc",null);e["default"]=p.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e212760"],{"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},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",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}}},s=i,c=(n("bcc2"),n("2877")),u=Object(c["a"])(s,a,o,!1,null,"7e302da0",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},"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){return Object(a["a"])(o,e)}})),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},8637:function(e,t,n){},bcc2:function(e,t,n){"use strict";var a=n("8637"),o=n.n(a);o.a},cc0d:function(e,t,n){"use strict";var a=n("ed94"),o=n.n(a);o.a},ed94:function(e,t,n){},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)?"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:""}}):a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),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("28a5"),n("7ded")),s=n("5937"),c=s["a"].getRoleMenu,u=i["a"].getUserInfo,l=i["a"].loginOut,f={name:"VueOfficeHeader",components:{},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,e.routePathName=window.location.hash.split("/")[1],-1!=e.routePathName.indexOf("?")&&(e.routePathName=e.routePathName.split("?")[0]),-1!=e.routePathName.indexOf("/")&&(e.routePathName=e.routePathName.split("/")[0]),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])})),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(){}))},toRouter:function(e,t,n){var a=this,o={path:"/"+e,name:t};a.$emit("toRouterView",o)},toLogin:function(){var e=this;u({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),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={};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){}))}}},h=f,m=(n("cc0d"),n("2877")),d=Object(m["a"])(h,a,o,!1,null,"2a4f88b9",null);t["a"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-49cb119c"],{"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},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},"36e6":function(t,e,a){"use strict";var n=a("801f"),r=a.n(n);r.a},"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"},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("36e6"),a("2877")),p=Object(u["a"])(c,n,r,!1,null,"0ed83f17",null);e["default"]=p.exports},"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){return Object(n["a"])(r,t)}})),t}},"76d4":function(t,e,a){},"801f":function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d9fb500"],{"0ef2":function(t,e,a){"use strict";var n=a("50e5"),r=a.n(n);r.a},"4b19":function(t,e,a){"use strict";var n=a("f834"),r=a.n(n);r.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.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)+"\n ")]),a("ul",{key:"childitem"+n,staticClass:"child-tab-left-list"},[t._l(e.children,(function(e,r){return[a("li",{key:r,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",e.menuUrl!=t.activeTab||e.children.length?"":"active-tab"],on:{click:function(a){return t.selectTab(e,"child",n)}}},[t._v(t._s(e.tabName))]),a("ul",{key:"thirditem"+r,staticClass:"third-tab-left-list"},[t._l(e.children,(function(e,r){return[a("li",{key:r,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",e.menuUrl!=t.activeTab||e.children.length?"":"active-tab"],on:{click:function(a){return t.selectTab(e,"child",n)}}},[t._v(t._s(e.tabName))])]}))],2)]}))],2)]}))],2)])},r=[],i=(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:{returnBack:function(){var t=this;t.$router.push("appcenter")},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=i,o=(a("0ef2"),a("2877")),l=Object(o["a"])(c,n,r,!1,null,"51e072e6",null);e["a"]=l.exports},"50e5":function(t,e,a){},"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){return Object(n["a"])(r,t)}})),t}},"925d":function(t,e,a){"use strict";var n=a("af65"),r=a.n(n);r.a},"96b6":function(t,e,a){"use strict";var n=a("71f6"),r={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"};r=Object(n["a"])(r,"/hb-manage-web"),e["a"]=r},af65:function(t,e,a){},c3d9: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)},r=[],i=(a("ac6a"),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)}),c=[],o=a("96b6"),l=o["a"].getWxEnterprise,s={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;l({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()}}},u=s,d=(a("4b19"),a("2877")),h=Object(d["a"])(u,i,c,!1,null,"0804a383",null),f=h.exports,b=a("503e"),p={name:"Reviewed",components:{navCrumb:f,commonDetailLeft:b["a"]},data:function(){return{bgHeight:window.screen.availHeight-380+"px",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"我的顾客",path:""}],tabListData:[{tabId:"1",menuName:"顾客数据维度",iconUrl:"iconjichushezhi",menuUrl:""},{tabId:"2",menuName:"顾客展示",iconUrl:"icongukeguanliicon",menuUrl:""}],activeBrand:"",activeGroup:""}},mounted:function(){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(t.menuUrl)},showTab:function(t){var e=this;e.activeTab=t,e.activeSelTab=t,e.tabListData.forEach((function(e){e.menuUrl==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach((function(a){a.menuUrl==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach((function(a){a.menuUrl==t&&(e.onlyIconActive=!0)}))}))}))}},watch:{activeBrand:function(t,e){var a=this;a.activeBrand=t},activeGroup:function(t,e){var a=this;a.activeGroup=t}}},v=p,m=(a("925d"),Object(d["a"])(v,n,r,!1,null,"5fa19d6b",null));e["default"]=m.exports},f834:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-56f22583","chunk-784402ec"],{"0fd6":function(e,t,r){"use strict";var n=r("cf90"),a=r.n(n);a.a},"29b6":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"nav-wrap border-box"},[r("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e._l(e.navpath,(function(t,n){return[t.path?[r("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:t.path}},on:{click:function(r){return e.changeRoute(t.path,t.relocation)}}},[r("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(r){return e.changeRoute(t.path,t.relocation)}}},[e._v("\n "+e._s(t.name)+"\n ")])])]:[r("el-breadcrumb-item",{key:"nav"+n},[e._v(e._s(t.name))])]]}))],2)],1)},a=[],i={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(e,t){var r=this;t?window.location.href=e:r.$router.push(e)}}},o=i,s=(r("6b4b"),r("2877")),c=Object(s["a"])(o,n,a,!1,null,"2c2a2724",null);t["a"]=c.exports},"6b4b":function(e,t,r){"use strict";var n=r("76d4"),a=r.n(n);a.a},7133:function(e,t,r){"use strict";var n=r("a0b2"),a=r.n(n);a.a},"71f6":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r("ac6a"),r("456d");var n=r("b775");function a(e,t){e=e||{};var r=Object.keys(e);return r.forEach((function(r){var a=e[r];"string"===typeof a&&(a={url:a}),a.url="".concat(t).concat(a.url),e[r]=function(e){return Object(n["a"])(a,e)}})),e}},"76d4":function(e,t,r){},a088:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"menu-tree"},[r("ul",{staticClass:"first-menu"},[0==e.menuList.length?r("li",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.menuList,(function(t){return r("li",{key:t.menuId,class:["first-menu-item",{active:t.menuId==e.activeMenuId}],on:{click:function(r){return e.onMenuChange(t)}}},[e._v("\n "+e._s(t.menuName)+"\n ")])}))],2),r("div",{staticClass:"all-menu"},[r("el-tree",{ref:"menuList",attrs:{data:e.treeData,"show-checkbox":"","default-expand-all":"","node-key":"menuId","expand-on-click-node":!1,"check-on-click-node":!0,props:{label:"menuName"},"default-checked-keys":e.checkedId[e.activeMenuId]},on:{"node-click":e.onNodeClick,check:e.onNodeClick}})],1)])},a=[],i=(r("ac6a"),{name:"MenuTree",props:{menuList:Array,checkedId:Object},data:function(){return{activeMenuId:"",treeData:[]}},methods:{onMenuChange:function(e){this.activeMenuId=e?e.menuId:"",this.treeData=e?[e]:[]},onNodeClick:function(){this.onChange(this.$refs.menuList.getCheckedKeys())},getAllMenuId:function(e){var t=this,r=[];return e.forEach((function(e){r.push(e.menuId),Array.isArray(e.children)&&(r=r.concat(t.getAllMenuId(e.children)))})),r},onChange:function(e){var t={};t[this.activeMenuId]=e,this.$emit("change",Object.assign({},this.checkedId,t))}},watch:{checkedId:{deep:!0,handler:function(e){this.$refs.menuList.setCheckedKeys(e[this.activeMenuId]||[])}},menuList:{immediate:!0,handler:function(e){this.onMenuChange(e[0])}}}}),o=i,s=(r("0fd6"),r("2877")),c=Object(s["a"])(o,n,a,!1,null,"6d51b677",null);t["default"]=c.exports},a0b2:function(e,t,r){},a960:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{height:"100%"}},[r("nav-crumb",{attrs:{navpath:e.bread}}),r("div",{staticClass:"edit-role"},[r("el-alert",{staticStyle:{width:"572px"},attrs:{type:"info",title:"拥有门店的权限,能进行一些门店日常业务,如打标签,完成话务等。必须是导购账号",closable:!1,"show-icon":""}}),r("el-form",{ref:"roleData",staticStyle:{"margin-top":"30px"},attrs:{model:e.roleData,rules:e.roleDataRule,"label-width":"135px"}},[r("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[r("el-input",{staticStyle:{width:"510px"},attrs:{value:e.roleData.roleName,disabled:""}})],1),r("el-form-item",{attrs:{label:"应用小程序权限",prop:"menuIds"}},[r("el-radio-group",{staticClass:"specter",attrs:{size:"small"},model:{value:e.activeType,callback:function(t){e.activeType=t},expression:"activeType"}},e._l(e.tabList,(function(t){return r("el-radio-button",{key:t.appType,attrs:{label:t.appType}},[e._v(e._s(t.label))])})),1),r("menu-tree",{staticStyle:{"margin-top":"12px"},attrs:{"menu-list":e.getActiveMenuList(),"checked-id":e.getActiveCheckId()},on:{change:e.onCheckedChange}})],1),r("el-form-item",{attrs:{label:"资源范围",prop:"resourceCode"}},[r("div",{staticClass:"resource-list"},e._l(e.resourceList,(function(t){return r("div",{key:t.appId,staticClass:"resource-item"},[r("p",{staticClass:"app-name"},[e._v(e._s(t.appName))]),r("el-radio-group",{model:{value:e.roleData.resourceCode[t.appId],callback:function(r){e.$set(e.roleData.resourceCode,t.appId,r)},expression:"roleData.resourceCode[el.appId]"}},e._l(t.resourceList,(function(t){return r("el-radio",{key:t.resourceCode,attrs:{label:t.resourceCode}},[e._v(e._s(t.resourceName))])})),1)],1)})),0)]),r("el-form-item",{staticStyle:{"margin-top":"50px"}},[r("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.onSave}},[e._v("保存")])],1)],1)],1)],1)},a=[],i=(r("28a5"),r("5df3"),r("ac6a"),r("96cf"),r("1da1")),o=r("29b6"),s=r("a088"),c=r("f286"),u=c["a"].resourceList,l=c["a"].menuList,d=c["a"].editRole,p=c["a"].roleDetail,h={name:"EditStoreRole",components:{navCrumb:o["a"],MenuTree:s["default"]},data:function(){var e=function(e,t,r){Array.isArray(t)&&0!=t.length&&!t.every((function(e){return 0==e.menuIds.length}))||r(new Error("请至少选择一个权限菜单")),r()};return{bread:[{path:"/store-admin-list",name:"门店角色"},{name:"编辑门店角色"}],loading:!1,wxEnterpriseId:"",roleData:{roleId:"",roleName:"",menuIds:[],resourceCode:{}},roleDataRule:{roleName:[{required:!0}],menuIds:[{required:!0,validator:e,trigger:"change"}],resourceCode:[{required:!0,message:"",trigger:"change"}]},activeType:3,tabList:[{label:"好办小程序",appType:3,menuList:[],checkedId:{}},{label:"小程序应用",appType:4,menuList:[],checkedId:{}}],resourceList:[]}},created:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.$route.query.roleId,t){e.next=3;break}return e.abrupt("return",this.$router.go(-1));case 3:return r=JSON.parse(localStorage.getItem("haoBanUser")||"{}"),this.wxEnterpriseId=r.wxEnterpriseId,this.$emit("showAsideMenu",!1),e.next=8,this.initData();case 8:this.getRoleDetail(t);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{initData:function(){var e=this,t={wxEnterpriseId:this.wxEnterpriseId},r=[];return this.tabList.forEach((function(n){r.push(l(Object.assign({},t,{appType:n.appType,roleType:2})).then((function(t){n.menuList=e.flatDataToTree(t.result||[]),n.menuList.forEach((function(t){e.$set(n.checkedId,t.menuId,[])}))})))})),r.push(u().then((function(t){e.resourceList=t.result||[],e.resourceList.forEach((function(t){e.$set(e.roleData.resourceCode,t.appId,"")}))}))),Promise.all(r)},getRoleDetail:function(e){var t=this;function r(e,t){var n=[];return e.forEach((function(e){t.some((function(t){return t==e.menuId}))&&n.push(e.menuId),Array.isArray(e.children)&&(n=n.concat(r(e.children,t)))})),n}p({roleId:e}).then((function(e){var n=e.result||{},a=n.roleId,i=n.roleName,o=n.menuIds,s=n.resourceCode;o="string"==typeof o?o.split(","):[],Object.assign(t.roleData,{roleId:a,roleName:i}),t.tabList.forEach((function(e){var n=[];e.menuList.forEach((function(t){e.checkedId[t.menuId]=r([t],o),n=n.concat(e.checkedId[t.menuId])})),t.roleData.menuIds.push({appType:e.appType,menuIds:n})})),"string"==typeof s&&s.length>0&&s.split(",").forEach((function(e){t.resourceList.some((function(r){var n=r.resourceList.some((function(t){return t.resourceCode==e}));return n&&(t.roleData.resourceCode[r.appId]=e),n}))}))}))},getActiveMenuList:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].menuList},getActiveCheckId:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].checkedId},flatDataToTree:function(e){return e.filter((function(t){var r=e.filter((function(e){return e.parentCode==t.menuCode}));return r.length>0&&(t.children=r),""==t.parentCode}))},onCheckedChange:function(e){var t=this,r=[];for(var n in e)r=r.concat(e[n]);this.tabList=this.tabList.map((function(r){return r.appType==t.activeType&&(r.checkedId=e),r})),this.roleData.menuIds.some((function(e){return e.appType==t.activeType}))?this.roleData.menuIds.forEach((function(e){e.appType==t.activeType&&(e.menuIds=r)})):this.roleData.menuIds.push({appType:this.activeType,menuIds:r})},onSave:function(){var e=this;this.$refs.roleData.validate((function(t){if(t){var r=e.roleData,n=r.roleId,a=r.roleName,i=r.menuIds,o=r.resourceCode,s={roleId:n,roleName:a,menuIds:JSON.stringify(i),wxEnterpriseId:e.wxEnterpriseId,resourceCode:[]};for(var c in o)s.resourceCode.push(o[c]);s.resourceCode=s.resourceCode.join(","),e.loading=!0,d(s).then((function(t){"0000"==t.code&&(e.$message.success("保存成功!"),e.$router.go(-1))})).finally((function(){return e.loading=!1}))}}))}}},f=h,m=(r("7133"),r("2877")),v=Object(m["a"])(f,n,a,!1,null,"f83874f4",null);t["default"]=v.exports},cf90:function(e,t,r){},f286:function(e,t,r){"use strict";var n=r("71f6"),a={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list"};t["a"]=Object(n["a"])(a,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5bf2d65e"],{"0ef2":function(t,e,a){"use strict";var n=a("50e5"),r=a.n(n);r.a},"31f3":function(t,e,a){},4900:function(t,e,a){"use strict";var n=a("bbe8"),r=a.n(n);r.a},"4eb1":function(t,e,a){"use strict";var n=a("31f3"),r=a.n(n);r.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.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)+"\n ")]),a("ul",{key:"childitem"+n,staticClass:"child-tab-left-list"},[t._l(e.children,(function(e,r){return[a("li",{key:r,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",e.menuUrl!=t.activeTab||e.children.length?"":"active-tab"],on:{click:function(a){return t.selectTab(e,"child",n)}}},[t._v(t._s(e.tabName))]),a("ul",{key:"thirditem"+r,staticClass:"third-tab-left-list"},[t._l(e.children,(function(e,r){return[a("li",{key:r,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",e.menuUrl!=t.activeTab||e.children.length?"":"active-tab"],on:{click:function(a){return t.selectTab(e,"child",n)}}},[t._v(t._s(e.tabName))])]}))],2)]}))],2)]}))],2)])},r=[],i=(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:{returnBack:function(){var t=this;t.$router.push("appcenter")},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=i,o=(a("0ef2"),a("2877")),l=Object(o["a"])(c,n,r,!1,null,"51e072e6",null);e["a"]=l.exports},"50e5":function(t,e,a){},"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){return Object(n["a"])(r,t)}})),t}},"96b6":function(t,e,a){"use strict";var n=a("71f6"),r={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"};r=Object(n["a"])(r,"/hb-manage-web"),e["a"]=r},bbe8:function(t,e,a){},c3d9: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)},r=[],i=(a("ac6a"),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)}),c=[],o=a("96b6"),l=o["a"].getWxEnterprise,s={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;l({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()}}},u=s,d=(a("4900"),a("2877")),h=Object(d["a"])(u,i,c,!1,null,"3c6cb7c4",null),b=h.exports,f=a("503e"),p={name:"Reviewed",components:{navCrumb:b,commonDetailLeft:f["a"]},data:function(){return{bgHeight:window.screen.availHeight-380+"px",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"我的顾客",path:""}],tabListData:[{tabId:"1",menuName:"顾客数据维度",iconUrl:"iconjichushezhi",menuUrl:""},{tabId:"2",menuName:"顾客展示",iconUrl:"icongukeguanliicon",menuUrl:""}],activeBrand:"",activeGroup:""}},mounted:function(){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(t.menuUrl)},showTab:function(t){var e=this;e.activeTab=t,e.activeSelTab=t,e.tabListData.forEach((function(e){e.menuUrl==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach((function(a){a.menuUrl==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach((function(a){a.menuUrl==t&&(e.onlyIconActive=!0)}))}))}))}},watch:{activeBrand:function(t,e){var a=this;a.activeBrand=t},activeGroup:function(t,e){var a=this;a.activeGroup=t}}},v=p,m=(a("4eb1"),Object(d["a"])(v,n,r,!1,null,"6873d81c",null));e["default"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5eeae6f1"],{"28a5":function(e,t,n){"use strict";var a=n("aae3"),o=n("cb7c"),r=n("ebd6"),i=n("0390"),s=n("9def"),c=n("5f1b"),u=n("520a"),l=n("79e5"),f=Math.min,h=[].push,d="split",m="length",p="lastIndex",g=4294967295,v=!l((function(){RegExp(g,"y")}));n("214f")("split",2,(function(e,t,n,l){var w;return w="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[m]||2!="ab"[d](/(?:ab)*/)[m]||4!="."[d](/(.?)(.?)/)[m]||"."[d](/()()/)[m]>1||""[d](/.?/)[m]?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!a(e))return n.call(o,e,t);var r,i,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,d=void 0===t?g:t>>>0,v=new RegExp(e.source,l+"g");while(r=u.call(v,o)){if(i=v[p],i>f&&(c.push(o.slice(f,r.index)),r[m]>1&&r.index<o[m]&&h.apply(c,r.slice(1)),s=r[0][m],f=i,c[m]>=d))break;v[p]===r.index&&v[p]++}return f===o[m]?!s&&v.test("")||c.push(""):c.push(o.slice(f)),c[m]>d?c.slice(0,d):c}:"0"[d](void 0,0)[m]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,a){var o=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,o,a):w.call(String(o),n,a)},function(e,t){var a=l(w,e,this,t,w!==n);if(a.done)return a.value;var u=o(e),h=String(this),d=r(u,RegExp),m=u.unicode,p=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(v?"y":"g"),b=new d(v?u:"^(?:"+u.source+")",p),C=void 0===t?g:t>>>0;if(0===C)return[];if(0===h.length)return null===c(b,h)?[h]:[];var x=0,N=0,O=[];while(N<h.length){b.lastIndex=v?N:0;var I,S=c(b,v?h:h.slice(N));if(null===S||(I=f(s(b.lastIndex+(v?0:N)),h.length))===x)N=i(h,N,m);else{if(O.push(h.slice(x,N)),O.length===C)return O;for(var y=1;y<=S.length-1;y++)if(O.push(S[y]),O.length===C)return O;N=x=I}}return O.push(h.slice(x)),O}]}))},"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},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",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}}},s=i,c=(n("bcc2"),n("2877")),u=Object(c["a"])(s,a,o,!1,null,"7e302da0",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},"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){return Object(a["a"])(o,e)}})),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},8637:function(e,t,n){},bcc2:function(e,t,n){"use strict";var a=n("8637"),o=n.n(a);o.a},cc0d:function(e,t,n){"use strict";var a=n("ed94"),o=n.n(a);o.a},ed94:function(e,t,n){},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)?"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:""}}):a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),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("28a5"),n("7ded")),s=n("5937"),c=s["a"].getRoleMenu,u=i["a"].getUserInfo,l=i["a"].loginOut,f={name:"VueOfficeHeader",components:{},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,e.routePathName=window.location.hash.split("/")[1],-1!=e.routePathName.indexOf("?")&&(e.routePathName=e.routePathName.split("?")[0]),-1!=e.routePathName.indexOf("/")&&(e.routePathName=e.routePathName.split("/")[0]),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])})),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(){}))},toRouter:function(e,t,n){var a=this,o={path:"/"+e,name:t};a.$emit("toRouterView",o)},toLogin:function(){var e=this;u({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),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={};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){}))}}},h=f,d=(n("cc0d"),n("2877")),m=Object(d["a"])(h,a,o,!1,null,"2a4f88b9",null);t["a"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6088f780"],{"28a5":function(e,t,a){"use strict";var r=a("aae3"),o=a("cb7c"),s=a("ebd6"),u=a("0390"),n=a("9def"),i=a("5f1b"),l=a("520a"),c=a("79e5"),m=Math.min,d=[].push,g="split",h="length",p="lastIndex",b=4294967295,f=!c((function(){RegExp(b,"y")}));a("214f")("split",2,(function(e,t,a,c){var v;return v="c"=="abbc"[g](/(b)*/)[1]||4!="test"[g](/(?:)/,-1)[h]||2!="ab"[g](/(?:ab)*/)[h]||4!="."[g](/(.?)(.?)/)[h]||"."[g](/()()/)[h]>1||""[g](/.?/)[h]?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!r(e))return a.call(o,e,t);var s,u,n,i=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,g=void 0===t?b:t>>>0,f=new RegExp(e.source,c+"g");while(s=l.call(f,o)){if(u=f[p],u>m&&(i.push(o.slice(m,s.index)),s[h]>1&&s.index<o[h]&&d.apply(i,s.slice(1)),n=s[0][h],m=u,i[h]>=g))break;f[p]===s.index&&f[p]++}return m===o[h]?!n&&f.test("")||i.push(""):i.push(o.slice(m)),i[h]>g?i.slice(0,g):i}:"0"[g](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,r){var o=e(this),s=void 0==a?void 0:a[t];return void 0!==s?s.call(a,o,r):v.call(String(o),a,r)},function(e,t){var r=c(v,e,this,t,v!==a);if(r.done)return r.value;var l=o(e),d=String(this),g=s(l,RegExp),h=l.unicode,p=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(f?"y":"g"),w=new g(f?l:"^(?:"+l.source+")",p),D=void 0===t?b:t>>>0;if(0===D)return[];if(0===d.length)return null===i(w,d)?[d]:[];var S=0,C=0,F=[];while(C<d.length){w.lastIndex=f?C:0;var k,y=i(w,f?d:d.slice(C));if(null===y||(k=m(n(w.lastIndex+(f?0:C)),d.length))===S)C=u(d,C,h);else{if(F.push(d.slice(S,C)),F.length===D)return F;for(var O=1;O<=y.length-1;O++)if(F.push(y[O]),F.length===D)return F;C=S=k}}return F.push(d.slice(S)),F}]}))},"3cf8":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-app-right"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.allStoreOrder,callback:function(t){e.$set(e.customerShowData,"allStoreOrder",t)},expression:"customerShowData.allStoreOrder"}},[e._v("展示所有门店的订单")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看顾客在本店以外的消费订单")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.shopOrder,callback:function(t){e.$set(e.customerShowData,"shopOrder",t)},expression:"customerShowData.shopOrder"}},[e._v("展示微商城的订单")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看顾客在微商城的消费订单")])],1),a("div",{staticClass:"m-b-20"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选后将会在“顾客详情页”进行显示",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20 common-bottom-border"},[e._v("导购联系顾客方式")])]),a("el-checkbox",{model:{value:e.customerShowData.allowGuideOnlineChat,callback:function(t){e.$set(e.customerShowData,"allowGuideOnlineChat",t)},expression:"customerShowData.allowGuideOnlineChat"}},[e._v("添加会员/发消息")]),a("el-checkbox",{model:{value:e.customerShowData.allowGuideMobile,callback:function(t){e.$set(e.customerShowData,"allowGuideMobile",t)},expression:"customerShowData.allowGuideMobile"}},[e._v("电话")]),a("el-checkbox",{model:{value:e.customerShowData.allowGuideMessage,callback:function(t){e.$set(e.customerShowData,"allowGuideMessage",t)},expression:"customerShowData.allowGuideMessage"}},[e._v("短信")])],1),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:function(t){return e.submit()}}},[e._v("保存")])],1)])},o=[],s=a("d11a"),u=a("d157"),n=a("5b4e"),i=s["a"].getCustomerSet,l=s["a"].saveCustomerSet,c={name:"CustomerDataSet",components:{},props:{brandId:{type:String,default:""}},data:function(){return{customerShowData:{allStoreOrder:!1,shopOrder:!1,allowGuideMobile:!1,allowGuideMessage:!1,allowGuideOnlineChat:!1},loading:!1}},mounted:function(){var e=this;e.brandId&&e.getCustomerData()},methods:{submit:Object(u["a"])((function(){var e=this;e.loading=!0,e.setData()}),500),setData:function(){var e=this,t={enterpriseId:e.brandId,allStoreOrder:e.customerShowData.allStoreOrder?1:"0",shopOrder:e.customerShowData.shopOrder?1:"0",allowGuideMobile:e.customerShowData.allowGuideMobile?1:"0",allowGuideMessage:e.customerShowData.allowGuideMessage?1:"0",allowGuideOnlineChat:e.customerShowData.allowGuideOnlineChat?1:"0"};l(t).then((function(t){e.loading=!1,e.getCustomerData(),"0000"==t.code?n["a"].showmsg("操作成功","success"):n["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){e.loading=!1}))},getCustomerData:function(){var e=this,t={enterpriseId:e.brandId};i(t).then((function(t){e.customerShowData=t.result||[]})).catch((function(e){}))}},watch:{brandId:function(e){var t=this;e&&t.getCustomerData()}}},m=c,d=(a("741e"),a("2877")),g=Object(d["a"])(m,r,o,!1,null,"2a40b7e2",null);t["default"]=g.exports},"41b6":function(e,t,a){},"5b4e":function(e,t,a){"use strict";var r=a("5c96");t["a"]={showmsg:function(e,t){Object(r["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},"71f6":function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));a("ac6a"),a("456d");var r=a("b775");function o(e,t){e=e||{};var a=Object.keys(e);return a.forEach((function(a){var o=e[a];"string"===typeof o&&(o={url:o}),o.url="".concat(t).concat(o.url),e[a]=function(e){return Object(r["a"])(o,e)}})),e}},"741e":function(e,t,a){"use strict";var r=a("41b6"),o=a.n(r);o.a},d11a:function(e,t,a){"use strict";var r=a("71f6"),o={getGroupList:"/department-list",getStoreList:"/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/app-get-member-info-list",method:"post",useFormData:!0},getClerkList:"/clerk-list",getMemberCount:"",saveAssign:{url:"/",method:"post",useFormData:!0},getMemberData:"",getServiceData:"",saveSortMember:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"/member-group-list",getClassifyData:"/member-group-category-list",postSortGroup:{url:"/member-group-sort",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"/member-group-hb-list",saveSync:{url:"/member-group-save",method:"post",useFormData:!0,useIntercept:!1},getVisiable:"/member-group-range-view",saveVisiable:{url:"/member-group-range-save",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"/tagCategoryList",addClassify:"/tag-category-add",delClassify:{url:"/tag-category-del",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"/member-tag-list",addClerkTag:"/member-tag-add",editClerkTag:"/member-tag-edit",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1},sortClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getTagVisiable:"/member-tag-range-view",saveTagVisiable:{url:"/member-tag-range-save",method:"post",useFormData:!0,useIntercept:!1}};o=Object(r["a"])(o,"/hb-manage-web"),t["a"]=o},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return o})),a.d(t,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function r(e,t){var a,r=t||200;return function(){var t=this,o=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(t,o)}),r)}}function o(e,t){var a,r,o=t||200;return function(){var t=this,s=arguments,u=+new Date;a&&u-a<o?(clearTimeout(r),r=setTimeout((function(){a=u,e.apply(t,s)}),o)):(a=u,e.apply(t,s))}}function s(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6e5c6c36"],{"1c48":function(e,t,a){"use strict";var n=a("93c9"),r=a.n(n);r.a},"55f3":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-app-right"},[a("div",[a("div",{staticClass:"data-dimension-tip"},[a("common-alert-tip",{attrs:{width:"100%","tip-content":e.tipContent}})],1),a("div",{staticClass:"data-dimension-table flex"},[a("div",{staticClass:"data-dimension-table_left flex-1"},[a("div",{staticClass:"m-b-18"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 排序越靠上的权重越高,当一家门店拥有多个会员卡时,优先展示排序最靠上的会员卡\n ")]),a("span",{staticClass:"common-bottom-border table-title"},[e._v("会员卡权重")])])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingMember,expression:"loadingMember"}],ref:"memberCardData",staticStyle:{width:"100%"},attrs:{data:e.memberCardData,"row-key":"memberCardId"}},[a("el-table-column",{attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell show-icon"}},[[a("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c0c4cc",staticStyle:{cursor:"move"}})]],2),a("el-table-column",{attrs:{prop:"name",label:"会员卡名称","show-overflow-tooltip":""}})],1)],1),a("div",{staticClass:"data-dimension-table_right flex-1"},[a("div",{staticClass:"m-b-18"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 排序越靠上的权重越高,当一家门店拥有多个服务号时,优先展示排序最靠上的服务号\n ")]),a("span",{staticClass:"common-bottom-border table-title"},[e._v("服务号权重")])])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingService,expression:"loadingService"}],ref:"serviceNumData",staticStyle:{width:"100%"},attrs:{data:e.serviceNumData,"row-key":"serviceCardId"}},[a("el-table-column",{attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell show-icon"}},[[a("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c0c4cc",staticStyle:{cursor:"move"}})]],2),a("el-table-column",{attrs:{prop:"name",label:"服务号名称","show-overflow-tooltip":""}})],1)],1)])])])},r=[],i=a("3081"),o=a("aa47"),s=a("d11a"),c=a("5b4e6"),l=s["a"].getMemberData,d=s["a"].getServiceData,m=s["a"].saveSortMember,v={name:"DataDimensionPage",components:{commonAlertTip:i["a"]},props:{brandId:{type:String,default:""}},data:function(){return{tipContent:"当商户有多个会员卡和服务号时,会造成单家门店适用于多个会员卡或服务号,即单个顾客会有多个域的身份信息,这容易造成门店成员的困扰。请为以下会员卡和服务号域做权重排序,当顾客有多个域的身份信息时,门店成员将只能看到权重最高域的一个身份信息。",memberCardData:[],serviceNumData:[],loadingMember:!1,loadingService:!1}},mounted:function(){var e=this;e.rowDrop("memberCardData"),e.rowDrop("serviceNumData"),e.brandId&&(e.getMemberCrad(),e.getServiceNum())},methods:{rowDrop:function(e){var t=this.$refs[e].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],a=this;o["a"].create(t,{onEnd:function(t){var n=t.newIndex,r=t.oldIndex;if(n==r)return!1;var i=JSON.parse(JSON.stringify(a[e])),o=i.splice(r,1)[0];i.splice(n,0,o),a.setSort(i)}})},setSort:function(){var e=this,t={enterpriseId:e.brandId};m(t).then((function(t){e.getMemberCrad(),e.getServiceNum(),"0000"==t.code?c["a"].showmsg("操作成功","success"):c["a"].showmsg(t.message||"接口异常","warning")})).catch((function(e){}))},getMemberCrad:function(){var e=this;e.loadingMember=!0;var t={enterpriseId:e.brandId};l(t).then((function(t){e.loadingMember=!1,e.memberCardData=t.result||[]})).catch((function(t){e.loadingMember=!1}))},getServiceNum:function(){var e=this;e.loadingService=!0;var t={enterpriseId:e.brandId};d(t).then((function(t){e.loadingService=!1,e.serviceNumData=t.result||[]})).catch((function(t){e.loadingService=!1}))}},watch:{brandId:function(e){var t=this;e&&(t.getMemberCrad(),t.getServiceNum())}}},u=v,b=(a("1c48"),a("2877")),p=Object(b["a"])(u,n,r,!1,null,"6a55f87f",null);t["default"]=p.exports},"93c9":function(e,t,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f32e3dc","chunk-33b0918a"],{"0082":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("ul",{staticClass:"role-menu"},[Array.isArray(e.roleList)&&0!=e.roleList.length?e._e():n("li",{staticClass:"no-data"},[e._v("暂无数据")]),e._l(e.roleList,(function(t){return n("li",{key:t,class:["role-item",{active:e.activeRoleId==t.roleId}],on:{click:function(n){return e.onChangeRole(t)}}},[n("span",{staticClass:"role-name"},[e._v(e._s(t.roleName))]),n("el-dropdown",{attrs:{placement:"bottom-start"}},[n("i",{staticClass:"iconfont icongengduo edit-icon"}),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(n){return e.onEditRole(t)}}},[e._v("编辑")]),e.showDelRoleButton?n("el-dropdown-item",{nativeOn:{click:function(n){return e.onDelRole(t)}}},[e._v("删除")]):e._e()],1)],1)],1)}))],2),n("el-dialog",{attrs:{visible:e.delRole.show,title:"删除角色",width:"600px"},on:{"update:visible":function(t){return e.$set(e.delRole,"show",t)},closed:e.onDelRoleClose}},[n("div",{staticClass:"del-role"},[n("i",{staticClass:"el-icon-warning"}),n("div",{staticClass:"del-role-content"},[n("p",{staticClass:"del-role-tip"},[e._v("确认删除“"+e._s(e.delRole.roleName)+"”角色吗?")]),n("p",{staticClass:"del-role-tip"},[e._v("请在输入框中输入该角色名称,以避免误操作。")]),n("el-input",{staticStyle:{"margin-top":"10px",width:"440px"},model:{value:e.delRole.roleNameInput,callback:function(t){e.$set(e.delRole,"roleNameInput","string"===typeof t?t.trim():t)},expression:"delRole.roleNameInput"}})],1)]),n("template",{slot:"footer"},[n("el-button",{on:{click:function(t){e.delRole.show=!1}}},[e._v("取消")]),n("el-button",{attrs:{type:"primary",loading:e.delRole.loading},on:{click:e.onDelRoleSure}},[e._v("确定")])],1)],2)],1)},o=[],r=(n("c5f6"),n("f286")),l=r["a"].delRole,a={name:"RoleList",props:{roleList:{type:Array,default:function(){return[]}},activeRoleId:[String,Number],showDelRoleButton:{type:Boolean,default:!1}},data:function(){return{delRole:{show:!1,loading:!1,roleId:"",roleName:"",roleNameInput:""}}},methods:{onChangeRole:function(e){this.$emit("change-role",e)},onEditRole:function(e){this.$emit("edit-role",e)},onDelRole:function(e){var t=e.roleId,n=e.roleName;Object.assign(this.delRole,{show:!0,roleId:t,roleName:n})},onDelRoleClose:function(){Object.assign(this.delRole,{roleId:"",roleName:"",roleNameInput:""})},onDelRoleSure:function(){var e=this,t=this.delRole,n=t.roleId,i=t.roleName,o=t.roleNameInput;return 0==o.length?this.$message.warning("请输入角色名称!"):i!=o?this.$message.warning("请输入正确的角色名称!"):(this.delRole.loading=!0,void l({roleId:n}).then((function(t){"0000"==t.code&&(e.$message.success("删除成功!"),e.$emit("del-role-succ",n==e.activeRoleId),e.delRole.show=!1)})).finally((function(){return e.delRole.loading=!1})))}}},s=a,c=(n("575f"),n("2877")),d=Object(c["a"])(s,i,o,!1,null,"7c337432",null);t["default"]=d.exports},2058:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"store-admin-list"},[n("div",{staticClass:"store-role-list"},[0==e.roleList.length?n("p",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.roleList,(function(t){return n("div",{key:t.enterpriseId},[n("h3",{staticClass:"role-title"},[n("i",{staticClass:"iconfont iconshanghu role-title-icon"}),n("p",{staticClass:"role-title-text"},[e._v(e._s(t.enterpriseName))])]),n("role-list",{attrs:{"role-list":t.roleList,"active-role-id":e.activeRoleId},on:{"edit-role":e.onEditRole,"change-role":e.onChangeRole}})],1)}))],2),n("div",{staticClass:"admin-list"},[n("h3",{staticClass:"admin-list-title"},[e._v("门店成员列表")]),n("el-input",{staticStyle:{width:"238px"},attrs:{placeholder:"请输入姓名/账号/手机号码","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search,callback:function(t){e.search="string"===typeof t?t.trim():t},expression:"search"}}),n("el-alert",{staticStyle:{float:"right",width:"720px"},attrs:{type:"info",title:"拥有门店的权限,能进行一些门店日常业务,如打标签,完成话务等。必须是导购账号 ,不可添加删除门店成员。",closable:!1,"show-icon":""}}),n("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.adminList}},[n("el-table-column",{attrs:{label:"姓名",prop:"staffName",formatter:function(e,t,n){return n||"--"}}}),n("el-table-column",{attrs:{label:"账号",prop:"wxUserId",formatter:function(e,t,n){return n||"--"}}}),n("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber",formatter:function(e,t,n){return n||"--"}}})],1),e.pager.total>0?n("dm-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"current-change":e.onCurrentChange,"size-change":e.onSizeChange}}):e._e()],1)])},o=[],r=(n("386d"),n("5df3"),n("ac6a"),n("0082")),l=n("f286"),a=l["a"].enterpriseList,s=l["a"].roleList,c=l["a"].roleAdminList,d={name:"StoreAdminList",components:{RoleList:r["default"]},data:function(){return{roleList:[],activeRoleId:"",enterpriseId:"",adminList:[],search:"",pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1}}},created:function(){this.$emit("showTab","/store-admin-list"),this.getRoleList()},methods:{getRoleList:function(){var e=this,t=JSON.parse(localStorage.getItem("haoBanUser")||"{}"),n=t.wxEnterpriseId,i=[];n&&a({wxEnterpriseId:n}).then((function(t){var n=t.result||[];e.roleList=n.map((function(e){var t=e.enterpriseId,n=e.enterpriseName;return{enterpriseId:t,enterpriseName:n,roleList:[]}})),0!=e.roleList.length&&(e.roleList.forEach((function(e){i.push(s({enterpriseId:e.enterpriseId,roleType:1}).then((function(t){e.roleList=t.result||[]})))})),Promise.all(i).then((function(){e.activeRoleId||e.roleList.some((function(t){return t.roleList.length>0&&(e.activeRoleId=t.roleList[0].roleId,e.enterpriseId=t.roleList[0].enterpriseId),t.roleList.length>0})),e.activeRoleId&&e.getAdminList()})))}))},getAdminList:function(){var e=this,t={roleId:this.activeRoleId,enterpriseId:this.enterpriseId,search:this.search,pageNum:this.pager.currentPage,pageSize:this.pager.pageSize};c(t).then((function(t){var n=t.result||{},i=n.totalCount,o=n.result;e.pager.total=i||0,e.adminList=o||[]}))},onChangeRole:function(e){var t=e.roleId,n=e.enterpriseId;this.activeRoleId=t,this.enterpriseId=n,this.search="",this.pager.currentPage=1,this.getAdminList()},onEditRole:function(e){this.$router.push("/edit-store-role?roleId=".concat(e.roleId))},onSearch:function(){this.pager.currentPage=1,this.getAdminList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},onCurrentChange:function(e){this.pager.currentPage=e,this.getAdminList()}}},u=d,p=(n("b14d"),n("2877")),h=Object(p["a"])(u,i,o,!1,null,"3f411422",null);t["default"]=h.exports},3018:function(e,t,n){},"386d":function(e,t,n){"use strict";var i=n("cb7c"),o=n("83a1"),r=n("5f1b");n("214f")("search",1,(function(e,t,n,l){return[function(n){var i=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i):new RegExp(n)[t](String(i))},function(e){var t=l(n,e,this);if(t.done)return t.value;var a=i(e),s=String(this),c=a.lastIndex;o(c,0)||(a.lastIndex=0);var d=r(a,s);return o(a.lastIndex,c)||(a.lastIndex=c),null===d?-1:d.index}]}))},"44e1":function(e,t,n){},"575f":function(e,t,n){"use strict";var i=n("44e1"),o=n.n(i);o.a},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("ac6a"),n("456d");var i=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){return Object(i["a"])(o,e)}})),e}},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},b14d:function(e,t,n){"use strict";var i=n("3018"),o=n.n(i);o.a},f286:function(e,t,n){"use strict";var i=n("71f6"),o={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list"};t["a"]=Object(i["a"])(o,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7316216f"],{"150f":function(t,e,n){},c7d7:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"common-app-right"},[n("div",{staticClass:"crowd-scene-tip"},[n("common-alert-tip",{attrs:{width:"100%","tip-content":t.tipContent}})],1),n("div",{staticClass:"crowd-scene-search flex flex-space-between"},[n("div",[n("el-input",{staticClass:"w-264",staticStyle:{width:"217px"},attrs:{placeholder:"请输入人群名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return function(e){return t.toInput(e)}(e)}},model:{value:t.searchVal,callback:function(e){t.searchVal=e},expression:"searchVal"}}),n("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"所有分类"},on:{change:t.changeCondition},model:{value:t.classifyName,callback:function(e){t.classifyName=e},expression:"classifyName"}},[n("el-option",{attrs:{label:"所有分类",value:""}}),t._l(t.classifyList,(function(t){return n("el-option",{key:t,attrs:{label:t,value:t}})}))],2)],1),n("div",[n("el-button",{attrs:{type:"primary"},on:{click:t.toSync}},[t._v("同步场景人群")])],1)]),n("div",{staticClass:"crowd-scene-table flex"},[n("div",{staticClass:"crowd-scene-table_left"},[n("el-table",{ref:"memberCrowdData",staticStyle:{width:"100%"},attrs:{data:t.memberCrowdData}},[n("el-table-column",{attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell"}},[[n("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c0c4cc",staticStyle:{cursor:"move"}})]],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.name||"--"))]}}])}),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.classifyName||"--"))]}}])}),n("el-table-column",{attrs:{prop:"",label:"到期时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.effectiveDate))+" "+t._s(e.row.effectiveDate?e.row.effectiveDate:"--"))]),n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.effectiveDate))+" "+t._s(e.row.effectiveDate?e.row.effectiveDate:"--"))])]}}])}),n("el-table-column",{scopedSlots:t._u([{key:"default",fn:function(e){return[n("i",{class:["icon-color","el-icon-upload2",0==e.$index?"disable":""],on:{click:function(n){return t.toTop(e.$index,e.row,t.memberCrowdData)}}}),n("i",{class:["icon-color","el-icon-back","icon-to-pre",0==e.$index?"disable":""],on:{click:function(n){return t.toPre(e.$index,e.row,t.memberCrowdData)}}}),n("i",{class:["icon-color","el-icon-back","icon-to-next",e.$index==t.memberCrowdData.length-1?"disable":""],on:{click:function(n){return t.toNext(e.$index,e.row,t.memberCrowdData)}}}),n("i",{class:["icon-color","el-icon-download",e.$index==t.memberCrowdData.length-1?"disable":""],on:{click:function(n){return t.toBottom(e.$index,e.row,t.memberCrowdData)}}})]}}])},[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:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.toEdit(e.$index,e.row)}}},[t._v("编辑可见范围")])]}}])})],1)],1)])])},a=[],r=n("3081"),c=n("d11a"),i=n("d157"),s=n("5b4e6"),l=n("aa47"),u=c["a"].getGroupData,d=c["a"].getClassifyData,f=c["a"].postSortGroup,p={name:"CrowdScenePage",components:{commonAlertTip:r["a"]},props:{brandId:{type:String,default:""}},data:function(){return{tipContent:"GIC设置场景人群后,好办顾客人群列表最多同步20个人群,次日刷新,每日刷新一次;<br/> GIC中设置的场景人群到期后,好办移动端将不再展示该条人群;",searchVal:"",classifyName:"",classifyList:[],memberCrowdData:[],showSync:!1,showSelectStore:!1}},mounted:function(){var t=this;t.brandId&&t.getGroupList(),t.rowDrop("memberCrowdData")},methods:{toSync:function(){var t=this;t.showSync=!0},toEdit:function(t,e){var n=this;n.showSelectStore=!0},toInput:Object(i["a"])((function(){var t=this;t.currentPage=1,t.getGroupList()}),500),clearInput:function(){var t=this;t.currentPage=1,t.getGroupList()},changeCondition:function(){var t=this;t.currentPage=1,t.getGroupList()},rowDrop:function(t){var e=this.$refs[t].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],n=this;l["a"].create(e,{onEnd:function(e){var o=e.newIndex,a=e.oldIndex;if(o==a)return!1;var r=JSON.parse(JSON.stringify(n[t])),c=r.splice(a,1)[0];r.splice(o,0,c),n.setSort(r)}})},setSort:function(){var t=this,e={enterpriseId:t.brandId};f(e).then((function(e){t.getGroupList(),"0000"==e.code?s["a"].showmsg("操作成功","success"):s["a"].showmsg(e.message||"接口异常","warning")})).catch((function(t){}))},getGroupClassify:function(){var t=this,e={enterpriseId:t.brandId};d(e).then((function(e){t.classifyList=e.result||[]})).catch((function(t){}))},getGroupList:function(){var t=this,e={enterpriseId:t.brandId};u(e).then((function(e){t.memberCrowdData=e.result||[]})).catch((function(t){}))}},watch:{brandId:function(t){var e=this;t&&(e.getMemberCrad(),e.getServiceNum())}}},m=p,w=(n("ed71"),n("2877")),b=Object(w["a"])(m,o,a,!1,null,"497467c6",null);e["default"]=b.exports},d157:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r}));n("c5f6"),n("a481"),n("28a5"),n("6b54");function o(t,e){var n,o=e||200;return function(){var e=this,a=arguments;n&&clearTimeout(n),n=setTimeout((function(){n=null,t.apply(e,a)}),o)}}function a(t,e){var n,o,a=e||200;return function(){var e=this,r=arguments,c=+new Date;n&&c-n<a?(clearTimeout(o),o=setTimeout((function(){n=c,t.apply(e,r)}),a)):(n=c,t.apply(e,r))}}function r(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},ed71:function(t,e,n){"use strict";var o=n("150f"),a=n.n(o);a.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b0069c2"],{"30a6":function(t,e,a){"use strict";var o=a("beb0"),s=a.n(o);s.a},"3cf8":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-app-right"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.allStoreOrder,callback:function(e){t.$set(t.customerShowData,"allStoreOrder",e)},expression:"customerShowData.allStoreOrder"}},[t._v("展示所有门店的订单")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看顾客在本店以外的消费订单")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.shopOrder,callback:function(e){t.$set(t.customerShowData,"shopOrder",e)},expression:"customerShowData.shopOrder"}},[t._v("展示微商城的订单")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看顾客在微商城的消费订单")])],1),a("div",{staticClass:"m-b-20"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选后将会在“顾客详情页”进行显示",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20 common-bottom-border"},[t._v("导购联系顾客方式")])]),a("el-checkbox",{model:{value:t.myCustomData.allowGuideMobile,callback:function(e){t.$set(t.myCustomData,"allowGuideMobile",e)},expression:"myCustomData.allowGuideMobile"}},[t._v("电话")]),a("el-checkbox",{model:{value:t.myCustomData.allowGuideMessage,callback:function(e){t.$set(t.myCustomData,"allowGuideMessage",e)},expression:"myCustomData.allowGuideMessage"}},[t._v("短信")]),a("el-checkbox",{model:{value:t.myCustomData.allowGuideOnlineChat,callback:function(e){t.$set(t.myCustomData,"allowGuideOnlineChat",e)},expression:"myCustomData.allowGuideOnlineChat"}},[t._v("添加会员/发消息")])],1),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return t.submit()}}},[t._v("保存")])],1)])},s=[],u=a("d11a"),r=a("d157"),n=a("5b4e6"),i=u["a"].getCustomerSet,l=u["a"].saveCustomerSet,c={name:"CustomerDataSet",components:{},props:{brandId:{type:String,default:""}},data:function(){return{customerShowData:{allStoreOrder:!1,shopOrder:!1,allowGuideMobile:!1,allowGuideMessage:!1,allowGuideOnlineChat:!1},loading:!1}},mounted:function(){var t=this;t.brandId&&t.getCustomerData()},methods:{submit:Object(r["a"])((function(){var t=this;t.loading=!0,t.setData()}),500),setData:function(){var t=this,e={enterpriseId:t.brandId,allStoreOrder:t.customerShowData.allStoreOrder?1:"0",shopOrder:t.customerShowData.shopOrder?1:"0",allowGuideMobile:t.customerShowData.allowGuideMobile?1:"0",allowGuideMessage:t.customerShowData.allowGuideMessage?1:"0",allowGuideOnlineChat:t.customerShowData.allowGuideOnlineChat?1:"0"};l(e).then((function(e){t.loading=!1,t.getCustomerData(),"0000"==e.code?n["a"].showmsg("操作成功","success"):n["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){t.loading=!1}))},getCustomerData:function(){var t=this,e={enterpriseId:t.brandId};i(e).then((function(e){t.customerShowData=e.result||[]})).catch((function(t){}))}},watch:{brandId:function(t){var e=this;t&&e.getCustomerData()}}},m=c,d=(a("30a6"),a("2877")),p=Object(d["a"])(m,o,s,!1,null,"516479cd",null);e["default"]=p.exports},"5b4e6":function(t,e,a){"use strict";var o=a("5c96");e["a"]={showmsg:function(t,e){Object(o["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));a("ac6a"),a("456d");var o=a("b775");function s(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var s=t[a];"string"===typeof s&&(s={url:s}),s.url="".concat(e).concat(s.url),t[a]=function(t){return Object(o["a"])(s,t)}})),t}},beb0:function(t,e,a){},d11a:function(t,e,a){"use strict";var o=a("71f6"),s={getGroupList:"/department-list",getStoreList:"/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/app-get-member-info-list",method:"post",useFormData:!0},getClerkList:"/clerk-list",getMemberCount:"",saveAssign:{url:"/",method:"post",useFormData:!0},getMemberData:"",getServiceData:"",saveSortMember:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"",getClassifyData:"",postSortGroup:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"",saveSync:{url:"/",method:"post",useFormData:!0,useIntercept:!1},saveVisiable:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"",addClassify:"",delClassify:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"",addClerkTag:"",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1}};s=Object(o["a"])(s,"/hb-manage-web"),e["a"]=s},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return o})),a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return u}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function o(t,e){var a,o=e||200;return function(){var e=this,s=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,s)}),o)}}function s(t,e){var a,o,s=e||200;return function(){var e=this,u=arguments,r=+new Date;a&&r-a<s?(clearTimeout(o),o=setTimeout((function(){a=r,t.apply(e,u)}),s)):(a=r,t.apply(e,u))}}function u(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7d62a3f8"],{"28a5":function(e,t,n){"use strict";var a=n("aae3"),o=n("cb7c"),r=n("ebd6"),i=n("0390"),s=n("9def"),c=n("5f1b"),u=n("520a"),l=n("79e5"),f=Math.min,h=[].push,d="split",m="length",p="lastIndex",g=4294967295,v=!l((function(){RegExp(g,"y")}));n("214f")("split",2,(function(e,t,n,l){var w;return w="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[m]||2!="ab"[d](/(?:ab)*/)[m]||4!="."[d](/(.?)(.?)/)[m]||"."[d](/()()/)[m]>1||""[d](/.?/)[m]?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!a(e))return n.call(o,e,t);var r,i,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,d=void 0===t?g:t>>>0,v=new RegExp(e.source,l+"g");while(r=u.call(v,o)){if(i=v[p],i>f&&(c.push(o.slice(f,r.index)),r[m]>1&&r.index<o[m]&&h.apply(c,r.slice(1)),s=r[0][m],f=i,c[m]>=d))break;v[p]===r.index&&v[p]++}return f===o[m]?!s&&v.test("")||c.push(""):c.push(o.slice(f)),c[m]>d?c.slice(0,d):c}:"0"[d](void 0,0)[m]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,a){var o=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,o,a):w.call(String(o),n,a)},function(e,t){var a=l(w,e,this,t,w!==n);if(a.done)return a.value;var u=o(e),h=String(this),d=r(u,RegExp),m=u.unicode,p=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(v?"y":"g"),b=new d(v?u:"^(?:"+u.source+")",p),C=void 0===t?g:t>>>0;if(0===C)return[];if(0===h.length)return null===c(b,h)?[h]:[];var x=0,N=0,I=[];while(N<h.length){b.lastIndex=v?N:0;var O,S=c(b,v?h:h.slice(N));if(null===S||(O=f(s(b.lastIndex+(v?0:N)),h.length))===x)N=i(h,N,m);else{if(I.push(h.slice(x,N)),I.length===C)return I;for(var y=1;y<=S.length-1;y++)if(I.push(S[y]),I.length===C)return I;N=x=O}}return I.push(h.slice(x)),I}]}))},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},"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){return Object(a["a"])(o,e)}})),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},"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},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:"AppIndexPage",components:{vueOfficeHeader:r["a"]},data:function(){return{projectName:"haoban-manage-web",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}},computed:{}},s=i,c=(n("ed605"),n("2877")),u=Object(c["a"])(s,a,o,!1,null,"7b2e96ec",null);t["default"]=u.exports},cc0d:function(e,t,n){"use strict";var a=n("ed94"),o=n.n(a);o.a},ed605:function(e,t,n){"use strict";var a=n("fc51"),o=n.n(a);o.a},ed94:function(e,t,n){},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)?"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:""}}):a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),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("28a5"),n("7ded")),s=n("5937"),c=s["a"].getRoleMenu,u=i["a"].getUserInfo,l=i["a"].loginOut,f={name:"VueOfficeHeader",components:{},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,e.routePathName=window.location.hash.split("/")[1],-1!=e.routePathName.indexOf("?")&&(e.routePathName=e.routePathName.split("?")[0]),-1!=e.routePathName.indexOf("/")&&(e.routePathName=e.routePathName.split("/")[0]),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])})),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(){}))},toRouter:function(e,t,n){var a=this,o={path:"/"+e,name:t};a.$emit("toRouterView",o)},toLogin:function(){var e=this;u({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),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={};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){}))}}},h=f,d=(n("cc0d"),n("2877")),m=Object(d["a"])(h,a,o,!1,null,"2a4f88b9",null);t["a"]=m.exports},fc51:function(e,t,n){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-96ef390e"],{"28a5":function(t,e,a){"use strict";var r=a("aae3"),o=a("cb7c"),s=a("ebd6"),n=a("0390"),u=a("9def"),i=a("5f1b"),c=a("520a"),l=a("79e5"),m=Math.min,g=[].push,d="split",p="length",h="lastIndex",f=4294967295,v=!l((function(){RegExp(f,"y")}));a("214f")("split",2,(function(t,e,a,l){var b;return b="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[p]||2!="ab"[d](/(?:ab)*/)[p]||4!="."[d](/(.?)(.?)/)[p]||"."[d](/()()/)[p]>1||""[d](/.?/)[p]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return a.call(o,t,e);var s,n,u,i=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),m=0,d=void 0===e?f:e>>>0,v=new RegExp(t.source,l+"g");while(s=c.call(v,o)){if(n=v[h],n>m&&(i.push(o.slice(m,s.index)),s[p]>1&&s.index<o[p]&&g.apply(i,s.slice(1)),u=s[0][p],m=n,i[p]>=d))break;v[h]===s.index&&v[h]++}return m===o[p]?!u&&v.test("")||i.push(""):i.push(o.slice(m)),i[p]>d?i.slice(0,d):i}:"0"[d](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,r){var o=t(this),s=void 0==a?void 0:a[e];return void 0!==s?s.call(a,o,r):b.call(String(o),a,r)},function(t,e){var r=l(b,t,this,e,b!==a);if(r.done)return r.value;var c=o(t),g=String(this),d=s(c,RegExp),p=c.unicode,h=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),S=new d(v?c:"^(?:"+c.source+")",h),F=void 0===e?f:e>>>0;if(0===F)return[];if(0===g.length)return null===i(S,g)?[g]:[];var D=0,w=0,C=[];while(w<g.length){S.lastIndex=v?w:0;var y,k=i(S,v?g:g.slice(w));if(null===k||(y=m(u(S.lastIndex+(v?0:w)),g.length))===D)w=n(g,w,p);else{if(C.push(g.slice(D,w)),C.length===F)return C;for(var I=1;I<=k.length-1;I++)if(C.push(k[I]),C.length===F)return C;w=D=y}}return C.push(g.slice(D)),C}]}))},5898:function(t,e,a){"use strict";var r=a("d363"),o=a.n(r);o.a},"5b4e":function(t,e,a){"use strict";var r=a("5c96");e["a"]={showmsg:function(t,e){Object(r["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));a("ac6a"),a("456d");var r=a("b775");function o(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var o=t[a];"string"===typeof o&&(o={url:o}),o.url="".concat(e).concat(o.url),t[a]=function(t){return Object(r["a"])(o,t)}})),t}},d11a:function(t,e,a){"use strict";var r=a("71f6"),o={getGroupList:"/department-list",getStoreList:"/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/app-get-member-info-list",method:"post",useFormData:!0},getClerkList:"/clerk-list",getMemberCount:"",saveAssign:{url:"/",method:"post",useFormData:!0},getMemberData:"",getServiceData:"",saveSortMember:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"/member-group-list",getClassifyData:"/member-group-category-list",postSortGroup:{url:"/member-group-sort",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"/member-group-hb-list",saveSync:{url:"/member-group-save",method:"post",useFormData:!0,useIntercept:!1},getVisiable:"/member-group-range-view",saveVisiable:{url:"/member-group-range-save",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"/tagCategoryList",addClassify:"/tag-category-add",delClassify:{url:"/tag-category-del",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"/member-tag-list",addClerkTag:"/member-tag-add",editClerkTag:"/member-tag-edit",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1},sortClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getTagVisiable:"/member-tag-range-view",saveTagVisiable:{url:"/member-tag-range-save",method:"post",useFormData:!0,useIntercept:!1}};o=Object(r["a"])(o,"/hb-manage-web"),e["a"]=o},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return r})),a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function r(t,e){var a,r=e||200;return function(){var e=this,o=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,o)}),r)}}function o(t,e){var a,r,o=e||200;return function(){var e=this,s=arguments,n=+new Date;a&&n-a<o?(clearTimeout(r),r=setTimeout((function(){a=n,t.apply(e,s)}),o)):(a=n,t.apply(e,s))}}function s(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},d363:function(t,e,a){},f766:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-app-right"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.mainStoreFlag,callback:function(e){t.$set(t.customerShowData,"mainStoreFlag",e)},expression:"customerShowData.mainStoreFlag"}},[t._v("展示服务门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看本门店作为服务门店名下顾客")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.minorStoreFlag,callback:function(e){t.$set(t.customerShowData,"minorStoreFlag",e)},expression:"customerShowData.minorStoreFlag"}},[t._v("展示协管门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看本门店作为协管门店名下顾客")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.openCardStoreFlag,callback:function(e){t.$set(t.customerShowData,"openCardStoreFlag",e)},expression:"customerShowData.openCardStoreFlag"}},[t._v("展示开卡门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看本门店作为开卡门店名下顾客")])],1),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return t.submit()}}},[t._v("保存")])],1)])},o=[],s=a("d11a"),n=a("d157"),u=a("5b4e"),i=s["a"].getShowSet,c=s["a"].saveShowSet,l={name:"CustomerShowSet",components:{},props:{brandId:{type:String,default:""}},data:function(){return{customerShowData:{mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1},loading:!1}},mounted:function(){var t=this;t.brandId&&t.getShowData()},methods:{submit:Object(n["a"])((function(){var t=this;t.loading=!0,t.setData()}),500),setData:function(){var t=this,e={enterpriseId:t.brandId,mainStoreFlag:t.customerShowData.mainStoreFlag?1:"0",minorStoreFlag:t.customerShowData.minorStoreFlag?1:"0",openCardStoreFlag:t.customerShowData.openCardStoreFlag?1:"0"};c(e).then((function(e){t.loading=!1,t.getShowData(),"0000"==e.code?u["a"].showmsg("操作成功","success"):u["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){t.loading=!1}))},getShowData:function(){var t=this,e={enterpriseId:t.brandId};i(e).then((function(e){t.customerShowData=e.result||[]})).catch((function(t){}))}},watch:{brandId:function(t){var e=this;t&&e.getShowData()}}},m=l,g=(a("5898"),a("2877")),d=Object(g["a"])(m,r,o,!1,null,"fdef3edc",null);e["default"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c2d4f890"],{3081:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"common-alert-tip"},[n("div",{style:{"min-width":t.width}},[n("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:t.width},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-13"},[t._v("\n "+t._s(t.tipContent)+"\n ")])])])])])},r=[],s={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""}},data:function(){return{}}},o=s,l=n("2877"),i=Object(l["a"])(o,a,r,!1,null,"3070d237",null);e["a"]=i.exports},"6e5b":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){return Object(a["a"])(r,t)}})),t}},"7cb9":function(t,e,n){"use strict";var a=n("6e5b"),r=n.n(a);r.a},"9b74":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"daily-set-wrap "},[n("div",{staticClass:"daily-set-content border-box"},[n("common-alert-tip",{attrs:{"tip-content":t.tipContent}}),n("div",{staticClass:"admin-table-body m-t-20"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{label:"姓名"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.staffName||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{label:"账号"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.wxUserId||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{label:"手机号"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.phoneNumber||"--")+"\n ")]}}])})],1)],1)],1)])},r=[],s=n("a30a"),o=n("3081"),l=s["a"].getAdmin,i={name:"SuperAdminPage",components:{commonAlertTip:o["a"]},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",tipContent:"超级管理员不可新增,默认为企业微信所添加的好办应用管理员,拥有好办所有管理权限。",loading:!1,tableData:[]}},mounted:function(){var t=this;t.$emit("showTab","/superAdmin"),document.documentElement.style.backgroundColor="#f0f2f5",t.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{getData:function(){var t=this;t.loading=!0;var e={wxEnterpriseId:t.wxEnterpriseId};l(e).then((function(e){t.loading=!1,t.tableData=e.result||[]})).catch((function(e){t.loading=!1}))}}},c=i,u=(n("7cb9"),n("2877")),d=Object(u["a"])(c,a,r,!1,null,"207b6747",null);e["default"]=d.exports},a30a:function(t,e,n){"use strict";var a=n("71f6"),r={wxEnterpriseRefresh:"/setting/wx-enterprise-info-flush",wxEnterpriseDetail:"/setting/wx-enterprise-info",getSelfApp:"/setting/secret-list",addSelfApp:{url:"/setting/set-secret",method:"post",useFormData:!0,useIntercept:!1},editSelfApp:{url:"/setting/set-secret",method:"post",useFormData:!0,useIntercept:!1},delSelfApp:{url:"/setting/del-secret",method:"post",useFormData:!0,useIntercept:!1},refreshSelfApp:{url:"/setting/reflush-secret",method:"post",useFormData:!0},getAdmin:"/setting/super-admin-list"};r=Object(a["a"])(r,"/hb-manage-web"),e["a"]=r}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c2d4f890"],{3081:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"common-alert-tip"},[n("div",{style:{"min-width":t.width}},[n("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:t.width},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-13"},[t._v("\n "+t._s(t.tipContent)+"\n ")]),t.tipTwoContent?n("div",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipTwoContent)+"\n ")]):t._e()])])])])},r=[],o={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""},tipTwoContent:{type:String,default:""}},data:function(){return{}}},s=o,l=n("2877"),i=Object(l["a"])(s,a,r,!1,null,"537f2e35",null);e["a"]=i.exports},"6e5b":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){return Object(a["a"])(r,t)}})),t}},"7cb9":function(t,e,n){"use strict";var a=n("6e5b"),r=n.n(a);r.a},"9b74":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"daily-set-wrap "},[n("div",{staticClass:"daily-set-content border-box"},[n("common-alert-tip",{attrs:{"tip-content":t.tipContent}}),n("div",{staticClass:"admin-table-body m-t-20"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{label:"姓名"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.staffName||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{label:"账号"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.wxUserId||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{label:"手机号"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.phoneNumber||"--")+"\n ")]}}])})],1)],1)],1)])},r=[],o=n("a30a"),s=n("3081"),l=o["a"].getAdmin,i={name:"SuperAdminPage",components:{commonAlertTip:s["a"]},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",tipContent:"超级管理员不可新增,默认为企业微信所添加的好办应用管理员,拥有好办所有管理权限。",loading:!1,tableData:[]}},mounted:function(){var t=this;t.$emit("showTab","/superAdmin"),document.documentElement.style.backgroundColor="#f0f2f5",t.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{getData:function(){var t=this;t.loading=!0;var e={wxEnterpriseId:t.wxEnterpriseId};l(e).then((function(e){t.loading=!1,t.tableData=e.result||[]})).catch((function(e){t.loading=!1}))}}},c=i,u=(n("7cb9"),n("2877")),d=Object(u["a"])(c,a,r,!1,null,"207b6747",null);e["default"]=d.exports},a30a:function(t,e,n){"use strict";var a=n("71f6"),r={wxEnterpriseRefresh:"/setting/wx-enterprise-info-flush",wxEnterpriseDetail:"/setting/wx-enterprise-info",getSelfApp:"/setting/secret-list",addSelfApp:{url:"/setting/set-secret",method:"post",useFormData:!0,useIntercept:!1},editSelfApp:{url:"/setting/set-secret",method:"post",useFormData:!0,useIntercept:!1},delSelfApp:{url:"/setting/del-secret",method:"post",useFormData:!0,useIntercept:!1},refreshSelfApp:{url:"/setting/reflush-secret",method:"post",useFormData:!0},getAdmin:"/setting/super-admin-list"};r=Object(a["a"])(r,"/hb-manage-web"),e["a"]=r}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d7315c84"],{"0973":function(t,s,i){t.exports=i.p+"img/error_404.bf587478.svg"},"1c41":function(t,s,i){t.exports=i.p+"img/error_500.ed0cba44.svg"},"2de8":function(t,s,i){"use strict";var a=i("cd38"),c=i.n(a);c.a},"4cf1":function(t,s,i){"use strict";i.r(s);var a=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100vh"}},[i("div",{staticClass:"wscn-http-404"},[i("div",{staticClass:"pic-404"},[i("img",{staticClass:"pic-404__parent",attrs:{src:t.imgSrc,alt:"404"}})]),i("div",{staticClass:"bullshit"},[i("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),i("a",{staticClass:"bullshit__return-home",attrs:{href:"#/contactsList"}},[t._v("返回首页")])])])])},c=[],e=(i("28a5"),i("d1ea")),r=i.n(e),n=i("0973"),o=i.n(n),u=i("1c41"),l=i.n(u),d={name:"ErrPage",data:function(){return{imgSrc:"",message:"",srcList:{403:r.a,404:o.a,500:l.a},msgList:{403:"抱歉,你无权访问该页面",404:"抱歉,你访问的页面不存在",500:"抱歉,服务器出错了"}}},mounted:function(){var t=this,s=t.$route.path.split("/")[1];t.imgSrc=t.srcList[s],t.message=t.msgList[s]}},p=d,g=(i("2de8"),i("2877")),f=Object(g["a"])(p,a,c,!1,null,"0d9d0575",null);s["default"]=f.exports},cd38:function(t,s,i){},d1ea:function(t,s,i){t.exports=i.p+"img/error_403.829774f4.svg"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f157b4c8"],{"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},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},"402e":function(t,e,a){"use strict";var n=a("f363"),r=a.n(n);r.a},"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"},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.brandName||"--"))])])])])]}}])}),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("402e"),a("2877")),p=Object(u["a"])(c,n,r,!1,null,"e06f66ac",null);e["default"]=p.exports},"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){return Object(n["a"])(r,t)}})),t}},"76d4":function(t,e,a){},f363:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f4b91c90","chunk-33b0918a"],{"0082":function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("ul",{staticClass:"role-menu"},[Array.isArray(e.roleList)&&0!=e.roleList.length?e._e():n("li",{staticClass:"no-data"},[e._v("暂无数据")]),e._l(e.roleList,(function(t){return n("li",{key:t,class:["role-item",{active:e.activeRoleId==t.roleId}],on:{click:function(n){return e.onChangeRole(t)}}},[n("span",{staticClass:"role-name"},[e._v(e._s(t.roleName))]),n("el-dropdown",{attrs:{placement:"bottom-start"}},[n("i",{staticClass:"iconfont icongengduo edit-icon"}),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(n){return e.onEditRole(t)}}},[e._v("编辑")]),e.showDelRoleButton?n("el-dropdown-item",{nativeOn:{click:function(n){return e.onDelRole(t)}}},[e._v("删除")]):e._e()],1)],1)],1)}))],2),n("el-dialog",{attrs:{visible:e.delRole.show,title:"删除角色",width:"600px"},on:{"update:visible":function(t){return e.$set(e.delRole,"show",t)},closed:e.onDelRoleClose}},[n("div",{staticClass:"del-role"},[n("i",{staticClass:"el-icon-warning"}),n("div",{staticClass:"del-role-content"},[n("p",{staticClass:"del-role-tip"},[e._v("确认删除“"+e._s(e.delRole.roleName)+"”角色吗?")]),n("p",{staticClass:"del-role-tip"},[e._v("请在输入框中输入该角色名称,以避免误操作。")]),n("el-input",{staticStyle:{"margin-top":"10px",width:"440px"},model:{value:e.delRole.roleNameInput,callback:function(t){e.$set(e.delRole,"roleNameInput","string"===typeof t?t.trim():t)},expression:"delRole.roleNameInput"}})],1)]),n("template",{slot:"footer"},[n("el-button",{on:{click:function(t){e.delRole.show=!1}}},[e._v("取消")]),n("el-button",{attrs:{type:"primary",loading:e.delRole.loading},on:{click:e.onDelRoleSure}},[e._v("确定")])],1)],2)],1)},i=[],l=(n("c5f6"),n("f286")),a=l["a"].delRole,r={name:"RoleList",props:{roleList:{type:Array,default:function(){return[]}},activeRoleId:[String,Number],showDelRoleButton:{type:Boolean,default:!1}},data:function(){return{delRole:{show:!1,loading:!1,roleId:"",roleName:"",roleNameInput:""}}},methods:{onChangeRole:function(e){this.$emit("change-role",e)},onEditRole:function(e){this.$emit("edit-role",e)},onDelRole:function(e){var t=e.roleId,n=e.roleName;Object.assign(this.delRole,{show:!0,roleId:t,roleName:n})},onDelRoleClose:function(){Object.assign(this.delRole,{roleId:"",roleName:"",roleNameInput:""})},onDelRoleSure:function(){var e=this,t=this.delRole,n=t.roleId,o=t.roleName,i=t.roleNameInput;return 0==i.length?this.$message.warning("请输入角色名称!"):o!=i?this.$message.warning("请输入正确的角色名称!"):(this.delRole.loading=!0,void a({roleId:n}).then((function(t){"0000"==t.code&&(e.$message.success("删除成功!"),e.$emit("del-role-succ",n==e.activeRoleId),e.delRole.show=!1)})).finally((function(){return e.delRole.loading=!1})))}}},s=r,c=(n("575f"),n("2877")),u=Object(c["a"])(s,o,i,!1,null,"7c337432",null);t["default"]=u.exports},"386d":function(e,t,n){"use strict";var o=n("cb7c"),i=n("83a1"),l=n("5f1b");n("214f")("search",1,(function(e,t,n,a){return[function(n){var o=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,o):new RegExp(n)[t](String(o))},function(e){var t=a(n,e,this);if(t.done)return t.value;var r=o(e),s=String(this),c=r.lastIndex;i(c,0)||(r.lastIndex=0);var u=l(r,s);return i(r.lastIndex,c)||(r.lastIndex=c),null===u?-1:u.index}]}))},"44e1":function(e,t,n){},"575f":function(e,t,n){"use strict";var o=n("44e1"),i=n.n(o);i.a},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("ac6a"),n("456d");var o=n("b775");function i(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var i=e[n];"string"===typeof i&&(i={url:i}),i.url="".concat(t).concat(i.url),e[n]=function(e){return Object(o["a"])(i,e)}})),e}},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},b6fa:function(e,t,n){"use strict";var o=n("e2aa"),i=n.n(o);i.a},db80:function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"admin"},[n("div",{staticClass:"role-list"},[n("div",{staticClass:"add-role"},[n("el-button",{on:{click:function(t){return e.onEditRole()}}},[n("i",{staticClass:"iconfont icontianjiajiahaowubiankuang"}),e._v(" 新建管理角色")])],1),n("role-list",{attrs:{"role-list":e.roleList,"active-role-id":e.activeRoleId,"show-del-role-button":""},on:{"del-role-succ":e.onDelRoleSucc,"edit-role":e.onEditRole,"change-role":e.onChangeRole}})],1),n("div",{staticClass:"admin-list"},[n("h3",{staticClass:"admin-list-title"},[e._v("管理员列表")]),n("el-input",{staticStyle:{width:"277px"},attrs:{placeholder:"请输入姓名/账号/手机号码","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search,callback:function(t){e.search="string"===typeof t?t.trim():t},expression:"search"}}),n("el-button",{staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:e.toEditAdmin}},[e._v("添加管理员")]),n("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.adminList}},[n("el-table-column",{attrs:{label:"姓名",prop:"staffName",formatter:function(e,t,n){return n||"--"}}}),n("el-table-column",{attrs:{label:"账号",prop:"wxUserId",formatter:function(e,t,n){return n||"--"},"show-overflow-tooltip":""}}),n("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber",formatter:function(e,t,n){return n||"--"}}}),n("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.toEditAdmin(o)}}},[e._v("管辖范围")]),n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.onDelAdmin(o)}}},[e._v("删除")])]}}])})],1),e.pager.total>0?n("dm-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"size-change":e.onSizeChange,"current-change":e.onCurrentChange}}):e._e()],1)])},i=[],l=(n("386d"),n("0082")),a=n("f286"),r=a["a"].roleList,s=a["a"].roleAdminList,c=a["a"].delAdmin,u={name:"AdminList",components:{RoleList:l["default"]},data:function(){return{activeRoleId:"",roleList:[],search:"",pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1},adminList:[]}},created:function(){this.$emit("showTab","/admin-list"),this.getRoleList()},methods:{getRoleList:function(){var e=this;r({roleType:2}).then((function(t){e.roleList=t.result||[],e.roleList.length>0&&!e.activeRoleId&&(e.activeRoleId=e.roleList[0].roleId,e.getAdminList())}))},onEditRole:function(e){var t=e||{},n=t.roleId;this.$router.push("/edit-role".concat(n?"?roleId=".concat(n):""))},onChangeRole:function(e){this.activeRoleId=e.roleId,this.getAdminList()},onDelRoleSucc:function(e){e&&(this.activeRoleId=""),this.getRoleList()},getAdminList:function(){var e=this,t=this.pager,n=t.currentPage,o=t.pageSize,i={roleId:this.activeRoleId,search:this.search,pageNum:n,pageSize:o};s(i).then((function(t){var n=t.result||{},o=n.totalCount,i=n.result;e.pager.total=o,e.adminList=i||[]}))},onSearch:function(){this.pager.currentPage=1,this.getAdminList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},onCurrentChange:function(e){this.pager.currentPage=e,this.getAdminList()},toEditAdmin:function(e){var t=e||{},n=t.staffId,o=t.staffName;this.$router.push("/edit-admin?roleId=".concat(this.activeRoleId).concat(o?"&staffName=".concat(o):"").concat(n?"&staffId=".concat(n):""))},onDelAdmin:function(e){var t=this,n=e.staffName,o=e.staffId;this.$confirm("确定删除【 ".concat(n," 】吗?"),"提示",{type:"warning"}).then((function(){var e={staffId:o,roleId:t.activeRoleId};c(e).then((function(e){"0000"==e.code&&(t.$message.success("删除成功!"),t.pager.currentPage>1&&1==t.adminList.length&&t.pager.currentPage--,t.getAdminList())}))}))}}},d=u,f=(n("b6fa"),n("2877")),h=Object(f["a"])(d,o,i,!1,null,"2e313758",null);t["default"]=h.exports},e2aa:function(e,t,n){},f286:function(e,t,n){"use strict";var o=n("71f6"),i={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list"};t["a"]=Object(o["a"])(i,"/hb-manage-web")}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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