Commit 66ab8f5f by 无尘

fix: 修改数据维度

parent 55b47129
.common-bottom-border[data-v-b81cb10c]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.common-bottom-border.table-title[data-v-b81cb10c]{font-size:14px;line-height:20px;font-weight:600;color:#303133}.data-dimension-table[data-v-b81cb10c]{margin-top:32px}.data-dimension-table .m-b-18[data-v-b81cb10c]{margin-bottom:18px}.data-dimension-table .data-dimension-table_left[data-v-b81cb10c]{width:calc((100% - 47px)/2)}.data-dimension-table .data-dimension-table_right[data-v-b81cb10c]{width:calc((100% - 47px)/2);margin-left:47px}
\ No newline at end of file
.input-line-cell[data-v-247d07e4]{position:relative;display:inline-block}.input-line-cell.limit-color .input-cell-tip[data-v-247d07e4]{color:hsla(0,0%,100%,.7)}.input-line-cell .input-cell-tip[data-v-247d07e4]{position:absolute;top:2px;right:10px;display:inline-block;line-height:32px;text-align:right;font-size:12px;color:#c0c4cc}.w-340[data-v-247d07e4]{width:340px}.w-340[data-v-247d07e4] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.el-input[data-v-247d07e4] .el-input__inner{font-size:14px;color:#606266;background-color:hsla(0,0%,100%,.1)}.el-input.is-disabled[data-v-247d07e4]{opacity:.5}.el-input .is-disabled[data-v-247d07e4] .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}.m-t-5[data-v-a2a41376]{margin-top:5px}.el-form .el-input[data-v-a2a41376],.el-form .el-select[data-v-a2a41376]{width:440px}.el-form .input-tag-div[data-v-a2a41376]{position:relative}.el-form .input-tag-div .input-cell-tip[data-v-a2a41376]{position:absolute;top:2px;right:20px;display:inline-block;line-height:30px;text-align:right;font-size:12px;color:#c0c4cc;font-weight:400}.clerk-tag-body .clerk-tag-left[data-v-733c8356]{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-733c8356]{border-style:dashed}.clerk-tag-body .clerk-tag-right[data-v-733c8356]{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-247d07e4]{position:relative;display:inline-block}.input-line-cell.limit-color .input-cell-tip[data-v-247d07e4]{color:hsla(0,0%,100%,.7)}.input-line-cell .input-cell-tip[data-v-247d07e4]{position:absolute;top:2px;right:10px;display:inline-block;line-height:32px;text-align:right;font-size:12px;color:#c0c4cc}.w-340[data-v-247d07e4]{width:340px}.w-340[data-v-247d07e4] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.el-input[data-v-247d07e4] .el-input__inner{font-size:14px;color:#606266;background-color:hsla(0,0%,100%,.1)}.el-input.is-disabled[data-v-247d07e4]{opacity:.5}.el-input .is-disabled[data-v-247d07e4] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.tag-classify-body .tag-classify-item[data-v-c9275006]{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-c9275006],.tag-classify-body .tag-classify-item[data-v-c9275006]:hover{color:#2f54ed;background-color:rgba(47,84,235,.05)}.tag-classify-body .tag-classify-item:hover .edit-icon[data-v-c9275006]{opacity:1;color:#2f54ed;background-color:rgba(47,84,235,.09)}.tag-classify-body .tag-classify-item .edit-icon[data-v-c9275006]{padding:4px;opacity:0;font-size:12px}.tag-classify-body .tag-classify-item .tag-classify-name[data-v-c9275006]{display:block;width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag-classify-body .no-data[data-v-c9275006]{padding:10px 0 40px 0;text-align:center;color:#909399}.m-t-5[data-v-a2a41376]{margin-top:5px}.el-form .el-input[data-v-a2a41376],.el-form .el-select[data-v-a2a41376]{width:440px}.el-form .input-tag-div[data-v-a2a41376]{position:relative}.el-form .input-tag-div .input-cell-tip[data-v-a2a41376]{position:absolute;top:2px;right:20px;display:inline-block;line-height:30px;text-align:right;font-size:12px;color:#c0c4cc;font-weight:400}.clerk-tag-body .clerk-tag-left[data-v-7eb6fb38]{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-7eb6fb38]{border-style:dashed}.clerk-tag-body .clerk-tag-right[data-v-7eb6fb38]{position:relative;min-width:calc(100% - 190px);min-height:calc(100vh - 94px);border-left:1px solid #e4e7ed}
\ No newline at end of file
.group-detail[data-v-5888a56f]{padding:30px;min-height:100%;background-color:#fff}[data-v-5888a56f] .el-transfer-panel__body,[data-v-5888a56f] .el-transfer-panel__list{height:264px}
\ No newline at end of file
.common-bottom-border[data-v-5929d251]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.common-bottom-border.table-title[data-v-5929d251]{font-size:14px;line-height:20px;font-weight:600;color:#303133}.data-dimension-table[data-v-5929d251]{margin-top:32px}.data-dimension-table .m-b-18[data-v-5929d251]{margin-bottom:18px}.data-dimension-table .data-dimension-table_left[data-v-5929d251]{width:calc((100% - 47px)/2)}.data-dimension-table .data-dimension-table_right[data-v-5929d251]{width:calc((100% - 47px)/2);margin-left:47px}
\ No newline at end of file
.audit-group-list[data-v-52fcbb06]{padding:20px;min-height:100%;background-color:#fff}.audit-group-list .audit-group-header[data-v-52fcbb06]{margin-bottom:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}
\ No newline at end of file
.audit-group-list[data-v-45a0f0c5]{padding:20px;min-height:100%;background-color:#fff}.audit-group-list .audit-group-header[data-v-45a0f0c5]{margin-bottom:20px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d22fcb2"],{ea11:function(e,n,t){"use strict";t.r(n);var u=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[e._v("新建审核组")])},a=[],c={name:"CreateAuditGroup"},r=c,l=t("2877"),i=Object(l["a"])(r,u,a,!1,null,null,null);n["default"]=i.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-30119c5c"],{"2f21":function(t,e,a){"use strict";var r=a("79e5");t.exports=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},"55dd":function(t,e,a){"use strict";var r=a("5ca1"),n=a("d8e8"),o=a("4bf8"),s=a("79e5"),i=[].sort,l=[1,2,3];r(r.P+r.F*(s((function(){l.sort(void 0)}))||!s((function(){l.sort(null)}))||!a("2f21")(i)),"Array",{sort:function(t){return void 0===t?i.call(o(this)):i.call(o(this),n(t))}})},"55f3":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",[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":"id"}},[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:"",label:"会员卡名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.name||"--"))]}}])})],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":"id"}},[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:"",label:"服务号名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.name||"--"))]}}])})],1)],1)])])])},n=[],o=(a("55dd"),a("3081")),s=a("aa47"),i=a("d11a"),l=a("5b4e"),c=i["a"].getMemberData,d=i["a"].saveSortMember,u={name:"DataDimensionPage",components:{commonAlertTip:o["a"]},props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",tipContent:"当商户有多个会员卡和服务号时,会造成单家门店适用于多个会员卡或服务号,即单个顾客会有多个域的身份信息,这容易造成门店成员的困扰。请为以下会员卡和服务号域做权重排序,当顾客有多个域的身份信息时,门店成员将只能看到权重最高域的一个身份信息。",memberCardData:[],serviceNumData:[],loadingMember:!1,loadingService:!1}},mounted:function(){var t=this;t.$emit("showTab","/data-dimension"),t.rowDrop("memberCardData"),t.rowsDrop("serviceNumData"),t.brandId&&t.getMemberCrad()},methods:{rowDrop:function(t){var e=this.$refs[t].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],a=this;s["a"].create(e,{onEnd:function(e){var r=e.newIndex,n=e.oldIndex;if(r==n)return!1;var o=JSON.parse(JSON.stringify(a[t])),s=o.splice(n,1)[0];o.splice(r,0,s),a.setSort(o,t)}})},rowsDrop:function(t){var e=this.$refs[t].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],a=this;s["a"].create(e,{onEnd:function(e){var r=e.newIndex,n=e.oldIndex;if(r==n)return!1;var o=JSON.parse(JSON.stringify(a[t])),s=o.splice(n,1)[0];o.splice(r,0,s),a.setSort(o,t)}})},setSort:function(t,e){var a=this,r={wxEnterpriseId:a.wxEnterpriseId,enterpriseId:a.brandId,sorts:t.map((function(t){return t.id})).join(","),type:"memberCardData"==e?"0":"1"};d(r).then((function(t){a.getMemberCrad(),"0000"==t.code?l["a"].showmsg("操作成功","success"):l["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){}))},getMemberCrad:function(){var t=this;t.loadingMember=!0,t.loadingService=!0;var e={wxEnterpriseId:t.wxEnterpriseId,enterpriseId:t.brandId};c(e).then((function(e){t.loadingMember=!1,t.loadingService=!1,e.result.cards&&e.result.cards.length&&(t.memberCardData=t.sortTable(e.result.cards)),e.result.services&&e.result.services.length&&(t.serviceNumData=t.sortTable(e.result.services))})).catch((function(e){t.loadingMember=!1,t.loadingService=!1}))},sortTable:function(t){return t.sort((function(t,e){return t.sort-e.sort})),t}},watch:{brandId:function(t){var e=this;t&&e.getMemberCrad()}}},m=u,p=(a("ba0c"),a("2877")),b=Object(p["a"])(m,r,n,!1,null,"b81cb10c",null);e["default"]=b.exports},adfb:function(t,e,a){},ba0c:function(t,e,a){"use strict";var r=a("adfb"),n=a.n(r);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3541e15d"],{"71f6":function(t,a,e){"use strict";e.d(a,"a",(function(){return u}));e("ac6a"),e("456d");var r=e("b775");function u(t,a){t=t||{};var e=Object.keys(t);return e.forEach((function(e){var u=t[e];"string"===typeof u&&(u={url:u}),u.url="".concat(a).concat(u.url),t[e]=function(t){return Object(r["a"])(u,t)}})),t}},"96b6":function(t,a,e){"use strict";var r=e("71f6"),u={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list"};u=Object(r["a"])(u,"/hb-manage-web"),a["a"]=u},a98d:function(t,a,e){},ea11:function(t,a,e){"use strict";e.r(a);var r=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("el-form",{ref:"groupData",staticClass:"group-detail",attrs:{model:t.groupData,rules:t.groupDataRules,"label-width":"110px"}},[e("el-form-item",{attrs:{label:"审核组名称",prop:"auditGroupName"}},[e("el-input",{staticStyle:{width:"481px"},attrs:{placeholder:"请输入内容",maxlength:"20","show-word-limit":""},model:{value:t.groupData.auditGroupName,callback:function(a){t.$set(t.groupData,"auditGroupName","string"===typeof a?a.trim():a)},expression:"groupData.auditGroupName"}})],1),e("el-form-item",{attrs:{label:"选择管理员",prop:"auditPerson"}},[e("dm-transfer",{attrs:{titles:["全选","已选"],"button-texts":["移除","转入"],props:{label:"staffName",key:"staffId"},data:t.adminList},model:{value:t.groupData.auditPerson,callback:function(a){t.$set(t.groupData,"auditPerson",a)},expression:"groupData.auditPerson"}})],1),e("el-form-item",{staticStyle:{"margin-top":"50px"}},[e("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:t.onSave}},[t._v(t._s(t.groupData.auditGroupId?"保存":"确认新建"))])],1)],1)},u=[],i=e("96b6"),o=i["a"].auditGroupDetail,n=i["a"].editAuditGroup,s=i["a"].addAuditGroup,d=i["a"].getAdminList,p={name:"CreateAuditGroup",data:function(){return{adminList:[],groupData:{auditGroupName:"",auditPerson:[],wxEnterpriseId:"",auditGroupId:""},groupDataRules:{auditGroupName:[{required:!0,message:"请输入审核组名称",trigger:"blur"}],auditPerson:[{required:!0,message:"请选择管理员",trigger:"blur"}]}}},created:function(){var t=this.$route.query.auditGroupId,a=JSON.parse(localStorage.getItem("haoBanUser")||"{}");this.groupData.wxEnterpriseId=a.wxEnterpriseId,t&&this.getGroupDetail(t),this.getAdminList()},methods:{getAdminList:function(){var t=this,a=this.groupData.wxEnterpriseId;d({wxEnterpriseId:a}).then((function(a){t.adminList=a.result||[]}))},getGroupDetail:function(t){var a=this;o({auditGroupId:t}).then((function(t){var e=t.result||{},r=e.auditGroupName,u=e.auditGroupId,i=e.auditPerson;Object.assign(a.groupData,{auditGroupName:r,auditGroupId:u}),Array.isArray(i)&&(a.groupData.auditPerson=i.map((function(t){return t.staffId})))}))},onSave:function(){var t=this;this.$refs.groupData.validate((function(a){if(a){var e=t.groupData,r=e.auditGroupName,u=e.auditPerson,i=e.auditGroupId,o=e.wxEnterpriseId,d={auditGroupName:r,wxEnterpriseId:o,auditPerson:[]};d.auditPerson=t.adminList.filter((function(t){return u.some((function(a){return a==t.staffId}))})),d.auditPerson=JSON.stringify(d.auditPerson),t.loading=!0,i?(d.auditGroupId=i,n(d).then(p.bind(t,"保存成功!")).finally((function(){return t.loading=!1}))):s(d).then(p.bind(t,"新建成功!")).finally((function(){return t.loading=!1}))}function p(t){this.$message.success(t),this.$router.go(-1)}}))}}},l=p,c=(e("f872"),e("2877")),f=Object(c["a"])(l,r,u,!1,null,"5888a56f",null);a["default"]=f.exports},f872:function(t,a,e){"use strict";var r=e("a98d"),u=e.n(r);u.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-50c4e5c5"],{"2f21":function(e,t,a){"use strict";var r=a("79e5");e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},"55dd":function(e,t,a){"use strict";var r=a("5ca1"),n=a("d8e8"),o=a("4bf8"),s=a("79e5"),i=[].sort,l=[1,2,3];r(r.P+r.F*(s((function(){l.sort(void 0)}))||!s((function(){l.sort(null)}))||!a("2f21")(i)),"Array",{sort:function(e){return void 0===e?i.call(o(this)):i.call(o(this),n(e))}})},"55f3":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",[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":"id"}},[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:"",label:"会员卡名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name||"--"))]}}])})],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":"id"}},[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:"",label:"服务号名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name||"--"))]}}])})],1)],1)])])])},n=[],o=(a("55dd"),a("3081")),s=a("aa47"),i=a("d11a"),l=a("5b4e"),c=i["a"].getMemberData,d=i["a"].saveSortMember,m={name:"DataDimensionPage",components:{commonAlertTip:o["a"]},props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",tipContent:"当商户有多个会员卡和服务号时,会造成单家门店适用于多个会员卡或服务号,即单个顾客会有多个域的身份信息,这容易造成门店成员的困扰。请为以下会员卡和服务号域做权重排序,当顾客有多个域的身份信息时,门店成员将只能看到权重最高域的一个身份信息。",memberCardData:[],serviceNumData:[],loadingMember:!1,loadingService:!1}},mounted:function(){var e=this;e.$emit("showTab","/data-dimension"),e.rowDrop("memberCardData"),e.rowsDrop("serviceNumData"),e.brandId&&e.getMemberCrad()},methods:{rowDrop:function(e){var t=this.$refs[e].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],a=this;s["a"].create(t,{onEnd:function(t){var r=t.newIndex,n=t.oldIndex;if(r==n)return!1;var o=JSON.parse(JSON.stringify(a[e])),s=o.splice(n,1)[0];o.splice(r,0,s),a.setSort(o,e)}})},rowsDrop:function(e){var t=this.$refs[e].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],a=this;s["a"].create(t,{onEnd:function(t){var r=t.newIndex,n=t.oldIndex;if(r==n)return!1;var o=JSON.parse(JSON.stringify(a[e])),s=o.splice(n,1)[0];o.splice(r,0,s),a.setSort(o,e)}})},setSort:function(e,t){var a=this,r={wxEnterpriseId:a.wxEnterpriseId,enterpriseId:a.brandId,sorts:e.map((function(e){return e.id})).join(","),type:"memberCardData"==t?"0":"1"};d(r).then((function(e){a.getMemberCrad(),"0000"==e.code?l["a"].showmsg("操作成功","success"):l["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){}))},getMemberCrad:function(){var e=this;e.loadingMember=!0,e.loadingService=!0;var t={wxEnterpriseId:e.wxEnterpriseId,enterpriseId:e.brandId};c(t).then((function(t){e.loadingMember=!1,e.loadingService=!1,t.result.cards&&t.result.cards.length?e.memberCardData=e.sortTable(t.result.cards):e.memberCardData=[],t.result.services&&t.result.services.length?e.serviceNumData=e.sortTable(t.result.services):e.serviceNumData=[]})).catch((function(t){e.loadingMember=!1,e.loadingService=!1}))},sortTable:function(e){return e.sort((function(e,t){return e.sort-t.sort})),e}},watch:{brandId:function(e){var t=this;e&&(t.memberCardData=[],t.serviceNumData=[],t.getMemberCrad())}}},u=m,p=(a("ff20"),a("2877")),f=Object(p["a"])(u,r,n,!1,null,"5929d251",null);t["default"]=f.exports},e9ee:function(e,t,a){},ff20:function(e,t,a){"use strict";var r=a("e9ee"),n=a.n(r);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9dcda64e"],{"71f6":function(t,e,u){"use strict";u.d(e,"a",(function(){return a}));u("ac6a"),u("456d");var r=u("b775");function a(t,e){t=t||{};var u=Object.keys(t);return u.forEach((function(u){var a=t[u];"string"===typeof a&&(a={url:a}),a.url="".concat(e).concat(a.url),t[u]=function(t){return Object(r["a"])(a,t)}})),t}},"96b6":function(t,e,u){"use strict";var r=u("71f6"),a={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group"};a=Object(r["a"])(a,"/hb-manage-web"),e["a"]=a},cbaf:function(t,e,u){},f189:function(t,e,u){"use strict";var r=u("cbaf"),a=u.n(r);a.a},ff23:function(t,e,u){"use strict";u.r(e);var r=function(){var t=this,e=t.$createElement,u=t._self._c||e;return u("div",{staticClass:"audit-group-list"},[u("div",{staticClass:"audit-group-header"},[u("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.toCreateGroup()}}},[t._v("新建审核组")])],1),u("el-table",{attrs:{data:t.groupList}},[u("el-table-column",{attrs:{label:"审核组",prop:"auditGroupName",formatter:function(t,e,u){return u||"--"}}}),u("el-table-column",{attrs:{label:"管理员","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var u=e.row;return[t._v(t._s(t._f("formatAuditer")(u.auditPerson)))]}}])}),u("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[u("el-button",{attrs:{type:"text"},on:{click:function(e){return t.toCreateGroup(r)}}},[t._v("编辑")]),u("el-button",{attrs:{type:"text"},on:{click:function(e){return t.onDelGroup(r)}}},[t._v("删除")])]}}])})],1)],1)},a=[],o=u("96b6"),n=o["a"].getAuditGroupList,i=o["a"].delAuditGroup,s={name:"AuditGroupList",data:function(){return{groupList:[]}},created:function(){this.getGroupList()},methods:{getGroupList:function(){var t=this;n().then((function(e){t.groupList=e.result||[]}))},onDelGroup:function(t){var e=this,u=t.auditGroupName,r=t.auditGroupId;this.$confirm("确定删除【 ".concat(u," 】吗?"),"提示",{type:"warning"}).then((function(){i({auditGroupId:r}).then((function(t){e.$message.success("删除成功!"),e.getGroupList()}))}))},toCreateGroup:function(t){var e=t||{},u=e.auditGroupId,r="/create-audit-group";this.$router.push(u?"".concat(r,"?auditGroupId=").concat(u):r)}},filters:{formatAuditer:function(t){if(!Array.isArray(t))return"--";var e=t.map((function(t){return t.staffName||"--"}));return e.join("、")}}},c=s,f=(u("f189"),u("2877")),p=Object(f["a"])(c,r,a,!1,null,"52fcbb06",null);e["default"]=p.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ad8a7158"],{"0ef2":function(t,e,a){"use strict";var n=a("50e5"),r=a.n(n);r.a},4900:function(t,e,a){"use strict";var n=a("bbe8"),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}},8937:function(t,e,a){"use strict";var n=a("d95f"),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",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list"};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),p=h.exports,b=a("503e"),f={name:"Reviewed",components:{navCrumb:p,commonDetailLeft:b["a"]},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",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=f,m=(a("8937"),Object(d["a"])(v,n,r,!1,null,"2389a224",null));e["default"]=m.exports},d95f:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ad8a7158"],{"0ef2":function(t,e,a){"use strict";var n=a("50e5"),r=a.n(n);r.a},4900:function(t,e,a){"use strict";var n=a("bbe8"),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}},8937:function(t,e,a){"use strict";var n=a("d95f"),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",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group"};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),p=h.exports,b=a("503e"),f={name:"Reviewed",components:{navCrumb:p,commonDetailLeft:b["a"]},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",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=f,m=(a("8937"),Object(d["a"])(v,n,r,!1,null,"2389a224",null));e["default"]=m.exports},d95f:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f9c8f426"],{"4d54":function(t,e,r){"use strict";var u=r("d46a"),a=r.n(u);a.a},"71f6":function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));r("ac6a"),r("456d");var u=r("b775");function a(t,e){t=t||{};var r=Object.keys(t);return r.forEach((function(r){var a=t[r];"string"===typeof a&&(a={url:a}),a.url="".concat(e).concat(a.url),t[r]=function(t){return Object(u["a"])(a,t)}})),t}},"96b6":function(t,e,r){"use strict";var u=r("71f6"),a={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list"};a=Object(u["a"])(a,"/hb-manage-web"),e["a"]=a},d46a:function(t,e,r){},ff23:function(t,e,r){"use strict";r.r(e);var u=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"audit-group-list"},[r("div",{staticClass:"audit-group-header"},[r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.toCreateGroup()}}},[t._v("新建审核组")])],1),r("el-table",{attrs:{data:t.groupList}},[r("el-table-column",{attrs:{label:"审核组",prop:"auditGroupName",formatter:function(t,e,r){return r||"--"}}}),r("el-table-column",{attrs:{label:"管理员","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[t._v(t._s(t._f("formatAuditer")(r.auditPerson)))]}}])}),r("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){var u=e.row;return[r("el-button",{attrs:{type:"text"},on:{click:function(e){return t.toCreateGroup(u)}}},[t._v("编辑")]),r("el-button",{attrs:{type:"text"},on:{click:function(e){return t.onDelGroup(u)}}},[t._v("删除")])]}}])})],1)],1)},a=[],o=r("96b6"),i=o["a"].getAuditGroupList,n=o["a"].delAuditGroup,s={name:"AuditGroupList",data:function(){return{groupList:[]}},created:function(){var t=JSON.parse(localStorage.getItem("haoBanUser")||"{}");this.wxEnterpriseId=t.wxEnterpriseId,this.getGroupList()},methods:{getGroupList:function(){var t=this;i({wxEnterpriseId:this.wxEnterpriseId}).then((function(e){t.groupList=e.result||[]}))},onDelGroup:function(t){var e=this,r=t.auditGroupName,u=t.auditGroupId;this.$confirm("确定删除【 ".concat(r," 】吗?"),"提示",{type:"warning"}).then((function(){n({auditGroupId:u}).then((function(t){e.$message.success("删除成功!"),e.getGroupList()}))}))},toCreateGroup:function(t){var e=t||{},r=e.auditGroupId,u="/create-audit-group";this.$router.push(r?"".concat(u,"?auditGroupId=").concat(r):u)}},filters:{formatAuditer:function(t){if(!Array.isArray(t))return"--";var e=t.map((function(t){return t.staffName||"--"}));return e.join("、")}}},d=s,c=(r("4d54"),r("2877")),p=Object(c["a"])(d,u,a,!1,null,"45a0f0c5",null);e["default"]=p.exports}}]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment