Commit ee0686c6 by crushh

update: dist

parents 512d9e45 ab21f8e1
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.76.css><script src=//at.alicdn.com/t/font_1628375_vcg1gtmx7lb.js></script><link rel=stylesheet href=//at.alicdn.com/t/font_2859043_udehp133w1.css><link rel="shortcut icon" href=./favicon.ico><link href=./static/css/app.be3e40552ba9ebc833fc96a658bcc474.css rel=stylesheet></head><body class=damolish><div id=app></div><script>(function() { <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.76.css><script src=//at.alicdn.com/t/font_1628375_vcg1gtmx7lb.js></script><link rel=stylesheet href=//at.alicdn.com/t/font_2859043_udehp133w1.css><link rel="shortcut icon" href=./favicon.ico><link href=./static/css/app.002d8528f72f361682d7d21f7987bf33.css rel=stylesheet></head><body class=damolish><div id=app></div><script>(function() {
var src = '/component/static/import-component.js?timestrap='+ new Date().getTime(); var src = '/component/static/import-component.js?timestrap='+ new Date().getTime();
var host = window.location.host; var host = window.location.host;
host = host.indexOf('localhost') > -1 || host.indexOf('192.168') > -1 ? 'gicdev.demogic.com' : host; host = host.indexOf('localhost') > -1 || host.indexOf('192.168') > -1 ? 'gicdev.demogic.com' : host;
document.write('<script src="//'+ host + src +'"><\/script>') document.write('<script src="//'+ host + src +'"><\/script>')
})()</script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/common.1.0.3.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-data.1.0.11.js></script><script type=text/javascript src=./static/js/manifest.cb13849f90763a5ca0d8.js></script><script type=text/javascript src=./static/js/vendor.96dfd34847898b688720.js></script><script type=text/javascript src=./static/js/app.37c77743b78a66e18832.js></script></body></html> })()</script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/common.1.0.3.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-data.1.0.11.js></script><script type=text/javascript src=./static/js/manifest.f6090aa18ff7e7aefeb5.js></script><script type=text/javascript src=./static/js/vendor.96dfd34847898b688720.js></script><script type=text/javascript src=./static/js/app.37c77743b78a66e18832.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([27,64],{"5k/n":function(t,e){},DWsn:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Xxa5"),i=a.n(s),n=a("exGp"),o=a.n(n),l=a("DvcT"),d=a("YQXN"),c=a("PI0u"),r=a("P9l9"),u=a("Ch4/"),f={name:"actCodeDetail",components:{actCodeDetailInfo:l.default,actCodeDetailStatistics:d.default},props:{hmId:{type:String,default:""}},data:function(){return{fixedHeight:237,codeInfo:{},loading:!1,activeName:"first",codeStatusLis:[{value:"",style:""},{value:"正常",style:"success"},{value:"已作废",style:"danger"},{value:"待生效",style:"info"},{value:"正常-今日已达上限",style:"warning"}],statusIndex:1,scrollTop:0,useMemberList:[]}},methods:{downloadQR:function(){var t,e,a,s;t=this.codeInfo.hmId+"_"+this.codeInfo.name,e=this.codeInfo.wxQrcode,a=e,(s=new XMLHttpRequest).open("GET",a,!0),s.responseType="blob",s.onload=function(e){var a=new Blob([s.response]),i=window.URL.createObjectURL(a),n=document.createElement("a");n.href=i,n.download=t+".png",n.click()},s.send()},modifyCode:function(){this.$router.push("/actCodeEdit?hmId="+this.$route.query.hmId)},discardCode:function(){var t=this,e=this;this.$confirm("确认要作废该活码?此操作将永久废弃该活码,请确保不影响其他投放使用!","作废提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){e.loading=!0,Object(r.a)("/haoban-manage3-web/hm/qrcode/del",{hmId:e.$route.query.hmId}).then(function(a){e.loading=!1,0!=a.data.code?u.a.errorMsg(a.data):t.getActCodeInfo()})})},getActCodeInfo:function(){var t=this;return o()(i.a.mark(function e(){var a;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!((a=t).$route.query.hmId.length<=0)){e.next=3;break}return e.abrupt("return");case 3:a.loading=!0,Object(r.b)("/haoban-manage3-web/hm/qrcode/detail",{hmId:a.$route.query.hmId}).then(function(t){var e=t.data;if(a.loading=!1,0==e.code)return a.statusIndex=1==e.result.statusFlag&&1==e.result.overFlag?4:e.result.statusFlag,a.codeInfo=e.result,void(a.fixedHeight=2!=a.codeInfo.statusFlag?280:237);u.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})});case 5:case"end":return e.stop()}},e,t)}))()},scrollMethod:Object(c.b)(function(){this.scrollTop=document.getElementById("hb-layout-pager-one").scrollTop},100),useMemberData:function(t){this.useMemberList=t}},mounted:function(){this.activeName=this.$route.query.activeName||"first",this.getActCodeInfo(),document.getElementById("hb-layout-pager-one").addEventListener("scroll",this.scrollMethod)},destroyed:function(){document.getElementById("hb-layout-pager-one").removeEventListener("scroll",this.scrollMethod)}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"app-detail-wrap p-20"},[a("div",{staticClass:"flex p-b-40"},[2==t.codeInfo.hmType?a("el-image",{staticClass:"img-200",attrs:{src:t.codeInfo.wxQrcode}}):t._e(),t._v(" "),a("div",{staticClass:"text-ellipsis-white color-303133",style:1==t.codeInfo.hmType?"width:100%;":"width: calc(100% - 230px);"},[a("div",{staticClass:"p-t-12 flex height-22"},[a("div",{staticClass:"font-16 line-22 text-ellipsis-white font-w-500"},[t._v(t._s(t.codeInfo.name))]),t._v(" "),a("el-tag",{staticStyle:{"margin-left":"8px"},attrs:{size:"small",effect:"dark",type:t.codeStatusLis[t.statusIndex].style}},[t._v(t._s(t.codeStatusLis[t.statusIndex].value))])],1),t._v(" "),a("p",{staticClass:"font-14 m-t-10 "},[t._v("ID:"+t._s(t.codeInfo.hmCode))]),t._v(" "),a("div",{staticClass:"flex font-14",staticStyle:{"padding-top":"20px"}},[a("div",{staticClass:"flex flex-1"},[a("div",{staticClass:"font-14 line-22"},[t._v("\n 类       型:\n ")]),t._v(" "),a("el-tag",{attrs:{size:"small"}},[t._v(t._s(1==t.codeInfo.hmType?"单人活码":"多人活码"))])],1),t._v(" "),a("div",{staticClass:"font-14 line-22 flex-1"},[t._v("创建人:"+t._s(t.codeInfo.creatorName||"--"))]),t._v(" "),a("div",{staticClass:"font-14 line-22 flex-1"},[t._v("创建时间:"+t._s(t._f("formatTimeStamp")(t.codeInfo.createTime)))])]),t._v(" "),a("div",{staticClass:"flex font-14",staticStyle:{"padding-top":"15px"}},[a("div",{staticClass:"font-14 line-22 flex-1"},[t._v("所属分组:"+t._s(t.codeInfo.hmGroupName||"--"))]),t._v(" "),a("div",{staticClass:"flex flex-1"},[a("div",{staticClass:"font-14 line-22"},[t._v("自动通过好友:")]),t._v(" "),a("el-tag",{attrs:{size:"small",type:1==t.codeInfo.passFlag?"":"danger"}},[t._v(t._s(1==t.codeInfo.passFlag?"已开启":"已关闭"))])],1),t._v(" "),a("div",{staticClass:"flex flex-1"},[a("div",{staticClass:"font-14 line-22"},[t._v("活码标签:")]),t._v(" "),a("el-tooltip",{attrs:{disabled:0!=t.codeInfo.memberLabelStatus,content:"已删除",placement:"top"}},[a("el-tag",{attrs:{size:"small",type:0==t.codeInfo.memberLabelStatus?"warning":"info"}},[t._v(t._s(t.codeInfo.memberLabelName||"--"))])],1)],1)]),t._v(" "),2!=t.codeInfo.statusFlag&&t.codeInfo.statusFlag?a("div",{staticClass:"flex",staticStyle:{"padding-top":"20px"}},[2==t.codeInfo.hmType&&1==t.codeInfo.statusFlag?a("el-button",{staticStyle:{width:"120px","margin-right":"12px"},attrs:{icon:"el-icon-download",type:"primary"},on:{click:t.downloadQR}},[t._v("下载二维码")]):t._e(),t._v(" "),a("el-button",{staticStyle:{width:"98px"},attrs:{type:"primary",plain:""},on:{click:t.modifyCode}},[t._v("编辑")]),t._v(" "),a("el-button",{staticClass:"button-discard specter",style:2==t.codeInfo.hmType&&t.useMemberList.length>0?"":"border-color: #F5222D;",attrs:{type:"danger",plain:"",disabled:2==t.codeInfo.hmType&&t.useMemberList.length>0},on:{click:t.discardCode}},[t._v("作废")])],1):t._e()])],1),t._v(" "),t.scrollTop>=t.fixedHeight?a("div",{staticClass:"fixed-tab"},[a("el-tabs",{attrs:{type:"card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"详情信息",name:"first"}},[a("div")]),t._v(" "),a("el-tab-pane",{attrs:{label:"数据统计",name:"second"}},[a("div")])],1)],1):t._e(),t._v(" "),a("el-tabs",{attrs:{type:"card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.$getButtonLimit(this.$buttonCode.infoActCode)?a("el-tab-pane",{attrs:{label:"详情信息",name:"first","limit-code":t.$buttonCode.infoActCode}},[a("act-code-detail-info",{attrs:{"enterprise-id":t.codeInfo.enterpriseId,"welcome-id":t.codeInfo.welcomeId,"hm-id":t.$route.query.hmId},on:{useMemberList:t.useMemberData}})],1):t._e(),t._v(" "),t.$getButtonLimit(this.$buttonCode.dataActCode)?a("el-tab-pane",{attrs:{label:"数据统计",name:"second","limit-code":t.$buttonCode.dataActCode}},[a("act-code-detail-statistics",{attrs:{"hm-id":t.$route.query.hmId}})],1):t._e()],1)],1)},staticRenderFns:[]};var m=a("VU/8")(f,v,!1,function(t){a("5k/n")},"data-v-636d090a",null);e.default=m.exports},YQXN:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("/p6h"),i=a("eaYI"),n=a("P9l9"),o=a("ckKa"),l=a("Ch4/"),d={name:"act-code-detail-statistics",components:{dataDetail:s.default,newAddChart:i.default},props:{hmId:{type:String,default:function(){return""}}},mixins:[o.a],data:function(){return{loading:!1,overViewData:{addNumT:0,addNum:0,dateList:[]}}},methods:{explain:function(t){window.open(t)},getChartList:function(){var t=this,e={inFields:{hmId:t.hmId,startTime:t.dateDefault[0]+" 00:00:00",endTime:t.dateDefault[1]+" 23:59:59",type:t.dateKey>=2?2:1}};t.loading=!0,Object(n.f)("/haoban-manage3-web/hm/qrcode/detail-data-statistics",e).then(function(e){var a=e.data;if(t.loading=!1,0==a.code){var s=a.result||{addNumT:0,addNum:0,dateList:[]};return s.dateList.map(function(t){t["新增人数"]=t.addNum}),void(t.overViewData=s)}l.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},onDateChange:function(){this.dateKey=-1,this.getChartList()}},mounted:function(){this.btnChange(0)}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",[a("div",{staticClass:"flex justify-between title"},[t._m(0),t._v(" "),a("div",{staticClass:"flex"},[a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:code",arg:"code"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("ul",{staticClass:"flex"},[a("li",{staticClass:"data-total-cell m-r-22"},[a("div",{staticClass:"flex p-20"},[t._m(1),t._v(" "),a("div",{staticClass:"m-l-16"},[a("div",{staticClass:"font-14 color-606266 line-20"},[t._v("新增总人数")]),t._v(" "),a("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNumT||0))])])])]),t._v(" "),a("li",{staticClass:"data-total-cell "},[a("div",{staticClass:"flex p-20"},[t._m(2),t._v(" "),a("div",{staticClass:"m-l-16"},[a("div",{staticClass:"font-14 color-606266 line-20"},[t._v("今日新增人数")]),t._v(" "),a("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNum||0))])])])])]),t._v(" "),a("div",{staticClass:"flex justify-end"},[a("div",{staticClass:"rightBox"},[t._l(t.dateLis,function(e,s){return a("ul",{key:e.key,staticClass:"datebox"},[a("li",{staticClass:"dateLisBox",class:t.dateKey==s?"activeClass":"noActive",on:{click:function(e){return t.btnChange(s)}}},[t._v(t._s(e.value))])])}),t._v(" "),a("el-date-picker",{staticClass:"w256",attrs:{type:"daterange","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期","default-time":["00:00:00","23:59:59"],"picker-options":t.pickerOptions(),"value-format":"yyyy-MM-dd",format:[2,3,4].includes(t.dateKey)?"yyyy-MM":"yyyy-MM-dd",clearable:!1},on:{change:t.onDateChange},model:{value:t.dateDefault,callback:function(e){t.dateDefault=e},expression:"dateDefault"}})],2)]),t._v(" "),a("new-add-chart",{attrs:{charData:t.overViewData.dateList,id:"new-add-chart"}})],1),t._v(" "),a("div",[a("div",{staticClass:"flex justify-between title"},[t._m(3),t._v(" "),a("div",{staticClass:"flex"},[a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:code",arg:"code"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("data-detail",{attrs:{id:t.hmId}})],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex"},[e("div",{staticClass:"blue-block"}),this._v(" "),e("span",{staticClass:"font-w-500 color-303133"},[this._v("概览")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"icon-background"},[e("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-1890ff font-28"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"icon-background",staticStyle:{background:"#d9f3fd"}},[e("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-35C4FC font-28"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex"},[e("div",{staticClass:"blue-block"}),this._v(" "),e("span",{staticClass:"font-w-500 color-303133"},[this._v("查看明细")])])}]};var r=a("VU/8")(d,c,!1,function(t){a("kRHg")},"data-v-b0df7d22",null);e.default=r.exports},kRHg:function(t,e){}}); webpackJsonp([27,64],{"5k/n":function(t,e){},DWsn:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Xxa5"),i=a.n(s),n=a("exGp"),o=a.n(n),l=a("DvcT"),d=a("YQXN"),c=a("PI0u"),r=a("P9l9"),u=a("Ch4/"),f={name:"actCodeDetail",components:{actCodeDetailInfo:l.default,actCodeDetailStatistics:d.default},props:{hmId:{type:String,default:""}},data:function(){return{fixedHeight:237,codeInfo:{},loading:!1,activeName:"first",codeStatusLis:[{value:"",style:""},{value:"正常",style:"success"},{value:"已作废",style:"danger"},{value:"待生效",style:"info"},{value:"正常-今日已达上限",style:"warning"}],statusIndex:1,scrollTop:0,useMemberList:[]}},methods:{downloadQR:function(){var t,e,a,s;t=this.codeInfo.hmId+"_"+this.codeInfo.name,e=this.codeInfo.wxQrcode,a=e,(s=new XMLHttpRequest).open("GET",a,!0),s.responseType="blob",s.onload=function(e){var a=new Blob([s.response]),i=window.URL.createObjectURL(a),n=document.createElement("a");n.href=i,n.download=t+".png",n.click()},s.send()},modifyCode:function(){this.$router.push("/actCodeEdit?hmId="+this.$route.query.hmId)},discardCode:function(){var t=this,e=this;this.$confirm("确认要作废该活码?此操作将永久废弃该活码,请确保不影响其他投放使用!","作废提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){e.loading=!0,Object(r.a)("/haoban-manage3-web/hm/qrcode/del",{hmId:e.$route.query.hmId}).then(function(a){e.loading=!1,0!=a.data.code?u.a.errorMsg(a.data):t.getActCodeInfo()})})},getActCodeInfo:function(){var t=this;return o()(i.a.mark(function e(){var a;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!((a=t).$route.query.hmId.length<=0)){e.next=3;break}return e.abrupt("return");case 3:a.loading=!0,Object(r.b)("/haoban-manage3-web/hm/qrcode/detail",{hmId:a.$route.query.hmId}).then(function(t){var e=t.data;if(a.loading=!1,0==e.code)return a.statusIndex=1==e.result.statusFlag&&1==e.result.overFlag?4:e.result.statusFlag,a.codeInfo=e.result,void(a.fixedHeight=2!=a.codeInfo.statusFlag?280:237);u.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})});case 5:case"end":return e.stop()}},e,t)}))()},scrollMethod:Object(c.b)(function(){this.scrollTop=document.getElementById("hb-layout-pager-one").scrollTop},100),useMemberData:function(t){this.useMemberList=t}},mounted:function(){this.activeName=this.$route.query.activeName||"first",this.getActCodeInfo(),document.getElementById("hb-layout-pager-one").addEventListener("scroll",this.scrollMethod)},destroyed:function(){document.getElementById("hb-layout-pager-one").removeEventListener("scroll",this.scrollMethod)}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"app-detail-wrap p-20"},[a("div",{staticClass:"flex p-b-40"},[2==t.codeInfo.hmType?a("el-image",{staticClass:"img-200",attrs:{src:t.codeInfo.wxQrcode}}):t._e(),t._v(" "),a("div",{staticClass:"text-ellipsis-white color-303133",style:1==t.codeInfo.hmType?"width:100%;":"width: calc(100% - 230px);"},[a("div",{staticClass:"p-t-12 flex height-22"},[a("div",{staticClass:"font-16 line-22 text-ellipsis-white font-w-500"},[t._v(t._s(t.codeInfo.name))]),t._v(" "),a("el-tag",{staticStyle:{"margin-left":"8px"},attrs:{size:"small",effect:"dark",type:t.codeStatusLis[t.statusIndex].style}},[t._v(t._s(t.codeStatusLis[t.statusIndex].value))])],1),t._v(" "),a("p",{staticClass:"font-14 m-t-10 "},[t._v("ID:"+t._s(t.codeInfo.hmCode))]),t._v(" "),a("div",{staticClass:"flex font-14",staticStyle:{"padding-top":"20px"}},[a("div",{staticClass:"flex flex-1"},[a("div",{staticClass:"font-14 line-22"},[t._v("\n 类       型:\n ")]),t._v(" "),a("el-tag",{attrs:{size:"small"}},[t._v(t._s(1==t.codeInfo.hmType?"单人活码":"多人活码"))])],1),t._v(" "),a("div",{staticClass:"font-14 line-22 flex-1"},[t._v("创建人:"+t._s(t.codeInfo.creatorName||"--"))]),t._v(" "),a("div",{staticClass:"font-14 line-22 flex-1"},[t._v("创建时间:"+t._s(t._f("formatTimeStamp")(t.codeInfo.createTime)))])]),t._v(" "),a("div",{staticClass:"flex font-14",staticStyle:{"padding-top":"15px"}},[a("div",{staticClass:"font-14 line-22 flex-1"},[t._v("所属分组:"+t._s(t.codeInfo.hmGroupName||"--"))]),t._v(" "),a("div",{staticClass:"flex flex-1"},[a("div",{staticClass:"font-14 line-22"},[t._v("自动通过好友:")]),t._v(" "),a("el-tag",{attrs:{size:"small",type:1==t.codeInfo.passFlag?"":"danger"}},[t._v(t._s(1==t.codeInfo.passFlag?"已开启":"已关闭"))])],1),t._v(" "),a("div",{staticClass:"flex flex-1"},[a("div",{staticClass:"font-14 line-22"},[t._v("活码标签:")]),t._v(" "),a("el-tooltip",{attrs:{disabled:0!=t.codeInfo.memberLabelStatus,content:"已删除",placement:"top"}},[a("el-tag",{attrs:{size:"small",type:0==t.codeInfo.memberLabelStatus?"warning":"info"}},[t._v(t._s(t.codeInfo.memberLabelName||"--"))])],1)],1)]),t._v(" "),2!=t.codeInfo.statusFlag&&t.codeInfo.statusFlag?a("div",{staticClass:"flex",staticStyle:{"padding-top":"20px"}},[2==t.codeInfo.hmType&&1==t.codeInfo.statusFlag?a("el-button",{staticStyle:{width:"120px","margin-right":"12px"},attrs:{icon:"el-icon-download",type:"primary"},on:{click:t.downloadQR}},[t._v("下载二维码")]):t._e(),t._v(" "),a("el-button",{staticStyle:{width:"98px"},attrs:{type:"primary",plain:""},on:{click:t.modifyCode}},[t._v("编辑")]),t._v(" "),a("el-button",{staticClass:"button-discard specter",style:2==t.codeInfo.hmType&&t.useMemberList.length>0?"":"border-color: #F5222D;",attrs:{type:"danger",plain:"",disabled:2==t.codeInfo.hmType&&t.useMemberList.length>0},on:{click:t.discardCode}},[t._v("作废")])],1):t._e()])],1),t._v(" "),t.scrollTop>=t.fixedHeight?a("div",{staticClass:"fixed-tab"},[a("el-tabs",{attrs:{type:"card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"详情信息",name:"first"}},[a("div")]),t._v(" "),a("el-tab-pane",{attrs:{label:"数据统计",name:"second"}},[a("div")])],1)],1):t._e(),t._v(" "),a("el-tabs",{attrs:{type:"card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.$getButtonLimit(this.$buttonCode.infoActCode)?a("el-tab-pane",{attrs:{label:"详情信息",name:"first","limit-code":t.$buttonCode.infoActCode}},[a("act-code-detail-info",{attrs:{"enterprise-id":t.codeInfo.enterpriseId,"welcome-id":t.codeInfo.welcomeId,"hm-id":t.$route.query.hmId},on:{useMemberList:t.useMemberData}})],1):t._e(),t._v(" "),t.$getButtonLimit(this.$buttonCode.dataActCode)?a("el-tab-pane",{attrs:{label:"数据统计",name:"second","limit-code":t.$buttonCode.dataActCode}},[a("act-code-detail-statistics",{attrs:{"hm-id":t.$route.query.hmId}})],1):t._e()],1)],1)},staticRenderFns:[]};var m=a("VU/8")(f,v,!1,function(t){a("5k/n")},"data-v-636d090a",null);e.default=m.exports},YQXN:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("/p6h"),i=a("eaYI"),n=a("P9l9"),o=a("ckKa"),l=a("Ch4/"),d={name:"act-code-detail-statistics",components:{dataDetail:s.default,newAddChart:i.default},props:{hmId:{type:String,default:function(){return""}}},mixins:[o.a],data:function(){return{loading:!1,overViewData:{addNumT:0,addNum:0,dateList:[]}}},methods:{explain:function(t){window.open(t)},getChartList:function(){var t=this,e={inFields:{hmId:t.hmId,startTime:t.dateDefault[0]+" 00:00:00",endTime:t.dateDefault[1]+" 23:59:59",type:t.dateKey>=2?2:1}};t.loading=!0,Object(n.f)("/haoban-manage3-web/hm/qrcode/detail-data-statistics",e).then(function(e){var a=e.data;if(t.loading=!1,0==a.code){var s=a.result||{addNumT:0,addNum:0,dateList:[]};return s.dateList.map(function(t,e){t["新增人数"]=t.addNum}),void(t.overViewData=s)}l.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},onDateChange:function(){this.dateKey=-1,this.getChartList()}},mounted:function(){this.btnChange(0)}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("div",[a("div",{staticClass:"flex justify-between title"},[t._m(0),t._v(" "),a("div",{staticClass:"flex"},[a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:code",arg:"code"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("ul",{staticClass:"flex"},[a("li",{staticClass:"data-total-cell m-r-22"},[a("div",{staticClass:"flex p-20"},[t._m(1),t._v(" "),a("div",{staticClass:"m-l-16"},[a("div",{staticClass:"font-14 color-606266 line-20"},[t._v("新增总人数")]),t._v(" "),a("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNumT||0))])])])]),t._v(" "),a("li",{staticClass:"data-total-cell "},[a("div",{staticClass:"flex p-20"},[t._m(2),t._v(" "),a("div",{staticClass:"m-l-16"},[a("div",{staticClass:"font-14 color-606266 line-20"},[t._v("今日新增人数")]),t._v(" "),a("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNum||0))])])])])]),t._v(" "),a("div",{staticClass:"flex justify-end"},[a("div",{staticClass:"rightBox"},[t._l(t.dateLis,function(e,s){return a("ul",{key:e.key,staticClass:"datebox"},[a("li",{staticClass:"dateLisBox",class:t.dateKey==s?"activeClass":"noActive",on:{click:function(e){return t.btnChange(s)}}},[t._v(t._s(e.value))])])}),t._v(" "),a("el-date-picker",{staticClass:"w256",attrs:{type:"daterange","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期","default-time":["00:00:00","23:59:59"],"picker-options":t.pickerOptions(),"value-format":"yyyy-MM-dd",format:[2,3,4].includes(t.dateKey)?"yyyy-MM":"yyyy-MM-dd",clearable:!1},on:{change:t.onDateChange},model:{value:t.dateDefault,callback:function(e){t.dateDefault=e},expression:"dateDefault"}})],2)]),t._v(" "),a("new-add-chart",{attrs:{charData:t.overViewData.dateList,id:"new-add-chart"}})],1),t._v(" "),a("div",[a("div",{staticClass:"flex justify-between title"},[t._m(3),t._v(" "),a("div",{staticClass:"flex"},[a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:code",arg:"code"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("data-detail",{attrs:{id:t.hmId}})],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex"},[e("div",{staticClass:"blue-block"}),this._v(" "),e("span",{staticClass:"font-w-500 color-303133"},[this._v("概览")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"icon-background"},[e("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-1890ff font-28"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"icon-background",staticStyle:{background:"#d9f3fd"}},[e("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-35C4FC font-28"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex"},[e("div",{staticClass:"blue-block"}),this._v(" "),e("span",{staticClass:"font-w-500 color-303133"},[this._v("查看明细")])])}]};var r=a("VU/8")(d,c,!1,function(t){a("zJaC")},"data-v-b1e52246",null);e.default=r.exports},zJaC:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([43],{"3PFp":function(e,t){},ATNk:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=o("mvHQ"),r=o.n(s),l=o("PeHS"),a={props:{selected:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[]}}},data:function(){return{departmentVisible:!1,props:{key:"storeId",label:"storeName",isOver:"isOver"}}},methods:{change:function(e){console.log(e),this.$emit("change",e)},renderContent:function(e,t){var o=t.isOver,s=t.storeCode,r=t.storeId,l=t.storeName;return console.log(o,s,r,l),e("p",[e("p",l),e("p",o)])}}},n={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-popover",{staticStyle:{"min-width":"357px"},attrs:{placement:"bottom"},model:{value:e.departmentVisible,callback:function(t){e.departmentVisible=t},expression:"departmentVisible"}},[o("dm-simple-transfer",{attrs:{props:e.props,data:e.data,"item-size":66,titles:["选择门店","已选门店"],filterable:"","filter-placeholder":"请输入门店名称/code"},on:{change:e.change},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.option;return o("div",{},[o("p",[e._v(e._s(s.storeName))]),e._v(" "),o("p",{staticStyle:{"font-size":"12px","line-height":"18px"}},[e._v(e._s(s.storeCode))]),e._v(" "),o("p",{directives:[{name:"show",rawName:"v-show",value:0==s.isOver,expression:"option.isOver == 0"}],staticClass:"isOver"},[e._v("所有导购今日添加已到上限")])])}}]),model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}}),e._v(" "),o("div",{staticClass:"show-select-num cursor-pointer w-250",attrs:{slot:"reference"},slot:"reference"},[e._v("\n 已经选择"+e._s(e.selected&&e.selected.length)+"家门店\n "),o("span",{staticClass:"el-input__suffix"},[o("span",{staticClass:"el-input__suffix-inner"},[o("i",{class:["el-select__caret el-input__icon el-icon-arrow-up",e.departmentVisible?"is-reverse":""]})])])])],1)},staticRenderFns:[]};var i=o("VU/8")(a,n,!1,function(e){o("3PFp")},"data-v-469993fa",null).exports,c=o("42hH"),m=o("RSOD"),u=o("PI0u");var d=function(e){e.$nextTick(function(e){document.getElementsByClassName("is-error")[0].scrollIntoView({block:"center",behavior:"smooth"})})},f={data:function(){var e=this;return{scrollToError:d,tagsDialogVisible:!1,landingPage:{pageSearchText:"",pageNum:1,pageSize:20},welcomeType:1,landingLoading:!1,loading:!1,landingData:[],total:0,landingForm:{},isEdit:"edit"==this.$route.meta.type,isAdd:"add"==this.$route.meta.type,rules:{name:{required:!0,message:"请输入链接名称"},memberLabelId:{required:!0,message:"请选择链接标签"},storeList:{required:!0,validator:function(t,o,s){if(1==e.form.customRuleJson.open&&!e.form.storeList.length)return s(new Error("请选择门店"));s()}}},storeData:[],form:{linkType:1,memberLabelName:"",memberLabelId:"",storeList:[],name:"",pageId:"",welcomeId:"",remark:"",storeRuleJson:{fw_store:{open:1,zs:1,dz:0,dy:0},xg_store:{open:1,zs:1,dz:0,dy:0}},customRuleJson:{open:1,store_type:1,store:{dz:1,dy:0,ndz:1,ndy:0},city_store:{open:1,dz:1,dy:0}}},wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",btnLoading:!1}},components:{selectShop:i,welcomeItem:c.default,previewPage:m.a},mounted:function(){var e=this;this.getList(),document.addEventListener("visibilitychange",function(){"visible"==document.visibilityState&&(e.landingPage={pageSearchText:"",pageNum:1,pageSize:20},e.getList())}),this.isEdit?this.getDetail():this.getStoreList()},methods:{toInput:Object(u.a)(function(e,t){this.getList()},500),getStoreList:function(){var e=this;Object(l.w)({pageSize:99999}).then(function(t){var o=t.data.result.result;e.storeData=o||[],e.form.storeList&&e.form.storeList.length&&e.storeData.map(function(t){return t.checked=e.form.storeList.some(function(e){return e.storeId==t.storeId}),t})})},getDetail:function(){var e=this;this.loading=!0,Object(l.n)({linkId:this.$route.params.id}).then(function(t){var o=t.data.result;if(o){var s=o.link,r=o.page;s.customRuleJson=JSON.parse(s.customRuleJson),s.storeRuleJson=JSON.parse(s.storeRuleJson),s.storeList=s.storeList?s.storeList:[],e.form=s,e.form.welcomeId||(e.welcomeType=2),e.landingForm=r,e.getStoreList()}}).finally(function(t){e.loading=!1})},saveTagPop:function(e){var t=e.tagItemId,o=e.tagItemName;this.form.memberLabelName=o,this.form.memberLabelId=t,this.form.memberLabelStatus=1,this.$refs.form.validateField("memberLabelId")},handleTableRowClick:function(e){this.form.pageId=e.pageId},handleTagCloseTag:function(){this.form.memberLabelName="",this.form.memberLabelId=""},handleTransferChange:function(e){console.log(e),this.form.storeList=e,this.$refs.form.validateField("storeList")},getList:function(){var e=this;this.landingLoading=!0,Object(l.j)(this.landingPage).then(function(t){var o=t.data.result,s=o.result,r=o.totalCount;s&&(e.total=r,e.landingData=s)}).finally(function(t){e.landingLoading=!1})},getCurrentRow:function(e){console.log(e),this.landingForm=e,this.form.pageId=e.pageId},addTemp:function(){window.open("/haoban-3/#/ladingPageAdd")},disabledProperty:function(e,t,o,s){return[].concat(Array.prototype.slice.call(arguments)).filter(function(e){return 1==e}).length<=1},save:function(){var e=this;if(this.$refs.welcomeItem.submit())if(this.form.pageId)if(this.form.storeRuleJson.fw_store.open||this.form.storeRuleJson.xg_store.open||this.form.customRuleJson.open)if(this.isEdit&&0==this.form.memberLabelStatus)this.$confirm("关联的标签在GIC中已被删除,无法统计和查看添加好友客户数据,为确保后续客户数据统计,请重新关联标签","关联的标签已被删除,请重新关联标签",{confirmButtonText:"选择标签",cancelButtonText:"取消",type:"warning"}).then(function(t){e.form.memberLabelId="",e.form.memberLabelName="",e.$refs.form.validateField("memberLabelId"),e.$nextTick(function(e){document.getElementsByClassName("memberTag-form-item")[0].scrollIntoView({block:"center",behavior:"smooth"})})});else{var t=JSON.parse(r()(this.form));0==t.storeRuleJson.fw_store.open&&(t.storeRuleJson.fw_store={open:0,zs:1,dz:0,dy:0}),0==t.storeRuleJson.xg_store.open&&(t.storeRuleJson.xg_store={open:0,zs:1,dz:0,dy:0}),0==t.customRuleJson.open&&(t.customRuleJson={open:0,store_type:1,store:{dz:1,dy:0,ndz:1,ndy:0},city_store:{open:1,dz:1,dy:0}},t.storeList=[]),0==t.customRuleJson.city_store.open&&(t.customRuleJson.city_store={open:0,dz:1,dy:0}),t.storeRuleJson=r()(t.storeRuleJson),t.customRuleJson=r()(t.customRuleJson),t.wxEnterpriseId=this.wxEnterpriseId,2==this.welcomeType&&(t.welcomeId=""),delete t.memberLabelStatus,this.$refs.form.validate(function(o){o?(e.btnLoading=!0,e.isAdd?Object(l.m)(t).then(function(t){setTimeout(function(){e.btnLoading=!1,e.$route.meta.refresh=!0,e.$router.go(-1)},1e3)}).catch(function(t){e.btnLoading=!1}):Object(l.p)(t).then(function(t){setTimeout(function(){e.btnLoading=!1,e.$router.go(-1)},1e3)}).catch(function(t){e.btnLoading=!1})):e.scrollToError(e)})}else this.$message.error("请设置分配规则");else this.$message.error("请选择落地页模板")}}},p={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"p-20"},[o("el-form",{ref:"form",attrs:{"label-width":"100px",model:e.form,size:"small",rules:e.rules}},[o("dm-sub-title",{attrs:{type:"line"}},[e._v("基础信息")]),e._v(" "),o("div",{staticClass:"section"},[o("el-form-item",{attrs:{label:"链接类型",required:""}},[o("el-radio-group",{attrs:{disabled:e.isEdit},model:{value:e.form.linkType,callback:function(t){e.$set(e.form,"linkType",t)},expression:"form.linkType"}},[o("el-radio",{attrs:{label:1}},[e._v("专用链接")]),e._v(" "),o("el-radio",{attrs:{label:2}},[e._v("通用链接")])],1),e._v(" "),1==e.form.linkType?o("p",{staticClass:"tips"},[e._v("仅用于在GIC系统中创建“短信模板”时直接添加引用,便于系统根据会员手机号为该引流链接带上特定会员参数,常用于通过短信的方式来促进存量会员的私域转化。")]):o("p",{staticClass:"tips"},[e._v("可复制此引流链接或下载链接二维码,通过不同营销活动、渠道等引导客户添加导购企微号,转化成私域流量。")])],1),e._v(" "),o("el-form-item",{attrs:{label:"链接名称",required:"",prop:"name"}},[o("el-input",{staticClass:"w-340",attrs:{placeholder:"请输入链接名称",maxlength:20,"show-word-limit":""},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"链接描述",prop:"remark"}},[o("el-input",{staticClass:"w-340",attrs:{placeholder:"请输入链接描述",type:"textarea",maxlength:100,autosize:{minRows:4,maxRows:6},"show-word-limit":""},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1),e._v(" "),o("el-form-item",{staticClass:"memberTag-form-item",attrs:{label:"链接标签",required:"",prop:"memberLabelId"}},[e.form.memberLabelId?o("el-tooltip",{attrs:{disabled:!e.isEdit||0!=e.form.memberLabelStatus,content:"已删除",placement:"top"}},[o("el-tag",{attrs:{closable:"",type:e.isEdit&&0==e.form.memberLabelStatus?"warning":""},on:{close:e.handleTagCloseTag}},[e._v(e._s(e.form.memberLabelName))])],1):o("el-button",{attrs:{plain:""},on:{click:function(t){e.tagsDialogVisible=!0}}},[o("i",{staticClass:"iconfont-components3 icon-cp-PlusOutlined addPic"}),e._v("添加标签")])],1),e._v(" "),o("dm-memberTag-group",{attrs:{isHb:"",visiable:e.tagsDialogVisible,projectName:"haobao-3"},on:{"update:visiable":function(t){e.tagsDialogVisible=t},save:e.saveTagPop}})],1),e._v(" "),o("dm-sub-title",{attrs:{type:"line"}},[e._v("分配规则")]),e._v(" "),o("p",{staticClass:"tips-info"},[e._v("\n 客户点击此引流链接,系统所分配的企微员工活码将根据下方层级配置区分优先级进行展示:"),o("br"),e._v(" "),o("span",{staticClass:"dot"}),e._v(" "),o("span",{staticStyle:{color:"#FA8C16"}},[e._v("优先级判断规则是“从上到下、从左到右”。")]),e._v("如:当上一层级匹配到结果后,则不会再执行下个层级的判断;同一层级内,当左边的勾选项匹配到结果,则不会再执行层级内右边的勾选项"),o("br"),e._v(" "),o("span",{staticClass:"dot"}),e._v("按照优先级匹配到的结果的大前提是该员工“可生成活码”且“并未达到当天添加好友上限”,否则则继续进行后续优先级的判断; "),o("br"),e._v(" "),o("span",{staticClass:"dot"}),e._v("若按照优先级所匹配到的结果已经与该客户是好友关系了,不会继续进行后续优先级的判断,直接展示该员工的活码。"),o("br")]),e._v(" "),o("div",{staticClass:"section"},[o("div",{staticClass:"level"},[o("div",{staticClass:"title"},[o("span",[e._v("层级一:服务门店")]),e._v(" "),o("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.storeRuleJson.fw_store.open,callback:function(t){e.$set(e.form.storeRuleJson.fw_store,"open",t)},expression:"form.storeRuleJson.fw_store.open"}})],1),e._v(" "),e.form.storeRuleJson.fw_store.open?o("div",{staticClass:"content m-t-20"},[o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.storeRuleJson.fw_store.zs,e.form.storeRuleJson.fw_store.dz,e.form.storeRuleJson.fw_store.dy)&&e.form.storeRuleJson.fw_store.zs},model:{value:e.form.storeRuleJson.fw_store.zs,callback:function(t){e.$set(e.form.storeRuleJson.fw_store,"zs",t)},expression:"form.storeRuleJson.fw_store.zs"}},[e._v("专属导购")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.storeRuleJson.fw_store.zs,e.form.storeRuleJson.fw_store.dz,e.form.storeRuleJson.fw_store.dy)&&e.form.storeRuleJson.fw_store.dz},model:{value:e.form.storeRuleJson.fw_store.dz,callback:function(t){e.$set(e.form.storeRuleJson.fw_store,"dz",t)},expression:"form.storeRuleJson.fw_store.dz"}},[e._v("店长")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.storeRuleJson.fw_store.zs,e.form.storeRuleJson.fw_store.dz,e.form.storeRuleJson.fw_store.dy)&&e.form.storeRuleJson.fw_store.dy},model:{value:e.form.storeRuleJson.fw_store.dy,callback:function(t){e.$set(e.form.storeRuleJson.fw_store,"dy",t)},expression:"form.storeRuleJson.fw_store.dy"}},[e._v("其他导购")])],1):e._e()]),e._v(" "),o("div",{staticClass:"level"},[o("div",{staticClass:"title"},[o("span",[e._v("层级二:协管门店")]),e._v(" "),o("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.storeRuleJson.xg_store.open,callback:function(t){e.$set(e.form.storeRuleJson.xg_store,"open",t)},expression:"form.storeRuleJson.xg_store.open"}})],1),e._v(" "),e.form.storeRuleJson.xg_store.open?o("p",{staticClass:"tips margin-num"},[e._v("当客户在多个协管门店下都有协管导购时,随机取一个协管门店导购")]):e._e(),e._v(" "),e.form.storeRuleJson.xg_store.open?o("div",{staticClass:"content"},[o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.storeRuleJson.xg_store.zs,e.form.storeRuleJson.xg_store.dz,e.form.storeRuleJson.xg_store.dy)&&e.form.storeRuleJson.xg_store.zs},model:{value:e.form.storeRuleJson.xg_store.zs,callback:function(t){e.$set(e.form.storeRuleJson.xg_store,"zs",t)},expression:"form.storeRuleJson.xg_store.zs"}},[e._v("协管门店导购")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.storeRuleJson.xg_store.zs,e.form.storeRuleJson.xg_store.dz,e.form.storeRuleJson.xg_store.dy)&&e.form.storeRuleJson.xg_store.dz},model:{value:e.form.storeRuleJson.xg_store.dz,callback:function(t){e.$set(e.form.storeRuleJson.xg_store,"dz",t)},expression:"form.storeRuleJson.xg_store.dz"}},[e._v("店长")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.storeRuleJson.xg_store.zs,e.form.storeRuleJson.xg_store.dz,e.form.storeRuleJson.xg_store.dy)&&e.form.storeRuleJson.xg_store.dy},model:{value:e.form.storeRuleJson.xg_store.dy,callback:function(t){e.$set(e.form.storeRuleJson.xg_store,"dy",t)},expression:"form.storeRuleJson.xg_store.dy"}},[e._v("其他导购")])],1):e._e()]),e._v(" "),o("div",{staticClass:"level"},[o("div",{staticClass:"title"},[o("span",[e._v("层级三:其他门店")]),e._v(" "),o("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.customRuleJson.open,callback:function(t){e.$set(e.form.customRuleJson,"open",t)},expression:"form.customRuleJson.open"}})],1),e._v(" "),e.form.customRuleJson.open?o("div",{staticClass:"level3-1"},[o("el-radio-group",{model:{value:e.form.customRuleJson.store_type,callback:function(t){e.$set(e.form.customRuleJson,"store_type",t)},expression:"form.customRuleJson.store_type"}},[o("el-radio",{attrs:{label:1}},[e._v("推荐门店")]),e._v(" "),o("el-radio",{attrs:{label:2}},[e._v("附近门店")])],1),e._v(" "),1==e.form.customRuleJson.store_type?o("p",{staticClass:"tips m-t-6"},[e._v("可配置最多20个门店作为推荐门店让客户自主选择要添加的门店好友")]):o("p",{staticClass:"tips m-t-6"},[e._v("需客户同意授权当前定位信息,才可展示客户附近最多20家门店供客户选择,否则只能在指定门店下选择")])],1):e._e(),e._v(" "),e.form.customRuleJson.open?o("div",{staticClass:"level3-2"},[1==e.form.customRuleJson.store_type?o("div",{staticClass:"level3-2-content"},[o("el-form-item",{attrs:{label:"选择门店","label-width":"92px",prop:"storeList"}},[o("selectShop",{attrs:{data:e.storeData,selected:e.form.storeList},on:{change:e.handleTransferChange}})],1),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.store.dz,e.form.customRuleJson.store.dy)&&e.form.customRuleJson.store.dz},model:{value:e.form.customRuleJson.store.dz,callback:function(t){e.$set(e.form.customRuleJson.store,"dz",t)},expression:"form.customRuleJson.store.dz"}},[e._v("店长")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.store.dz,e.form.customRuleJson.store.dy)&&e.form.customRuleJson.store.dy},model:{value:e.form.customRuleJson.store.dy,callback:function(t){e.$set(e.form.customRuleJson.store,"dy",t)},expression:"form.customRuleJson.store.dy"}},[e._v("导购")])],1):o("div",{staticClass:"level3-2-content"},[o("p",{staticClass:"content-tips"},[e._v("客户同意授权当前定位信息,可在“附近门店”中自主选择要添加的门店好友")]),e._v(" "),o("div",{staticClass:"level3-2-content-check"},[o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.store.dz,e.form.customRuleJson.store.dy)&&e.form.customRuleJson.store.dz},model:{value:e.form.customRuleJson.store.dz,callback:function(t){e.$set(e.form.customRuleJson.store,"dz",t)},expression:"form.customRuleJson.store.dz"}},[e._v("店长")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.store.dz,e.form.customRuleJson.store.dy)&&e.form.customRuleJson.store.dy},model:{value:e.form.customRuleJson.store.dy,callback:function(t){e.$set(e.form.customRuleJson.store,"dy",t)},expression:"form.customRuleJson.store.dy"}},[e._v("导购")])],1),e._v(" "),o("p",{staticClass:"content-tips m-b-10"},[e._v("客户拒绝授权当前定位信息,可在下方指定的门店范围中(最多20家)自主选择要添加的门店好友")]),e._v(" "),o("el-form-item",{attrs:{label:"选择门店","label-width":"92px",prop:"storeList"}},[o("selectShop",{attrs:{data:e.storeData,selected:e.form.storeList},on:{change:e.handleTransferChange}})],1),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.store.ndz,e.form.customRuleJson.store.ndy)&&e.form.customRuleJson.store.ndz},model:{value:e.form.customRuleJson.store.ndz,callback:function(t){e.$set(e.form.customRuleJson.store,"ndz",t)},expression:"form.customRuleJson.store.ndz"}},[e._v("店长")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.store.ndz,e.form.customRuleJson.store.ndy)&&e.form.customRuleJson.store.ndy},model:{value:e.form.customRuleJson.store.ndy,callback:function(t){e.$set(e.form.customRuleJson.store,"ndy",t)},expression:"form.customRuleJson.store.ndy"}},[e._v("导购")])],1)]):e._e(),e._v(" "),e.form.customRuleJson.open?o("div",{staticClass:"level3-3"},[o("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.form.customRuleJson.city_store.open,callback:function(t){e.$set(e.form.customRuleJson.city_store,"open",t)},expression:"form.customRuleJson.city_store.open"}},[e._v("除附近门店/指定门店之外,允许客户按照省市区自由筛选商户所有门店进行添加")]),e._v(" "),e.form.customRuleJson.city_store.open?o("div",{staticClass:"level3-3-content"},[o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.city_store.dz,e.form.customRuleJson.city_store.dy)&&e.form.customRuleJson.city_store.dz},model:{value:e.form.customRuleJson.city_store.dz,callback:function(t){e.$set(e.form.customRuleJson.city_store,"dz",t)},expression:"form.customRuleJson.city_store.dz"}},[e._v("店长")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.city_store.dz,e.form.customRuleJson.city_store.dy)&&e.form.customRuleJson.city_store.dy},model:{value:e.form.customRuleJson.city_store.dy,callback:function(t){e.$set(e.form.customRuleJson.city_store,"dy",t)},expression:"form.customRuleJson.city_store.dy"}},[e._v("导购")])],1):e._e()],1):e._e()])]),e._v(" "),o("dm-sub-title",{attrs:{type:"line"}},[e._v("欢迎语设置")]),e._v(" "),o("div",{staticClass:"section"},[o("welcomeItem",{ref:"welcomeItem",attrs:{welcomeId:e.form.welcomeId,welcomeType:e.welcomeType,welcomeName:"link"},on:{"update:welcomeId":function(t){return e.$set(e.form,"welcomeId",t)},"update:welcome-id":function(t){return e.$set(e.form,"welcomeId",t)},"update:welcomeType":function(t){e.welcomeType=t},"update:welcome-type":function(t){e.welcomeType=t}}})],1),e._v(" "),o("dm-sub-title",{attrs:{type:"line"}},[e._v("落地页配置")]),e._v(" "),o("div",{staticClass:"section flex",staticStyle:{"margin-bottom":"40px"}},[o("el-form-item",{attrs:{label:"选择模板"}},[o("div",{staticClass:"table"},[o("div",{staticClass:"search"},[o("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入标题",clearable:""},on:{clear:e.getList},nativeOn:{keyup:function(t){return e.toInput(t)}},model:{value:e.landingPage.pageSearchText,callback:function(t){e.$set(e.landingPage,"pageSearchText",t)},expression:"landingPage.pageSearchText"}}),e._v(" "),o("el-button",{staticClass:"blueBtn",attrs:{plain:""},on:{click:e.addTemp}},[e._v("新建模板")])],1),e._v(" "),o("el-table",{attrs:{data:e.landingData,height:"426",loading:e.landingLoading},on:{"row-click":function(t){return e.getCurrentRow(t)}}},[o("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[o("el-radio",{attrs:{label:s.pageId},nativeOn:{change:function(t){return e.getCurrentRow(s)}},model:{value:e.form.pageId,callback:function(t){e.$set(e.form,"pageId",t)},expression:"form.pageId"}},[o("i")])]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"pageCode",label:"模板ID",minWidth:"148"}}),e._v(" "),o("el-table-column",{attrs:{prop:"pageName",label:"模板名称",minWidth:"172","show-overflow-tooltip":""}}),e._v(" "),o("el-table-column",{attrs:{prop:"pageTitle",label:"页面标题",minWidth:"156","show-overflow-tooltip":""}}),e._v(" "),o("el-table-column",{attrs:{prop:"guideComment",label:"引导语","show-overflow-tooltip":""}})],1),e._v(" "),o("el-pagination",{staticClass:"paginationBox",attrs:{background:"","current-page":e.landingPage.pageNum,"page-size":e.landingPage.pageSize,layout:"prev, pager,next ",total:e.total},on:{"current-change":e.getList,"update:currentPage":function(t){return e.$set(e.landingPage,"pageNum",t)},"update:current-page":function(t){return e.$set(e.landingPage,"pageNum",t)},"update:pageSize":function(t){return e.$set(e.landingPage,"pageSize",t)},"update:page-size":function(t){return e.$set(e.landingPage,"pageSize",t)}}})],1)]),e._v(" "),e.landingForm&&Object.keys(e.landingForm).length?o("div",{staticClass:"preview"},[o("p",{staticClass:"previewTitle"},[e._v("落地页预览")]),e._v(" "),o("previewPage",{attrs:{data:e.landingForm}}),e._v(" "),o("p",{staticClass:"previewBottom"},[e._v("此二维码只是样式预览效果,请勿直接使用")])],1):e._e()],1),e._v(" "),o("div",{staticClass:"footBtn"},[o("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("保存")])],1)],1)],1)},staticRenderFns:[]};var v=o("VU/8")(f,p,!1,function(e){o("adVB")},"data-v-4a685f8c",null);t.default=v.exports},adVB:function(e,t){}});
\ No newline at end of file
webpackJsonp([43],{ATNk:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=o("mvHQ"),r=o.n(s),l=o("PeHS"),a={props:{selected:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[]}}},data:function(){return{departmentVisible:!1,props:{key:"storeId",label:"storeName"}}},methods:{change:function(e){console.log(e),this.$emit("change",e)}}},n={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-popover",{staticStyle:{"min-width":"357px"},attrs:{placement:"bottom"},model:{value:e.departmentVisible,callback:function(t){e.departmentVisible=t},expression:"departmentVisible"}},[o("dm-simple-transfer",{attrs:{props:e.props,data:e.data,"item-size":66,titles:["选择门店","已选门店"],filterable:"","filter-placeholder":"请输入门店名称/code"},on:{change:e.change},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.option;return o("div",{},[o("p",[e._v(e._s(s.storeName))]),e._v(" "),o("p",{staticStyle:{"font-size":"12px","line-height":"18px"}},[e._v(e._s(s.storeCode))]),e._v(" "),o("p",{directives:[{name:"show",rawName:"v-show",value:1==s.isOver,expression:"option.isOver == 1"}],staticClass:"isOver"},[e._v("所有导购今日添加已到上限")])])}}]),model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}}),e._v(" "),o("div",{staticClass:"show-select-num cursor-pointer w-250",attrs:{slot:"reference"},slot:"reference"},[e._v("\n 已经选择"+e._s(e.selected&&e.selected.length)+"家门店\n "),o("span",{staticClass:"el-input__suffix"},[o("span",{staticClass:"el-input__suffix-inner"},[o("i",{class:["el-select__caret el-input__icon el-icon-arrow-up",e.departmentVisible?"is-reverse":""]})])])])],1)},staticRenderFns:[]};var i=o("VU/8")(a,n,!1,function(e){o("DNb8")},"data-v-dc6d1268",null).exports,c=o("42hH"),m=o("RSOD"),u=o("PI0u");var d=function(e){e.$nextTick(function(e){document.getElementsByClassName("is-error")[0].scrollIntoView({block:"center",behavior:"smooth"})})},f={data:function(){var e=this;return{scrollToError:d,tagsDialogVisible:!1,landingPage:{pageSearchText:"",pageNum:1,pageSize:20},welcomeType:1,landingLoading:!1,loading:!1,landingData:[],total:0,landingForm:{},isEdit:"edit"==this.$route.meta.type,isAdd:"add"==this.$route.meta.type,rules:{name:{required:!0,message:"请输入链接名称"},memberLabelId:{required:!0,message:"请选择链接标签"},storeList:{required:!0,validator:function(t,o,s){if(1==e.form.customRuleJson.open&&!e.form.storeList.length)return s(new Error("请选择门店"));s()}}},storeData:[],form:{linkType:1,memberLabelName:"",memberLabelId:"",storeList:[],name:"",pageId:"",welcomeId:"",remark:"",storeRuleJson:{fw_store:{open:1,zs:1,dz:0,dy:0},xg_store:{open:1,zs:1,dz:0,dy:0}},customRuleJson:{open:1,store_type:1,store:{dz:1,dy:0,ndz:1,ndy:0},city_store:{open:1,dz:1,dy:0}}},wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",btnLoading:!1}},components:{selectShop:i,welcomeItem:c.default,previewPage:m.a},mounted:function(){var e=this;this.getList(),document.addEventListener("visibilitychange",function(){"visible"==document.visibilityState&&(e.landingPage={pageSearchText:"",pageNum:1,pageSize:20},e.getList())}),this.isEdit?this.getDetail():this.getStoreList()},methods:{toInput:Object(u.a)(function(e,t){this.getList()},500),getStoreList:function(){var e=this;Object(l.w)({}).then(function(t){console.log(t);var o=t.data.result.result;e.storeData=o||[],e.form.storeList&&e.form.storeList.length&&e.storeData.map(function(t){return t.checked=e.form.storeList.some(function(e){return e.storeId==t.storeId}),t})})},getDetail:function(){var e=this;this.loading=!0,Object(l.n)({linkId:this.$route.params.id}).then(function(t){var o=t.data.result;if(o){var s=o.link,r=o.page;s.customRuleJson=JSON.parse(s.customRuleJson),s.storeRuleJson=JSON.parse(s.storeRuleJson),s.storeList=s.storeList?s.storeList:[],e.form=s,e.form.welcomeId||(e.welcomeType=2),e.landingForm=r,e.getStoreList()}}).finally(function(t){e.loading=!1})},saveTagPop:function(e){var t=e.tagItemId,o=e.tagItemName;this.form.memberLabelName=o,this.form.memberLabelId=t,this.form.memberLabelStatus=1,this.$refs.form.validateField("memberLabelId")},handleTableRowClick:function(e){this.form.pageId=e.pageId},handleTagCloseTag:function(){this.form.memberLabelName="",this.form.memberLabelId=""},handleTransferChange:function(e){console.log(e),this.form.storeList=e,this.$refs.form.validateField("storeList")},getList:function(){var e=this;this.landingLoading=!0,Object(l.j)(this.landingPage).then(function(t){var o=t.data.result,s=o.result,r=o.totalCount;s&&(e.total=r,e.landingData=s)}).finally(function(t){e.landingLoading=!1})},getCurrentRow:function(e){console.log(e),this.landingForm=e,this.form.pageId=e.pageId},addTemp:function(){window.open("/haoban-3/#/ladingPageAdd")},disabledProperty:function(e,t,o,s){return[].concat(Array.prototype.slice.call(arguments)).filter(function(e){return 1==e}).length<=1},save:function(){var e=this;if(this.$refs.welcomeItem.submit())if(this.form.pageId)if(this.form.storeRuleJson.fw_store.open||this.form.storeRuleJson.xg_store.open||this.form.customRuleJson.open)if(this.isEdit&&0==this.form.memberLabelStatus)this.$confirm("关联的标签在GIC中已被删除,无法统计和查看添加好友客户数据,为确保后续客户数据统计,请重新关联标签","关联的标签已被删除,请重新关联标签",{confirmButtonText:"选择标签",cancelButtonText:"取消",type:"warning"}).then(function(t){e.form.memberLabelId="",e.form.memberLabelName="",e.$refs.form.validateField("memberLabelId"),e.$nextTick(function(e){document.getElementsByClassName("memberTag-form-item")[0].scrollIntoView({block:"center",behavior:"smooth"})})});else{var t=JSON.parse(r()(this.form));t.storeRuleJson=r()(t.storeRuleJson),t.customRuleJson=r()(t.customRuleJson),t.wxEnterpriseId=this.wxEnterpriseId,2==this.welcomeType&&(t.welcomeId=""),delete t.memberLabelStatus,this.$refs.form.validate(function(o){o?(e.btnLoading=!0,e.isAdd?Object(l.m)(t).then(function(t){setTimeout(function(){e.btnLoading=!1,e.$route.meta.refresh=!0,e.$router.go(-1)},1e3)}).catch(function(t){e.btnLoading=!1}):Object(l.p)(t).then(function(t){setTimeout(function(){e.btnLoading=!1,e.$router.go(-1)},1e3)}).catch(function(t){e.btnLoading=!1})):e.scrollToError(e)})}else this.$message.error("请设置分配规则");else this.$message.error("请选择落地页模板")}}},p={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"p-20"},[o("el-form",{ref:"form",attrs:{"label-width":"100px",model:e.form,size:"small",rules:e.rules}},[o("dm-sub-title",{attrs:{type:"line"}},[e._v("基础信息")]),e._v(" "),o("div",{staticClass:"section"},[o("el-form-item",{attrs:{label:"链接类型",required:""}},[o("el-radio-group",{attrs:{disabled:e.isEdit},model:{value:e.form.linkType,callback:function(t){e.$set(e.form,"linkType",t)},expression:"form.linkType"}},[o("el-radio",{attrs:{label:1}},[e._v("专用链接")]),e._v(" "),o("el-radio",{attrs:{label:2}},[e._v("通用链接")])],1),e._v(" "),1==e.form.linkType?o("p",{staticClass:"tips"},[e._v("仅用于在GIC系统中创建“短信模板”时直接添加引用,便于系统根据会员手机号为该引流链接带上特定会员参数,常用于通过短信的方式来促进存量会员的私域转化。")]):o("p",{staticClass:"tips"},[e._v("可复制此引流链接或下载链接二维码,通过不同营销活动、渠道等引导客户添加导购企微号,转化成私域流量。")])],1),e._v(" "),o("el-form-item",{attrs:{label:"链接名称",required:"",prop:"name"}},[o("el-input",{staticClass:"w-340",attrs:{placeholder:"请输入链接名称",maxlength:20,"show-word-limit":""},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"链接描述",prop:"remark"}},[o("el-input",{staticClass:"w-340",attrs:{placeholder:"请输入链接描述",type:"textarea",maxlength:100,autosize:{minRows:4,maxRows:6},"show-word-limit":""},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1),e._v(" "),o("el-form-item",{staticClass:"memberTag-form-item",attrs:{label:"链接标签",required:"",prop:"memberLabelId"}},[e.form.memberLabelId?o("el-tooltip",{attrs:{disabled:!e.isEdit||0!=e.form.memberLabelStatus,content:"已删除",placement:"top"}},[o("el-tag",{attrs:{closable:"",type:e.isEdit&&0==e.form.memberLabelStatus?"warning":""},on:{close:e.handleTagCloseTag}},[e._v(e._s(e.form.memberLabelName))])],1):o("el-button",{attrs:{plain:""},on:{click:function(t){e.tagsDialogVisible=!0}}},[o("i",{staticClass:"iconfont-components3 icon-cp-PlusOutlined addPic"}),e._v("添加标签")])],1),e._v(" "),o("dm-memberTag-group",{attrs:{isHb:"",visiable:e.tagsDialogVisible,projectName:"haobao-3"},on:{"update:visiable":function(t){e.tagsDialogVisible=t},save:e.saveTagPop}})],1),e._v(" "),o("dm-sub-title",{attrs:{type:"line"}},[e._v("分配规则")]),e._v(" "),o("p",{staticClass:"tips-info"},[e._v("\n 客户点击此引流链接,系统所分配的企微员工活码将根据下方层级配置区分优先级进行展示:"),o("br"),e._v(" "),o("span",{staticClass:"dot"}),e._v(" "),o("span",{staticStyle:{color:"#FA8C16"}},[e._v("优先级判断规则是“从上到下、从左到右”。")]),e._v("如:当上一层级匹配到结果后,则不会再执行下个层级的判断;同一层级内,当左边的勾选项匹配到结果,则不会再执行层级内右边的勾选项"),o("br"),e._v(" "),o("span",{staticClass:"dot"}),e._v("按照优先级匹配到的结果的大前提是该员工“可生成活码”且“并未达到当天添加好友上限”,否则则继续进行后续优先级的判断; "),o("br"),e._v(" "),o("span",{staticClass:"dot"}),e._v("若按照优先级所匹配到的结果已经与该客户是好友关系了,不会继续进行后续优先级的判断,直接展示该员工的活码。"),o("br")]),e._v(" "),o("div",{staticClass:"section"},[o("div",{staticClass:"level"},[o("div",{staticClass:"title"},[o("span",[e._v("层级一:服务门店")]),e._v(" "),o("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.storeRuleJson.fw_store.open,callback:function(t){e.$set(e.form.storeRuleJson.fw_store,"open",t)},expression:"form.storeRuleJson.fw_store.open"}})],1),e._v(" "),e.form.storeRuleJson.fw_store.open?o("div",{staticClass:"content m-t-20"},[o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.storeRuleJson.fw_store.zs,e.form.storeRuleJson.fw_store.dz,e.form.storeRuleJson.fw_store.dy)&&e.form.storeRuleJson.fw_store.zs},model:{value:e.form.storeRuleJson.fw_store.zs,callback:function(t){e.$set(e.form.storeRuleJson.fw_store,"zs",t)},expression:"form.storeRuleJson.fw_store.zs"}},[e._v("专属导购")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.storeRuleJson.fw_store.zs,e.form.storeRuleJson.fw_store.dz,e.form.storeRuleJson.fw_store.dy)&&e.form.storeRuleJson.fw_store.dz},model:{value:e.form.storeRuleJson.fw_store.dz,callback:function(t){e.$set(e.form.storeRuleJson.fw_store,"dz",t)},expression:"form.storeRuleJson.fw_store.dz"}},[e._v("店长")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.storeRuleJson.fw_store.zs,e.form.storeRuleJson.fw_store.dz,e.form.storeRuleJson.fw_store.dy)&&e.form.storeRuleJson.fw_store.dy},model:{value:e.form.storeRuleJson.fw_store.dy,callback:function(t){e.$set(e.form.storeRuleJson.fw_store,"dy",t)},expression:"form.storeRuleJson.fw_store.dy"}},[e._v("其他导购")])],1):e._e()]),e._v(" "),o("div",{staticClass:"level"},[o("div",{staticClass:"title"},[o("span",[e._v("层级二:协管门店")]),e._v(" "),o("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.storeRuleJson.xg_store.open,callback:function(t){e.$set(e.form.storeRuleJson.xg_store,"open",t)},expression:"form.storeRuleJson.xg_store.open"}})],1),e._v(" "),e.form.storeRuleJson.xg_store.open?o("p",{staticClass:"tips margin-num"},[e._v("当客户在多个协管门店下都有协管导购时,随机取一个协管门店导购")]):e._e(),e._v(" "),e.form.storeRuleJson.xg_store.open?o("div",{staticClass:"content"},[o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.storeRuleJson.xg_store.zs,e.form.storeRuleJson.xg_store.dz,e.form.storeRuleJson.xg_store.dy)&&e.form.storeRuleJson.xg_store.zs},model:{value:e.form.storeRuleJson.xg_store.zs,callback:function(t){e.$set(e.form.storeRuleJson.xg_store,"zs",t)},expression:"form.storeRuleJson.xg_store.zs"}},[e._v("协管门店导购")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.storeRuleJson.xg_store.zs,e.form.storeRuleJson.xg_store.dz,e.form.storeRuleJson.xg_store.dy)&&e.form.storeRuleJson.xg_store.dz},model:{value:e.form.storeRuleJson.xg_store.dz,callback:function(t){e.$set(e.form.storeRuleJson.xg_store,"dz",t)},expression:"form.storeRuleJson.xg_store.dz"}},[e._v("店长")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.storeRuleJson.xg_store.zs,e.form.storeRuleJson.xg_store.dz,e.form.storeRuleJson.xg_store.dy)&&e.form.storeRuleJson.xg_store.dy},model:{value:e.form.storeRuleJson.xg_store.dy,callback:function(t){e.$set(e.form.storeRuleJson.xg_store,"dy",t)},expression:"form.storeRuleJson.xg_store.dy"}},[e._v("其他导购")])],1):e._e()]),e._v(" "),o("div",{staticClass:"level"},[o("div",{staticClass:"title"},[o("span",[e._v("层级三:其他门店")]),e._v(" "),o("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.customRuleJson.open,callback:function(t){e.$set(e.form.customRuleJson,"open",t)},expression:"form.customRuleJson.open"}})],1),e._v(" "),e.form.customRuleJson.open?o("div",{staticClass:"level3-1"},[o("el-radio-group",{model:{value:e.form.customRuleJson.store_type,callback:function(t){e.$set(e.form.customRuleJson,"store_type",t)},expression:"form.customRuleJson.store_type"}},[o("el-radio",{attrs:{label:1}},[e._v("推荐门店")]),e._v(" "),o("el-radio",{attrs:{label:2}},[e._v("附近门店")])],1),e._v(" "),1==e.form.customRuleJson.store_type?o("p",{staticClass:"tips m-t-6"},[e._v("可配置最多20个门店作为推荐门店让客户自主选择要添加的门店好友")]):o("p",{staticClass:"tips m-t-6"},[e._v("需客户同意授权当前定位信息,才可展示客户附近最多20家门店供客户选择,否则只能在指定门店下选择")])],1):e._e(),e._v(" "),e.form.customRuleJson.open?o("div",{staticClass:"level3-2"},[1==e.form.customRuleJson.store_type?o("div",{staticClass:"level3-2-content"},[o("el-form-item",{attrs:{label:"选择门店","label-width":"92px",prop:"storeList"}},[o("selectShop",{attrs:{data:e.storeData,selected:e.form.storeList},on:{change:e.handleTransferChange}})],1),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.store.dz,e.form.customRuleJson.store.dy)&&e.form.customRuleJson.store.dz},model:{value:e.form.customRuleJson.store.dz,callback:function(t){e.$set(e.form.customRuleJson.store,"dz",t)},expression:"form.customRuleJson.store.dz"}},[e._v("店长")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.store.dz,e.form.customRuleJson.store.dy)&&e.form.customRuleJson.store.dy},model:{value:e.form.customRuleJson.store.dy,callback:function(t){e.$set(e.form.customRuleJson.store,"dy",t)},expression:"form.customRuleJson.store.dy"}},[e._v("导购")])],1):o("div",{staticClass:"level3-2-content"},[o("p",{staticClass:"content-tips"},[e._v("客户同意授权当前定位信息,可在“附近门店”中自主选择要添加的门店好友")]),e._v(" "),o("div",{staticClass:"level3-2-content-check"},[o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.store.dz,e.form.customRuleJson.store.dy)&&e.form.customRuleJson.store.dz},model:{value:e.form.customRuleJson.store.dz,callback:function(t){e.$set(e.form.customRuleJson.store,"dz",t)},expression:"form.customRuleJson.store.dz"}},[e._v("店长")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.store.dz,e.form.customRuleJson.store.dy)&&e.form.customRuleJson.store.dy},model:{value:e.form.customRuleJson.store.dy,callback:function(t){e.$set(e.form.customRuleJson.store,"dy",t)},expression:"form.customRuleJson.store.dy"}},[e._v("导购")])],1),e._v(" "),o("p",{staticClass:"content-tips m-b-10"},[e._v("客户拒绝授权当前定位信息,可在下方指定的门店范围中(最多20家)自主选择要添加的门店好友")]),e._v(" "),o("el-form-item",{attrs:{label:"选择门店","label-width":"92px",prop:"storeList"}},[o("selectShop",{attrs:{data:e.storeData,selected:e.form.storeList},on:{change:e.handleTransferChange}})],1),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.store.ndz,e.form.customRuleJson.store.ndy)&&e.form.customRuleJson.store.ndz},model:{value:e.form.customRuleJson.store.ndz,callback:function(t){e.$set(e.form.customRuleJson.store,"ndz",t)},expression:"form.customRuleJson.store.ndz"}},[e._v("店长")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.store.ndz,e.form.customRuleJson.store.ndy)&&e.form.customRuleJson.store.ndy},model:{value:e.form.customRuleJson.store.ndy,callback:function(t){e.$set(e.form.customRuleJson.store,"ndy",t)},expression:"form.customRuleJson.store.ndy"}},[e._v("导购")])],1)]):e._e(),e._v(" "),e.form.customRuleJson.open?o("div",{staticClass:"level3-3"},[o("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.form.customRuleJson.city_store.open,callback:function(t){e.$set(e.form.customRuleJson.city_store,"open",t)},expression:"form.customRuleJson.city_store.open"}},[e._v("除附近门店/指定门店之外,允许客户按照省市区自由筛选商户所有门店进行添加")]),e._v(" "),e.form.customRuleJson.city_store.open?o("div",{staticClass:"level3-3-content"},[o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.city_store.dz,e.form.customRuleJson.city_store.dy)&&e.form.customRuleJson.city_store.dz},model:{value:e.form.customRuleJson.city_store.dz,callback:function(t){e.$set(e.form.customRuleJson.city_store,"dz",t)},expression:"form.customRuleJson.city_store.dz"}},[e._v("店长")]),e._v(" "),o("el-checkbox",{attrs:{"true-label":1,"false-label":0,disabled:e.disabledProperty(e.form.customRuleJson.city_store.dz,e.form.customRuleJson.city_store.dy)&&e.form.customRuleJson.city_store.dy},model:{value:e.form.customRuleJson.city_store.dy,callback:function(t){e.$set(e.form.customRuleJson.city_store,"dy",t)},expression:"form.customRuleJson.city_store.dy"}},[e._v("导购")])],1):e._e()],1):e._e()])]),e._v(" "),o("dm-sub-title",{attrs:{type:"line"}},[e._v("欢迎语设置")]),e._v(" "),o("div",{staticClass:"section"},[o("welcomeItem",{ref:"welcomeItem",attrs:{welcomeId:e.form.welcomeId,welcomeType:e.welcomeType,welcomeName:"link"},on:{"update:welcomeId":function(t){return e.$set(e.form,"welcomeId",t)},"update:welcome-id":function(t){return e.$set(e.form,"welcomeId",t)},"update:welcomeType":function(t){e.welcomeType=t},"update:welcome-type":function(t){e.welcomeType=t}}})],1),e._v(" "),o("dm-sub-title",{attrs:{type:"line"}},[e._v("落地页配置")]),e._v(" "),o("div",{staticClass:"section flex",staticStyle:{"margin-bottom":"40px"}},[o("el-form-item",{attrs:{label:"选择模板"}},[o("div",{staticClass:"table"},[o("div",{staticClass:"search"},[o("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入标题",clearable:""},on:{clear:e.getList},nativeOn:{keyup:function(t){return e.toInput(t)}},model:{value:e.landingPage.pageSearchText,callback:function(t){e.$set(e.landingPage,"pageSearchText",t)},expression:"landingPage.pageSearchText"}}),e._v(" "),o("el-button",{staticClass:"blueBtn",attrs:{plain:""},on:{click:e.addTemp}},[e._v("新建模板")])],1),e._v(" "),o("el-table",{attrs:{data:e.landingData,height:"426",loading:e.landingLoading},on:{"row-click":function(t){return e.getCurrentRow(t)}}},[o("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){var s=t.row;return[o("el-radio",{attrs:{label:s.pageId},nativeOn:{change:function(t){return e.getCurrentRow(s)}},model:{value:e.form.pageId,callback:function(t){e.$set(e.form,"pageId",t)},expression:"form.pageId"}},[o("i")])]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"pageCode",label:"模板ID",minWidth:"148"}}),e._v(" "),o("el-table-column",{attrs:{prop:"pageName",label:"模板名称",minWidth:"172","show-overflow-tooltip":""}}),e._v(" "),o("el-table-column",{attrs:{prop:"pageTitle",label:"页面标题",minWidth:"156","show-overflow-tooltip":""}}),e._v(" "),o("el-table-column",{attrs:{prop:"guideComment",label:"引导语","show-overflow-tooltip":""}})],1),e._v(" "),o("el-pagination",{staticClass:"paginationBox",attrs:{background:"","current-page":e.landingPage.pageNum,"page-size":e.landingPage.pageSize,layout:"prev, pager,next ",total:e.total},on:{"current-change":e.getList,"update:currentPage":function(t){return e.$set(e.landingPage,"pageNum",t)},"update:current-page":function(t){return e.$set(e.landingPage,"pageNum",t)},"update:pageSize":function(t){return e.$set(e.landingPage,"pageSize",t)},"update:page-size":function(t){return e.$set(e.landingPage,"pageSize",t)}}})],1)]),e._v(" "),e.landingForm&&Object.keys(e.landingForm).length?o("div",{staticClass:"preview"},[o("p",{staticClass:"previewTitle"},[e._v("落地页预览")]),e._v(" "),o("previewPage",{attrs:{data:e.landingForm}}),e._v(" "),o("p",{staticClass:"previewBottom"},[e._v("此二维码只是样式预览效果,请勿直接使用")])],1):e._e()],1),e._v(" "),o("div",{staticClass:"footBtn"},[o("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("保存")])],1)],1)],1)},staticRenderFns:[]};var v=o("VU/8")(f,p,!1,function(e){o("oWOT")},"data-v-4375cf3a",null);t.default=v.exports},DNb8:function(e,t){},oWOT:function(e,t){}});
\ No newline at end of file
webpackJsonp([64],{YQXN:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i=e("/p6h"),s=e("eaYI"),n=e("P9l9"),l=e("ckKa"),c=e("Ch4/"),d={name:"act-code-detail-statistics",components:{dataDetail:i.default,newAddChart:s.default},props:{hmId:{type:String,default:function(){return""}}},mixins:[l.a],data:function(){return{loading:!1,overViewData:{addNumT:0,addNum:0,dateList:[]}}},methods:{explain:function(t){window.open(t)},getChartList:function(){var t=this,a={inFields:{hmId:t.hmId,startTime:t.dateDefault[0]+" 00:00:00",endTime:t.dateDefault[1]+" 23:59:59",type:t.dateKey>=2?2:1}};t.loading=!0,Object(n.f)("/haoban-manage3-web/hm/qrcode/detail-data-statistics",a).then(function(a){var e=a.data;if(t.loading=!1,0==e.code){var i=e.result||{addNumT:0,addNum:0,dateList:[]};return i.dateList.map(function(t){t["新增人数"]=t.addNum}),void(t.overViewData=i)}c.a.errorMsg(e)}).catch(function(a){t.loading=!1,t.$message.error({duration:1e3,message:a.message})})},onDateChange:function(){this.dateKey=-1,this.getChartList()}},mounted:function(){this.btnChange(0)}},o={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail-wrap"},[e("div",[e("div",{staticClass:"flex justify-between title"},[t._m(0),t._v(" "),e("div",{staticClass:"flex"},[e("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:code",arg:"code"}],attrs:{type:"text"}},[e("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),e("ul",{staticClass:"flex"},[e("li",{staticClass:"data-total-cell m-r-22"},[e("div",{staticClass:"flex p-20"},[t._m(1),t._v(" "),e("div",{staticClass:"m-l-16"},[e("div",{staticClass:"font-14 color-606266 line-20"},[t._v("新增总人数")]),t._v(" "),e("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNumT||0))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell "},[e("div",{staticClass:"flex p-20"},[t._m(2),t._v(" "),e("div",{staticClass:"m-l-16"},[e("div",{staticClass:"font-14 color-606266 line-20"},[t._v("今日新增人数")]),t._v(" "),e("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNum||0))])])])])]),t._v(" "),e("div",{staticClass:"flex justify-end"},[e("div",{staticClass:"rightBox"},[t._l(t.dateLis,function(a,i){return e("ul",{key:a.key,staticClass:"datebox"},[e("li",{staticClass:"dateLisBox",class:t.dateKey==i?"activeClass":"noActive",on:{click:function(a){return t.btnChange(i)}}},[t._v(t._s(a.value))])])}),t._v(" "),e("el-date-picker",{staticClass:"w256",attrs:{type:"daterange","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期","default-time":["00:00:00","23:59:59"],"picker-options":t.pickerOptions(),"value-format":"yyyy-MM-dd",format:[2,3,4].includes(t.dateKey)?"yyyy-MM":"yyyy-MM-dd",clearable:!1},on:{change:t.onDateChange},model:{value:t.dateDefault,callback:function(a){t.dateDefault=a},expression:"dateDefault"}})],2)]),t._v(" "),e("new-add-chart",{attrs:{charData:t.overViewData.dateList,id:"new-add-chart"}})],1),t._v(" "),e("div",[e("div",{staticClass:"flex justify-between title"},[t._m(3),t._v(" "),e("div",{staticClass:"flex"},[e("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:code",arg:"code"}],attrs:{type:"text"}},[e("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),e("data-detail",{attrs:{id:t.hmId}})],1)])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"flex"},[a("div",{staticClass:"blue-block"}),this._v(" "),a("span",{staticClass:"font-w-500 color-303133"},[this._v("概览")])])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"icon-background"},[a("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-1890ff font-28"})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"icon-background",staticStyle:{background:"#d9f3fd"}},[a("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-35C4FC font-28"})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"flex"},[a("div",{staticClass:"blue-block"}),this._v(" "),a("span",{staticClass:"font-w-500 color-303133"},[this._v("查看明细")])])}]};var r=e("VU/8")(d,o,!1,function(t){e("kRHg")},"data-v-b0df7d22",null);a.default=r.exports},kRHg:function(t,a){}});
\ No newline at end of file
webpackJsonp([64],{YQXN:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i=e("/p6h"),s=e("eaYI"),n=e("P9l9"),l=e("ckKa"),c=e("Ch4/"),d={name:"act-code-detail-statistics",components:{dataDetail:i.default,newAddChart:s.default},props:{hmId:{type:String,default:function(){return""}}},mixins:[l.a],data:function(){return{loading:!1,overViewData:{addNumT:0,addNum:0,dateList:[]}}},methods:{explain:function(t){window.open(t)},getChartList:function(){var t=this,a={inFields:{hmId:t.hmId,startTime:t.dateDefault[0]+" 00:00:00",endTime:t.dateDefault[1]+" 23:59:59",type:t.dateKey>=2?2:1}};t.loading=!0,Object(n.f)("/haoban-manage3-web/hm/qrcode/detail-data-statistics",a).then(function(a){var e=a.data;if(t.loading=!1,0==e.code){var i=e.result||{addNumT:0,addNum:0,dateList:[]};return i.dateList.map(function(t,a){t["新增人数"]=t.addNum}),void(t.overViewData=i)}c.a.errorMsg(e)}).catch(function(a){t.loading=!1,t.$message.error({duration:1e3,message:a.message})})},onDateChange:function(){this.dateKey=-1,this.getChartList()}},mounted:function(){this.btnChange(0)}},o={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail-wrap"},[e("div",[e("div",{staticClass:"flex justify-between title"},[t._m(0),t._v(" "),e("div",{staticClass:"flex"},[e("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:code",arg:"code"}],attrs:{type:"text"}},[e("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),e("ul",{staticClass:"flex"},[e("li",{staticClass:"data-total-cell m-r-22"},[e("div",{staticClass:"flex p-20"},[t._m(1),t._v(" "),e("div",{staticClass:"m-l-16"},[e("div",{staticClass:"font-14 color-606266 line-20"},[t._v("新增总人数")]),t._v(" "),e("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNumT||0))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell "},[e("div",{staticClass:"flex p-20"},[t._m(2),t._v(" "),e("div",{staticClass:"m-l-16"},[e("div",{staticClass:"font-14 color-606266 line-20"},[t._v("今日新增人数")]),t._v(" "),e("span",{staticClass:"font-30 font-din",staticStyle:{"margin-top":"1"}},[t._v(t._s(t.overViewData.addNum||0))])])])])]),t._v(" "),e("div",{staticClass:"flex justify-end"},[e("div",{staticClass:"rightBox"},[t._l(t.dateLis,function(a,i){return e("ul",{key:a.key,staticClass:"datebox"},[e("li",{staticClass:"dateLisBox",class:t.dateKey==i?"activeClass":"noActive",on:{click:function(a){return t.btnChange(i)}}},[t._v(t._s(a.value))])])}),t._v(" "),e("el-date-picker",{staticClass:"w256",attrs:{type:"daterange","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期","default-time":["00:00:00","23:59:59"],"picker-options":t.pickerOptions(),"value-format":"yyyy-MM-dd",format:[2,3,4].includes(t.dateKey)?"yyyy-MM":"yyyy-MM-dd",clearable:!1},on:{change:t.onDateChange},model:{value:t.dateDefault,callback:function(a){t.dateDefault=a},expression:"dateDefault"}})],2)]),t._v(" "),e("new-add-chart",{attrs:{charData:t.overViewData.dateList,id:"new-add-chart"}})],1),t._v(" "),e("div",[e("div",{staticClass:"flex justify-between title"},[t._m(3),t._v(" "),e("div",{staticClass:"flex"},[e("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:code",arg:"code"}],attrs:{type:"text"}},[e("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),e("data-detail",{attrs:{id:t.hmId}})],1)])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"flex"},[a("div",{staticClass:"blue-block"}),this._v(" "),a("span",{staticClass:"font-w-500 color-303133"},[this._v("概览")])])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"icon-background"},[a("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-1890ff font-28"})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"icon-background",staticStyle:{background:"#d9f3fd"}},[a("i",{staticClass:"iconfont-hb3 iconxinzengyonghu color-35C4FC font-28"})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"flex"},[a("div",{staticClass:"blue-block"}),this._v(" "),a("span",{staticClass:"font-w-500 color-303133"},[this._v("查看明细")])])}]};var r=e("VU/8")(d,o,!1,function(t){e("zJaC")},"data-v-b1e52246",null);a.default=r.exports},zJaC:function(t,a){}});
\ No newline at end of file
!function(e){var f=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],c[t]&&u.push(c[t][0]),c[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(f&&f(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},c={127:0};function d(f){if(a[f])return a[f].exports;var c=a[f]={i:f,l:!1,exports:{}};return e[f].call(c.exports,c,c.exports,d),c.l=!0,c.exports}d.e=function(e){var f=c[e];if(0===f)return new Promise(function(e){e()});if(f)return f[2];var a=new Promise(function(a,d){f=c[e]=[a,d]});f[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"6eb51aa5d13f51a86814",1:"fd15a7f381f3fc4a55fe",2:"fb4b79d4f3ede430d199",3:"cf88d56554ebd1b98880",4:"f48e99bcbd5757fd7f21",5:"3734ef864d7dffe7af16",6:"88f20a11e0be0f0ca548",7:"59c49de3022be1649725",8:"15d7efa354ea6bd5fad0",9:"ccdd5ef4287324da425a",10:"0c309eceb04d492e8695",11:"c8269a6ce3166c2baddb",12:"62aacaf39a18c9d0c559",13:"12c16e4d04a9558c0ddc",14:"f6a9ebc9f4540effdcb3",15:"9d0d587ff1c54fd27ed2",16:"03efbc3fd86def29dffe",17:"bea90e10f3e91e59fb36",18:"a1250223e590e86a6f25",19:"e004122dbb0e72557b10",20:"b2063783bda9d1a2361e",21:"9d28421365d59dd36d09",22:"ed2d87a3b61cb1bcd405",23:"f730929b550ffa891382",24:"1e18a390fd39ae9a5096",25:"f0488296b7e86a8c6ef0",26:"9bcaea2d90c17205d28d",27:"72676bc9d0f6f871b8a4",28:"29c7f2707ca85abf0017",29:"609b38a8c86e6e684f01",30:"4056b61db48119d2a1c2",31:"a634530c09ea9f7e0d75",32:"83143918abc7e277f288",33:"7905d75f9175f609d621",34:"6bc9f5faa99efb8fd2e9",35:"46083964a212c678907a",36:"87c2c9137da36d5fa8c3",37:"e635d0ed36555c850026",38:"e45d712d2e39954a638a",39:"afe5e19b32c0ffaf76ba",40:"34f5b7f116a35d0971c4",41:"ea772bcf348838b56f91",42:"4f6eb774951a18ef66aa",43:"fc3891259be853066bb8",44:"335286f78b998a185186",45:"cf47cdd6da007b37a000",46:"b3311a70aa6ecfdee9c8",47:"a5eeb72656805944f910",48:"1d703fcda8c1841d32b9",49:"fcebf9bf5b7e95b216c8",50:"485018b8549f36059c43",51:"75c13e0a19dc0f54c1f5",52:"2186bd4be4408d59d718",53:"515104094303f44a2d44",54:"c4b7a09cc216c32bc29f",55:"b6e727b20fb3f6b2db14",56:"526593ac3d2a5913eba8",57:"07a244d52c166f8884a0",58:"46417183229f03d64a87",59:"26a036286f9426a81cf8",60:"f9c9af8af1e35327ab25",61:"f9818758ba86dd5a1485",62:"5530c678ce4cd6fab6b6",63:"9bcf8d7df4219b5a3e7a",64:"76d8f4ce4d8f5f761c17",65:"4879c25cdfda3d45f9dc",66:"bf333fac598e5fb02c53",67:"d46243fb66f5b4f6fcd9",68:"1f315dace19b5b31469f",69:"4bc7a625869c5145c33c",70:"18b36c1e74199f323ae6",71:"3e6d6b4c00e06bb9f31e",72:"c435b5902d336d5f8bd6",73:"e27a1e3dfbefc95f93f7",74:"187a5fa63dd301ca737b",75:"48d8f87a67a12b2190ff",76:"ce20caa438e9eeb51187",77:"b8bee483d20a23326b24",78:"4d92ae909f26a4de0efa",79:"6778aeea2e3acdae1228",80:"467ffd9e01fa57b6e14b",81:"c74d80962a1a81695d82",82:"2bee342937f9f9abf497",83:"7980443b8ecba7184e13",84:"3a3d94cb0710361148ba",85:"e5439abe451416c8a344",86:"68ef1ed9db41423ce521",87:"096acbc1edcf3c8257e6",88:"14fe0fab15433b4cde0f",89:"f57a97e9db4579af197d",90:"1563292e4aeb4451bb57",91:"cb219ccb86704f454c6c",92:"b8b28f280177a918217c",93:"c2f6f864a42a2ba094b6",94:"c42e61e21bb25d9e0150",95:"b077046d25021e946208",96:"168bdc512c663b26a069",97:"56e642d412b2fc947deb",98:"236e110d8120c6acfd7d",99:"802f5d827e1f0935804e",100:"d80ce773babc92db3bc2",101:"1f0864e7d0ad29d0048a",102:"6266585ead51278628b3",103:"f365ce110e2febef23d2",104:"7ddd6d683f54c5c651e4",105:"18de70296eed44fe89c8",106:"ab3da4e0a92d77c03282",107:"d484378b6b8d4d1ff833",108:"e60075087fcc80ac9955",109:"98005ba0cc90120e391a",110:"6f11347185ce6d11c1ae",111:"45ad72c5555972becf87",112:"66f365de75fe41b41e9d",113:"03a44732afdfedeb4aa0",114:"e9d21857e0415c120f37",115:"ce6a09c6b53c4c61eed8",116:"24d48e06a87d82dee2ce",117:"dd3b5b31ff3e7265758b",118:"962695d689fab5b64ee6",119:"7afe060b820457bb6998",120:"b71e87c7102749f9755c",121:"2edbff142c990b47fc8b",122:"a806cc58daea088865eb",123:"1cd586aae6ed61aaf302",124:"29147952d0ffef007ae9"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var f=c[e];0!==f&&(f&&f[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,f,a){d.o(e,f)||Object.defineProperty(e,f,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var f=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(f,"a",f),f},d.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]); !function(e){var a=window.webpackJsonp;window.webpackJsonp=function(f,b,n){for(var r,t,o,i=0,u=[];i<f.length;i++)t=f[i],c[t]&&u.push(c[t][0]),c[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(a&&a(f,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var f={},c={127:0};function d(a){if(f[a])return f[a].exports;var c=f[a]={i:a,l:!1,exports:{}};return e[a].call(c.exports,c,c.exports,d),c.l=!0,c.exports}d.e=function(e){var a=c[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var f=new Promise(function(f,d){a=c[e]=[f,d]});a[2]=f;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"7b18a781c9514751b160",1:"fd15a7f381f3fc4a55fe",2:"fb4b79d4f3ede430d199",3:"cf88d56554ebd1b98880",4:"f48e99bcbd5757fd7f21",5:"3734ef864d7dffe7af16",6:"88f20a11e0be0f0ca548",7:"59c49de3022be1649725",8:"15d7efa354ea6bd5fad0",9:"ccdd5ef4287324da425a",10:"0c309eceb04d492e8695",11:"c8269a6ce3166c2baddb",12:"62aacaf39a18c9d0c559",13:"12c16e4d04a9558c0ddc",14:"f6a9ebc9f4540effdcb3",15:"9d0d587ff1c54fd27ed2",16:"03efbc3fd86def29dffe",17:"bea90e10f3e91e59fb36",18:"a1250223e590e86a6f25",19:"e004122dbb0e72557b10",20:"b2063783bda9d1a2361e",21:"9d28421365d59dd36d09",22:"ed2d87a3b61cb1bcd405",23:"f730929b550ffa891382",24:"1e18a390fd39ae9a5096",25:"f0488296b7e86a8c6ef0",26:"9bcaea2d90c17205d28d",27:"01bdb2917143a5df7bff",28:"29c7f2707ca85abf0017",29:"609b38a8c86e6e684f01",30:"4056b61db48119d2a1c2",31:"a634530c09ea9f7e0d75",32:"83143918abc7e277f288",33:"7905d75f9175f609d621",34:"6bc9f5faa99efb8fd2e9",35:"46083964a212c678907a",36:"87c2c9137da36d5fa8c3",37:"e635d0ed36555c850026",38:"e45d712d2e39954a638a",39:"afe5e19b32c0ffaf76ba",40:"34f5b7f116a35d0971c4",41:"ea772bcf348838b56f91",42:"4f6eb774951a18ef66aa",43:"4dbaa38e7ba769a47e6e",44:"335286f78b998a185186",45:"cf47cdd6da007b37a000",46:"b3311a70aa6ecfdee9c8",47:"a5eeb72656805944f910",48:"1d703fcda8c1841d32b9",49:"fcebf9bf5b7e95b216c8",50:"485018b8549f36059c43",51:"75c13e0a19dc0f54c1f5",52:"2186bd4be4408d59d718",53:"515104094303f44a2d44",54:"c4b7a09cc216c32bc29f",55:"b6e727b20fb3f6b2db14",56:"526593ac3d2a5913eba8",57:"07a244d52c166f8884a0",58:"46417183229f03d64a87",59:"26a036286f9426a81cf8",60:"f9c9af8af1e35327ab25",61:"f9818758ba86dd5a1485",62:"5530c678ce4cd6fab6b6",63:"9bcf8d7df4219b5a3e7a",64:"ec8bb5bfe5a16066abb4",65:"4879c25cdfda3d45f9dc",66:"bf333fac598e5fb02c53",67:"d46243fb66f5b4f6fcd9",68:"1f315dace19b5b31469f",69:"4bc7a625869c5145c33c",70:"18b36c1e74199f323ae6",71:"3e6d6b4c00e06bb9f31e",72:"c435b5902d336d5f8bd6",73:"e27a1e3dfbefc95f93f7",74:"187a5fa63dd301ca737b",75:"48d8f87a67a12b2190ff",76:"ce20caa438e9eeb51187",77:"b8bee483d20a23326b24",78:"4d92ae909f26a4de0efa",79:"6778aeea2e3acdae1228",80:"467ffd9e01fa57b6e14b",81:"c74d80962a1a81695d82",82:"2bee342937f9f9abf497",83:"7980443b8ecba7184e13",84:"3a3d94cb0710361148ba",85:"e5439abe451416c8a344",86:"68ef1ed9db41423ce521",87:"096acbc1edcf3c8257e6",88:"14fe0fab15433b4cde0f",89:"f57a97e9db4579af197d",90:"1563292e4aeb4451bb57",91:"cb219ccb86704f454c6c",92:"b8b28f280177a918217c",93:"c2f6f864a42a2ba094b6",94:"c42e61e21bb25d9e0150",95:"b077046d25021e946208",96:"168bdc512c663b26a069",97:"56e642d412b2fc947deb",98:"236e110d8120c6acfd7d",99:"802f5d827e1f0935804e",100:"d80ce773babc92db3bc2",101:"1f0864e7d0ad29d0048a",102:"6266585ead51278628b3",103:"f365ce110e2febef23d2",104:"7ddd6d683f54c5c651e4",105:"18de70296eed44fe89c8",106:"ab3da4e0a92d77c03282",107:"d484378b6b8d4d1ff833",108:"e60075087fcc80ac9955",109:"98005ba0cc90120e391a",110:"6f11347185ce6d11c1ae",111:"45ad72c5555972becf87",112:"66f365de75fe41b41e9d",113:"03a44732afdfedeb4aa0",114:"e9d21857e0415c120f37",115:"ce6a09c6b53c4c61eed8",116:"24d48e06a87d82dee2ce",117:"dd3b5b31ff3e7265758b",118:"962695d689fab5b64ee6",119:"7afe060b820457bb6998",120:"b71e87c7102749f9755c",121:"2edbff142c990b47fc8b",122:"a806cc58daea088865eb",123:"1cd586aae6ed61aaf302",124:"29147952d0ffef007ae9"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=c[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),f},d.m=e,d.c=f,d.d=function(e,a,f){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:f})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div slot-scope="{ option }"> <div slot-scope="{ option }">
<p>{{ option.storeName }}</p> <p>{{ option.storeName }}</p>
<p style="font-size: 12px;line-height: 18px">{{ option.storeCode }}</p> <p style="font-size: 12px;line-height: 18px">{{ option.storeCode }}</p>
<p v-show="option.isOver == 1" class="isOver">所有导购今日添加已到上限</p> <p v-show="option.isOver == 0" class="isOver">所有导购今日添加已到上限</p>
</div> </div>
</dm-simple-transfer> </dm-simple-transfer>
<div class="show-select-num cursor-pointer w-250" slot="reference"> <div class="show-select-num cursor-pointer w-250" slot="reference">
...@@ -33,7 +33,8 @@ export default { ...@@ -33,7 +33,8 @@ export default {
departmentVisible: false, departmentVisible: false,
props: { props: {
key: 'storeId', key: 'storeId',
label: 'storeName' label: 'storeName',
isOver: 'isOver'
} }
}; };
}, },
...@@ -41,6 +42,10 @@ export default { ...@@ -41,6 +42,10 @@ export default {
change(val) { change(val) {
console.log(val); console.log(val);
this.$emit('change', val); this.$emit('change', val);
},
renderContent(h, { isOver, storeCode, storeId, storeName }) {
console.log(isOver, storeCode, storeId, storeName);
return h('p', [h('p', storeName), h('p', isOver)]);
} }
} }
}; };
......
...@@ -252,8 +252,7 @@ export default { ...@@ -252,8 +252,7 @@ export default {
this.getList(); this.getList();
}, 500), }, 500),
getStoreList() { getStoreList() {
storeListApi({}).then(res => { storeListApi({ pageSize: 99999 }).then(res => {
console.log(res);
const { result } = res.data.result; const { result } = res.data.result;
this.storeData = result || []; this.storeData = result || [];
if (this.form.storeList && this.form.storeList.length) { if (this.form.storeList && this.form.storeList.length) {
...@@ -271,6 +270,7 @@ export default { ...@@ -271,6 +270,7 @@ export default {
const { result } = res.data; const { result } = res.data;
if (result) { if (result) {
const { link, page } = result; const { link, page } = result;
link.customRuleJson = JSON.parse(link.customRuleJson); link.customRuleJson = JSON.parse(link.customRuleJson);
link.storeRuleJson = JSON.parse(link.storeRuleJson); link.storeRuleJson = JSON.parse(link.storeRuleJson);
link.storeList = link.storeList ? link.storeList : []; link.storeList = link.storeList ? link.storeList : [];
...@@ -365,6 +365,48 @@ export default { ...@@ -365,6 +365,48 @@ export default {
return; return;
} }
const data = JSON.parse(JSON.stringify(this.form)); const data = JSON.parse(JSON.stringify(this.form));
if (data.storeRuleJson.fw_store.open == 0) {
data.storeRuleJson.fw_store = {
open: 0, //是否开启 1是0否
zs: 1, //专属导购
dz: 0, //店长
dy: 0 // 其他导购
};
}
if (data.storeRuleJson.xg_store.open == 0) {
data.storeRuleJson.xg_store = {
open: 0,
zs: 1,
dz: 0,
dy: 0
};
}
if (data.customRuleJson.open == 0) {
data.customRuleJson = {
open: 0, //是否开启1是0否
store_type: 1, // 1推荐门店 2附近门店,
store: {
dz: 1, //店长
dy: 0, // 导购
ndz: 1, // 拒绝后店长
ndy: 0 //拒绝后导购
},
//省市筛选
city_store: {
open: 1, //是否开启1是0否
dz: 1, //店长
dy: 0 //导购
}
};
data.storeList = [];
}
if (data.customRuleJson.city_store.open == 0) {
data.customRuleJson.city_store = {
open: 0, //是否开启1是0否
dz: 1, //店长
dy: 0 //导购
};
}
data.storeRuleJson = JSON.stringify(data.storeRuleJson); data.storeRuleJson = JSON.stringify(data.storeRuleJson);
data.customRuleJson = JSON.stringify(data.customRuleJson); data.customRuleJson = JSON.stringify(data.customRuleJson);
data.wxEnterpriseId = this.wxEnterpriseId; data.wxEnterpriseId = this.wxEnterpriseId;
......
...@@ -122,7 +122,13 @@ export default { ...@@ -122,7 +122,13 @@ export default {
that.loading = false; that.loading = false;
if (resData.code == 0) { if (resData.code == 0) {
let result = resData.result || { addNumT: 0, addNum: 0, dateList: [] }; let result = resData.result || { addNumT: 0, addNum: 0, dateList: [] };
result.dateList.map(function(date) { // result.dateList = [
// { bizDate: '2018/8/1', 新增人数: 0 },
// { bizDate: '2018/8/2', 新增人数: 1 },
// { bizDate: '2018/8/3', 新增人数: 1 },
// { bizDate: '2018/8/4', 新增人数: 1 }
// ];
result.dateList.map(function(date, index) {
date['新增人数'] = date.addNum; date['新增人数'] = date.addNum;
}); });
that.overViewData = result; that.overViewData = result;
......
...@@ -55,22 +55,21 @@ export default { ...@@ -55,22 +55,21 @@ export default {
padding: [70, 60, 40, 70] padding: [70, 60, 40, 70]
}); });
//装载数据 //装载数据
let list = JSON.parse(JSON.stringify(this.charData));
this.chart.source(this.charData); // 载入数据源 list.sort((a, b) => {
// this.chart.data(this.charData, { return b.新增人数 - a.新增人数;
// bizDate: { });
// alias: '日期' //别名 let maxNum = list[0]['新增人数'];
// }, // console.log(list);
// addNum: { this.chart.data(this.charData); // 载入数据源
// alias: '新增人数'
// }
// });
this.chart.scale({ this.chart.scale({
新增人数: { 新增人数: {
tickInterval: 1, // tickInterval: 1,
tickCount: 5, tickCount: maxNum > 2 ? 5 : maxNum + 1,
minTickInterval: 1,
nice: true, nice: true,
min: 0 min: 0
// type: 'linear'
} }
}); });
this.chart.axis('新增人数', { this.chart.axis('新增人数', {
......
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