Commit e8dbac6f by liuchenxi

update: build

parent 65ad3be3
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./static/img/favicon.ico><title>GIC-会员标签</title><link rel=stylesheet href=//at.alicdn.com/t/font_688955_99jmfacmlpp.css><link rel=stylesheet href=//at.alicdn.com/t/font_3276801_mkhlaisq2aq.css><script src=//at.alicdn.com/t/font_3276801_w3vkjjmzzz.js></script><link rel="shortcut icon" href=./favicon.ico><link href=./static/css/app.7ebff0641c0ae04770990a6615287c63.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>GIC-会员标签</title><link rel=stylesheet href=//at.alicdn.com/t/font_688955_99jmfacmlpp.css><link rel=stylesheet href=//at.alicdn.com/t/font_3276801_mkhlaisq2aq.css><script src=//at.alicdn.com/t/font_3276801_w3vkjjmzzz.js></script><link rel="shortcut icon" href=./favicon.ico><link href=./static/css/app.c53b4007fe724b8f5498598419270c33.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 host = window.location.host;
host = host.indexOf('localhost') > -1 || host.indexOf('192.168') > -1 ? 'gicdev.demogic.com' : host;
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.c4f6971ef344ee666f16.js></script><script type=text/javascript src=./static/js/vendor.ecce21da6a46da8c2fc4.js></script><script type=text/javascript src=./static/js/app.e20df7272c63592e3165.js></script></body></html>
\ No newline at end of file
})()</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.ff327769a8050fe9a1ff.js></script><script type=text/javascript src=./static/js/vendor.ecce21da6a46da8c2fc4.js></script><script type=text/javascript src=./static/js/app.90471da3598271803b30.js></script></body></html>
\ 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([19],{"0c8U":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("QOex"),r=a("DMDI"),i=a("EOvX"),o=a("2CGT"),l=a("r9pr"),s={name:"tag-container",mixins:[r.a,n.a],components:{DeleteTagDialog:l.default},props:{data:{type:Array,default:function(){return[]}},refersh:Object},data:function(){return{tableData:[],tagData:{},dateformat:i.a,deleteTagDialog:{visible:!1,deleteData:{}}}},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}})},deleteActiveTag:function(e){this.deleteTagDialog.visible=!0,this.deleteTagDialog.deleteData=e},doDelete:function(e){var t=this,a={tagId:e.tagId,requestProject:"gic-member-tag-web"};Object(o.h)(a).then(function(e){1==e.errorCode&&(t.$message({message:"删除成功",type:"success",duration:1e3}),t.$emit("deleteActiveTag",t.groupId))})}},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}}},c={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":"100",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":"90",prop:"tagLevelGroupName"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",[e._v(e._s(n.tagLevelGroupName||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"覆盖人数",prop:"memberCount","min-width":"80","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":"90"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[n.createTime?[a("p",[e._v(e._s(e.dateformat(n.createTime,"yyyy-MM-dd")))]),e._v(" "),a("p",[e._v(e._s(e.dateformat(n.createTime,"hh:mm:ss")))])]:a("span",[e._v("--")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.editActiveTag(n)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.editActiveTagValue(n)}}},[e._v("详情")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.deleteActiveTag(n)}}},[e._v("删除")])]}}])})],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}})],1)},staticRenderFns:[]};var d=a("VU/8")(s,c,!1,function(e){a("mp4C")},"data-v-9d63263e",null);t.default=d.exports},mp4C:function(e,t){}});
\ No newline at end of file
webpackJsonp([19],{"0c8U":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("QOex"),r=a("DMDI"),i=a("EOvX"),o=a("2CGT"),l=a("r9pr"),c={name:"tag-container",mixins:[r.a,n.a],components:{DeleteTagDialog:l.default},props:{data:{type:Array,default:function(){return[]}},refersh:Object},data:function(){return{tableData:[],tagData:{},dateformat:i.a,deleteTagDialog:{visible:!1,deleteData:{}}}},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}})},deleteActiveTag:function(e){this.deleteTagDialog.visible=!0,this.deleteTagDialog.deleteData=e},doDelete:function(e){var t=this,a={tagId:e.tagId,requestProject:"gic-member-tag-web"};Object(o.h)(a).then(function(e){1==e.errorCode&&(t.$message({message:"删除成功",type:"success",duration:1e3}),t.$emit("deleteActiveTag",t.groupId))})}},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}}},s={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":"100",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":"90",prop:"tagLevelGroupName"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",[e._v(e._s(n.tagLevelGroupName||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"覆盖人数",prop:"memberCount","min-width":"80","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":"90"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[n.createTime?[a("p",[e._v(e._s(e.dateformat(new Date(n.createTime),"yyyy-MM-dd")))]),e._v(" "),a("p",[e._v(e._s(e.dateformat(new Date(n.createTime),"hh:mm:ss")))])]:a("span",[e._v("--")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.editActiveTag(n)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.editActiveTagValue(n)}}},[e._v("详情")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.deleteActiveTag(n)}}},[e._v("删除")])]}}])})],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}})],1)},staticRenderFns:[]};var d=a("VU/8")(c,s,!1,function(e){a("2cDy")},"data-v-7d58bb81",null);t.default=d.exports},"2cDy":function(e,t){}});
\ 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([30],{"308P":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r("J16i");var a=r("3E4D"),l=r("P9l9"),o=r("roJz"),i=r("PI0u"),s=function(e,t,r){if(t.some(function(e){return!e.tagItemName}))return r(new Error("请完善标签值"));r()},u=function(e,t,r){(!/^[0-9]+$/.test(t)||t>1e5||t<1)&&r(new Error("仅支持输入1-1-100000之间的整数")),r()},n={name:"manualTagEdit",props:{showPop:Boolean,options:Object,currentType:String},components:{tagValueItem:o.default},data:function(){return{ruleForm:{tagName:"",tagLevel:"test",tagTwoLevelGroupId:"",tagLevelGroupId:"",tagDescribe:"",pending:!1,tagSort:null,tagType:0,tagValue:[{id:Object(i.a)(),deleteFlag:!1,tagItemName:""}]},rules:{tagName:[{required:!0,message:"请输入标签名称",trigger:"blur"}],tagLevel:[{required:!0,message:""}],tagLevelGroupId:[{required:!0,message:"请选择所属分类",trigger:"blur"}],tagTwoLevelGroupId:[{required:!0,message:"请选择所属分类",trigger:"blur"}],tagSort:[{required:!0,trigger:"blur",validator:u}],tagType:[{required:!0,trigger:"blur"}],tagValue:[{required:!0,trigger:"blur",validator:s}]},optionsTwo:[],optionsThree:[],tagValTableData:[],preSyncWmStatus:0,deleteList:[],isEdit:!1}},watch:{options:{deep:!0,handler:function(e){var t=this;this.ruleForm.tagTwoLevelGroupId=e.tagTwoLevelGroupId,this.ruleForm.tagLevelGroupId=e.tagLevelGroupId,e.tagId?(this.isEdit=!0,this.getTagData(e.tagId)):(this.isEdit=!1,this.ruleForm.tagName="",this.ruleForm.tagDescribe="",this.ruleForm.tagSort=null,this.ruleForm.tagType=0,this.ruleForm.tagTwoLevelGroupId="",this.ruleForm.tagLevelGroupId="",this.ruleForm.tagValue=[{id:Object(i.a)(),deleteFlag:!1,tagItemName:""}],this.getOptionsThree(e.tagTwoLevelGroupId));var r=this.optionsThree.find(function(e){return e.tagLevelGroupId==t.ruleForm.tagLevelGroupId});r&&(this.preSyncWmStatus=r.syncWmFlag),this.getOptionsTwo()}}},methods:{closePop:function(){this.optionsThree=[],this.$refs.ruleForm.resetFields(),this.$emit("update:showPop",!1)},confirmSave:function(){var e=this;this.ruleForm.pending||(this.ruleForm.pending=!0,this.$refs.ruleForm.validate(function(t){if(t){var r=e.optionsThree.find(function(t){return t.tagLevelGroupId==e.ruleForm.tagLevelGroupId}).syncWmFlag;e.options.isSync||!e.preSyncWmStatus||r?e.saveApi():e.$confirm("该分类未开启微盟标签同步,修改后标签将不会再同步至微盟,并且已同步至微盟侧的会员标签将从微盟侧删除,是否继续保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.saveApi()}).catch(function(){return e.ruleForm.pending=!1})}else e.ruleForm.pending=!1}))},saveApi:function(){var e=this,t=this.ruleForm.tagValue.concat(this.deleteList).map(function(e){return delete e.id,e}),r={tagId:this.options.tagId,tagName:this.ruleForm.tagName,tagDescribe:this.ruleForm.tagDescribe,tagLevelGroupId:this.ruleForm.tagLevelGroupId,tagItemList:t,isMultiple:this.ruleForm.tagType,tagType:"active"==this.currentType?2:1};"manual"==this.currentType&&(r.sort=this.ruleForm.tagSort),Object(l.c)("/memberTag/saveHandMemberTag",r).then(function(t){var r=t.data,l=r.errorCode,o=r.message;e.ruleForm.pending=!1,1===l?(a.a.showmsg("保存成功","success"),e.$emit("save"),e.closePop()):e.$message.error({duration:1e3,message:o})}).catch(function(t){e.ruleForm.pending=!1,e.$message.error({duration:1e3,message:t.message})})},getOptionsTwo:function(){var e=this,t=this.currentType,r={tagLevelType:"active"==t?2:1};return Object(l.a)("/tagLevel/handSecondLevel",r).then(function(r){var a=r.data,l=a.errorCode,o=a.result;1===l&&(e.optionsTwo=o,"active"!=t||e.isEdit||(e.ruleForm.tagTwoLevelGroupId=o.find(function(e){return"渠道标签"===e.name}).id,e.getOptionsThree(e.ruleForm.tagTwoLevelGroupId)))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeTwo:function(e){this.ruleForm.tagLevelGroupId="",this.getOptionsThree(e)},getOptionsThree:function(e){var t=this;Object(l.a)("/tagLevel/handThirdLevel",{tagLevelGroupId:e}).then(function(e){var r=e.data,a=r.errorCode,l=r.result;1===a&&(t.optionsThree=l)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTagData:function(e){var t=this;Object(l.a)("/memberTag/getTagById",{tagId:e}).then(function(e){var r=e.data,a=r.errorCode,l=r.result;1===a&&(t.ruleForm.tagName=l.tagName,t.ruleForm.tagLevelGroupId=l.tagLevelGroupId,t.ruleForm.tagTwoLevelGroupId=l.tagTwoLevelGroupId,t.ruleForm.tagDescribe=l.tagDescribe,t.ruleForm.tagSort=l.sort,t.ruleForm.tagType=l.isMultiple,t.ruleForm.tagValue=l.itemList||[],l.itemList.length?t.ruleForm.tagValue=l.itemList.map(function(e){return e.id=Object(i.a)(),e.deleteFlag=!1,e}):t.ruleForm.tagValue=[{id:Object(i.a)(),deleteFlag:!1,tagItemName:""}],t.getOptionsThree(l.tagTwoLevelGroupId))}).catch(function(e){console.log(e)})},onAddTagVal:function(e){var t=this.ruleForm.tagValue.findIndex(function(t){return t.id==e}),r={id:Object(i.a)(),deleteFlag:!1,tagItemName:""};this.ruleForm.tagValue.splice(t+1,0,r)},onDelTagVal:function(e){var t=this.ruleForm.tagValue.findIndex(function(t){return t.id==e});if(this.ruleForm.tagValue[t].tagItemId){var r=this.ruleForm.tagValue.splice(t,1)[0];r.deleteFlag=!0,this.deleteList.push(r)}else this.ruleForm.tagValue.splice(t,1)}}},g={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{visible:e.showPop,title:e.options.popTitle,width:"600px","destroy-on-close":""},on:{"update:visible":function(t){e.showPop=t},close:e.closePop}},[r("div",{staticClass:"manualTagEdit-wrap"},[r("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"标签名称:",prop:"tagName"}},[r("el-input",{staticClass:"w-full",attrs:{placeholder:"请输入内容",maxlength:15},model:{value:e.ruleForm.tagName,callback:function(t){e.$set(e.ruleForm,"tagName",t)},expression:"ruleForm.tagName"}}),e._v(" "),r("label",{staticClass:"input-label"},[e._v(e._s(e.ruleForm.tagName.length)+"/15")])],1),e._v(" "),r("el-form-item",{attrs:{label:"所属分类:",prop:"tagLevel"}},[r("el-form-item",{staticClass:"fl",attrs:{prop:"tagTwoLevelGroupId"}},[r("el-select",{staticClass:"w-225",attrs:{placeholder:"请选择"},on:{change:e.changeTwo},model:{value:e.ruleForm.tagTwoLevelGroupId,callback:function(t){e.$set(e.ruleForm,"tagTwoLevelGroupId",t)},expression:"ruleForm.tagTwoLevelGroupId"}},e._l(e.optionsTwo,function(e){return r("el-option",{key:e.tagLevelGroupId,attrs:{label:e.levelName,value:e.tagLevelGroupId}})}),1)],1),e._v(" "),r("el-form-item",{staticClass:"fl",attrs:{prop:"tagLevelGroupId"}},[r("el-select",{staticClass:"w-225 ml10",attrs:{placeholder:"请选择"},model:{value:e.ruleForm.tagLevelGroupId,callback:function(t){e.$set(e.ruleForm,"tagLevelGroupId",t)},expression:"ruleForm.tagLevelGroupId"}},e._l(e.optionsThree,function(e){return r("el-option",{key:e.tagLevelGroupId,attrs:{label:e.levelName,value:e.tagLevelGroupId}})}),1)],1)],1),e._v(" "),"manual"==e.currentType?r("el-form-item",{attrs:{label:"排序:",prop:"tagSort"},scopedSlots:e._u([{key:"label",fn:function(){return[e._v(" 排序"),r("i",{staticClass:"iconfont icon-QuestionCircleOutlined icon"}),e._v(": ")]},proxy:!0}])},[e._v(" "),r("el-input",{staticClass:"w-full",attrs:{placeholder:"请输入1-100000之间的整数"},on:{input:e.validateInputSort,blur:e.blurSort},model:{value:e.ruleForm.tagSort,callback:function(t){e.$set(e.ruleForm,"tagSort",t)},expression:"ruleForm.tagSort"}})],1):e._e(),e._v(" "),"manual"==e.currentType?r("el-form-item",{attrs:{label:"标签类型:",prop:"tagType"}},[r("el-radio-group",{attrs:{disabled:e.isEdit},model:{value:e.ruleForm.tagType,callback:function(t){e.$set(e.ruleForm,"tagType",t)},expression:"ruleForm.tagType"}},[r("el-radio",{attrs:{label:0}},[e._v("单选")]),e._v(" "),r("el-radio",{attrs:{label:1}},[e._v("多选")])],1)],1):e._e(),e._v(" "),r("el-form-item",{attrs:{label:"标签值:",prop:"tagValue"}},[r("div",{staticClass:"tag-list"},e._l(e.ruleForm.tagValue,function(t){return r("tag-value-item",{key:t.id,staticClass:"w-full",attrs:{"current-length":e.ruleForm.tagValue.length,item:t},on:{add:e.onAddTagVal,del:e.onDelTagVal}})}),1)]),e._v(" "),r("el-form-item",{attrs:{label:"标签描述:",prop:"tagDescribe"}},[r("el-input",{staticClass:"w-full",attrs:{type:"textarea",maxlength:100,"show-word-limit":"",placeholder:"请输入标签描述,最多100字"},model:{value:e.ruleForm.tagDescribe,callback:function(t){e.$set(e.ruleForm,"tagDescribe",t)},expression:"ruleForm.tagDescribe"}})],1)],1),e._v(" "),r("div",{staticClass:"manualTagEdit-btns"},[r("el-button",{on:{click:function(t){return e.$emit("update:showPop",!1)}}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.confirmSave}},[e._v("保存")])],1)],1)])},staticRenderFns:[]};var m=r("VU/8")(n,g,!1,function(e){r("ORSe")},"data-v-48dd6a32",null);t.default=m.exports},ORSe:function(e,t){}});
\ No newline at end of file
webpackJsonp([30],{OK0t:function(t,e){},vRdD:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={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}}},s={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 l=a("VU/8")(i,s,!1,function(t){a("OK0t")},"data-v-3ff51ef1",null);e.default=l.exports}});
\ No newline at end of file
webpackJsonp([31],{OK0t:function(t,e){},vRdD:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={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}}},s={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 l=a("VU/8")(i,s,!1,function(t){a("OK0t")},"data-v-3ff51ef1",null);e.default=l.exports}});
\ No newline at end of file
webpackJsonp([34],{"308P":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r("J16i");var a=r("3E4D"),l=r("P9l9"),o=r("roJz"),i=r("PI0u"),s=function(e,t,r){if(t.some(function(e){return!e.tagItemName}))return r(new Error("请完善标签值"));r()},u=function(e,t,r){(!/^[0-9]+$/.test(t)||t>1e5||t<1)&&r(new Error("仅支持输入1-1-100000之间的整数")),r()},n={name:"manualTagEdit",props:{showPop:Boolean,options:Object,currentType:String},components:{tagValueItem:o.default},data:function(){return{ruleForm:{tagName:"",tagLevel:"test",tagTwoLevelGroupId:"",tagLevelGroupId:"",tagDescribe:"",pending:!1,tagSort:null,tagType:0,tagValue:[{id:Object(i.a)(),deleteFlag:!1,tagItemName:""}]},rules:{tagName:[{required:!0,message:"请输入标签名称",trigger:"blur"}],tagLevel:[{required:!0,message:""}],tagLevelGroupId:[{required:!0,message:"请选择所属分类",trigger:"blur"}],tagTwoLevelGroupId:[{required:!0,message:"请选择所属分类",trigger:"blur"}],tagSort:[{required:!0,trigger:"blur",validator:u}],tagType:[{required:!0,trigger:"blur"}],tagValue:[{required:!0,trigger:"blur",validator:s}]},optionsTwo:[],optionsThree:[],tagValTableData:[],preSyncWmStatus:0,deleteList:[],isEdit:!1}},watch:{options:{deep:!0,handler:function(e){var t=this;this.ruleForm.tagTwoLevelGroupId=e.tagTwoLevelGroupId,this.ruleForm.tagLevelGroupId=e.tagLevelGroupId,e.tagId?(this.isEdit=!0,this.getTagData(e.tagId)):(this.isEdit=!1,this.ruleForm.tagName="",this.ruleForm.tagDescribe="",this.ruleForm.tagSort=null,this.ruleForm.tagType=0,this.ruleForm.tagTwoLevelGroupId="",this.ruleForm.tagLevelGroupId="",this.ruleForm.tagValue=[{id:Object(i.a)(),deleteFlag:!1,tagItemName:""}],this.getOptionsThree(e.tagTwoLevelGroupId));var r=this.optionsThree.find(function(e){return e.tagLevelGroupId==t.ruleForm.tagLevelGroupId});r&&(this.preSyncWmStatus=r.syncWmFlag),this.getOptionsTwo()}}},methods:{closePop:function(){this.$refs.ruleForm.resetFields(),this.$emit("update:showPop",!1)},confirmSave:function(){var e=this;this.ruleForm.pending||(this.ruleForm.pending=!0,this.$refs.ruleForm.validate(function(t){if(t){var r=e.optionsThree.find(function(t){return t.tagLevelGroupId==e.ruleForm.tagLevelGroupId}).syncWmFlag;e.options.isSync||!e.preSyncWmStatus||r?e.saveApi():e.$confirm("该分类未开启微盟标签同步,修改后标签将不会再同步至微盟,并且已同步至微盟侧的会员标签将从微盟侧删除,是否继续保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.saveApi()}).catch(function(){return e.ruleForm.pending=!1})}else e.ruleForm.pending=!1}))},saveApi:function(){var e=this,t=this.ruleForm.tagValue.concat(this.deleteList).map(function(e){return delete e.id,e}),r={tagId:this.options.tagId,tagName:this.ruleForm.tagName,tagDescribe:this.ruleForm.tagDescribe,tagLevelGroupId:this.ruleForm.tagLevelGroupId,tagItemList:t,isMultiple:this.ruleForm.tagType,tagType:"active"==this.currentType?2:1};"manual"==this.currentType&&(r.sort=this.ruleForm.tagSort),Object(l.c)("/memberTag/saveHandMemberTag",r).then(function(t){var r=t.data,l=r.errorCode,o=r.message;e.ruleForm.pending=!1,1===l?(a.a.showmsg("保存成功","success"),e.$emit("save"),e.closePop()):e.$message.error({duration:1e3,message:o})}).catch(function(t){e.ruleForm.pending=!1,e.$message.error({duration:1e3,message:t.message})})},getOptionsTwo:function(){var e=this,t=this.currentType,r={tagLevelType:"active"==t?2:1};return Object(l.a)("/tagLevel/handSecondLevel",r).then(function(r){var a=r.data,l=a.errorCode,o=a.result;1===l&&(e.optionsTwo=o,"active"!=t||e.isEdit||(e.ruleForm.tagTwoLevelGroupId=o.find(function(e){return"渠道标签"===e.name}).id))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeTwo:function(e){this.ruleForm.tagLevelGroupId="",this.getOptionsThree(e)},getOptionsThree:function(e){var t=this;Object(l.a)("/tagLevel/handThirdLevel",{tagLevelGroupId:e}).then(function(e){var r=e.data,a=r.errorCode,l=r.result;1===a&&(t.optionsThree=l)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTagData:function(e){var t=this;Object(l.a)("/memberTag/getTagById",{tagId:e}).then(function(e){var r=e.data,a=r.errorCode,l=r.result;1===a&&(t.ruleForm.tagName=l.tagName,t.ruleForm.tagLevelGroupId=l.tagLevelGroupId,t.ruleForm.tagTwoLevelGroupId=l.tagTwoLevelGroupId,t.ruleForm.tagDescribe=l.tagDescribe,t.ruleForm.tagSort=l.sort,t.ruleForm.tagType=l.isMultiple,t.ruleForm.tagValue=l.itemList||[],l.itemList.length?t.ruleForm.tagValue=l.itemList.map(function(e){return e.id=Object(i.a)(),e.deleteFlag=!1,e}):t.ruleForm.tagValue=[{id:Object(i.a)(),deleteFlag:!1,tagItemName:""}],t.getOptionsThree(l.tagTwoLevelGroupId))}).catch(function(e){console.log(e)})},onAddTagVal:function(e){var t=this.ruleForm.tagValue.findIndex(function(t){return t.id==e}),r={id:Object(i.a)(),deleteFlag:!1,tagItemName:""};this.ruleForm.tagValue.splice(t+1,0,r)},onDelTagVal:function(e){var t=this.ruleForm.tagValue.findIndex(function(t){return t.id==e});if(this.ruleForm.tagValue[t].tagItemId){var r=this.ruleForm.tagValue.splice(t,1)[0];r.deleteFlag=!0,this.deleteList.push(r)}else this.ruleForm.tagValue.splice(t,1)}}},g={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{visible:e.showPop,title:e.options.popTitle,width:"600px","destroy-on-close":""},on:{"update:visible":function(t){e.showPop=t},close:e.closePop}},[r("div",{staticClass:"manualTagEdit-wrap"},[r("el-form",{ref:"ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"标签名称:",prop:"tagName"}},[r("el-input",{staticClass:"w-full",attrs:{placeholder:"请输入内容",maxlength:15},model:{value:e.ruleForm.tagName,callback:function(t){e.$set(e.ruleForm,"tagName",t)},expression:"ruleForm.tagName"}}),e._v(" "),r("label",{staticClass:"input-label"},[e._v(e._s(e.ruleForm.tagName.length)+"/15")])],1),e._v(" "),r("el-form-item",{attrs:{label:"所属分类:",prop:"tagLevel"}},[r("el-form-item",{staticClass:"fl",attrs:{prop:"tagTwoLevelGroupId"}},[r("el-select",{staticClass:"w-225",attrs:{placeholder:"请选择"},on:{change:e.changeTwo},model:{value:e.ruleForm.tagTwoLevelGroupId,callback:function(t){e.$set(e.ruleForm,"tagTwoLevelGroupId",t)},expression:"ruleForm.tagTwoLevelGroupId"}},e._l(e.optionsTwo,function(e){return r("el-option",{key:e.tagLevelGroupId,attrs:{label:e.levelName,value:e.tagLevelGroupId}})}),1)],1),e._v(" "),r("el-form-item",{staticClass:"fl",attrs:{prop:"tagLevelGroupId"}},[r("el-select",{staticClass:"w-225 ml10",attrs:{placeholder:"请选择"},model:{value:e.ruleForm.tagLevelGroupId,callback:function(t){e.$set(e.ruleForm,"tagLevelGroupId",t)},expression:"ruleForm.tagLevelGroupId"}},e._l(e.optionsThree,function(e){return r("el-option",{key:e.tagLevelGroupId,attrs:{label:e.levelName,value:e.tagLevelGroupId}})}),1)],1)],1),e._v(" "),"manual"==e.currentType?r("el-form-item",{attrs:{label:"排序:",prop:"tagSort"},scopedSlots:e._u([{key:"label",fn:function(){return[e._v(" 排序"),r("i",{staticClass:"iconfont icon-QuestionCircleOutlined icon"}),e._v(": ")]},proxy:!0}])},[e._v(" "),r("el-input",{staticClass:"w-full",attrs:{placeholder:"请输入1-100000之间的整数"},on:{input:e.validateInputSort,blur:e.blurSort},model:{value:e.ruleForm.tagSort,callback:function(t){e.$set(e.ruleForm,"tagSort",t)},expression:"ruleForm.tagSort"}})],1):e._e(),e._v(" "),"manual"==e.currentType?r("el-form-item",{attrs:{label:"标签类型:",prop:"tagType"}},[r("el-radio-group",{attrs:{disabled:e.isEdit},model:{value:e.ruleForm.tagType,callback:function(t){e.$set(e.ruleForm,"tagType",t)},expression:"ruleForm.tagType"}},[r("el-radio",{attrs:{label:0}},[e._v("单选")]),e._v(" "),r("el-radio",{attrs:{label:1}},[e._v("多选")])],1)],1):e._e(),e._v(" "),r("el-form-item",{attrs:{label:"标签值:",prop:"tagValue"}},[r("div",{staticClass:"tag-list"},e._l(e.ruleForm.tagValue,function(t){return r("tag-value-item",{key:t.id,staticClass:"w-full",attrs:{"current-length":e.ruleForm.tagValue.length,item:t},on:{add:e.onAddTagVal,del:e.onDelTagVal}})}),1)]),e._v(" "),r("el-form-item",{attrs:{label:"标签描述:",prop:"tagDescribe"}},[r("el-input",{staticClass:"w-full",attrs:{type:"textarea",maxlength:100,"show-word-limit":"",placeholder:"请输入标签描述,最多100字"},model:{value:e.ruleForm.tagDescribe,callback:function(t){e.$set(e.ruleForm,"tagDescribe",t)},expression:"ruleForm.tagDescribe"}})],1)],1),e._v(" "),r("div",{staticClass:"manualTagEdit-btns"},[r("el-button",{on:{click:function(t){return e.$emit("update:showPop",!1)}}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.confirmSave}},[e._v("保存")])],1)],1)])},staticRenderFns:[]};var m=r("VU/8")(n,g,!1,function(e){r("foUU")},"data-v-18cafa52",null);t.default=m.exports},foUU:function(e,t){}});
\ No newline at end of file
webpackJsonp([4,30],{"124l":function(t,e){},"1Vsk":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.r)().then(function(e){var n=e.errorCode,o=e.message;if(1!=n)return t.$message.error(o);t.getTrashList()})},getTrashList:function(){var t=this;Object(o.u)().then(function(e){var n=e.errorCode,o=e.message,a=e.result,r=void 0===a?[]:a;if(1!=n)return t.$message.error(o);t.trashList=r,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(1!=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;this.delTime||Object(o.g)().then(function(e){var n=e.errorCode,o=e.message;if(1!=n)return t.$message.error(o);t.$message.success("已开始执行"),t.dialogVisible=!1,t.getProgress(),t.$emit("beginClean")})},delCheckTag:function(t){var e=this;Object(o.i)({tagItemId:t}).then(function(t){var n=t.errorCode,o=t.message;if(1!=n)return e.$message.error(o);e.getTrashList(),e.$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"},[n("el-badge",{staticClass:"badge",attrs:{value:t.trashList.length>99?"99+":t.trashList.length}},[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(e.tagItemName)+"\n "),n("i",{staticClass:"iconfont icon-guanbi1 delIcon",on:{click:function(n){return t.delCheckTag(e.tagItemId)}}})])}),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.delTime>0||!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("b6KS")},"data-v-b4171a84",null);e.a=i.exports},OK0t:function(t,e){},TQvf:function(t,e,n){
webpackJsonp([4,31],{"124l":function(t,e){},"1Vsk":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.r)().then(function(e){var n=e.errorCode,o=e.message;if(1!=n)return t.$message.error(o);t.getTrashList()})},getTrashList:function(){var t=this;Object(o.u)().then(function(e){var n=e.errorCode,o=e.message,a=e.result,r=void 0===a?[]:a;if(1!=n)return t.$message.error(o);t.trashList=r,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(1!=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;this.delTime||Object(o.g)().then(function(e){var n=e.errorCode,o=e.message;if(1!=n)return t.$message.error(o);t.$message.success("已开始执行"),t.dialogVisible=!1,t.getProgress(),t.$emit("beginClean")})},delCheckTag:function(t){var e=this;Object(o.i)({tagItemId:t}).then(function(t){var n=t.errorCode,o=t.message;if(1!=n)return e.$message.error(o);e.getTrashList(),e.$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"},[n("el-badge",{staticClass:"badge",attrs:{value:t.trashList.length>99?"99+":t.trashList.length}},[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(e.tagItemName)+"\n "),n("i",{staticClass:"iconfont icon-guanbi1 delIcon",on:{click:function(n){return t.delCheckTag(e.tagItemId)}}})])}),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.delTime>0||!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("b6KS")},"data-v-b4171a84",null);e.a=i.exports},OK0t:function(t,e){},TQvf:function(t,e,n){
/*!
* clipboard.js v2.0.8
* https://clipboardjs.com/
......
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,r,t){for(var o,b,d,i=0,u=[];i<a.length;i++)b=a[i],f[b]&&u.push(f[b][0]),f[b]=0;for(o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);for(c&&c(a,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)d=n(n.s=t[i]);return d};var a={},f={42:0};function n(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,n),f.l=!0,f.exports}n.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,n){c=f[e]=[a,n]});c[2]=a;var r=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,n.nc&&t.setAttribute("nonce",n.nc),t.src=n.p+"static/js/"+e+"."+{0:"7ea48a212544ae4f6c56",1:"a5b1143fb090193afa6f",2:"61a0525250804e8e3cbb",3:"9e7e4bf055ced458ebea",4:"c45759c9034c748d6e29",5:"0f395a886b33ffa77a9a",6:"58d2e88045669e8e4b01",7:"cbfb1c1422fe6c812024",8:"891bbc4365b8362d5195",9:"7cc1b38988e254182ad8",10:"1cbc7e505ef918253196",11:"cfa61640d1a3d8d26b48",12:"8a8141f3514cbae9a3c7",13:"0818871dc437b377d48e",14:"1cee84594c3e73112bf4",15:"efd269fd1a81cd8592dc",16:"1104245fedff37af4540",17:"e58186116f6395e91ba5",18:"2e5b028cddbfbe797ced",19:"7b4cc625dc245c92ccca",20:"b2ba64154f555459cc42",21:"9c7b0847654fea50f3ce",22:"5db1083232b98ae90f97",23:"41ac73839b37c69f21e8",24:"ee5a8baed163b78150c1",25:"5ac24c863c71cc9e9d97",26:"4e9ca5fbfba7a6c103a5",27:"59d10aebc645ea748009",28:"c1335f07037eb9226047",29:"14f81ba933c5f226b3e1",30:"03d151e01b90b005ca63",31:"9817b996a74aa8f2d753",32:"73b4dbcf4eb931a87fb1",33:"383ca8d32cac8aabe09d",34:"364fec2e39cec4ecf20d",35:"f3160e4f27967a0676a3",36:"4e775e6d2025224e0371",37:"fd86faa4c3c1209b3d18",38:"4eb49e066fba130c61f9",39:"72326ca9ecc6c7ffd104"}[e]+".js";var o=setTimeout(b,12e4);function b(){t.onerror=t.onload=null,clearTimeout(o);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return t.onerror=t.onload=b,r.appendChild(t),a},n.m=e,n.c=a,n.d=function(e,c,a){n.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,r,t){for(var o,d,b,i=0,u=[];i<a.length;i++)d=a[i],f[d]&&u.push(f[d][0]),f[d]=0;for(o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);for(c&&c(a,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)b=n(n.s=t[i]);return b};var a={},f={42:0};function n(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,n),f.l=!0,f.exports}n.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,n){c=f[e]=[a,n]});c[2]=a;var r=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,n.nc&&t.setAttribute("nonce",n.nc),t.src=n.p+"static/js/"+e+"."+{0:"6c116b7a3ec2dc4a3d37",1:"a5b1143fb090193afa6f",2:"875f45c1c32f83f1a304",3:"7c744a8b97f6af8c8da1",4:"d8ec61368815be06d3fa",5:"0f395a886b33ffa77a9a",6:"58d2e88045669e8e4b01",7:"cbfb1c1422fe6c812024",8:"891bbc4365b8362d5195",9:"7cc1b38988e254182ad8",10:"1cbc7e505ef918253196",11:"cfa61640d1a3d8d26b48",12:"8a8141f3514cbae9a3c7",13:"0818871dc437b377d48e",14:"1cee84594c3e73112bf4",15:"efd269fd1a81cd8592dc",16:"1104245fedff37af4540",17:"e58186116f6395e91ba5",18:"2e5b028cddbfbe797ced",19:"284509244275d7b9513c",20:"b2ba64154f555459cc42",21:"9c7b0847654fea50f3ce",22:"5db1083232b98ae90f97",23:"41ac73839b37c69f21e8",24:"ee5a8baed163b78150c1",25:"5ac24c863c71cc9e9d97",26:"4e9ca5fbfba7a6c103a5",27:"59d10aebc645ea748009",28:"c1335f07037eb9226047",29:"14f81ba933c5f226b3e1",30:"dd6bd3e6d811071ca254",31:"e45a931553d913085331",32:"fd407f21d6b25ab0c2ba",33:"ee42f00feb05ec87470a",34:"050a5ce77da37b75d00e",35:"f3160e4f27967a0676a3",36:"4e775e6d2025224e0371",37:"fd86faa4c3c1209b3d18",38:"4eb49e066fba130c61f9",39:"72326ca9ecc6c7ffd104"}[e]+".js";var o=setTimeout(d,12e4);function d(){t.onerror=t.onload=null,clearTimeout(o);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return t.onerror=t.onload=d,r.appendChild(t),a},n.m=e,n.c=a,n.d=function(e,c,a){n.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="./",n.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