You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
22 KiB
1 line
22 KiB
3 years ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-68be"],{"0K7Q":function(e,t,s){},"26Jj":function(e,t,s){"use strict";var a=s("TOHp");s.n(a).a},"2f65":function(e,t,s){},"6ntv":function(e,t,s){"use strict";var a=s("MK09");s.n(a).a},"7mY3":function(e,t,s){"use strict";var a=s("2f65");s.n(a).a},"9GgJ":function(e,t,s){"use strict";var a={name:"XrHeader",components:{},props:{iconClass:[String,Array],iconColor:String,label:String,showSearch:{type:Boolean,default:!1},searchIconType:{type:String,default:"text"},placeholder:{type:String,default:"请输入内容"},ftTop:{type:String,default:"15px"},content:[String,Number],inputAttr:{type:Object,default:function(){}}},data:function(){return{search:""}},computed:{},watch:{content:{handler:function(){this.search!=this.content&&(this.search=this.content)},immediate:!0}},mounted:function(){},beforeDestroy:function(){},methods:{inputChange:function(){this.$emit("update:content",this.search)},searchClick:function(){this.$emit("search",this.search)}}},i=(s("7mY3"),s("KHd+")),n=Object(i.a)(a,function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("flexbox",{staticClass:"xr-header"},[e.iconClass?s("div",{staticClass:"xr-header__icon",style:{backgroundColor:e.iconColor}},[s("i",{class:e.iconClass})]):e._e(),e._v(" "),s("div",{staticClass:"xr-header__label"},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2),e._v(" "),e.showSearch?s("el-input",e._b({staticClass:"xr-header__search",class:{"is-text":"text"===e.searchIconType},style:{"margin-top":e.ftTop},attrs:{placeholder:e.placeholder},on:{input:e.inputChange},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchClick(t):null}},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}},"el-input",e.inputAttr,!1),["text"===e.searchIconType?s("el-button",{attrs:{slot:"append",type:"primary"},nativeOn:{click:function(t){return e.searchClick(t)}},slot:"append"},[e._v("搜索")]):s("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.searchClick(t)}},slot:"append"})],1):e._e(),e._v(" "),s("div",{staticClass:"xr-header__ft",style:{top:e.ftTop}},[e._t("ft")],2)],1)},[],!1,null,"acb6d756",null);n.options.__file="index.vue";t.a=n.exports},KWCB:function(e,t,s){"use strict";var a=s("n9M2");s.n(a).a},MK09:function(e,t,s){},TOHp:function(e,t,s){},Tdi9:function(e,t,s){"use strict";var a=s("jWXv"),i=s.n(a),n=s("rfXi"),r=s.n(n),l=s("jVVe"),o=s("YSp2"),u=s("KTTK"),c=s("gSIQ"),p=s("oxiq"),d=s.n(p),h={name:"RoleEmployeeSelect",components:{},props:{value:[Array,Number,String]},data:function(){return{selectValue:[],activeName:"",roleOption:[],userOption:[],searchInput:""}},computed:{},watch:{value:{handler:function(){Object(c.valueEquals)(this.value,this.selectValue)||(this.selectValue=this.value)},immediate:!0}},created:function(){this.getRoleList(),this.getUserList()},mounted:function(){},beforeDestroy:function(){},methods:{selectVisibleChange:function(e){""!==this.activeName&&"0"!==this.activeName||(this.activeName="role")},getRoleList:function(){var e=this;Object(o.l)({tree:1}).then(function(t){e.roleOption=t.data||[]}).catch(function(){})},getUserList:function(){var e=this;Object(u.y)({pageType:0}).then(function(t){e.userOption=t.data||[]}).catch(function(){})},selectChange:function(){this.$emit("input",this.selectValue)},userSearch:function(){var e=this;this.userOption.forEach(function(t){t.isHide=!d.a.match(t.realname,e.searchInput)})}}},f=(s("26Jj"),s("KHd+")),m=Object(f.a)(h,function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-select",e._g(e._b({staticClass:"role-employee-select",on:{"visible-change":e.selectVisibleChange,change:e.selectChange},model:{value:e.selectValue,callback:function(t){e.selectValue=t},expression:"selectValue"}},"el-select",e.$attrs,!1),e.$listeners),[s("div",{staticClass:"role-employee-select__body"},[s("el-tabs",{ref:"roleTabs",model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[s("el-tab-pane",{ref:"roleTabPane",attrs:{label:"自选角色",name:"
|