(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ed0d992c"],{"0b59":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-select",{ref:"selecter",staticClass:"full-block",attrs:{loading:t.isLoading,filterable:t.filterable,"filter-method":t.filterMethod,clearable:t.clearable,multiple:t.multiple,"multiple-limit":t.multipleLimit,disabled:t.disabled,"default-first-option":t.defaultFirstOption,size:t.size,"value-key":"username","reserve-keyword":"",placeholder:t.placeholder?t.placeholder:"请选择姓名"},on:{focus:t.focusEvents.func,change:t.change,blur:t.changeBlur},model:{value:t.myValue,callback:function(e){t.myValue=e},expression:"myValue"}},t._l(t.dataList,(function(t,e){return n("el-option",{key:e,attrs:{label:t.username,value:t.username}})})),1)],1)},i=[],r=n("2909"),u=(n("a9e3"),n("d3b7"),n("d81d"),n("159b"),n("4de4"),n("efa7")),o={name:"ReportName",components:{},props:{value:{type:[String,Array]},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},multipleLimit:{type:Number,default:0},defaultFirstOption:{type:Boolean,default:!0},size:{type:String,default:"small"},placeholder:{type:String,default:""},lazyLoad:{type:Boolean,default:!1},isAll:{type:Boolean,default:!1},userType:{type:String,default:""}},data:function(){return{pageData:{pageNum:1,pageSize:100},isLoading:!1,dataList:[],tempList:[],myValue:this.multiple?[]:"",focusEvents:{func:function(){},loaded:!1}}},mounted:function(){var t=this;if(this.lazyLoad&&!this.filterable)return console.error("'lazy-load'必须和'filterable'同时使用！"),!1;this.lazyLoad?this.focusEvents.func=function(){t.focusEvents.loaded||t.renderSelecter()}:this.renderSelecter()},methods:{renderSelecter:function(){this.pageData.PageSize=100,this.dataList=[],this.myValue=this.value,this.getdataList()},getdataList:function(){var t=this;this.isLoading=!0;this.userType;Object(u["f"])("xty1").then((function(e){var n;if(console.log(e),(n=t.dataList).push.apply(n,Object(r["a"])(e.rows)),t.isAll){var a={username:"全部"};t.dataList.unshift(a)}t.tempList=t.dataList.map((function(t){return t})),t.focusEvents.loaded=!0})).catch((function(t){})).finally((function(){t.isLoading=!1}))},getOptionByValue:function(t){var e=null;return this.dataList.forEach((function(n){n.username==t&&(e=n)})),e},focus:function(){this.$refs.selecter.focus()},blur:function(){this.$refs.selecter.blur()},changeBlur:function(){},change:function(t){var e=this;this.$nextTick((function(){e.$emit("change",t)}))},defaultInit:function(t,e){if(t&&e){var n=this.dataList.filter((function(t){return t.username=e}));if(0==n.length){var a={username:e};this.dataList.push(a)}}this.tempList=this.dataList.map((function(t){return t}))}},computed:{},watch:{value:function(t){this.myValue=t},myValue:function(t){this.$emit("input",t),this.$emit("change",t)}}},l=o,s=n("2877"),c=Object(s["a"])(l,a,i,!1,null,null,null);e["default"]=c.exports},efa7:function(t,e,n){"use strict";n.d(e,"g",(function(){return i})),n.d(e,"f",(function(){return r})),n.d(e,"h",(function(){return u})),n.d(e,"e",(function(){return o})),n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return s})),n.d(e,"i",(function(){return c})),n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return d}));var a=n("b775");function i(){return Object(a["a"])({url:"/system/user/getNickname",method:"get"})}function r(t){return Object(a["a"])({url:"/project/donatebaseinfo/reportName/"+t,method:"get"})}function u(t){return Object(a["a"])({url:"/externalperson/group/getPersonInfo/"+t,method:"get"})}function o(t){return Object(a["a"])({url:"/project/organization/list",method:"get",params:t})}function l(t){return Object(a["a"])({url:"/project/organization/"+t,method:"get"})}function s(t){return Object(a["a"])({url:"/project/organization",method:"post",data:t})}function c(t){return Object(a["a"])({url:"/project/organization/edit",method:"post",data:t})}function f(t){return Object(a["a"])({url:"/project/organization/remove/"+t,method:"get"})}function d(t){return Object(a["a"])({url:"/project/organization/export",method:"get",params:t})}}}]);