webpackJsonp([34],{"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,type:"active"}})},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":"130",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 n=t.row;return[a("span",[e._v(e._s(n.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 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","min-width":"140"},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("bnne")},"data-v-1fddf412",null);t.default=d.exports},bnne:function(e,t){}});