webpackJsonp([32],{"+FFv":function(e,t){},mmLS:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i("Ch4/"),s=i("2CGT"),a={props:{visible:Boolean,data:{type:Object,default:function(){return{}}},type:String,title:String},data:function(){return{list:[],isOpenPage:!1,loading:!0}},computed:{desc:function(){return"deactive"==this.type?this.list.length?"当前分组正在被以下模块使用，失效后使用该分组的活动将匹配不到分组下的人群并且分组客户数据将同步清空，是否继续处理为失效？":"失效后非实时分组客户数据将同步清空，是否继续处理为失效？":this.list.length?"当前分组正在被以下模块使用，请先删除对应的内容后再来删除分组。":"删除后无法恢复，确认要删除该分组吗？"}},methods:{checkGroup:function(){var e=this;this.loading=!0;var t={memberTagGroupIds:this.data.memberTagGroupId,requestProject:"gic-member-tag-web",operateType:"deactive"==this.type?1:2};Object(s.n)(t).then(function(t){var i=t.errorCode,s=t.result;0!=i?n.a.errorMsg(t.data):e.list=s||[]}).finally(function(){return e.loading=!1})},onClose:function(){this.$emit("update:visible",!1),this.$emit("close")},onSubmit:function(){this.$emit("update:visible",!1),this.$emit("submit",this.data,this.type)},subWindowChange:function(){addEventListener("visibilitychange",this.visibleityWindowFn)},visibleityWindowFn:function(){!document.hidden&&this.isOpenPage&&this.checkGroup()}},watch:{visible:function(e){e&&this.checkGroup(),this.subWindowChange(),e||(removeEventListener("visibilitychange",this.visibleityWindowFn),this.isOpenPage=!1)}}},o={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{visible:e.visible,"custom-class":"delete-dialog",width:"416px"},on:{"update:visible":function(t){e.visible=t},close:e.onClose}},[i("div",{staticClass:"dialog-content"},[i("i",{staticClass:"el-alert__icon el-icon-warning is-big icons"}),e._v(" "),i("h2",[e._v(e._s(e.title))]),e._v(" "),i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("p",{staticClass:"desc"},[e._v(e._s(e.desc))]),e._v(" "),e._l(e.list,function(t,n){return i("p",{key:n,staticClass:"item"},[i("a",{attrs:{href:t.businessLink,target:"_blank"},on:{click:function(t){e.isOpenPage=!0}}},[e._v(e._s(t.businessModuleName)+"-"+e._s(t.businessName))])])}),e._v(" "),"delete"==e.type&&e.list.length?e._e():i("footer",{staticClass:"footer"},[i("el-button",{staticClass:"ml10",on:{click:function(t){return e.$emit("update:visible",!1)}}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v(e._s("deactive"==e.type?"失效":"删除"))])],1)],2)])])},staticRenderFns:[]};var l=i("VU/8")(a,o,!1,function(e){i("+FFv")},"data-v-3e3e49aa",null);t.default=l.exports}});