Commit fce6a00b by huaying

update: dist

parent ed0b55c2
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./static/img/favicon.ico><title></title><link rel=stylesheet href=//at.alicdn.com/t/font_688955_2dxzdzrb3a7.css><link rel=stylesheet href=//at.alicdn.com/t/font_3276801_5bjk41qthxj.css><script src=//at.alicdn.com/t/font_3276801_5bjk41qthxj.js></script><link rel="shortcut icon" href=./favicon.ico><link href=./static/css/app.ac0d9272051f162bfd2134a1489926f7.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app><div class=el-loading-spinner style="width: 98%;"><svg viewBox="25 25 50 50" class=circular><circle cx=50 cy=50 r=20 fill=none class=path></circle></svg></div></div><script>(function() { <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./static/img/favicon.ico><title></title><link rel=stylesheet href=//at.alicdn.com/t/font_688955_2dxzdzrb3a7.css><link rel=stylesheet href=//at.alicdn.com/t/font_3276801_5bjk41qthxj.css><script src=//at.alicdn.com/t/font_3276801_5bjk41qthxj.js></script><link rel="shortcut icon" href=./favicon.ico><link href=./static/css/app.00ab77baf73bc92155124bb1d741cfbd.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app><div class=el-loading-spinner style="width: 98%;"><svg viewBox="25 25 50 50" class=circular><circle cx=50 cy=50 r=20 fill=none class=path></circle></svg></div></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/track.1.0.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script type=text/javascript src=./static/js/manifest.0fc82cdf9e8a775ca04e.js></script><script type=text/javascript src=./static/js/vendor.42f883472a1fc4925cbd.js></script><script type=text/javascript src=./static/js/app.a944f905dccf130a70a5.js></script></body></html> })()</script><script src=//web-1251519181.file.myqcloud.com/components/track.1.0.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script type=text/javascript src=./static/js/manifest.63021489dabb70ec1237.js></script><script type=text/javascript src=./static/js/vendor.42f883472a1fc4925cbd.js></script><script type=text/javascript src=./static/js/app.28e6c4639f4dfcfca36b.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([14],{OILt:function(e,t){},Y3qZ:function(e,t){},Y4Pr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Dd8w"),o=a.n(r),s=(a("Y3qZ"),a("G9rT")),i=a("Ch4/"),n=a("P9l9"),c=a("2CGT"),l=a("2uFj"),m={name:"memberGroupDetail",data:function(){return{memberCount:0,aliasName:this.$route.query.aliasName,loading:!0,showUserDefined:!1,memberFields:[],selectedUserDefined:[],selectedFields:[],downMemberListPop:{canDown:!1,show:!1,excelUrl:"/gic-member-tag-web/member-tag-member/memberExportExcel",params:{memberTagGroupId:"",requestProject:"member-tag",exportFields:""}},groupName:"分组名称",groupIsRealTime:1,selectedTagData:[],sortableFlag:!1,memberGroupDetailData:[],memberGroupDetailDataBack:[],currentPage:1,pageSize:20,total:0,singleInfo:{sex:0,age:0,cardNo:0,mainStoreName:"dd",costFee:0,costTimes:0,lastCost:0,numOfSale:0,numOfmarket:0,couponCount:0,status:0,wxStatus:0,phoneStatus:0,authStatus:0},baseUrl:"",sortFiled:"",order:"",tagSearch:"",tableFiledVisible:!1,checkFields:["cardNo","gradeName","crateCardDateStringFormat","lastCostTimeFormat","costTimes","avgCost","birthdayMDFormat","pointsCurrent","costAll","mainStoreName","openStoreName"]}},computed:{tips:function(){var e=this.$route.query.aliasName,t=l.a.find(function(t){return t.name===e});return t?t.title:""}},filters:{formatTimeYMD:function(e){if(e&&e>0){var t=e.toString().split("");return t.splice(0,4).join("")+"-"+t.splice(0,2).join("")+"-"+t.splice(0,2).join("")}return"--"},formatTimeHMS:function(e){if(e&&e>0){var t=e.toString().split("");return t.splice(0,8),t.splice(0,2).join("")+":"+t.splice(0,2).join("")+":"+t.splice(0,2).join("")}return"--"}},methods:{canDownMemberList:function(){var e=this;Object(n.a)("/member-tag-member/isExportEnterprise",{}).then(function(t){0==t.data.errorCode&&(e.downMemberListPop.canDown="true"===t.data.result||!0===t.data.result)})},separator:function(e){return(e+="").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")},sortChange:function(e){e.column;var t=e.prop,a=e.order;this.sortFiled=t,this.order="descending"==a?"desc":"asc",this.getGroupDetail()},getTagValueDtoList:function(){var e=this,t=this,a={memberTagGroupId:t.$route.query.memberTagGroupId};Object(n.a)("/member-tag-group/findOneDetial.json",a).then(function(a){t.groupName=a.data.result.tagGroupDto.groupName,t.groupIsRealTime=a.data.result.tagGroupDto.isRealTime;var r=a.data.result.tagValueDtoList;r.forEach(function(e){e.tagParams&&(e.tagParams=JSON.parse(e.tagParams))}),e.selectedTagData=r}).catch(function(e){console.log(e,"error of getTagValueDtoList")})},showDefined:function(){this.showUserDefined=!0},hideUserDefined:function(e){this.showUserDefined=e},confirmUserDefined:function(e){var t=this;if(e.length<1)return this.$message.error({duration:1e3,message:"请选择自定义字段"}),!1;this.loading=!0;var a=e.join(",");this.selectedUserDefined=e,this.showUserDefined=!1,this.selectedFields=[],this.selectedFields=this.memberFields.filter(function(e){return t.selectedUserDefined.includes(e.code)}),this.saveFieldsList(a).then(function(){t.loading=!1})},saveFieldsList:function(e){var t={pageName:"notMember,wxOpenCarMember,posMember",fields:e};return this.axios.post(this.baseUrl+"/api-member/update-fields?requestProject=memberTag",t)},handleSizeChange:function(e){this.pageSize=e,this.getGroupDetail()},handleCurrentChange:function(e){this.currentPage=e,this.getGroupDetail()},getGroupDetail:function(e){var t=this,a={memberTagGroupId:this.$route.query.memberTagGroupId,pageNum:this.currentPage,pageSize:this.pageSize,pageName:"memberSign",sortColName:t.sortFiled,sortType:t.order,search:t.tagSearch};Object(n.a)("/member-tag-member/findMemberList.json",a).then(function(a){t.total=a.data.result.page.totalCount,t.memberGroupDetailData=a.data.result.page.result,e&&e.forEach(function(e,a){"name"===e.code?(e.check=!0,e.disabled=!0,t.selectedUserDefined.push(e.code),t.selectedFields.push(e)):e.check&&(t.selectedUserDefined.push(e.code),t.selectedFields.push(e))}),t.loading=!1}).catch(function(e){t.loading=!1})},clearSearch:function(){this.tagSearch="",this.currentPage=1,this.getGroupDetail()},enterSearch:function(){this.currentPage=1,this.getGroupDetail()},linkDetail:function(e,t){this.$getButtonLimit(this.$buttonCode.memberTagToCheck)&&window.open(t?window.location.origin+"/member/#/wechatmemberDetail?memberId="+e+"&channel=wxMember&fromPage=memberGroup":window.location.origin+"/member/#/posmemberDetail?memberId="+e+"&channel=posMember&fromPage=memberGroup")},showSingleInfo:function(e){var t=this,a={memberId:e};t.singleInfo="",t.axios.post(t.baseUrl+"/api-member/load-member-single-info?requestProject=memberTag",a).then(function(e){var a=e.data;if(0!=a.errorCode)i.a.errorMsg(a);else{var r=a.result.memberSingle;t.singleInfo=o()({},r,{sex:0==r.sex?"性别未知":1==r.sex?"男":"女",age:0!=r.age?r.age:"年龄未知",cardNo:r.cardNo?r.cardNo:"无会员卡",mainStoreName:r.mainStoreName?r.mainStoreName:"主门店未知"})}}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getFieldsList:function(){var e=this;e.selectedUserDefined=[],e.selectedFields=[],e.axios.post(e.baseUrl+"/api-member/find-member-fields?requestProject=memberTag",{pageName:"notMember,wxOpenCarMember,posMember"}).then(function(t){var a=t.data;if(0==a.errorCode)return e.memberFields=a.result,void e.getGroupDetail(a.result);i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getLevelData:function(){var e=this;Object(c.u)({requestProject:"gic-member-tag-web"}).then(function(t){if(0==t.errorCode){var a=t.result,r=e.$route.query.memberTagGroupId,o=a.find(function(e){return e.memberTagGradeId===r})||{};e.memberCount=o.memberCount}})},onSubmiTableFiled:function(e){var t=this.downMemberListPop.params;this.downMemberListPop.show=!0,t.exportFields=e.toString()},setDesc:function(e,t){switch(e){case"核心":return"年平均消费次数 ≥ 3 且 年平均消费金额 ≥ 3倍企业去年客单且休眠天数为"+t;case"潜力":return"除核心会员、潜力会员、未消费会员之外的会员且休眠天数为"+t;case"普通":return"消费次数 = 1 次且休眠天数为"+t}}},beforeMount:function(){var e=window.location.origin;"-1"!=e.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=e,this.getLevelData()},mounted:function(){var e=window.location.origin,t=this.$route.query.memberTagGroupId;-1!=e.indexOf("localhost")&&(e="http://gicdev.demogic.com");var a=this.$route.query.type;this.downMemberListPop.params.gradeId=t,this.downMemberListPop.params.memberTagGroupId=t,a&&(this.downMemberListPop.params.exportFieldPrefix=a),this.downMemberListPop.excelUrl=e+this.downMemberListPop.excelUrl,this.getTagValueDtoList(),this.getFieldsList(),document.getElementById("app").style.zIndex="auto"},components:{userDefined:s.a}},d={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"memberGroupDetail-wrap common-wrap"},[r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("div",{staticClass:"memberGroupDetail-wrap__info m-b-20"},[r("span",{staticClass:"group-name"},[e._v(e._s(e.aliasName))]),e._v(" "),r("span",{directives:[{name:"show",rawName:"v-show",value:e.$route.query.type,expression:"$route.query.type"}]},[e._v("( "+e._s(e.setDesc(e.$route.query.type,e.$route.query.time))+" )")]),e._v(" "),r("span",{staticClass:"group-total m-l-20 p-l-20"},[e._v("\n 覆盖人数\n "),r("span",[e._v(e._s(e.separator(e.total)))]),e._v("\n 人\n ")]),e._v(" "),e.$getButtonLimit(e.$buttonCode.memberTagExportPeople)?[e.total<1e6?r("el-button",{staticClass:"down-member-list__btn",attrs:{type:"primary","limit-code":e.$buttonCode.memberTagExportPeople},on:{click:function(t){e.tableFiledVisible=!0}}},[r("i",{staticClass:"iconfont icon-xiazai",staticStyle:{"margin-right":"5px"}}),e._v("导出人群")]):r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"每张报表导出人数限制为100万,大于100万的人群会自动拆分为多张报表进行导出",placement:"top"}},[r("el-button",{staticClass:"down-member-list__btn",attrs:{type:"primary","limit-code":e.$buttonCode.memberTagExportPeople},on:{click:function(t){e.tableFiledVisible=!0}}},[r("i",{staticClass:"iconfont icon-xiazai",staticStyle:{"margin-right":"5px"}}),e._v("导出人群")])],1)]:e._e()],2),e._v(" "),r("div",{staticClass:"memberGroupDetail-wrap__table"},[r("el-input",{staticClass:"w-220 m-r-8",staticStyle:{margin:"20px 0"},attrs:{placeholder:"请输入会员卡号、手机号","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.enterSearch(t)}},model:{value:e.tagSearch,callback:function(t){e.tagSearch=t},expression:"tagSearch"}}),e._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.memberGroupDetailData},on:{"sort-change":e.sortChange}},[e._l(e.selectedFields,function(t){return r("el-table-column",{key:t.code,attrs:{sortable:"name"!=t.code&&"grade"!=t.code&&"status"!=t.code&&"channel"!=t.code&&"createCardStoreName"!=t.code&&"cardNo"!=t.code&&"forzenStatus"!=t.code&&"mainStoreName"!=t.code&&"costCategory"!=t.code&&"custom",prop:t.code,fixed:"name"==t.code,"min-width":"name"==t.code?260:200,label:t.name},scopedSlots:e._u([{key:"default",fn:function(o){return["name"==t.code?[r("div",{staticClass:"tablecontent-cell",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.linkDetail(o.row.memberId,o.row.isWeixinMember)}}},[r("span",[r("div",{staticClass:"flex"},[r("span",{staticClass:"table-member__img inline-block middle border-box m-r-10"},[r("img",{attrs:{src:o.row.thirdImgUrl?o.row.thirdImgUrl:a("OFPh")}})]),e._v(" "),r("div",{staticClass:"inline-block"},[r("span",[e._v(e._s(o.row.memberName)),o.row.nickName?r("span",{staticClass:"tips"},[e._v(" ("+e._s(o.row.nickName)+")")]):e._e()]),e._v(" "),r("p",[e._v(e._s(o.row.phoneNumber))])])])])])]:e._e(),e._v(" "),"grade"==t.code?[e._v("\n "+e._s(o.row.gradeName)+"\n ")]:e._e(),e._v(" "),"status"==t.code?[Array.isArray(o.row.memberSources)&&0!=o.row.memberSources.filter(function(e){return 1==e.highlight||2==e.highlight}).length?e._l((o.row.memberSources||[]).filter(function(e){return 1==e.highlight||2==e.highlight}),function(t){return r("span",{key:t.parentSourceCode,staticClass:"channel-box"},[1==t.highlight?[1100==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("N5cG"),alt:""}}):e._e(),e._v(" "),1600==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("yTU0"),alt:""}}):e._e(),e._v(" "),1700==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("UHeg"),alt:""}}):e._e(),e._v(" "),1303==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("QqnO"),alt:""}}):e._e(),e._v(" "),1302==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("Mf6J"),alt:""}}):e._e(),e._v(" "),1304==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("ftDi"),alt:""}}):e._e()]:e._e(),e._v(" "),2==t.highlight?[1100==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("tqzs"),alt:""}}):e._e(),e._v(" "),1600==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("UuGo"),alt:""}}):e._e(),e._v(" "),1700==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("J7kc"),alt:""}}):e._e(),e._v(" "),1303==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("OpU4"),alt:""}}):e._e(),e._v(" "),1302==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("Ipa6"),alt:""}}):e._e(),e._v(" "),1304==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("Uyt0"),alt:""}}):e._e()]:e._e()],2)}):[e._v("--")]]:e._e(),e._v(" "),"channel"==t.code?[r("span",{staticClass:"channelicon",class:0==o.row.channelTaobao?"taobaoicongray":1==o.row.channelTaobao?"taobaoicon":""}),e._v(" "),r("span",{staticClass:"channelicon",class:0==o.row.channelJd?"jdicongray":1==o.row.channelJd?"jdicon":""}),e._v(" "),r("span",{staticClass:"channelicon",class:0==o.row.channelWei?"vipicongray":1==o.row.channelWei?"vipicon":""})]:e._e(),e._v(" "),"crateCardDateString"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(o.row.crateCardDateString)))]),e._v(" "),r("div",[e._v(e._s(e._f("formatTimeHMS")(o.row.crateCardDateString)))])]:e._e(),e._v(" "),"createTime"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(o.row.createTime)))]),e._v(" "),r("div",[e._v(e._s(e._f("formatTimeHMS")(o.row.createTime)))])]:e._e(),e._v(" "),"attentionDate"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(o.row.attentionTime)))]),e._v(" "),r("div",[e._v(e._s(e._f("formatTimeHMS")(o.row.attentionTime)))])]:e._e(),e._v(" "),"costAll"==t.code?[r("span",[e._v("\n "+e._s(o.row.costFee)+"\n ")])]:e._e(),e._v(" "),"costTimes"==t.code?[r("div",[e._v(e._s(o.row.costTimes))])]:e._e(),e._v(" "),"lastCostTime"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(o.row.lastCostTime)))])]:e._e(),e._v(" "),"avgCost"==t.code?[e._v("\n "+e._s(o.row.avgCost)+"\n ")]:e._e(),e._v(" "),"avgNumber"==t.code?[e._v("\n "+e._s(o.row.avgNumber)+"\n ")]:e._e(),e._v(" "),"costCategory"==t.code?[e._v("\n "+e._s(o.row.costCategory)+"\n ")]:e._e(),e._v(" "),"discountRate"==t.code?[e._v("\n "+e._s(o.row.discountRate)+"\n ")]:e._e(),e._v(" "),"cancelAttentionTime"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(o.row.cancelAttentionTime)))]),e._v(" "),r("div",[e._v(e._s(e._f("formatTimeHMS")(o.row.cancelAttentionTime)))])]:e._e(),e._v(" "),"age"==t.code?[e._v("\n "+e._s(o.row.age)+"\n ")]:e._e(),e._v(" "),"birthday"==t.code?[e._v("\n "+e._s(o.row.birthdayMD)+"\n ")]:e._e(),e._v(" "),"storedValueAll"==t.code?[e._v("\n "+e._s(o.row.storedValueAll)+"\n ")]:e._e(),e._v(" "),"storedValueCurrent"==t.code?[e._v("\n "+e._s(o.row.storedValueCurrent)+"\n ")]:e._e(),e._v(" "),"pointsAll"==t.code?[e._v("\n "+e._s(o.row.pointsAll)+"\n ")]:e._e(),e._v(" "),"pointsCurrent"==t.code?[e._v("\n "+e._s(o.row.pointsCurrent)+"\n ")]:e._e(),e._v(" "),"mainStoreName"==t.code?[e._v("\n "+e._s(o.row.mainStoreName)+"\n ")]:e._e(),e._v(" "),"createCardStoreName"==t.code?[e._v("\n "+e._s(o.row.openStoreName)+"\n ")]:e._e(),e._v(" "),"cardNo"==t.code?[e._v("\n "+e._s(o.row.cardNo)+"\n ")]:e._e(),e._v(" "),"openClerkId"==t.code?[e._v("\n "+e._s(o.row.openClerkName||"--")+"\n ")]:e._e(),e._v(" "),"clerkId"==t.code?[e._v("\n "+e._s(o.row.clerkName||"--")+"\n ")]:e._e(),e._v(" "),"frozenStatus"==t.code?[0==o.row.frozenStatus?r("span",{staticClass:"dm-status--success"},[e._v("正常")]):e._e(),e._v(" "),1==o.row.frozenStatus?r("span",{staticClass:"dm-status--warning"},[e._v("冻结")]):e._e()]:e._e(),e._v(" "),"lastCost"==t.code?[e._v("\n "+e._s(o.row.lastCost)+"\n ")]:e._e(),e._v(" "),"highCost"===t.code?[r("span",[e._v(e._s(o.row.highCost))])]:e._e(),e._v(" "),"costFeePaid"===t.code?[r("span",[e._v(e._s(o.row.costFeePaid))])]:e._e(),e._v(" "),"lastCostPaid"===t.code?[r("span",[e._v(e._s(o.row.lastCostPaid))])]:e._e(),e._v(" "),"highCostPaid"===t.code?[r("span",[e._v(e._s(o.row.highCostPaid))])]:e._e()]}}])})}),e._v(" "),e.$getButtonLimit(e.$buttonCode.memberTagToCheck)?r("el-table-column",{attrs:{"label-class-name":"table-header__handle",fixed:"right","min-width":160},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isWeixinMember?r("a",{staticClass:"el-button el-button--text",attrs:{rel:"nofollow noopener noreferrer",target:"_blank","limit-code":e.$buttonCode.memberTagToCheck,href:"/member/#/wechatmemberDetail?memberId="+t.row.memberId+"&channel=wxMember&fromPage=memberGroup"}},[e._v("查看")]):r("a",{staticClass:"el-button el-button--text",attrs:{rel:"nofollow noopener noreferrer",target:"_blank","limit-code":e.$buttonCode.memberTagToCheck,href:"/member/#/posmemberDetail?memberId="+t.row.memberId+"&channel=posMember&fromPage=memberGroup"}},[e._v("查看")])]}}])},[r("template",{slot:"header"},[r("span",[e._v("操作")]),e._v(" "),r("i",{staticClass:"el-icon-setting",on:{click:e.showDefined}})])],2):e._e()],2)],1),e._v(" "),0!=e.memberGroupDetailData.length?r("div",{staticClass:"block common-wrap__page text-right"},[r("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()])]),e._v(" "),r("userDefined",{attrs:{fieldsData:e.memberFields,selectedData:e.selectedUserDefined,showUserDefined:e.showUserDefined},on:{hideUserDefined:e.hideUserDefined,confirmUserDefined:e.confirmUserDefined}}),e._v(" "),r("vue-gic-export-excel",{attrs:{dialogVisible:e.downMemberListPop.show,excelUrl:e.downMemberListPop.excelUrl,params:e.downMemberListPop.params,dataArr:e.memberGroupDetailData,type:"2",projectName:"member-tag"},on:{"update:dialogVisible":function(t){return e.$set(e.downMemberListPop,"show",t)},"update:dialog-visible":function(t){return e.$set(e.downMemberListPop,"show",t)}}}),e._v(" "),r("dm-table-filed",{attrs:{visible:e.tableFiledVisible,projectName:"member-tag",pageName:"memberTag",max:20,defaultDisabled:["memberName"],checkedFields:e.checkFields},on:{"update:visible":function(t){e.tableFiledVisible=t},submit:e.onSubmiTableFiled}})],1)},staticRenderFns:[]};var u=a("VU/8")(m,d,!1,function(e){a("OILt")},"data-v-96c13c28",null);t.default=u.exports}});
\ No newline at end of file
webpackJsonp([14],{Y3qZ:function(e,t){},Y4Pr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Dd8w"),o=a.n(r),s=(a("Y3qZ"),a("G9rT")),i=a("Ch4/"),n=a("P9l9"),c=a("2CGT"),l=a("2uFj"),m={name:"memberGroupDetail",data:function(){return{memberCount:0,aliasName:this.$route.query.aliasName,loading:!0,showUserDefined:!1,memberFields:[],selectedUserDefined:[],selectedFields:[],downMemberListPop:{canDown:!1,show:!1,excelUrl:"/gic-member-tag-web/member-tag-member/memberExportExcel",params:{memberTagGroupId:"",requestProject:"member-tag",exportFields:""}},groupName:"分组名称",groupIsRealTime:1,selectedTagData:[],sortableFlag:!1,memberGroupDetailData:[],memberGroupDetailDataBack:[],currentPage:1,pageSize:20,total:0,singleInfo:{sex:0,age:0,cardNo:0,mainStoreName:"dd",costFee:0,costTimes:0,lastCost:0,numOfSale:0,numOfmarket:0,couponCount:0,status:0,wxStatus:0,phoneStatus:0,authStatus:0},baseUrl:"",sortFiled:"",order:"",tagSearch:"",tableFiledVisible:!1,checkFields:["cardNo","gradeName","crateCardDateStringFormat","lastCostTimeFormat","costTimes","avgCost","birthdayMDFormat","pointsCurrent","costAll","mainStoreName","openStoreName"]}},computed:{tips:function(){var e=this.$route.query.aliasName,t=l.a.find(function(t){return t.name===e});return t?t.title:""}},filters:{formatTimeYMD:function(e){if(e&&e>0){var t=e.toString().split("");return t.splice(0,4).join("")+"-"+t.splice(0,2).join("")+"-"+t.splice(0,2).join("")}return"--"},formatTimeHMS:function(e){if(e&&e>0){var t=e.toString().split("");return t.splice(0,8),t.splice(0,2).join("")+":"+t.splice(0,2).join("")+":"+t.splice(0,2).join("")}return"--"}},methods:{canDownMemberList:function(){var e=this;Object(n.a)("/member-tag-member/isExportEnterprise",{}).then(function(t){0==t.data.errorCode&&(e.downMemberListPop.canDown="true"===t.data.result||!0===t.data.result)})},separator:function(e){return(e+="").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")},sortChange:function(e){e.column;var t=e.prop,a=e.order;this.sortFiled=t,this.order="descending"==a?"desc":"asc",this.getGroupDetail()},getTagValueDtoList:function(){var e=this,t=this,a={memberTagGroupId:t.$route.query.memberTagGroupId};Object(n.a)("/member-tag-group/findOneDetial.json",a).then(function(a){t.groupName=a.data.result.tagGroupDto.groupName,t.groupIsRealTime=a.data.result.tagGroupDto.isRealTime;var r=a.data.result.tagValueDtoList;r.forEach(function(e){e.tagParams&&(e.tagParams=JSON.parse(e.tagParams))}),e.selectedTagData=r}).catch(function(e){console.log(e,"error of getTagValueDtoList")})},showDefined:function(){this.showUserDefined=!0},hideUserDefined:function(e){this.showUserDefined=e},confirmUserDefined:function(e){var t=this;if(e.length<1)return this.$message.error({duration:1e3,message:"请选择自定义字段"}),!1;this.loading=!0;var a=e.join(",");this.selectedUserDefined=e,this.showUserDefined=!1,this.selectedFields=[],this.selectedFields=this.memberFields.filter(function(e){return t.selectedUserDefined.includes(e.code)}),this.saveFieldsList(a).then(function(){t.loading=!1})},saveFieldsList:function(e){var t={pageName:"notMember,wxOpenCarMember,posMember",fields:e};return this.axios.post(this.baseUrl+"/api-member/update-fields?requestProject=memberTag",t)},handleSizeChange:function(e){this.pageSize=e,this.getGroupDetail()},handleCurrentChange:function(e){this.currentPage=e,this.getGroupDetail()},getGroupDetail:function(e){var t=this,a={memberTagGroupId:this.$route.query.memberTagGroupId,pageNum:this.currentPage,pageSize:this.pageSize,pageName:"memberSign",sortColName:t.sortFiled,sortType:t.order,search:t.tagSearch};Object(n.a)("/member-tag-member/findMemberList.json",a).then(function(a){t.total=a.data.result.page.totalCount,t.memberGroupDetailData=a.data.result.page.result,e&&e.forEach(function(e,a){"name"===e.code?(e.check=!0,e.disabled=!0,t.selectedUserDefined.push(e.code),t.selectedFields.push(e)):e.check&&(t.selectedUserDefined.push(e.code),t.selectedFields.push(e))}),t.loading=!1}).catch(function(e){t.loading=!1})},clearSearch:function(){this.tagSearch="",this.currentPage=1,this.getGroupDetail()},enterSearch:function(){this.currentPage=1,this.getGroupDetail()},linkDetail:function(e,t){this.$getButtonLimit(this.$buttonCode.memberTagToCheck)&&window.open(t?window.location.origin+"/member/#/wechatmemberDetail?memberId="+e+"&channel=wxMember&fromPage=memberGroup":window.location.origin+"/member/#/posmemberDetail?memberId="+e+"&channel=posMember&fromPage=memberGroup")},showSingleInfo:function(e){var t=this,a={memberId:e};t.singleInfo="",t.axios.post(t.baseUrl+"/api-member/load-member-single-info?requestProject=memberTag",a).then(function(e){var a=e.data;if(0!=a.errorCode)i.a.errorMsg(a);else{var r=a.result.memberSingle;t.singleInfo=o()({},r,{sex:0==r.sex?"性别未知":1==r.sex?"男":"女",age:0!=r.age?r.age:"年龄未知",cardNo:r.cardNo?r.cardNo:"无会员卡",mainStoreName:r.mainStoreName?r.mainStoreName:"主门店未知"})}}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getFieldsList:function(){var e=this;e.selectedUserDefined=[],e.selectedFields=[],e.axios.post(e.baseUrl+"/api-member/find-member-fields?requestProject=memberTag",{pageName:"notMember,wxOpenCarMember,posMember"}).then(function(t){var a=t.data;if(0==a.errorCode)return e.memberFields=a.result,void e.getGroupDetail(a.result);i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getLevelData:function(){var e=this;Object(c.u)({requestProject:"gic-member-tag-web"}).then(function(t){if(0==t.errorCode){var a=t.result,r=e.$route.query.memberTagGroupId,o=a.find(function(e){return e.memberTagGradeId===r})||{};e.memberCount=o.memberCount}})},onSubmiTableFiled:function(e){var t=this.downMemberListPop.params;this.downMemberListPop.show=!0,t.exportFields=e.toString()},setDesc:function(e,t){switch(e){case"核心":return"年平均消费次数 ≥ 3 且 年平均消费金额 ≥ 3倍企业去年客单且休眠天数为"+t;case"潜力":return"除核心会员、潜力会员、未消费会员之外的会员且休眠天数为"+t;case"普通":return"消费次数 = 1 次且休眠天数为"+t}}},beforeMount:function(){var e=window.location.origin;"-1"!=e.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=e,this.getLevelData()},mounted:function(){var e=window.location.origin,t=this.$route.query.memberTagGroupId;-1!=e.indexOf("localhost")&&(e="http://gicdev.demogic.com");var a=this.$route.query.type;this.downMemberListPop.params.gradeId=t,this.downMemberListPop.params.memberTagGroupId=t,a&&(this.downMemberListPop.params.exportFieldPrefix=a),this.downMemberListPop.excelUrl=e+this.downMemberListPop.excelUrl,this.getTagValueDtoList(),this.getFieldsList(),document.getElementById("app").style.zIndex="auto"},components:{userDefined:s.a}},d={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"memberGroupDetail-wrap common-wrap"},[r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("div",{staticClass:"memberGroupDetail-wrap__info m-b-20"},[r("span",{staticClass:"group-name"},[e._v(e._s(e.aliasName))]),e._v(" "),r("span",{directives:[{name:"show",rawName:"v-show",value:e.$route.query.type,expression:"$route.query.type"}]},[e._v("( "+e._s(e.setDesc(e.$route.query.type,e.$route.query.time))+" )")]),e._v(" "),r("span",{staticClass:"group-total m-l-20 p-l-20"},[e._v("\n 覆盖人数\n "),r("span",[e._v(e._s(e.separator(e.total)))]),e._v("\n 人\n ")]),e._v(" "),e.$getButtonLimit(e.$buttonCode.memberTagExportPeople)?[e.total<1e6?r("el-button",{staticClass:"down-member-list__btn",attrs:{type:"primary","limit-code":e.$buttonCode.memberTagExportPeople},on:{click:function(t){e.tableFiledVisible=!0}}},[r("i",{staticClass:"iconfont icon-xiazai",staticStyle:{"margin-right":"5px"}}),e._v("导出人群")]):r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"每张报表导出人数限制为100万,大于100万的人群会自动拆分为多张报表进行导出",placement:"top"}},[r("el-button",{staticClass:"down-member-list__btn",attrs:{type:"primary","limit-code":e.$buttonCode.memberTagExportPeople},on:{click:function(t){e.tableFiledVisible=!0}}},[r("i",{staticClass:"iconfont icon-xiazai",staticStyle:{"margin-right":"5px"}}),e._v("导出人群")])],1)]:e._e()],2),e._v(" "),r("div",{staticClass:"memberGroupDetail-wrap__table"},[r("el-input",{staticClass:"w-220 m-r-8",staticStyle:{margin:"20px 0"},attrs:{placeholder:"请输入会员卡号、手机号","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.enterSearch(t)}},model:{value:e.tagSearch,callback:function(t){e.tagSearch=t},expression:"tagSearch"}}),e._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.memberGroupDetailData},on:{"sort-change":e.sortChange}},[e._l(e.selectedFields,function(t){return r("el-table-column",{key:t.code,attrs:{sortable:"name"!=t.code&&"grade"!=t.code&&"status"!=t.code&&"channel"!=t.code&&"createCardStoreName"!=t.code&&"cardNo"!=t.code&&"forzenStatus"!=t.code&&"mainStoreName"!=t.code&&"costCategory"!=t.code&&"custom",prop:t.code,fixed:"name"==t.code,"min-width":"name"==t.code?260:200,label:t.name},scopedSlots:e._u([{key:"default",fn:function(o){return["name"==t.code?[r("div",{staticClass:"tablecontent-cell",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.linkDetail(o.row.memberId,o.row.isWeixinMember)}}},[r("span",[r("div",{staticClass:"flex"},[r("span",{staticClass:"table-member__img inline-block middle border-box m-r-10"},[r("img",{attrs:{src:o.row.thirdImgUrl?o.row.thirdImgUrl:a("OFPh")}})]),e._v(" "),r("div",{staticClass:"inline-block"},[r("span",[e._v(e._s(o.row.memberName)),o.row.nickName?r("span",{staticClass:"tips"},[e._v(" ("+e._s(o.row.nickName)+")")]):e._e()]),e._v(" "),r("p",[e._v(e._s(o.row.phoneNumber))])])])])])]:e._e(),e._v(" "),"grade"==t.code?[e._v("\n "+e._s(o.row.gradeName)+"\n ")]:e._e(),e._v(" "),"status"==t.code?[Array.isArray(o.row.memberSources)&&0!=o.row.memberSources.filter(function(e){return 1==e.highlight||2==e.highlight}).length?e._l((o.row.memberSources||[]).filter(function(e){return 1==e.highlight||2==e.highlight}),function(t){return r("span",{key:t.parentSourceCode,staticClass:"channel-box"},[1==t.highlight?[1100==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("N5cG"),alt:""}}):e._e(),e._v(" "),1600==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("yTU0"),alt:""}}):e._e(),e._v(" "),1700==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("UHeg"),alt:""}}):e._e(),e._v(" "),1303==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("QqnO"),alt:""}}):e._e(),e._v(" "),1302==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("Mf6J"),alt:""}}):e._e(),e._v(" "),1304==t.parentSourceCode?r("span",[1==t.activeFlag?r("img",{staticClass:"channel-icon",attrs:{src:a("ftDi"),alt:""}}):e._e(),e._v(" "),1!=t.activeFlag?r("img",{staticClass:"channel-icon",attrs:{src:a("lbg2"),alt:""}}):e._e()]):e._e()]:e._e(),e._v(" "),2==t.highlight?[1100==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("tqzs"),alt:""}}):e._e(),e._v(" "),1600==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("UuGo"),alt:""}}):e._e(),e._v(" "),1700==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("J7kc"),alt:""}}):e._e(),e._v(" "),1303==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("OpU4"),alt:""}}):e._e(),e._v(" "),1302==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("Ipa6"),alt:""}}):e._e(),e._v(" "),1304==t.parentSourceCode?r("span",[1==t.activeFlag?r("img",{staticClass:"channel-icon",attrs:{src:a("Uyt0"),alt:""}}):e._e(),e._v(" "),1!=t.activeFlag?r("img",{staticClass:"channel-icon",attrs:{src:a("lbg2"),alt:""}}):e._e()]):e._e()]:e._e()],2)}):[e._v("--")]]:e._e(),e._v(" "),"channel"==t.code?[r("span",{staticClass:"channelicon",class:0==o.row.channelTaobao?"taobaoicongray":1==o.row.channelTaobao?"taobaoicon":""}),e._v(" "),r("span",{staticClass:"channelicon",class:0==o.row.channelJd?"jdicongray":1==o.row.channelJd?"jdicon":""}),e._v(" "),r("span",{staticClass:"channelicon",class:0==o.row.channelWei?"vipicongray":1==o.row.channelWei?"vipicon":""})]:e._e(),e._v(" "),"crateCardDateString"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(o.row.crateCardDateString)))]),e._v(" "),r("div",[e._v(e._s(e._f("formatTimeHMS")(o.row.crateCardDateString)))])]:e._e(),e._v(" "),"createTime"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(o.row.createTime)))]),e._v(" "),r("div",[e._v(e._s(e._f("formatTimeHMS")(o.row.createTime)))])]:e._e(),e._v(" "),"attentionDate"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(o.row.attentionTime)))]),e._v(" "),r("div",[e._v(e._s(e._f("formatTimeHMS")(o.row.attentionTime)))])]:e._e(),e._v(" "),"costAll"==t.code?[r("span",[e._v("\n "+e._s(o.row.costFee)+"\n ")])]:e._e(),e._v(" "),"costTimes"==t.code?[r("div",[e._v(e._s(o.row.costTimes))])]:e._e(),e._v(" "),"lastCostTime"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(o.row.lastCostTime)))])]:e._e(),e._v(" "),"avgCost"==t.code?[e._v("\n "+e._s(o.row.avgCost)+"\n ")]:e._e(),e._v(" "),"avgNumber"==t.code?[e._v("\n "+e._s(o.row.avgNumber)+"\n ")]:e._e(),e._v(" "),"costCategory"==t.code?[e._v("\n "+e._s(o.row.costCategory)+"\n ")]:e._e(),e._v(" "),"discountRate"==t.code?[e._v("\n "+e._s(o.row.discountRate)+"\n ")]:e._e(),e._v(" "),"cancelAttentionTime"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(o.row.cancelAttentionTime)))]),e._v(" "),r("div",[e._v(e._s(e._f("formatTimeHMS")(o.row.cancelAttentionTime)))])]:e._e(),e._v(" "),"age"==t.code?[e._v("\n "+e._s(o.row.age)+"\n ")]:e._e(),e._v(" "),"birthday"==t.code?[e._v("\n "+e._s(o.row.birthdayMD)+"\n ")]:e._e(),e._v(" "),"storedValueAll"==t.code?[e._v("\n "+e._s(o.row.storedValueAll)+"\n ")]:e._e(),e._v(" "),"storedValueCurrent"==t.code?[e._v("\n "+e._s(o.row.storedValueCurrent)+"\n ")]:e._e(),e._v(" "),"pointsAll"==t.code?[e._v("\n "+e._s(o.row.pointsAll)+"\n ")]:e._e(),e._v(" "),"pointsCurrent"==t.code?[e._v("\n "+e._s(o.row.pointsCurrent)+"\n ")]:e._e(),e._v(" "),"mainStoreName"==t.code?[e._v("\n "+e._s(o.row.mainStoreName)+"\n ")]:e._e(),e._v(" "),"createCardStoreName"==t.code?[e._v("\n "+e._s(o.row.openStoreName)+"\n ")]:e._e(),e._v(" "),"cardNo"==t.code?[e._v("\n "+e._s(o.row.cardNo)+"\n ")]:e._e(),e._v(" "),"openClerkId"==t.code?[e._v("\n "+e._s(o.row.openClerkName||"--")+"\n ")]:e._e(),e._v(" "),"clerkId"==t.code?[e._v("\n "+e._s(o.row.clerkName||"--")+"\n ")]:e._e(),e._v(" "),"frozenStatus"==t.code?[0==o.row.frozenStatus?r("span",{staticClass:"dm-status--success"},[e._v("正常")]):e._e(),e._v(" "),1==o.row.frozenStatus?r("span",{staticClass:"dm-status--warning"},[e._v("冻结")]):e._e()]:e._e(),e._v(" "),"lastCost"==t.code?[e._v("\n "+e._s(o.row.lastCost)+"\n ")]:e._e(),e._v(" "),"highCost"===t.code?[r("span",[e._v(e._s(o.row.highCost))])]:e._e(),e._v(" "),"costFeePaid"===t.code?[r("span",[e._v(e._s(o.row.costFeePaid))])]:e._e(),e._v(" "),"lastCostPaid"===t.code?[r("span",[e._v(e._s(o.row.lastCostPaid))])]:e._e(),e._v(" "),"highCostPaid"===t.code?[r("span",[e._v(e._s(o.row.highCostPaid))])]:e._e()]}}])})}),e._v(" "),e.$getButtonLimit(e.$buttonCode.memberTagToCheck)?r("el-table-column",{attrs:{"label-class-name":"table-header__handle",fixed:"right","min-width":160},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isWeixinMember?r("a",{staticClass:"el-button el-button--text",attrs:{rel:"nofollow noopener noreferrer",target:"_blank","limit-code":e.$buttonCode.memberTagToCheck,href:"/member/#/wechatmemberDetail?memberId="+t.row.memberId+"&channel=wxMember&fromPage=memberGroup"}},[e._v("查看")]):r("a",{staticClass:"el-button el-button--text",attrs:{rel:"nofollow noopener noreferrer",target:"_blank","limit-code":e.$buttonCode.memberTagToCheck,href:"/member/#/posmemberDetail?memberId="+t.row.memberId+"&channel=posMember&fromPage=memberGroup"}},[e._v("查看")])]}}])},[r("template",{slot:"header"},[r("span",[e._v("操作")]),e._v(" "),r("i",{staticClass:"el-icon-setting",on:{click:e.showDefined}})])],2):e._e()],2)],1),e._v(" "),0!=e.memberGroupDetailData.length?r("div",{staticClass:"block common-wrap__page text-right"},[r("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()])]),e._v(" "),r("userDefined",{attrs:{fieldsData:e.memberFields,selectedData:e.selectedUserDefined,showUserDefined:e.showUserDefined},on:{hideUserDefined:e.hideUserDefined,confirmUserDefined:e.confirmUserDefined}}),e._v(" "),r("vue-gic-export-excel",{attrs:{dialogVisible:e.downMemberListPop.show,excelUrl:e.downMemberListPop.excelUrl,params:e.downMemberListPop.params,dataArr:e.memberGroupDetailData,type:"2",projectName:"member-tag"},on:{"update:dialogVisible":function(t){return e.$set(e.downMemberListPop,"show",t)},"update:dialog-visible":function(t){return e.$set(e.downMemberListPop,"show",t)}}}),e._v(" "),r("dm-table-filed",{attrs:{visible:e.tableFiledVisible,projectName:"member-tag",pageName:"memberTag",max:20,defaultDisabled:["memberName"],checkedFields:e.checkFields},on:{"update:visible":function(t){e.tableFiledVisible=t},submit:e.onSubmiTableFiled}})],1)},staticRenderFns:[]};var u=a("VU/8")(m,d,!1,function(e){a("aRxf")},"data-v-540c9349",null);t.default=u.exports},aRxf:function(e,t){}});
\ No newline at end of file
webpackJsonp([15],{"7AMt":function(e,t){},onu1:function(e,t){},y1vL:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("Dd8w"),i=a.n(o),r=a("woOf"),s=a.n(r),n=(a("7AMt"),a("EOvX")),l=a("G9rT"),c=a("Ch4/"),m=a("P9l9"),d={name:"manualTagDetail",data:function(){return{canEdit:!1,loading:!0,showUserDefined:!1,memberFields:[],selectedUserDefined:[],selectedFields:[],downTagDetailListPop:{canDown:!1,show:!1,excelUrl:"/gic-member-tag-web/memberTag/memberTagItemExportExcel",params:{tagItemId:"",requestProject:"member-tag"}},dateformat:n.a,tagItemName:"",sortableFlag:!1,tagDetailList:[],pageParam:{pageNum:1,pageSize:20,tagItemId:"",sortColName:"",sortType:"",search:""},total:0,singleInfo:{sex:0,age:0,cardNo:0,mainStoreName:"dd",costFee:0,costTimes:0,lastCost:0,numOfSale:0,numOfmarket:0,couponCount:0,status:0,wxStatus:0,phoneStatus:0,authStatus:0},baseUrl:"",tagSearch:"",tableFiledVisible:!1,checkFields:["cardNo","gradeName","crateCardDateStringFormat","lastCostTimeFormat","costTimes","avgCost","birthdayMDFormat","pointsCurrent","costAll","mainStoreName","openStoreName"]}},computed:{getCodeAuth:function(){return this.$getButtonLimit(this.$buttonCode.memberTagExportMember)},getCode:function(){return this.$buttonCode.memberTagExportMember}},filters:{formatTimeYMD:function(e){if(e&&e>0){var t=e.toString().split("");return t.splice(0,4).join("")+"-"+t.splice(0,2).join("")+"-"+t.splice(0,2).join("")}return"--"},formatTimeHMS:function(e){if(e&&e>0){var t=e.toString().split("");return t.splice(0,8),t.splice(0,2).join("")+":"+t.splice(0,2).join("")+":"+t.splice(0,2).join("")}return"--"}},methods:{canDownMemberList:function(){var e=this;Object(m.a)("/member-tag-member/isExportEnterprise",{}).then(function(t){0==t.data.errorCode&&(e.downTagDetailListPop.canDown="true"===t.data.result||!0===t.data.result)})},separator:function(e){return(e+="").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")},sortChange:function(e){e.column;var t=e.prop,a=e.order;console.log(t,a),this.pageParam.sortColName=t,this.pageParam.sortType="descending"==a?"desc":"asc",this.getTagDetailList()},showDefined:function(){this.showUserDefined=!0},hideUserDefined:function(e){this.showUserDefined=e},confirmUserDefined:function(e){var t=this;if(console.log(e),e.length<1)return this.$message.error({duration:1e3,message:"请选择自定义字段"}),!1;this.loading=!0;var a=e.join(",");this.selectedUserDefined=e,this.showUserDefined=!1,this.selectedFields=[],this.selectedFields=this.memberFields.filter(function(e){return t.selectedUserDefined.includes(e.code)}),this.saveFieldsList(a).then(function(){t.loading=!1})},saveFieldsList:function(e){var t={pageName:"notMember,wxOpenCarMember,posMember",fields:e};return this.axios.post(this.baseUrl+"/api-member/update-fields?requestProject=memberTag",t)},handleSizeChange:function(e){this.pageParam.pageNum=1,this.pageParam.pageSize=e,this.getTagDetailList()},handleCurrentChange:function(e){this.pageParam.pageNum=e,this.getTagDetailList()},getTagDetailList:function(e){var t=this;t.loading=!0;var a=s()({},this.pageParam);Object(m.a)("/member-tag-member/memberTageItemFindMemberList",a).then(function(a){t.total=a.data.result.page.totalCount,t.tagDetailList=a.data.result.page.result,console.log(t.tagDetailList),e&&e.forEach(function(e,a){"name"===e.code?(e.check=!0,e.disabled=!0,t.selectedUserDefined.push(e.code),t.selectedFields.push(e)):e.check&&(t.selectedUserDefined.push(e.code),t.selectedFields.push(e))})}).catch(function(e){console.log(e,"error of get group detail")}).finally(function(e){return t.loading=!1})},getTagItemInfo:function(e){var t=this;Object(m.a)("/memberTag/get-member-tag-item",{id:e}).then(function(e){0==e.data.errorCode&&e.data.result&&(t.tagItemName=e.data.result.tagItemName)}).catch(function(e){console.log(e,"error of tagItem info")})},clearSearch:function(){this.pageParam.search="",this.pageParam.pageNum=1,this.getTagDetailList()},enterSearch:function(){this.pageParam.pageNum=1,this.getTagDetailList()},linkDetail:function(e,t){this.$getButtonLimit(this.$buttonCode.memberTagRecordObserve)&&window.open(t?window.location.origin+"/member/#/wechatmemberDetail?memberId="+e+"&channel=wxMember&fromPage=memberGroup":window.location.origin+"/member/#/posmemberDetail?memberId="+e+"&channel=posMember&fromPage=memberGroup")},showSingleInfo:function(e){console.log(e);var t=this,a={memberId:e};t.singleInfo="",t.axios.post(t.baseUrl+"/api-member/load-member-single-info?requestProject=memberTag",a).then(function(e){var a=e.data;if(0!=a.errorCode)c.a.errorMsg(a);else{var o=a.result.memberSingle;t.singleInfo=i()({},o,{sex:0==o.sex?"性别未知":1==o.sex?"男":"女",age:0!=o.age?o.age:"年龄未知",cardNo:o.cardNo?o.cardNo:"无会员卡",mainStoreName:o.mainStoreName?o.mainStoreName:"主门店未知"})}}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getFieldsList:function(){var e=this;e.selectedUserDefined=[],e.selectedFields=[],e.axios.post(e.baseUrl+"/api-member/find-member-fields?requestProject=memberTag",{pageName:"notMember,wxOpenCarMember,posMember"}).then(function(t){console.log(t,"自定义列表字段");var a=t.data;if(0==a.errorCode)return e.memberFields=a.result,console.log(a.result),void e.getTagDetailList(a.result);c.a.errorMsg(a)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})},onSubmiTableFiled:function(e){var t=this.downTagDetailListPop.params;this.downTagDetailListPop.show=!0,t.exportFields=e.toString()},showExport:function(){if(!this.tagDetailList.length)return this.$message.error("没有要导出的数据");this.tableFiledVisible=!0}},beforeMount:function(){var e=window.location.origin;"-1"!=e.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=e},mounted:function(){var e=this.$route.query.tagItemId,t=window.location.origin;-1!=t.indexOf("localhost")&&(t="http://gicdev.demogic.com"),this.pageParam.tagItemId=e,this.downTagDetailListPop.params.tagItemId=e,this.downTagDetailListPop.excelUrl=t+this.downTagDetailListPop.excelUrl,this.getTagItemInfo(e),this.getFieldsList(),document.getElementById("app").style.zIndex="auto"},components:{userDefined:l.a}},g={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"manualTagDetail-wrap common-wrap"},[o("div",{staticClass:"right-content"},[o("div",{staticClass:"right-box"},[o("div",{staticClass:"manualTagDetail-wrap__info"},[o("dm-sub-title",{attrs:{text:e.tagItemName}})],1),e._v(" "),o("div",{staticClass:"manualTagDetail-wrap__table"},[o("div",{staticClass:"operation-line"},[o("el-input",{staticClass:"m-r-8",staticStyle:{margin:"20px 0",width:"270px"},attrs:{placeholder:"请输入姓名/昵称/手机号/会员卡号","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.enterSearch(t)}},model:{value:e.pageParam.search,callback:function(t){e.$set(e.pageParam,"search",t)},expression:"pageParam.search"}}),e._v(" "),e.getCodeAuth?[e.total<1e6?o("el-button",{staticClass:"down-member-list__btn m-l-8",attrs:{type:"primary","limit-code":e.getCode},on:{click:e.showExport}},[o("i",{staticClass:"iconfont icon-xiazai"}),e._v("\n 导出人群\n ")]):o("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"每张报表导出人数限制为100万,大于100万的人群会自动拆分为多张报表进行导出",placement:"top"}},[o("el-button",{staticClass:"down-`member-list__btn m-l-8",attrs:{type:"primary","limit-code":e.getCode},on:{click:e.showExport}},[o("i",{staticClass:"iconfont icon-xiazai"}),e._v("\n 导出人群\n ")])],1)]:e._e()],2),e._v(" "),o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tagDetailList},on:{"sort-change":e.sortChange}},[e._l(e.selectedFields,function(t){return o("el-table-column",{key:t.code,attrs:{sortable:("lastCostTime"==t.code||"avgCost"==t.code||"pointsAll"==t.code||"pointsCurrent"==t.code||"costFeePaid"==t.code)&&"custom",prop:t.code,fixed:"name"==t.code,label:t.name,"min-width":"name"==t.code?260:200},scopedSlots:e._u([{key:"default",fn:function(i){return["name"==t.code?[o("div",{staticClass:"tablecontent-cell",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.linkDetail(i.row.memberId,i.row.isWeixinMember)}}},[o("span",[o("div",{staticClass:"flex"},[o("span",{staticClass:"table-member__img inline-block middle border-box m-r-10"},[o("img",{attrs:{src:i.row.thirdImgUrl?i.row.thirdImgUrl:a("OFPh")}})]),e._v(" "),o("div",{staticClass:"inline-block"},[o("span",[e._v(e._s(i.row.memberName)),i.row.nickName?o("span",{staticClass:"tips"},[e._v(" ("+e._s(i.row.nickName)+")")]):e._e()]),e._v(" "),o("p",[e._v(e._s(i.row.phoneNumber))])])])])])]:e._e(),e._v(" "),"cardNo"==t.code?[e._v("\n "+e._s(i.row.cardNo)+"\n ")]:e._e(),e._v(" "),"grade"==t.code?[e._v("\n "+e._s(i.row.gradeName)+"\n ")]:e._e(),e._v(" "),"status"==t.code?[Array.isArray(i.row.memberSources)&&0!=i.row.memberSources.filter(function(e){return 1==e.highlight||2==e.highlight}).length?e._l((i.row.memberSources||[]).filter(function(e){return 1==e.highlight||2==e.highlight}),function(t){return o("span",{key:t.parentSourceCode,staticClass:"channel-box"},[1==t.highlight?[1100==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("N5cG"),alt:""}}):e._e(),e._v(" "),1600==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("yTU0"),alt:""}}):e._e(),e._v(" "),1700==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("UHeg"),alt:""}}):e._e(),e._v(" "),1303==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("QqnO"),alt:""}}):e._e(),e._v(" "),1302==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("Mf6J"),alt:""}}):e._e(),e._v(" "),1304==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("ftDi"),alt:""}}):e._e()]:e._e(),e._v(" "),2==t.highlight?[1100==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("tqzs"),alt:""}}):e._e(),e._v(" "),1600==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("UuGo"),alt:""}}):e._e(),e._v(" "),1700==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("J7kc"),alt:""}}):e._e(),e._v(" "),1303==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("OpU4"),alt:""}}):e._e(),e._v(" "),1302==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("Ipa6"),alt:""}}):e._e(),e._v(" "),1304==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("Uyt0"),alt:""}}):e._e()]:e._e()],2)}):[e._v("--")]]:e._e(),e._v(" "),"channel"==t.code?[o("span",{staticClass:"channelicon",class:0==i.row.channelTaobao?"taobaoicongray":1==i.row.channelTaobao?"taobaoicon":""}),e._v(" "),o("span",{staticClass:"channelicon",class:0==i.row.channelJd?"jdicongray":1==i.row.channelJd?"jdicon":""}),e._v(" "),o("span",{staticClass:"channelicon",class:0==i.row.channelWei?"vipicongray":1==i.row.channelWei?"vipicon":""})]:e._e(),e._v(" "),"crateCardDateString"==t.code?[o("div",[e._v(e._s(e._f("formatTimeYMD")(i.row.crateCardDateString)))]),e._v(" "),o("div",[e._v(e._s(e._f("formatTimeHMS")(i.row.crateCardDateString)))])]:e._e(),e._v(" "),"createTime"==t.code?[o("div",[e._v(e._s(e._f("formatTimeYMD")(i.row.createTime)))]),e._v(" "),o("div",[e._v(e._s(e._f("formatTimeHMS")(i.row.createTime)))])]:e._e(),e._v(" "),"attentionDate"==t.code?[o("div",[e._v(e._s(e._f("formatTimeYMD")(i.row.attentionTime)))]),e._v(" "),o("div",[e._v(e._s(e._f("formatTimeHMS")(i.row.attentionTime)))])]:e._e(),e._v(" "),"costAll"==t.code?[o("span",[e._v("\n "+e._s(i.row.costFee)+"\n ")])]:e._e(),e._v(" "),"costTimes"==t.code?[o("div",[e._v(e._s(i.row.costTimes))])]:e._e(),e._v(" "),"lastCostTime"==t.code?[o("div",[e._v(e._s(e._f("formatTimeYMD")(i.row.lastCostTime)))])]:e._e(),e._v(" "),"avgCost"==t.code?[e._v("\n "+e._s(i.row.avgCost)+"\n ")]:e._e(),e._v(" "),"avgNumber"==t.code?[e._v("\n "+e._s(i.row.avgNumber)+"\n ")]:e._e(),e._v(" "),"costCategory"==t.code?[e._v("\n "+e._s(i.row.costCategory)+"\n ")]:e._e(),e._v(" "),"discountRate"==t.code?[e._v("\n "+e._s(i.row.discountRate)+"\n ")]:e._e(),e._v(" "),"cancelAttentionTime"==t.code?[o("div",[e._v(e._s(e._f("formatTimeYMD")(i.row.cancelAttentionTime)))]),e._v(" "),o("div",[e._v(e._s(e._f("formatTimeHMS")(i.row.cancelAttentionTime)))])]:e._e(),e._v(" "),"age"==t.code?[e._v("\n "+e._s(i.row.age)+"\n ")]:e._e(),e._v(" "),"birthday"==t.code?[e._v("\n "+e._s(i.row.birthdayMD)+"\n ")]:e._e(),e._v(" "),"storedValueAll"==t.code?[e._v("\n "+e._s(i.row.storedValueAll)+"\n ")]:e._e(),e._v(" "),"storedValueCurrent"==t.code?[e._v("\n "+e._s(i.row.storedValueCurrent)+"\n ")]:e._e(),e._v(" "),"pointsAll"==t.code?[e._v("\n "+e._s(i.row.pointsAll)+"\n ")]:e._e(),e._v(" "),"pointsCurrent"==t.code?[e._v("\n "+e._s(i.row.pointsCurrent)+"\n ")]:e._e(),e._v(" "),"mainStoreName"==t.code?[e._v("\n "+e._s(i.row.mainStoreName)+"\n ")]:e._e(),e._v(" "),"createCardStoreName"==t.code?[e._v("\n "+e._s(i.row.openStoreName)+"\n ")]:e._e(),e._v(" "),"openClerkId"==t.code?[e._v("\n "+e._s(i.row.openClerkName||"--")+"\n ")]:e._e(),e._v(" "),"clerkId"==t.code?[e._v("\n "+e._s(i.row.clerkName||"--")+"\n ")]:e._e(),e._v(" "),"frozenStatus"==t.code?[0==i.row.frozenStatus?o("span",{staticClass:"dm-status--success"},[e._v("正常")]):e._e(),e._v(" "),1==i.row.frozenStatus?o("span",{staticClass:"dm-status--warning"},[e._v("冻结")]):e._e()]:e._e(),e._v(" "),"lastCost"==t.code?[e._v("\n "+e._s(i.row.lastCost)+"\n ")]:e._e(),e._v(" "),"highCost"===t.code?[o("span",[e._v(e._s(i.row.highCost))])]:e._e(),e._v(" "),"costFeePaid"===t.code?[o("span",[e._v(e._s(i.row.costFeePaid))])]:e._e(),e._v(" "),"lastCostPaid"===t.code?[o("span",[e._v(e._s(i.row.lastCostPaid))])]:e._e(),e._v(" "),"highCostPaid"===t.code?[o("span",[e._v(e._s(i.row.highCostPaid))])]:e._e()]}}])})}),e._v(" "),o("el-table-column",{attrs:{label:"添加标签时间",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.$index,i=t.row;return[o("div",{attrs:{index:a}},[e._v(e._s(i.memberTagRelationTime?e.dateformat(new Date(i.memberTagRelationTime),"yyyy-MM-dd hh:mm:ss"):"--"))])]}}])}),e._v(" "),o("el-table-column",{attrs:{"label-class-name":"table-header__handle",fixed:"right","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return e.$getButtonLimit(e.$buttonCode.memberTagRecordObserve)?[t.row.isWeixinMember?o("a",{staticClass:"el-button el-button--text",staticStyle:{fontWeight:"normal"},attrs:{rel:"nofollow noopener noreferrer",target:"_blank","limit-code":e.$buttonCode.memberTagRecordObserve,href:"/member/#/wechatmemberDetail?memberId="+t.row.memberId+"&channel=wxMember&fromPage=memberGroup"}},[e._v("查看")]):o("a",{staticClass:"el-button el-button--text",staticStyle:{fontWeight:"normal"},attrs:{rel:"nofollow noopener noreferrer",target:"_blank","limit-code":e.$buttonCode.memberTagRecordObserve,href:"/member/#/posmemberDetail?memberId="+t.row.memberId+"&channel=posMember&fromPage=memberGroup"}},[e._v("查看")])]:void 0}}],!0)},[o("template",{slot:"header"},[o("span",[e._v("操作")]),e._v(" "),o("i",{staticClass:"el-icon-setting setting",on:{click:e.showDefined}})])],2)],2)],1),e._v(" "),0!=e.tagDetailList.length?o("div",{staticClass:"block common-wrap__page text-right"},[o("dm-pagination",{attrs:{background:"","current-page":e.pageParam.pageNum,"page-sizes":[10,20,30,40],"page-size":e.pageParam.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()])]),e._v(" "),o("userDefined",{attrs:{fieldsData:e.memberFields,selectedData:e.selectedUserDefined,showUserDefined:e.showUserDefined},on:{hideUserDefined:e.hideUserDefined,confirmUserDefined:e.confirmUserDefined}}),e._v(" "),o("vue-gic-export-excel",{attrs:{dialogVisible:e.downTagDetailListPop.show,excelUrl:e.downTagDetailListPop.excelUrl,params:e.downTagDetailListPop.params,dataArr:e.tagDetailList,type:"2",projectName:"member-tag"},on:{"update:dialogVisible":function(t){return e.$set(e.downTagDetailListPop,"show",t)},"update:dialog-visible":function(t){return e.$set(e.downTagDetailListPop,"show",t)}}}),e._v(" "),o("dm-table-filed",{attrs:{visible:e.tableFiledVisible,projectName:"member-tag",pageName:"memberTag",max:20,defaultDisabled:["memberName"],checkedFields:e.checkFields},on:{"update:visible":function(t){e.tableFiledVisible=t},submit:e.onSubmiTableFiled}})],1)},staticRenderFns:[]};var u=a("VU/8")(d,g,!1,function(e){a("onu1")},"data-v-0c494fde",null);t.default=u.exports}}); webpackJsonp([15],{"7AMt":function(e,t){},FTLS:function(e,t){},y1vL:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("Dd8w"),i=a.n(o),s=a("woOf"),r=a.n(s),n=(a("7AMt"),a("EOvX")),l=a("G9rT"),c=a("Ch4/"),m=a("P9l9"),d={name:"manualTagDetail",data:function(){return{canEdit:!1,loading:!0,showUserDefined:!1,memberFields:[],selectedUserDefined:[],selectedFields:[],downTagDetailListPop:{canDown:!1,show:!1,excelUrl:"/gic-member-tag-web/memberTag/memberTagItemExportExcel",params:{tagItemId:"",requestProject:"member-tag"}},dateformat:n.a,tagItemName:"",sortableFlag:!1,tagDetailList:[],pageParam:{pageNum:1,pageSize:20,tagItemId:"",sortColName:"",sortType:"",search:""},total:0,singleInfo:{sex:0,age:0,cardNo:0,mainStoreName:"dd",costFee:0,costTimes:0,lastCost:0,numOfSale:0,numOfmarket:0,couponCount:0,status:0,wxStatus:0,phoneStatus:0,authStatus:0},baseUrl:"",tagSearch:"",tableFiledVisible:!1,checkFields:["cardNo","gradeName","crateCardDateStringFormat","lastCostTimeFormat","costTimes","avgCost","birthdayMDFormat","pointsCurrent","costAll","mainStoreName","openStoreName"]}},computed:{getCodeAuth:function(){return this.$getButtonLimit(this.$buttonCode.memberTagExportMember)},getCode:function(){return this.$buttonCode.memberTagExportMember}},filters:{formatTimeYMD:function(e){if(e&&e>0){var t=e.toString().split("");return t.splice(0,4).join("")+"-"+t.splice(0,2).join("")+"-"+t.splice(0,2).join("")}return"--"},formatTimeHMS:function(e){if(e&&e>0){var t=e.toString().split("");return t.splice(0,8),t.splice(0,2).join("")+":"+t.splice(0,2).join("")+":"+t.splice(0,2).join("")}return"--"}},methods:{canDownMemberList:function(){var e=this;Object(m.a)("/member-tag-member/isExportEnterprise",{}).then(function(t){0==t.data.errorCode&&(e.downTagDetailListPop.canDown="true"===t.data.result||!0===t.data.result)})},separator:function(e){return(e+="").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")},sortChange:function(e){e.column;var t=e.prop,a=e.order;console.log(t,a),this.pageParam.sortColName=t,this.pageParam.sortType="descending"==a?"desc":"asc",this.getTagDetailList()},showDefined:function(){this.showUserDefined=!0},hideUserDefined:function(e){this.showUserDefined=e},confirmUserDefined:function(e){var t=this;if(console.log(e),e.length<1)return this.$message.error({duration:1e3,message:"请选择自定义字段"}),!1;this.loading=!0;var a=e.join(",");this.selectedUserDefined=e,this.showUserDefined=!1,this.selectedFields=[],this.selectedFields=this.memberFields.filter(function(e){return t.selectedUserDefined.includes(e.code)}),this.saveFieldsList(a).then(function(){t.loading=!1})},saveFieldsList:function(e){var t={pageName:"notMember,wxOpenCarMember,posMember",fields:e};return this.axios.post(this.baseUrl+"/api-member/update-fields?requestProject=memberTag",t)},handleSizeChange:function(e){this.pageParam.pageNum=1,this.pageParam.pageSize=e,this.getTagDetailList()},handleCurrentChange:function(e){this.pageParam.pageNum=e,this.getTagDetailList()},getTagDetailList:function(e){var t=this;t.loading=!0;var a=r()({},this.pageParam);Object(m.a)("/member-tag-member/memberTageItemFindMemberList",a).then(function(a){t.total=a.data.result.page.totalCount,t.tagDetailList=a.data.result.page.result,console.log(t.tagDetailList),e&&e.forEach(function(e,a){"name"===e.code?(e.check=!0,e.disabled=!0,t.selectedUserDefined.push(e.code),t.selectedFields.push(e)):e.check&&(t.selectedUserDefined.push(e.code),t.selectedFields.push(e))})}).catch(function(e){console.log(e,"error of get group detail")}).finally(function(e){return t.loading=!1})},getTagItemInfo:function(e){var t=this;Object(m.a)("/memberTag/get-member-tag-item",{id:e}).then(function(e){0==e.data.errorCode&&e.data.result&&(t.tagItemName=e.data.result.tagItemName)}).catch(function(e){console.log(e,"error of tagItem info")})},clearSearch:function(){this.pageParam.search="",this.pageParam.pageNum=1,this.getTagDetailList()},enterSearch:function(){this.pageParam.pageNum=1,this.getTagDetailList()},linkDetail:function(e,t){this.$getButtonLimit(this.$buttonCode.memberTagRecordObserve)&&window.open(t?window.location.origin+"/member/#/wechatmemberDetail?memberId="+e+"&channel=wxMember&fromPage=memberGroup":window.location.origin+"/member/#/posmemberDetail?memberId="+e+"&channel=posMember&fromPage=memberGroup")},showSingleInfo:function(e){console.log(e);var t=this,a={memberId:e};t.singleInfo="",t.axios.post(t.baseUrl+"/api-member/load-member-single-info?requestProject=memberTag",a).then(function(e){var a=e.data;if(0!=a.errorCode)c.a.errorMsg(a);else{var o=a.result.memberSingle;t.singleInfo=i()({},o,{sex:0==o.sex?"性别未知":1==o.sex?"男":"女",age:0!=o.age?o.age:"年龄未知",cardNo:o.cardNo?o.cardNo:"无会员卡",mainStoreName:o.mainStoreName?o.mainStoreName:"主门店未知"})}}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getFieldsList:function(){var e=this;e.selectedUserDefined=[],e.selectedFields=[],e.axios.post(e.baseUrl+"/api-member/find-member-fields?requestProject=memberTag",{pageName:"notMember,wxOpenCarMember,posMember"}).then(function(t){console.log(t,"自定义列表字段");var a=t.data;if(0==a.errorCode)return e.memberFields=a.result,console.log(a.result),void e.getTagDetailList(a.result);c.a.errorMsg(a)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})},onSubmiTableFiled:function(e){var t=this.downTagDetailListPop.params;this.downTagDetailListPop.show=!0,t.exportFields=e.toString()},showExport:function(){if(!this.tagDetailList.length)return this.$message.error("没有要导出的数据");this.tableFiledVisible=!0}},beforeMount:function(){var e=window.location.origin;"-1"!=e.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=e},mounted:function(){var e=this.$route.query.tagItemId,t=window.location.origin;-1!=t.indexOf("localhost")&&(t="http://gicdev.demogic.com"),this.pageParam.tagItemId=e,this.downTagDetailListPop.params.tagItemId=e,this.downTagDetailListPop.excelUrl=t+this.downTagDetailListPop.excelUrl,this.getTagItemInfo(e),this.getFieldsList(),document.getElementById("app").style.zIndex="auto"},components:{userDefined:l.a}},g={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"manualTagDetail-wrap common-wrap"},[o("div",{staticClass:"right-content"},[o("div",{staticClass:"right-box"},[o("div",{staticClass:"manualTagDetail-wrap__info"},[o("dm-sub-title",{attrs:{text:e.tagItemName}})],1),e._v(" "),o("div",{staticClass:"manualTagDetail-wrap__table"},[o("div",{staticClass:"operation-line"},[o("el-input",{staticClass:"m-r-8",staticStyle:{margin:"20px 0",width:"270px"},attrs:{placeholder:"请输入姓名/昵称/手机号/会员卡号","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.enterSearch(t)}},model:{value:e.pageParam.search,callback:function(t){e.$set(e.pageParam,"search",t)},expression:"pageParam.search"}}),e._v(" "),e.getCodeAuth?[e.total<1e6?o("el-button",{staticClass:"down-member-list__btn m-l-8",attrs:{type:"primary","limit-code":e.getCode},on:{click:e.showExport}},[o("i",{staticClass:"iconfont icon-xiazai"}),e._v("\n 导出人群\n ")]):o("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"每张报表导出人数限制为100万,大于100万的人群会自动拆分为多张报表进行导出",placement:"top"}},[o("el-button",{staticClass:"down-`member-list__btn m-l-8",attrs:{type:"primary","limit-code":e.getCode},on:{click:e.showExport}},[o("i",{staticClass:"iconfont icon-xiazai"}),e._v("\n 导出人群\n ")])],1)]:e._e()],2),e._v(" "),o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tagDetailList},on:{"sort-change":e.sortChange}},[e._l(e.selectedFields,function(t){return o("el-table-column",{key:t.code,attrs:{sortable:("lastCostTime"==t.code||"avgCost"==t.code||"pointsAll"==t.code||"pointsCurrent"==t.code||"costFeePaid"==t.code)&&"custom",prop:t.code,fixed:"name"==t.code,label:t.name,"min-width":"name"==t.code?260:200},scopedSlots:e._u([{key:"default",fn:function(i){return["name"==t.code?[o("div",{staticClass:"tablecontent-cell",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.linkDetail(i.row.memberId,i.row.isWeixinMember)}}},[o("span",[o("div",{staticClass:"flex"},[o("span",{staticClass:"table-member__img inline-block middle border-box m-r-10"},[o("img",{attrs:{src:i.row.thirdImgUrl?i.row.thirdImgUrl:a("OFPh")}})]),e._v(" "),o("div",{staticClass:"inline-block"},[o("span",[e._v(e._s(i.row.memberName)),i.row.nickName?o("span",{staticClass:"tips"},[e._v(" ("+e._s(i.row.nickName)+")")]):e._e()]),e._v(" "),o("p",[e._v(e._s(i.row.phoneNumber))])])])])])]:e._e(),e._v(" "),"cardNo"==t.code?[e._v("\n "+e._s(i.row.cardNo)+"\n ")]:e._e(),e._v(" "),"grade"==t.code?[e._v("\n "+e._s(i.row.gradeName)+"\n ")]:e._e(),e._v(" "),"status"==t.code?[Array.isArray(i.row.memberSources)&&0!=i.row.memberSources.filter(function(e){return 1==e.highlight||2==e.highlight}).length?e._l((i.row.memberSources||[]).filter(function(e){return 1==e.highlight||2==e.highlight}),function(t){return o("span",{key:t.parentSourceCode,staticClass:"channel-box"},[1==t.highlight?[1100==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("N5cG"),alt:""}}):e._e(),e._v(" "),1600==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("yTU0"),alt:""}}):e._e(),e._v(" "),1700==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("UHeg"),alt:""}}):e._e(),e._v(" "),1303==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("QqnO"),alt:""}}):e._e(),e._v(" "),1302==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("Mf6J"),alt:""}}):e._e(),e._v(" "),1304==t.parentSourceCode?o("span",[1==t.activeFlag?o("img",{staticClass:"channel-icon",attrs:{src:a("ftDi"),alt:""}}):e._e(),e._v(" "),1!=t.activeFlag?o("img",{staticClass:"channel-icon",attrs:{src:a("lbg2"),alt:""}}):e._e()]):e._e()]:e._e(),e._v(" "),2==t.highlight?[1100==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("tqzs"),alt:""}}):e._e(),e._v(" "),1600==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("UuGo"),alt:""}}):e._e(),e._v(" "),1700==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("J7kc"),alt:""}}):e._e(),e._v(" "),1303==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("OpU4"),alt:""}}):e._e(),e._v(" "),1302==t.parentSourceCode?o("img",{staticClass:"channel-icon",attrs:{src:a("Ipa6"),alt:""}}):e._e(),e._v(" "),1304==t.parentSourceCode?o("span",[1==t.activeFlag?o("img",{staticClass:"channel-icon",attrs:{src:a("Uyt0"),alt:""}}):e._e(),e._v(" "),1!=t.activeFlag?o("img",{staticClass:"channel-icon",attrs:{src:a("lbg2"),alt:""}}):e._e()]):e._e()]:e._e()],2)}):[e._v("--")]]:e._e(),e._v(" "),"channel"==t.code?[o("span",{staticClass:"channelicon",class:0==i.row.channelTaobao?"taobaoicongray":1==i.row.channelTaobao?"taobaoicon":""}),e._v(" "),o("span",{staticClass:"channelicon",class:0==i.row.channelJd?"jdicongray":1==i.row.channelJd?"jdicon":""}),e._v(" "),o("span",{staticClass:"channelicon",class:0==i.row.channelWei?"vipicongray":1==i.row.channelWei?"vipicon":""})]:e._e(),e._v(" "),"crateCardDateString"==t.code?[o("div",[e._v(e._s(e._f("formatTimeYMD")(i.row.crateCardDateString)))]),e._v(" "),o("div",[e._v(e._s(e._f("formatTimeHMS")(i.row.crateCardDateString)))])]:e._e(),e._v(" "),"createTime"==t.code?[o("div",[e._v(e._s(e._f("formatTimeYMD")(i.row.createTime)))]),e._v(" "),o("div",[e._v(e._s(e._f("formatTimeHMS")(i.row.createTime)))])]:e._e(),e._v(" "),"attentionDate"==t.code?[o("div",[e._v(e._s(e._f("formatTimeYMD")(i.row.attentionTime)))]),e._v(" "),o("div",[e._v(e._s(e._f("formatTimeHMS")(i.row.attentionTime)))])]:e._e(),e._v(" "),"costAll"==t.code?[o("span",[e._v("\n "+e._s(i.row.costFee)+"\n ")])]:e._e(),e._v(" "),"costTimes"==t.code?[o("div",[e._v(e._s(i.row.costTimes))])]:e._e(),e._v(" "),"lastCostTime"==t.code?[o("div",[e._v(e._s(e._f("formatTimeYMD")(i.row.lastCostTime)))])]:e._e(),e._v(" "),"avgCost"==t.code?[e._v("\n "+e._s(i.row.avgCost)+"\n ")]:e._e(),e._v(" "),"avgNumber"==t.code?[e._v("\n "+e._s(i.row.avgNumber)+"\n ")]:e._e(),e._v(" "),"costCategory"==t.code?[e._v("\n "+e._s(i.row.costCategory)+"\n ")]:e._e(),e._v(" "),"discountRate"==t.code?[e._v("\n "+e._s(i.row.discountRate)+"\n ")]:e._e(),e._v(" "),"cancelAttentionTime"==t.code?[o("div",[e._v(e._s(e._f("formatTimeYMD")(i.row.cancelAttentionTime)))]),e._v(" "),o("div",[e._v(e._s(e._f("formatTimeHMS")(i.row.cancelAttentionTime)))])]:e._e(),e._v(" "),"age"==t.code?[e._v("\n "+e._s(i.row.age)+"\n ")]:e._e(),e._v(" "),"birthday"==t.code?[e._v("\n "+e._s(i.row.birthdayMD)+"\n ")]:e._e(),e._v(" "),"storedValueAll"==t.code?[e._v("\n "+e._s(i.row.storedValueAll)+"\n ")]:e._e(),e._v(" "),"storedValueCurrent"==t.code?[e._v("\n "+e._s(i.row.storedValueCurrent)+"\n ")]:e._e(),e._v(" "),"pointsAll"==t.code?[e._v("\n "+e._s(i.row.pointsAll)+"\n ")]:e._e(),e._v(" "),"pointsCurrent"==t.code?[e._v("\n "+e._s(i.row.pointsCurrent)+"\n ")]:e._e(),e._v(" "),"mainStoreName"==t.code?[e._v("\n "+e._s(i.row.mainStoreName)+"\n ")]:e._e(),e._v(" "),"createCardStoreName"==t.code?[e._v("\n "+e._s(i.row.openStoreName)+"\n ")]:e._e(),e._v(" "),"openClerkId"==t.code?[e._v("\n "+e._s(i.row.openClerkName||"--")+"\n ")]:e._e(),e._v(" "),"clerkId"==t.code?[e._v("\n "+e._s(i.row.clerkName||"--")+"\n ")]:e._e(),e._v(" "),"frozenStatus"==t.code?[0==i.row.frozenStatus?o("span",{staticClass:"dm-status--success"},[e._v("正常")]):e._e(),e._v(" "),1==i.row.frozenStatus?o("span",{staticClass:"dm-status--warning"},[e._v("冻结")]):e._e()]:e._e(),e._v(" "),"lastCost"==t.code?[e._v("\n "+e._s(i.row.lastCost)+"\n ")]:e._e(),e._v(" "),"highCost"===t.code?[o("span",[e._v(e._s(i.row.highCost))])]:e._e(),e._v(" "),"costFeePaid"===t.code?[o("span",[e._v(e._s(i.row.costFeePaid))])]:e._e(),e._v(" "),"lastCostPaid"===t.code?[o("span",[e._v(e._s(i.row.lastCostPaid))])]:e._e(),e._v(" "),"highCostPaid"===t.code?[o("span",[e._v(e._s(i.row.highCostPaid))])]:e._e()]}}])})}),e._v(" "),o("el-table-column",{attrs:{label:"添加标签时间",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.$index,i=t.row;return[o("div",{attrs:{index:a}},[e._v(e._s(i.memberTagRelationTime?e.dateformat(new Date(i.memberTagRelationTime),"yyyy-MM-dd hh:mm:ss"):"--"))])]}}])}),e._v(" "),o("el-table-column",{attrs:{"label-class-name":"table-header__handle",fixed:"right","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return e.$getButtonLimit(e.$buttonCode.memberTagRecordObserve)?[t.row.isWeixinMember?o("a",{staticClass:"el-button el-button--text",staticStyle:{fontWeight:"normal"},attrs:{rel:"nofollow noopener noreferrer",target:"_blank","limit-code":e.$buttonCode.memberTagRecordObserve,href:"/member/#/wechatmemberDetail?memberId="+t.row.memberId+"&channel=wxMember&fromPage=memberGroup"}},[e._v("查看")]):o("a",{staticClass:"el-button el-button--text",staticStyle:{fontWeight:"normal"},attrs:{rel:"nofollow noopener noreferrer",target:"_blank","limit-code":e.$buttonCode.memberTagRecordObserve,href:"/member/#/posmemberDetail?memberId="+t.row.memberId+"&channel=posMember&fromPage=memberGroup"}},[e._v("查看")])]:void 0}}],!0)},[o("template",{slot:"header"},[o("span",[e._v("操作")]),e._v(" "),o("i",{staticClass:"el-icon-setting setting",on:{click:e.showDefined}})])],2)],2)],1),e._v(" "),0!=e.tagDetailList.length?o("div",{staticClass:"block common-wrap__page text-right"},[o("dm-pagination",{attrs:{background:"","current-page":e.pageParam.pageNum,"page-sizes":[10,20,30,40],"page-size":e.pageParam.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()])]),e._v(" "),o("userDefined",{attrs:{fieldsData:e.memberFields,selectedData:e.selectedUserDefined,showUserDefined:e.showUserDefined},on:{hideUserDefined:e.hideUserDefined,confirmUserDefined:e.confirmUserDefined}}),e._v(" "),o("vue-gic-export-excel",{attrs:{dialogVisible:e.downTagDetailListPop.show,excelUrl:e.downTagDetailListPop.excelUrl,params:e.downTagDetailListPop.params,dataArr:e.tagDetailList,type:"2",projectName:"member-tag"},on:{"update:dialogVisible":function(t){return e.$set(e.downTagDetailListPop,"show",t)},"update:dialog-visible":function(t){return e.$set(e.downTagDetailListPop,"show",t)}}}),e._v(" "),o("dm-table-filed",{attrs:{visible:e.tableFiledVisible,projectName:"member-tag",pageName:"memberTag",max:20,defaultDisabled:["memberName"],checkedFields:e.checkFields},on:{"update:visible":function(t){e.tableFiledVisible=t},submit:e.onSubmiTableFiled}})],1)},staticRenderFns:[]};var u=a("VU/8")(d,g,!1,function(e){a("FTLS")},"data-v-40c9bb0a",null);t.default=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([2,16,20,30,40],{"0c8U":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Dd8w"),n=a.n(i),s=a("QOex"),r=a("DMDI"),o=a("EOvX"),l=a("2CGT"),c=a("r9pr"),d=a("Ch4/"),u=a("P9l9"),g={name:"tag-container",mixins:[r.a,s.a],components:{DeleteTagDialog:c.default},props:{data:{type:Array,default:function(){return[]}},refersh:Object},data:function(){return{tableData:[],tagData:{},dateformat:o.a,deleteTagDialog:{visible:!1,deleteData:{}},animationPos:{}}},methods:{addTag:function(e){this.$emit("addTag",e)},handleTrackParam:function(e,t){var a={addTag:function(){return{data:{id:t.tagId,name:t.tagName}}}}[e];return{fn:function(){},data:a?a():{}}},editActiveTag:function(e){this.$emit("ediActiveTag",e)},editActiveTagValue:function(e){this.$emit("setGroupId"),localStorage.setItem("jumpTag",""),localStorage.setItem("jumpThirdTag",""),this.$router.push({path:"/manualTagValueEdit",query:{tagId:e.tagId,type:"active"}})},deleteActiveTag:function(e,t,a){console.log(a),this.deleteTagDialog.visible=!0,this.deleteTagDialog.deleteData=n()({},e,{currentIndex:t,e:a})},doDelete:function(e){var t=this,a=e.currentIndex,i=e.e,n=e.tagId;Object(u.a)("/memberTag/getTagById",{tagId:n}).then(function(n){var s=n.data,r=s.errorCode,o=s.result;0==r&&(o.memberCount?t.intoTrash(e,a,i):t.directDelTag(e))}).catch(function(e){console.log(e)})},directDelTag:function(e){var t=this,a={tagId:e.tagId,requestProject:"gic-member-tag-web"};Object(l.h)(a).then(function(e){0==e.errorCode&&(t.$message({message:"删除成功",type:"success",duration:1e3}),t.$emit("deleteHandTag",t.groupId))})},intoTrash:function(e,t,a){var i=this,n={itemId:e.tagId,type:1};Object(u.a)("/delTagItem/add",n).then(function(t){if(0==t.data.errorCode)return e.delStatus=0,i.startAnimation(a),i.$store.commit("changeDelTrashNum",i.$store.state.delTrashNum+1),void i.$message.success("添加成功,请点击右侧「垃圾桶」图标进行删除");d.a.errorMsg(t.data)}).catch(function(e){i.$message.error({duration:1e3,message:e.message})})},startAnimation:function(e){this.animationPos={x:document.body.offsetWidth-e.pageX,y:document.body.offsetHeight-e.pageY},document.getElementById("activeAniIcon").style.display="block",setTimeout(function(){document.getElementById("activeAniIcon").style.display="none"},1800)}},watch:{data:{immediate:!0,handler:function(e){this.tableData=e}},refersh:{immediate:!0,handler:function(e){if(e.changeRefersh){var t=this.tableData.findIndex(function(t){return e.tagId===t.tagId});this.tableData[t].refersh=!0}}}},computed:{getCodeAuth:function(){return this.$getButtonLimit(this.$buttonCode.memberTagCreateGroup)},getCode:function(){return this.$buttonCode.memberTagCreateGroup}}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tag-some-list"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"标签名称",prop:"tagName","min-width":"170",fixed:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"tag-name"},[e._v(e._s(t.row.tagName))]),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加标签",placement:"bottom"}},[e.getCodeAuth?a("i",{directives:[{name:"track",rawName:"v-track:common.click",value:e.handleTrackParam("addTag",t.row),expression:"handleTrackParam('addTag', scope.row)",arg:"common",modifiers:{click:!0}}],staticClass:"iconfont icon-tag-name icon-PlusOutlined",attrs:{"limit-code":e.getCode},on:{click:function(a){return e.addTag(t.row)}}}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"上级分类名称","min-width":"110",prop:"tagLevelGroupName"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("span",[e._v(e._s(i.tagLevelGroupName||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"覆盖人数",prop:"memberCount","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberCount?(t.row.memberCount|e.formatNum)+"人":"--")+"\n ")]}}])},[a("template",{slot:"header"},[e._v("\n 覆盖人数\n "),a("el-popover",{attrs:{width:"260",trigger:"hover",placement:"top"}},[a("div",{staticStyle:{color:"#303133"}},[e._v("\n 标签下不同标签值可能覆盖相同的会员,因此此处“标签”覆盖人数去重显示(如“喜欢的颜色-白、红、黑、蓝”,某会员身上可能同时具备“白、黑”二种标签值)\n ")]),e._v(" "),a("i",{staticClass:"iconfont icon-QuestionCircleOutlined refresh",attrs:{slot:"reference"},slot:"reference"})])],1)],2),e._v(" "),a("el-table-column",{attrs:{label:"标签描述",prop:"tagDescribe","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.tagDescribe?t.row.tagDescribe:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.createTime?[a("p",[e._v(e._s(e.dateformat(new Date(i.createTime),"yyyy-MM-dd")))]),e._v(" "),a("p",[e._v(e._s(e.dateformat(new Date(i.createTime),"hh:mm:ss")))])]:a("span",[e._v("--")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"font-0"},[a("el-button",{staticClass:"m-r-12",attrs:{type:"text"},on:{click:function(a){return e.editActiveTag(t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{staticClass:"m-r-12",attrs:{type:"text"},on:{click:function(a){return e.editActiveTagValue(t.row)}}},[e._v("详情")]),e._v(" "),a("el-button",{staticClass:"m-r-12",attrs:{type:"text"},on:{click:function(a){return e.deleteActiveTag(t.row,t.$index,a)}}},[e._v("删除")])],1)]}}])})],1),e._v(" "),a("delete-tag-dialog",{attrs:{visible:e.deleteTagDialog.visible,data:e.deleteTagDialog.deleteData},on:{"update:visible":function(t){return e.$set(e.deleteTagDialog,"visible",t)},submit:e.doDelete}}),e._v(" "),a("i",{staticClass:"iconfont icon-biaoqian activeAniIcon",style:{right:e.animationPos.x+"px",bottom:e.animationPos.y+"px"},attrs:{id:"activeAniIcon"}})],1)},staticRenderFns:[]};var p=a("VU/8")(g,m,!1,function(e){a("1bir")},"data-v-24b04042",null);t.default=p.exports},"0xDb":function(e,t,a){"use strict";t.a=r;var i=a("fZjL"),n=(a.n(i),a("pFYg")),s=a.n(n);function r(e,t){if(0===arguments.length)return null;var a=t||"{y}-{m}-{d} {h}:{i}:{s}",i=void 0;"object"===(void 0===e?"undefined":s()(e))?i=e:(10===(""+e).length&&(e=1e3*parseInt(e)),i=new Date(e));var n={y:i.getFullYear(),m:i.getMonth()+1,d:i.getDate(),h:i.getHours(),i:i.getMinutes(),s:i.getSeconds(),a:i.getDay()};return a.replace(/{(y|m|d|h|i|s|a)+}/g,function(e,t){var a=n[t];return"a"===t?["一","二","三","四","五","六","日"][a-1]:(e.length>0&&a<10&&(a="0"+a),a||0)})}},"1bir":function(e,t){},7307:function(e,t){},"7omO":function(e,t){},"8E/F":function(e,t,a){"use strict";var i=a("2CGT"),n={name:"trash",data:function(){return{progress:0,trashList:[],dialogVisible:!1,delTime:0,interval:void 0}},mounted:function(){this.getProgress()},methods:{getProgress:function(){var e=this;Object(i.s)().then(function(t){var a=t.errorCode,i=t.message;if(0!=a)return e.$message.error(i);e.getTrashList()})},getTrashList:function(){var e=this;Object(i.v)().then(function(t){var a=t.errorCode,i=t.message,n=t.result,s=void 0===n?[]:n;if(0!=a)return e.$message.error(i);e.trashList=s,e.$store.commit("changeDelTrashNum",s.length),e.progress=s.length})},dialogOpen:function(){var e=this;this.getTrashList(),Object(i.z)().then(function(t){var a=t.errorCode,i=t.message,n=t.result;if(0!=a)return e.$message.error(i);e.delTime=n,n&&(e.interval=setInterval(function(t){e.delTime-=1e3},1e3))})},dialogClosed:function(){this.interval&&clearInterval(this.interval),this.getProgress()},getDelTime:function(){var e=parseInt(this.delTime%6e4/1e3),t=parseInt(this.delTime%36e5/6e4);return"倒计时: "+parseInt(this.delTime%864e5/36e5)+"h:"+t+"min:"+e+"s"},doClean:function(){var e=this;if(this.delTime>0)return this.$message.error("当前有正在删除的标签/标签值,删除完成后才能再次操作删除任务");Object(i.g)().then(function(t){var a=t.errorCode,i=t.message;if(0!=a)return e.$message.error(i);e.$message.success("已开始执行"),e.dialogVisible=!1,e.getProgress(),e.$emit("beginClean")})},delCheckTag:function(e,t){var a=this,n=null==e?1:0;Object(i.i)({tagItemId:n?t:e,type:n}).then(function(e){var t=e.errorCode,i=e.message;if(0!=t)return a.$message.error(i);a.getTrashList(),a.$message.success("移除成功")})}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"trash"}},[a("el-popover",{attrs:{placement:"top-start",trigger:"hover",content:"一键清除废弃标签值"}},[a("div",{staticClass:"trash",attrs:{slot:"reference"},on:{click:function(t){e.dialogVisible=!0}},slot:"reference"},[0!=e.$store.state.delTrashNum?a("el-badge",{staticClass:"badge",attrs:{value:e.$store.state.delTrashNum>99?"99+":e.$store.state.delTrashNum}},[a("i",{staticClass:"iconfont icon-delete trashIcon"})]):a("i",{staticClass:"iconfont icon-delete trashIcon"})],1)]),e._v(" "),a("el-dialog",{attrs:{title:"删除标签",visible:e.dialogVisible,width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t},open:e.dialogOpen,closed:e.dialogClosed}},[a("el-alert",{staticStyle:{width:"535px","margin-bottom":"20px"},attrs:{title:"标签删除时,同步将标签从会员信息上删除。",type:"warning","show-icon":"",closable:!1}}),e._v(" "),a("header",[e._v("已选择待删除的标签/标签值")]),e._v(" "),a("ul",{staticClass:"tagBox"},e._l(e.trashList,function(t){return a("li",{key:t.tagItemId,staticClass:"tagItem"},[e._v("\n "+e._s(null==t.tagItemId?t.tagName:t.tagItemName)+"\n "),a("i",{staticClass:"iconfont icon-guanbi1 delIcon",on:{click:function(a){return e.delCheckTag(t.tagItemId,t.tagId)}}})])}),0),e._v(" "),a("span",{attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:!e.trashList.length},on:{click:e.doClean}},[e._v(e._s(e.delTime>0?e.getDelTime():"删除"))])],1)],1)],1)},staticRenderFns:[]};var r=a("VU/8")(n,s,!1,function(e){a("unJh")},"data-v-9652feba",null);t.a=r.exports},Gndl:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Xxa5"),n=a.n(i),s=a("exGp"),r=a.n(s),o=a("Dd8w"),l=a.n(o),c=a("QOex"),d=a("DMDI"),u=a("r9pr"),g=a("2CGT"),m=a("EOvX"),p=a("Ch4/"),h=a("P9l9"),f={name:"tag-container",mixins:[d.a,c.a],props:{data:{type:Array,default:function(){return[]}},groupId:String,refersh:Object,isWeim:Boolean,resource:String},data:function(){return{tableData:[],dateformat:m.a,deleteTagDialog:{visible:!1,deleteData:{}},weimId:["3d11ac15963b4c0790762e6147ea9315","5bdac971673b4f40a9af981e3c9215bf"],animationPos:{}}},methods:{addTag:function(e){this.$emit("addTag",e)},editHandTag:function(e){this.$emit("editHandTag",e)},editHandTagValue:function(e){this.$emit("setGroupId"),localStorage.setItem("jumpTag",""),localStorage.setItem("jumpThirdTag",""),this.$router.push({path:"/manualTagValueEdit",query:{tagId:e.tagId,type:"manual"}})},deleteHandTag:function(e,t,a){this.deleteTagDialog.visible=!0,this.deleteTagDialog.deleteData=l()({},e,{currentIndex:t,e:a})},doDelete:function(e){var t=this,a=e.currentIndex,i=e.e,n=e.tagId;Object(h.a)("/memberTag/getTagById",{tagId:n}).then(function(n){var s=n.data,r=s.errorCode,o=s.result;0==r&&(o.memberCount?t.intoTrash(e,a,i):t.directDelTag(e))}).catch(function(e){console.log(e)})},directDelTag:function(e){var t=this,a={tagId:e.tagId,requestProject:"gic-member-tag-web"};Object(g.h)(a).then(function(e){0==e.errorCode&&(t.$message({message:"删除成功",type:"success",duration:1e3}),t.$emit("deleteHandTag",t.groupId))})},intoTrash:function(e,t,a){var i=this,n={itemId:e.tagId,type:1};Object(h.a)("/delTagItem/add",n).then(function(t){if(0==t.data.errorCode)return e.delStatus=0,i.startAnimation(a),i.$store.commit("changeDelTrashNum",i.$store.state.delTrashNum+1),void i.$message.success("添加成功,请点击右侧「垃圾桶」图标进行删除");p.a.errorMsg(t.data)}).catch(function(e){i.$message.error({duration:1e3,message:e.message})})},startAnimation:function(e){this.animationPos={x:document.body.offsetWidth-e.pageX-30,y:document.body.offsetHeight-e.pageY},document.getElementById("tagAniIcon").style.display="block",setTimeout(function(){document.getElementById("tagAniIcon").style.display="none"},1800)},handleTrackParam:function(e,t){var a={addTag:function(){return{data:{id:t.tagId,name:t.tagName}}}}[e];return{fn:function(){},data:a?a():{}}},onClickSort:function(e){var t=this;e.numRool=!1,this.$nextTick(function(){return t.$refs["input"+e.tagId].focus()})},blurNumInput:function(e){return e.sort?e.sort>1e5||e.sort<1?this.$message.error("仅支持输入1-1-100000之间的整数"):(e.numRool=!0,void this.sortMenu(e)):this.$message.error("排序值不能为空")},validateInput:function(e){/^[0-9]+$/.test(e.sort)||(e.sort=null)},sortMenu:function(e){var t=this;return r()(n.a.mark(function a(){var i;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return i={tagId:e.tagId,sort:e.sort},a.next=3,Object(g.f)(i);case 3:t.$message.success("排序成功"),t.$emit("change");case 5:case"end":return a.stop()}},a,t)}))()},sortChange:function(e){var t=e.order,a=e.prop;this.$emit("remote-sort",a,t)}},watch:{data:{immediate:!0,handler:function(e){this.tableData=e}},refersh:{immediate:!0,handler:function(e){if(e.changeRefersh){var t=this.tableData.findIndex(function(t){return e.tagId===t.tagId});this.tableData[t].refersh=!0}}}},computed:{getCodeAuth:function(){var e=this;return function(t){var a;return a="add"==t?"memberTagCreateGroup":"edit"==t?"memberTagEditTag":"setValue"==t?"memberTagSetTagValue":"memberTagDelTag",e.$getButtonLimit(e.$buttonCode[a])}},getCode:function(){var e=this;return function(t){var a;return a="add"==t?"memberTagCreateGroup":"edit"==t?"memberTagEditTag":"setValue"==t?"memberTagSetTagValue":"memberTagDelTag",e.$buttonCode[a]}}},components:{DeleteTagDialog:u.default}},v={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tag-some-list"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData},on:{"sort-change":e.sortChange}},[a("el-table-column",{attrs:{label:"标签名称",prop:"tagName","min-width":"170",fixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"tag-name"},[e._v(e._s(t.row.tagName))]),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加标签",placement:"bottom"}},[e.getCodeAuth?a("i",{directives:[{name:"track",rawName:"v-track:common.click",value:e.handleTrackParam("addTag",t.row),expression:"handleTrackParam('addTag', scope.row)",arg:"common",modifiers:{click:!0}}],staticClass:"iconfont icon-tag-name icon-PlusOutlined",attrs:{"limit-code":e.getCode},on:{click:function(a){return e.addTag(t.row)}}}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"上级分类名称","min-width":"110",prop:"tagLevelGroupName"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("span",[e._v(e._s(i.tagLevelGroupName||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"覆盖人数",prop:"memberCount","min-width":"110","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberCount?(t.row.memberCount|e.formatNum)+"人":"--")+"\n ")]}}])},[a("template",{slot:"header"},[e._v("\n 覆盖人数\n "),a("el-popover",{attrs:{width:"260",trigger:"hover",placement:"top"}},[a("div",{staticStyle:{color:"#303133"}},[e._v("\n 标签下不同标签值可能覆盖相同的会员,因此此处“标签”覆盖人数去重显示(如“喜欢的颜色-白、红、黑、蓝”,某会员身上可能同时具备“白、黑”二种标签值)\n ")]),e._v(" "),a("i",{staticClass:"iconfont icon-QuestionCircleOutlined refresh",attrs:{slot:"reference"},slot:"reference"})])],1)],2),e._v(" "),a("el-table-column",{attrs:{label:"标签类型",prop:"isMultiple","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("div",[e._v(e._s(i.isMultiple?"多选":"单选"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"标签描述",prop:"tagDescribe","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.tagDescribe?t.row.tagDescribe:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"排序",prop:"sort","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.numRool?a("span",{staticClass:"sort",on:{click:function(a){return e.onClickSort(t.row)}}},[e._v(e._s(t.row.sort))]):a("el-input",{ref:"input"+t.row.tagId,on:{input:function(a){return e.validateInput(t.row)},blur:function(a){return e.blurNumInput(t.row)}},model:{value:t.row.sort,callback:function(a){e.$set(t.row,"sort",e._n(a))},expression:"scope.row.sort"}})]}}])},[a("template",{slot:"header"},[e._v("\n 排序\n "),a("el-popover",{attrs:{width:"260",trigger:"hover",placement:"top"}},[a("div",{staticStyle:{color:"#303133"}},[e._v("\n 控制好办上标签展示顺序,按照数字降序排序\n ")]),e._v(" "),a("i",{staticClass:"iconfont icon-QuestionCircleOutlined refresh",attrs:{slot:"reference"},slot:"reference"})])],1)],2),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.createTime?[a("p",[e._v(e._s(e.dateformat(new Date(i.createTime),"yyyy-MM-dd")))]),e._v(" "),a("p",[e._v(e._s(e.dateformat(new Date(i.createTime),"hh:mm:ss")))])]:a("span",[e._v("--")])]}}])}),e._v(" "),(e.getCodeAuth("edit")||e.getCodeAuth("setValue")||e.getCodeAuth("delete"))&&"memberGroupEdit"!=e.resource?a("el-table-column",{attrs:{label:"操作","min-width":"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"font-0"},[e.isWeim||!e.getCodeAuth("edit")||e.weimId.includes(t.row.tagLevelGroupId)?e._e():a("el-button",{staticClass:"m-r-12",attrs:{type:"text","limit-code":e.getCode("edit")},on:{click:function(a){return e.editHandTag(t.row)}}},[e._v("编辑")]),e._v(" "),e.getCodeAuth("setValue")?a("el-button",{staticClass:"m-r-12",attrs:{type:"text","limit-code":e.getCode("setValue")},on:{click:function(a){return e.editHandTagValue(t.row)}}},[e._v("详情")]):e._e(),e._v(" "),e.isWeim||!e.getCodeAuth("delete")||e.weimId.includes(t.row.tagLevelGroupId)?e._e():a("el-button",{staticClass:"m-r-12",attrs:{type:"text","limit-code":e.getCode("delete")},on:{click:function(a){return e.deleteHandTag(t.row,t.$index,a)}}},[e._v("删除")])],1)]}}])}):e._e()],1),e._v(" "),a("delete-tag-dialog",{attrs:{visible:e.deleteTagDialog.visible,data:e.deleteTagDialog.deleteData},on:{"update:visible":function(t){return e.$set(e.deleteTagDialog,"visible",t)},submit:e.doDelete}}),e._v(" "),a("i",{staticClass:"iconfont icon-biaoqian tagAniIcon",style:{right:e.animationPos.x+"px",bottom:e.animationPos.y+"px"},attrs:{id:"tagAniIcon"}})],1)},staticRenderFns:[]};var T=a("VU/8")(f,v,!1,function(e){a("WP9V")},"data-v-741c1466",null);t.default=T.exports},OvRC:function(e,t,a){e.exports={default:a("oM7Q"),__esModule:!0}},SQwf:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("QOex"),n=a("DMDI"),s=a("2CGT"),r={name:"tag-container",mixins:[n.a,i.a],props:{data:{type:Array,default:function(){return[]}},refersh:Object},data:function(){return{tableData:[],tagData:{}}},methods:{addTag:function(e){this.$emit("addTag",e)},handleTrackParam:function(e,t){var a={addTag:function(){return{data:{id:t.tagId,name:t.tagName}}}}[e];return{fn:function(){},data:a?a():{}}},changeMoreUse:function(e){var t=this,a={tagId:e.tagId,isMoreUse:e.isMoreUse?0:1};Object(s.L)(a).then(function(){t.$message.success(a.isMoreUse?'已设为"常用标签"':'已取消"设为常用标签"'),e.isMoreUse=e.isMoreUse?0:1})}},watch:{data:{immediate:!0,handler:function(e){this.tableData=e}},refersh:{immediate:!0,handler:function(e){if(e.changeRefersh){var t=this.tableData.findIndex(function(t){return e.tagId===t.tagId});this.tableData[t].refersh=!0}}}},computed:{getCodeAuth:function(){return this.$getButtonLimit(this.$buttonCode.memberTagCreateGroup)},getCode:function(){return this.$buttonCode.memberTagCreateGroup}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tag-some-list"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"标签名称",prop:"tagName","min-width":"170",fixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"tag-name"},[e._v(e._s(t.row.tagName))]),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加标签",placement:"top"}},[e.getCodeAuth?a("i",{directives:[{name:"track",rawName:"v-track:common.click",value:e.handleTrackParam("addTag",t.row),expression:"handleTrackParam('addTag', scope.row)",arg:"common",modifiers:{click:!0}}],staticClass:"iconfont icon-tag-name icon-PlusOutlined",attrs:{"limit-code":e.getCode},on:{click:function(a){return e.addTag(t.row)}}}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"是否实时",prop:"isActive","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{class:["base",1==t.row.isActive?"keep-active":"no-active"]},[e._v(" "+e._s(1==t.row.isActive?"实时":"非实时")+" ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"上级分类名称","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("span",[e._v(e._s(i.tagLevelGroupName||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"标签描述",prop:"tagDescribe","min-width":"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.tagDescribe?t.row.tagDescribe:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.changeMoreUse(i)}}},[e._v(e._s(i.isMoreUse?"取消":"设为常用"))])]}}])})],1)],1)},staticRenderFns:[]};var l=a("VU/8")(r,o,!1,function(e){a("jGIp")},"data-v-51a0b664",null);t.default=l.exports},WP9V:function(e,t){},bytj:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("fZjL"),n=a.n(i),s=a("Xxa5"),r=a.n(s),o=a("exGp"),l=a.n(o),c=a("woOf"),d=a.n(c),u=a("Dd8w"),g=a.n(u),m=a("mvHQ"),p=a.n(m),h=a("OvRC"),f=a.n(h),v=a("lRwf"),T=a.n(v),b=a("l6IN"),C=a("vcge"),y=a("iHP3"),_=a("Gndl"),w=a("SQwf"),I=a("0c8U"),x=a("2CGT"),D=a("jkVl"),k=a("8E/F"),S=a("0xDb"),L=a("EOvX");T.a.component(b.CollapseTransition.name,b.CollapseTransition);var N=+new Date+864e5,$=function(e,t,a){return{text:e,onClick:function(e){var i=new Date;"day"==a?i.setDate(t+i.getDate()):(i.setMonth(t+i.getMonth()),i=new Date(+new Date(i)-864e5)),e.$emit("pick",i)}}},G={name:"member-tag",componentName:"member-tag",components:{TagType:y.default,TagContainerManual:_.default,TagsGroupList:C.default,EditTag:D.default,Trash:k.a,TagContainerSystem:w.default,TagContainerActive:I.default},data:function(){var e=this;return{pager:{pageNum:1,total:1},handTag:null,realCount:f()(null),margin60:!1,refershList:{},tagConfig:{groupName:"",memberTagGroupClassifyId:"0",textarea:"",date:"",updateType:"",updateDay:"",isRealTime:0,effectiveStatus:1,fixedType:0,fixedTime:Object(S.a)((new Date).setHours(24,0,0,0),"{y}-{m}-{d}"),isTogether:!1},activeTagsGroupIndex:0,activeTagIndex:0,groupShow:!1,selectedTags:[[]],tagsGroupRelation:[],pickerOptions:{disabledDate:function(e){var t=(new Date).getTime()+63072e6;return e.getTime()<Date.now()-864e5||e.getTime()>t},shortcuts:[$("一天",0,"day"),$("一周",6,"day"),$("一个月",1,"month"),$("三个月",3,"month"),$("六个月",6,"month")]},fixedTimeOptions:{disabledDate:function(t){var a=(new Date).setHours(24,0,0,0),i=new Date(e.tagConfig.date).getTime();return t.getTime()<a||t.getTime()>i}},realTimeOptions:{disabledDate:function(e){return e.getTime()<+new Date}},navpath:[{name:"首页",path:window.location.origin+"/report/#/memberSummary",relocation:!0},{name:"客户管理",path:""},{name:"客户标签",path:""}],tagList:[],memberTagList:[],tagName:"全部系统标签",memberTag:"",showSearchResult:!1,tagCategory:"",pageSize:20,pageNum:1,total:0,memberGroupList:[],rateData:[{label:"实时更新",value:1},{label:"每日一次",value:2},{label:"生效后更新一次",value:3},{label:"生效后更新一次",value:4}],showEditTagPop:!1,tagData:{},editPopType:"add",manualTagPop:{show:!1,popTitle:"",tagId:"",tagLevelGroupId:"",tagTwoLevelGroupId:"",isSync:!1},memberTagGradeEnsure:!0,weimId:["3d11ac15963b4c0790762e6147ea9315","5bdac971673b4f40a9af981e3c9215bf"],isSync:!1,activeTag:"system",manualOrderBy:-1,isShowSystem:!0}},computed:{groupListNumber:function(){for(var e=0,t=0;t<this.selectedTags.length;)e+=this.selectedTags[t].length,t++;return this.checkRealTime(),e},marginSixty:function(){return this.selectedTags.length>1},setCurrentTagList:function(){var e=this.activeTag,t=function e(t){t.forEach(function(t){t.children?e(t.children):t.children=[]})};if("manual"==e){var a=this.tagList.filter(function(e){return 1===e.handTag});return t(a),a}if("active"==e){var i=this.tagList.filter(function(e){return 2===e.handTag});return t(i),i}return this.tagList.filter(function(e){return 0===e.handTag})}},directives:{loadmore:{inserted:function(e,t){e.querySelector(".el-select-dropdown .el-select-dropdown__wrap").addEventListener("scroll",function(){this.scrollHeight-this.scrollTop<=this.clientHeight&&t.value()})}}},methods:{validPeriodDateChange:function(e){this.tagConfig.fixedTime=Object(S.a)(N)},getMemberTagGradeEnsure:function(){var e=this;Object(x.q)({requestProject:"gic-member-tag-web"}).then(function(t){return e.memberTagGradeEnsure=t.result})},_groupCount:function(){var e=this;Object(x.x)().then(function(t){0==t.errorCode&&(e.realCount=t.result)})},defaultDate:function(){var e=new Date;e.setMonth(3+e.getMonth()),e=new Date(+new Date(e)-864e5),this.tagConfig.date=Object(L.a)(e,"yyyy-MM-dd")+" 23:59:59"},refersh:function(e){e.changeRefersh=!0,this.refershList=e},allTagList:function(){localStorage.setItem("groupId",""),this.params.id="",this.params.type=-1,this.loadMemberTagList(this.params),this.tagName="manual"==this.activeTag?"全部手工标签":"active"==this.activeTag?"全部活动标签":"全部系统标签",this.pageNum=1,this.$store.commit("modiftTagName","我的用户")},checkRealTime:function(){var e=this.selectedTags.reduce(function(e,t){return e.concat(t)},[]).map(function(e){return e.isActive});this.tagConfig.isRealTime=e.indexOf(0)>-1?0:1},createNewGroup:function(){var e=this;this.selectedTags.forEach(function(t,a){var i=e.tagsGroupRelation[a-1];t.forEach(function(e){e.levelType=i||"or"})});var t=this.tagConfig.fixedType?this.tagConfig.isTogether?2:1:0,a={groupName:this.tagConfig.groupName,memberTagGroupClassifyId:this.tagConfig.memberTagGroupClassifyId,isRealTime:this.tagConfig.isRealTime,describle:this.tagConfig.textarea,updateType:this.tagConfig.updateType,updateDay:this.tagConfig.updateDay,effectiveStatus:1,requestProject:"gic-member-tag-web",json:p()(this.selectedTags),effectiveDateTmp:this.tagConfig.date.split(" ")[0]+" 23:59:59",fixedType:t};if(0===this.selectedTags.length||this.selectedTags.some(function(e){return 0===e.length}))this.$message.warning({message:"请至少保留一个标签!"});else if(""!=a.groupName)if(""!=a.effectiveDateTmp){if(!this.tagConfig.isRealTime&&a.fixedType&&new Date(this.tagConfig.fixedTime).setHours(0,0,0,0)>new Date(this.tagConfig.date).setHours(0,0,0,0))return this.$message.error({message:"固化生效时间不能晚于分组有效期"}),!1;a.fixedType&&(a.fixedTime=this.tagConfig.fixedTime),Object(x.a)(a).then(function(t){if(0==t.errorCode){console.log(e.tagConfig.fixedType);var a=e.tagConfig.fixedType?"fixed":"";e.$router.push({path:"memberGroupList",query:{type:a}})}}).catch(function(e){console.log(e)})}else this.$message.warning({message:"会员分组有效期不能为空!"});else this.$message.warning({message:"会员分组名称不能为空!"})},expendsGroupList:function(){this.groupShow=!0},returnTagData:function(e){var t=this,a=JSON.parse(e.tagParams);switch(e.newTagVal=p()(a.selectedVal),e.level=this.activeTagsGroupIndex,this.editPopType){case"add":this.selectedTags[this.activeTagsGroupIndex].some(function(t){return t.tagId===e.tagId})?this.selectedTags[this.activeTagsGroupIndex].forEach(function(a,i){a.tagId===e.tagId&&t.selectedTags[t.activeTagsGroupIndex].splice(i,1,e)}):this.selectedTags[this.activeTagsGroupIndex].push(e);break;case"edit":var i=this.selectedTags[this.activeTagsGroupIndex];i.splice(this.activeTagIndex,1,g()({},i[this.activeTagIndex],e)),this.selectedTags.splice(this.activeTagsGroupIndex,1,i)}},editTags:function(){var e=this;this.editPopType="edit",this.showEditTagPop=!0,this.$nextTick(function(t){e.tagData=d()({},e.tagData,e.selectedTags[e.activeTagsGroupIndex][e.activeTagIndex]),e.tagData.editCondition=!0})},selectedTag:function(e){this.editPopType="add",this.tagData=d()({},this.tagData,e),this.tagData.editCondition=!1,this.showEditTagPop=!0},editHandTag:function(e){console.log(e);var t="";"active"==this.activeTag?t=e?"编辑活动标签":"新增活动标签":"manual"==this.activeTag&&(t=e?"编辑手工标签":"新增手工标签"),this.manualTagPop.tagId=e?e.tagId:"",this.manualTagPop.popTitle=t,this.manualTagPop.show=!0},getTagList:function(){var e=this;return l()(r.a.mark(function t(){var a;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(x.p)();case 2:(a=t.sent).result&&a.result.length?e.tagList=a.result:e.tagList=[];case 4:case"end":return t.stop()}},t,e)}))()},loadMemberTagList:function(e){var t=this;return l()(r.a.mark(function a(){var i,n,s;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return i="active"==t.activeTag?"2":"manual"==t.activeTag?"1":"0",a.prev=1,n={requestProject:"gic-member-tag-web",search:e.searchName||null,tagLevelGroupId:e.id||"",tagType:i,showMemberCount:1,pageNum:e.pageNum||1,pageSize:e.pageSize||20,orderType:"manual"==t.activeTag?t.manualOrderBy:-1},a.next=5,Object(x.r)(n);case 5:s=a.sent,t.showSearchResult=!!e.showSearchResult,s.result.result&&s.result.result.length?(t.memberTagList=s.result.result.map(function(e){return g()({},e,{refersh:!1,numRool:!0,oldSort:e.sort})}),t.total=s.result.totalCount,localStorage.setItem("groupId","")):(t.memberTagList=[],t.total=0),a.next=12;break;case 10:a.prev=10,a.t0=a.catch(1);case 12:case"end":return a.stop()}},a,t,[[1,10]])}))()},handleSizeChange:function(e){this.pageSize=e,this.params.pageSize=e,this.loadMemberTagList(this.params)},handleCurrentChange:function(e){this.params.pageNum=e,this.pageNum=e,this.loadMemberTagList(this.params)},JudgeIsHandTag:function(){var e=null;return n()(this.middleWareVariable).length&&(e={id:this.middleWareVariable.id,type:1==this.middleWareVariable.type?1:0}),e},searchMemberList:function(){console.log(this.activeTag),this.memberTag?this.tagName=this.memberTag:this.tagName="manual"==this.activeTag?"全部手工标签":"active"==this.activeTag?"全部活动标签":"全部系统标签",this.loadMemberTagList({searchName:this.memberTag,showSearchResult:!0}),this.pageNum=1},handleFristTag:function(e){this.pageNum=1,this.pageSize=20,this.params.pageNum=1,this.params.pageSize=20,this.saveHandTagData(e),this.saveTagLevelGroupId(e),this.handTag=e.handTag,this.groupId=e.id,this.loadMemberTagList(this.params),this.manualTagPop.tagTwoLevelGroupId="",this.manualTagPop.tagLevelGroupId="";var t=["手工标签","活动标签"].includes(e.name)?"全部"+e.name:e.name;this.changeTagTitle(t)},changeTagTitle:function(e){this.tagName=e||"全部系统标签",this.$store.commit("modiftTagName",this.tagName)},saveTagLevelGroupId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.params.id=e.id,1==e.handTag||(this.params.type=-1,localStorage.setItem("groupId",""))},addNewTag:function(){var e=d()({},this.params,{searchName:this.memberTag,showSearchResult:!0});this.loadMemberTagList(e)},deleteHandTag:function(e){this.loadMemberTagList({id:e,searchName:this.memberTag,showSearchResult:!0,type:1})},saveHandTagData:function(e){localStorage.setItem("middleHandtag",p()(e))},onLoadmore:function(){this.pager.pageNum>=this.pager.total||(this.pager.pageNum++,this.getMemberGroupList())},getMemberGroupList:function(){var e=this;1==this.pager.pageNum&&(this.memberGroupList=[]),Object(x.C)({requestProject:"gic-member-tag-web",type:0,pageSize:20,pageNum:this.pager.pageNum}).then(function(t){var a=t.errorCode,i=t.message,n=t.result;0==a?(Array.isArray(n.result)&&(e.memberGroupList=e.memberGroupList.concat(n.result)),e.pager.total=n.totalPage):e.$message.error(i)}).catch(function(e){console.log(e)})},getSyncFlag:function(){var e=this;Object(x.y)({}).then(function(t){0==t.errorCode&&(e.isSync=t.result,e.manualTagPop.isSync=t.result)})},setGroupId:function(){var e={id:this.groupId,name:this.tagName};localStorage.setItem("groupId",p()(e))},handleClick:function(){this.params.pageNum=1,this.memberTag="";var e=this.activeTag,t=this.tagList,a=this.allTagList,i=this.handleFristTag;if("system"===e)this.handTag=0,a();else if("manual"===e){var n=t.find(function(e){return 1==e.handTag});this.handTag=1,i(n)}else if("active"===e){var s=t.find(function(e){return 2==e.handTag});this.handTag=2,i(s)}},remoteSort:function(e,t){this.manualOrderBy="descending"==t?0:1,this.loadMemberTagList(this.params)},getShowSystem:function(){var e=this;return Object(x.A)().then(function(t){if(e.isShowSystem=t.result,!t.result){e.activeTag="manual";var a=e.tagList.find(function(e){return 1==e.handTag});e.handTag=1,e.handleFristTag(a)}})},updateTypeDesc:function(){var e=this.tagConfig,t=e.isRealTime,a=e.fixedType;return t&&!a?"(创建成功后更新)":t||a?!t&&a?"(更新时间预计固化生效日期的0点至9点)":t&&a?"(创建成功后更新)":void 0:"(更新时间预计选择日期的0点至9点)"},watchUpdateType:function(e,t){return e&&!t?1:e||t?!e&&t?3:e&&t?4:void 0:2}},beforeMount:function(){var e=this;return l()(r.a.mark(function t(){var a;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e._groupCount(),e.middleWareVariable={},e.params={requestProject:"gic-member-tag-web",id:"",searchName:e.memberTag,type:-1,pageNum:1,pageSize:20},e.tagConfig=g()({},e.tagConfig,{groupName:"",memberTagGroupClassifyId:"0",isRealTime:"",textarea:"",updateType:1,updateDay:"",date:""}),e.handTag=null,e.groupId="",t.next=8,e.getTagList();case 8:return t.next=10,e.getShowSystem();case 10:if(!localStorage.getItem("groupId")){t.next=22;break}if(a=JSON.parse(localStorage.getItem("groupId")),e.middleWareVariable=JSON.parse(p()(a)),e.isShowSystem){t.next=15;break}return t.abrupt("return");case 15:e.params.type=1,e.params.id=a.id,e.$store.commit("modiftTagName",e.tagName),e.handTag=1,e.loadMemberTagList(e.params),t.next=26;break;case 22:if(e.isShowSystem){t.next=24;break}return t.abrupt("return");case 24:e.loadMemberTagList(e.params),e.$store.commit("modiftTagName","我的用户");case 26:case"end":return t.stop()}},t,e)}))()},mounted:function(){var e=this;this.$on("refersh-member-list",function(){e.getTagList()}),this.$on("handle-second-tag",function(t){e.middleWareVariable={id:t.id,type:t.handTag,name:t.name},e.pageNum=1,e.pageSize=20,e.saveHandTagData(t),e.handTag=t.handTag,e.groupId=t.id,e.saveTagLevelGroupId(t),e.loadMemberTagList(e.params),e.manualTagPop.tagTwoLevelGroupId=t.tagLevelGroupId,e.manualTagPop.tagLevelGroupId="",e.changeTagTitle(t.name)}),this.$on("edit-third-tag",function(t){var a=JSON.parse(localStorage.getItem("middleHandtag"));e.saveTagLevelGroupId(a)}),this.$on("handle-third-tag",function(t){e.middleWareVariable={id:t.id,type:t.handTag,name:t.name},e.pageNum=1,e.pageSize=20,e.params.pageNum=1,e.params.pageSize=20,e.saveHandTagData(t),e.saveTagLevelGroupId(t),e.groupId=t.id,e.handTag=t.handTag,e.loadMemberTagList(e.params),e.manualTagPop.tagTwoLevelGroupId=t.parentLevelGroupId,e.manualTagPop.tagLevelGroupId=t.tagLevelGroupId,e.changeTagTitle(t.name)}),this.defaultDate(),this.getMemberGroupList(),this.getMemberTagGradeEnsure(),this.getSyncFlag()},watch:{"tagConfig.isRealTime":function(e){var t=this.tagConfig.fixedType;this.tagConfig.updateType=this.watchUpdateType(e,t)},"tagConfig.fixedType":function(e){var t=this.tagConfig.isRealTime;this.tagConfig.updateType=this.watchUpdateType(t,e)}}},P={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"member-tag"},[a("div",{staticClass:"tag-container"},[a("div",{staticClass:"member-box"},[a("div",{staticClass:"flex"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeTag,callback:function(t){e.activeTag=t},expression:"activeTag"}},[e.isShowSystem?a("el-tab-pane",{attrs:{label:"系统标签",name:"system"}}):e._e(),e._v(" "),a("el-tab-pane",{ref:"manualTab",attrs:{label:"手工标签",name:"manual"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"活动标签",name:"active"}})],1),e._v(" "),a("a",{staticClass:"help-doc",attrs:{href:"https://www.yuque.com/exnmlu/hpbb1c/cz27hs",target:"_blank"}},[e._v("查看帮助文档")])],1),e._v(" "),a("div",{staticClass:"main-tag"},[a("div",{staticClass:"tag-list"},[a("div",{staticClass:"list-box",staticStyle:{"padding-bottom":"40px"}},e._l(e.setCurrentTagList,function(t,i){return a("TagType",{key:i,attrs:{"active-tag":e.activeTag,"tag-list":t},on:{handleFristTag:e.handleFristTag}})}),1)]),e._v(" "),a("div",{staticClass:"tag-all"},[a("p",{staticClass:"tag-name"},[a("span",{staticClass:"sub-title"}),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:(1==e.handTag&&!e.weimId.includes(e.groupId||e.params.id)||2==e.handTag)&&e.$getButtonLimit(e.$buttonCode.memberTagAddTag),expression:"(handTag == 1 && !weimId.includes(groupId || params.id) || handTag == 2) && $getButtonLimit($buttonCode.memberTagAddTag)"}],staticClass:"add-newtag",attrs:{type:"primary","limit-code":e.$buttonCode.memberTagAddTag},on:{click:function(t){return e.editHandTag()}}},[e._v("新增标签")]),e._v(" "),1==e.handTag&&!e.isSync&&e.$getButtonLimit(e.$buttonCode.memberTagSyncTag)?a("el-button",{staticClass:"add-newtag",attrs:{type:"primary","limit-code":e.$buttonCode.memberTagSyncTag},on:{click:function(t){return e.$router.push("/syncTagHistory")}}},[e._v("同步标签")]):e._e(),e._v(" "),a("el-input",{staticClass:"add-newtag",staticStyle:{width:"260px",float:"left","margin-left":"0"},attrs:{placeholder:"请输入标签名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.allTagList},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchMemberList(t)}},model:{value:e.memberTag,callback:function(t){e.memberTag=t},expression:"memberTag"}})],1),e._v(" "),"金字塔会员分层"!=e.tagName||e.memberTagGradeEnsure?e._e():a("p",{staticClass:"tips"},[e._v("暂未开通金字塔分层功能,无法使用该标签,可以联系达摩项目经理进行开通!")]),e._v(" "),a("tag-container-manual",{directives:[{name:"show",rawName:"v-show",value:"manual"==e.activeTag,expression:"activeTag == 'manual'"}],ref:"tagContainer",attrs:{data:e.memberTagList,groupId:e.groupId,refersh:e.refershList,isWeim:e.weimId.includes(e.groupId||e.params.id)},on:{setGroupId:e.setGroupId,peopleHandTag:e.peopleHandTag,deleteHandTag:e.deleteHandTag,addTag:e.selectedTag,editHandTag:e.editHandTag,change:e.searchMemberList,"remote-sort":e.remoteSort}}),e._v(" "),a("tag-container-system",{directives:[{name:"show",rawName:"v-show",value:"system"==e.activeTag,expression:"activeTag == 'system'"}],attrs:{data:e.memberTagList,refersh:e.refershList},on:{addTag:e.selectedTag,change:e.searchMemberList}}),e._v(" "),a("tag-container-active",{directives:[{name:"show",rawName:"v-show",value:"active"==e.activeTag,expression:"activeTag == 'active'"}],attrs:{data:e.memberTagList,refersh:e.refershList},on:{addTag:e.selectedTag,change:e.searchMemberList,ediActiveTag:e.editHandTag,deleteHandTag:e.deleteHandTag}}),e._v(" "),e.total>0?a("div",{staticClass:"page-box"},[a("dm-pagination",{attrs:{background:"","current-page":e.pageNum,"page-sizes":[20,30],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.memberTagCreateGroup)?a("div",{staticClass:"my-pop-tagbox",attrs:{"limit-code":e.$buttonCode.memberTagCreateGroup},on:{click:e.expendsGroupList}},[a("p",{staticClass:"txt"},[0!=e.groupListNumber?a("el-badge",{attrs:{value:e.groupListNumber}},[a("i",{staticClass:"iconfont icon-biaoqian",staticStyle:{"margin-bottom":"2px"}})]):a("i",{staticClass:"iconfont icon-biaoqian",staticStyle:{"margin-bottom":"2px"}}),e._v(" "),a("span",[e._v("已选标签")])],1)]):e._e()],1)])])]),e._v(" "),a("div",{staticClass:"group-right-list",class:{"group-transtion-list":e.groupShow}},[a("div",{staticClass:"group-title"},[a("span",{staticClass:"label"},[e._v("已选标签 ("+e._s(e.groupListNumber)+")")]),e._v(" "),a("i",{staticClass:"el-icon-close icon-right",on:{click:function(t){e.groupShow=!1}}})]),e._v(" "),e._m(0),e._v(" "),a("div",{staticClass:"wapper"},[a("div",{staticClass:"inner"},[a("tags-group-list",{attrs:{selectedTagsData:e.selectedTags,tagsGroupRelation:e.tagsGroupRelation,activeTagsGroupIndex:e.activeTagsGroupIndex,activeTagIndex:e.activeTagIndex},on:{editTags:e.editTags,"update:activeTagsGroupIndex":function(t){e.activeTagsGroupIndex=t},"update:active-tags-group-index":function(t){e.activeTagsGroupIndex=t},"update:activeTagIndex":function(t){e.activeTagIndex=t},"update:active-tag-index":function(t){e.activeTagIndex=t}}}),e._v(" "),a("div",{staticClass:"form-item"},[a("label",{attrs:{for:""}},[e._v("分组名称")]),e._v(" "),a("el-input",{attrs:{maxlength:10,placeholder:"请输入分组名称","show-word-limit":""},model:{value:e.tagConfig.groupName,callback:function(t){e.$set(e.tagConfig,"groupName",t)},expression:"tagConfig.groupName"}})],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!e.tagConfig.isRealTime,expression:"!tagConfig.isRealTime"}],staticClass:"form-item"},[a("label",{attrs:{for:""}},[e._v("\n 分组有效期至\n "),a("el-tooltip",{attrs:{content:"分组有效期需早于所用标签的最早有效期,且最长不超过730天"}},[a("i",{staticClass:"iconfont icon-QuestionCircleOutlined m-l-4 tip-icon"})])],1),e._v(" "),a("el-date-picker",{staticStyle:{width:"100%"},attrs:{clearable:!1,"picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd HH:mm:ss",type:"date",placeholder:"选择日期"},model:{value:e.tagConfig.date,callback:function(t){e.$set(e.tagConfig,"date",t)},expression:"tagConfig.date"}})],1),e._v(" "),a("div",{class:["form-item"]},[a("label",{attrs:{for:""}},[e._v("分组所属分类")]),e._v(" "),a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmore,expression:"onLoadmore"}],staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择"},model:{value:e.tagConfig.memberTagGroupClassifyId,callback:function(t){e.$set(e.tagConfig,"memberTagGroupClassifyId",t)},expression:"tagConfig.memberTagGroupClassifyId"}},e._l(e.memberGroupList,function(e){return a("el-option",{key:e.memberTagGroupClassifyId,attrs:{value:e.memberTagGroupClassifyId,label:e.classifyName}})}),1)],1),e._v(" "),a("div",{class:["form-item"]},[a("label",{staticClass:"m-b-15",attrs:{for:""}},[e._v("是否固化"),a("el-link",{staticClass:"m-l-16",attrs:{type:"primary",underline:!1,target:"_blank",href:"https://www.yuque.com/exnmlu/hpbb1c/ke8o0d"}},[e._v("什么是固化?")])],1),e._v(" "),a("el-radio-group",{staticClass:"radio-group",model:{value:e.tagConfig.fixedType,callback:function(t){e.$set(e.tagConfig,"fixedType",t)},expression:"tagConfig.fixedType"}},[a("el-radio",{staticClass:"m-b-0",attrs:{label:0}},[e._v("否")]),e._v(" "),a("el-radio",{staticClass:"m-b-0",attrs:{label:2}},[e._v("是")])],1)],1),e._v(" "),e.tagConfig.fixedType?a("div",{class:["form-item","m-t-10"]},[a("label",{attrs:{for:""}},[e._v("固化生效时间")]),e._v(" "),a("el-date-picker",{staticStyle:{width:"100%"},attrs:{clearable:!1,"picker-options":e.tagConfig.isRealTime?e.realTimeOptions:e.fixedTimeOptions,"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.tagConfig.fixedTime,callback:function(t){e.$set(e.tagConfig,"fixedTime",t)},expression:"tagConfig.fixedTime"}})],1):e._e(),e._v(" "),e.tagConfig.fixedType?a("div",{class:["form-item"]},[a("label",{staticClass:"m-b-15",attrs:{for:""}},[e._v("是否同时生成非固化分组")]),e._v(" "),a("el-radio-group",{staticClass:"radio-group",model:{value:e.tagConfig.isTogether,callback:function(t){e.$set(e.tagConfig,"isTogether",t)},expression:"tagConfig.isTogether"}},[a("el-radio",{staticClass:"m-b-0",attrs:{label:!1}},[e._v("否")]),e._v(" "),a("el-radio",{staticClass:"m-b-0",attrs:{label:!0}},[e._v("是")])],1)],1):e._e(),e._v(" "),a("div",{staticClass:"form-item"},[a("label",{attrs:{for:""}},[e._v("更新频次"),a("span",{staticClass:"desc-labeltxt"},[e._v(e._s(e.updateTypeDesc()))])]),e._v(" "),a("el-select",{attrs:{placeholder:"请选择",disabled:""},model:{value:e.tagConfig.updateType,callback:function(t){e.$set(e.tagConfig,"updateType",t)},expression:"tagConfig.updateType"}},e._l(e.rateData,function(e,t){return a("el-option",{key:e.label,attrs:{label:e.label,value:t+1}})}),1)],1),e._v(" "),a("div",{staticClass:"form-item"},[a("label",{attrs:{for:""}},[e._v("分组描述")]),e._v(" "),a("el-input",{attrs:{type:"textarea","show-word-limit":"",maxlength:100,rows:"4",resize:"none",placeholder:"请输入分组描述,最多100字"},model:{value:e.tagConfig.textarea,callback:function(t){e.$set(e.tagConfig,"textarea",t)},expression:"tagConfig.textarea"}})],1),e._v(" "),a("p",{directives:[{name:"show",rawName:"v-show",value:!(e.tagConfig.fixedType&&!e.tagConfig.isTogether)&&0==e.tagConfig.isRealTime&&e.realCount.totalCount<=e.realCount.currCount,expression:"!(tagConfig.fixedType && !tagConfig.isTogether) && tagConfig.isRealTime == 0 && realCount.totalCount <= realCount.currCount"}],staticClass:"tips-count"},[e._v("\n 您的非实时会员分组数量已达上限"+e._s(e.realCount.totalCount)+",建议您删除或失效部分非实时会员分组!\n ")])],1)]),e._v(" "),a("div",{staticClass:"fixed-btn"},[a("el-button",{attrs:{type:"primary",disabled:!(e.tagConfig.fixedType&&!e.tagConfig.isTogether)&&0==e.tagConfig.isRealTime&&e.realCount.totalCount<=e.realCount.currCount},on:{click:e.createNewGroup}},[e._v("创建会员分组")])],1)]),e._v(" "),a("edit-tag",{attrs:{showEditTagPop:e.showEditTagPop,tagData:e.tagData,title:"add"===e.editPopType?"添加标签":"更新标签"},on:{"update:showEditTagPop":function(t){e.showEditTagPop=t},"update:show-edit-tag-pop":function(t){e.showEditTagPop=t},returnTagData:e.returnTagData,refersh:e.refersh}}),e._v(" "),a("dm-memberTag-val",{attrs:{options:e.manualTagPop,"current-type":e.activeTag,showPop:e.manualTagPop.show},on:{"update:showPop":function(t){return e.$set(e.manualTagPop,"show",t)},"update:show-pop":function(t){return e.$set(e.manualTagPop,"show",t)},save:e.addNewTag}}),e._v(" "),a("Trash")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"group-tips"},[t("span",{staticClass:"desc"},[this._v("一个标签框内标签之间的关系为且,可添加多个标签框,多个标签框之间可切换“或者”/“剔除”")])])}]};var O=a("VU/8")(G,P,!1,function(e){a("7omO"),a("7307")},"data-v-ba5e70a4",null);t.default=O.exports},iHP3:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Dd8w"),n=a.n(i),s=a("lRwf"),r=a.n(s),o=a("l6IN"),l=a("CUHN"),c=a("SJI6");r.a.component(o.CollapseTransition.name,o.CollapseTransition);var d={name:"tag-type",components:{SecondTag:l.default},props:{tagList:Object,activeTag:String},data:function(){return{list:{},typeName:"",editData:[]}},computed:n()({},Object(c.mapState)(["tagRealName"]),{tagName:function(){var e=this.activeTag;return"system"==e?"系统标签":"manual"==e?"手工标签":"活动标签"},isOtherTag:function(){return!["手工标签","活动标签"].includes(this.list.name)}}),methods:{handleFirstTag:function(){localStorage.setItem("jumpTag",""),this.$emit("handleFristTag",this.list)}},watch:{tagList:{immediate:!0,handler:function(e){this.list=e}}}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"list"},[a("div",{staticClass:"first-tag"},[e.isOtherTag?a("div",{staticClass:"mb16"},[a("svg",{staticClass:"menu-icon",class:[{"icon-tag-light":e.list.name===e.tagRealName}],attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#"+e.list.icon}})]),e._v(" "),a("span",{staticClass:"tag-name",class:{"icon-tag-light":e.list.name===e.tagRealName},on:{click:e.handleFirstTag}},[e._v(e._s(e.list.name))])]):e._e(),e._v(" "),a("el-collapseTransition",[a("div",{staticClass:"second-tag"},e._l(e.list.children,function(t,i){return a("second-tag",{key:i,attrs:{type:e.activeTag,list:t,"tag-name":e.tagName}})}),1)])],1)])},staticRenderFns:[]};var g=a("VU/8")(d,u,!1,function(e){a("ihKY")},"data-v-dbd83472",null);t.default=g.exports},ihKY:function(e,t){},jGIp:function(e,t){},oM7Q:function(e,t,a){a("sF+V");var i=a("FeBl").Object;e.exports=function(e,t){return i.create(e,t)}},"sF+V":function(e,t,a){var i=a("kM2E");i(i.S,"Object",{create:a("Yobk")})},unJh:function(e,t){}});
\ No newline at end of file
webpackJsonp([2,16,20,30,40],{"0c8U":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Dd8w"),n=a.n(i),s=a("QOex"),r=a("DMDI"),o=a("EOvX"),l=a("2CGT"),c=a("r9pr"),d=a("Ch4/"),u=a("P9l9"),g={name:"tag-container",mixins:[r.a,s.a],components:{DeleteTagDialog:c.default},props:{data:{type:Array,default:function(){return[]}},refersh:Object},data:function(){return{tableData:[],tagData:{},dateformat:o.a,deleteTagDialog:{visible:!1,deleteData:{}},animationPos:{}}},methods:{addTag:function(e){this.$emit("addTag",e)},handleTrackParam:function(e,t){var a={addTag:function(){return{data:{id:t.tagId,name:t.tagName}}}}[e];return{fn:function(){},data:a?a():{}}},editActiveTag:function(e){this.$emit("ediActiveTag",e)},editActiveTagValue:function(e){this.$emit("setGroupId"),localStorage.setItem("jumpTag",""),localStorage.setItem("jumpThirdTag",""),this.$router.push({path:"/manualTagValueEdit",query:{tagId:e.tagId,type:"active"}})},deleteActiveTag:function(e,t,a){console.log(a),this.deleteTagDialog.visible=!0,this.deleteTagDialog.deleteData=n()({},e,{currentIndex:t,e:a})},doDelete:function(e){var t=this,a=e.currentIndex,i=e.e,n=e.tagId;Object(u.a)("/memberTag/getTagById",{tagId:n}).then(function(n){var s=n.data,r=s.errorCode,o=s.result;0==r&&(o.memberCount?t.intoTrash(e,a,i):t.directDelTag(e))}).catch(function(e){console.log(e)})},directDelTag:function(e){var t=this,a={tagId:e.tagId,requestProject:"gic-member-tag-web"};Object(l.h)(a).then(function(e){0==e.errorCode&&(t.$message({message:"删除成功",type:"success",duration:1e3}),t.$emit("deleteHandTag",t.groupId))})},intoTrash:function(e,t,a){var i=this,n={itemId:e.tagId,type:1};Object(u.a)("/delTagItem/add",n).then(function(t){if(0==t.data.errorCode)return e.delStatus=0,i.startAnimation(a),i.$store.commit("changeDelTrashNum",i.$store.state.delTrashNum+1),void i.$message.success("添加成功,请点击右侧「垃圾桶」图标进行删除");d.a.errorMsg(t.data)}).catch(function(e){i.$message.error({duration:1e3,message:e.message})})},startAnimation:function(e){this.animationPos={x:document.body.offsetWidth-e.pageX,y:document.body.offsetHeight-e.pageY},document.getElementById("activeAniIcon").style.display="block",setTimeout(function(){document.getElementById("activeAniIcon").style.display="none"},1800)}},watch:{data:{immediate:!0,handler:function(e){this.tableData=e}},refersh:{immediate:!0,handler:function(e){if(e.changeRefersh){var t=this.tableData.findIndex(function(t){return e.tagId===t.tagId});this.tableData[t].refersh=!0}}}},computed:{getCodeAuth:function(){return this.$getButtonLimit(this.$buttonCode.memberTagCreateGroup)},getCode:function(){return this.$buttonCode.memberTagCreateGroup}}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tag-some-list"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"标签名称",prop:"tagName","min-width":"170",fixed:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"tag-name"},[e._v(e._s(t.row.tagName))]),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加标签",placement:"bottom"}},[e.getCodeAuth?a("i",{directives:[{name:"track",rawName:"v-track:common.click",value:e.handleTrackParam("addTag",t.row),expression:"handleTrackParam('addTag', scope.row)",arg:"common",modifiers:{click:!0}}],staticClass:"iconfont icon-tag-name icon-PlusOutlined",attrs:{"limit-code":e.getCode},on:{click:function(a){return e.addTag(t.row)}}}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"上级分类名称","min-width":"110",prop:"tagLevelGroupName"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("span",[e._v(e._s(i.tagLevelGroupName||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"覆盖人数",prop:"memberCount","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberCount?(t.row.memberCount|e.formatNum)+"人":"--")+"\n ")]}}])},[a("template",{slot:"header"},[e._v("\n 覆盖人数\n "),a("el-popover",{attrs:{width:"260",trigger:"hover",placement:"top"}},[a("div",{staticStyle:{color:"#303133"}},[e._v("\n 标签下不同标签值可能覆盖相同的会员,因此此处“标签”覆盖人数去重显示(如“喜欢的颜色-白、红、黑、蓝”,某会员身上可能同时具备“白、黑”二种标签值)\n ")]),e._v(" "),a("i",{staticClass:"iconfont icon-QuestionCircleOutlined refresh",attrs:{slot:"reference"},slot:"reference"})])],1)],2),e._v(" "),a("el-table-column",{attrs:{label:"标签描述",prop:"tagDescribe","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.tagDescribe?t.row.tagDescribe:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.createTime?[a("p",[e._v(e._s(e.dateformat(new Date(i.createTime),"yyyy-MM-dd")))]),e._v(" "),a("p",[e._v(e._s(e.dateformat(new Date(i.createTime),"hh:mm:ss")))])]:a("span",[e._v("--")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"font-0"},[a("el-button",{staticClass:"m-r-12",attrs:{type:"text"},on:{click:function(a){return e.editActiveTag(t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{staticClass:"m-r-12",attrs:{type:"text"},on:{click:function(a){return e.editActiveTagValue(t.row)}}},[e._v("详情")]),e._v(" "),a("el-button",{staticClass:"m-r-12",attrs:{type:"text"},on:{click:function(a){return e.deleteActiveTag(t.row,t.$index,a)}}},[e._v("删除")])],1)]}}])})],1),e._v(" "),a("delete-tag-dialog",{attrs:{visible:e.deleteTagDialog.visible,data:e.deleteTagDialog.deleteData},on:{"update:visible":function(t){return e.$set(e.deleteTagDialog,"visible",t)},submit:e.doDelete}}),e._v(" "),a("i",{staticClass:"iconfont icon-biaoqian activeAniIcon",style:{right:e.animationPos.x+"px",bottom:e.animationPos.y+"px"},attrs:{id:"activeAniIcon"}})],1)},staticRenderFns:[]};var p=a("VU/8")(g,m,!1,function(e){a("1bir")},"data-v-24b04042",null);t.default=p.exports},"0xDb":function(e,t,a){"use strict";t.a=r;var i=a("fZjL"),n=(a.n(i),a("pFYg")),s=a.n(n);function r(e,t){if(0===arguments.length)return null;var a=t||"{y}-{m}-{d} {h}:{i}:{s}",i=void 0;"object"===(void 0===e?"undefined":s()(e))?i=e:(10===(""+e).length&&(e=1e3*parseInt(e)),i=new Date(e));var n={y:i.getFullYear(),m:i.getMonth()+1,d:i.getDate(),h:i.getHours(),i:i.getMinutes(),s:i.getSeconds(),a:i.getDay()};return a.replace(/{(y|m|d|h|i|s|a)+}/g,function(e,t){var a=n[t];return"a"===t?["一","二","三","四","五","六","日"][a-1]:(e.length>0&&a<10&&(a="0"+a),a||0)})}},"1bir":function(e,t){},"8E/F":function(e,t,a){"use strict";var i=a("2CGT"),n={name:"trash",data:function(){return{progress:0,trashList:[],dialogVisible:!1,delTime:0,interval:void 0}},mounted:function(){this.getProgress()},methods:{getProgress:function(){var e=this;Object(i.s)().then(function(t){var a=t.errorCode,i=t.message;if(0!=a)return e.$message.error(i);e.getTrashList()})},getTrashList:function(){var e=this;Object(i.v)().then(function(t){var a=t.errorCode,i=t.message,n=t.result,s=void 0===n?[]:n;if(0!=a)return e.$message.error(i);e.trashList=s,e.$store.commit("changeDelTrashNum",s.length),e.progress=s.length})},dialogOpen:function(){var e=this;this.getTrashList(),Object(i.z)().then(function(t){var a=t.errorCode,i=t.message,n=t.result;if(0!=a)return e.$message.error(i);e.delTime=n,n&&(e.interval=setInterval(function(t){e.delTime-=1e3},1e3))})},dialogClosed:function(){this.interval&&clearInterval(this.interval),this.getProgress()},getDelTime:function(){var e=parseInt(this.delTime%6e4/1e3),t=parseInt(this.delTime%36e5/6e4);return"倒计时: "+parseInt(this.delTime%864e5/36e5)+"h:"+t+"min:"+e+"s"},doClean:function(){var e=this;if(this.delTime>0)return this.$message.error("当前有正在删除的标签/标签值,删除完成后才能再次操作删除任务");Object(i.g)().then(function(t){var a=t.errorCode,i=t.message;if(0!=a)return e.$message.error(i);e.$message.success("已开始执行"),e.dialogVisible=!1,e.getProgress(),e.$emit("beginClean")})},delCheckTag:function(e,t){var a=this,n=null==e?1:0;Object(i.i)({tagItemId:n?t:e,type:n}).then(function(e){var t=e.errorCode,i=e.message;if(0!=t)return a.$message.error(i);a.getTrashList(),a.$message.success("移除成功")})}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"trash"}},[a("el-popover",{attrs:{placement:"top-start",trigger:"hover",content:"一键清除废弃标签值"}},[a("div",{staticClass:"trash",attrs:{slot:"reference"},on:{click:function(t){e.dialogVisible=!0}},slot:"reference"},[0!=e.$store.state.delTrashNum?a("el-badge",{staticClass:"badge",attrs:{value:e.$store.state.delTrashNum>99?"99+":e.$store.state.delTrashNum}},[a("i",{staticClass:"iconfont icon-delete trashIcon"})]):a("i",{staticClass:"iconfont icon-delete trashIcon"})],1)]),e._v(" "),a("el-dialog",{attrs:{title:"删除标签",visible:e.dialogVisible,width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t},open:e.dialogOpen,closed:e.dialogClosed}},[a("el-alert",{staticStyle:{width:"535px","margin-bottom":"20px"},attrs:{title:"标签删除时,同步将标签从会员信息上删除。",type:"warning","show-icon":"",closable:!1}}),e._v(" "),a("header",[e._v("已选择待删除的标签/标签值")]),e._v(" "),a("ul",{staticClass:"tagBox"},e._l(e.trashList,function(t){return a("li",{key:t.tagItemId,staticClass:"tagItem"},[e._v("\n "+e._s(null==t.tagItemId?t.tagName:t.tagItemName)+"\n "),a("i",{staticClass:"iconfont icon-guanbi1 delIcon",on:{click:function(a){return e.delCheckTag(t.tagItemId,t.tagId)}}})])}),0),e._v(" "),a("span",{attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:!e.trashList.length},on:{click:e.doClean}},[e._v(e._s(e.delTime>0?e.getDelTime():"删除"))])],1)],1)],1)},staticRenderFns:[]};var r=a("VU/8")(n,s,!1,function(e){a("unJh")},"data-v-9652feba",null);t.a=r.exports},Gndl:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Xxa5"),n=a.n(i),s=a("exGp"),r=a.n(s),o=a("Dd8w"),l=a.n(o),c=a("QOex"),d=a("DMDI"),u=a("r9pr"),g=a("2CGT"),m=a("EOvX"),p=a("Ch4/"),h=a("P9l9"),f={name:"tag-container",mixins:[d.a,c.a],props:{data:{type:Array,default:function(){return[]}},groupId:String,refersh:Object,isWeim:Boolean,resource:String},data:function(){return{tableData:[],dateformat:m.a,deleteTagDialog:{visible:!1,deleteData:{}},weimId:["3d11ac15963b4c0790762e6147ea9315","5bdac971673b4f40a9af981e3c9215bf"],animationPos:{}}},methods:{addTag:function(e){this.$emit("addTag",e)},editHandTag:function(e){this.$emit("editHandTag",e)},editHandTagValue:function(e){this.$emit("setGroupId"),localStorage.setItem("jumpTag",""),localStorage.setItem("jumpThirdTag",""),this.$router.push({path:"/manualTagValueEdit",query:{tagId:e.tagId,type:"manual"}})},deleteHandTag:function(e,t,a){this.deleteTagDialog.visible=!0,this.deleteTagDialog.deleteData=l()({},e,{currentIndex:t,e:a})},doDelete:function(e){var t=this,a=e.currentIndex,i=e.e,n=e.tagId;Object(h.a)("/memberTag/getTagById",{tagId:n}).then(function(n){var s=n.data,r=s.errorCode,o=s.result;0==r&&(o.memberCount?t.intoTrash(e,a,i):t.directDelTag(e))}).catch(function(e){console.log(e)})},directDelTag:function(e){var t=this,a={tagId:e.tagId,requestProject:"gic-member-tag-web"};Object(g.h)(a).then(function(e){0==e.errorCode&&(t.$message({message:"删除成功",type:"success",duration:1e3}),t.$emit("deleteHandTag",t.groupId))})},intoTrash:function(e,t,a){var i=this,n={itemId:e.tagId,type:1};Object(h.a)("/delTagItem/add",n).then(function(t){if(0==t.data.errorCode)return e.delStatus=0,i.startAnimation(a),i.$store.commit("changeDelTrashNum",i.$store.state.delTrashNum+1),void i.$message.success("添加成功,请点击右侧「垃圾桶」图标进行删除");p.a.errorMsg(t.data)}).catch(function(e){i.$message.error({duration:1e3,message:e.message})})},startAnimation:function(e){this.animationPos={x:document.body.offsetWidth-e.pageX-30,y:document.body.offsetHeight-e.pageY},document.getElementById("tagAniIcon").style.display="block",setTimeout(function(){document.getElementById("tagAniIcon").style.display="none"},1800)},handleTrackParam:function(e,t){var a={addTag:function(){return{data:{id:t.tagId,name:t.tagName}}}}[e];return{fn:function(){},data:a?a():{}}},onClickSort:function(e){var t=this;e.numRool=!1,this.$nextTick(function(){return t.$refs["input"+e.tagId].focus()})},blurNumInput:function(e){return e.sort?e.sort>1e5||e.sort<1?this.$message.error("仅支持输入1-1-100000之间的整数"):(e.numRool=!0,void this.sortMenu(e)):this.$message.error("排序值不能为空")},validateInput:function(e){/^[0-9]+$/.test(e.sort)||(e.sort=null)},sortMenu:function(e){var t=this;return r()(n.a.mark(function a(){var i;return n.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return i={tagId:e.tagId,sort:e.sort},a.next=3,Object(g.f)(i);case 3:t.$message.success("排序成功"),t.$emit("change");case 5:case"end":return a.stop()}},a,t)}))()},sortChange:function(e){var t=e.order,a=e.prop;this.$emit("remote-sort",a,t)}},watch:{data:{immediate:!0,handler:function(e){this.tableData=e}},refersh:{immediate:!0,handler:function(e){if(e.changeRefersh){var t=this.tableData.findIndex(function(t){return e.tagId===t.tagId});this.tableData[t].refersh=!0}}}},computed:{getCodeAuth:function(){var e=this;return function(t){var a;return a="add"==t?"memberTagCreateGroup":"edit"==t?"memberTagEditTag":"setValue"==t?"memberTagSetTagValue":"memberTagDelTag",e.$getButtonLimit(e.$buttonCode[a])}},getCode:function(){var e=this;return function(t){var a;return a="add"==t?"memberTagCreateGroup":"edit"==t?"memberTagEditTag":"setValue"==t?"memberTagSetTagValue":"memberTagDelTag",e.$buttonCode[a]}}},components:{DeleteTagDialog:u.default}},v={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tag-some-list"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData},on:{"sort-change":e.sortChange}},[a("el-table-column",{attrs:{label:"标签名称",prop:"tagName","min-width":"170",fixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"tag-name"},[e._v(e._s(t.row.tagName))]),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加标签",placement:"bottom"}},[e.getCodeAuth?a("i",{directives:[{name:"track",rawName:"v-track:common.click",value:e.handleTrackParam("addTag",t.row),expression:"handleTrackParam('addTag', scope.row)",arg:"common",modifiers:{click:!0}}],staticClass:"iconfont icon-tag-name icon-PlusOutlined",attrs:{"limit-code":e.getCode},on:{click:function(a){return e.addTag(t.row)}}}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"上级分类名称","min-width":"110",prop:"tagLevelGroupName"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("span",[e._v(e._s(i.tagLevelGroupName||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"覆盖人数",prop:"memberCount","min-width":"110","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberCount?(t.row.memberCount|e.formatNum)+"人":"--")+"\n ")]}}])},[a("template",{slot:"header"},[e._v("\n 覆盖人数\n "),a("el-popover",{attrs:{width:"260",trigger:"hover",placement:"top"}},[a("div",{staticStyle:{color:"#303133"}},[e._v("\n 标签下不同标签值可能覆盖相同的会员,因此此处“标签”覆盖人数去重显示(如“喜欢的颜色-白、红、黑、蓝”,某会员身上可能同时具备“白、黑”二种标签值)\n ")]),e._v(" "),a("i",{staticClass:"iconfont icon-QuestionCircleOutlined refresh",attrs:{slot:"reference"},slot:"reference"})])],1)],2),e._v(" "),a("el-table-column",{attrs:{label:"标签类型",prop:"isMultiple","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("div",[e._v(e._s(i.isMultiple?"多选":"单选"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"标签描述",prop:"tagDescribe","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.tagDescribe?t.row.tagDescribe:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"排序",prop:"sort","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.numRool?a("span",{staticClass:"sort",on:{click:function(a){return e.onClickSort(t.row)}}},[e._v(e._s(t.row.sort))]):a("el-input",{ref:"input"+t.row.tagId,on:{input:function(a){return e.validateInput(t.row)},blur:function(a){return e.blurNumInput(t.row)}},model:{value:t.row.sort,callback:function(a){e.$set(t.row,"sort",e._n(a))},expression:"scope.row.sort"}})]}}])},[a("template",{slot:"header"},[e._v("\n 排序\n "),a("el-popover",{attrs:{width:"260",trigger:"hover",placement:"top"}},[a("div",{staticStyle:{color:"#303133"}},[e._v("\n 控制好办上标签展示顺序,按照数字降序排序\n ")]),e._v(" "),a("i",{staticClass:"iconfont icon-QuestionCircleOutlined refresh",attrs:{slot:"reference"},slot:"reference"})])],1)],2),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[i.createTime?[a("p",[e._v(e._s(e.dateformat(new Date(i.createTime),"yyyy-MM-dd")))]),e._v(" "),a("p",[e._v(e._s(e.dateformat(new Date(i.createTime),"hh:mm:ss")))])]:a("span",[e._v("--")])]}}])}),e._v(" "),(e.getCodeAuth("edit")||e.getCodeAuth("setValue")||e.getCodeAuth("delete"))&&"memberGroupEdit"!=e.resource?a("el-table-column",{attrs:{label:"操作","min-width":"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"font-0"},[e.isWeim||!e.getCodeAuth("edit")||e.weimId.includes(t.row.tagLevelGroupId)?e._e():a("el-button",{staticClass:"m-r-12",attrs:{type:"text","limit-code":e.getCode("edit")},on:{click:function(a){return e.editHandTag(t.row)}}},[e._v("编辑")]),e._v(" "),e.getCodeAuth("setValue")?a("el-button",{staticClass:"m-r-12",attrs:{type:"text","limit-code":e.getCode("setValue")},on:{click:function(a){return e.editHandTagValue(t.row)}}},[e._v("详情")]):e._e(),e._v(" "),e.isWeim||!e.getCodeAuth("delete")||e.weimId.includes(t.row.tagLevelGroupId)?e._e():a("el-button",{staticClass:"m-r-12",attrs:{type:"text","limit-code":e.getCode("delete")},on:{click:function(a){return e.deleteHandTag(t.row,t.$index,a)}}},[e._v("删除")])],1)]}}])}):e._e()],1),e._v(" "),a("delete-tag-dialog",{attrs:{visible:e.deleteTagDialog.visible,data:e.deleteTagDialog.deleteData},on:{"update:visible":function(t){return e.$set(e.deleteTagDialog,"visible",t)},submit:e.doDelete}}),e._v(" "),a("i",{staticClass:"iconfont icon-biaoqian tagAniIcon",style:{right:e.animationPos.x+"px",bottom:e.animationPos.y+"px"},attrs:{id:"tagAniIcon"}})],1)},staticRenderFns:[]};var T=a("VU/8")(f,v,!1,function(e){a("WP9V")},"data-v-741c1466",null);t.default=T.exports},OvRC:function(e,t,a){e.exports={default:a("oM7Q"),__esModule:!0}},SQwf:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("QOex"),n=a("DMDI"),s=a("2CGT"),r={name:"tag-container",mixins:[n.a,i.a],props:{data:{type:Array,default:function(){return[]}},refersh:Object},data:function(){return{tableData:[],tagData:{}}},methods:{addTag:function(e){this.$emit("addTag",e)},handleTrackParam:function(e,t){var a={addTag:function(){return{data:{id:t.tagId,name:t.tagName}}}}[e];return{fn:function(){},data:a?a():{}}},changeMoreUse:function(e){var t=this,a={tagId:e.tagId,isMoreUse:e.isMoreUse?0:1};Object(s.L)(a).then(function(){t.$message.success(a.isMoreUse?'已设为"常用标签"':'已取消"设为常用标签"'),e.isMoreUse=e.isMoreUse?0:1})}},watch:{data:{immediate:!0,handler:function(e){this.tableData=e}},refersh:{immediate:!0,handler:function(e){if(e.changeRefersh){var t=this.tableData.findIndex(function(t){return e.tagId===t.tagId});this.tableData[t].refersh=!0}}}},computed:{getCodeAuth:function(){return this.$getButtonLimit(this.$buttonCode.memberTagCreateGroup)},getCode:function(){return this.$buttonCode.memberTagCreateGroup}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tag-some-list"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"标签名称",prop:"tagName","min-width":"170",fixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"tag-name"},[e._v(e._s(t.row.tagName))]),e._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加标签",placement:"top"}},[e.getCodeAuth?a("i",{directives:[{name:"track",rawName:"v-track:common.click",value:e.handleTrackParam("addTag",t.row),expression:"handleTrackParam('addTag', scope.row)",arg:"common",modifiers:{click:!0}}],staticClass:"iconfont icon-tag-name icon-PlusOutlined",attrs:{"limit-code":e.getCode},on:{click:function(a){return e.addTag(t.row)}}}):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"是否实时",prop:"isActive","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{class:["base",1==t.row.isActive?"keep-active":"no-active"]},[e._v(" "+e._s(1==t.row.isActive?"实时":"非实时")+" ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"上级分类名称","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("span",[e._v(e._s(i.tagLevelGroupName||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"标签描述",prop:"tagDescribe","min-width":"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.tagDescribe?t.row.tagDescribe:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.changeMoreUse(i)}}},[e._v(e._s(i.isMoreUse?"取消":"设为常用"))])]}}])})],1)],1)},staticRenderFns:[]};var l=a("VU/8")(r,o,!1,function(e){a("jGIp")},"data-v-51a0b664",null);t.default=l.exports},"UBj+":function(e,t){},WP9V:function(e,t){},bytj:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("fZjL"),n=a.n(i),s=a("Xxa5"),r=a.n(s),o=a("exGp"),l=a.n(o),c=a("woOf"),d=a.n(c),u=a("Dd8w"),g=a.n(u),m=a("mvHQ"),p=a.n(m),h=a("OvRC"),f=a.n(h),v=a("lRwf"),T=a.n(v),b=a("l6IN"),C=a("vcge"),y=a("iHP3"),_=a("Gndl"),w=a("SQwf"),I=a("0c8U"),x=a("2CGT"),D=a("jkVl"),k=a("8E/F"),S=a("0xDb"),L=a("EOvX");T.a.component(b.CollapseTransition.name,b.CollapseTransition);var N=+new Date+864e5,$=function(e,t,a){return{text:e,onClick:function(e){var i=new Date;"day"==a?i.setDate(t+i.getDate()):(i.setMonth(t+i.getMonth()),i=new Date(+new Date(i)-864e5)),e.$emit("pick",i)}}},G={name:"member-tag",componentName:"member-tag",components:{TagType:y.default,TagContainerManual:_.default,TagsGroupList:C.default,EditTag:D.default,Trash:k.a,TagContainerSystem:w.default,TagContainerActive:I.default},data:function(){var e=this;return{pager:{pageNum:1,total:1},handTag:null,realCount:f()(null),margin60:!1,refershList:{},tagConfig:{groupName:"",memberTagGroupClassifyId:"0",textarea:"",date:"",updateType:"",updateDay:"",isRealTime:0,effectiveStatus:1,fixedType:0,fixedTime:Object(S.a)((new Date).setHours(24,0,0,0),"{y}-{m}-{d}"),isTogether:!1},activeTagsGroupIndex:0,activeTagIndex:0,groupShow:!1,selectedTags:[[]],tagsGroupRelation:[],pickerOptions:{disabledDate:function(e){var t=(new Date).getTime()+63072e6;return e.getTime()<Date.now()-864e5||e.getTime()>t},shortcuts:[$("一天",0,"day"),$("一周",6,"day"),$("一个月",1,"month"),$("三个月",3,"month"),$("六个月",6,"month")]},fixedTimeOptions:{disabledDate:function(t){var a=(new Date).setHours(24,0,0,0),i=new Date(e.tagConfig.date).getTime();return t.getTime()<a||t.getTime()>i}},realTimeOptions:{disabledDate:function(e){return e.getTime()<+new Date}},navpath:[{name:"首页",path:window.location.origin+"/report/#/memberSummary",relocation:!0},{name:"客户管理",path:""},{name:"客户标签",path:""}],tagList:[],memberTagList:[],tagName:"全部系统标签",memberTag:"",showSearchResult:!1,tagCategory:"",pageSize:20,pageNum:1,total:0,memberGroupList:[],rateData:[{label:"实时更新",value:1},{label:"每日一次",value:2},{label:"生效后更新一次",value:3},{label:"生效后更新一次",value:4}],showEditTagPop:!1,tagData:{},editPopType:"add",manualTagPop:{show:!1,popTitle:"",tagId:"",tagLevelGroupId:"",tagTwoLevelGroupId:"",isSync:!1},memberTagGradeEnsure:!0,weimId:["3d11ac15963b4c0790762e6147ea9315","5bdac971673b4f40a9af981e3c9215bf"],isSync:!1,activeTag:"system",manualOrderBy:-1,isShowSystem:!0}},computed:{groupListNumber:function(){for(var e=0,t=0;t<this.selectedTags.length;)e+=this.selectedTags[t].length,t++;return this.checkRealTime(),e},marginSixty:function(){return this.selectedTags.length>1},setCurrentTagList:function(){var e=this.activeTag,t=function e(t){t.forEach(function(t){t.children?e(t.children):t.children=[]})};if("manual"==e){var a=this.tagList.filter(function(e){return 1===e.handTag});return t(a),a}if("active"==e){var i=this.tagList.filter(function(e){return 2===e.handTag});return t(i),i}return this.tagList.filter(function(e){return 0===e.handTag})}},directives:{loadmore:{inserted:function(e,t){e.querySelector(".el-select-dropdown .el-select-dropdown__wrap").addEventListener("scroll",function(){this.scrollHeight-this.scrollTop<=this.clientHeight&&t.value()})}}},methods:{validPeriodDateChange:function(e){this.tagConfig.fixedTime=Object(S.a)(N)},getMemberTagGradeEnsure:function(){var e=this;Object(x.q)({requestProject:"gic-member-tag-web"}).then(function(t){return e.memberTagGradeEnsure=t.result})},_groupCount:function(){var e=this;Object(x.x)().then(function(t){0==t.errorCode&&(e.realCount=t.result)})},defaultDate:function(){var e=new Date;e.setMonth(3+e.getMonth()),e=new Date(+new Date(e)-864e5),this.tagConfig.date=Object(L.a)(e,"yyyy-MM-dd")+" 23:59:59"},refersh:function(e){e.changeRefersh=!0,this.refershList=e},allTagList:function(){localStorage.setItem("groupId",""),this.params.id="",this.params.type=-1,this.loadMemberTagList(this.params),this.tagName="manual"==this.activeTag?"全部手工标签":"active"==this.activeTag?"全部活动标签":"全部系统标签",this.pageNum=1,this.$store.commit("modiftTagName","我的用户")},checkRealTime:function(){var e=this.selectedTags.reduce(function(e,t){return e.concat(t)},[]).map(function(e){return e.isActive});this.tagConfig.isRealTime=e.indexOf(0)>-1?0:1},createNewGroup:function(){var e=this;this.selectedTags.forEach(function(t,a){var i=e.tagsGroupRelation[a-1];t.forEach(function(e){e.levelType=i||"or"})});var t=this.tagConfig.fixedType?this.tagConfig.isTogether?2:1:0,a={groupName:this.tagConfig.groupName,memberTagGroupClassifyId:this.tagConfig.memberTagGroupClassifyId,isRealTime:this.tagConfig.isRealTime,describle:this.tagConfig.textarea,updateType:this.tagConfig.updateType,updateDay:this.tagConfig.updateDay,effectiveStatus:1,requestProject:"gic-member-tag-web",json:p()(this.selectedTags),effectiveDateTmp:this.tagConfig.date.split(" ")[0]+" 23:59:59",fixedType:t};if(0===this.selectedTags.length||this.selectedTags.some(function(e){return 0===e.length}))this.$message.warning({message:"请至少保留一个标签!"});else if(""!=a.groupName)if(""!=a.effectiveDateTmp){if(!this.tagConfig.isRealTime&&a.fixedType&&new Date(this.tagConfig.fixedTime).setHours(0,0,0,0)>new Date(this.tagConfig.date).setHours(0,0,0,0))return this.$message.error({message:"固化生效时间不能晚于分组有效期"}),!1;a.fixedType&&(a.fixedTime=this.tagConfig.fixedTime),Object(x.a)(a).then(function(t){if(0==t.errorCode){console.log(e.tagConfig.fixedType);var a=e.tagConfig.fixedType?"fixed":"";e.$router.push({path:"memberGroupList",query:{type:a}})}}).catch(function(e){console.log(e)})}else this.$message.warning({message:"会员分组有效期不能为空!"});else this.$message.warning({message:"会员分组名称不能为空!"})},expendsGroupList:function(){this.groupShow=!0},returnTagData:function(e){var t=this,a=JSON.parse(e.tagParams);switch(e.newTagVal=p()(a.selectedVal),e.level=this.activeTagsGroupIndex,this.editPopType){case"add":this.selectedTags[this.activeTagsGroupIndex].some(function(t){return t.tagId===e.tagId})?this.selectedTags[this.activeTagsGroupIndex].forEach(function(a,i){a.tagId===e.tagId&&t.selectedTags[t.activeTagsGroupIndex].splice(i,1,e)}):this.selectedTags[this.activeTagsGroupIndex].push(e);break;case"edit":var i=this.selectedTags[this.activeTagsGroupIndex];i.splice(this.activeTagIndex,1,g()({},i[this.activeTagIndex],e)),this.selectedTags.splice(this.activeTagsGroupIndex,1,i)}},editTags:function(){var e=this;this.editPopType="edit",this.showEditTagPop=!0,this.$nextTick(function(t){e.tagData=d()({},e.tagData,e.selectedTags[e.activeTagsGroupIndex][e.activeTagIndex]),e.tagData.editCondition=!0})},selectedTag:function(e){this.editPopType="add",this.tagData=d()({},this.tagData,e),this.tagData.editCondition=!1,this.showEditTagPop=!0},editHandTag:function(e){console.log(e);var t="";"active"==this.activeTag?t=e?"编辑活动标签":"新增活动标签":"manual"==this.activeTag&&(t=e?"编辑手工标签":"新增手工标签"),this.manualTagPop.tagId=e?e.tagId:"",this.manualTagPop.popTitle=t,this.manualTagPop.show=!0},getTagList:function(){var e=this;return l()(r.a.mark(function t(){var a;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(x.p)();case 2:(a=t.sent).result&&a.result.length?e.tagList=a.result:e.tagList=[];case 4:case"end":return t.stop()}},t,e)}))()},loadMemberTagList:function(e){var t=this;return l()(r.a.mark(function a(){var i,n,s;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return i="active"==t.activeTag?"2":"manual"==t.activeTag?"1":"0",a.prev=1,n={requestProject:"gic-member-tag-web",search:e.searchName||null,tagLevelGroupId:e.id||"",tagType:i,showMemberCount:1,pageNum:e.pageNum||1,pageSize:e.pageSize||20,orderType:"manual"==t.activeTag?t.manualOrderBy:-1},a.next=5,Object(x.r)(n);case 5:s=a.sent,t.showSearchResult=!!e.showSearchResult,s.result.result&&s.result.result.length?(t.memberTagList=s.result.result.map(function(e){return g()({},e,{refersh:!1,numRool:!0,oldSort:e.sort})}),t.total=s.result.totalCount,localStorage.setItem("groupId","")):(t.memberTagList=[],t.total=0),a.next=12;break;case 10:a.prev=10,a.t0=a.catch(1);case 12:case"end":return a.stop()}},a,t,[[1,10]])}))()},handleSizeChange:function(e){this.pageSize=e,this.params.pageSize=e,this.loadMemberTagList(this.params)},handleCurrentChange:function(e){this.params.pageNum=e,this.pageNum=e,this.loadMemberTagList(this.params)},JudgeIsHandTag:function(){var e=null;return n()(this.middleWareVariable).length&&(e={id:this.middleWareVariable.id,type:1==this.middleWareVariable.type?1:0}),e},searchMemberList:function(){console.log(this.activeTag),this.memberTag?this.tagName=this.memberTag:this.tagName="manual"==this.activeTag?"全部手工标签":"active"==this.activeTag?"全部活动标签":"全部系统标签",this.loadMemberTagList({searchName:this.memberTag,showSearchResult:!0}),this.pageNum=1},handleFristTag:function(e){this.pageNum=1,this.pageSize=20,this.params.pageNum=1,this.params.pageSize=20,this.saveHandTagData(e),this.saveTagLevelGroupId(e),this.handTag=e.handTag,this.groupId=e.id,this.loadMemberTagList(this.params),this.manualTagPop.tagTwoLevelGroupId="",this.manualTagPop.tagLevelGroupId="";var t=["手工标签","活动标签"].includes(e.name)?"全部"+e.name:e.name;this.changeTagTitle(t)},changeTagTitle:function(e){this.tagName=e||"全部系统标签",this.$store.commit("modiftTagName",this.tagName)},saveTagLevelGroupId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.params.id=e.id,1==e.handTag||(this.params.type=-1,localStorage.setItem("groupId",""))},addNewTag:function(){var e=d()({},this.params,{searchName:this.memberTag,showSearchResult:!0});this.loadMemberTagList(e)},deleteHandTag:function(e){this.loadMemberTagList({id:e,searchName:this.memberTag,showSearchResult:!0,type:1})},saveHandTagData:function(e){localStorage.setItem("middleHandtag",p()(e))},onLoadmore:function(){this.pager.pageNum>=this.pager.total||(this.pager.pageNum++,this.getMemberGroupList())},getMemberGroupList:function(){var e=this;1==this.pager.pageNum&&(this.memberGroupList=[]),Object(x.C)({requestProject:"gic-member-tag-web",type:0,pageSize:20,pageNum:this.pager.pageNum}).then(function(t){var a=t.errorCode,i=t.message,n=t.result;0==a?(Array.isArray(n.result)&&(e.memberGroupList=e.memberGroupList.concat(n.result)),e.pager.total=n.totalPage):e.$message.error(i)}).catch(function(e){console.log(e)})},getSyncFlag:function(){var e=this;Object(x.y)({}).then(function(t){0==t.errorCode&&(e.isSync=t.result,e.manualTagPop.isSync=t.result)})},setGroupId:function(){var e={id:this.groupId,name:this.tagName};localStorage.setItem("groupId",p()(e))},handleClick:function(){this.params.pageNum=1,this.memberTag="";var e=this.activeTag,t=this.tagList,a=this.allTagList,i=this.handleFristTag;if("system"===e)this.handTag=0,a();else if("manual"===e){var n=t.find(function(e){return 1==e.handTag});this.handTag=1,i(n)}else if("active"===e){var s=t.find(function(e){return 2==e.handTag});this.handTag=2,i(s)}},remoteSort:function(e,t){this.manualOrderBy="descending"==t?0:1,this.loadMemberTagList(this.params)},getShowSystem:function(){var e=this;return Object(x.A)().then(function(t){if(e.isShowSystem=t.result,!t.result){e.activeTag="manual";var a=e.tagList.find(function(e){return 1==e.handTag});e.handTag=1,e.handleFristTag(a)}})},updateTypeDesc:function(){var e=this.tagConfig,t=e.isRealTime,a=e.fixedType;return t&&!a?"(创建成功后更新)":t||a?!t&&a?"(更新时间预计固化生效日期的0点至9点)":t&&a?"(创建成功后更新)":void 0:"(更新时间预计选择日期的0点至9点)"},watchUpdateType:function(e,t){return e&&!t?1:e||t?!e&&t?3:e&&t?4:void 0:2}},beforeMount:function(){var e=this;return l()(r.a.mark(function t(){var a;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e._groupCount(),e.middleWareVariable={},e.params={requestProject:"gic-member-tag-web",id:"",searchName:e.memberTag,type:-1,pageNum:1,pageSize:20},e.tagConfig=g()({},e.tagConfig,{groupName:"",memberTagGroupClassifyId:"0",isRealTime:"",textarea:"",updateType:1,updateDay:"",date:""}),e.handTag=null,e.groupId="",t.next=8,e.getTagList();case 8:return t.next=10,e.getShowSystem();case 10:if(!localStorage.getItem("groupId")){t.next=22;break}if(a=JSON.parse(localStorage.getItem("groupId")),e.middleWareVariable=JSON.parse(p()(a)),e.isShowSystem){t.next=15;break}return t.abrupt("return");case 15:e.params.type=1,e.params.id=a.id,e.$store.commit("modiftTagName",e.tagName),e.handTag=1,e.loadMemberTagList(e.params),t.next=26;break;case 22:if(e.isShowSystem){t.next=24;break}return t.abrupt("return");case 24:e.loadMemberTagList(e.params),e.$store.commit("modiftTagName","我的用户");case 26:case"end":return t.stop()}},t,e)}))()},mounted:function(){var e=this;this.$on("refersh-member-list",function(){e.getTagList()}),this.$on("handle-second-tag",function(t){e.middleWareVariable={id:t.id,type:t.handTag,name:t.name},e.pageNum=1,e.pageSize=20,e.saveHandTagData(t),e.handTag=t.handTag,e.groupId=t.id,e.saveTagLevelGroupId(t),e.loadMemberTagList(e.params),e.manualTagPop.tagTwoLevelGroupId=t.tagLevelGroupId,e.manualTagPop.tagLevelGroupId="",e.changeTagTitle(t.name)}),this.$on("edit-third-tag",function(t){var a=JSON.parse(localStorage.getItem("middleHandtag"));e.saveTagLevelGroupId(a)}),this.$on("handle-third-tag",function(t){e.middleWareVariable={id:t.id,type:t.handTag,name:t.name},e.pageNum=1,e.pageSize=20,e.params.pageNum=1,e.params.pageSize=20,e.saveHandTagData(t),e.saveTagLevelGroupId(t),e.groupId=t.id,e.handTag=t.handTag,e.loadMemberTagList(e.params),e.manualTagPop.tagTwoLevelGroupId=t.parentLevelGroupId,e.manualTagPop.tagLevelGroupId=t.tagLevelGroupId,e.changeTagTitle(t.name)}),this.defaultDate(),this.getMemberGroupList(),this.getMemberTagGradeEnsure(),this.getSyncFlag()},watch:{"tagConfig.isRealTime":function(e){var t=this.tagConfig.fixedType;this.tagConfig.updateType=this.watchUpdateType(e,t)},"tagConfig.fixedType":function(e){var t=this.tagConfig.isRealTime;this.tagConfig.updateType=this.watchUpdateType(t,e)}}},P={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"member-tag"},[a("div",{staticClass:"tag-container"},[a("div",{staticClass:"member-box"},[a("div",{staticClass:"flex"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeTag,callback:function(t){e.activeTag=t},expression:"activeTag"}},[e.isShowSystem?a("el-tab-pane",{attrs:{label:"系统标签",name:"system"}}):e._e(),e._v(" "),a("el-tab-pane",{ref:"manualTab",attrs:{label:"手工标签",name:"manual"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"活动标签",name:"active"}})],1),e._v(" "),a("a",{staticClass:"help-doc",attrs:{href:"https://www.yuque.com/exnmlu/hpbb1c/cz27hs",target:"_blank"}},[e._v("查看帮助文档")])],1),e._v(" "),a("div",{staticClass:"main-tag"},[a("div",{staticClass:"tag-list"},[a("div",{staticClass:"list-box",staticStyle:{"padding-bottom":"40px"}},e._l(e.setCurrentTagList,function(t,i){return a("TagType",{key:i,attrs:{"active-tag":e.activeTag,"tag-list":t},on:{handleFristTag:e.handleFristTag}})}),1)]),e._v(" "),a("div",{staticClass:"tag-all"},[a("p",{staticClass:"tag-name"},[a("span",{staticClass:"sub-title"}),e._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:(1==e.handTag&&!e.weimId.includes(e.groupId||e.params.id)||2==e.handTag)&&e.$getButtonLimit(e.$buttonCode.memberTagAddTag),expression:"(handTag == 1 && !weimId.includes(groupId || params.id) || handTag == 2) && $getButtonLimit($buttonCode.memberTagAddTag)"}],staticClass:"add-newtag",attrs:{type:"primary","limit-code":e.$buttonCode.memberTagAddTag},on:{click:function(t){return e.editHandTag()}}},[e._v("新增标签")]),e._v(" "),1==e.handTag&&!e.isSync&&e.$getButtonLimit(e.$buttonCode.memberTagSyncTag)?a("el-button",{staticClass:"add-newtag",attrs:{type:"primary","limit-code":e.$buttonCode.memberTagSyncTag},on:{click:function(t){return e.$router.push("/syncTagHistory")}}},[e._v("同步标签")]):e._e(),e._v(" "),a("el-input",{staticClass:"add-newtag",staticStyle:{width:"260px",float:"left","margin-left":"0"},attrs:{placeholder:"请输入标签名称","prefix-icon":"el-icon-search",clearable:""},on:{blur:e.searchMemberList,clear:e.allTagList},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchMemberList(t)}},model:{value:e.memberTag,callback:function(t){e.memberTag=t},expression:"memberTag"}})],1),e._v(" "),"金字塔会员分层"!=e.tagName||e.memberTagGradeEnsure?e._e():a("p",{staticClass:"tips"},[e._v("暂未开通金字塔分层功能,无法使用该标签,可以联系达摩项目经理进行开通!")]),e._v(" "),a("tag-container-manual",{directives:[{name:"show",rawName:"v-show",value:"manual"==e.activeTag,expression:"activeTag == 'manual'"}],ref:"tagContainer",attrs:{data:e.memberTagList,groupId:e.groupId,refersh:e.refershList,isWeim:e.weimId.includes(e.groupId||e.params.id)},on:{setGroupId:e.setGroupId,peopleHandTag:e.peopleHandTag,deleteHandTag:e.deleteHandTag,addTag:e.selectedTag,editHandTag:e.editHandTag,change:e.searchMemberList,"remote-sort":e.remoteSort}}),e._v(" "),a("tag-container-system",{directives:[{name:"show",rawName:"v-show",value:"system"==e.activeTag,expression:"activeTag == 'system'"}],attrs:{data:e.memberTagList,refersh:e.refershList},on:{addTag:e.selectedTag,change:e.searchMemberList}}),e._v(" "),a("tag-container-active",{directives:[{name:"show",rawName:"v-show",value:"active"==e.activeTag,expression:"activeTag == 'active'"}],attrs:{data:e.memberTagList,refersh:e.refershList},on:{addTag:e.selectedTag,change:e.searchMemberList,ediActiveTag:e.editHandTag,deleteHandTag:e.deleteHandTag}}),e._v(" "),e.total>0?a("div",{staticClass:"page-box"},[a("dm-pagination",{attrs:{background:"","current-page":e.pageNum,"page-sizes":[20,30],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.memberTagCreateGroup)?a("div",{staticClass:"my-pop-tagbox",attrs:{"limit-code":e.$buttonCode.memberTagCreateGroup},on:{click:e.expendsGroupList}},[a("p",{staticClass:"txt"},[0!=e.groupListNumber?a("el-badge",{attrs:{value:e.groupListNumber}},[a("i",{staticClass:"iconfont icon-biaoqian",staticStyle:{"margin-bottom":"2px"}})]):a("i",{staticClass:"iconfont icon-biaoqian",staticStyle:{"margin-bottom":"2px"}}),e._v(" "),a("span",[e._v("已选标签")])],1)]):e._e()],1)])])]),e._v(" "),a("div",{staticClass:"group-right-list",class:{"group-transtion-list":e.groupShow}},[a("div",{staticClass:"group-title"},[a("span",{staticClass:"label"},[e._v("已选标签 ("+e._s(e.groupListNumber)+")")]),e._v(" "),a("i",{staticClass:"el-icon-close icon-right",on:{click:function(t){e.groupShow=!1}}})]),e._v(" "),e._m(0),e._v(" "),a("div",{staticClass:"wapper"},[a("div",{staticClass:"inner"},[a("tags-group-list",{attrs:{selectedTagsData:e.selectedTags,tagsGroupRelation:e.tagsGroupRelation,activeTagsGroupIndex:e.activeTagsGroupIndex,activeTagIndex:e.activeTagIndex},on:{editTags:e.editTags,"update:activeTagsGroupIndex":function(t){e.activeTagsGroupIndex=t},"update:active-tags-group-index":function(t){e.activeTagsGroupIndex=t},"update:activeTagIndex":function(t){e.activeTagIndex=t},"update:active-tag-index":function(t){e.activeTagIndex=t}}}),e._v(" "),a("div",{staticClass:"form-item"},[a("label",{attrs:{for:""}},[e._v("分组名称")]),e._v(" "),a("el-input",{attrs:{maxlength:10,placeholder:"请输入分组名称","show-word-limit":""},model:{value:e.tagConfig.groupName,callback:function(t){e.$set(e.tagConfig,"groupName",t)},expression:"tagConfig.groupName"}})],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!e.tagConfig.isRealTime,expression:"!tagConfig.isRealTime"}],staticClass:"form-item"},[a("label",{attrs:{for:""}},[e._v("\n 分组有效期至\n "),a("el-tooltip",{attrs:{content:"分组有效期需早于所用标签的最早有效期,且最长不超过730天"}},[a("i",{staticClass:"iconfont icon-QuestionCircleOutlined m-l-4 tip-icon"})])],1),e._v(" "),a("el-date-picker",{staticStyle:{width:"100%"},attrs:{clearable:!1,"picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd HH:mm:ss",type:"date",placeholder:"选择日期"},model:{value:e.tagConfig.date,callback:function(t){e.$set(e.tagConfig,"date",t)},expression:"tagConfig.date"}})],1),e._v(" "),a("div",{class:["form-item"]},[a("label",{attrs:{for:""}},[e._v("分组所属分类")]),e._v(" "),a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmore,expression:"onLoadmore"}],staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择"},model:{value:e.tagConfig.memberTagGroupClassifyId,callback:function(t){e.$set(e.tagConfig,"memberTagGroupClassifyId",t)},expression:"tagConfig.memberTagGroupClassifyId"}},e._l(e.memberGroupList,function(e){return a("el-option",{key:e.memberTagGroupClassifyId,attrs:{value:e.memberTagGroupClassifyId,label:e.classifyName}})}),1)],1),e._v(" "),a("div",{class:["form-item"]},[a("label",{staticClass:"m-b-15",attrs:{for:""}},[e._v("是否固化"),a("el-link",{staticClass:"m-l-16",attrs:{type:"primary",underline:!1,target:"_blank",href:"https://www.yuque.com/exnmlu/hpbb1c/ke8o0d"}},[e._v("什么是固化?")])],1),e._v(" "),a("el-radio-group",{staticClass:"radio-group",model:{value:e.tagConfig.fixedType,callback:function(t){e.$set(e.tagConfig,"fixedType",t)},expression:"tagConfig.fixedType"}},[a("el-radio",{staticClass:"m-b-0",attrs:{label:0}},[e._v("否")]),e._v(" "),a("el-radio",{staticClass:"m-b-0",attrs:{label:2}},[e._v("是")])],1)],1),e._v(" "),e.tagConfig.fixedType?a("div",{class:["form-item","m-t-10"]},[a("label",{attrs:{for:""}},[e._v("固化生效时间")]),e._v(" "),a("el-date-picker",{staticStyle:{width:"100%"},attrs:{clearable:!1,"picker-options":e.tagConfig.isRealTime?e.realTimeOptions:e.fixedTimeOptions,"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.tagConfig.fixedTime,callback:function(t){e.$set(e.tagConfig,"fixedTime",t)},expression:"tagConfig.fixedTime"}})],1):e._e(),e._v(" "),e.tagConfig.fixedType?a("div",{class:["form-item"]},[a("label",{staticClass:"m-b-15",attrs:{for:""}},[e._v("是否同时生成非固化分组")]),e._v(" "),a("el-radio-group",{staticClass:"radio-group",model:{value:e.tagConfig.isTogether,callback:function(t){e.$set(e.tagConfig,"isTogether",t)},expression:"tagConfig.isTogether"}},[a("el-radio",{staticClass:"m-b-0",attrs:{label:!1}},[e._v("否")]),e._v(" "),a("el-radio",{staticClass:"m-b-0",attrs:{label:!0}},[e._v("是")])],1)],1):e._e(),e._v(" "),a("div",{staticClass:"form-item"},[a("label",{attrs:{for:""}},[e._v("更新频次"),a("span",{staticClass:"desc-labeltxt"},[e._v(e._s(e.updateTypeDesc()))])]),e._v(" "),a("el-select",{attrs:{placeholder:"请选择",disabled:""},model:{value:e.tagConfig.updateType,callback:function(t){e.$set(e.tagConfig,"updateType",t)},expression:"tagConfig.updateType"}},e._l(e.rateData,function(e,t){return a("el-option",{key:e.label,attrs:{label:e.label,value:t+1}})}),1)],1),e._v(" "),a("div",{staticClass:"form-item"},[a("label",{attrs:{for:""}},[e._v("分组描述")]),e._v(" "),a("el-input",{attrs:{type:"textarea","show-word-limit":"",maxlength:100,rows:"4",resize:"none",placeholder:"请输入分组描述,最多100字"},model:{value:e.tagConfig.textarea,callback:function(t){e.$set(e.tagConfig,"textarea",t)},expression:"tagConfig.textarea"}})],1),e._v(" "),a("p",{directives:[{name:"show",rawName:"v-show",value:!(e.tagConfig.fixedType&&!e.tagConfig.isTogether)&&0==e.tagConfig.isRealTime&&e.realCount.totalCount<=e.realCount.currCount,expression:"!(tagConfig.fixedType && !tagConfig.isTogether) && tagConfig.isRealTime == 0 && realCount.totalCount <= realCount.currCount"}],staticClass:"tips-count"},[e._v("\n 您的非实时会员分组数量已达上限"+e._s(e.realCount.totalCount)+",建议您删除或失效部分非实时会员分组!\n ")])],1)]),e._v(" "),a("div",{staticClass:"fixed-btn"},[a("el-button",{attrs:{type:"primary",disabled:!(e.tagConfig.fixedType&&!e.tagConfig.isTogether)&&0==e.tagConfig.isRealTime&&e.realCount.totalCount<=e.realCount.currCount},on:{click:e.createNewGroup}},[e._v("创建会员分组")])],1)]),e._v(" "),a("edit-tag",{attrs:{showEditTagPop:e.showEditTagPop,tagData:e.tagData,title:"add"===e.editPopType?"添加标签":"更新标签"},on:{"update:showEditTagPop":function(t){e.showEditTagPop=t},"update:show-edit-tag-pop":function(t){e.showEditTagPop=t},returnTagData:e.returnTagData,refersh:e.refersh}}),e._v(" "),a("dm-memberTag-val",{attrs:{options:e.manualTagPop,"current-type":e.activeTag,showPop:e.manualTagPop.show},on:{"update:showPop":function(t){return e.$set(e.manualTagPop,"show",t)},"update:show-pop":function(t){return e.$set(e.manualTagPop,"show",t)},save:e.addNewTag}}),e._v(" "),a("Trash")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"group-tips"},[t("span",{staticClass:"desc"},[this._v("一个标签框内标签之间的关系为且,可添加多个标签框,多个标签框之间可切换“或者”/“剔除”")])])}]};var O=a("VU/8")(G,P,!1,function(e){a("c0YY"),a("UBj+")},"data-v-57044b3e",null);t.default=O.exports},c0YY:function(e,t){},iHP3:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Dd8w"),n=a.n(i),s=a("lRwf"),r=a.n(s),o=a("l6IN"),l=a("CUHN"),c=a("SJI6");r.a.component(o.CollapseTransition.name,o.CollapseTransition);var d={name:"tag-type",components:{SecondTag:l.default},props:{tagList:Object,activeTag:String},data:function(){return{list:{},typeName:"",editData:[]}},computed:n()({},Object(c.mapState)(["tagRealName"]),{tagName:function(){var e=this.activeTag;return"system"==e?"系统标签":"manual"==e?"手工标签":"活动标签"},isOtherTag:function(){return!["手工标签","活动标签"].includes(this.list.name)}}),methods:{handleFirstTag:function(){localStorage.setItem("jumpTag",""),this.$emit("handleFristTag",this.list)}},watch:{tagList:{immediate:!0,handler:function(e){this.list=e}}}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"list"},[a("div",{staticClass:"first-tag"},[e.isOtherTag?a("div",{staticClass:"mb16"},[a("svg",{staticClass:"menu-icon",class:[{"icon-tag-light":e.list.name===e.tagRealName}],attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#"+e.list.icon}})]),e._v(" "),a("span",{staticClass:"tag-name",class:{"icon-tag-light":e.list.name===e.tagRealName},on:{click:e.handleFirstTag}},[e._v(e._s(e.list.name))])]):e._e(),e._v(" "),a("el-collapseTransition",[a("div",{staticClass:"second-tag"},e._l(e.list.children,function(t,i){return a("second-tag",{key:i,attrs:{type:e.activeTag,list:t,"tag-name":e.tagName}})}),1)])],1)])},staticRenderFns:[]};var g=a("VU/8")(d,u,!1,function(e){a("ihKY")},"data-v-dbd83472",null);t.default=g.exports},ihKY:function(e,t){},jGIp:function(e,t){},oM7Q:function(e,t,a){a("sF+V");var i=a("FeBl").Object;e.exports=function(e,t){return i.create(e,t)}},"sF+V":function(e,t,a){var i=a("kM2E");i(i.S,"Object",{create:a("Yobk")})},unJh:function(e,t){}});
\ No newline at end of file
webpackJsonp([4,35],{"124l":function(t,e){},"8E/F":function(t,e,n){"use strict";var o=n("2CGT"),a={name:"trash",data:function(){return{progress:0,trashList:[],dialogVisible:!1,delTime:0,interval:void 0}},mounted:function(){this.getProgress()},methods:{getProgress:function(){var t=this;Object(o.s)().then(function(e){var n=e.errorCode,o=e.message;if(0!=n)return t.$message.error(o);t.getTrashList()})},getTrashList:function(){var t=this;Object(o.v)().then(function(e){var n=e.errorCode,o=e.message,a=e.result,r=void 0===a?[]:a;if(0!=n)return t.$message.error(o);t.trashList=r,t.$store.commit("changeDelTrashNum",r.length),t.progress=r.length})},dialogOpen:function(){var t=this;this.getTrashList(),Object(o.z)().then(function(e){var n=e.errorCode,o=e.message,a=e.result;if(0!=n)return t.$message.error(o);t.delTime=a,a&&(t.interval=setInterval(function(e){t.delTime-=1e3},1e3))})},dialogClosed:function(){this.interval&&clearInterval(this.interval),this.getProgress()},getDelTime:function(){var t=parseInt(this.delTime%6e4/1e3),e=parseInt(this.delTime%36e5/6e4);return"倒计时: "+parseInt(this.delTime%864e5/36e5)+"h:"+e+"min:"+t+"s"},doClean:function(){var t=this;if(this.delTime>0)return this.$message.error("当前有正在删除的标签/标签值,删除完成后才能再次操作删除任务");Object(o.g)().then(function(e){var n=e.errorCode,o=e.message;if(0!=n)return t.$message.error(o);t.$message.success("已开始执行"),t.dialogVisible=!1,t.getProgress(),t.$emit("beginClean")})},delCheckTag:function(t,e){var n=this,a=null==t?1:0;Object(o.i)({tagItemId:a?e:t,type:a}).then(function(t){var e=t.errorCode,o=t.message;if(0!=e)return n.$message.error(o);n.getTrashList(),n.$message.success("移除成功")})}}},r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"trash"}},[n("el-popover",{attrs:{placement:"top-start",trigger:"hover",content:"一键清除废弃标签值"}},[n("div",{staticClass:"trash",attrs:{slot:"reference"},on:{click:function(e){t.dialogVisible=!0}},slot:"reference"},[0!=t.$store.state.delTrashNum?n("el-badge",{staticClass:"badge",attrs:{value:t.$store.state.delTrashNum>99?"99+":t.$store.state.delTrashNum}},[n("i",{staticClass:"iconfont icon-delete trashIcon"})]):n("i",{staticClass:"iconfont icon-delete trashIcon"})],1)]),t._v(" "),n("el-dialog",{attrs:{title:"删除标签",visible:t.dialogVisible,width:"600px"},on:{"update:visible":function(e){t.dialogVisible=e},open:t.dialogOpen,closed:t.dialogClosed}},[n("el-alert",{staticStyle:{width:"535px","margin-bottom":"20px"},attrs:{title:"标签删除时,同步将标签从会员信息上删除。",type:"warning","show-icon":"",closable:!1}}),t._v(" "),n("header",[t._v("已选择待删除的标签/标签值")]),t._v(" "),n("ul",{staticClass:"tagBox"},t._l(t.trashList,function(e){return n("li",{key:e.tagItemId,staticClass:"tagItem"},[t._v("\n "+t._s(null==e.tagItemId?e.tagName:e.tagItemName)+"\n "),n("i",{staticClass:"iconfont icon-guanbi1 delIcon",on:{click:function(n){return t.delCheckTag(e.tagItemId,e.tagId)}}})])}),0),t._v(" "),n("span",{attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取消")]),t._v(" "),n("el-button",{attrs:{type:"primary",disabled:!t.trashList.length},on:{click:t.doClean}},[t._v(t._s(t.delTime>0?t.getDelTime():"删除"))])],1)],1)],1)},staticRenderFns:[]};var i=n("VU/8")(a,r,!1,function(t){n("unJh")},"data-v-9652feba",null);e.a=i.exports},J16i:function(t,e){},OK0t:function(t,e){},TQvf:function(t,e,n){
/*!
* clipboard.js v2.0.8
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/
var o;o=function(){return function(){var t={134:function(t,e,n){"use strict";n.d(e,{default:function(){return b}});var o=n(279),a=n.n(o),r=n(370),i=n.n(r),l=n(817),s=n.n(l);function c(t){"@babel/helpers - typeof";return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var d=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.resolveOptions(e),this.initSelection()}var e,n,o;return e=t,(n=[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var t="rtl"===document.documentElement.getAttribute("dir");this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var e=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(e,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var t=this,e=this.createFakeElement();this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(e),this.selectedText=s()(e),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=s()(this.target),this.copyText()}},{key:"copyText",value:function(){var t;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==c(t)||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}])&&u(e.prototype,n),o&&u(e,o),t}();function h(t){"@babel/helpers - typeof";return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var n,o=m(t);if(e){var a=m(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return function(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,e){var n="data-clipboard-".concat(t);if(e.hasAttribute(n))return e.getAttribute(n)}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(l,a());var e,n,o,r=g(l);function l(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(n=r.call(this)).resolveOptions(e),n.listenClick(t),n}return e=l,o=[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}],(n=[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===h(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=i()(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new d({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return v("action",t)}},{key:"defaultTarget",value:function(t){var e=v("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return v("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}])&&f(e.prototype,n),o&&f(e,o),l}()},828:function(t){var e=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,n){for(;t&&t.nodeType!==e;){if("function"==typeof t.matches&&t.matches(n))return t;t=t.parentNode}}},438:function(t,e,n){var o=n(828);function a(t,e,n,a,r){var i=function(t,e,n,a){return function(n){n.delegateTarget=o(n.target,e),n.delegateTarget&&a.call(t,n)}}.apply(this,arguments);return t.addEventListener(n,i,r),{destroy:function(){t.removeEventListener(n,i,r)}}}t.exports=function(t,e,n,o,r){return"function"==typeof t.addEventListener?a.apply(null,arguments):"function"==typeof n?a.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return a(t,e,n,o,r)}))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var o=n(879),a=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!o.string(e))throw new TypeError("Second argument must be a String");if(!o.fn(n))throw new TypeError("Third argument must be a Function");if(o.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(o.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}(t,e,n);if(o.string(t))return function(t,e,n){return a(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),a=document.createRange();a.selectNodeContents(t),o.removeAllRanges(),o.addRange(a),e=o.toString()}return e}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function a(){o.off(t,a),e.apply(n,arguments)}return a._=e,this.on(t,a,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,a=n.length;o<a;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],a=[];if(o&&e)for(var r=0,i=o.length;r<i;r++)o[r].fn!==e&&o[r].fn._!==e&&a.push(o[r]);return a.length?n[t]=a:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};function n(o){if(e[o])return e[o].exports;var a=e[o]={exports:{}};return t[o](a,a.exports,n),a.exports}return n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n(134)}().default},t.exports=o()},ipi5:function(t,e){},umZJ:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("Dd8w"),a=n.n(o),r=n("//Fk"),i=n.n(r),l=(n("J16i"),n("lRwf")),s=n.n(l),c=n("TQvf"),u=n.n(c);function d(t,e){var n=new u.a(e.target,{text:function(){return t}});n.on("success",function(){n.off("error"),n.off("success"),n.destroy()}),n.on("error",function(){s.a.prototype.$message({message:"Copy failed",type:"error"}),n.off("error"),n.off("success"),n.destroy()}),n.onClick(e)}var h=n("P9l9"),f=n("Ch4/"),p={name:"navpath",data:function(){return{projectName:"member"}},props:{navpath:{type:Array,default:function(){return[]}},navtip:{type:Boolean,default:!1}},methods:{changeRoute:function(t,e){e?window.location.href=t:this.$router.push(t)},getNavPath:function(){var t=this,e={project:t.projectName,path:t.$route.path.split("/")[1]};Object(h.d)("/api-auth/get-current-memu-data",e).then(function(e){var n=e.data;if(0==n.errorCode){if(!n.result)return;return t.navpath=[],void(n.result.list&&n.result.list.length&&n.result.list.forEach(function(e,o){e.name=e.menuName,e.path="",o==n.result.list.length-1&&(e.path="/"+e.menuUrl),o>0&&t.navpath.push(e)}))}f.a.errorMsg(n)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){}},g={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"navwrap boxbttom"},[n("el-breadcrumb",{attrs:{separator:"/"}},[t._l(t.navpath,function(e,o){return[e.path?[n("el-breadcrumb-item",{key:e.name+o,attrs:{to:{path:e.path}},on:{click:function(n){return t.changeRoute(e.path,e.relocation)}}},[n("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(n){return t.changeRoute(e.path,e.relocation)}}},[t._v(t._s(e.name))])])]:[n("el-breadcrumb-item",{key:e.name+o},[t._v(t._s(e.name))])]]})],2),t._v(" "),n("h1",{staticClass:"navtitle"},[t._v(t._s(t.navpath[t.navpath.length-1].name))]),t._v(" "),1==t.navtip?n("div",{staticClass:"navtip navmTop"},[n("i",{staticClass:"el-icon-info navtipcolor"}),t._v("变更导航个数,移动顺序,更换页面链接均需提交小程序审核后重新发布生效,其他变更立即生效。小程序审核请联系品牌项目经理。\n ")]):t._e()],1)},staticRenderFns:[]};var m=n("VU/8")(p,g,!1,function(t){n("124l")},"data-v-ba7972ac",null).exports,v=n("3E4D"),b=n("8E/F"),y=n("vRdD"),w=n("r9pr");
/**!
* Sortable 1.15.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/
function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function I(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach(function(e){D(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _(t){"@babel/helpers - typeof";return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function D(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function x(){return(x=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function E(t,e){if(null==t)return{};var n,o,a=function(t,e){if(null==t)return{};var n,o,a={},r=Object.keys(t);for(o=0;o<r.length;o++)n=r[o],e.indexOf(n)>=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(o=0;o<r.length;o++)n=r[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function C(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var S=C(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),k=C(/Edge/i),P=C(/firefox/i),O=C(/safari/i)&&!C(/chrome/i)&&!C(/android/i),N=C(/iP(ad|od|hone)/i),M=C(/chrome/i)&&C(/android/i),A={capture:!1,passive:!1};function j(t,e,n){t.addEventListener(e,n,!S&&A)}function R(t,e,n){t.removeEventListener(e,n,!S&&A)}function F(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function L(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function $(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&F(t,e):F(t,e))||o&&t===n)return t;if(t===n)break}while(t=L(t))}return null}var V,B=/\s+/g;function X(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(B," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(B," ")}}function H(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in o||-1!==e.indexOf("webkit")||(e="-webkit-"+e),o[e]=n+("string"==typeof n?"":"px")}}function Y(t,e){var n="";if("string"==typeof t)n=t;else do{var o=H(t,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function U(t,e,n){if(t){var o=t.getElementsByTagName(e),a=0,r=o.length;if(n)for(;a<r;a++)n(o[a],a);return o}return[]}function z(){var t=document.scrollingElement;return t||document.documentElement}function q(t,e,n,o,a){if(t.getBoundingClientRect||t===window){var r,i,l,s,c,u,d;if(t!==window&&t.parentNode&&t!==z()?(i=(r=t.getBoundingClientRect()).top,l=r.left,s=r.bottom,c=r.right,u=r.height,d=r.width):(i=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(a=a||t.parentNode,!S))do{if(a&&a.getBoundingClientRect&&("none"!==H(a,"transform")||n&&"static"!==H(a,"position"))){var h=a.getBoundingClientRect();i-=h.top+parseInt(H(a,"border-top-width")),l-=h.left+parseInt(H(a,"border-left-width")),s=i+r.height,c=l+r.width;break}}while(a=a.parentNode);if(o&&t!==window){var f=Y(a||t),p=f&&f.a,g=f&&f.d;f&&(s=(i/=g)+(u/=g),c=(l/=p)+(d/=p))}return{top:i,left:l,bottom:s,right:c,width:d,height:u}}}function W(t,e,n){for(var o=Z(t,!0),a=q(t)[e];o;){var r=q(o)[n];if(!("top"===n||"left"===n?a>=r:a<=r))return o;if(o===z())break;o=Z(o,!1)}return!1}function G(t,e,n,o){for(var a=0,r=0,i=t.children;r<i.length;){if("none"!==i[r].style.display&&i[r]!==oe.ghost&&(o||i[r]!==oe.dragged)&&$(i[r],n.draggable,t,!1)){if(a===e)return i[r];a++}r++}return null}function J(t,e){for(var n=t.lastElementChild;n&&(n===oe.ghost||"none"===H(n,"display")||e&&!F(n,e));)n=n.previousElementSibling;return n||null}function K(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===oe.clone||e&&!F(t,e)||n++;return n}function Q(t){var e=0,n=0,o=z();if(t)do{var a=Y(t),r=a.a,i=a.d;e+=t.scrollLeft*r,n+=t.scrollTop*i}while(t!==o&&(t=t.parentNode));return[e,n]}function Z(t,e){if(!t||!t.getBoundingClientRect)return z();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var a=H(n);if(n.clientWidth<n.scrollWidth&&("auto"==a.overflowX||"scroll"==a.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==a.overflowY||"scroll"==a.overflowY)){if(!n.getBoundingClientRect||n===document.body)return z();if(o||e)return n;o=!0}}}while(n=n.parentNode);return z()}function tt(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function et(t,e){return function(){if(!V){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),V=setTimeout(function(){V=void 0},e)}}}function nt(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function ot(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var at="Sortable"+(new Date).getTime();function rt(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach(function(t){if("none"!==H(t,"display")&&t!==oe.ghost){e.push({target:t,rect:q(t)});var n=I({},e[e.length-1].rect);if(t.thisAnimationDuration){var o=Y(t,!0);o&&(n.top-=o.f,n.left-=o.e)}t.fromRect=n}})},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var a=!1,r=0;e.forEach(function(t){var e=0,n=t.target,i=n.fromRect,l=q(n),s=n.prevFromRect,c=n.prevToRect,u=t.rect,d=Y(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&tt(s,l)&&!tt(i,l)&&(u.top-l.top)/(u.left-l.left)==(i.top-l.top)/(i.left-l.left)&&(e=function(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}(u,s,c,o.options)),tt(l,i)||(n.prevFromRect=i,n.prevToRect=l,e||(e=o.options.animation),o.animate(n,u,l,e)),e&&(a=!0,r=Math.max(r,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},e),n.thisAnimationDuration=e)}),clearTimeout(t),a?t=setTimeout(function(){"function"==typeof n&&n()},r):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,o){if(o){H(t,"transition",""),H(t,"transform","");var a=Y(this.el),r=a&&a.a,i=a&&a.d,l=(e.left-n.left)/(r||1),s=(e.top-n.top)/(i||1);t.animatingX=!!l,t.animatingY=!!s,H(t,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),H(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),H(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout(function(){H(t,"transition",""),H(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},o)}}}}var it=[],lt={initializeByDefault:!0},st={mount:function(t){for(var e in lt)!lt.hasOwnProperty(e)||e in t||(t[e]=lt[e]);it.forEach(function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),it.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var a=t+"Global";it.forEach(function(o){e[o.pluginName]&&(e[o.pluginName][a]&&e[o.pluginName][a](I({sortable:e},n)),e.options[o.pluginName]&&e[o.pluginName][t]&&e[o.pluginName][t](I({sortable:e},n)))})},initializePlugins:function(t,e,n,o){for(var a in it.forEach(function(o){var a=o.pluginName;if(t.options[a]||o.initializeByDefault){var r=new o(t,e,t.options);r.sortable=t,r.options=t.options,t[a]=r,x(n,r.defaults)}}),t.options)if(t.options.hasOwnProperty(a)){var r=this.modifyOption(t,a,t.options[a]);void 0!==r&&(t.options[a]=r)}},getEventProperties:function(t,e){var n={};return it.forEach(function(o){"function"==typeof o.eventProperties&&x(n,o.eventProperties.call(e[o.pluginName],t))}),n},modifyOption:function(t,e,n){var o;return it.forEach(function(a){t[a.pluginName]&&a.optionListeners&&"function"==typeof a.optionListeners[e]&&(o=a.optionListeners[e].call(t[a.pluginName],n))}),o}};function ct(t){var e=t.sortable,n=t.rootEl,o=t.name,a=t.targetEl,r=t.cloneEl,i=t.toEl,l=t.fromEl,s=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,d=t.newDraggableIndex,h=t.originalEvent,f=t.putSortable,p=t.extraEventProperties;if(e=e||n&&n[at]){var g,m=e.options,v="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||S||k?(g=document.createEvent("Event")).initEvent(o,!0,!0):g=new CustomEvent(o,{bubbles:!0,cancelable:!0}),g.to=i||n,g.from=l||n,g.item=a||n,g.clone=r,g.oldIndex=s,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=d,g.originalEvent=h,g.pullMode=f?f.lastPutMode:void 0;var b=I(I({},p),st.getEventProperties(o,e));for(var y in b)g[y]=b[y];n&&n.dispatchEvent(g),m[v]&&m[v].call(e,g)}}var ut=["evt"],dt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,a=E(n,ut);st.pluginEvent.bind(oe)(t,e,I({dragEl:ft,parentEl:pt,ghostEl:gt,rootEl:mt,nextEl:vt,lastDownEl:bt,cloneEl:yt,cloneHidden:wt,dragStarted:Mt,putSortable:Et,activeSortable:oe.active,originalEvent:o,oldIndex:Tt,oldDraggableIndex:_t,newIndex:It,newDraggableIndex:Dt,hideGhostForTarget:Zt,unhideGhostForTarget:te,cloneNowHidden:function(){wt=!0},cloneNowShown:function(){wt=!1},dispatchSortableEvent:function(t){ht({sortable:e,name:t,originalEvent:o})}},a))};function ht(t){ct(I({putSortable:Et,cloneEl:yt,targetEl:ft,rootEl:mt,oldIndex:Tt,oldDraggableIndex:_t,newIndex:It,newDraggableIndex:Dt},t))}var ft,pt,gt,mt,vt,bt,yt,wt,Tt,It,_t,Dt,xt,Et,Ct,St,kt,Pt,Ot,Nt,Mt,At,jt,Rt,Ft,Lt=!1,$t=!1,Vt=[],Bt=!1,Xt=!1,Ht=[],Yt=!1,Ut=[],zt="undefined"!=typeof document,qt=N,Wt=k||S?"cssFloat":"float",Gt=zt&&!M&&!N&&"draggable"in document.createElement("div"),Jt=function(){if(zt){if(S)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Kt=function(t,e){var n=H(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=G(t,0,e),r=G(t,1,e),i=a&&H(a),l=r&&H(r),s=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+q(a).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+q(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&i.float&&"none"!==i.float){var u="left"===i.float?"left":"right";return!r||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return a&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||s>=o&&"none"===n[Wt]||r&&"none"===n[Wt]&&s+c>o)?"vertical":"horizontal"},Qt=function(t){function e(t,n){return function(o,a,r,i){var l=o.options.group.name&&a.options.group.name&&o.options.group.name===a.options.group.name;if(null==t&&(n||l))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(o,a,r,i),n)(o,a,r,i);var s=(n?o:a).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},o=t.group;o&&"object"==_(o)||(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},Zt=function(){!Jt&&gt&&H(gt,"display","none")},te=function(){!Jt&&gt&&H(gt,"display","")};zt&&!M&&document.addEventListener("click",function(t){if($t)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),$t=!1,!1},!0);var ee=function(t){if(ft){t=t.touches?t.touches[0]:t;var e=(a=t.clientX,r=t.clientY,Vt.some(function(t){var e=t[at].options.emptyInsertThreshold;if(e&&!J(t)){var n=q(t),o=a>=n.left-e&&a<=n.right+e,l=r>=n.top-e&&r<=n.bottom+e;return o&&l?i=t:void 0}}),i);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[at]._onDragOver(n)}}var a,r,i},ne=function(t){ft&&ft.parentNode[at]._isOutsideThisEl(t.target)};function oe(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=x({},e),t[at]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Kt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==oe.supportPointer&&"PointerEvent"in window&&!O,emptyInsertThreshold:5};for(var o in st.initializePlugins(this,t,n),n)!(o in e)&&(e[o]=n[o]);for(var a in Qt(e),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!e.forceFallback&&Gt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?j(t,"pointerdown",this._onTapStart):(j(t,"mousedown",this._onTapStart),j(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(j(t,"dragover",this),j(t,"dragenter",this)),Vt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),x(this,rt())}function ae(t,e,n,o,a,r,i,l){var s,c,u=t[at],d=u.options.onMove;return!window.CustomEvent||S||k?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=n,s.draggedRect=o,s.related=a||e,s.relatedRect=r||q(e),s.willInsertAfter=l,s.originalEvent=i,t.dispatchEvent(s),d&&(c=d.call(u,s,i)),c}function re(t){t.draggable=!1}function ie(){Yt=!1}function le(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;n--;)o+=e.charCodeAt(n);return o.toString(36)}function se(t){return setTimeout(t,0)}function ce(t){return clearTimeout(t)}oe.prototype={constructor:oe,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(At=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,ft):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,a=o.preventOnFilter,r=t.type,i=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(i||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(function(t){Ut.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var o=e[n];o.checked&&Ut.push(o)}}(n),!ft&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||o.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!O||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=$(l,o.draggable,n,!1))&&l.animated||bt===l)){if(Tt=K(l),_t=K(l,o.draggable),"function"==typeof c){if(c.call(this,t,l,this))return ht({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),dt("filter",e,{evt:t}),void(a&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some(function(o){if(o=$(s,o.trim(),n,!1))return ht({sortable:e,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),dt("filter",e,{evt:t}),!0})))return void(a&&t.cancelable&&t.preventDefault());o.handle&&!$(s,o.handle,n,!1)||this._prepareDragStart(t,i,l)}}},_prepareDragStart:function(t,e,n){var o,a=this,r=a.el,i=a.options,l=r.ownerDocument;if(n&&!ft&&n.parentNode===r){var s=q(n);if(mt=r,pt=(ft=n).parentNode,vt=ft.nextSibling,bt=n,xt=i.group,oe.dragged=ft,Ct={target:ft,clientX:(e||t).clientX,clientY:(e||t).clientY},Ot=Ct.clientX-s.left,Nt=Ct.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,ft.style["will-change"]="all",o=function(){dt("delayEnded",a,{evt:t}),oe.eventCanceled?a._onDrop():(a._disableDelayedDragEvents(),!P&&a.nativeDraggable&&(ft.draggable=!0),a._triggerDragStart(t,e),ht({sortable:a,name:"choose",originalEvent:t}),X(ft,i.chosenClass,!0))},i.ignore.split(",").forEach(function(t){U(ft,t.trim(),re)}),j(l,"dragover",ee),j(l,"mousemove",ee),j(l,"touchmove",ee),j(l,"mouseup",a._onDrop),j(l,"touchend",a._onDrop),j(l,"touchcancel",a._onDrop),P&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ft.draggable=!0),dt("delayStart",this,{evt:t}),!i.delay||i.delayOnTouchOnly&&!e||this.nativeDraggable&&(k||S))o();else{if(oe.eventCanceled)return void this._onDrop();j(l,"mouseup",a._disableDelayedDrag),j(l,"touchend",a._disableDelayedDrag),j(l,"touchcancel",a._disableDelayedDrag),j(l,"mousemove",a._delayedDragTouchMoveHandler),j(l,"touchmove",a._delayedDragTouchMoveHandler),i.supportPointer&&j(l,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(o,i.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ft&&re(ft),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;R(t,"mouseup",this._disableDelayedDrag),R(t,"touchend",this._disableDelayedDrag),R(t,"touchcancel",this._disableDelayedDrag),R(t,"mousemove",this._delayedDragTouchMoveHandler),R(t,"touchmove",this._delayedDragTouchMoveHandler),R(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?j(document,"pointermove",this._onTouchMove):j(document,e?"touchmove":"mousemove",this._onTouchMove):(j(ft,"dragend",this),j(mt,"dragstart",this._onDragStart));try{document.selection?se(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(Lt=!1,mt&&ft){dt("dragStarted",this,{evt:e}),this.nativeDraggable&&j(document,"dragover",ne);var n=this.options;!t&&X(ft,n.dragClass,!1),X(ft,n.ghostClass,!0),oe.active=this,t&&this._appendGhost(),ht({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(St){this._lastX=St.clientX,this._lastY=St.clientY,Zt();for(var t=document.elementFromPoint(St.clientX,St.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(St.clientX,St.clientY))!==e;)e=t;if(ft.parentNode[at]._isOutsideThisEl(t),e)do{if(e[at]){if(e[at]._onDragOver({clientX:St.clientX,clientY:St.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);te()}},_onTouchMove:function(t){if(Ct){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,a=t.touches?t.touches[0]:t,r=gt&&Y(gt,!0),i=gt&&r&&r.a,l=gt&&r&&r.d,s=qt&&Ft&&Q(Ft),c=(a.clientX-Ct.clientX+o.x)/(i||1)+(s?s[0]-Ht[0]:0)/(i||1),u=(a.clientY-Ct.clientY+o.y)/(l||1)+(s?s[1]-Ht[1]:0)/(l||1);if(!oe.active&&!Lt){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(gt){r?(r.e+=c-(kt||0),r.f+=u-(Pt||0)):r={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");H(gt,"webkitTransform",d),H(gt,"mozTransform",d),H(gt,"msTransform",d),H(gt,"transform",d),kt=c,Pt=u,St=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!gt){var t=this.options.fallbackOnBody?document.body:mt,e=q(ft,!0,qt,!0,t),n=this.options;if(qt){for(Ft=t;"static"===H(Ft,"position")&&"none"===H(Ft,"transform")&&Ft!==document;)Ft=Ft.parentNode;Ft!==document.body&&Ft!==document.documentElement?(Ft===document&&(Ft=z()),e.top+=Ft.scrollTop,e.left+=Ft.scrollLeft):Ft=z(),Ht=Q(Ft)}X(gt=ft.cloneNode(!0),n.ghostClass,!1),X(gt,n.fallbackClass,!0),X(gt,n.dragClass,!0),H(gt,"transition",""),H(gt,"transform",""),H(gt,"box-sizing","border-box"),H(gt,"margin",0),H(gt,"top",e.top),H(gt,"left",e.left),H(gt,"width",e.width),H(gt,"height",e.height),H(gt,"opacity","0.8"),H(gt,"position",qt?"absolute":"fixed"),H(gt,"zIndex","100000"),H(gt,"pointerEvents","none"),oe.ghost=gt,t.appendChild(gt),H(gt,"transform-origin",Ot/parseInt(gt.style.width)*100+"% "+Nt/parseInt(gt.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,a=n.options;dt("dragStart",this,{evt:t}),oe.eventCanceled?this._onDrop():(dt("setupClone",this),oe.eventCanceled||((yt=ot(ft)).removeAttribute("id"),yt.draggable=!1,yt.style["will-change"]="",this._hideClone(),X(yt,this.options.chosenClass,!1),oe.clone=yt),n.cloneId=se(function(){dt("clone",n),oe.eventCanceled||(n.options.removeCloneOnHide||mt.insertBefore(yt,ft),n._hideClone(),ht({sortable:n,name:"clone"}))}),!e&&X(ft,a.dragClass,!0),e?($t=!0,n._loopId=setInterval(n._emulateDragOver,50)):(R(document,"mouseup",n._onDrop),R(document,"touchend",n._onDrop),R(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",a.setData&&a.setData.call(n,o,ft)),j(document,"drop",n),H(ft,"transform","translateZ(0)")),Lt=!0,n._dragStartId=se(n._dragStarted.bind(n,e,t)),j(document,"selectstart",n),Mt=!0,O&&H(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,o,a,r=this.el,i=t.target,l=this.options,s=l.group,c=oe.active,u=xt===s,d=l.sort,h=Et||c,f=this,p=!1;if(!Yt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),i=$(i,l.draggable,r,!0),P("dragOver"),oe.eventCanceled)return p;if(ft.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||f._ignoreWhileAnimating===i)return N(!1);if($t=!1,c&&!l.disabled&&(u?d||(o=pt!==mt):Et===this||(this.lastPutMode=xt.checkPull(this,c,ft,t))&&s.checkPut(this,c,ft,t))){if(a="vertical"===this._getDirection(t,i),e=q(ft),P("dragOverValid"),oe.eventCanceled)return p;if(o)return pt=mt,O(),this._hideClone(),P("revert"),oe.eventCanceled||(vt?mt.insertBefore(ft,vt):mt.appendChild(ft)),N(!0);var g=J(r,l.draggable);if(!g||function(t,e,n){var o=q(J(n.el,n.options.draggable));return e?t.clientX>o.right+10||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+10}(t,a,this)&&!g.animated){if(g===ft)return N(!1);if(g&&r===t.target&&(i=g),i&&(n=q(i)),!1!==ae(mt,r,ft,e,i,n,t,!!i))return O(),g&&g.nextSibling?r.insertBefore(ft,g.nextSibling):r.appendChild(ft),pt=r,M(),N(!0)}else if(g&&function(t,e,n){var o=q(G(n.el,0,n.options,!0));return e?t.clientX<o.left-10||t.clientY<o.top&&t.clientX<o.right:t.clientY<o.top-10||t.clientY<o.bottom&&t.clientX<o.left}(t,a,this)){var m=G(r,0,l,!0);if(m===ft)return N(!1);if(n=q(i=m),!1!==ae(mt,r,ft,e,i,n,t,!1))return O(),r.insertBefore(ft,m),pt=r,M(),N(!0)}else if(i.parentNode===r){n=q(i);var v,b,y,w=ft.parentNode!==r,T=!function(t,e,n){var o=n?t.left:t.top,a=n?t.right:t.bottom,r=n?t.width:t.height,i=n?e.left:e.top,l=n?e.right:e.bottom,s=n?e.width:e.height;return o===i||a===l||o+r/2===i+s/2}(ft.animated&&ft.toRect||e,i.animated&&i.toRect||n,a),_=a?"top":"left",D=W(i,"top","top")||W(ft,"top","top"),x=D?D.scrollTop:void 0;if(At!==i&&(b=n[_],Bt=!1,Xt=!T&&l.invertSwap||w),0!==(v=function(t,e,n,o,a,r,i,l){var s=o?t.clientY:t.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,h=!1;if(!i)if(l&&Rt<c*a){if(!Bt&&(1===jt?s>u+c*r/2:s<d-c*r/2)&&(Bt=!0),Bt)h=!0;else if(1===jt?s<u+Rt:s>d-Rt)return-jt}else if(s>u+c*(1-a)/2&&s<d-c*(1-a)/2)return function(t){return K(ft)<K(t)?1:-1}(e);if((h=h||i)&&(s<u+c*r/2||s>d-c*r/2))return s>u+c/2?1:-1;return 0}(t,i,n,a,T?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Xt,At===i))){var E=K(ft);do{E-=v,y=pt.children[E]}while(y&&("none"===H(y,"display")||y===gt))}if(0===v||y===i)return N(!1);At=i,jt=v;var C=i.nextElementSibling,S=!1,k=ae(mt,r,ft,e,i,n,t,S=1===v);if(!1!==k)return 1!==k&&-1!==k||(S=1===k),Yt=!0,setTimeout(ie,30),O(),S&&!C?r.appendChild(ft):i.parentNode.insertBefore(ft,S?C:i),D&&nt(D,0,x-D.scrollTop),pt=ft.parentNode,void 0===b||Xt||(Rt=Math.abs(b-q(i)[_])),M(),N(!0)}if(r.contains(ft))return N(!1)}return!1}function P(l,s){dt(l,f,I({evt:t,isOwner:u,axis:a?"vertical":"horizontal",revert:o,dragRect:e,targetRect:n,canSort:d,fromSortable:h,target:i,completed:N,onMove:function(n,o){return ae(mt,r,ft,e,n,q(n),t,o)},changed:M},s))}function O(){P("dragOverAnimationCapture"),f.captureAnimationState(),f!==h&&h.captureAnimationState()}function N(e){return P("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(f),f!==h&&(X(ft,Et?Et.options.ghostClass:c.options.ghostClass,!1),X(ft,l.ghostClass,!0)),Et!==f&&f!==oe.active?Et=f:f===oe.active&&Et&&(Et=null),h===f&&(f._ignoreWhileAnimating=i),f.animateAll(function(){P("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(i===ft&&!ft.animated||i===r&&!i.animated)&&(At=null),l.dragoverBubble||t.rootEl||i===document||(ft.parentNode[at]._isOutsideThisEl(t.target),!e&&ee(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),p=!0}function M(){It=K(ft),Dt=K(ft,l.draggable),ht({sortable:f,name:"change",toEl:r,newIndex:It,newDraggableIndex:Dt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){R(document,"mousemove",this._onTouchMove),R(document,"touchmove",this._onTouchMove),R(document,"pointermove",this._onTouchMove),R(document,"dragover",ee),R(document,"mousemove",ee),R(document,"touchmove",ee)},_offUpEvents:function(){var t=this.el.ownerDocument;R(t,"mouseup",this._onDrop),R(t,"touchend",this._onDrop),R(t,"pointerup",this._onDrop),R(t,"touchcancel",this._onDrop),R(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;It=K(ft),Dt=K(ft,n.draggable),dt("drop",this,{evt:t}),pt=ft&&ft.parentNode,It=K(ft),Dt=K(ft,n.draggable),oe.eventCanceled?this._nulling():(Lt=!1,Xt=!1,Bt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ce(this.cloneId),ce(this._dragStartId),this.nativeDraggable&&(R(document,"drop",this),R(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),O&&H(document.body,"user-select",""),H(ft,"transform",""),t&&(Mt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),gt&&gt.parentNode&&gt.parentNode.removeChild(gt),(mt===pt||Et&&"clone"!==Et.lastPutMode)&&yt&&yt.parentNode&&yt.parentNode.removeChild(yt),ft&&(this.nativeDraggable&&R(ft,"dragend",this),re(ft),ft.style["will-change"]="",Mt&&!Lt&&X(ft,Et?Et.options.ghostClass:this.options.ghostClass,!1),X(ft,this.options.chosenClass,!1),ht({sortable:this,name:"unchoose",toEl:pt,newIndex:null,newDraggableIndex:null,originalEvent:t}),mt!==pt?(It>=0&&(ht({rootEl:pt,name:"add",toEl:pt,fromEl:mt,originalEvent:t}),ht({sortable:this,name:"remove",toEl:pt,originalEvent:t}),ht({rootEl:pt,name:"sort",toEl:pt,fromEl:mt,originalEvent:t}),ht({sortable:this,name:"sort",toEl:pt,originalEvent:t})),Et&&Et.save()):It!==Tt&&It>=0&&(ht({sortable:this,name:"update",toEl:pt,originalEvent:t}),ht({sortable:this,name:"sort",toEl:pt,originalEvent:t})),oe.active&&(null!=It&&-1!==It||(It=Tt,Dt=_t),ht({sortable:this,name:"end",toEl:pt,originalEvent:t}),this.save()))),this._nulling())},_nulling:function(){dt("nulling",this),mt=ft=pt=gt=vt=yt=bt=wt=Ct=St=Mt=It=Dt=Tt=_t=At=jt=Et=xt=oe.dragged=oe.ghost=oe.clone=oe.active=null,Ut.forEach(function(t){t.checked=!0}),Ut.length=kt=Pt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ft&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,a=n.length,r=this.options;o<a;o++)$(t=n[o],r.draggable,this.el,!1)&&e.push(t.getAttribute(r.dataIdAttr)||le(t));return e},sort:function(t,e){var n={},o=this.el;this.toArray().forEach(function(t,e){var a=o.children[e];$(a,this.options.draggable,o,!1)&&(n[t]=a)},this),e&&this.captureAnimationState(),t.forEach(function(t){n[t]&&(o.removeChild(n[t]),o.appendChild(n[t]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return $(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=st.modifyOption(this,t,e);n[t]=void 0!==o?o:e,"group"===t&&Qt(n)},destroy:function(){dt("destroy",this);var t=this.el;t[at]=null,R(t,"mousedown",this._onTapStart),R(t,"touchstart",this._onTapStart),R(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(R(t,"dragover",this),R(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Vt.splice(Vt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!wt){if(dt("hideClone",this),oe.eventCanceled)return;H(yt,"display","none"),this.options.removeCloneOnHide&&yt.parentNode&&yt.parentNode.removeChild(yt),wt=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(wt){if(dt("showClone",this),oe.eventCanceled)return;ft.parentNode!=mt||this.options.group.revertClone?vt?mt.insertBefore(yt,vt):mt.appendChild(yt):mt.insertBefore(yt,ft),this.options.group.revertClone&&this.animate(ft,yt),H(yt,"display",""),wt=!1}}else this._hideClone()}},zt&&j(document,"touchmove",function(t){(oe.active||Lt)&&t.cancelable&&t.preventDefault()}),oe.utils={on:j,off:R,css:H,find:U,is:function(t,e){return!!$(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:et,closest:$,toggleClass:X,clone:ot,index:K,nextTick:se,cancelNextTick:ce,detectDirection:Kt,getChild:G},oe.get=function(t){return t[at]},oe.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(oe.utils=I(I({},oe.utils),t.utils)),st.mount(t)})},oe.create=function(t,e){return new oe(t,e)},oe.version="1.15.0";var ue,de,he,fe,pe,ge,me=[],ve=!1;function be(){me.forEach(function(t){clearInterval(t.pid)}),me=[]}function ye(){clearInterval(ge)}var we=et(function(t,e,n,o){if(e.scroll){var a,r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,c=z(),u=!1;de!==n&&(de=n,be(),ue=e.scroll,a=e.scrollFn,!0===ue&&(ue=Z(n,!0)));var d=0,h=ue;do{var f=h,p=q(f),g=p.top,m=p.bottom,v=p.left,b=p.right,y=p.width,w=p.height,T=void 0,I=void 0,_=f.scrollWidth,D=f.scrollHeight,x=H(f),E=f.scrollLeft,C=f.scrollTop;f===c?(T=y<_&&("auto"===x.overflowX||"scroll"===x.overflowX||"visible"===x.overflowX),I=w<D&&("auto"===x.overflowY||"scroll"===x.overflowY||"visible"===x.overflowY)):(T=y<_&&("auto"===x.overflowX||"scroll"===x.overflowX),I=w<D&&("auto"===x.overflowY||"scroll"===x.overflowY));var S=T&&(Math.abs(b-r)<=l&&E+y<_)-(Math.abs(v-r)<=l&&!!E),k=I&&(Math.abs(m-i)<=l&&C+w<D)-(Math.abs(g-i)<=l&&!!C);if(!me[d])for(var P=0;P<=d;P++)me[P]||(me[P]={});me[d].vx==S&&me[d].vy==k&&me[d].el===f||(me[d].el=f,me[d].vx=S,me[d].vy=k,clearInterval(me[d].pid),0==S&&0==k||(u=!0,me[d].pid=setInterval(function(){o&&0===this.layer&&oe.active._onTouchMove(pe);var e=me[this.layer].vy?me[this.layer].vy*s:0,n=me[this.layer].vx?me[this.layer].vx*s:0;"function"==typeof a&&"continue"!==a.call(oe.dragged.parentNode[at],n,e,t,pe,me[this.layer].el)||nt(me[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&h!==c&&(h=Z(h,!1)));ve=u}},30),Te=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,a=t.activeSortable,r=t.dispatchSortableEvent,i=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var s=n||a;i();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(r("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function Ie(){}function _e(){}Ie.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=G(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:Te},x(Ie,{pluginName:"revertOnSpill"}),_e.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:Te},x(_e,{pluginName:"removeOnSpill"});oe.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?j(document,"dragover",this._handleAutoScroll):this.options.supportPointer?j(document,"pointermove",this._handleFallbackAutoScroll):e.touches?j(document,"touchmove",this._handleFallbackAutoScroll):j(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?R(document,"dragover",this._handleAutoScroll):(R(document,"pointermove",this._handleFallbackAutoScroll),R(document,"touchmove",this._handleFallbackAutoScroll),R(document,"mousemove",this._handleFallbackAutoScroll)),ye(),be(),clearTimeout(V),V=void 0},nulling:function(){pe=de=ue=ve=ge=he=fe=null,me.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,o=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(o,a);if(pe=t,e||this.options.forceAutoScrollFallback||k||S||O){we(t,this.options,r,e);var i=Z(r,!0);!ve||ge&&o===he&&a===fe||(ge&&ye(),ge=setInterval(function(){var r=Z(document.elementFromPoint(o,a),!0);r!==i&&(i=r,be()),we(t,n.options,r,e)},10),he=o,fe=a)}else{if(!this.options.bubbleScroll||Z(r,!0)===z())return void be();we(t,this.options,Z(r,!1),!1)}}},x(t,{pluginName:"scroll",initializeByDefault:!0})}),oe.mount(_e,Ie);var De=oe,xe={name:"manual-tag-value-edit",data:function(){return{tagId:"",tagInfo:{tagName:"",tagDescribe:"",tagLevelGroupId:"",tagLevelGroupName:""},importPop:{isShow:!1,tagItemIndex:"",tagItemId:"",optType:!1,title:"",excelName:"",excelData:[],excelHeader:[],downLoadUrl:"/gic-member-tag-web/memberTag/member-import-template-download?requestProject=gic-member-tag-web"},importBatchPop:{isShow:!1,tagItemIndex:"",tagItemId:"",optType:!1,title:"",excelName:"",excelData:[],excelHeader:[],downLoadUrl:"/gic-member-tag-web/memberTag/member-import-template-download?requestProject=gic-member-tag-web&type=2"},tagValTableData:[],refreshTag:[],uploadedTag:[],timer:null,animationPos:{x:1e3,y:500},isShowAdd:!0,exportMemberData:{show:!1,excelUrl:"/gic-member-tag-web/memberTag/memberTagExportExcel",params:{}},deleteTagDialog:{visible:!1,deleteData:{}},tableFiledVisible:!1,checkFields:["cardNo","gradeName","crateCardDateStringFormat","lastCostTimeFormat","costTimes","avgCost","birthdayMDFormat","pointsCurrent","costAll","mainStoreName","openStoreName"],loading:!1}},computed:{getCodeAuth:function(){return this.$getButtonLimit(this.$buttonCode.memberTagImportMember)},getCode:function(){return this.$buttonCode.memberTagImportMember}},methods:{addTagItem:function(t,e){var n=this,o={tagItemId:t,tagItemName:e,tagId:this.tagId};Object(h.a)("/memberTag/saveHandTagItem",o).then(function(t){if(0==t.data.errorCode)return v.a.showmsg("添加成功","success"),void n.getValueData();f.a.errorMsg(t.data)}).catch(function(t){n.$message.error({duration:1e3,message:t.message})})},delTagApi:function(t){var e=t,n=t.currentIndex,o=t.e,a=t.memberCount,r=t.tagItemId;0==a?this.directDelTag(r):this.intoTrash(e,n,o)},intoTrash:function(t,e,n){var o=this,a={itemId:t.tagItemId};this.refreshTag.push({tagItemIndex:e,tagItemId:t.tagItemId,type:0}),this.tagValTableData[e].showDelPopOver=!1,Object(h.a)("/delTagItem/add",a).then(function(e){var a=e.data,r=a.errorCode;a.result;if(0==r)return t.delStatus=0,o.$refs.Trash.getTrashList(),o.handleRefreshTag(),void o.startAnimation(n);f.a.errorMsg(e.data)}).catch(function(t){o.$message.error({duration:1e3,message:t.message})})},directDelTag:function(t){var e=this;console.log(t);var n={tagItemId:t};Object(h.a)("/member-tag-value/delTagItem",n).then(function(t){var n=t.data,o=n.errorCode;n.result;if(0==o)return e.$message.success("删除成功"),void e.getValueData();f.a.errorMsg(t.data)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},startAnimation:function(t){this.animationPos={x:document.body.offsetWidth-t.pageX,y:document.body.offsetHeight-t.pageY},document.querySelector("#aniIcon").style.display="block",setTimeout(function(t){document.querySelector("#aniIcon").style.display="none"},1800)},getValueData:function(){var t=this;this.loading=!0;var e={tagId:this.tagId};Object(h.a)("/memberTag/queryHandTagItem",e).then(function(e){var n=e.data,o=n.errorCode,a=n.result;if(0==o)return t.refreshTag=[],a.forEach(function(e,n){e.showDelPopOver=!1,e.percent=0,4!==e.status&&5!==e.status&&6!==e.status||t.refreshTag.push({tagItemIndex:n,tagItemId:e.tagItemId}),e.isCurrent=!1}),t.tagValTableData=a,a.some(function(t){return t.isWeimob})&&(t.isShowAdd=!1),void t.handleRefreshTag();f.a.errorMsg(e.data)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})}).finally(function(){return t.loading=!1})},toTagDetail:function(t){this.$router.push("/manualTagValueEditInfo?tagId="+t.tagId+"&tagItemId="+t.tagItemId)},showImportPop:function(t,e){this.importPop.isShow=!0,this.importPop.tagItemIndex=t,this.importPop.tagItemId=e.tagItemId,this.importPop.title=e.tagItemName+"-导入会员"},closeImportPop:function(){this.resetImportData()},resetImportData:function(){this.importPop.excelName="",this.importPop.excelData=[],this.importPop.excelHeader=[],this.importPop.optType=!1,this.importPop.isShow=!1},tagItemImport:function(t,e){var n=this;if(!this.flag){this.flag=!0,e.value="",this.refreshTag.push({tagItemIndex:this.importPop.tagItemIndex,tagItemId:this.importPop.tagItemId});var o=this.importPop,a=o.tagItemId,r=o.optType,i=new FormData;i.append("file",t),i.append("optType",r?1:0),i.append("tagItemId",a),i.append("requestProject","member-tag"),Object(h.b)("/memberTag/uploadTagItemExcel",i).then(function(t){0==t.data.errorCode?(n.closeImportPop(),n.$toTaskCenter(t.data.result),n.flag=!1):(n.flag=!1,f.a.errorMsg(t.data))})}},importMember:function(){this.importBatchPop.isShow=!0,this.importBatchPop.title="导入多标签值会员"},closeImportBatchPop:function(){this.importBatchPop.excelName="",this.importBatchPop.excelData=[],this.importBatchPop.excelHeader=[],this.importBatchPop.optType=!1,this.importBatchPop.isShow=!1},tagItemBatchImport:function(t,e){var n=this;if(!this.flag){this.flag=!0,e.value="";var o=this.importBatchPop.optType,a=new FormData;a.append("file",t),a.append("optType",o?1:0),a.append("tagId",this.tagId),a.append("requestProject","member-tag"),Object(h.b)("/memberTag/uploadTagExcel",a).then(function(t){0==t.data.errorCode?(n.closeImportBatchPop(),n.$toTaskCenter(t.data.result),n.flag=!1):(n.flag=!1,f.a.errorMsg(t.data))})}},handleRefreshTag:function(){var t=this;if(0!==this.refreshTag.length){var e=[];this.refreshTag.forEach(function(n){e.push(t.getImportReport(n.tagItemIndex,n.tagItemId))}),i.a.all(e).then(function(){clearTimeout(t.timer),t.timer=setTimeout(t.handleRefreshTag,1e3)})}},getImportReport:function(t,e){var n=this;return Object(h.a)("/memberTag/getImportReport",{tagItemId:e}).then(function(o){var a=o.data,r=a.errorCode,i=a.result;if(0==r)switch(i.status){case 0:n.tagValTableData[t].tagItemId===e&&(n.refreshTag=n.refreshTag.filter(function(t){return t.tagItemId!==e}));break;case 5:n.tagValTableData[t].tagItemId===e&&(n.tagValTableData[t].status=5);break;case 4:case 6:if(n.tagValTableData[t].tagItemId===e){n.tagValTableData[t].status=i.status;var l=0==i.totalNum?0:parseInt((i.totalNum-i.needExec)/i.totalNum*100);n.tagValTableData[t].percent=100===l?99:l}break;case 8:n.tagValTableData[t].tagItemId===e&&(n.tagValTableData[t].status=i.status,n.refreshTag=n.refreshTag.filter(function(t){return t.tagItemId!==e}),n.uploadedTag.push(e),n.tagValTableData[t].errorCount=i.needError,n.tagValTableData[t].percent=0,n.getValueData());break;default:n.tagValTableData[t].tagItemId===e&&(n.tagValTableData[t].status=i.status,n.refreshTag=n.refreshTag.filter(function(t){return t.tagItemId!==e}),n.tagValTableData[t].errorCount=0,n.tagValTableData[t].percent=0)}else f.a.errorMsg(o.data)}).catch(function(t){n.$message.error({duration:1e3,message:t.message})})},getOptionsThree:function(t){var e=this;Object(h.a)("/tagLevel/handThirdLevel",{tagLevelGroupId:t}).then(function(t){var n=t.data,o=n.errorCode,a=n.result;if(0==o){var r=a.filter(function(t){return t.tagLevelGroupId===e.tagInfo.tagLevelGroupId});r.length>0&&(e.tagInfo.tagLevelGroupName=r[0].levelName)}}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTagData:function(t){var e=this;Object(h.a)("/memberTag/getTagById",{tagId:t}).then(function(t){var n=t.data,o=n.errorCode,a=n.result;0==o&&(e.tagInfo={tagName:a.tagName,tagLevelGroupId:a.tagLevelGroupId,tagDescribe:a.tagDescribe},e.getValueData(),e.getOptionsThree(a.tagTwoLevelGroupId))}).catch(function(t){console.log(t)})},exportMember:function(){var t=this.tagValTableData.some(function(t){return+t.memberCount>0});if(!this.tagValTableData.length||!t)return this.$message.error("没有要导出的数据");this.tableFiledVisible=!0},onSubmiTableFiled:function(t){var e=this.exportMemberData.params;this.exportMemberData.excelUrl="/gic-member-tag-web/memberTag/memberTagExportExcel",this.exportMemberData.show=!0,e.exportFields=t.toString(),e.tagId=this.tagId;var n=window.location.origin;n=n.indexOf("localhost")>=0?"http://gicdev.demogic.com/":n,this.exportMemberData.excelUrl=n+this.exportMemberData.excelUrl},onDeleteTag:function(t,e,n){this.deleteTagDialog.visible=!0,this.deleteTagDialog.deleteData=a()({},t,{currentIndex:e,e:n})},drag:function(){var t=this,e=this.$refs.sortTable.$el.querySelector(".el-table__body tbody"),n=De.create(e,{onChoose:function(t){var e=t.originalEvent.target.classList.contains("icon-tuozhuaipaixu");n.option("sort",e)},onEnd:function(e){var o=e.newIndex,a=e.oldIndex,r=n.options.sort,i=t.tagValTableData.splice(a,1)[0];if(t.tagValTableData.splice(o,0,i),r){var l=o>0?t.tagValTableData[o-1].tagItemId:null,s={tagId:t.$route.query.tagId,tagItemId:i.tagItemId,tagItemIdAfter:l};t.remoteDragData(s)}}})},remoteDragData:function(t){Object(h.a)("/member-tag-value/tag-item-sort",t)},copy:function(t,e){d(t,e)}},mounted:function(){var t=this.$route.query.tagId;t&&(this.tagId=t,this.getValueData(),this.getTagData(t)),this.drag()},beforeDestroy:function(){clearTimeout(this.timer)},components:{navCrumb:m,Trash:b.a,importDialog:y.default,DeleteTagDialog:w.default}},Ee={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"manualTagEdit-wrap common-wrap"},[n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box"},[n("div",{staticClass:"manualTagEdit-wrap__title"},[n("span",[n("dm-sub-title",{attrs:{text:t.tagInfo.tagName}}),t._v(" "),"manual"==t.$route.query.type?n("p",{staticClass:"tip"},[t._v("导购标签排序应用于好办小程序,好办端展示按照排序从上到下展示")]):t._e()],1),t._v(" "),n("div",{staticClass:"operation-btn"},["manual"==t.$route.query.type?n("el-button",{staticClass:"ghost-btn",attrs:{type:"primary"},on:{click:t.importMember}},[n("i",{staticClass:"iconfont icon-shangc"}),t._v("\n 导入多标签值会员\n ")]):t._e(),t._v(" "),n("el-button",{staticClass:"ghost-btn",attrs:{type:"primary"},on:{click:t.exportMember}},[n("i",{staticClass:"iconfont icon-xiazai"}),t._v("\n 导出人群\n ")])],1)]),t._v(" "),n("div",{staticClass:"tag-value-wrapper"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"sortTable",attrs:{data:t.tagValTableData,"row-class-name":"table-row","row-key":"tagItemId"}},[n("el-table-column",{attrs:{width:"40","class-name":"tag-cell sort-cell","label-class-name":"tag-head"}},[[n("el-tooltip",{attrs:{placement:"top",content:"拖动排序",trigger:"hover",effect:"dark","popper-class":"drag-tooltip"}},[n("i",{staticClass:"iconfont icon-tuozhuaipaixu deactive"})])]],2),t._v(" "),n("el-table-column",{attrs:{label:"标签值",prop:"tagItemName","min-width":"100","class-name":"tag-cell","label-class-name":"tag-head"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row;return[n("span",[t._v(t._s(o.tagItemName))]),t._v(" "),n("el-tooltip",{attrs:{content:"复制标签值",trigger:"hover",placement:"top"}},[n("i",{staticClass:"iconfont copy-icon icon-fuzhi",on:{click:function(e){return t.copy(o.tagItemName,e)}}})])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"覆盖人数",prop:"memberCount","min-width":"200","class-name":"tag-cell","label-class-name":"tag-head"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"220","class-name":"tag-cell","label-class-name":"tag-head"},scopedSlots:t._u([{key:"default",fn:function(e){return[[n("el-button",{staticClass:"m-r-20",attrs:{type:"text",size:"small"},on:{click:function(n){return t.toTagDetail(e.row)}}},[t._v("\n 查看\n ")]),t._v(" "),t.getCodeAuth&&"manual"==t.$route.query.type?n("el-button",{staticClass:"m-r-20",attrs:{type:"text",size:"small","limit-code":t.getCode,disabled:5===e.row.status},on:{click:function(n){return t.showImportPop(e.$index,e.row)}}},[t._v("\n 导入会员\n ")]):t._e(),t._v(" "),5===e.row.status?[n("span",{staticClass:"color-c0c4cc"},[t._v("删除中...")])]:[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.onDeleteTag(e.row,e.$index,n)}}},[t._v("删除")])]]]}}])})],1)],1),t._v(" "),n("import-dialog",{attrs:{visiable:t.importPop.isShow,data:t.importPop},on:{"update:visiable":function(e){return t.$set(t.importPop,"isShow",e)},submit:t.tagItemImport,close:t.closeImportPop}}),t._v(" "),n("import-dialog",{attrs:{visiable:t.importBatchPop.isShow,data:t.importBatchPop},on:{"update:visiable":function(e){return t.$set(t.importBatchPop,"isShow",e)},submit:t.tagItemBatchImport,close:t.closeImportBatchPop}})],1)]),t._v(" "),n("Trash",{ref:"Trash",on:{beginClean:t.getValueData}}),t._v(" "),n("vue-gic-export-excel",{attrs:{dialogVisible:t.exportMemberData.show,excelUrl:t.exportMemberData.excelUrl,params:t.exportMemberData.params,dataArr:t.tagValTableData,type:"2",projectName:"member-tag"},on:{"update:dialogVisible":function(e){return t.$set(t.exportMemberData,"show",e)},"update:dialog-visible":function(e){return t.$set(t.exportMemberData,"show",e)}}}),t._v(" "),n("dm-table-filed",{attrs:{visible:t.tableFiledVisible,projectName:"member-tag",pageName:"memberTag",max:20,defaultDisabled:["memberName"],checkedFields:t.checkFields},on:{"update:visible":function(e){t.tableFiledVisible=e},submit:t.onSubmiTableFiled}}),t._v(" "),n("i",{staticClass:"iconfont icon-biaoqian aniIcon",style:{right:t.animationPos.x+"px",bottom:t.animationPos.y+"px"},attrs:{id:"aniIcon"}}),t._v(" "),n("delete-tag-dialog",{attrs:{visible:t.deleteTagDialog.visible,data:t.deleteTagDialog.deleteData},on:{"update:visible":function(e){return t.$set(t.deleteTagDialog,"visible",e)},submit:t.delTagApi}})],1)},staticRenderFns:[]};var Ce=n("VU/8")(xe,Ee,!1,function(t){n("ipi5")},"data-v-0e40ac02",null);e.default=Ce.exports},unJh:function(t,e){},vRdD:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={data:function(){return{filesData:void 0}},props:{data:{type:Object,default:function(){return{}}},visiable:Boolean},methods:{tagItemImport:function(){if(console.log(this.filesData),!this.filesData)return this.$message.warning("请上传文件");this.$emit("submit",this.filesData,this.$refs.upload)},onClose:function(){this.filesData=void 0,this.$emit("close",!1)},handleUpload:function(){console.log(this.data),0===this.data.excelData.length&&this.reHandleUpload()},reHandleUpload:function(){this.$refs.upload.click()},handleFileChange:function(t){var e=t.target.files[0];console.log(e);if(e)return/(\.(xlsx|xls|csv))$/.test(e.name)?void(this.filesData=e):(this.$message.warning({duration:1e3,message:"仅支持上传xlsx、xls、csv格式的文件"}),void(t.target.value=""))},downloadExcelTemp:function(){var t=window.location.origin;t=t.indexOf("localhost")>=0?"http://gicdev.demogic.com/":t,window.location.href=""+t+this.data.downLoadUrl}}},a={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:t.data.title,visible:t.data.isShow,"custom-class":"manual-dialog"},on:{"update:visible":function(e){return t.$set(t.data,"isShow",e)},close:t.onClose}},[n("div",{staticClass:"import"},[n("div",{class:["excel-icon",t.filesData?"excel-icon--active":"excel-icon--add"],on:{click:t.handleUpload}},[n("span",{directives:[{name:"show",rawName:"v-show",value:0===t.data.excelData.length,expression:"data.excelData.length === 0"}],staticClass:"import-btn"},[t._v("点击上传会员")])]),t._v(" "),n("div",{staticClass:"import-cont"},[n("div",{staticClass:"import-handle"},[n("input",{ref:"upload",staticStyle:{display:"none"},attrs:{type:"file",accept:".xlsx, .xls, .csv"},on:{change:t.handleFileChange}}),t._v(" "),t.data.excelData.length>0?[n("span",[t._v(t._s(t.data.excelName))]),t._v(" "),n("span",{staticClass:"import-num"},[t._v("\n 已导入会员\n "),n("span",{staticClass:"color-303133"},[t._v(t._s(t.data.excelData.length))]),t._v("\n 人\n ")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:t.reHandleUpload}},[t._v("重新导入")])]:t._e()],2),t._v(" "),n("div",{staticClass:"import-tip"},[n("span",{staticClass:"import-tip-text"},[t._v("只能上传一个excel文件(2003版本以上),且数据不超过50000条")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:t.downloadExcelTemp}},[n("span",{staticClass:"font-12"},[t._v("下载Excel模板")])])],1),t._v(" "),n("div",{staticClass:"clear-old"},[n("el-checkbox",{model:{value:t.data.optType,callback:function(e){t.$set(t.data,"optType",e)},expression:"data.optType"}},[t._v("清空标签历史标记会员")]),t._v(" "),n("el-tooltip",{attrs:{content:"勾选后,此前被该标签标记的会员将移除此标签,此标签标记会员以本次导入为准。"}},[n("i",{staticClass:"iconfont icon-xinxixianshi"})])],1)])]),t._v(" "),n("template",{slot:"footer"},[n("el-button",{on:{click:function(e){return t.$emit("update:visiable",!1)}}},[t._v("取消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.tagItemImport}},[t._v("确定")])],1)],2)},staticRenderFns:[]};var r=n("VU/8")(o,a,!1,function(t){n("OK0t")},"data-v-3ff51ef1",null);e.default=r.exports}});
\ No newline at end of file
webpackJsonp([4,35],{"124l":function(t,e){},"8E/F":function(t,e,a){"use strict";var n=a("2CGT"),r={name:"trash",data:function(){return{progress:0,trashList:[],dialogVisible:!1,delTime:0,interval:void 0}},mounted:function(){this.getProgress()},methods:{getProgress:function(){var t=this;Object(n.s)().then(function(e){var a=e.errorCode,n=e.message;if(0!=a)return t.$message.error(n);t.getTrashList()})},getTrashList:function(){var t=this;Object(n.v)().then(function(e){var a=e.errorCode,n=e.message,r=e.result,o=void 0===r?[]:r;if(0!=a)return t.$message.error(n);t.trashList=o,t.$store.commit("changeDelTrashNum",o.length),t.progress=o.length})},dialogOpen:function(){var t=this;this.getTrashList(),Object(n.z)().then(function(e){var a=e.errorCode,n=e.message,r=e.result;if(0!=a)return t.$message.error(n);t.delTime=r,r&&(t.interval=setInterval(function(e){t.delTime-=1e3},1e3))})},dialogClosed:function(){this.interval&&clearInterval(this.interval),this.getProgress()},getDelTime:function(){var t=parseInt(this.delTime%6e4/1e3),e=parseInt(this.delTime%36e5/6e4);return"倒计时: "+parseInt(this.delTime%864e5/36e5)+"h:"+e+"min:"+t+"s"},doClean:function(){var t=this;if(this.delTime>0)return this.$message.error("当前有正在删除的标签/标签值,删除完成后才能再次操作删除任务");Object(n.g)().then(function(e){var a=e.errorCode,n=e.message;if(0!=a)return t.$message.error(n);t.$message.success("已开始执行"),t.dialogVisible=!1,t.getProgress(),t.$emit("beginClean")})},delCheckTag:function(t,e){var a=this,r=null==t?1:0;Object(n.i)({tagItemId:r?e:t,type:r}).then(function(t){var e=t.errorCode,n=t.message;if(0!=e)return a.$message.error(n);a.getTrashList(),a.$message.success("移除成功")})}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"trash"}},[a("el-popover",{attrs:{placement:"top-start",trigger:"hover",content:"一键清除废弃标签值"}},[a("div",{staticClass:"trash",attrs:{slot:"reference"},on:{click:function(e){t.dialogVisible=!0}},slot:"reference"},[0!=t.$store.state.delTrashNum?a("el-badge",{staticClass:"badge",attrs:{value:t.$store.state.delTrashNum>99?"99+":t.$store.state.delTrashNum}},[a("i",{staticClass:"iconfont icon-delete trashIcon"})]):a("i",{staticClass:"iconfont icon-delete trashIcon"})],1)]),t._v(" "),a("el-dialog",{attrs:{title:"删除标签",visible:t.dialogVisible,width:"600px"},on:{"update:visible":function(e){t.dialogVisible=e},open:t.dialogOpen,closed:t.dialogClosed}},[a("el-alert",{staticStyle:{width:"535px","margin-bottom":"20px"},attrs:{title:"标签删除时,同步将标签从会员信息上删除。",type:"warning","show-icon":"",closable:!1}}),t._v(" "),a("header",[t._v("已选择待删除的标签/标签值")]),t._v(" "),a("ul",{staticClass:"tagBox"},t._l(t.trashList,function(e){return a("li",{key:e.tagItemId,staticClass:"tagItem"},[t._v("\n "+t._s(null==e.tagItemId?e.tagName:e.tagItemName)+"\n "),a("i",{staticClass:"iconfont icon-guanbi1 delIcon",on:{click:function(a){return t.delCheckTag(e.tagItemId,e.tagId)}}})])}),0),t._v(" "),a("span",{attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary",disabled:!t.trashList.length},on:{click:t.doClean}},[t._v(t._s(t.delTime>0?t.getDelTime():"删除"))])],1)],1)],1)},staticRenderFns:[]};var i=a("VU/8")(r,o,!1,function(t){a("unJh")},"data-v-9652feba",null);e.a=i.exports},J16i:function(t,e){},OK0t:function(t,e){},TQvf:function(t,e,a){
/*!
* clipboard.js v2.0.8
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/
var n;n=function(){return function(){var t={134:function(t,e,a){"use strict";a.d(e,{default:function(){return b}});var n=a(279),r=a.n(n),o=a(370),i=a.n(o),s=a(817),l=a.n(s);function c(t){"@babel/helpers - typeof";return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var d=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.resolveOptions(e),this.initSelection()}var e,a,n;return e=t,(a=[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var t="rtl"===document.documentElement.getAttribute("dir");this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var e=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(e,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var t=this,e=this.createFakeElement();this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(e),this.selectedText=l()(e),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=l()(this.target),this.copyText()}},{key:"copyText",value:function(){var t;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==c(t)||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}])&&u(e.prototype,a),n&&u(e,n),t}();function m(t){"@babel/helpers - typeof";return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){for(var a=0;a<e.length;a++){var n=e[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var a,n=h(t);if(e){var r=h(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return function(t,e){if(e&&("object"===m(e)||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,a)}}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,e){var a="data-clipboard-".concat(t);if(e.hasAttribute(a))return e.getAttribute(a)}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}(s,r());var e,a,n,o=p(s);function s(t,e){var a;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(a=o.call(this)).resolveOptions(e),a.listenClick(t),a}return e=s,n=[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,a=!!document.queryCommandSupported;return e.forEach(function(t){a=a&&!!document.queryCommandSupported(t)}),a}}],(a=[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===m(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=i()(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new d({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return v("action",t)}},{key:"defaultTarget",value:function(t){var e=v("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return v("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}])&&f(e.prototype,a),n&&f(e,n),s}()},828:function(t){var e=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}t.exports=function(t,a){for(;t&&t.nodeType!==e;){if("function"==typeof t.matches&&t.matches(a))return t;t=t.parentNode}}},438:function(t,e,a){var n=a(828);function r(t,e,a,r,o){var i=function(t,e,a,r){return function(a){a.delegateTarget=n(a.target,e),a.delegateTarget&&r.call(t,a)}}.apply(this,arguments);return t.addEventListener(a,i,o),{destroy:function(){t.removeEventListener(a,i,o)}}}t.exports=function(t,e,a,n,o){return"function"==typeof t.addEventListener?r.apply(null,arguments):"function"==typeof a?r.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return r(t,e,a,n,o)}))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var a=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===a||"[object HTMLCollection]"===a)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,a){var n=a(879),r=a(438);t.exports=function(t,e,a){if(!t&&!e&&!a)throw new Error("Missing required arguments");if(!n.string(e))throw new TypeError("Second argument must be a String");if(!n.fn(a))throw new TypeError("Third argument must be a Function");if(n.node(t))return function(t,e,a){return t.addEventListener(e,a),{destroy:function(){t.removeEventListener(e,a)}}}(t,e,a);if(n.nodeList(t))return function(t,e,a){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,a)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,a)})}}}(t,e,a);if(n.string(t))return function(t,e,a){return r(document.body,t,e,a)}(t,e,a);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var a=t.hasAttribute("readonly");a||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),a||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var n=window.getSelection(),r=document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r),e=n.toString()}return e}},279:function(t){function e(){}e.prototype={on:function(t,e,a){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:a}),this},once:function(t,e,a){var n=this;function r(){n.off(t,r),e.apply(a,arguments)}return r._=e,this.on(t,r,a)},emit:function(t){for(var e=[].slice.call(arguments,1),a=((this.e||(this.e={}))[t]||[]).slice(),n=0,r=a.length;n<r;n++)a[n].fn.apply(a[n].ctx,e);return this},off:function(t,e){var a=this.e||(this.e={}),n=a[t],r=[];if(n&&e)for(var o=0,i=n.length;o<i;o++)n[o].fn!==e&&n[o].fn._!==e&&r.push(n[o]);return r.length?a[t]=r:delete a[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};function a(n){if(e[n])return e[n].exports;var r=e[n]={exports:{}};return t[n](r,r.exports,a),r.exports}return a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a(134)}().default},t.exports=n()},ipi5:function(t,e){},umZJ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Dd8w"),r=a.n(n),o=a("//Fk"),i=a.n(o),s=(a("J16i"),a("lRwf")),l=a.n(s),c=a("TQvf"),u=a.n(c);function d(t,e){var a=new u.a(e.target,{text:function(){return t}});a.on("success",function(){a.off("error"),a.off("success"),a.destroy()}),a.on("error",function(){l.a.prototype.$message({message:"Copy failed",type:"error"}),a.off("error"),a.off("success"),a.destroy()}),a.onClick(e)}var m=a("P9l9"),f=a("Ch4/"),g={name:"navpath",data:function(){return{projectName:"member"}},props:{navpath:{type:Array,default:function(){return[]}},navtip:{type:Boolean,default:!1}},methods:{changeRoute:function(t,e){e?window.location.href=t:this.$router.push(t)},getNavPath:function(){var t=this,e={project:t.projectName,path:t.$route.path.split("/")[1]};Object(m.d)("/api-auth/get-current-memu-data",e).then(function(e){var a=e.data;if(0==a.errorCode){if(!a.result)return;return t.navpath=[],void(a.result.list&&a.result.list.length&&a.result.list.forEach(function(e,n){e.name=e.menuName,e.path="",n==a.result.list.length-1&&(e.path="/"+e.menuUrl),n>0&&t.navpath.push(e)}))}f.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"navwrap boxbttom"},[a("el-breadcrumb",{attrs:{separator:"/"}},[t._l(t.navpath,function(e,n){return[e.path?[a("el-breadcrumb-item",{key:e.name+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(t._s(e.name))])])]:[a("el-breadcrumb-item",{key:e.name+n},[t._v(t._s(e.name))])]]})],2),t._v(" "),a("h1",{staticClass:"navtitle"},[t._v(t._s(t.navpath[t.navpath.length-1].name))]),t._v(" "),1==t.navtip?a("div",{staticClass:"navtip navmTop"},[a("i",{staticClass:"el-icon-info navtipcolor"}),t._v("变更导航个数,移动顺序,更换页面链接均需提交小程序审核后重新发布生效,其他变更立即生效。小程序审核请联系品牌项目经理。\n ")]):t._e()],1)},staticRenderFns:[]};var h=a("VU/8")(g,p,!1,function(t){a("124l")},"data-v-ba7972ac",null).exports,v=a("3E4D"),b=a("8E/F"),y=a("vRdD"),I=a("r9pr"),T=a("/dO2"),x={name:"manual-tag-value-edit",data:function(){return{tagId:"",tagInfo:{tagName:"",tagDescribe:"",tagLevelGroupId:"",tagLevelGroupName:""},importPop:{isShow:!1,tagItemIndex:"",tagItemId:"",optType:!1,title:"",excelName:"",excelData:[],excelHeader:[],downLoadUrl:"/gic-member-tag-web/memberTag/member-import-template-download?requestProject=gic-member-tag-web"},importBatchPop:{isShow:!1,tagItemIndex:"",tagItemId:"",optType:!1,title:"",excelName:"",excelData:[],excelHeader:[],downLoadUrl:"/gic-member-tag-web/memberTag/member-import-template-download?requestProject=gic-member-tag-web&type=2"},tagValTableData:[],refreshTag:[],uploadedTag:[],timer:null,animationPos:{x:1e3,y:500},isShowAdd:!0,exportMemberData:{show:!1,excelUrl:"/gic-member-tag-web/memberTag/memberTagExportExcel",params:{}},deleteTagDialog:{visible:!1,deleteData:{}},tableFiledVisible:!1,checkFields:["cardNo","gradeName","crateCardDateStringFormat","lastCostTimeFormat","costTimes","avgCost","birthdayMDFormat","pointsCurrent","costAll","mainStoreName","openStoreName"],loading:!1}},computed:{getCodeAuth:function(){return this.$getButtonLimit(this.$buttonCode.memberTagImportMember)},getCode:function(){return this.$buttonCode.memberTagImportMember}},methods:{addTagItem:function(t,e){var a=this,n={tagItemId:t,tagItemName:e,tagId:this.tagId};Object(m.a)("/memberTag/saveHandTagItem",n).then(function(t){if(0==t.data.errorCode)return v.a.showmsg("添加成功","success"),void a.getValueData();f.a.errorMsg(t.data)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},delTagApi:function(t){var e=t,a=t.currentIndex,n=t.e,r=t.memberCount,o=t.tagItemId;0==r?this.directDelTag(o):this.intoTrash(e,a,n)},intoTrash:function(t,e,a){var n=this,r={itemId:t.tagItemId};this.refreshTag.push({tagItemIndex:e,tagItemId:t.tagItemId,type:0}),this.tagValTableData[e].showDelPopOver=!1,Object(m.a)("/delTagItem/add",r).then(function(e){var r=e.data,o=r.errorCode;r.result;if(0==o)return t.delStatus=0,n.$refs.Trash.getTrashList(),n.handleRefreshTag(),void n.startAnimation(a);f.a.errorMsg(e.data)}).catch(function(t){n.$message.error({duration:1e3,message:t.message})})},directDelTag:function(t){var e=this;console.log(t);var a={tagItemId:t};Object(m.a)("/member-tag-value/delTagItem",a).then(function(t){var a=t.data,n=a.errorCode;a.result;if(0==n)return e.$message.success("删除成功"),void e.getValueData();f.a.errorMsg(t.data)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},startAnimation:function(t){this.animationPos={x:document.body.offsetWidth-t.pageX,y:document.body.offsetHeight-t.pageY},document.querySelector("#aniIcon").style.display="block",setTimeout(function(t){document.querySelector("#aniIcon").style.display="none"},1800)},getValueData:function(){var t=this;this.loading=!0;var e={tagId:this.tagId};Object(m.a)("/memberTag/queryHandTagItem",e).then(function(e){var a=e.data,n=a.errorCode,r=a.result;if(0==n)return t.refreshTag=[],r.forEach(function(e,a){e.showDelPopOver=!1,e.percent=0,4!==e.status&&5!==e.status&&6!==e.status||t.refreshTag.push({tagItemIndex:a,tagItemId:e.tagItemId}),e.isCurrent=!1}),t.tagValTableData=r,r.some(function(t){return t.isWeimob})&&(t.isShowAdd=!1),void t.handleRefreshTag();f.a.errorMsg(e.data)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})}).finally(function(){return t.loading=!1})},toTagDetail:function(t){this.$router.push("/manualTagValueEditInfo?tagId="+t.tagId+"&tagItemId="+t.tagItemId)},showImportPop:function(t,e){this.importPop.isShow=!0,this.importPop.tagItemIndex=t,this.importPop.tagItemId=e.tagItemId,this.importPop.title=e.tagItemName+"-导入会员"},closeImportPop:function(){this.resetImportData()},resetImportData:function(){this.importPop.excelName="",this.importPop.excelData=[],this.importPop.excelHeader=[],this.importPop.optType=!1,this.importPop.isShow=!1},tagItemImport:function(t,e){var a=this;if(!this.flag){this.flag=!0,e.value="",this.refreshTag.push({tagItemIndex:this.importPop.tagItemIndex,tagItemId:this.importPop.tagItemId});var n=this.importPop,r=n.tagItemId,o=n.optType,i=new FormData;i.append("file",t),i.append("optType",o?1:0),i.append("tagItemId",r),i.append("requestProject","member-tag"),Object(m.b)("/memberTag/uploadTagItemExcel",i).then(function(t){0==t.data.errorCode?(a.closeImportPop(),a.$toTaskCenter(t.data.result),a.flag=!1):(a.flag=!1,f.a.errorMsg(t.data))})}},importMember:function(){this.importBatchPop.isShow=!0,this.importBatchPop.title="导入多标签值会员"},closeImportBatchPop:function(){this.importBatchPop.excelName="",this.importBatchPop.excelData=[],this.importBatchPop.excelHeader=[],this.importBatchPop.optType=!1,this.importBatchPop.isShow=!1},tagItemBatchImport:function(t,e){var a=this;if(!this.flag){this.flag=!0,e.value="";var n=this.importBatchPop.optType,r=new FormData;r.append("file",t),r.append("optType",n?1:0),r.append("tagId",this.tagId),r.append("requestProject","member-tag"),Object(m.b)("/memberTag/uploadTagExcel",r).then(function(t){0==t.data.errorCode?(a.closeImportBatchPop(),a.$toTaskCenter(t.data.result),a.flag=!1):(a.flag=!1,f.a.errorMsg(t.data))})}},handleRefreshTag:function(){var t=this;if(0!==this.refreshTag.length){var e=[];this.refreshTag.forEach(function(a){e.push(t.getImportReport(a.tagItemIndex,a.tagItemId))}),i.a.all(e).then(function(){clearTimeout(t.timer),t.timer=setTimeout(t.handleRefreshTag,1e3)})}},getImportReport:function(t,e){var a=this;return Object(m.a)("/memberTag/getImportReport",{tagItemId:e}).then(function(n){var r=n.data,o=r.errorCode,i=r.result;if(0==o)switch(i.status){case 0:a.tagValTableData[t].tagItemId===e&&(a.refreshTag=a.refreshTag.filter(function(t){return t.tagItemId!==e}));break;case 5:a.tagValTableData[t].tagItemId===e&&(a.tagValTableData[t].status=5);break;case 4:case 6:if(a.tagValTableData[t].tagItemId===e){a.tagValTableData[t].status=i.status;var s=0==i.totalNum?0:parseInt((i.totalNum-i.needExec)/i.totalNum*100);a.tagValTableData[t].percent=100===s?99:s}break;case 8:a.tagValTableData[t].tagItemId===e&&(a.tagValTableData[t].status=i.status,a.refreshTag=a.refreshTag.filter(function(t){return t.tagItemId!==e}),a.uploadedTag.push(e),a.tagValTableData[t].errorCount=i.needError,a.tagValTableData[t].percent=0,a.getValueData());break;default:a.tagValTableData[t].tagItemId===e&&(a.tagValTableData[t].status=i.status,a.refreshTag=a.refreshTag.filter(function(t){return t.tagItemId!==e}),a.tagValTableData[t].errorCount=0,a.tagValTableData[t].percent=0)}else f.a.errorMsg(n.data)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getOptionsThree:function(t){var e=this;Object(m.a)("/tagLevel/handThirdLevel",{tagLevelGroupId:t}).then(function(t){var a=t.data,n=a.errorCode,r=a.result;if(0==n){var o=r.filter(function(t){return t.tagLevelGroupId===e.tagInfo.tagLevelGroupId});o.length>0&&(e.tagInfo.tagLevelGroupName=o[0].levelName)}}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTagData:function(t){var e=this;Object(m.a)("/memberTag/getTagById",{tagId:t}).then(function(t){var a=t.data,n=a.errorCode,r=a.result;0==n&&(e.tagInfo={tagName:r.tagName,tagLevelGroupId:r.tagLevelGroupId,tagDescribe:r.tagDescribe},e.getValueData(),e.getOptionsThree(r.tagTwoLevelGroupId))}).catch(function(t){console.log(t)})},exportMember:function(){var t=this.tagValTableData.some(function(t){return+t.memberCount>0});if(!this.tagValTableData.length||!t)return this.$message.error("没有要导出的数据");this.tableFiledVisible=!0},onSubmiTableFiled:function(t){var e=this.exportMemberData.params;this.exportMemberData.excelUrl="/gic-member-tag-web/memberTag/memberTagExportExcel",this.exportMemberData.show=!0,e.exportFields=t.toString(),e.tagId=this.tagId;var a=window.location.origin;a=a.indexOf("localhost")>=0?"http://gicdev.demogic.com/":a,this.exportMemberData.excelUrl=a+this.exportMemberData.excelUrl},onDeleteTag:function(t,e,a){this.deleteTagDialog.visible=!0,this.deleteTagDialog.deleteData=r()({},t,{currentIndex:e,e:a})},drag:function(){var t=this,e=this.$refs.sortTable.$el.querySelector(".el-table__body tbody"),a=T.default.create(e,{onChoose:function(t){var e=t.originalEvent.target.classList.contains("icon-tuozhuaipaixu");a.option("sort",e)},onEnd:function(e){var n=e.newIndex,r=e.oldIndex,o=a.options.sort,i=t.tagValTableData.splice(r,1)[0];if(t.tagValTableData.splice(n,0,i),o){var s=n>0?t.tagValTableData[n-1].tagItemId:null,l={tagId:t.$route.query.tagId,tagItemId:i.tagItemId,tagItemIdAfter:s};t.remoteDragData(l)}}})},remoteDragData:function(t){Object(m.a)("/member-tag-value/tag-item-sort",t)},copy:function(t,e){d(t,e)}},mounted:function(){var t=this.$route.query.tagId;t&&(this.tagId=t,this.getValueData(),this.getTagData(t)),this.drag()},beforeDestroy:function(){clearTimeout(this.timer)},components:{navCrumb:h,Trash:b.a,importDialog:y.default,DeleteTagDialog:I.default}},w={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"manualTagEdit-wrap common-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"manualTagEdit-wrap__title"},[a("span",[a("dm-sub-title",{attrs:{text:t.tagInfo.tagName}}),t._v(" "),"manual"==t.$route.query.type?a("p",{staticClass:"tip"},[t._v("导购标签排序应用于好办小程序,好办端展示按照排序从上到下展示")]):t._e()],1),t._v(" "),a("div",{staticClass:"operation-btn"},["manual"==t.$route.query.type?a("el-button",{staticClass:"ghost-btn",attrs:{type:"primary"},on:{click:t.importMember}},[a("i",{staticClass:"iconfont icon-shangc"}),t._v("\n 导入多标签值会员\n ")]):t._e(),t._v(" "),a("el-button",{staticClass:"ghost-btn",attrs:{type:"primary"},on:{click:t.exportMember}},[a("i",{staticClass:"iconfont icon-xiazai"}),t._v("\n 导出人群\n ")])],1)]),t._v(" "),a("div",{staticClass:"tag-value-wrapper"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"sortTable",attrs:{data:t.tagValTableData,"row-class-name":"table-row","row-key":"tagItemId"}},[a("el-table-column",{attrs:{width:"40","class-name":"tag-cell sort-cell","label-class-name":"tag-head"}},[[a("el-tooltip",{attrs:{placement:"top",content:"拖动排序",trigger:"hover",effect:"dark","popper-class":"drag-tooltip"}},[a("i",{staticClass:"iconfont icon-tuozhuaipaixu deactive"})])]],2),t._v(" "),a("el-table-column",{attrs:{label:"标签值",prop:"tagItemName","min-width":"100","class-name":"tag-cell","label-class-name":"tag-head"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("span",[t._v(t._s(n.tagItemName))]),t._v(" "),a("el-tooltip",{attrs:{content:"复制标签值",trigger:"hover",placement:"top"}},[a("i",{staticClass:"iconfont copy-icon icon-fuzhi",on:{click:function(e){return t.copy(n.tagItemName,e)}}})])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"覆盖人数",prop:"memberCount","min-width":"200","class-name":"tag-cell","label-class-name":"tag-head"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"220","class-name":"tag-cell","label-class-name":"tag-head"},scopedSlots:t._u([{key:"default",fn:function(e){return[[a("el-button",{staticClass:"m-r-20",attrs:{type:"text",size:"small"},on:{click:function(a){return t.toTagDetail(e.row)}}},[t._v("\n 查看\n ")]),t._v(" "),t.getCodeAuth&&"manual"==t.$route.query.type?a("el-button",{staticClass:"m-r-20",attrs:{type:"text",size:"small","limit-code":t.getCode,disabled:5===e.row.status},on:{click:function(a){return t.showImportPop(e.$index,e.row)}}},[t._v("\n 导入会员\n ")]):t._e(),t._v(" "),5===e.row.status?[a("span",{staticClass:"color-c0c4cc"},[t._v("删除中...")])]:[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onDeleteTag(e.row,e.$index,a)}}},[t._v("删除")])]]]}}])})],1)],1),t._v(" "),a("import-dialog",{attrs:{visiable:t.importPop.isShow,data:t.importPop},on:{"update:visiable":function(e){return t.$set(t.importPop,"isShow",e)},submit:t.tagItemImport,close:t.closeImportPop}}),t._v(" "),a("import-dialog",{attrs:{visiable:t.importBatchPop.isShow,data:t.importBatchPop},on:{"update:visiable":function(e){return t.$set(t.importBatchPop,"isShow",e)},submit:t.tagItemBatchImport,close:t.closeImportBatchPop}})],1)]),t._v(" "),a("Trash",{ref:"Trash",on:{beginClean:t.getValueData}}),t._v(" "),a("vue-gic-export-excel",{attrs:{dialogVisible:t.exportMemberData.show,excelUrl:t.exportMemberData.excelUrl,params:t.exportMemberData.params,dataArr:t.tagValTableData,type:"2",projectName:"member-tag"},on:{"update:dialogVisible":function(e){return t.$set(t.exportMemberData,"show",e)},"update:dialog-visible":function(e){return t.$set(t.exportMemberData,"show",e)}}}),t._v(" "),a("dm-table-filed",{attrs:{visible:t.tableFiledVisible,projectName:"member-tag",pageName:"memberTag",max:20,defaultDisabled:["memberName"],checkedFields:t.checkFields},on:{"update:visible":function(e){t.tableFiledVisible=e},submit:t.onSubmiTableFiled}}),t._v(" "),a("i",{staticClass:"iconfont icon-biaoqian aniIcon",style:{right:t.animationPos.x+"px",bottom:t.animationPos.y+"px"},attrs:{id:"aniIcon"}}),t._v(" "),a("delete-tag-dialog",{attrs:{visible:t.deleteTagDialog.visible,data:t.deleteTagDialog.deleteData},on:{"update:visible":function(e){return t.$set(t.deleteTagDialog,"visible",e)},submit:t.delTagApi}})],1)},staticRenderFns:[]};var _=a("VU/8")(x,w,!1,function(t){a("ipi5")},"data-v-0e40ac02",null);e.default=_.exports},unJh:function(t,e){},vRdD:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={data:function(){return{filesData:void 0}},props:{data:{type:Object,default:function(){return{}}},visiable:Boolean},methods:{tagItemImport:function(){if(console.log(this.filesData),!this.filesData)return this.$message.warning("请上传文件");this.$emit("submit",this.filesData,this.$refs.upload)},onClose:function(){this.filesData=void 0,this.$emit("close",!1)},handleUpload:function(){console.log(this.data),0===this.data.excelData.length&&this.reHandleUpload()},reHandleUpload:function(){this.$refs.upload.click()},handleFileChange:function(t){var e=t.target.files[0];console.log(e);if(e)return/(\.(xlsx|xls|csv))$/.test(e.name)?void(this.filesData=e):(this.$message.warning({duration:1e3,message:"仅支持上传xlsx、xls、csv格式的文件"}),void(t.target.value=""))},downloadExcelTemp:function(){var t=window.location.origin;t=t.indexOf("localhost")>=0?"http://gicdev.demogic.com/":t,window.location.href=""+t+this.data.downLoadUrl}}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.data.title,visible:t.data.isShow,"custom-class":"manual-dialog"},on:{"update:visible":function(e){return t.$set(t.data,"isShow",e)},close:t.onClose}},[a("div",{staticClass:"import"},[a("div",{class:["excel-icon",t.filesData?"excel-icon--active":"excel-icon--add"],on:{click:t.handleUpload}},[a("span",{directives:[{name:"show",rawName:"v-show",value:0===t.data.excelData.length,expression:"data.excelData.length === 0"}],staticClass:"import-btn"},[t._v("点击上传会员")])]),t._v(" "),a("div",{staticClass:"import-cont"},[a("div",{staticClass:"import-handle"},[a("input",{ref:"upload",staticStyle:{display:"none"},attrs:{type:"file",accept:".xlsx, .xls, .csv"},on:{change:t.handleFileChange}}),t._v(" "),t.data.excelData.length>0?[a("span",[t._v(t._s(t.data.excelName))]),t._v(" "),a("span",{staticClass:"import-num"},[t._v("\n 已导入会员\n "),a("span",{staticClass:"color-303133"},[t._v(t._s(t.data.excelData.length))]),t._v("\n 人\n ")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:t.reHandleUpload}},[t._v("重新导入")])]:t._e()],2),t._v(" "),a("div",{staticClass:"import-tip"},[a("span",{staticClass:"import-tip-text"},[t._v("只能上传一个excel文件(2003版本以上),且数据不超过50000条")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:t.downloadExcelTemp}},[a("span",{staticClass:"font-12"},[t._v("下载Excel模板")])])],1),t._v(" "),a("div",{staticClass:"clear-old"},[a("el-checkbox",{model:{value:t.data.optType,callback:function(e){t.$set(t.data,"optType",e)},expression:"data.optType"}},[t._v("清空标签历史标记会员")]),t._v(" "),a("el-tooltip",{attrs:{content:"勾选后,此前被该标签标记的会员将移除此标签,此标签标记会员以本次导入为准。"}},[a("i",{staticClass:"iconfont icon-xinxixianshi"})])],1)])]),t._v(" "),a("template",{slot:"footer"},[a("el-button",{on:{click:function(e){return t.$emit("update:visiable",!1)}}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.tagItemImport}},[t._v("确定")])],1)],2)},staticRenderFns:[]};var o=a("VU/8")(n,r,!1,function(t){a("OK0t")},"data-v-3ff51ef1",null);e.default=o.exports}});
\ No newline at end of file
webpackJsonp([7],{"+/ey":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Dd8w"),o=a.n(r),s=(a("Y3qZ"),a("G9rT")),i={name:"selected-tags-list",props:{tagsList:{type:Array,required:!0}},computed:{tagsListFilter:function(){return this.tagsList.filter(function(e){return e.length>0})}},methods:{getTagVal:function(e){var t=JSON.parse(e.tagParams);return t.selectedVal.includes("$^")?t.selectedVal.replace(/\$\^/g," "):t.selectedVal}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex tags"},e._l(e.tagsListFilter,function(t,r){return a("div",{key:t,staticClass:"tag-group",style:"width: "+100/e.tagsList.length+"%"},[a("ul",{staticClass:"tag-list"},e._l(t,function(t){return a("li",{key:t.tagId,staticClass:"tag-item"},[a("el-tooltip",[a("span",{staticClass:"tags-item__name"},[e._v(e._s(t.tagName)+"【选择:"+e._s(e.getTagVal(t))+"】")]),e._v(" "),a("div",{staticStyle:{"max-width":"400px","font-size":"14px"},attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(t.tagName)+"【选择:"+e._s(e.getTagVal(t))+"】\n ")])])],1)}),0),e._v(" "),r<e.tagsListFilter.length-1?a("div",{staticClass:"tag-relation"},[a("span",{staticClass:"tag-relation__wrap"},[a("i",{staticClass:"tag-relation__cont"},[e._v("\n "+e._s("or"===e.tagsListFilter[r+1][0].levelType?"或者":"andNot"===e.tagsListFilter[r+1][0].levelType?"剔除":"")+"\n ")])])]):e._e()])}),0)},staticRenderFns:[]};var l=a("VU/8")(i,n,!1,function(e){a("xjRm")},"data-v-ef99d670",null).exports,c=a("Ch4/"),d=a("P9l9"),m={name:"memberGroupDetail",data:function(){return{canEdit:!1,loading:!0,showUserDefined:!1,memberFields:[],selectedUserDefined:[],selectedFields:[],downMemberListPop:{canDown:!1,show:!1,excelUrl:"/gic-member-tag-web/member-tag-member/memberExportExcel",params:{memberTagGroupId:"",requestProject:"member-tag",exportFields:""}},groupName:"分组名称",groupIsRealTime:1,selectedTagData:[],sortableFlag:!1,memberGroupDetailData:[],memberGroupDetailDataBack:[],currentPage:1,pageSize:20,total:0,singleInfo:{sex:0,age:0,cardNo:0,mainStoreName:"dd",costFee:0,costTimes:0,lastCost:0,numOfSale:0,numOfmarket:0,couponCount:0,status:0,wxStatus:0,phoneStatus:0,authStatus:0},baseUrl:"",sortFiled:"",order:"",tagSearch:"",tableFiledVisible:!1,fixedPileValue:{},fixedPileSelect:"",checkFields:["cardNo","gradeName","crateCardDateStringFormat","lastCostTimeFormat","costTimes","avgCost","birthdayMDFormat","pointsCurrent","costAll","mainStoreName","openStoreName"]}},computed:{navpath:function(){return console.log(window.location.origin,"origin"),[{name:"首页",path:window.location.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员分组",path:"/memberGroupList"},{name:"会员分组详情",path:""}]}},filters:{formatTimeYMD:function(e){if(e&&e>0){var t=e.toString().split("");return t.splice(0,4).join("")+"-"+t.splice(0,2).join("")+"-"+t.splice(0,2).join("")}return"--"},formatTimeHMS:function(e){if(e&&e>0){var t=e.toString().split("");return t.splice(0,8),t.splice(0,2).join("")+":"+t.splice(0,2).join("")+":"+t.splice(0,2).join("")}return"--"}},methods:{canDownMemberList:function(){var e=this;Object(d.a)("/member-tag-member/isExportEnterprise",{}).then(function(t){0==t.data.errorCode&&(e.downMemberListPop.canDown="true"===t.data.result||!0===t.data.result)})},separator:function(e){return(e+="").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")},sortChange:function(e){e.column;var t=e.prop,a=e.order;console.log(t,a),this.sortFiled=t,this.order="descending"==a?"desc":"asc",this.getGroupDetail()},getTagValueDtoList:function(){var e=this,t=this,a={memberTagGroupId:t.$route.query.memberTagGroupId};Object(d.a)("/member-tag-group/findOneDetial.json",a).then(function(a){t.groupName=a.data.result.tagGroupDto.groupName,t.canEdit=a.data.result.tagGroupDto.canEdit,t.groupIsRealTime=a.data.result.tagGroupDto.isRealTime,t.fixedPileValue=a.data.result.tagGroupDto.fixedPile||{};var r=a.data.result.tagValueDtoList;r.forEach(function(e){e.tagParams&&(e.tagParams=JSON.parse(e.tagParams))}),e.selectedTagData=r}).catch(function(e){console.log(e,"error of getTagValueDtoList")})},showDefined:function(){this.showUserDefined=!0},hideUserDefined:function(e){this.showUserDefined=e},confirmUserDefined:function(e){var t=this;if(console.log(e),e.length<1)return this.$message.error({duration:1e3,message:"请选择自定义字段"}),!1;this.loading=!0;var a=e.join(",");this.selectedUserDefined=e,this.showUserDefined=!1,this.selectedFields=[],this.selectedFields=this.memberFields.filter(function(e){return t.selectedUserDefined.includes(e.code)}),this.saveFieldsList(a).then(function(){t.loading=!1})},saveFieldsList:function(e){var t={pageName:"notMember,wxOpenCarMember,posMember",fields:e};return this.axios.post(this.baseUrl+"/api-member/update-fields?requestProject=memberTag",t)},handleSizeChange:function(e){console.log("每页 "+e+" 条"),this.pageSize=e,this.getGroupDetail()},handleCurrentChange:function(e){console.log("当前页: "+e),this.currentPage=e,this.getGroupDetail()},getGroupDetail:function(e){var t=this,a={memberTagGroupId:t.$route.query.memberTagGroupId,pageNum:t.currentPage,pageSize:t.pageSize,sortColName:t.sortFiled,sortType:t.order,search:t.tagSearch,fixedPile:t.fixedPileSelect};Object(d.a)("/member-tag-member/findMemberList.json",a).then(function(a){t.total=a.data.result.page.totalCount,t.memberGroupDetailData=a.data.result.page.result,e&&(e.forEach(function(e,a){"name"===e.code?(e.check=!0,e.disabled=!0,t.selectedUserDefined.push(e.code),t.selectedFields.push(e)):e.check&&(t.selectedUserDefined.push(e.code),t.selectedFields.push(e))}),console.log(t.selectedFields),console.log(t.memberGroupDetailData)),t.loading=!1}).catch(function(e){console.log(e,"error of get group detail"),t.loading=!1})},clearSearch:function(){this.tagSearch="",this.currentPage=1,this.getGroupDetail()},enterSearch:function(){this.currentPage=1,this.getGroupDetail()},onSearch:function(){this.currentPage=1,this.getGroupDetail()},linkDetail:function(e,t){this.$getButtonLimit(this.$buttonCode.memberTagToCheck)&&window.open(t?window.location.origin+"/member/#/wechatmemberDetail?memberId="+e+"&channel=wxMember&fromPage=memberGroup":window.location.origin+"/member/#/posmemberDetail?memberId="+e+"&channel=posMember&fromPage=memberGroup")},showSingleInfo:function(e){var t=this,a={memberId:e};t.singleInfo="",t.axios.post(t.baseUrl+"/api-member/load-member-single-info?requestProject=memberTag",a).then(function(e){var a=e.data;if(0!=a.errorCode)c.a.errorMsg(a);else{var r=a.result.memberSingle;t.singleInfo=o()({},r,{sex:0==r.sex?"性别未知":1==r.sex?"男":"女",age:0!=r.age?r.age:"年龄未知",cardNo:r.cardNo?r.cardNo:"无会员卡",mainStoreName:r.mainStoreName?r.mainStoreName:"主门店未知"})}}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getFieldsList:function(){var e=this;e.selectedUserDefined=[],e.selectedFields=[],e.axios.post(e.baseUrl+"/api-member/find-member-fields?requestProject=memberTag",{pageName:"notMember,wxOpenCarMember,posMember"}).then(function(t){console.log(t,"自定义列表字段");var a=t.data;if(0==a.errorCode)return e.memberFields=a.result,void e.getGroupDetail(a.result);c.a.errorMsg(a)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})},onSubmiTableFiled:function(e){var t=this.downMemberListPop.params;this.downMemberListPop.show=!0,t.exportFields=e.toString()},fixedPileRate:function(e){return this.fixedPileValue.value.reduce(function(t,a,r,o){return t+(a[e]||0)+(r<o.length-1?" :":"")},"")}},beforeMount:function(){var e=window.location.origin;"-1"!=e.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=e},mounted:function(){var e=window.location.origin,t=this.$route.query.memberTagGroupId;-1!=e.indexOf("localhost")&&(e="http://gicdev.demogic.com"),this.downMemberListPop.params.memberTagGroupId=t,this.downMemberListPop.excelUrl=e+this.downMemberListPop.excelUrl,this.getTagValueDtoList(),this.getFieldsList(),document.getElementById("app").style.zIndex="auto"},components:{userDefined:s.a,selectedTagsList:l}},u={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"memberGroupDetail-wrap common-wrap"},[r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("div",{staticClass:"memberGroupDetail-wrap__info"},[r("dm-sub-title",{attrs:{text:e.groupName}}),e._v(" "),r("div",{staticClass:"title-wrap"},[r("p",[r("span",{staticClass:"bold m-r-10"},[e._v("覆盖人数:")]),e._v(e._s(e.separator(e.total)))]),e._v(" "),r("div",{staticClass:"tags-flex"},[r("div",{staticClass:"memberGroupDetail-wrap__head"},[r("span",{staticClass:"bold"},[e._v("筛选标签:")]),e._v(" "),r("selected-tags-list",{staticClass:"m-t-8",attrs:{tagsList:e.selectedTagData}})],1)]),e._v(" "),e.fixedPileValue&&e.fixedPileValue.value&&2==e.$route.query.type?r("p",{staticClass:"fixedPiel"},[r("span",{staticStyle:{"margin-right":"60px"}},[r("span",{staticClass:"bold"},[e._v("分堆比例:")]),e._v(" "),r("span",[e._v(e._s(e.fixedPileRate("currSize")))])]),e._v(" "),r("span",[r("span",{staticClass:"bold"},[e._v("分堆人数:")]),e._v(" "),r("span",[e._v(e._s(e.fixedPileRate("memberCount")))])])]):e._e()])],1),e._v(" "),r("div",{staticClass:"memberGroupDetail-wrap__table"},[r("div",{staticClass:"table-options"},[r("div",{staticStyle:{"font-size":"0"}},[2==e.$route.query.type?r("el-select",{staticClass:"m-r-10 w-160",attrs:{placeholder:"请选择分堆人群",clearable:""},on:{change:e.onSearch},model:{value:e.fixedPileSelect,callback:function(t){e.fixedPileSelect=t},expression:"fixedPileSelect"}},e._l(e.fixedPileValue.value,function(t){return r("el-option",{key:t.groupId,attrs:{value:t.groupId,label:t.groupName}},[e._v(e._s(t.groupName))])}),1):e._e(),e._v(" "),r("el-input",{staticClass:"m-r-8",staticStyle:{margin:"20px 0",width:"270px"},attrs:{placeholder:"请输入姓名/昵称/手机号/会员卡号","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.enterSearch(t)}},model:{value:e.tagSearch,callback:function(t){e.tagSearch=t},expression:"tagSearch"}})],1),e._v(" "),r("div",{staticClass:"btn-group"},[e.$getButtonLimit(e.$buttonCode.memberTagExportPeople)?[e.total<1e6?r("el-button",{staticClass:"down-member-list__btn m-l-8",attrs:{type:"primary","limit-code":e.$buttonCode.memberTagExportPeople},on:{click:function(t){e.tableFiledVisible=!0}}},[r("i",{staticClass:"iconfont icon-xiazai",staticStyle:{"margin-right":"5px"}}),e._v("导出人群")]):r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"每张报表导出人数限制为100万,大于100万的人群会自动拆分为多张报表进行导出",placement:"top"}},[r("el-button",{staticClass:"down-member-list__btn m-l-8",attrs:{type:"primary","limit-code":e.$buttonCode.memberTagExportPeople},on:{click:function(t){e.tableFiledVisible=!0}}},[r("i",{staticClass:"iconfont icon-xiazai",staticStyle:{"margin-right":"5px"}}),e._v("导出人群")])],1)]:e._e()],2)]),e._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.memberGroupDetailData},on:{"sort-change":e.sortChange}},[e._l(e.selectedFields,function(t){return r("el-table-column",{key:t.code,attrs:{sortable:"name"!=t.code&&"grade"!=t.code&&"status"!=t.code&&"channel"!=t.code&&"createCardStoreName"!=t.code&&"cardNo"!=t.code&&"forzenStatus"!=t.code&&"mainStoreName"!=t.code&&"costCategory"!=t.code&&"custom",prop:t.code,fixed:"name"==t.code,"min-width":"name"==t.code?260:200,label:t.name},scopedSlots:e._u([{key:"default",fn:function(o){return["name"==t.code?[r("div",{staticClass:"tablecontent-cell",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.linkDetail(o.row.memberId,o.row.isWeixinMember)}}},[r("span",[r("div",{staticClass:"flex"},[r("span",{staticClass:"table-member__img inline-block middle border-box m-r-10"},[r("img",{attrs:{src:o.row.thirdImgUrl?o.row.thirdImgUrl:a("OFPh")}})]),e._v(" "),r("div",{staticClass:"inline-block"},[r("span",[e._v(e._s(o.row.memberName)),o.row.nickName?r("span",{staticClass:"tips"},[e._v(" ("+e._s(o.row.nickName)+")")]):e._e()]),e._v(" "),r("p",[e._v(e._s(o.row.phoneNumber))])])])])])]:e._e(),e._v(" "),"grade"==t.code?[e._v("\n "+e._s(o.row.gradeName)+"\n ")]:e._e(),e._v(" "),"status"==t.code?[Array.isArray(o.row.memberSources)&&0!=o.row.memberSources.filter(function(e){return 1==e.highlight||2==e.highlight}).length?e._l((o.row.memberSources||[]).filter(function(e){return 1==e.highlight||2==e.highlight}),function(t){return r("span",{key:t.parentSourceCode,staticClass:"channel-box"},[1==t.highlight?[1100==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("N5cG"),alt:""}}):e._e(),e._v(" "),1600==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("yTU0"),alt:""}}):e._e(),e._v(" "),1700==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("UHeg"),alt:""}}):e._e(),e._v(" "),1303==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("QqnO"),alt:""}}):e._e(),e._v(" "),1302==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("Mf6J"),alt:""}}):e._e(),e._v(" "),1304==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("ftDi"),alt:""}}):e._e()]:e._e(),e._v(" "),2==t.highlight?[1100==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("tqzs"),alt:""}}):e._e(),e._v(" "),1600==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("UuGo"),alt:""}}):e._e(),e._v(" "),1700==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("J7kc"),alt:""}}):e._e(),e._v(" "),1303==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("OpU4"),alt:""}}):e._e(),e._v(" "),1302==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("Ipa6"),alt:""}}):e._e(),e._v(" "),1304==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("Uyt0"),alt:""}}):e._e()]:e._e()],2)}):[e._v("--")]]:e._e(),e._v(" "),"channel"==t.code?[r("span",{staticClass:"channelicon",class:0==o.row.channelTaobao?"taobaoicongray":1==o.row.channelTaobao?"taobaoicon":""}),e._v(" "),r("span",{staticClass:"channelicon",class:0==o.row.channelJd?"jdicongray":1==o.row.channelJd?"jdicon":""}),e._v(" "),r("span",{staticClass:"channelicon",class:0==o.row.channelWei?"vipicongray":1==o.row.channelWei?"vipicon":""})]:e._e(),e._v(" "),"crateCardDateString"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(o.row.crateCardDateString)))]),e._v(" "),r("div",[e._v(e._s(e._f("formatTimeHMS")(o.row.crateCardDateString)))])]:e._e(),e._v(" "),"createTime"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(o.row.createTime)))]),e._v(" "),r("div",[e._v(e._s(e._f("formatTimeHMS")(o.row.createTime)))])]:e._e(),e._v(" "),"attentionDate"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(o.row.attentionTime)))]),e._v(" "),r("div",[e._v(e._s(e._f("formatTimeHMS")(o.row.attentionTime)))])]:e._e(),e._v(" "),"costAll"==t.code?[r("span",[e._v("\n "+e._s(o.row.costFee)+"\n ")])]:e._e(),e._v(" "),"costTimes"==t.code?[r("div",[e._v(e._s(o.row.costTimes))])]:e._e(),e._v(" "),"lastCostTime"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(o.row.lastCostTime)))])]:e._e(),e._v(" "),"avgCost"==t.code?[e._v("\n "+e._s(o.row.avgCost)+"\n ")]:e._e(),e._v(" "),"avgNumber"==t.code?[e._v("\n "+e._s(o.row.avgNumber)+"\n ")]:e._e(),e._v(" "),"costCategory"==t.code?[e._v("\n "+e._s(o.row.costCategory)+"\n ")]:e._e(),e._v(" "),"discountRate"==t.code?[e._v("\n "+e._s(o.row.discountRate)+"\n ")]:e._e(),e._v(" "),"cancelAttentionTime"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(o.row.cancelAttentionTime)))]),e._v(" "),r("div",[e._v(e._s(e._f("formatTimeHMS")(o.row.cancelAttentionTime)))])]:e._e(),e._v(" "),"age"==t.code?[e._v("\n "+e._s(o.row.age)+"\n ")]:e._e(),e._v(" "),"birthday"==t.code?[e._v("\n "+e._s(o.row.birthdayMD)+"\n ")]:e._e(),e._v(" "),"storedValueAll"==t.code?[e._v("\n "+e._s(o.row.storedValueAll)+"\n ")]:e._e(),e._v(" "),"storedValueCurrent"==t.code?[e._v("\n "+e._s(o.row.storedValueCurrent)+"\n ")]:e._e(),e._v(" "),"pointsAll"==t.code?[e._v("\n "+e._s(o.row.pointsAll)+"\n ")]:e._e(),e._v(" "),"pointsCurrent"==t.code?[e._v("\n "+e._s(o.row.pointsCurrent)+"\n ")]:e._e(),e._v(" "),"mainStoreName"==t.code?[e._v("\n "+e._s(o.row.mainStoreName)+"\n ")]:e._e(),e._v(" "),"createCardStoreName"==t.code?[e._v("\n "+e._s(o.row.openStoreName)+"\n ")]:e._e(),e._v(" "),"cardNo"==t.code?[e._v("\n "+e._s(o.row.cardNo)+"\n ")]:e._e(),e._v(" "),"openClerkId"==t.code?[e._v("\n "+e._s(o.row.openClerkName||"--")+"\n ")]:e._e(),e._v(" "),"clerkId"==t.code?[e._v("\n "+e._s(o.row.clerkName||"--")+"\n ")]:e._e(),e._v(" "),"frozenStatus"==t.code?[0==o.row.frozenStatus?r("span",{staticClass:"dm-status--success"},[e._v("正常")]):e._e(),e._v(" "),1==o.row.frozenStatus?r("span",{staticClass:"dm-status--warning"},[e._v("冻结")]):e._e()]:e._e(),e._v(" "),"lastCost"==t.code?[e._v("\n "+e._s(o.row.lastCost)+"\n ")]:e._e(),e._v(" "),"highCost"===t.code?[r("span",[e._v(e._s(o.row.highCost))])]:e._e(),e._v(" "),"costFeePaid"===t.code?[r("span",[e._v(e._s(o.row.costFeePaid))])]:e._e(),e._v(" "),"lastCostPaid"===t.code?[r("span",[e._v(e._s(o.row.lastCostPaid))])]:e._e(),e._v(" "),"highCostPaid"===t.code?[r("span",[e._v(e._s(o.row.highCostPaid))])]:e._e()]}}])})}),e._v(" "),r("el-table-column",{attrs:{"label-class-name":"table-header__handle","min-width":160,fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return e.$getButtonLimit(e.$buttonCode.memberTagToCheck)?[t.row.isWeixinMember?r("a",{staticClass:"el-button el-button--text",attrs:{rel:"nofollow noopener noreferrer",target:"_blank","limit-code":e.$buttonCode.memberTagToCheck,href:"/member/#/wechatmemberDetail?memberId="+t.row.memberId+"&channel=wxMember&fromPage=memberGroup"}},[e._v("查看")]):r("a",{staticClass:"el-button el-button--text",attrs:{rel:"nofollow noopener noreferrer",target:"_blank","limit-code":e.$buttonCode.memberTagToCheck,href:"/member/#/posmemberDetail?memberId="+t.row.memberId+"&channel=posMember&fromPage=memberGroup"}},[e._v("查看")])]:void 0}}],!0)},[r("template",{slot:"header"},[r("span",[e._v("操作")]),e._v(" "),r("i",{staticClass:"el-icon-setting",on:{click:e.showDefined}})])],2)],2)],1),e._v(" "),0!=e.memberGroupDetailData.length?r("div",{staticClass:"block common-wrap__page text-right"},[r("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()])]),e._v(" "),r("userDefined",{attrs:{fieldsData:e.memberFields,selectedData:e.selectedUserDefined,showUserDefined:e.showUserDefined},on:{hideUserDefined:e.hideUserDefined,confirmUserDefined:e.confirmUserDefined}}),e._v(" "),r("vue-gic-export-excel",{attrs:{dialogVisible:e.downMemberListPop.show,excelUrl:e.downMemberListPop.excelUrl,params:e.downMemberListPop.params,dataArr:e.memberGroupDetailData,type:"2",projectName:"member-tag"},on:{"update:dialogVisible":function(t){return e.$set(e.downMemberListPop,"show",t)},"update:dialog-visible":function(t){return e.$set(e.downMemberListPop,"show",t)}}}),e._v(" "),r("dm-table-filed",{attrs:{visible:e.tableFiledVisible,projectName:"member-tag",pageName:"memberTag",max:20,defaultDisabled:["memberName"],checkedFields:e.checkFields},on:{"update:visible":function(t){e.tableFiledVisible=t},submit:e.onSubmiTableFiled}})],1)},staticRenderFns:[]};var g=a("VU/8")(m,u,!1,function(e){a("jeuX")},"data-v-54ceeb58",null);t.default=g.exports},Y3qZ:function(e,t){},jeuX:function(e,t){},xjRm:function(e,t){}}); webpackJsonp([7],{"+/ey":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Dd8w"),s=a.n(r),o=(a("Y3qZ"),a("G9rT")),i={name:"selected-tags-list",props:{tagsList:{type:Array,required:!0}},computed:{tagsListFilter:function(){return this.tagsList.filter(function(e){return e.length>0})}},methods:{getTagVal:function(e){var t=JSON.parse(e.tagParams);return t.selectedVal.includes("$^")?t.selectedVal.replace(/\$\^/g," "):t.selectedVal}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex tags"},e._l(e.tagsListFilter,function(t,r){return a("div",{key:t,staticClass:"tag-group",style:"width: "+100/e.tagsList.length+"%"},[a("ul",{staticClass:"tag-list"},e._l(t,function(t){return a("li",{key:t.tagId,staticClass:"tag-item"},[a("el-tooltip",[a("span",{staticClass:"tags-item__name"},[e._v(e._s(t.tagName)+"【选择:"+e._s(e.getTagVal(t))+"】")]),e._v(" "),a("div",{staticStyle:{"max-width":"400px","font-size":"14px"},attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(t.tagName)+"【选择:"+e._s(e.getTagVal(t))+"】\n ")])])],1)}),0),e._v(" "),r<e.tagsListFilter.length-1?a("div",{staticClass:"tag-relation"},[a("span",{staticClass:"tag-relation__wrap"},[a("i",{staticClass:"tag-relation__cont"},[e._v("\n "+e._s("or"===e.tagsListFilter[r+1][0].levelType?"或者":"andNot"===e.tagsListFilter[r+1][0].levelType?"剔除":"")+"\n ")])])]):e._e()])}),0)},staticRenderFns:[]};var l=a("VU/8")(i,n,!1,function(e){a("xjRm")},"data-v-ef99d670",null).exports,c=a("Ch4/"),d=a("P9l9"),m={name:"memberGroupDetail",data:function(){return{canEdit:!1,loading:!0,showUserDefined:!1,memberFields:[],selectedUserDefined:[],selectedFields:[],downMemberListPop:{canDown:!1,show:!1,excelUrl:"/gic-member-tag-web/member-tag-member/memberExportExcel",params:{memberTagGroupId:"",requestProject:"member-tag",exportFields:""}},groupName:"分组名称",groupIsRealTime:1,selectedTagData:[],sortableFlag:!1,memberGroupDetailData:[],memberGroupDetailDataBack:[],currentPage:1,pageSize:20,total:0,singleInfo:{sex:0,age:0,cardNo:0,mainStoreName:"dd",costFee:0,costTimes:0,lastCost:0,numOfSale:0,numOfmarket:0,couponCount:0,status:0,wxStatus:0,phoneStatus:0,authStatus:0},baseUrl:"",sortFiled:"",order:"",tagSearch:"",tableFiledVisible:!1,fixedPileValue:{},fixedPileSelect:"",checkFields:["cardNo","gradeName","crateCardDateStringFormat","lastCostTimeFormat","costTimes","avgCost","birthdayMDFormat","pointsCurrent","costAll","mainStoreName","openStoreName"]}},computed:{navpath:function(){return console.log(window.location.origin,"origin"),[{name:"首页",path:window.location.origin+"/report/#/memberSummary",relocation:!0},{name:"会员管理",path:""},{name:"会员分组",path:"/memberGroupList"},{name:"会员分组详情",path:""}]}},filters:{formatTimeYMD:function(e){if(e&&e>0){var t=e.toString().split("");return t.splice(0,4).join("")+"-"+t.splice(0,2).join("")+"-"+t.splice(0,2).join("")}return"--"},formatTimeHMS:function(e){if(e&&e>0){var t=e.toString().split("");return t.splice(0,8),t.splice(0,2).join("")+":"+t.splice(0,2).join("")+":"+t.splice(0,2).join("")}return"--"}},methods:{canDownMemberList:function(){var e=this;Object(d.a)("/member-tag-member/isExportEnterprise",{}).then(function(t){0==t.data.errorCode&&(e.downMemberListPop.canDown="true"===t.data.result||!0===t.data.result)})},separator:function(e){return(e+="").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")},sortChange:function(e){e.column;var t=e.prop,a=e.order;console.log(t,a),this.sortFiled=t,this.order="descending"==a?"desc":"asc",this.getGroupDetail()},getTagValueDtoList:function(){var e=this,t=this,a={memberTagGroupId:t.$route.query.memberTagGroupId};Object(d.a)("/member-tag-group/findOneDetial.json",a).then(function(a){t.groupName=a.data.result.tagGroupDto.groupName,t.canEdit=a.data.result.tagGroupDto.canEdit,t.groupIsRealTime=a.data.result.tagGroupDto.isRealTime,t.fixedPileValue=a.data.result.tagGroupDto.fixedPile||{};var r=a.data.result.tagValueDtoList;r.forEach(function(e){e.tagParams&&(e.tagParams=JSON.parse(e.tagParams))}),e.selectedTagData=r}).catch(function(e){console.log(e,"error of getTagValueDtoList")})},showDefined:function(){this.showUserDefined=!0},hideUserDefined:function(e){this.showUserDefined=e},confirmUserDefined:function(e){var t=this;if(console.log(e),e.length<1)return this.$message.error({duration:1e3,message:"请选择自定义字段"}),!1;this.loading=!0;var a=e.join(",");this.selectedUserDefined=e,this.showUserDefined=!1,this.selectedFields=[],this.selectedFields=this.memberFields.filter(function(e){return t.selectedUserDefined.includes(e.code)}),this.saveFieldsList(a).then(function(){t.loading=!1})},saveFieldsList:function(e){var t={pageName:"notMember,wxOpenCarMember,posMember",fields:e};return this.axios.post(this.baseUrl+"/api-member/update-fields?requestProject=memberTag",t)},handleSizeChange:function(e){console.log("每页 "+e+" 条"),this.pageSize=e,this.getGroupDetail()},handleCurrentChange:function(e){console.log("当前页: "+e),this.currentPage=e,this.getGroupDetail()},getGroupDetail:function(e){var t=this,a={memberTagGroupId:t.$route.query.memberTagGroupId,pageNum:t.currentPage,pageSize:t.pageSize,sortColName:t.sortFiled,sortType:t.order,search:t.tagSearch,fixedPile:t.fixedPileSelect};Object(d.a)("/member-tag-member/findMemberList.json",a).then(function(a){t.total=a.data.result.page.totalCount,t.memberGroupDetailData=a.data.result.page.result,e&&(e.forEach(function(e,a){"name"===e.code?(e.check=!0,e.disabled=!0,t.selectedUserDefined.push(e.code),t.selectedFields.push(e)):e.check&&(t.selectedUserDefined.push(e.code),t.selectedFields.push(e))}),console.log(t.selectedFields),console.log(t.memberGroupDetailData)),t.loading=!1}).catch(function(e){console.log(e,"error of get group detail"),t.loading=!1})},clearSearch:function(){this.tagSearch="",this.currentPage=1,this.getGroupDetail()},enterSearch:function(){this.currentPage=1,this.getGroupDetail()},onSearch:function(){this.currentPage=1,this.getGroupDetail()},linkDetail:function(e,t){this.$getButtonLimit(this.$buttonCode.memberTagToCheck)&&window.open(t?window.location.origin+"/member/#/wechatmemberDetail?memberId="+e+"&channel=wxMember&fromPage=memberGroup":window.location.origin+"/member/#/posmemberDetail?memberId="+e+"&channel=posMember&fromPage=memberGroup")},showSingleInfo:function(e){var t=this,a={memberId:e};t.singleInfo="",t.axios.post(t.baseUrl+"/api-member/load-member-single-info?requestProject=memberTag",a).then(function(e){var a=e.data;if(0!=a.errorCode)c.a.errorMsg(a);else{var r=a.result.memberSingle;t.singleInfo=s()({},r,{sex:0==r.sex?"性别未知":1==r.sex?"男":"女",age:0!=r.age?r.age:"年龄未知",cardNo:r.cardNo?r.cardNo:"无会员卡",mainStoreName:r.mainStoreName?r.mainStoreName:"主门店未知"})}}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getFieldsList:function(){var e=this;e.selectedUserDefined=[],e.selectedFields=[],e.axios.post(e.baseUrl+"/api-member/find-member-fields?requestProject=memberTag",{pageName:"notMember,wxOpenCarMember,posMember"}).then(function(t){console.log(t,"自定义列表字段");var a=t.data;if(0==a.errorCode)return e.memberFields=a.result,void e.getGroupDetail(a.result);c.a.errorMsg(a)}).catch(function(t){console.log(t),e.$message.error({duration:1e3,message:t.message})})},onSubmiTableFiled:function(e){var t=this.downMemberListPop.params;this.downMemberListPop.show=!0,t.exportFields=e.toString()},fixedPileRate:function(e){return this.fixedPileValue.value.reduce(function(t,a,r,s){return t+(a[e]||0)+(r<s.length-1?" :":"")},"")}},beforeMount:function(){var e=window.location.origin;"-1"!=e.indexOf("localhost")?this.baseUrl="http://gicdev.demogic.com":this.baseUrl=e},mounted:function(){var e=window.location.origin,t=this.$route.query.memberTagGroupId;-1!=e.indexOf("localhost")&&(e="http://gicdev.demogic.com"),this.downMemberListPop.params.memberTagGroupId=t,this.downMemberListPop.excelUrl=e+this.downMemberListPop.excelUrl,this.getTagValueDtoList(),this.getFieldsList(),document.getElementById("app").style.zIndex="auto"},components:{userDefined:o.a,selectedTagsList:l}},u={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"memberGroupDetail-wrap common-wrap"},[r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box"},[r("div",{staticClass:"memberGroupDetail-wrap__info"},[r("dm-sub-title",{attrs:{text:e.groupName}}),e._v(" "),r("div",{staticClass:"title-wrap"},[r("p",[r("span",{staticClass:"bold m-r-10"},[e._v("覆盖人数:")]),e._v(e._s(e.separator(e.total)))]),e._v(" "),r("div",{staticClass:"tags-flex"},[r("div",{staticClass:"memberGroupDetail-wrap__head"},[r("span",{staticClass:"bold"},[e._v("筛选标签:")]),e._v(" "),r("selected-tags-list",{staticClass:"m-t-8",attrs:{tagsList:e.selectedTagData}})],1)]),e._v(" "),e.fixedPileValue&&e.fixedPileValue.value&&2==e.$route.query.type?r("p",{staticClass:"fixedPiel"},[r("span",{staticStyle:{"margin-right":"60px"}},[r("span",{staticClass:"bold"},[e._v("分堆比例:")]),e._v(" "),r("span",[e._v(e._s(e.fixedPileRate("currSize")))])]),e._v(" "),r("span",[r("span",{staticClass:"bold"},[e._v("分堆人数:")]),e._v(" "),r("span",[e._v(e._s(e.fixedPileRate("memberCount")))])])]):e._e()])],1),e._v(" "),r("div",{staticClass:"memberGroupDetail-wrap__table"},[r("div",{staticClass:"table-options"},[r("div",{staticStyle:{"font-size":"0"}},[2==e.$route.query.type?r("el-select",{staticClass:"m-r-10 w-160",attrs:{placeholder:"请选择分堆人群",clearable:""},on:{change:e.onSearch},model:{value:e.fixedPileSelect,callback:function(t){e.fixedPileSelect=t},expression:"fixedPileSelect"}},e._l(e.fixedPileValue.value,function(t){return r("el-option",{key:t.groupId,attrs:{value:t.groupId,label:t.groupName}},[e._v(e._s(t.groupName))])}),1):e._e(),e._v(" "),r("el-input",{staticClass:"m-r-8",staticStyle:{margin:"20px 0",width:"270px"},attrs:{placeholder:"请输入姓名/昵称/手机号/会员卡号","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.enterSearch(t)}},model:{value:e.tagSearch,callback:function(t){e.tagSearch=t},expression:"tagSearch"}})],1),e._v(" "),r("div",{staticClass:"btn-group"},[e.$getButtonLimit(e.$buttonCode.memberTagExportPeople)?[e.total<1e6?r("el-button",{staticClass:"down-member-list__btn m-l-8",attrs:{type:"primary","limit-code":e.$buttonCode.memberTagExportPeople},on:{click:function(t){e.tableFiledVisible=!0}}},[r("i",{staticClass:"iconfont icon-xiazai",staticStyle:{"margin-right":"5px"}}),e._v("导出人群")]):r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"每张报表导出人数限制为100万,大于100万的人群会自动拆分为多张报表进行导出",placement:"top"}},[r("el-button",{staticClass:"down-member-list__btn m-l-8",attrs:{type:"primary","limit-code":e.$buttonCode.memberTagExportPeople},on:{click:function(t){e.tableFiledVisible=!0}}},[r("i",{staticClass:"iconfont icon-xiazai",staticStyle:{"margin-right":"5px"}}),e._v("导出人群")])],1)]:e._e()],2)]),e._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.memberGroupDetailData},on:{"sort-change":e.sortChange}},[e._l(e.selectedFields,function(t){return r("el-table-column",{key:t.code,attrs:{sortable:"name"!=t.code&&"grade"!=t.code&&"status"!=t.code&&"channel"!=t.code&&"createCardStoreName"!=t.code&&"cardNo"!=t.code&&"forzenStatus"!=t.code&&"mainStoreName"!=t.code&&"costCategory"!=t.code&&"custom",prop:t.code,fixed:"name"==t.code,"min-width":"name"==t.code?260:200,label:t.name},scopedSlots:e._u([{key:"default",fn:function(s){return["name"==t.code?[r("div",{staticClass:"tablecontent-cell",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.linkDetail(s.row.memberId,s.row.isWeixinMember)}}},[r("span",[r("div",{staticClass:"flex"},[r("span",{staticClass:"table-member__img inline-block middle border-box m-r-10"},[r("img",{attrs:{src:s.row.thirdImgUrl?s.row.thirdImgUrl:a("OFPh")}})]),e._v(" "),r("div",{staticClass:"inline-block"},[r("span",[e._v(e._s(s.row.memberName)),s.row.nickName?r("span",{staticClass:"tips"},[e._v(" ("+e._s(s.row.nickName)+")")]):e._e()]),e._v(" "),r("p",[e._v(e._s(s.row.phoneNumber))])])])])])]:e._e(),e._v(" "),"grade"==t.code?[e._v("\n "+e._s(s.row.gradeName)+"\n ")]:e._e(),e._v(" "),"status"==t.code?[Array.isArray(s.row.memberSources)&&0!=s.row.memberSources.filter(function(e){return 1==e.highlight||2==e.highlight}).length?e._l((s.row.memberSources||[]).filter(function(e){return 1==e.highlight||2==e.highlight}),function(t){return r("span",{key:t.parentSourceCode,staticClass:"channel-box"},[1==t.highlight?[1100==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("N5cG"),alt:""}}):e._e(),e._v(" "),1600==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("yTU0"),alt:""}}):e._e(),e._v(" "),1700==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("UHeg"),alt:""}}):e._e(),e._v(" "),1303==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("QqnO"),alt:""}}):e._e(),e._v(" "),1302==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("Mf6J"),alt:""}}):e._e(),e._v(" "),1304==t.parentSourceCode?r("span",[1==t.activeFlag?r("img",{staticClass:"channel-icon",attrs:{src:a("ftDi"),alt:""}}):e._e(),e._v(" "),1!=t.activeFlag?r("img",{staticClass:"channel-icon",attrs:{src:a("lbg2"),alt:""}}):e._e()]):e._e()]:e._e(),e._v(" "),2==t.highlight?[1100==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("tqzs"),alt:""}}):e._e(),e._v(" "),1600==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("UuGo"),alt:""}}):e._e(),e._v(" "),1700==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("J7kc"),alt:""}}):e._e(),e._v(" "),1303==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("OpU4"),alt:""}}):e._e(),e._v(" "),1302==t.parentSourceCode?r("img",{staticClass:"channel-icon",attrs:{src:a("Ipa6"),alt:""}}):e._e(),e._v(" "),1304==t.parentSourceCode?r("span",[1==t.activeFlag?r("img",{staticClass:"channel-icon",attrs:{src:a("Uyt0"),alt:""}}):e._e(),e._v(" "),1!=t.activeFlag?r("img",{staticClass:"channel-icon",attrs:{src:a("lbg2"),alt:""}}):e._e()]):e._e()]:e._e()],2)}):[e._v("--")]]:e._e(),e._v(" "),"channel"==t.code?[r("span",{staticClass:"channelicon",class:0==s.row.channelTaobao?"taobaoicongray":1==s.row.channelTaobao?"taobaoicon":""}),e._v(" "),r("span",{staticClass:"channelicon",class:0==s.row.channelJd?"jdicongray":1==s.row.channelJd?"jdicon":""}),e._v(" "),r("span",{staticClass:"channelicon",class:0==s.row.channelWei?"vipicongray":1==s.row.channelWei?"vipicon":""})]:e._e(),e._v(" "),"crateCardDateString"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(s.row.crateCardDateString)))]),e._v(" "),r("div",[e._v(e._s(e._f("formatTimeHMS")(s.row.crateCardDateString)))])]:e._e(),e._v(" "),"createTime"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(s.row.createTime)))]),e._v(" "),r("div",[e._v(e._s(e._f("formatTimeHMS")(s.row.createTime)))])]:e._e(),e._v(" "),"attentionDate"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(s.row.attentionTime)))]),e._v(" "),r("div",[e._v(e._s(e._f("formatTimeHMS")(s.row.attentionTime)))])]:e._e(),e._v(" "),"costAll"==t.code?[r("span",[e._v("\n "+e._s(s.row.costFee)+"\n ")])]:e._e(),e._v(" "),"costTimes"==t.code?[r("div",[e._v(e._s(s.row.costTimes))])]:e._e(),e._v(" "),"lastCostTime"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(s.row.lastCostTime)))])]:e._e(),e._v(" "),"avgCost"==t.code?[e._v("\n "+e._s(s.row.avgCost)+"\n ")]:e._e(),e._v(" "),"avgNumber"==t.code?[e._v("\n "+e._s(s.row.avgNumber)+"\n ")]:e._e(),e._v(" "),"costCategory"==t.code?[e._v("\n "+e._s(s.row.costCategory)+"\n ")]:e._e(),e._v(" "),"discountRate"==t.code?[e._v("\n "+e._s(s.row.discountRate)+"\n ")]:e._e(),e._v(" "),"cancelAttentionTime"==t.code?[r("div",[e._v(e._s(e._f("formatTimeYMD")(s.row.cancelAttentionTime)))]),e._v(" "),r("div",[e._v(e._s(e._f("formatTimeHMS")(s.row.cancelAttentionTime)))])]:e._e(),e._v(" "),"age"==t.code?[e._v("\n "+e._s(s.row.age)+"\n ")]:e._e(),e._v(" "),"birthday"==t.code?[e._v("\n "+e._s(s.row.birthdayMD)+"\n ")]:e._e(),e._v(" "),"storedValueAll"==t.code?[e._v("\n "+e._s(s.row.storedValueAll)+"\n ")]:e._e(),e._v(" "),"storedValueCurrent"==t.code?[e._v("\n "+e._s(s.row.storedValueCurrent)+"\n ")]:e._e(),e._v(" "),"pointsAll"==t.code?[e._v("\n "+e._s(s.row.pointsAll)+"\n ")]:e._e(),e._v(" "),"pointsCurrent"==t.code?[e._v("\n "+e._s(s.row.pointsCurrent)+"\n ")]:e._e(),e._v(" "),"mainStoreName"==t.code?[e._v("\n "+e._s(s.row.mainStoreName)+"\n ")]:e._e(),e._v(" "),"createCardStoreName"==t.code?[e._v("\n "+e._s(s.row.openStoreName)+"\n ")]:e._e(),e._v(" "),"cardNo"==t.code?[e._v("\n "+e._s(s.row.cardNo)+"\n ")]:e._e(),e._v(" "),"openClerkId"==t.code?[e._v("\n "+e._s(s.row.openClerkName||"--")+"\n ")]:e._e(),e._v(" "),"clerkId"==t.code?[e._v("\n "+e._s(s.row.clerkName||"--")+"\n ")]:e._e(),e._v(" "),"frozenStatus"==t.code?[0==s.row.frozenStatus?r("span",{staticClass:"dm-status--success"},[e._v("正常")]):e._e(),e._v(" "),1==s.row.frozenStatus?r("span",{staticClass:"dm-status--warning"},[e._v("冻结")]):e._e()]:e._e(),e._v(" "),"lastCost"==t.code?[e._v("\n "+e._s(s.row.lastCost)+"\n ")]:e._e(),e._v(" "),"highCost"===t.code?[r("span",[e._v(e._s(s.row.highCost))])]:e._e(),e._v(" "),"costFeePaid"===t.code?[r("span",[e._v(e._s(s.row.costFeePaid))])]:e._e(),e._v(" "),"lastCostPaid"===t.code?[r("span",[e._v(e._s(s.row.lastCostPaid))])]:e._e(),e._v(" "),"highCostPaid"===t.code?[r("span",[e._v(e._s(s.row.highCostPaid))])]:e._e()]}}])})}),e._v(" "),r("el-table-column",{attrs:{"label-class-name":"table-header__handle","min-width":160,fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return e.$getButtonLimit(e.$buttonCode.memberTagToCheck)?[t.row.isWeixinMember?r("a",{staticClass:"el-button el-button--text",attrs:{rel:"nofollow noopener noreferrer",target:"_blank","limit-code":e.$buttonCode.memberTagToCheck,href:"/member/#/wechatmemberDetail?memberId="+t.row.memberId+"&channel=wxMember&fromPage=memberGroup"}},[e._v("查看")]):r("a",{staticClass:"el-button el-button--text",attrs:{rel:"nofollow noopener noreferrer",target:"_blank","limit-code":e.$buttonCode.memberTagToCheck,href:"/member/#/posmemberDetail?memberId="+t.row.memberId+"&channel=posMember&fromPage=memberGroup"}},[e._v("查看")])]:void 0}}],!0)},[r("template",{slot:"header"},[r("span",[e._v("操作")]),e._v(" "),r("i",{staticClass:"el-icon-setting",on:{click:e.showDefined}})])],2)],2)],1),e._v(" "),0!=e.memberGroupDetailData.length?r("div",{staticClass:"block common-wrap__page text-right"},[r("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()])]),e._v(" "),r("userDefined",{attrs:{fieldsData:e.memberFields,selectedData:e.selectedUserDefined,showUserDefined:e.showUserDefined},on:{hideUserDefined:e.hideUserDefined,confirmUserDefined:e.confirmUserDefined}}),e._v(" "),r("vue-gic-export-excel",{attrs:{dialogVisible:e.downMemberListPop.show,excelUrl:e.downMemberListPop.excelUrl,params:e.downMemberListPop.params,dataArr:e.memberGroupDetailData,type:"2",projectName:"member-tag"},on:{"update:dialogVisible":function(t){return e.$set(e.downMemberListPop,"show",t)},"update:dialog-visible":function(t){return e.$set(e.downMemberListPop,"show",t)}}}),e._v(" "),r("dm-table-filed",{attrs:{visible:e.tableFiledVisible,projectName:"member-tag",pageName:"memberTag",max:20,defaultDisabled:["memberName"],checkedFields:e.checkFields},on:{"update:visible":function(t){e.tableFiledVisible=t},submit:e.onSubmiTableFiled}})],1)},staticRenderFns:[]};var g=a("VU/8")(m,u,!1,function(e){a("pKuQ")},"data-v-4651b897",null);t.default=g.exports},Y3qZ:function(e,t){},pKuQ:function(e,t){},xjRm:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([45],{0:function(e,t,a){a("j1ja"),e.exports=a("NHnr")},"4qCZ":function(e,t){},"5reh":function(e,t,a){"use strict";a.d(t,"a",function(){return n}),a.d(t,"b",function(){return o}),a.d(t,"d",function(){return r}),a.d(t,"c",function(){return m});var n="login",o="logout",r="title",m="show"},"5tgt":function(e,t,a){e.exports=function(e,t){return function(n){a("Vna/")("./"+e+"/"+t+".vue").then(function(e){n(e)})}}},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("//Fk"),o=a.n(n),r=a("hKoQ"),m=a.n(r),i=a("Dd8w"),u=a.n(i),l=a("SJI6"),c=a.n(l),p={name:"App",data:function(){return{}},computed:u()({},Object(l.mapState)(["uniqueId"])),created:function(){this.baseUrl=window.location.origin.indexOf("localhost")>-1?"http://gicdev.demogic.com":window.location.origin,this._getUserInfo(),this.changeTab()},methods:{laout:function(){this.axios.get(this.baseUrl+"/api-auth/do-logout?requestProject=gic-member-tag-web")},_getUserInfo:function(){var e=this;this.axios.get(this.baseUrl+"/api-auth/get-login-user-info?requestProject=gic-member-tag-web").then(function(t){if(0==t.data.errorCode){var a=t.data.result&&t.data.result.userId,n=t.data.result&&t.data.result.superAdmin,o=t.data.result&&t.data.result.departAuth,r=t.data.result&&t.data.result.enableAccessControl;e.$store.commit("changeEnableAccess",r),e.$store.commit("changeSuperAdmin",n),e.$store.commit("changeDepartAuth",o),""===e.uniqueId&&e.$store.commit("changeUniqueId",a)}})},changeTab:function(){var e=this;document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState&&e.axios.get(e.baseUrl+"/api-auth/get-login-user-info?requestProject=gic-member-tag-web").then(function(t){if(0==t.data.errorCode){var a=t.data.result&&t.data.result.userId;e.uniqueId!==a&&(e.$store.commit("changeUniqueId",a),e.$confirm("当前登录账号已经发生变化,如果您在其他页面已经登录另一个账号,请重新登录!","登录账号变更提示",{confirmButtonText:"重新登录",cancelButtonText:"刷新页面",type:"error"}).then(function(){window.location.href="/gic-web/#/login"}).catch(function(){window.location.href="/report"}))}})})}}},s={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var g=a("VU/8")(p,s,!1,function(e){a("f9g5")},null,null).exports,d=a("pRNm"),f=a.n(d),v=a("5tgt"),b=a.n(v);var h=function(e,t){!function(e){if(e.$vnode){var t=e.$vnode||{},a=t.componentOptions,n=t.parent,o=t.key,r=n.componentInstance||{},m=r.cache,i=r.keys;if(m=m||{},i=Array.isArray(i)?i:[],!o){var u=a.Ctor,l=a.tag;o=u.cid+(l?"::"+l:"")}m[o]&&(Array.isArray(i)&&(e.$vnode.parent.componentInstance.keys=i.filter(function(e){return e!=o})),delete e.$vnode.parent.componentInstance.cache[o])}}(function e(t,a){var n={};return t.some(function(t){return t.$options.name==a?n=t:Array.isArray(t.$children)&&(n=e(t.$children,a)),n.$el}),n}(e,t))},T=function(e){a.e(1).then(a.bind(null,"EE2z")).then(function(t){e(t)})},y=[{path:"/",name:"index",redirect:"member-tag",component:b()("layout","layout"),children:[{path:"/member-tag",name:"会员标签",component:b()("platformTag","member-tag"),meta:{title:"会员标签",keepAlive:!0,componentName:"member-tag",fromPath:["/manualTagValueEdit"]}},{path:"/platformTagList",component:b()("platformTag","platformTagList"),name:"平台标签列表",meta:{title:"会员标签-平台标签列表"}},{path:"/platformTagDetail",component:b()("platformTag","platformTagDetail"),name:"平台标签详情",meta:{title:"会员标签-平台标签详情"}},{path:"/manualTagLib",component:b()("manualTag","manualTagLib"),name:"手工标签库",meta:{title:"会员标签-手工标签库"}},{path:"/manualTagList",component:b()("manualTag","manualTagList"),name:"手工标签列表",meta:{title:"会员标签-手工标签列表"}},{path:"/manualTagValueEdit",component:b()("manualTag","manual-tag-value-edit"),name:"标签值设置",meta:{title:"会员标签-标签值设置"}},{path:"/manualTagValueEditInfo",component:b()("manualTag","manual-tag-value-edit-info"),name:"标签值设置",meta:{title:"会员标签-会员标签详情"}},{path:"/syncTagHistory",component:b()("manualTag","syncTagHistory"),name:"同步标签",meta:{title:"会员标签-同步标签"}},{path:"/manualTagDetail",component:b()("manualTag","manualTagDetail"),name:"手工标签详情",meta:{title:"会员标签-手工标签详情"}},{path:"/myTagLib",component:b()("myTag","myTagLib"),name:"会员标签",meta:{title:"会员标签"}},{path:"/myTagList",component:b()("myTag","myTagList"),name:"我的标签库列表",meta:{title:"会员标签-我的标签库列表"}},{path:"/myTagDetail",component:b()("myTag","myTagDetail"),name:"标签详情",meta:{title:"会员标签-标签详情"}},{path:"/memberGroupList",name:"memberGroupListIndex",redirect:"memberGroupList",component:b()("memberGroup","index"),children:[{path:"/memberGroupList",component:b()("memberGroup","memberGroupList"),name:"会员分组",meta:{title:"会员标签-会员分组",keepAlive:!0,componentName:"memberGroupList",fromPath:["/memberGroupEdit","/memberLevelDetail","/memberGroupDetail","/memberGroupAdd"]}},{path:"/memberGroupDetail",component:b()("memberGroup","memberGroupDetail"),name:"分组详情",meta:{title:"会员标签-分组详情"}},{path:"/memberLevelDetail",component:b()("memberGroup","memberLevelDetail"),name:"分层详情",meta:{title:"会员标签-分层详情"}},{path:"/memberGroupAdd",component:b()("memberGroup","memberGroupEdit"),name:"新建分组",meta:{title:"会员标签-新建分组"}},{path:"/memberGroupEdit",component:b()("memberGroup","memberGroupEdit"),name:"编辑分组",meta:{title:"会员标签-编辑分组"}},{path:"/memberGroupLog",component:b()("memberGroup","member-group-log"),name:"分组操作日志",meta:{title:"分组操作日志"}}]}]},{path:"/403",name:"无权访问",component:T},{path:"/404",name:"error404",component:T},{path:"/500",name:"error500",component:T},{path:"*",redirect:"/404",hidden:!0}],G=new f.a({routes:y,base:"/member-tag/",scrollBehavior:function(){return{y:0}}});G.beforeEach(function(e,t,a){var n=e.meta||{},o=n.keepAlive,r=n.componentName,m=n.fromPath;o&&m.every(function(e){return"/"!=e})&&m.push("/"),o&&m.every(function(e){return e!=t.path})&&h(G.apps,r),a()});var w,L=G,x=a("l6IN"),A=a("Rf8U"),k=a.n(A),E=a("OMN4"),D=a.n(E),I=a("bOdI"),N=a.n(I),P=a("lRwf"),C=a.n(P),q=a("5reh");C.a.use(c.a);var $=new c.a.Store({state:{user:{},token:null,title:"",show:!1,tagRealName:"",uniqueId:"",isSuperAdmin:0,delTrashNum:0,enableAccessControl:0,departAuth:0},mutations:(w={},N()(w,q.a,function(e,t){sessionStorage.token=t,e.token=t}),N()(w,q.b,function(e){sessionStorage.removeItem("token"),e.token=null}),N()(w,q.d,function(e,t){e.title=t}),N()(w,q.c,function(e,t){e.show=t}),N()(w,"modiftTagName",function(e,t){e.tagRealName=t}),N()(w,"changeUniqueId",function(e,t){e.uniqueId=t||""}),N()(w,"changeSuperAdmin",function(e,t){e.isSuperAdmin=t}),N()(w,"changeDelTrashNum",function(e,t){e.delTrashNum=t}),N()(w,"changeEnableAccess",function(e,t){e.enableAccessControl=t}),N()(w,"changeDepartAuth",function(e,t){e.departAuth=t}),w)}),j=(a("Xcu2"),a("4qCZ"),a("uKUT"),a("GqmT")),S=a.n(j);m.a.polyfill(),window.ELEMENT.Dialog.props.closeOnClickModal.default=!1,C.a.use(S.a),C.a.config.devtools=!0,C.a.use(k.a,D.a),C.a.axios.defaults.withCredentials=!0,C.a.prototype.$toTaskCenter=function(e){this.$confirm("任务发起成功,请去【企业管理】-【任务中心】查看处理结果和执行进度","任务发起成功",{confirmButtonText:"去任务中心",cancelButtonText:"取消",closeOnClickModal:!1,customClass:"import-link-confirm-content",type:"warning"}).then(function(){window.open("/gic-web/#/taskDetail/"+e)}).catch(function(){return!0})},C.a.axios.interceptors.request.use(function(e){return e},function(e){return o.a.reject(e)}),C.a.axios.interceptors.response.use(function(e){return 200==e.status&&e.data.errorCode,e},function(e){if(e.response)switch(e.response.status){case 401:window.location.href=window.location.origin+"/gic-web/#/";case 500:x.Message.error("服务器500")}return o.a.reject(e.response.data)}),window.getLimit(L,"member-tag").then(function(){new C.a({el:"#app",router:L,store:$,components:{App:g},template:"<App/>"})})},OMN4:function(e,t){e.exports=axios},SJI6:function(e,t){e.exports=Vuex},"Vna/":function(e,t,a){var n={"./errorPage/401.vue":["4KSJ",11],"./errorPage/403.vue":["aM+6",10],"./errorPage/404.vue":["PRsh",8],"./errorPage/500.vue":["/HCr",9],"./errorPage/index.vue":["EE2z",1],"./index/index.vue":["YPWR",29],"./layout/layout.vue":["FNcP",43],"./linktools/linktools.vue":["Lc2x",0,25],"./linktools/linktoolsold.vue":["/8lq",0,22],"./linktools/linktoolspage.vue":["HLON",0,36],"./login/login.vue":["6Qob",0,21],"./manualTag/delete-tag-dialog.vue":["r9pr",0],"./manualTag/import-member-dialog.vue":["vRdD",35],"./manualTag/manual-tag-value-edit-info.vue":["y1vL",0,15],"./manualTag/manual-tag-value-edit.vue":["umZJ",0,4],"./manualTag/manualTagDetail.vue":["Tl/4",0,37],"./manualTag/manualTagEdit.vue":["308P",0,5],"./manualTag/manualTagLib.vue":["q490",0,31],"./manualTag/manualTagList.vue":["f0o3",0,18],"./manualTag/syncTagHistory.vue":["Gl7f",0,33],"./manualTag/tag-value-item.vue":["roJz",39],"./memberGroup/card-item.vue":["5kmy",0],"./memberGroup/choose-tag-table.vue":["BtI9",0,17],"./memberGroup/delete-deactive-dialog.vue":["mmLS",0,19],"./memberGroup/edit-tag.vue":["jkVl",0],"./memberGroup/group-list.vue":["SJ7l",0,32],"./memberGroup/index.vue":["Gy5W",24],"./memberGroup/member-group-log.vue":["8jHj",0,12],"./memberGroup/memberGroupDetail.vue":["+/ey",0,7],"./memberGroup/memberGroupEdit.vue":["q0vu",0,6],"./memberGroup/memberGroupList.vue":["oVck",0,3],"./memberGroup/memberLevelDetail.vue":["Y4Pr",0,14],"./memberGroup/pyramid-group-table.vue":["/CFs",0,38],"./memberGroup/recommend-table.vue":["9ZvA",42],"./memberGroup/tags-group-list.vue":["vcge",0],"./memberGroup/tags-group.vue":["wx1P",0],"./platformTag/add-tag.vue":["tKpj",41],"./platformTag/member-tag.vue":["bytj",0,2],"./platformTag/myTag/myTagDetail.vue":["cm2p",0,28],"./platformTag/myTag/myTagLib.vue":["EHeP",0,23],"./platformTag/myTag/myTagList.vue":["C8bH",0,26],"./platformTag/platformTagDetail.vue":["KN59",0,13],"./platformTag/platformTagLib.vue":["puJc",0,27],"./platformTag/platformTagList.vue":["G/on",0,34],"./platformTag/second-tag.vue":["CUHN",0],"./platformTag/tag-container-active.vue":["0c8U",0,40],"./platformTag/tag-container-system.vue":["SQwf",0,30],"./platformTag/tag-container.vue":["Gndl",0,20],"./platformTag/tag-type.vue":["iHP3",0,16]};function o(e){var t=n[e];return t?Promise.all(t.slice(1).map(a.e)).then(function(){return a(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}o.keys=function(){return Object.keys(n)},o.id="Vna/",e.exports=o},Xcu2:function(e,t){},f9g5:function(e,t){},l6IN:function(e,t){e.exports=ELEMENT},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
webpackJsonp([45],{0:function(e,t,a){a("j1ja"),e.exports=a("NHnr")},"4qCZ":function(e,t){},"5reh":function(e,t,a){"use strict";a.d(t,"a",function(){return n}),a.d(t,"b",function(){return o}),a.d(t,"d",function(){return r}),a.d(t,"c",function(){return m});var n="login",o="logout",r="title",m="show"},"5tgt":function(e,t,a){e.exports=function(e,t){return function(n){a("Vna/")("./"+e+"/"+t+".vue").then(function(e){n(e)})}}},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("//Fk"),o=a.n(n),r=a("hKoQ"),m=a.n(r),i=a("Dd8w"),u=a.n(i),l=a("SJI6"),c=a.n(l),p={name:"App",data:function(){return{}},computed:u()({},Object(l.mapState)(["uniqueId"])),created:function(){this.baseUrl=window.location.origin.indexOf("localhost")>-1?"http://gicdev.demogic.com":window.location.origin,this._getUserInfo(),this.changeTab()},methods:{laout:function(){this.axios.get(this.baseUrl+"/api-auth/do-logout?requestProject=gic-member-tag-web")},_getUserInfo:function(){var e=this;this.axios.get(this.baseUrl+"/api-auth/get-login-user-info?requestProject=gic-member-tag-web").then(function(t){if(0==t.data.errorCode){var a=t.data.result&&t.data.result.userId,n=t.data.result&&t.data.result.superAdmin,o=t.data.result&&t.data.result.departAuth,r=t.data.result&&t.data.result.enableAccessControl;e.$store.commit("changeEnableAccess",r),e.$store.commit("changeSuperAdmin",n),e.$store.commit("changeDepartAuth",o),""===e.uniqueId&&e.$store.commit("changeUniqueId",a)}})},changeTab:function(){var e=this;document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState&&e.axios.get(e.baseUrl+"/api-auth/get-login-user-info?requestProject=gic-member-tag-web").then(function(t){if(0==t.data.errorCode){var a=t.data.result&&t.data.result.userId;e.uniqueId!==a&&(e.$store.commit("changeUniqueId",a),e.$confirm("当前登录账号已经发生变化,如果您在其他页面已经登录另一个账号,请重新登录!","登录账号变更提示",{confirmButtonText:"重新登录",cancelButtonText:"刷新页面",type:"error"}).then(function(){window.location.href="/gic-web/#/login"}).catch(function(){window.location.href="/report"}))}})})}}},s={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var g=a("VU/8")(p,s,!1,function(e){a("f9g5")},null,null).exports,d=a("pRNm"),f=a.n(d),b=a("5tgt"),h=a.n(b),v=function(e){a.e(1).then(a.bind(null,"EE2z")).then(function(t){e(t)})},T=[{path:"/",name:"index",redirect:"member-tag",component:h()("layout","layout"),children:[{path:"/member-tag",name:"会员标签",component:h()("platformTag","member-tag"),meta:{title:"会员标签",keepAlive:!0,componentName:"member-tag",fromPath:["/manualTagValueEdit"]}},{path:"/platformTagList",component:h()("platformTag","platformTagList"),name:"平台标签列表",meta:{title:"会员标签-平台标签列表"}},{path:"/platformTagDetail",component:h()("platformTag","platformTagDetail"),name:"平台标签详情",meta:{title:"会员标签-平台标签详情"}},{path:"/manualTagLib",component:h()("manualTag","manualTagLib"),name:"手工标签库",meta:{title:"会员标签-手工标签库"}},{path:"/manualTagList",component:h()("manualTag","manualTagList"),name:"手工标签列表",meta:{title:"会员标签-手工标签列表"}},{path:"/manualTagValueEdit",component:h()("manualTag","manual-tag-value-edit"),name:"标签值设置",meta:{title:"会员标签-标签值设置"}},{path:"/manualTagValueEditInfo",component:h()("manualTag","manual-tag-value-edit-info"),name:"标签值设置",meta:{title:"会员标签-会员标签详情"}},{path:"/syncTagHistory",component:h()("manualTag","syncTagHistory"),name:"同步标签",meta:{title:"会员标签-同步标签"}},{path:"/manualTagDetail",component:h()("manualTag","manualTagDetail"),name:"手工标签详情",meta:{title:"会员标签-手工标签详情"}},{path:"/myTagLib",component:h()("myTag","myTagLib"),name:"会员标签",meta:{title:"会员标签"}},{path:"/myTagList",component:h()("myTag","myTagList"),name:"我的标签库列表",meta:{title:"会员标签-我的标签库列表"}},{path:"/myTagDetail",component:h()("myTag","myTagDetail"),name:"标签详情",meta:{title:"会员标签-标签详情"}},{path:"/memberGroupList",name:"memberGroupListIndex",redirect:"memberGroupList",component:h()("memberGroup","index"),children:[{path:"/memberGroupList",component:h()("memberGroup","memberGroupList"),name:"会员分组",meta:{title:"会员标签-会员分组",keepAlive:!0,componentName:"memberGroupList",fromPath:["/memberGroupEdit","/memberLevelDetail","/memberGroupDetail","/memberGroupAdd"]}},{path:"/memberGroupDetail",component:h()("memberGroup","memberGroupDetail"),name:"分组详情",meta:{title:"会员标签-分组详情"}},{path:"/memberLevelDetail",component:h()("memberGroup","memberLevelDetail"),name:"分层详情",meta:{title:"会员标签-分层详情"}},{path:"/memberGroupAdd",component:h()("memberGroup","memberGroupEdit"),name:"新建分组",meta:{title:"会员标签-新建分组"}},{path:"/memberGroupEdit",component:h()("memberGroup","memberGroupEdit"),name:"编辑分组",meta:{title:"会员标签-编辑分组"}},{path:"/memberGroupLog",component:h()("memberGroup","member-group-log"),name:"分组操作日志",meta:{title:"分组操作日志"}}]}]},{path:"/403",name:"无权访问",component:v},{path:"/404",name:"error404",component:v},{path:"/500",name:"error500",component:v},{path:"*",redirect:"/404",hidden:!0}],G=new f.a({routes:T,base:"/member-tag/",scrollBehavior:function(){return{y:0}}});G.beforeEach(function(e,t,a){var n=(t.meta||{}).fromPath,o=void 0===n?[]:n;t.meta.keepAlive=o.includes(e.path),a()});var y,w=G,L=a("l6IN"),x=a("Rf8U"),k=a.n(x),E=a("OMN4"),A=a.n(E),D=a("bOdI"),N=a.n(D),P=a("lRwf"),I=a.n(P),q=a("5reh");I.a.use(c.a);var C=new c.a.Store({state:{user:{},token:null,title:"",show:!1,tagRealName:"",uniqueId:"",isSuperAdmin:0,delTrashNum:0,enableAccessControl:0,departAuth:0},mutations:(y={},N()(y,q.a,function(e,t){sessionStorage.token=t,e.token=t}),N()(y,q.b,function(e){sessionStorage.removeItem("token"),e.token=null}),N()(y,q.d,function(e,t){e.title=t}),N()(y,q.c,function(e,t){e.show=t}),N()(y,"modiftTagName",function(e,t){e.tagRealName=t}),N()(y,"changeUniqueId",function(e,t){e.uniqueId=t||""}),N()(y,"changeSuperAdmin",function(e,t){e.isSuperAdmin=t}),N()(y,"changeDelTrashNum",function(e,t){e.delTrashNum=t}),N()(y,"changeEnableAccess",function(e,t){e.enableAccessControl=t}),N()(y,"changeDepartAuth",function(e,t){e.departAuth=t}),y)}),j=(a("Xcu2"),a("4qCZ"),a("uKUT"),a("GqmT")),S=a.n(j);m.a.polyfill(),window.ELEMENT.Dialog.props.closeOnClickModal.default=!1,I.a.use(S.a),I.a.config.devtools=!0,I.a.use(k.a,A.a),I.a.axios.defaults.withCredentials=!0,I.a.prototype.$toTaskCenter=function(e){this.$confirm("任务发起成功,请去【企业管理】-【任务中心】查看处理结果和执行进度","任务发起成功",{confirmButtonText:"去任务中心",cancelButtonText:"取消",closeOnClickModal:!1,customClass:"import-link-confirm-content",type:"warning"}).then(function(){window.open("/gic-web/#/taskDetail/"+e)}).catch(function(){return!0})},I.a.axios.interceptors.request.use(function(e){return e},function(e){return o.a.reject(e)}),I.a.axios.interceptors.response.use(function(e){return 200==e.status&&e.data.errorCode,e},function(e){if(e.response)switch(e.response.status){case 401:window.location.href=window.location.origin+"/gic-web/#/";case 500:L.Message.error("服务器500")}return o.a.reject(e.response.data)}),window.getLimit(w,"member-tag").then(function(){new I.a({el:"#app",router:w,store:C,components:{App:g},template:"<App/>"})})},OMN4:function(e,t){e.exports=axios},SJI6:function(e,t){e.exports=Vuex},"Vna/":function(e,t,a){var n={"./errorPage/401.vue":["4KSJ",11],"./errorPage/403.vue":["aM+6",10],"./errorPage/404.vue":["PRsh",8],"./errorPage/500.vue":["/HCr",9],"./errorPage/index.vue":["EE2z",1],"./index/index.vue":["YPWR",29],"./layout/layout.vue":["FNcP",43],"./linktools/linktools.vue":["Lc2x",0,25],"./linktools/linktoolsold.vue":["/8lq",0,22],"./linktools/linktoolspage.vue":["HLON",0,36],"./login/login.vue":["6Qob",0,21],"./manualTag/delete-tag-dialog.vue":["r9pr",0],"./manualTag/import-member-dialog.vue":["vRdD",35],"./manualTag/manual-tag-value-edit-info.vue":["y1vL",0,15],"./manualTag/manual-tag-value-edit.vue":["umZJ",0,4],"./manualTag/manualTagDetail.vue":["Tl/4",0,37],"./manualTag/manualTagEdit.vue":["308P",0,5],"./manualTag/manualTagLib.vue":["q490",0,31],"./manualTag/manualTagList.vue":["f0o3",0,18],"./manualTag/syncTagHistory.vue":["Gl7f",0,33],"./manualTag/tag-value-item.vue":["roJz",39],"./memberGroup/card-item.vue":["5kmy",0],"./memberGroup/choose-tag-table.vue":["BtI9",0,17],"./memberGroup/delete-deactive-dialog.vue":["mmLS",0,19],"./memberGroup/edit-tag.vue":["jkVl",0],"./memberGroup/group-list.vue":["SJ7l",0,32],"./memberGroup/index.vue":["Gy5W",24],"./memberGroup/member-group-log.vue":["8jHj",0,12],"./memberGroup/memberGroupDetail.vue":["+/ey",0,7],"./memberGroup/memberGroupEdit.vue":["q0vu",0,6],"./memberGroup/memberGroupList.vue":["oVck",0,3],"./memberGroup/memberLevelDetail.vue":["Y4Pr",0,14],"./memberGroup/pyramid-group-table.vue":["/CFs",0,38],"./memberGroup/recommend-table.vue":["9ZvA",42],"./memberGroup/tags-group-list.vue":["vcge",0],"./memberGroup/tags-group.vue":["wx1P",0],"./platformTag/add-tag.vue":["tKpj",41],"./platformTag/member-tag.vue":["bytj",0,2],"./platformTag/myTag/myTagDetail.vue":["cm2p",0,28],"./platformTag/myTag/myTagLib.vue":["EHeP",0,23],"./platformTag/myTag/myTagList.vue":["C8bH",0,26],"./platformTag/platformTagDetail.vue":["KN59",0,13],"./platformTag/platformTagLib.vue":["puJc",0,27],"./platformTag/platformTagList.vue":["G/on",0,34],"./platformTag/second-tag.vue":["CUHN",0],"./platformTag/tag-container-active.vue":["0c8U",0,40],"./platformTag/tag-container-system.vue":["SQwf",0,30],"./platformTag/tag-container.vue":["Gndl",0,20],"./platformTag/tag-type.vue":["iHP3",0,16]};function o(e){var t=n[e];return t?Promise.all(t.slice(1).map(a.e)).then(function(){return a(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}o.keys=function(){return Object.keys(n)},o.id="Vna/",e.exports=o},Xcu2:function(e,t){},f9g5:function(e,t){},l6IN:function(e,t){e.exports=ELEMENT},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,r,d){for(var t,b,o,i=0,u=[];i<c.length;i++)b=c[i],f[b]&&u.push(f[b][0]),f[b]=0;for(t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);for(a&&a(c,r,d);u.length;)u.shift()();if(d)for(i=0;i<d.length;i++)o=n(n.s=d[i]);return o};var c={},f={46:0};function n(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,n),f.l=!0,f.exports}n.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,n){a=f[e]=[c,n]});a[2]=c;var r=document.getElementsByTagName("head")[0],d=document.createElement("script");d.type="text/javascript",d.charset="utf-8",d.async=!0,d.timeout=12e4,n.nc&&d.setAttribute("nonce",n.nc),d.src=n.p+"static/js/"+e+"."+{0:"665d738a5f739f3a7a74",1:"a5b1143fb090193afa6f",2:"5f0c728239e6984ffd30",3:"ff305e5dc9d6506945c1",4:"d8eb0bf6cc0afb951c78",5:"2b76bfcb34e27514247e",6:"73c4cc952259800eebb9",7:"4c47ec34587d4554f310",8:"0ee171376d4ff4853265",9:"6745d9c9726c50323c7f",10:"b3e0655ae069b2914dce",11:"cfa61640d1a3d8d26b48",12:"ed35f742a5cdceb1f843",13:"04f66cbd91ce2ab0d824",14:"3579fb9c54d114b602fb",15:"1795eb2c89cf81f17b46",16:"fd8e0aca022b16e268de",17:"ee4ff30e9c5028d2ab9a",18:"04fef63821c104201b24",19:"4fcd3f0652be046eae2b",20:"2fa96d2046651d4bda7a",21:"1f6367e5dcf6de69a5bd",22:"4985a38ec89a12ab291d",23:"1e9aeacb85a469484d6e",24:"32ea2fce686ff5a02a83",25:"9631a7f7112daff44b57",26:"94037a1d26ca9ff1357c",27:"9da56a144273173dd58d",28:"c08b5446e0d6813e98ab",29:"ac3b9ad2c1fe8c5ea040",30:"4226ba90f06063c51c49",31:"7c02ba89e248eaadf07c",32:"079e1a2a7c4b75892e4d",33:"00364921438ed3f97457",34:"7eff4f62b69145f81c4d",35:"f6c7eb27d91ddb250e6d",36:"9de99ecb4d9b9240a7fb",37:"9963beab4d1e44f7645e",38:"468b3385aaf0fc8f3b55",39:"b59b4162a53300ded7b9",40:"78641cb6ef8afc5d86f9",41:"9a90b7405429e597f965",42:"50661a28c4416e9dd052",43:"a58b09332b3e4b0b022a"}[e]+".js";var t=setTimeout(b,12e4);function b(){d.onerror=d.onload=null,clearTimeout(t);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return d.onerror=d.onload=b,r.appendChild(d),c},n.m=e,n.c=c,n.d=function(e,a,c){n.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},n.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(a,"a",a),a},n.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,n,r){for(var t,b,o,i=0,u=[];i<c.length;i++)b=c[i],f[b]&&u.push(f[b][0]),f[b]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(a&&a(c,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)o=d(d.s=r[i]);return o};var c={},f={46:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,d.nc&&r.setAttribute("nonce",d.nc),r.src=d.p+"static/js/"+e+"."+{0:"1a7715361a5b1bb84dd7",1:"a5b1143fb090193afa6f",2:"80967fc0c5d2e38785ca",3:"ff305e5dc9d6506945c1",4:"204aedfb0870a329fb96",5:"2b76bfcb34e27514247e",6:"73c4cc952259800eebb9",7:"d85b2cf49c25bd3b3a4b",8:"0ee171376d4ff4853265",9:"6745d9c9726c50323c7f",10:"b3e0655ae069b2914dce",11:"cfa61640d1a3d8d26b48",12:"ed35f742a5cdceb1f843",13:"04f66cbd91ce2ab0d824",14:"8a595aded66caf7ef375",15:"577a3da26a2e906135ac",16:"fd8e0aca022b16e268de",17:"ee4ff30e9c5028d2ab9a",18:"04fef63821c104201b24",19:"4fcd3f0652be046eae2b",20:"2fa96d2046651d4bda7a",21:"1f6367e5dcf6de69a5bd",22:"4985a38ec89a12ab291d",23:"1e9aeacb85a469484d6e",24:"32ea2fce686ff5a02a83",25:"9631a7f7112daff44b57",26:"94037a1d26ca9ff1357c",27:"9da56a144273173dd58d",28:"c08b5446e0d6813e98ab",29:"ac3b9ad2c1fe8c5ea040",30:"4226ba90f06063c51c49",31:"7c02ba89e248eaadf07c",32:"079e1a2a7c4b75892e4d",33:"00364921438ed3f97457",34:"7eff4f62b69145f81c4d",35:"f6c7eb27d91ddb250e6d",36:"9de99ecb4d9b9240a7fb",37:"9963beab4d1e44f7645e",38:"468b3385aaf0fc8f3b55",39:"b59b4162a53300ded7b9",40:"78641cb6ef8afc5d86f9",41:"9a90b7405429e597f965",42:"50661a28c4416e9dd052",43:"a58b09332b3e4b0b022a"}[e]+".js";var t=setTimeout(b,12e4);function b(){r.onerror=r.onload=null,clearTimeout(t);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return r.onerror=r.onload=b,n.appendChild(r),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},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
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