(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2dacf0b4"],{"0f0e":function(t,e,a){"use strict";var i=a("c4c8"),n={name:"userLabel",props:{},data:function(){return{labelList:[],dataLabel:[],isUser:!1}},mounted:function(){},methods:{inArray:function(t,e){for(var a in e)if(e[a].id===t)return!0;return!1},userLabel:function(t){var e=this;this.dataLabel=t,Object(i.hb)().then((function(t){t.data.map((function(t){t.children&&t.children.length&&(e.isUser=!0,t.children.map((function(t){e.inArray(t.id,e.dataLabel)?t.disabled=!0:t.disabled=!1})))})),e.labelList=t.data})).catch((function(t){e.$Message.error(t.msg)}))},selectLabel:function(t){if(t.disabled){var e=this.dataLabel.indexOf(this.dataLabel.filter((function(e){return e.id===t.id}))[0]);this.dataLabel.splice(e,1),t.disabled=!1}else this.dataLabel.push({label_name:t.label_name,id:t.id,tag_id:t.tag_id}),t.disabled=!0},subBtn:function(){this.$emit("activeData",JSON.parse(JSON.stringify(this.dataLabel)))},cancel:function(){this.$emit("close")}}},r=(a("fbc5"),a("2877")),o=Object(r.a)(n,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"label-wrapper"},[a("div",{staticClass:"list-box"},[t._l(t.labelList,(function(e,i){return t.isUser?a("div",{key:i,staticClass:"label-box"},[e.children&&e.children.length?a("div",{staticClass:"title"},[t._v("\n "+t._s(e.label_name)+"\n ")]):t._e(),e.children&&e.children.length?a("div",{staticClass:"list"},t._l(e.children,(function(e,i){return a("div",{key:i,staticClass:"label-item",class:{on:e.disabled},on:{click:function(a){return t.selectLabel(e)}}},[t._v("\n "+t._s(e.label_name)+"\n ")])})),0):t._e()]):t._e()})),t.isUser?t._e():a("div",[t._v("暂无标签")])],2),a("div",{staticClass:"footer"},[a("Button",{staticClass:"btns",attrs:{type:"primary"},on:{click:t.subBtn}},[t._v("确定")]),a("Button",{staticClass:"btns",attrs:{type:"primary",ghost:""},on:{click:t.cancel}},[t._v("取消")])],1)])}),[],!1,null,"b09cdb0e",null);e.a=o.exports},"3a35":function(t,e,a){"use strict";var i=a("c115");a.n(i).a},"6ed2":function(t,e,a){"use strict";a.r(e);var i=a("2f62"),n=a("b0e7"),r=a("c297"),o=a("0f0e"),s=a("9b41"),l=a("d708");function c(t){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){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function m(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var d={data:function(){return{roterPre:l.a.roterPre,formItem:{name:"",chat_id:[],group_name:"",group_num:0,label:[],auth_group_chat:0},labelList:[],gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},groupColumn:[{type:"selection",width:60,align:"center"},{title:"群名称",key:"name",minWidth:80,align:"center"},{title:"群主",slot:"ownerInfo",minWidth:100,align:"center"},{title:"群公告",slot:"notice",minWidth:100,align:"center"},{title:"管理员",slot:"admin_user_list",minWidth:80,align:"center"},{title:"创建时间",key:"group_create_time",minWidth:110,align:"center"},{title:"群人数",key:"member_num",minWidth:80,align:"center"},{title:"退群人数",key:"retreat_group_num",minWidth:80,align:"center"}],groupData:[],groupForm:{page:1,limit:15},rontineObj:{msgtype:"miniprogram",miniprogram:{pic_url:"",pic_media_id:"",title:"",appid:"",page:""}},imageObj:{msgtype:"image",image:{media_id:"",pic_url:""}},groupStatus:!1,userLoading:!1,picTit:"",modalPic:!1,modalRoutine:!1,isChoice:"单选",activeDepartment:{},isSite:!0,onlyDepartment:!1,openType:"",userList:[],selectGroup:[],ruleValidate:{name:[{required:!0,message:"二维码名称不能为空",trigger:"blur"}]},labelShow:!1,dataLabel:[]}},components:{uploadPictures:n.a,department:r.a,userLabel:o.a},computed:function(t){for(var e=1;e1){this.$Message.warning("群主只能选择一个");var a=t.slice(0,1);this.formItem.owner=a.map((function(t){return{userid:t.userid,name:t.name}}))}else this.formItem.owner=t.map((function(t){return{userid:t.userid,name:t.name}}));else"two"==e&&(this.formItem.admin_user=t.map((function(t){return{userid:t.userid,name:t.name}})))},handleDel:function(t,e){var a=this.formItem.chat_id.findIndex((function(t){return t.name==e}));this.formItem.chat_id.splice(a,1)},wordsDel:function(t){var e=this.formItem.welcome_words.attachments.indexOf(t);this.formItem.welcome_words.attachments.splice(e,1)},getPic:function(t){switch(this.picTit){case"image":this.imageObj.image.pic_url=t.att_dir,this.formItem.welcome_words.attachments.push(this.imageObj);break;case"routine":this.rontineObj.miniprogram.pic_url=t.att_dir}this.modalPic=!1},insertName:function(){this.formItem.welcome_words.text.content="##客户名称##"},routineConfirm:function(){var t=this.deepClone(this.rontineObj);this.formItem.welcome_words.attachments.push(t)},routineCancel:function(){},getWorkLabel:function(){var t=this;Object(s.P)().then((function(e){t.mapTree(e.data)}))},mapTree:function(t){for(var e=0;e