1 |
- webpackJsonp([31],{"6ha6":function(t,e){},B4wK:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("mvHQ"),s=i.n(a),n=i("Dd8w"),r=i.n(n),o=i("//Fk"),l=i.n(o),c=i("Gu7T"),u=i.n(c),d=i("Xxa5"),h=i.n(d),p=i("exGp"),m=i.n(p),v=i("u2KI"),_=i.n(v),g=i("Irhv"),f=i("M4fF"),C=i.n(f),b={name:"chatGroupOptions",components:{selfInput:i("McOJ").a},props:{width:{type:String,default:function(){return""}},chatListResult:{type:Array,default:function(){return[]}}},data:function(){return{reset:!1,loading:!1,dialogVisible:!1,keyword:"",chatList:[],chatListSelected:[]}},computed:{chatListResultName:function(){return this.chatListResult.map(function(t){return t.name}).join(",")}},watch:{dialogVisible:function(t){t?this.handleGetChatList():(this.keyword="",this.reset=!this.reset)}},methods:{handleGetChatList:function(){var t=this;return m()(h.a.mark(function e(){var i,a,s;return h.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.loading=!0,t.chatList=[],e.next=5,t.$axios.get(t.URL.BASEURL+t.URL.groupCode_chatGroupList,{params:{keyword:t.keyword}});case 5:i=e.sent,a=i.data,(s=void 0===a?{}:a)&&0==s.errno?(t.chatList=s.rst.map(function(t){return r()({},t,{isSelected:!1})}),t.chatListResult.length&&t.handleGetChatListSelected(),t.handleGetIsSelectedChatStatus()):4002!=s.errno&&t.$message.warning(s.err),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),console.log("error => ",e.t0);case 14:return e.prev=14,t.loading=!1,e.finish(14);case 17:case"end":return e.stop()}},e,t,[[0,11,14,17]])}))()},onChangeKeyword:function(t){this.keyword=t,this.handleGetChatList()},handleCloseAllChatList:function(){this.chatList.forEach(function(t){t.isSelected=!1})},handleGetChatListSelected:function(){var t=this;this.chatListResult.forEach(function(e){var i=t.chatList.find(function(t){return t.chat_id===e.chat_id});i&&(!t.chatListSelected.find(function(t){return t.chat_id===i.chat_id})&&t.chatListSelected.push(i))})},handleGetIsSelectedChatStatus:function(){var t=this;this.handleCloseAllChatList(),this.chatListSelected.forEach(function(e){var i=t.chatList.findIndex(function(t){return t.chat_id===e.chat_id});-1!==i&&(t.chatList[i].isSelected=!0)})},handleSwitchChatItem:function(t,e){if(t.isSelected){this.chatList[e].isSelected=!1;var i=this.chatListSelected.findIndex(function(e){return e.chat_id===t.chat_id});-1!==i&&this.chatListSelected.splice(i,1)}else this.chatList[e].isSelected=!0,this.chatListSelected=[].concat(u()(this.chatListSelected),[t])},handleDelSelectedChat:function(t){this.chatListSelected.splice(t,1),this.handleGetIsSelectedChatStatus()},handleDelAllSelectedChat:function(){this.chatListSelected=[],this.handleGetIsSelectedChatStatus()},onClickConfirm:function(){this.chatListSelected.length?(this.$emit("change",C.a.cloneDeep(this.chatListSelected)),this.dialogVisible=!1):this.$message.warning("请选择群聊")}}},w={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"common-screen-item"},[i("el-popover",{attrs:{"append-to-body":"",placement:"bottom",trigger:"click"},model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}},[i("div",{class:["common-screen-self-box","common-input-select",t.chatListResult.length?"common-input-select-hover":""],style:t.width?"width:"+t.width:"",attrs:{slot:"reference"},slot:"reference"},[i("div",{class:["common-screen-self-con",t.chatListResult.length?"":"common-screen-self-placeholder"]},[i("div",{staticClass:"common-screen-self-con-div"},[t.chatListResult.length?i("span",[t._v(t._s(t.chatListResultName))]):i("span",[t._v("请选择群聊")])])]),t._v(" "),i("div",{staticClass:"common-screen-self-icon"},[i("i",{staticClass:"el-icon-arrow-down"})])]),t._v(" "),i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"flex",staticStyle:{padding:"10px"}},[i("div",{staticClass:"propoverItem"},[i("self-input",{staticStyle:{"margin-top":"0"},attrs:{reset:t.reset,hasLabel:!1,label_name:"群名称",width:"270px"},on:{inputChange:t.onChangeKeyword}}),t._v(" "),i("div",{staticClass:"allMember"},[t._v("\n 全部群聊("+t._s(t.chatList&&t.chatList.length)+"):\n ")]),t._v(" "),i("div",{staticClass:"memberBoxBig self-scrollbar-3"},t._l(t.chatList,function(e,a){return i("div",{key:e.chat_id,staticClass:"memberBox"},[i("div",{staticClass:"meberList"},[i("div",{staticClass:"memberItem",on:{click:function(i){return t.handleSwitchChatItem(e,a)}}},[i("div",{staticClass:"flex",staticStyle:{flex:"1"}},[i("i",{staticClass:"el-icon-chat-dot-round chat-icon"}),t._v(" "),i("div",{staticClass:"memberInfo"},[i("div",{staticClass:"name"},[t._v(t._s(e.name))])])]),t._v(" "),i("div",{class:["checkbox",e.isSelected?"checkbox_active":""]},[i("i",{staticClass:"el-icon-check"})])])])])}),0)],1),t._v(" "),i("div",{staticClass:"line"}),t._v(" "),i("div",{staticClass:"propoverItem",staticStyle:{"padding-left":"20px"}},[i("div",{staticClass:"title"},[t._v("已选择的群聊")]),t._v(" "),i("div",{staticClass:"choice_result_top"},[i("div",{staticClass:"clear",on:{click:t.handleDelAllSelectedChat}},[t._v("全部清空")]),t._v(" "),i("div",{staticClass:"result_num"},[t._v("\n 已选择"),i("span",[t._v(t._s(t.chatListSelected.length))]),t._v("个群\n ")])]),t._v(" "),i("div",{staticClass:"member_result self-scrollbar-3"},t._l(t.chatListSelected,function(e,a){return i("div",{key:e.chat_id,staticClass:"memberItem"},[i("div",{staticClass:"flex",staticStyle:{flex:"1"}},[i("i",{staticClass:"el-icon-chat-dot-round chat-icon"}),t._v(" "),i("div",{staticClass:"memberInfo"},[i("div",{staticClass:"name"},[t._v(t._s(e.name))])])]),t._v(" "),i("i",{staticClass:"el-icon-close",staticStyle:{"margin-left":"10px"},on:{click:function(e){return t.handleDelSelectedChat(a)}}})])}),0),t._v(" "),i("div",{staticClass:"buttons"},[i("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("取消")]),t._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.onClickConfirm}},[t._v("确定")])],1)])])])],1)},staticRenderFns:[]};var x=i("VU/8")(b,w,!1,function(t){i("6ha6")},"data-v-32889fa2",null).exports,S=i("fGUm"),y=i("2Uyi"),L=i("/dO2"),k={name:"createGroupCode",components:{dialogGroup:g.a,chatGroupOptions:x,selfCustomerservice:S.a},data:function(){return{loading:!1,groupOptions:[],groupForm:{name:"",group_id:"",chat_id_list:[],join_type:1,is_limit:0,user_list:[],leading_words:""},rule_id:this.$route.query.id||"",detailFromApi:_()({})}},computed:{isEdit:function(){var t=this.$route.query,e=t.id,i=void 0===e?"":e,a=t.type;return i&&"edit"===(void 0===a?"":a)},isCopy:function(){var t=this.$route.query,e=t.id,i=void 0===e?"":e,a=t.type;return i&&"copy"===(void 0===a?"":a)}},created:function(){this.handleGetGroupOptions(),(this.isEdit||this.isCopy)&&this.handleGetDetail()},mounted:function(){this.handleRowDrop()},methods:{handleGetDetail:function(){var t=this;return m()(h.a.mark(function e(){var i,a,s,n,r;return h.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.loading=!0,e.next=4,t.$axios.get(t.URL.BASEURL+t.URL.groupCode_ruleDetail,{params:{rule_id:t.rule_id}});case 4:i=e.sent,a=i.data,(s=void 0===a?{}:a)&&0==s.errno?(n=s.rst,r=void 0===n?{}:n,t.detailFromApi=_()(C.a.cloneDeep(r)),t.setGroupFormData(r)):4002!=s.errno&&(t.$message.warning(s.err),t.$router.go(-1)),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(0),console.log("error => ",e.t0),t.loading=!1;case 14:return e.prev=14,e.finish(14);case 16:case"end":return e.stop()}},e,t,[[0,10,14,16]])}))()},setGroupFormData:function(t){var e=this;return m()(h.a.mark(function i(){var a,s,n;return h.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,["name","group_id","chat_id_list","join_type","is_limit","leading_words"].forEach(function(i){e.groupForm[i]=t[i]}),e.groupForm.user_list=t.user_list.split(","),i.next=6,e.$nextTick();case 6:return e.$refs.selfKefu&&e.$refs.selfKefu.handleCreatedFn(),i.next=9,e.$axios.get(e.URL.BASEURL+e.URL.groupCode_chatGroupList,{params:{keyword:""}});case 9:a=i.sent,s=a.data,(n=void 0===s?{}:s)&&0==n.errno&&Array.isArray(n.rst)&&(t.chat_id_list.forEach(function(e,i){var a=n.rst.find(function(t){return t.chat_id===e.chat_id});a&&(t.chat_id_list[i].name=a.name)}),e.groupForm.chat_id_list=[].concat(u()(t.chat_id_list))),i.next=18;break;case 15:i.prev=15,i.t0=i.catch(0),console.log("error => ",i.t0);case 18:return i.prev=18,e.loading=!1,i.finish(18);case 21:case"end":return i.stop()}},i,e,[[0,15,18,21]])}))()},handleRowDrop:function(){var t=document.querySelector(".el-table__body-wrapper tbody"),e=this;L.a.create(t,{handle:".drag-handler",onEnd:function(t){var i=t.newIndex,a=t.oldIndex;if(i!=a){e.groupForm.chat_id_list.splice(i,0,e.groupForm.chat_id_list.splice(a,1)[0]);var s=e.groupForm.chat_id_list.slice(0);e.groupForm.chat_id_list=[],e.$nextTick(function(){e.groupForm.chat_id_list=s,e.$refs.chatGroupOptions.chatListSelected=[]})}}})},onClickSave:function(){var t=this;return m()(h.a.mark(function e(){var i,a,s,n,r;return h.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.handleFormValidate();case 3:return i=t.handleGetParams(),a=i.url,s=i.params,t.loading=!0,e.next=7,t.$axios.post(a,s);case 7:n=e.sent,(r=n.data)&&0==r.errno?(t.$message.success("保存成功"),t.$router.go(-1)):4002!=r.errno&&t.$message.warning(r.err||"操作失败"),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),console.log("error => ",e.t0);case 15:return e.prev=15,t.loading=!1,e.finish(15);case 18:case"end":return e.stop()}},e,t,[[0,12,15,18]])}))()},onInputUserLimit:function(t,e){this.groupForm.chat_id_list[e].user_limit=Object(y.k)(t)},handleFormValidate:function(){var t=this,e=this.groupForm,i=e.name,a=e.chat_id_list,s=e.is_limit,n=e.user_list,r=e.leading_words,o=a.some(function(t){return 0===Number(t.user_limit)});return new l.a(function(e,l){i?a.length?1===s&&o?(t.$message.warning("请输入人数上限"),l("表单校验未通过")):n.length?r?e("表单校验通过"):(t.$message.warning("请输入引导话术"),l("表单校验未通过")):(t.$message.warning("请选择生效成员"),l("表单校验未通过")):(t.$message.warning("请选择群聊"),l("表单校验未通过")):(t.$message.warning("请输入渠道名称"),l("表单校验未通过"))})},handleGetParams:function(){var t=""+this.URL.BASEURL+this.URL[this.isEdit?"groupCode_editRule":"groupCode_setRule"],e=this.groupForm,i=e.name,a=e.group_id,n=e.join_type,o=e.is_limit,l=e.user_list,c=e.leading_words,u=e.chat_id_list.map(function(t){return delete t.sort,r()({},t)}),d={name:i,group_id:a,join_type:n,is_limit:o,user_list:l.join(","),leading_words:c};return this.isEdit&&(d.rule_id=this.rule_id,d.config_id=this.detailFromApi.config_id,this.detailFromApi.chat_id_list.forEach(function(t,e){u.find(function(e){return e.chat_id===t.chat_id})||(t.enable=0,u.push(t))})),d.chat_id_list=s()(u),{url:t,params:d}},handleGetGroupOptions:function(){var t=this;return m()(h.a.mark(function e(){var i,a,s;return h.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$axios.get(t.URL.BASEURL+t.URL.channel_groupList,{params:{type:2,page:1,pagesize:500}});case 2:i=e.sent,a=i.data,(s=void 0===a?{}:a)&&0==s.errno?t.groupOptions=s.rst.data:4002!=s.errno&&t.$message.warning(s.err);case 6:case"end":return e.stop()}},e,t)}))()},handleShowLimitTips:function(){this.groupForm.chat_id_list.length||this.$message.error("请先选择群聊")},onChangeSwitchLimit:function(){this.groupForm.chat_id_list.length||this.$message.error("请先选择群聊")},onClickDelChat:function(t,e){this.groupForm.chat_id_list.splice(e,1),this.$refs.chatGroupOptions.chatListSelected=[],this.groupForm.chat_id_list.length||(this.groupForm.is_limit=0)},onChangeUserList:function(t){this.groupForm.user_list=Array.isArray(t)&&t.length?t:[]},onChangeChatGroup:function(t){var e=this.groupForm.chat_id_list,i=t.map(function(t){return{chat_id:t.chat_id,name:t.name,user_limit:0,enable:1,status:1}});i.forEach(function(t,a){var s=e.find(function(e){return t.chat_id===e.chat_id});s&&i.splice(a,1,s)}),this.groupForm.chat_id_list=[].concat(u()(i))}}},$={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"create-wrap"},[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"}},[i("h3",{staticClass:"bigTitle"},[t._v("基础信息")]),t._v(" "),i("div",{staticClass:"regulations"},[t._m(1),t._v(" "),i("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入渠道名称",maxlength:"32",size:"small","show-word-limit":"",clearable:""},model:{value:t.groupForm.name,callback:function(e){t.$set(t.groupForm,"name","string"==typeof e?e.trim():e)},expression:"groupForm.name"}})],1),t._v(" "),i("div",{staticClass:"regulations",staticStyle:{"align-items":"center"}},[t._m(2),t._v(" "),i("el-select",{staticStyle:{width:"300px"},attrs:{size:"small",clearable:"",filterable:"",placeholder:"请选择分组"},model:{value:t.groupForm.group_id,callback:function(e){t.$set(t.groupForm,"group_id",e)},expression:"groupForm.group_id"}},t._l(t.groupOptions,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("\n 新建分组\n ")])],1),t._v(" "),i("div",{staticClass:"regulations"},[t._m(3),t._v(" "),i("chatGroupOptions",{ref:"chatGroupOptions",staticStyle:{margin:"0"},attrs:{width:"300px",chatListResult:t.groupForm.chat_id_list},on:{change:t.onChangeChatGroup}})],1),t._v(" "),i("div",{staticClass:"regulations"},[t._m(4),t._v(" "),i("el-radio-group",{model:{value:t.groupForm.join_type,callback:function(e){t.$set(t.groupForm,"join_type",e)},expression:"groupForm.join_type"}},[i("el-radio",{attrs:{label:1}},[t._v("顺序进群")]),t._v(" "),i("el-radio",{attrs:{label:2}},[t._v("随机进群")])],1)],1),t._v(" "),i("div",{staticClass:"regulations",staticStyle:{"align-items":"center"}},[i("label",[t._v("渠道群管理")]),t._v(" "),i("div",{staticClass:"limitBox",on:{click:t.handleShowLimitTips}},[i("el-switch",{attrs:{disabled:!t.groupForm.chat_id_list.length,"active-color":"#13ce66","inactive-color":"#ddd","active-value":1,"inactive-value":0},on:{change:t.onChangeSwitchLimit},model:{value:t.groupForm.is_limit,callback:function(e){t.$set(t.groupForm,"is_limit",e)},expression:"groupForm.is_limit"}})],1)]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.groupForm.is_limit,expression:"groupForm.is_limit"}],staticClass:"listBox"},[i("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.groupForm.chat_id_list,"tooltip-effect":"dark","header-cell-style":function(){return{backgroundColor:"#f9f9f9 !important"}}}},[i("el-table-column",{attrs:{label:"拖拽排序",width:"80",align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){return t.row,[i("div",{staticClass:"drag-handler"},[i("i",{staticClass:"el-icon-rank"})])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"群名称",align:"center",prop:"name"}}),t._v(" "),i("el-table-column",{attrs:{label:"人数上限",align:"center"},scopedSlots:t._u([{key:"header",fn:function(e){return[i("em",{staticStyle:{color:"#ff0000"}},[t._v("*")]),t._v("人数上限\n ")]}},{key:"default",fn:function(e){var a=e.row,s=e.$index;return[i("el-input",{attrs:{size:"mini"},on:{input:function(e){return t.onInputUserLimit(e,s)}},model:{value:a.user_limit,callback:function(e){t.$set(a,"user_limit",e)},expression:"row.user_limit"}})]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"状态",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[i("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#ddd"},model:{value:a.status,callback:function(e){t.$set(a,"status",e)},expression:"row.status"}})]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"操作",align:"center",width:"80px"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row,s=e.$index;return[i("div",{staticClass:"c-00B38A pointer lMar8",on:{click:function(e){return t.onClickDelChat(a,s)}}},[t._v("\n 删除\n ")])]}}])})],1)],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",staticStyle:{"align-items":"center"}},[t._m(5),t._v(" "),i("self-customerservice",{ref:"selfKefu",staticStyle:{margin:"0"},attrs:{title:"",width:"300px",source:"channelCode",afferent_users:t.groupForm.user_list},on:{customerDefine:t.onChangeUserList}}),t._v(" "),i("div",{staticClass:"user-tips"},[t._v("\n 当客户点击客服时,会引导客户随机添加一名客服成员的企业微信\n ")])],1),t._v(" "),i("div",{staticClass:"regulations"},[t._m(6),t._v(" "),i("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入引导话术",maxlength:"20",size:"small","show-word-limit":"",clearable:""},model:{value:t.groupForm.leading_words,callback:function(e){t.$set(t.groupForm,"leading_words","string"==typeof e?e.trim():e)},expression:"groupForm.leading_words"}})],1),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.onClickSave}},[t._v("保存")])],1)]),t._v(" "),i("dialogGroup",{ref:"dialogGroupRef",attrs:{propsData:{dialogTitle:"新建"}},on:{init:t.handleGetGroupOptions}})],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("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("label",[e("em",[this._v("*")]),this._v("引导话术")])}]};var F=i("VU/8")(k,$,!1,function(t){i("x+YA"),i("WXSt")},"data-v-7db4d26c",null);e.default=F.exports},Irhv:function(t,e,i){"use strict";var a=i("Xxa5"),s=i.n(a),n=i("exGp"),r=i.n(n),o={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;return r()(s.a.mark(function e(){var i,a,n;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=t.groupName){e.next=3;break}return t.$message.warning("分组名必填"),e.abrupt("return");case 3:return e.prev=3,t.loading=!0,e.next=7,t.$axios.post(t.URL.BASEURL+t.URL.channel_addGroup,{name:t.groupName,type:2});case 7:i=e.sent,a=i.data,(n=void 0===a?{}:a)&&0==n.errno&&(t.$message.success(n.err),t.dialogVisible=!1,t.$emit("init")),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),console.log("error => ",e.t0);case 16:return e.prev=16,t.loading=!1,e.finish(16);case 19:case"end":return e.stop()}},e,t,[[3,13,16,19]])}))()},editGroup:function(){var t=this;return r()(s.a.mark(function e(){var i,a,n;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=t.groupName){e.next=3;break}return t.$message.warning("分组名必填"),e.abrupt("return");case 3:return e.prev=3,t.loading=!0,e.next=7,t.$axios.post(t.URL.BASEURL+t.URL.channel_editGroup,{id:t.propsData.groupId,name:t.groupName});case 7:i=e.sent,a=i.data,(n=void 0===a?{}:a)&&0==n.errno&&(t.$message.success(n.err),t.dialogVisible=!1,t.$emit("init",{isChangeRuleList:!0})),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),console.log("error => ",e.t0);case 16:return e.prev=16,t.loading=!1,e.finish(16);case 19:case"end":return e.stop()}},e,t,[[3,13,16,19]])}))()}}},l={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 c=i("VU/8")(o,l,!1,function(t){i("gKSo")},null,null);e.a=c.exports},WXSt:function(t,e){},gKSo:function(t,e){},"x+YA":function(t,e){}});
|