text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-79f5"],{"0242":function(t,e,i){},4069:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("c665"),a=i("aa9a"),s=i("4a2d"),r=function(){function t(){Object(n["a"])(this,t)}return Object(a["a"])(t,null,[{key:"index",value:function(t,e,i){s["a"].request(s["a"].url()+"user3/index",e,i,t)}},{key:"add",value:function(t,e,i){s["a"].request(this.uri()+"add",e,i,t)}},{key:"delete",value:function(t,e,i){s["a"].request(this.uri()+"delete",e,i,t)}},{key:"group_spinner",value:function(t,e,i){s["a"].request(this.uri()+"group_spinner",e,i,t)}},{key:"company_spinner",value:function(t,e,i){s["a"].request(this.uri()+"company_spinner",e,i,t)}},{key:"uri",value:function(){return s["a"].url()+"user/"}}]),t}()},"7c5f":function(t,e,i){"use strict";var n=i("0242"),a=i.n(n);a.a},"9d09":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"pages"},[i("H3",[t._v("基础信息")]),i("div",{staticClass:"line"}),i("el-form",{ref:"form",staticClass:"form",attrs:{model:t.form,"label-width":"120px"}},[i("el-row",[i("el-form-item",{staticStyle:{width:"500px"},attrs:{label:"选择企业"}},[i("el-select",{staticClass:"header-col-select",attrs:{placeholder:"请选择"},model:{value:t.user_id,callback:function(e){t.user_id=e},expression:"user_id"}},t._l(t.form.company,function(t){return i("el-option",{key:t.id,attrs:{value:t.id,label:t.company}})}))],1),i("el-form-item",{staticStyle:{width:"500px"},attrs:{label:"选择分组"}},[i("el-select",{staticClass:"header-col-select",attrs:{placeholder:"请选择"},model:{value:t.group_id,callback:function(e){t.group_id=e},expression:"group_id"}},t._l(t.list.group,function(t){return i("el-option",{key:t.id,attrs:{value:t.id,label:t.name}})}))],1)],1),i("el-form-item",[i("el-button",{attrs:{type:"primary",loading:t.isLoading},on:{click:t.onSubmit}},[t._v("提交")]),i("el-button",{on:{click:t.back}},[t._v("返回")])],1)],1)],1)},a=[],s=(i("551c"),i("8a81"),i("4069")),r=i("4a2d"),u={data:function(){return{form:{},list:{},isLoading:!1,user_id:null,group_id:null}},mounted:function(){this.init()},methods:{init:function(){this.loadData()},onSubmit:function(){var t=this;this.isLoading=!0,r["a"].isStrValid(this.user_id)?r["a"].isStrValid(this.group_id)?s["a"].add({user_id:this.user_id,group_id:this.group_id},function(){t.isLoading=!1,t.$message.success("保存成功!"),t.$router.push({name:"show"}),t.$route.meta.keepAlive=!1},function(){t.isLoading=!1}):this.$message.error("请选择分组"):this.$message.error("请选择企业")},loadData:function(){var t=this;s["a"].company_spinner({id:this.$route.query.id},function(e){t.form=e.data}),s["a"].group_spinner({id:this.$route.query.id},function(e){t.list=e.data})},back:function(){this.$router.back()},edit:function(){this.isNoEdit=!1}}},o=u,l=(i("7c5f"),i("2877")),c=Object(l["a"])(o,n,a,!1,null,"47e73a37",null);c.options.__file="showAdd.vue";e["default"]=c.exports}}]);
  //# sourceMappingURL=chunk-79f5.81cb1741.js.map