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.
wkcrm/static/js/chunk-55a4.928ecc80.js

1 line
32 KiB

4 years ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-55a4"],{"2FJB":function(e,t,a){"use strict";var i=a("VYqC");a.n(i).a},"2f65":function(e,t,a){},"2lfc":function(e,t,a){"use strict";var i=a("X70G");a.n(i).a},"4kBI":function(e,t,a){},"7mY3":function(e,t,a){"use strict";var i=a("2f65");a.n(i).a},"9GgJ":function(e,t,a){"use strict";var i={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)}}},n=(a("7mY3"),a("KHd+")),s=Object(n.a)(i,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("flexbox",{staticClass:"xr-header"},[e.iconClass?a("div",{staticClass:"xr-header__icon",style:{backgroundColor:e.iconColor}},[a("i",{class:e.iconClass})]):e._e(),e._v(" "),a("div",{staticClass:"xr-header__label"},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2),e._v(" "),e.showSearch?a("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?a("el-button",{attrs:{slot:"append",type:"primary"},nativeOn:{click:function(t){return e.searchClick(t)}},slot:"append"},[e._v("搜索")]):a("el-button",{attrs:{slot:"append",icon:"el-icon-search"},nativeOn:{click:function(t){return e.searchClick(t)}},slot:"append"})],1):e._e(),e._v(" "),a("div",{staticClass:"xr-header__ft",style:{top:e.ftTop}},[e._t("ft")],2)],1)},[],!1,null,"acb6d756",null);s.options.__file="index.vue";t.a=s.exports},CZoS:function(e,t,a){"use strict";var i=a("mzN/");a.n(i).a},EIxH:function(e,t,a){"use strict";a.r(t);var i=a("t3Un");function n(e){return Object(i.a)({url:"oa/examine/categoryDelete",method:"post",data:e})}function s(e){return Object(i.a)({url:"oa/examine/categoryEnables",method:"post",data:e,headers:{"Content-Type":"application/json;charset=UTF-8"}})}var o=a("ViDN"),l=a("8GhS"),c={name:"XhIconPopover",components:{},props:{selectIcon:Object},data:function(){return{showPopover:!1,iconList:[],currentIcon:null}},computed:{},watch:{showPopover:function(e){e&&(this.currentIcon=this.selectIcon)}},mounted:function(){this.getIconList()},beforeDestroy:function(){},methods:{getIconList:function(){for(var e=["l-record","leave","trip","overtime","reimbursement","go-out"],t=1;t<=20;t++)e.push("approval-"+t);for(var a=["#3ABCFB","#00CAAB","#3ABCFB","#FAAD14","#3ABCFB","#FF6033"],i=[],n=0;n<e.length;n++){var s={icon:"wk wk-"+e[n]};s.color=a[n%6],i.push(s)}this.iconList=i},closeClick:function(){this.showPopover=!1},sureClick:function(){this.currentIcon&&(this.showPopover=!1,this.$emit("select",this.currentIcon.icon,this.currentIcon.color))},iconSelect:function(e){this.currentIcon=e}}},r=(a("2FJB"),a("KHd+")),u=Object(r.a)(c,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-popover",{attrs:{width:"335","popper-class":"no-padding-popover",trigger:"click"},model:{value:e.showPopover,callback:function(t){e.showPopover=t},expression:"showPopover"}},[a("div",{staticClass:"main"},[a("div",{staticClass:"main__hd"},[e._v("审批流图标")]),e._v(" "),a("flexbox",{staticClass:"main__bd",attrs:{wrap:"wrap"}},e._l(e.iconList,function(t,i){return a("div",{key:i,staticClass:"icon-list",class:{"is-select":e.currentIcon&&e.currentIcon.icon==t.icon},on:{click:function(a){e.iconSelect(t)}}},[a("div",{