| 1 |
- "use strict";(self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[]).push([[9737],{79737:function(e,t,o){o.r(t),o.d(t,{default:function(){return u}});var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"container normal-panel normal-margin"},[o("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-plus"},on:{click:function(t){e.dialogFormVisible=!0}}},[e._v("新建群组")]),o("el-dialog",{attrs:{title:"新建群组","append-to-body":"",visible:e.dialogFormVisible,width:"600px"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[o("el-form",{ref:"form",attrs:{model:e.form,"label-position":"right","label-width":"80px",size:"small"}},[o("el-form-item",{attrs:{label:"群组名称",prop:"groupname",rules:[{required:!0,message:"群组名称不能为空"}]}},[o("el-input",{attrs:{autocomplete:"on",placeholder:"输入群组名称"},model:{value:e.form.groupname,callback:function(t){e.$set(e.form,"groupname",t)},expression:"form.groupname"}})],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{staticStyle:{width:"120px"},attrs:{size:"small"},on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")]),o("el-button",{staticStyle:{width:"120px"},attrs:{size:"small",type:"primary"},on:{click:function(t){return e.addGroup()}}},[e._v("确 定")])],1)],1)],1)},l=[],s={data(){return{dialogFormVisible:!1,form:{}}},methods:{addGroup(){this.$refs["form"].validate((async e=>{if(!e)return!1;const t=this.$api.requested({id:"20220831164203",version:1,content:{sys_phonebookgroupid:0,groupname:this.form.groupname}});this.tool.showMessage(t,(()=>{setTimeout((()=>{this.$emit("onSuccess")}),500),this.dialogFormVisible=!1}))}))}}},r=s,a=o(43736),n=(0,a.Z)(r,i,l,!1,null,null,null),u=n.exports}}]);
|