(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4e109df4"],{"3bde":function(e,t,n){"use strict";n.r(t);var a=(n("4de4"),n("13d5"),n("d3b7"),n("6062"),n("3ca3"),n("ddb0"),n("2909")),r=(n("96cf"),n("1da1")),i=n("5d2d"),c={name:"comp-cascader",props:{title:{type:String,default:"部门名称"},deptId:{type:Array,default:function(){return[]}}},data:function(){var e="false"!=i.a.GET("DEPARTMENT_RELATION");return{deptList:[],deptConf:{expandTrigger:"hover",value:"department_id",label:"name",emitPath:e,checkStrictly:!e,multiple:!0},isRelation:e,deptId:[]}},computed:{current:{get:function(){return[]},set:function(e){this.$emit("update:deptId",e)}}},watch:{},filters:{},created:function(){this.syncDepartInfo()},mounted:function(){},methods:{syncDepartInfo:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("common/syncDepartInfo");case 2:e.deptList=t.sent;case 3:case"end":return t.stop()}}),t)})))()},changeDepartmentRelation:function(){var e=this;this.$el_confirm("此操作将会刷新当前页面, 是否继续?","变更部门勾选关联").then((function(){i.a.SET("DEPARTMENT_RELATION",!e.isRelation),window.location.reload()}))},departmentChanged:function(e){var t=this;if(this.isRelation){var n=e.reduce((function(e,n){return e.push.apply(e,Object(a.a)(n.filter((function(e){return e>=t.$refs.refDepartment.getCheckedNodes()[0].value})))),e}),[]);this.current=Object(a.a)(new Set(n))}else this.current=this.deptId}}},s=(n("a854"),n("2877")),o=Object(s.a)(c,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"comp"},[n("span",{staticClass:"comp-department",on:{click:function(t){return t.stopPropagation(),e.changeDepartmentRelation(t)}}},[e._v(e._s(e.title)),e.isRelation?n("i",{staticClass:"el-icon-link"}):n("i",{staticClass:"el-icon-paperclip"})]),n("el-cascader",{ref:"refDepartment",attrs:{size:"small",options:e.deptList,props:e.deptConf,clearable:"",filterable:"","collapse-tags":"","show-all-levels":!1},on:{change:e.departmentChanged},model:{value:e.deptId,callback:function(t){e.deptId=t},expression:"deptId"}})],1)}),[],!1,null,null,null);t.default=o.exports},a854:function(e,t,n){"use strict";var a=n("d049");n.n(a).a},d049:function(e,t,n){e.exports={colorTheme:"#2663f4"}}}]);