webpackJsonp([29],{SQwf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("QOex"),r=a("DMDI"),i=a("2CGT"),o={name:"tag-container",mixins:[r.a,n.a],props:{data:{type:Array,default:function(){return[]}},refersh:Object},data:function(){return{tableData:[],tagData:{}}},methods:{addTag:function(t){this.$emit("addTag",t)},handleTrackParam:function(t,e){var a={addTag:function(){return{data:{id:e.tagId,name:e.tagName}}}}[t];return{fn:function(){},data:a?a():{}}},changeMoreUse:function(t){var e=this,a={tagId:t.tagId,isMoreUse:t.isMoreUse?0:1};Object(i.L)(a).then(function(){e.$message.success(a.isMoreUse?'已设为"常用标签"':'已取消"设为常用标签"'),t.isMoreUse=t.isMoreUse?0:1})}},watch:{data:{immediate:!0,handler:function(t){this.tableData=t}},refersh:{immediate:!0,handler:function(t){if(t.changeRefersh){var e=this.tableData.findIndex(function(e){return t.tagId===e.tagId});this.tableData[e].refersh=!0}}}},computed:{getCodeAuth:function(){return this.$getButtonLimit(this.$buttonCode.memberTagCreateGroup)},getCode:function(){return this.$buttonCode.memberTagCreateGroup}}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tag-some-list"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{label:"标签名称",prop:"tagName","min-width":"170",fixed:""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"tag-name"},[t._v(t._s(e.row.tagName))]),t._v(" "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"添加标签",placement:"top"}},[t.getCodeAuth?a("i",{directives:[{name:"track",rawName:"v-track:common.click",value:t.handleTrackParam("addTag",e.row),expression:"handleTrackParam('addTag', scope.row)",arg:"common",modifiers:{click:!0}}],staticClass:"iconfont icon-tag-name icon-PlusOutlined",attrs:{"limit-code":t.getCode},on:{click:function(a){return t.addTag(e.row)}}}):t._e()])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"是否实时",prop:"isActive","min-width":"70"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["base",1==e.row.isActive?"keep-active":"no-active"]},[t._v(" "+t._s(1==e.row.isActive?"实时":"非实时")+" ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"上级分类名称","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("span",[t._v(t._s(n.tagLevelGroupName||"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"标签描述",prop:"tagDescribe","min-width":"170"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.tagDescribe?e.row.tagDescribe:"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(e){return t.changeMoreUse(n)}}},[t._v(t._s(n.isMoreUse?"取消":"设为常用"))])]}}])})],1)],1)},staticRenderFns:[]};var c=a("VU/8")(o,s,!1,function(t){a("jGIp")},"data-v-51a0b664",null);e.default=c.exports},jGIp:function(t,e){}});