Commit 4a537d41 by 无尘

fix: 修改应用布局

parent 6c70f1e1
.common-bottom-border[data-v-2db66888]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.common-bottom-border.table-title[data-v-2db66888]{font-size:14px;line-height:20px;font-weight:600;color:#303133}.data-dimension-table[data-v-2db66888]{margin-top:32px}.data-dimension-table .m-b-18[data-v-2db66888]{margin-bottom:18px}.data-dimension-table .data-dimension-table_right[data-v-2db66888]{margin-left:47px}
\ No newline at end of file
.nav-wrap[data-v-11a7d042]{height:48px;line-height:48px;padding:0 20px;-webkit-box-sizing:border-box;box-sizing:border-box}.nav-wrap .el-breadcrumb[data-v-11a7d042]{line-height:48px}.el-breadcrumb__inner.is-link[data-v-11a7d042]:hover,.el-breadcrumb__inner a[data-v-11a7d042]:hover{color:#2f54eb}.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-11a7d042],.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-11a7d042]:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-11a7d042],.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-11a7d042]: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-19446ba0]{line-height:18px}.my-customer-wrap[data-v-19446ba0]{height:100%}.my-customer-wrap .move-row-cell .icontuozhuaiopen[data-v-19446ba0]{display:none}.my-customer-wrap .move-row-cell.show-icon .icontuozhuaiopen[data-v-19446ba0],.my-customer-wrap .move-row-cell:hover .icontuozhuaiopen[data-v-19446ba0]{display:inline-block;vertical-align:middle}.right-content[data-v-19446ba0]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-19446ba0]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-left[data-v-19446ba0]{min-width:157px;height:100%;background:#fff;overflow-x:hidden;overflow-y:auto}.right-content .right-box .apps-content .apps-content-right[data-v-19446ba0]{width:calc(100% - 120px);padding-left:10px;background:#f0f2f5}.right-content .right-box .apps-content .apps-content-right .common-set-wrap[data-v-19446ba0]{height:100%;background:#fff}
\ No newline at end of file
.nav-wrap[data-v-11a7d042]{height:48px;line-height:48px;padding:0 20px;-webkit-box-sizing:border-box;box-sizing:border-box}.nav-wrap .el-breadcrumb[data-v-11a7d042]{line-height:48px}.el-breadcrumb__inner.is-link[data-v-11a7d042]:hover,.el-breadcrumb__inner a[data-v-11a7d042]:hover{color:#2f54eb}.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-11a7d042],.el-breadcrumb__item:last-child .el-breadcrumb__inner[data-v-11a7d042]:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-11a7d042],.el-breadcrumb__item:last-child .el-breadcrumb__inner a[data-v-11a7d042]: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-ae709660]{line-height:18px}.my-customer-wrap[data-v-ae709660]{height:100%}.my-customer-wrap .move-row-cell .icontuozhuaiopen[data-v-ae709660]{display:none}.my-customer-wrap .move-row-cell.show-icon .icontuozhuaiopen[data-v-ae709660],.my-customer-wrap .move-row-cell:hover .icontuozhuaiopen[data-v-ae709660]{display:inline-block;vertical-align:middle}.right-content[data-v-ae709660]{padding:0 20px 20px 20px;min-height:calc(100% - 160px)}.right-content .right-box[data-v-ae709660]{background:#fff;min-height:500px;padding:0}.right-content .right-box .apps-content .apps-content-left[data-v-ae709660]{min-width:157px;height:100%;background:#fff;overflow-x:hidden;overflow-y:auto}.right-content .right-box .apps-content .apps-content-right[data-v-ae709660]{width:calc(100% - 120px);padding-left:10px;background:#f0f2f5}.right-content .right-box .apps-content .apps-content-right .common-app-right[data-v-ae709660]{height:100%;padding:20px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff}
\ No newline at end of file
.common-bottom-border[data-v-6c03d857]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.common-bottom-border.table-title[data-v-6c03d857]{font-size:14px;line-height:20px;font-weight:600;color:#303133}.data-dimension-table[data-v-6c03d857]{margin-top:32px}.data-dimension-table .m-b-18[data-v-6c03d857]{margin-bottom:18px}.data-dimension-table .data-dimension-table_right[data-v-6c03d857]{margin-left:47px}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-06a71462"],{"2fed":function(e,t,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("5b4e"),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())}}},b=v,u=(a("78cb"),a("2877")),p=Object(u["a"])(b,n,r,!1,null,"2db66888",null);t["default"]=p.exports},"78cb":function(e,t,a){"use strict";var n=a("2fed"),r=a.n(n);r.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-113e6480"],{"0ef2":function(t,e,a){"use strict";var n=a("50e5"),r=a.n(n);r.a},2937:function(t,e,a){"use strict";var n=a("e496"),r=a.n(n);r.a},"3a2b":function(t,e,a){},"503e":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"p-t-12"},[a("ul",{staticClass:"tab-left-list"},[t._l(t.tabData,(function(e,n){return[a("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",e.menuUrl!=t.activeTab||e.children.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},a629:function(t,e,a){"use strict";var n=a("3a2b"),r=a.n(n);r.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",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({}).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("a629"),a("2877")),h=Object(d["a"])(u,i,c,!1,null,"11a7d042",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:{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("2937"),Object(d["a"])(v,n,r,!1,null,"19446ba0",null));e["default"]=m.exports},e496:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1716d448"],{"0ef2":function(t,e,a){"use strict";var n=a("50e5"),r=a.n(n);r.a},"3a2b":function(t,e,a){},"503e":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"p-t-12"},[a("ul",{staticClass:"tab-left-list"},[t._l(t.tabData,(function(e,n){return[a("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",e.menuUrl!=t.activeTab||e.children.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){},5659: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},"99ea":function(t,e,a){"use strict";var n=a("5659"),r=a.n(n);r.a},a629:function(t,e,a){"use strict";var n=a("3a2b"),r=a.n(n);r.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",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({}).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("a629"),a("2877")),h=Object(d["a"])(u,i,c,!1,null,"11a7d042",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:{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("99ea"),Object(d["a"])(v,n,r,!1,null,"ae709660",null));e["default"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4711c0fb"],{"150f":function(t,e,n){},"28a5":function(t,e,n){"use strict";var a=n("aae3"),i=n("cb7c"),o=n("ebd6"),r=n("0390"),c=n("9def"),l=n("5f1b"),s=n("520a"),u=n("79e5"),d=Math.min,f=[].push,p="split",m="length",h="lastIndex",v=4294967295,b=!u((function(){RegExp(v,"y")}));n("214f")("split",2,(function(t,e,n,u){var w;return w="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[m]||2!="ab"[p](/(?:ab)*/)[m]||4!="."[p](/(.?)(.?)/)[m]||"."[p](/()()/)[m]>1||""[p](/.?/)[m]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!a(t))return n.call(i,t,e);var o,r,c,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,p=void 0===e?v:e>>>0,b=new RegExp(t.source,u+"g");while(o=s.call(b,i)){if(r=b[h],r>d&&(l.push(i.slice(d,o.index)),o[m]>1&&o.index<i[m]&&f.apply(l,o.slice(1)),c=o[0][m],d=r,l[m]>=p))break;b[h]===o.index&&b[h]++}return d===i[m]?!c&&b.test("")||l.push(""):l.push(i.slice(d)),l[m]>p?l.slice(0,p):l}:"0"[p](void 0,0)[m]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,a){var i=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,i,a):w.call(String(i),n,a)},function(t,e){var a=u(w,t,this,e,w!==n);if(a.done)return a.value;var s=i(t),f=String(this),p=o(s,RegExp),m=s.unicode,h=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(b?"y":"g"),g=new p(b?s:"^(?:"+s.source+")",h),C=void 0===e?v:e>>>0;if(0===C)return[];if(0===f.length)return null===l(g,f)?[f]:[];var y=0,_=0,x=[];while(_<f.length){g.lastIndex=b?_:0;var D,S=l(g,b?f:f.slice(_));if(null===S||(D=d(c(g.lastIndex+(b?0:_)),f.length))===y)_=r(f,_,m);else{if(x.push(f.slice(y,_)),x.length===C)return x;for(var F=1;F<=S.length-1;F++)if(x.push(S[F]),x.length===C)return x;_=y=D}}return x.push(f.slice(y)),x}]}))},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 ")])])])])])},i=[],o={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""}},data:function(){return{}}},r=o,c=n("2877"),l=Object(c["a"])(r,a,i,!1,null,"3070d237",null);e["a"]=l.exports},c7d7: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:"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)])])},i=[],o=n("3081"),r=n("d11a"),c=n("d157"),l=n("5b4e"),s=n("aa47"),u=r["a"].getGroupData,d=r["a"].getClassifyData,f=r["a"].postSortGroup,p={name:"CrowdScenePage",components:{commonAlertTip:o["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(c["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;s["a"].create(e,{onEnd:function(e){var a=e.newIndex,i=e.oldIndex;if(a==i)return!1;var o=JSON.parse(JSON.stringify(n[t])),r=o.splice(i,1)[0];o.splice(a,0,r),n.setSort(o)}})},setSort:function(){var t=this,e={enterpriseId:t.brandId};f(e).then((function(e){t.getGroupList(),"0000"==e.code?l["a"].showmsg("操作成功","success"):l["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,h=(n("ed71"),n("2877")),v=Object(h["a"])(m,a,i,!1,null,"497467c6",null);e["default"]=v.exports},d157:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o}));n("c5f6"),n("a481"),n("28a5"),n("6b54");function a(t,e){var n,a=e||200;return function(){var e=this,i=arguments;n&&clearTimeout(n),n=setTimeout((function(){n=null,t.apply(e,i)}),a)}}function i(t,e){var n,a,i=e||200;return function(){var e=this,o=arguments,r=+new Date;n&&r-n<i?(clearTimeout(a),a=setTimeout((function(){n=r,t.apply(e,o)}),i)):(n=r,t.apply(e,o))}}function o(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 a=n("150f"),i=n.n(a);i.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-33b0918a"],{"0082":function(e,t,o){"use strict";o.r(t);var l=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=[],i=(o("c5f6"),o("f286")),r=i["a"].delRole,s={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,l=t.roleName,n=t.roleNameInput;return 0==n.length?this.$message.warning("请输入角色名称!"):l!=n?this.$message.warning("请输入正确的角色名称!"):(this.delRole.loading=!0,void r({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})))}}},a=s,c=(o("575f"),o("2877")),d=Object(c["a"])(a,l,n,!1,null,"7c337432",null);t["default"]=d.exports},"44e1":function(e,t,o){},"575f":function(e,t,o){"use strict";var l=o("44e1"),n=o.n(l);n.a},"71f6":function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));o("ac6a"),o("456d");var l=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(l["a"])(n,e)}})),e}},f286:function(e,t,o){"use strict";var l=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(l["a"])(n,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b073f330"],{"0082":function(e,t,o){"use strict";o.r(t);var l=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=[],i=(o("c5f6"),o("f286")),r=i["a"].delRole,s={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,l=t.roleName,n=t.roleNameInput;return 0==n.length?this.$message.warning("请输入角色名称!"):l!=n?this.$message.warning("请输入正确的角色名称!"):(this.delRole.loading=!0,void r({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})))}}},a=s,c=(o("575f"),o("2877")),d=Object(c["a"])(a,l,n,!1,null,"7c337432",null);t["default"]=d.exports},"44e1":function(e,t,o){},"575f":function(e,t,o){"use strict";var l=o("44e1"),n=o.n(l);n.a},"71f6":function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));o("ac6a"),o("456d");var l=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(l["a"])(n,e)}})),e}},f286:function(e,t,o){"use strict";var l=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(l["a"])(n,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bc8a8204"],{"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",{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("aa47"),o=a("d11a"),s=a("5b4e"),c=o["a"].getMemberData,l=o["a"].getServiceData,d=o["a"].saveSortMember,m={name:"DataDimensionPage",components:{},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;i["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};d(t).then((function(t){e.getMemberCrad(),e.getServiceNum(),"0000"==t.code?s["a"].showmsg("操作成功","success"):s["a"].showmsg(t.message||"接口异常","warning")})).catch((function(e){}))},getMemberCrad:function(){var e=this;e.loadingMember=!0;var t={enterpriseId:e.brandId};c(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};l(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())}}},b=m,v=(a("b7cf"),a("2877")),u=Object(v["a"])(b,n,r,!1,null,"6c03d857",null);t["default"]=u.exports},b7cf:function(e,t,a){"use strict";var n=a("e0b1"),r=a.n(n);r.a},e0b1:function(e,t,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-df65ed90"],{"150f":function(t,e,n){},"28a5":function(t,e,n){"use strict";var a=n("aae3"),o=n("cb7c"),r=n("ebd6"),i=n("0390"),c=n("9def"),s=n("5f1b"),l=n("520a"),u=n("79e5"),d=Math.min,f=[].push,p="split",m="length",h="lastIndex",v=4294967295,b=!u((function(){RegExp(v,"y")}));n("214f")("split",2,(function(t,e,n,u){var w;return w="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[m]||2!="ab"[p](/(?:ab)*/)[m]||4!="."[p](/(.?)(.?)/)[m]||"."[p](/()()/)[m]>1||""[p](/.?/)[m]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!a(t))return n.call(o,t,e);var r,i,c,s=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,p=void 0===e?v:e>>>0,b=new RegExp(t.source,u+"g");while(r=l.call(b,o)){if(i=b[h],i>d&&(s.push(o.slice(d,r.index)),r[m]>1&&r.index<o[m]&&f.apply(s,r.slice(1)),c=r[0][m],d=i,s[m]>=p))break;b[h]===r.index&&b[h]++}return d===o[m]?!c&&b.test("")||s.push(""):s.push(o.slice(d)),s[m]>p?s.slice(0,p):s}:"0"[p](void 0,0)[m]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,a){var o=t(this),r=void 0==n?void 0:n[e];return void 0!==r?r.call(n,o,a):w.call(String(o),n,a)},function(t,e){var a=u(w,t,this,e,w!==n);if(a.done)return a.value;var l=o(t),f=String(this),p=r(l,RegExp),m=l.unicode,h=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(b?"y":"g"),g=new p(b?l:"^(?:"+l.source+")",h),y=void 0===e?v:e>>>0;if(0===y)return[];if(0===f.length)return null===s(g,f)?[f]:[];var C=0,D=0,x=[];while(D<f.length){g.lastIndex=b?D:0;var S,_=s(g,b?f:f.slice(D));if(null===_||(S=d(c(g.lastIndex+(b?0:D)),f.length))===C)D=i(f,D,m);else{if(x.push(f.slice(C,D)),x.length===y)return x;for(var F=1;F<=_.length-1;F++)if(x.push(_[F]),x.length===y)return x;D=C=S}}return x.push(f.slice(C)),x}]}))},c7d7: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:"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)])])},o=[],r=n("3081"),i=n("d11a"),c=n("d157"),s=n("5b4e"),l=n("aa47"),u=i["a"].getGroupData,d=i["a"].getClassifyData,f=i["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(c["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 a=e.newIndex,o=e.oldIndex;if(a==o)return!1;var r=JSON.parse(JSON.stringify(n[t])),i=r.splice(o,1)[0];r.splice(a,0,i),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,h=(n("ed71"),n("2877")),v=Object(h["a"])(m,a,o,!1,null,"497467c6",null);e["default"]=v.exports},d157:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r}));n("c5f6"),n("a481"),n("28a5"),n("6b54");function a(t,e){var n,a=e||200;return function(){var e=this,o=arguments;n&&clearTimeout(n),n=setTimeout((function(){n=null,t.apply(e,o)}),a)}}function o(t,e){var n,a,o=e||200;return function(){var e=this,r=arguments,i=+new Date;n&&i-n<o?(clearTimeout(a),a=setTimeout((function(){n=i,t.apply(e,r)}),o)):(n=i,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 a=n("150f"),o=n.n(a);o.a}}]);
\ No newline at end of file
......@@ -4,81 +4,87 @@
* @Author: 无尘
* @Date: 2020-08-27 11:36:51
* @LastEditors: 无尘
* @LastEditTime: 2020-09-02 18:00:03
* @LastEditTime: 2020-09-02 18:26:40
-->
<template>
<div class="common-app-right">
<div class="data-dimension-tip">
<common-alert-tip :width="'100%'" :tip-content="tipContent"></common-alert-tip>
</div>
<div class="data-dimension-table flex">
<div class="data-dimension-table_left flex-1">
<div class="m-b-18">
<el-tooltip class="item" effect="dark" placement="right">
<div slot="content">
排序越靠上的权重越高,当一家门店拥有多个会员卡时,优先展示排序最靠上的会员卡
</div>
<span class="common-bottom-border table-title">会员卡权重</span>
</el-tooltip>
</div>
<el-table
ref="memberCardData"
:data="memberCardData"
row-key="memberCardId"
v-loading="loadingMember"
style="width: 100%">
<el-table-column prop="" label="" width="56" class-name="move-row-cell show-icon">
<template>
<span class="font-22 iconfont icontuozhuaiopen color-c0c4cc" style="cursor: move;"></span>
</template>
</el-table-column>
<el-table-column
prop="name"
label="会员卡名称"
show-overflow-tooltip>
</el-table-column>
</el-table>
<div>
<div class="data-dimension-tip">
<common-alert-tip :width="'100%'" :tip-content="tipContent"></common-alert-tip>
</div>
<div class="data-dimension-table_right flex-1">
<div class="m-b-18">
<el-tooltip class="item" effect="dark" placement="right">
<div slot="content">
排序越靠上的权重越高,当一家门店拥有多个服务号时,优先展示排序最靠上的服务号
</div>
<span class="common-bottom-border table-title">服务号权重</span>
</el-tooltip>
<div class="data-dimension-table flex">
<div class="data-dimension-table_left flex-1">
<div class="m-b-18">
<el-tooltip class="item" effect="dark" placement="right">
<div slot="content">
排序越靠上的权重越高,当一家门店拥有多个会员卡时,优先展示排序最靠上的会员卡
</div>
<span class="common-bottom-border table-title">会员卡权重</span>
</el-tooltip>
</div>
<el-table
ref="memberCardData"
:data="memberCardData"
row-key="memberCardId"
v-loading="loadingMember"
style="width: 100%">
<el-table-column prop="" label="" width="56" class-name="move-row-cell show-icon">
<template>
<span class="font-22 iconfont icontuozhuaiopen color-c0c4cc" style="cursor: move;"></span>
</template>
</el-table-column>
<el-table-column
prop="name"
label="会员卡名称"
show-overflow-tooltip>
</el-table-column>
</el-table>
</div>
<div class="data-dimension-table_right flex-1">
<div class="m-b-18">
<el-tooltip class="item" effect="dark" placement="right">
<div slot="content">
排序越靠上的权重越高,当一家门店拥有多个服务号时,优先展示排序最靠上的服务号
</div>
<span class="common-bottom-border table-title">服务号权重</span>
</el-tooltip>
</div>
<el-table
ref="serviceNumData"
:data="serviceNumData"
row-key="serviceCardId"
v-loading="loadingService"
style="width: 100%">
<el-table-column prop="" label="" width="56" class-name="move-row-cell show-icon">
<template>
<span class="font-22 iconfont icontuozhuaiopen color-c0c4cc" style="cursor: move;"></span>
</template>
</el-table-column>
<el-table-column
prop="name"
label="服务号名称"
show-overflow-tooltip>
</el-table-column>
</el-table>
</div>
<el-table
ref="serviceNumData"
:data="serviceNumData"
row-key="serviceCardId"
v-loading="loadingService"
style="width: 100%">
<el-table-column prop="" label="" width="56" class-name="move-row-cell show-icon">
<template>
<span class="font-22 iconfont icontuozhuaiopen color-c0c4cc" style="cursor: move;"></span>
</template>
</el-table-column>
<el-table-column
prop="name"
label="服务号名称"
show-overflow-tooltip>
</el-table-column>
</el-table>
</div>
</div>
</div>
</template>
<script>
import commonAlertTip from '@/components/common/common-alert-tip.vue';
import Sortable from 'sortablejs';
import fetch from '@/api/my-customer-app.js';
const { getMemberData, getServiceData, saveSortMember } = fetch;
import showMsg from '@/common/js/showmsg.js';
export default {
name: 'DataDimensionPage',
components: {},
components: {
commonAlertTip
},
props: {
brandId: {
type: String,
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-09-02 09:32:26
* @LastEditTime: 2020-09-02 18:27:36
-->
<template>
<div class="my-customer-wrap common-set-wrap">
......@@ -190,8 +190,10 @@ export default {
width: calc(100% - 120px);
padding-left: 10px;
background: #f0f2f5;
.common-set-wrap {
.common-app-right {
height: 100%;
padding: 20px;
box-sizing: border-box;
background: #fff;
}
}
......
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