(window.webpackJsonp=window.webpackJsonp||[]).push([[116],{553:function(e,n,t){},898:function(e,n,t){"use strict";var a=t(553);t.n(a).a},965:function(e,n,t){"use strict";t.r(n);var a,o=t(0),r=t.n(o),l=(t(8),t(1)),s=t.n(l),i=(t(21),t(203)),c=t.n(i),p=(t(209),t(29),t(210)),u=(t(205),t(206)),m=(t(207),t(208)),f=(t(34),t(318),t(330)),d={components:(a={},c()(a,f.a.name,f.a),c()(a,m.a.name,m.a),c()(a,u.a.name,u.a),c()(a,p.a.name,p.a),a),props:["groupList","value","index"],data:function(){return{form:{},options:[],roleProps:{value:"id",label:"name",children:"children"}}},methods:{change:function(){this.$emit("change",this.index,this.form)}},watch:{value:{handler:function(e){this.form=Object.assign({},e)},deep:!0,immediate:!0},"form.group":{handler:function(e){var n=this;return s()(r.a.mark((function t(){var a,o;return r.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&!(e.length<1)){t.next=4;break}n.options=[],t.next=9;break;case 4:return a=e[e.length-1],t.next=7,n.$store.dispatch({type:"getGroupRole",id:a});case 7:o=t.sent,n.options=o.items;case 9:case"end":return t.stop()}}),t)})))()},deep:!0,immediate:!0}}},h=(t(898),t(88)),g=Object(h.a)(d,(function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("el-row",{attrs:{type:"flex",justify:"space-between",align:"middle"}},[t("el-col",{attrs:{span:12}},[t("el-cascader",{attrs:{placeholder:"选择分组",size:"small",options:e.groupList,props:e.roleProps,clearable:"",filterable:"","change-on-select":""},on:{change:e.change},model:{value:e.form.group,callback:function(n){e.$set(e.form,"group",n)},expression:"form.group"}})],1),t("el-col",{attrs:{span:10}},[t("el-select",{attrs:{size:"small","collapse-tags":"",multiple:"",placeholder:"选择角色"},on:{change:e.change},model:{value:e.form.role,callback:function(n){e.$set(e.form,"role",n)},expression:"form.role"}},e._l(e.options,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._t("default")],2)}),[],!1,null,"26a6c6e5",null);n.default=g.exports}}]);