1 |
- webpackJsonp([22],{"1sRj":function(t,e,i){"use strict";var a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{"append-to-body":!0,"custom-class":"channel_code_group",title:t.propsData.dialogTitle+"分组",visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"dialogBox"},[i("div",{staticClass:"lable"},[t._v("分组名称")]),t._v(" "),i("el-input",{attrs:{size:"small",placeholder:"请输入内容",maxlength:"8","show-word-limit":"",clearable:""},model:{value:t.groupName,callback:function(e){t.groupName=e},expression:"groupName"}})],1),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"mini"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(e){return t.save(t.propsData.dialogTitle)}}},[t._v("确 定")])],1)])},staticRenderFns:[]};var s=i("VU/8")({name:"dialogGroup",props:["propsData"],data:function(){return{groupName:"",dialogVisible:!1,loading:!1}},methods:{save:function(t){"修改"==t?this.editGroup():this.addGroup()},addGroup:function(){var t=this;""!=this.groupName?(this.loading=!0,this.$axios.post(this.URL.BASEURL+this.URL.channel_addGroup,{name:this.groupName}).then(function(e){e=e.data,t.loading=!1,t.$message({message:e.err,type:"warning"}),e&&0==e.errno&&(t.dialogVisible=!1,t.$emit("init"))}).catch(function(e){t.loading=!1})):this.$message({message:"分组名必填",type:"info"})},editGroup:function(){var t=this;""!=this.groupName?(this.loading=!0,this.$axios.post(this.URL.BASEURL+this.URL.channel_editGroup,{id:this.propsData.groupId,name:this.groupName}).then(function(e){e=e.data,t.loading=!1,t.$message({message:e.err,type:"warning"}),e&&0==e.errno&&(t.dialogVisible=!1,t.$emit("init"))}).catch(function(e){t.loading=!1})):this.$message({message:"分组名必填",type:"info"})}}},a,!1,function(t){i("sBkz")},null,null);e.a=s.exports},DHLo:function(t,e){},GWlc:function(t,e){},eReF:function(t,e){t.exports="data:image/png;base64,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"},ekrW:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("mvHQ"),s=i.n(a),n=i("1sRj"),l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"flex-align-center"},[2==t.node_radio?a("el-input",{staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"请输入客户备注",size:"small"},on:{blur:t.changeIpt},model:{value:t.customerNote_val,callback:function(e){t.customerNote_val=e},expression:"customerNote_val"}},[a("template",{slot:"prepend"},[t._v("客户昵称-")])],2):t._e(),t._v(" "),1==t.node_radio?a("el-input",{staticClass:"appendOnly",staticStyle:{width:"300px"},attrs:{clearable:"",size:"small",placeholder:"请输入客户备注"},on:{blur:t.changeIpt},model:{value:t.customerNote_val,callback:function(e){t.customerNote_val=e},expression:"customerNote_val"}},[a("template",{slot:"append"},[t._v("-客户昵称")])],2):t._e(),t._v(" "),a("div",{staticStyle:{display:"flex","margin-left":"20px"}},[a("el-radio",{attrs:{label:1},model:{value:t.node_radio,callback:function(e){t.node_radio=e},expression:"node_radio"}},[t._v("备注在昵称前")]),t._v(" "),a("el-radio",{attrs:{label:2},model:{value:t.node_radio,callback:function(e){t.node_radio=e},expression:"node_radio"}},[t._v("备注在昵称后")])],1)],1),t._v(" "),a("div",{staticClass:"sampleBox"},[a("div",{staticClass:"f14"},[t._v("示例")]),t._v(" "),a("div",{staticClass:"customerNoteBox"},[a("img",{attrs:{src:i("eReF"),alt:""}}),t._v(" "),a("div",{staticClass:"flex-align-center"},[1==t.node_radio?[a("span",{staticClass:"c-000"},[t._v(t._s(t.customerNote_val))]),t._v(" -客户昵称")]:t._e(),t._v(" "),2==t.node_radio?[t._v("客户昵称- "),a("span",{staticClass:"c-000"},[t._v(t._s(t.customerNote_val))])]:t._e()],2)])])])},staticRenderFns:[]};var r=i("VU/8")({name:"customerNote",props:["propsVal"],data:function(){return{customerNote_val:"",node_radio:1}},watch:{"propsVal.noteVal":function(){this.customerNote_val=this.propsVal.noteVal},"propsVal.radioval":function(){this.node_radio=this.propsVal.radioval}},created:function(){this.customerNote_val=this.propsVal.noteVal,this.node_radio=this.propsVal.radioval?this.propsVal.radioval:1},methods:{changeIpt:function(){this.$emit("changeVal",this.customerNote_val,this.node_radio)}}},l,!1,function(t){i("lyKY")},"data-v-691d61c4",null).exports,o=i("fGUm"),c=i("sPH2"),d=i("UOPL"),_=i("zifI"),u=i("sOQl"),h={name:"createChannelCode",components:{dialogGroup:n.a,selfCustomerservice:o.a,enterpriseTag:c.a,editCon:d.a,welcomEdit:_.a,customerNote:r,customerServiceCorp:u.a},data:function(){return{loading:!1,channelName:"",is_day_parting:!1,group_val:"",groupArrs:[],user_id_list:[],user_idName:[],afferent_tag_obj:{tag_id_list:[]},resetFlag:!1,init_welcom_con:{is_day_parting:1,weeks:[1,2,3,4,5,6,0],start_time:"",end_time:"",content:"",attachments:[],msg_id:""},main_msg_data:{is_day_parting:0,weeks:[],start_time:"",end_time:"",content:"",attachments:[]},deleteTimeIntervalList:[],timeIntervalList:[],add_limit:!1,customerNote_val:"",customer_prefix_type:"",warn_user:[],tag_info:[],detialFlag:!1,afferent_limit:[],tableData:[],noChooseFlag:!1,user_ids:[],dialogVisible:!1,batchVal:"",get_djuser_list:[]}},watch:{user_id_list:{immediate:!1,handler:function(t,e){var i=this;if(this.user_id_list&&0==this.user_id_list.length)this.add_limit=!1;else{var a=[],s=[];this.tableData.forEach(function(t){a.push(t.user_id)}),this.user_id_list.forEach(function(t,e){var n=a.indexOf(t);n>-1?s.push(i.tableData[n]):s.push({toplimit:"",user_id:t,assign_count:0,is_open:1,name:i.user_idName[e]})}),this.tableData=s}}}},created:function(){this.initGroupList()},methods:{deleKefu:function(t){var e=this;this.tableData.forEach(function(i,a){t==i.user_id&&e.tableData.splice(a,1)}),this.deleUserId(t)},batchValSave:function(){var t=this;""!=this.batchVal?(this.user_ids.forEach(function(e,i){e.toplimit=t.batchVal}),this.dialogVisible=!1):this.$message({type:"error",message:"上限不能为空!"})},noChooseCustomeTips:function(){this.noChooseFlag=!1,this.user_ids&&(0==this.user_ids.length&&(this.$message({type:"error",message:"请选择成员!"}),this.noChooseFlag=!0),this.user_ids.length>=4&&(this.$message({type:"error",message:"最多可选3个成员!"}),this.noChooseFlag=!0))},handleSelectionChange:function(t){this.user_ids=t},batch_setting:function(){this.noChooseCustomeTips(),this.noChooseFlag||(this.dialogVisible=!0)},goDataAanlyse:function(t){this.$router.push("/dataAnalyse/"+t)},deleUserId:function(t){this.user_id_list.splice(this.user_id_list.indexOf(t),1),this.$refs.selfKefu.afferent_init()},initGroupList:function(){var t=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.channel_groupList,{params:{page:1,pagesize:500}}).then(function(e){(e=e.data)&&0==e.errno?(t.groupArrs=e.rst.data,t.$route.query.id?t.detail():(t.detialFlag=!0,t.loading=!1)):4002!=e.errno&&(t.$message({message:e.err,type:"warning"}),t.loading=!1)})},detail:function(){var t=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.channel_codeDetial,{params:{id:this.$route.query.id}}).then(function(e){if((e=e.data)&&0==e.errno){var i=e.rst;t.channelName=i.name,t.customerNote_val=i.customer_prefix,t.customer_prefix_type=i.customer_prefix_type;var a=[];t.groupArrs.forEach(function(t){a.push(Number(t.id))}),a.indexOf(Number(i.group_id))>-1?t.group_val=Number(i.group_id):t.group_val="",i.staff_users&&i.staff_users.length>0&&i.staff_users.forEach(function(e){t.user_id_list.push(e.user_id),t.tableData.push({toplimit:e.toplimit,user_id:e.user_id,name:e.staff_name,assign_count:e.user_add_count,is_open:e.is_open})}),1==i.up_toplimit?(t.add_limit=!0,JSON.parse(i.warn_user)&&JSON.parse(i.warn_user).length>0&&(t.warn_user=JSON.parse(i.warn_user),t.get_djuser_list=JSON.parse(i.warn_user))):t.add_limit=!1,t.afferent_tag_obj.tag_id_list=JSON.parse(i.tag_list),t.tag_info=JSON.parse(i.tag_list);var s=i.welcomeMsg;s.forEach(function(t){String.prototype.replaceAll?t.content=t.content?t.content.replaceAll("%NICKNAME%","「客户昵称」"):"":t.content=t.content?t.content.replace(/\%NICKNAME\%/g,"「客户昵称」"):"",t.attachments=t.attachments&&""!=t.attachments?JSON.parse(t.attachments):[],t.weeks?t.weeks=t.weeks.split(","):t.weeks=[]});var n=s.filter(function(t){return 0==t.is_day_parting});t.main_msg_data=n&&n.length>0?n[0]:{},t.timeIntervalList=s.filter(function(t){return 1==t.is_day_parting}),s.length>1&&(t.is_day_parting=!0),t.detialFlag=!0,t.loading=!1}else 4002!=e.errno&&(t.$message({message:e.err,type:"warning"}),t.$router.go(-1))}).catch(function(e){t.loading=!1})},tipsClick:function(){this.user_id_list&&0==this.user_id_list.length&&this.$message({type:"error",message:"请先选择使用客服!"})},newCode_click:function(){var t=this;if(""!=this.channelName)if(this.user_id_list&&0==this.user_id_list.length)this.$message({type:"error",message:"使用客服不能为空!"});else if(""!=this.customerNote_val)if(""!=this.main_msg_data.content||this.main_msg_data.attachments&&""!=this.main_msg_data.attachments&&0!=this.main_msg_data.attachments.length)if(""!=this.main_msg_data.content&&this.$getStrBytes(this.main_msg_data.content)>4e3)this.$message({message:"请检查【主】欢迎语内容,最多4000个字节,已超出!",type:"error"});else if(this.add_limit&&this.get_djuser_list&&0==this.get_djuser_list.length)this.$message({message:"预警人不能为空",type:"error"});else{var e=[];this.get_djuser_list.forEach(function(t){e.push({corpid:t.corpid,user_id:t.user_id})});var i=[];this.add_limit?i=this.tableData:this.user_id_list.forEach(function(t){i.push({toplimit:0,is_open:1,user_id:t})});var a=[];if(this.is_day_parting){for(var n=0;n<this.timeIntervalList.length;n++){var l=this.timeIntervalList[n];if(""==l.content&&(!l.attachments||""==l.attachments||0==l.attachments.length))return void this.$message({message:"请输入【时段"+(n+1)+"】欢迎语内容!",type:"warning"});if(""!=l.content&&this.$getStrBytes(l.content)>4e3)return void this.$message({message:"请检查【时段"+(n+1)+"】欢迎语内容,最多4000个字节,已超出!",type:"error"});if(!l.weeks||0==l.weeks.length)return void this.$message({message:"请选择【时段"+(n+1)+"】发送日期!",type:"warning"});if(!l.start_time||""==l.start_time)return void this.$message({message:"请输入【时段"+(n+1)+"】发送开始时间!",type:"warning"});if(!l.end_time||""==l.end_time)return void this.$message({message:"请输入【时段"+(n+1)+"】发送结束时间!",type:"warning"});if(this.$date_compatible("2020-04-01 "+l.start_time).getTime()>this.$date_compatible("2020-04-01 "+l.end_time).getTime())return void this.$message({message:"请正确输入【时段"+(n+1)+"】发送时间!",type:"warning"})}"copy"==this.$route.query.type&&this.timeIntervalList.forEach(function(t){t.id="",t.msg_id="",t.sq_id=""}),a=a.concat(this.timeIntervalList)}else{var r=JSON.parse(s()(this.timeIntervalList));(r=r.filter(function(t){return t.msg_id})).forEach(function(t){t.operate="del"}),this.deleteTimeIntervalList=this.deleteTimeIntervalList.concat(r)}a=a.concat(this.deleteTimeIntervalList),"copy"==this.$route.query.type&&(this.main_msg_data.id="",this.main_msg_data.msg_id="",this.main_msg_data.sq_id=""),a.push(this.main_msg_data),a.forEach(function(t){if(t.weeks&&t.weeks.length>0){"string"==typeof t.weeks&&(t.weeks=t.weeks.split(","));var e="";t.weeks.forEach(function(t){e+=t+","}),t.weeks=e.slice(0,e.length-1)}else t.weeks="";String.prototype.replaceAll?t.content=t.content.replaceAll("「客户昵称」","%NICKNAME%"):t.content=t.content.replace(/「客户昵称」/g,"%NICKNAME%"),t.attachments=""==t.attachments||t.attachments&&0==t.attachments.length?"":s()(t.attachments)}),this.$loading(this.$loadingConfig);var o=void 0;o=!this.$route.query.type&&this.$route.query.id?this.URL.channel_codeEdit:this.URL.channel_createCode,this.$axios.post(this.URL.BASEURL+o,{id:this.$route.query.id?"copy"==this.$route.query.type?"":this.$route.query.id:"",name:this.channelName,group_id:this.group_val,user_json:s()(i),tag_list:s()(this.tag_info),customer_prefix:this.customerNote_val,customer_prefix_type:this.customer_prefix_type,msg_data:a,warn_user:s()(e),up_toplimit:this.add_limit?1:0}).then(function(e){e=e.data;t.$loading(t.$loadingConfig).close(),e&&0==e.errno?t.$router.go(-1):4002!=e.errno&&t.$message({message:e.err,type:"warning"}),t.welcomEditShow=!0}).catch(function(e){t.$loading(t.$loadingConfig).close()})}else this.$message({message:"请输入【主】欢迎语内容!",type:"warning"});else this.$message({type:"error",message:"客户备注不能为空!"});else this.$message({type:"error",message:"渠道名称不能为空!"})},tagDefine:function(t){t.tag_id_list&&0!=t.tag_id_list.length?this.tag_info=t.tag_id_list:this.tag_info=[]},getAttachment:function(t){this.main_msg_data.attachments=t},switchChange:function(){if(this.is_day_parting&&0==this.timeIntervalList.length){var t={is_day_parting:1,weeks:[1,2,3,4,5,6,0],start_time:"",end_time:"",content:"",attachments:[],key_val:(new Date).getTime()};this.timeIntervalList.push(t)}},getWelcomEdit:function(t,e){this.$set(this.timeIntervalList,e,t)},deleteWelcomCon:function(t,e){var i=this;if(this.$route.query.id&&e.msg_id){var a=JSON.parse(s()(e));a.operate="del",this.deleteTimeIntervalList.push(a)}this.timeIntervalList.forEach(function(e,a){e.key_val==t&&i.timeIntervalList.splice(a,1)})},addWelcom:function(){var t={is_day_parting:1,weeks:[1,2,3,4,5,6,0],start_time:"",end_time:"",content:"",attachments:[],key_val:(new Date).getTime()};this.timeIntervalList.push(t)},switchLimit:function(){this.user_id_list&&0==this.user_id_list.length&&this.$message({type:"error",message:"使用客服不能为空!"})}}},m={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"backBox",on:{click:function(e){return t.$router.go(-1)}}},[t._m(0)]),t._v(" "),i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"bg-ffffff createMassMsg",staticStyle:{padding:"15px 30px"}},[t._m(1),t._v(" "),i("div",{staticClass:"line",staticStyle:{"margin-top":"20px"}}),t._v(" "),i("h3",{staticClass:"bigTitle"},[t._v("基础信息")]),t._v(" "),i("div",{staticClass:"regulations"},[t._m(2),t._v(" "),i("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入渠道名称",maxlength:"32","show-word-limit":"",clearable:"",size:"small"},model:{value:t.channelName,callback:function(e){t.channelName="string"==typeof e?e.trim():e},expression:"channelName"}})],1),t._v(" "),i("div",{staticClass:"regulations",staticStyle:{"align-items":"center"}},[t._m(3),t._v(" "),i("el-select",{staticStyle:{width:"300px"},attrs:{size:"small",clearable:"",filterable:"",placeholder:"请选择分组"},model:{value:t.group_val,callback:function(e){t.group_val=e},expression:"group_val"}},t._l(t.groupArrs,function(t){return i("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})}),1),t._v(" "),i("div",{staticClass:"newGroupCss",on:{click:function(e){t.$refs.dialogGroupRef.dialogVisible=!0}}},[t._v("新建分组")])],1),t._v(" "),i("div",{staticClass:"regulations"},[t._m(4),t._v(" "),t.detialFlag?i("self-customerservice",{ref:"selfKefu",staticStyle:{margin:"0"},attrs:{title:"",width:"300px",source:"channelCode",afferent_users:t.user_id_list},on:{customerDefine:function(e,i){t.user_id_list=e,t.user_idName=i}}}):t._e()],1),t._v(" "),i("div",{staticClass:"regulations"},[t._m(5),t._v(" "),t.detialFlag?i("enterprise-tag",{ref:"tagRef",staticStyle:{margin:"0"},attrs:{title:"",width:"300px",afferent_obj:t.afferent_tag_obj,reset:t.resetFlag},on:{tagDefine:t.tagDefine}}):t._e()],1),t._v(" "),i("div",{staticClass:"regulations"},[t._m(6),t._v(" "),t.detialFlag?i("edit-con",{attrs:{source:"welcom",afferent_content:t.main_msg_data.content,afferent_attachments:t.main_msg_data.attachments},on:{editContent:function(e){t.main_msg_data.content=e},changeAttachment:t.getAttachment}}):t._e()],1),t._v(" "),i("h3",{staticClass:"bigTitle",staticStyle:{"margin-top":"20px"}},[t._v("\n 分时段欢迎语:\n "),i("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ddd"},on:{change:t.switchChange},model:{value:t.is_day_parting,callback:function(e){t.is_day_parting=e},expression:"is_day_parting"}})],1),t._v(" "),t.is_day_parting?[t._m(7),t._v(" "),t._l(t.timeIntervalList,function(e,a){return i("div",{key:e.key_val,staticClass:"regulations regulations2"},[i("label",{staticStyle:{"margin-top":"30px","text-align":"right"}},[t._v("时段"+t._s(a+1)+":")]),t._v(" "),i("welcom-edit",{attrs:{deleteFlag:1!=t.timeIntervalList.length,editInfo:e},on:{welcomEditCon:function(e){t.getWelcomEdit(e,a)},deleteWelcomCon:function(i){return t.deleteWelcomCon(e.key_val,e)}}})],1)}),t._v(" "),i("div",{staticClass:"add_welcom_hint",on:{click:t.addWelcom}},[i("i",{staticClass:"el-icon-circle-plus-outline"}),t._v(" "),i("span",[t._v("添加分时段欢迎语")])])]:t._e(),t._v(" "),i("div",{staticClass:"line",staticStyle:{"margin-top":"20px"}}),t._v(" "),i("h3",{staticClass:"bigTitle",staticStyle:{"margin-top":"20px"}},[t._v("高级设置: ")]),t._v(" "),i("div",{staticClass:"regulations"},[t._m(8),t._v(" "),t.detialFlag?i("customerNote",{attrs:{propsVal:{noteVal:t.customerNote_val,radioval:t.customer_prefix_type}},on:{changeVal:function(e,i){t.customerNote_val=e,t.customer_prefix_type=i}}}):t._e()],1),t._v(" "),i("div",{staticClass:"regulations",staticStyle:{"align-items":"center"}},[i("label",[t._v("客服添加上限")]),t._v(" "),i("div",{staticClass:"limitBox",on:{click:t.tipsClick}},[i("el-switch",{attrs:{disabled:t.user_id_list&&0==t.user_id_list.length,"active-color":"#13ce66","inactive-color":"#ddd"},on:{change:t.switchLimit},model:{value:t.add_limit,callback:function(e){t.add_limit=e},expression:"add_limit"}})],1)]),t._v(" "),t.add_limit&&t.detialFlag?i("div",[i("div",{staticClass:"regulations"},[t._m(9),t._v(" "),i("customerServiceCorp",{staticStyle:{margin:"0",width:"100%"},attrs:{title:"",afferent_users:t.warn_user,icon_arrow_bg:!1,width:"300px"},on:{customerDefine:function(e){t.get_djuser_list=e}}})],1),t._v(" "),i("div",{staticClass:"listBox"},[i("el-button",{staticStyle:{margin:"5px 0"},attrs:{type:"primary",size:"mini"},on:{click:t.batch_setting}},[t._v("批量设置")]),t._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{border:"",data:t.tableData,"tooltip-effect":"dark","header-cell-style":function(){return{backgroundColor:"#f9f9f9 !important"}}},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{width:"40px",type:"selection"}}),t._v(" "),i("el-table-column",{attrs:{label:"全部成员",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[t._v(t._s(e.row.name?e.row.name:"-"))])]}}],null,!1,3050937561)}),t._v(" "),i("el-table-column",{attrs:{label:"每日添加客户上限",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-input",{attrs:{size:"mini"},model:{value:e.row.toplimit,callback:function(i){t.$set(e.row,"toplimit",i)},expression:"scope.row.toplimit"}})]}}],null,!1,3618747099)}),t._v(" "),i("el-table-column",{attrs:{label:"今日添加客户数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[t._v(t._s(e.row.assign_count||0==e.row.assign_count?e.row.assign_count:"-"))])]}}],null,!1,63859412)}),t._v(" "),i("el-table-column",{attrs:{label:"是否分配客户",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#ddd"},model:{value:e.row.is_open,callback:function(i){t.$set(e.row,"is_open",i)},expression:"scope.row.is_open"}})]}}],null,!1,3490521217)}),t._v(" "),i("el-table-column",{attrs:{label:"操作",align:"center",width:"80px"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"c-00B38A pointer lMar8",on:{click:function(i){return t.deleKefu(e.row.user_id)}}},[t._v("删除")])]}}],null,!1,2303089820)})],1)],1),t._v(" "),i("el-dialog",{attrs:{title:"设置添加上限",center:!0,visible:t.dialogVisible,width:"20%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[i("div",[t._v("每日添加客户上限: ")]),t._v(" "),i("div",{staticStyle:{width:"100px","margin-left":"20px"}},[i("el-input",{attrs:{size:"mini"},model:{value:t.batchVal,callback:function(e){t.batchVal=e},expression:"batchVal"}})],1)]),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"mini"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.batchValSave}},[t._v("确 定")])],1)])],1):t._e(),t._v(" "),i("div",{staticClass:"line",staticStyle:{"margin-top":"20px"}}),t._v(" "),i("div",{staticStyle:{"margin-top":"20px"}},[i("el-button",{attrs:{type:"primary"},on:{click:t.newCode_click}},[t._v("保存")])],1)],2),t._v(" "),i("dialogGroup",{ref:"dialogGroupRef",attrs:{propsData:{dialogTitle:"新建"}},on:{init:t.initGroupList}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"back"},[e("i",{staticClass:"el-icon-back"}),this._v(" "),e("span",[this._v("返回")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"self-hint",staticStyle:{"margin-top":"10px",width:"730px"}},[e("i",{staticClass:"el-icon-message-solid"}),this._v(" "),e("div",[e("div",[this._v("1.新建渠道活码最多可发送10条消息(包含1条文字消息和9条附加消息)")]),this._v(" "),e("div",[this._v("2.附加消息包括图片、连接、小程序")]),this._v(" "),e("div",[this._v("3.渠道欢迎语将在客户加为好友后20秒内发送,网络延迟可能造成发送失败")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("em",[this._v("*")]),this._v("渠道名称")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("em",{staticStyle:{opacity:"0"}},[this._v("*")]),this._v("选择分组")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("em",[this._v("*")]),this._v("使用客服")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("em",{staticStyle:{opacity:"0"}},[this._v("*")]),this._v("选择标签")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("em",[this._v("*")]),this._v("渠道欢迎语")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"self-hint",staticStyle:{"margin-top":"20px",width:"750px","margin-left":"70px"}},[e("p",[this._v("分时段欢迎语 :")]),this._v(" "),e("div",[e("p",[this._v("1、员工上下班不同时间段可设置不同欢迎语;")]),this._v(" "),e("p",[this._v("2、分时段之外的时间将发送欢迎语。")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("em",[this._v("*")]),this._v("客户备注")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("em",[this._v("*")]),this._v("预警人")])}]};var g=i("VU/8")(h,m,!1,function(t){i("GWlc"),i("DHLo")},"data-v-74fe5325",null);e.default=g.exports},lyKY:function(t,e){},sBkz:function(t,e){}});
|