chunk-commons.96b21386.js
18.6 KB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-commons"],{"2c+4":function(e,t,a){"use strict";var o=a("RDSB");a.n(o).a},"3CCe":function(e,t,a){},"4DO0":function(e,t,a){"use strict";var o=a("3CCe");a.n(o).a},"4h+4":function(e,t,a){"use strict";var o=a("p932");a.n(o).a},"7NVX":function(e,t,a){"use strict";a("WEEz");var o={props:{noCache:{type:Boolean,default:!1},isDisable:{type:Boolean,default:!1},isVisible:{type:Boolean,default:!1},isCloseNoComfrimAgain:{type:Boolean,default:!1},isShowClose:{type:Boolean,default:!0},isShowCancel:{type:Boolean,default:!0},isShowConfirm:{type:Boolean,default:!0},diaWidth:{type:String,default:"40%"},diaTop:{type:String,default:"50px"},heightClass:{type:String,default:""},heightStyle:{type:Object,default:function(){return{}}},title:{type:String,default:"提示"},center:{type:String,default:""},footer:{type:String,default:""},footerName:{type:String,default:"确 定"},loading:{type:Boolean,default:!1}},data:function(){return{dialogVisible:!1,isDisableState:!1}},watch:{isVisible:function(e){this.dialogVisible=e}},created:function(){},methods:{handleClose:function(t){var a=this;this.isCloseNoComfrimAgain?(this.$emit("hideDialog"),t()):this.$confirm("确认关闭?").then(function(e){a.$emit("hideDialog"),t()}).catch(function(e){})},handleComfrim:function(){this.$emit("comfrim-click")},hideDialog:function(){this.$emit("hideDialog")}}},l=(a("a8Sz"),a("KHd+")),i=Object(l.a)(o,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-add-dialog",class:"editCenter"==t.center?"fix-dialog-height":""},[t.noCache?a("div",{class:t.heightClass,style:t.heightStyle},[t.dialogVisible?a("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],ref:"dialog",attrs:{title:t.title,visible:t.dialogVisible,width:t.diaWidth,top:t.diaTop,"show-close":t.isShowClose,"before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},["editTitle"==t.title?a("div",{ref:"dialogTitle",attrs:{slot:"title"},slot:"title"},[t._t("titleOut")],2):t._e(),t._v(" "),a("div",{ref:"dialogCenter",staticClass:"container",class:"editCenter"==t.center?"center-out":""},[t._t("center")],2),t._v(" "),"editFooter"==t.footer?a("div",{ref:"dialogFooter",staticClass:"dialog-footer footer-out",attrs:{slot:"footer"},slot:"footer"},[t._t("footerOut")],2):a("span",{ref:"dialogFooter",staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t.isShowCancel?a("el-button",{on:{click:t.hideDialog}},[t._v("取 消")]):t._e(),t._v(" "),t.isShowConfirm?a("el-button",{attrs:{loading:t.loading,disabled:t.isDisable,type:"primary"},on:{click:t.handleComfrim}},[t._v("确 定")]):t._e()],1)]):t._e()],1):a("div",{class:t.heightClass},[a("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],ref:"dialog",attrs:{title:t.title,visible:t.dialogVisible,width:t.diaWidth,top:t.diaTop,"show-close":t.isShowClose,"before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},["editTitle"==t.title?a("div",{ref:"dialogTitle",attrs:{slot:"title"},slot:"title"},[t._t("titleOut")],2):t._e(),t._v(" "),a("div",{ref:"dialogCenter",staticClass:"container",class:"editCenter"==t.center?"center-out":""},[t._t("center")],2),t._v(" "),"editFooter"==t.footer?a("div",{ref:"dialogFooter",staticClass:"dialog-footer footer-out",attrs:{slot:"footer"},slot:"footer"},[t._t("footerOut")],2):a("span",{ref:"dialogFooter",staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t.isShowCancel?a("el-button",{on:{click:t.hideDialog}},[t._v("取 消")]):t._e(),t._v(" "),t.isShowConfirm?a("el-button",{attrs:{loading:t.loading,disabled:t.isDisable,type:"primary"},on:{click:t.handleComfrim}},[t._v(t._s(t.footerName))]):t._e(),t._v(" "),t._t("btnSlot")],2)])],1)])},[],!1,null,null,null);i.options.__file="index.vue",t.a=i.exports},"AN+t":function(e,t,a){},B9Kj:function(e,t,a){"use strict";var o=a("YIsj");a.n(o).a},IunS:function(e,t,a){"use strict";var o=a("AN+t");a.n(o).a},RDSB:function(e,t,a){},XEwT:function(e,t,a){"use strict";var o=new Date,l=new Date("2017-12-31"),i={name:"SearchTop",props:{searchForm:Object,searchData:Array,searchBtn:Array,searchTopBtnStyle:String,searchTopClass:String,showType:{type:String,default:""},noClearAttr:{type:Boolean,default:!1}},data:function(){return{pickerOption:{disabledDate:function(e){return o<e||e<l}}}},watch:{searchData:{handler:function(e,t){this.searchData=e},deep:!0}},created:function(){for(var e in this.searchData){var t=this.searchData[e];switch(t.type){case"input":this.searchData[e].placeholder=t.placeholder?t.placeholder:"请输入"+t.label.split(":")[0];break;case"select":this.searchData[e].placeholder=t.placeholder?t.placeholder:"请选择"+t.label.split(":")[0]}}},methods:{deleteEmptyAttribute:function(e){for(var t in e)!e[t]&&delete e[t];return e},handleSearch:function(){var t=this;this.$refs.form.validate(function(e){e&&(!t.noClearAttr&&t.deleteEmptyAttribute(t.searchForm),t.$emit("search",t.searchForm))})},handleReset:function(){for(var e in this.searchForm)this.searchForm[e]="";this.$emit("reset",this.searchForm)},btnClick:function(e,t){switch(e){case"search":this.handleSearch();break;case"reset":this.handleReset();break;default:t.callback()}},handleInputClick:function(e,t){this.$emit("inputClick",e,t)}}},n=(a("2c+4"),a("YTQT"),a("KHd+")),r=Object(n.a)(i,function(){var a=this,e=a.$createElement,o=a._self._c||e;return o("div",{staticClass:"searchTop",class:[4<a.searchData.length?"":"padding-left",a.searchTopClass]},[o("div",{directives:[{name:"show",rawName:"v-show",value:4<a.searchData.length||"oneRow"==a.showType,expression:"searchData.length > 4 || showType =='oneRow' ? true : false"}],staticClass:"searchTopBtn",class:a.searchTopBtnStyle},[a._l(a.searchBtn,function(t,e){return[!t.nextToForm&&t.Badge?o("el-badge",{key:e,attrs:{value:a.$store.getters[t.BadgeStoreString]}},[o("el-button",{class:t.class,style:t.style,attrs:{size:"small",type:t.type,disabled:t.isDisabled,loading:t.isDisabled},on:{click:function(e){a.btnClick(t.pType,t)}}},[a._v(a._s(t.name)+"\n ")])],1):t.nextToForm?a._e():o("el-button",{key:e,class:t.class,style:t.style,attrs:{size:"small",type:t.type,disabled:t.isDisabled,loading:t.isDisabled},on:{click:function(e){a.btnClick(t.pType,t)}}},[a._v(a._s(t.name)+"\n ")])]})],2),a._v(" "),o("el-form",{ref:"form",class:4<a.searchData.length||"oneRow"==a.showType?"threeCol clearfix":"clearfix",attrs:{model:a.searchForm}},[a._l(a.searchData,function(t,e){return o("el-form-item",{key:e,staticStyle:{height:"36px"},attrs:{"label-width":t.width?t.width:"85px",prop:t.modelValue,rules:t.rules,size:"small",label:t.label}},["selectInput"===t.type?o("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入对应条件值",size:"small",clearable:""},model:{value:a.searchForm[t.modelValue],callback:function(e){a.$set(a.searchForm,t.modelValue,e)},expression:"searchForm[item.modelValue]"}},[o("el-select",{style:t.style,attrs:{slot:"prepend",placeholder:"请选择",size:"small"},slot:"prepend",model:{value:a.searchForm[t.optionKey],callback:function(e){a.$set(a.searchForm,t.optionKey,e)},expression:"searchForm[item.optionKey]"}},a._l(t.optionValue,function(e,t){return o("el-option",{key:t,attrs:{label:e.label,value:e.value}})}))],1):a._e(),a._v(" "),"input"===t.type?o("el-input",{class:t.clickFunc?"input cursor":"input",attrs:{placeholder:t.placeholder,readonly:t.readonly,disabled:t.disabled,clearable:""},nativeOn:{click:function(e){t.clickFunc&&a.handleInputClick(t.modelValue,t)}},model:{value:a.searchForm[t.modelValue],callback:function(e){a.$set(a.searchForm,t.modelValue,"string"==typeof e?e.trim():e)},expression:"searchForm[item.modelValue]"}}):a._e(),a._v(" "),"time"===t.type?o("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions?t.pickerOptions:a.pickerOption},model:{value:a.searchForm[t.modelValue],callback:function(e){a.$set(a.searchForm,t.modelValue,e)},expression:"searchForm[item.modelValue]"}}):a._e(),a._v(" "),"select"===t.type?o("el-select",{attrs:{placeholder:t.placeholder},model:{value:a.searchForm[t.modelValue],callback:function(e){a.$set(a.searchForm,t.modelValue,e)},expression:"searchForm[item.modelValue]"}},a._l(t.optionValue,function(e,t){return o("el-option",{key:t,attrs:{label:e.label,value:e.value}})})):a._e()],1)}),a._v(" "),a._l(a.searchBtn,function(t,e){return o("el-form-item",{key:t.name,staticClass:"next_form_item"},[t.nextToForm&&t.Badge?o("el-badge",{key:e,attrs:{value:a.$store.getters[t.BadgeStoreString]}},[o("el-button",{class:t.class,style:t.style,attrs:{size:"small",type:t.type,disabled:t.isDisabled,loading:t.isDisabled},on:{click:function(e){a.btnClick(t.pType,t)}}},[a._v(a._s(t.name)+"\n ")])],1):t.nextToForm?o("el-button",{key:e,class:t.class,style:t.style,attrs:{size:"small",type:t.type,disabled:t.isDisabled,loading:t.isDisabled},on:{click:function(e){a.btnClick(t.pType,t)}}},[a._v(a._s(t.name)+"\n ")]):a._e()],1)})],2),a._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:!(4<a.searchData.length||"oneRow"==a.showType),expression:"searchData.length > 4 || showType =='oneRow' ? false : true"}],staticClass:"searchBtn"},[o("el-button",{attrs:{size:"small",type:"primary"},on:{click:a.handleSearch}},[a._v("查询")]),a._v(" "),o("el-button",{attrs:{size:"small"},on:{click:a.handleReset}},[a._v("重置")])],1)],1)},[],!1,null,"3aaed190",null);r.options.__file="index.vue",t.a=r.exports},YIsj:function(e,t,a){},YTQT:function(e,t,a){"use strict";var o=a("unL0");a.n(o).a},a8Sz:function(e,t,a){"use strict";var o=a("bya+");a.n(o).a},bC67:function(e,t,a){},"bya+":function(e,t,a){},dWWb:function(e,t,a){"use strict";var o=a("sH1O");a.n(o).a},kDn8:function(e,t,a){"use strict";var o={name:"GlsxDialog",props:{show:{type:Boolean,default:!1},title:{type:String,default:"提示"},width:{type:String,default:"46%"},cancel:{required:!1,type:Function},confirm:{required:!1,type:Function},usefooter:{required:!1,type:Boolean,default:!1},appendtobody:{required:!1,type:Boolean,default:!1},showClose:{type:Boolean,default:!0}},data:function(){return{hasFooter:!1}},created:function(){var e=this.$slots;this.hasFooter=e.footer},mounted:function(){},methods:{onCancel:function(){this.$emit("closed"),this.$emit("close")},onConfirm:function(){}}},l=(a("dWWb"),a("oA30"),a("KHd+")),i=Object(l.a)(o,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dialog_page"},[a("el-dialog",{attrs:{title:e.title,visible:e.show,width:e.width,"append-to-body":e.appendtobody,"custom-class":"glsx_dialog","close-on-press-escape":!1,"close-on-click-modal":!1,"show-close":e.showClose},on:{close:e.onCancel}},[a("div",{staticClass:"dialog_content"},[e._t("default")],2),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.hasFooter,expression:"hasFooter"}],staticClass:"dialog_footer"},[e._t("footer")],2)])],1)},[],!1,null,"0efdd8e6",null);i.options.__file="index.vue",t.a=i.exports},"n+He":function(e,t,a){"use strict";var o={data:function(){return{}},props:{ruleData:{type:Array,default:function(){return{}}},ruleForm:{type:Object,default:function(){return{}}},rules:{type:Object,default:function(){return{}}}},methods:{radioChange:function(e,t){this.$emit("radio-change",e,t)},selectChange:function(e){this.$emit("select-change",e)}}},l=(a("B9Kj"),a("KHd+")),i=Object(l.a)(o,function(){var a=this,e=a.$createElement,o=a._self._c||e;return o("div",[o("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:a.ruleForm,rules:a.rules,"label-width":"100px"}},a._l(a.ruleData,function(t,e){return o("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!t.hidden,expression:"!item.hidden"}],key:e,class:t.class,attrs:{label:t.label,prop:t.prop},scopedSlots:a._u([{key:"default",fn:function(e){return["radio"===t.type?[o("el-radio-group",{on:{change:function(e){a.radioChange(e,t.prop)}},model:{value:a.ruleForm[t.prop],callback:function(e){a.$set(a.ruleForm,t.prop,e)},expression:"ruleForm[item.prop]"}},a._l(t.children,function(e,t){return o("el-radio",{key:t,attrs:{label:e.id}},[a._v(a._s(e.label))])}))]:"input"===t.type||"password"===t.type?[t.clickFunc?o("el-input",{ref:t.ref,refInFor:!0,staticClass:"click_input",attrs:{type:"button",error:t.error},nativeOn:{click:function(e){return t.clickFunc(e)}},model:{value:a.ruleForm[t.prop],callback:function(e){a.$set(a.ruleForm,t.prop,e)},expression:"ruleForm[item.prop]"}}):o("el-input",{ref:t.ref,refInFor:!0,attrs:{type:t.type,disabled:t.disabled},model:{value:a.ruleForm[t.prop],callback:function(e){a.$set(a.ruleForm,t.prop,e)},expression:"ruleForm[item.prop]"}})]:"select"===t.type?[o("el-select",{attrs:{placeholder:t.placeholder},on:{change:a.selectChange},model:{value:a.ruleForm[t.prop],callback:function(e){a.$set(a.ruleForm,t.prop,e)},expression:"ruleForm[item.prop]"}},a._l(t.children,function(e,t){return o("el-option",{key:t,attrs:{label:e.label,value:e.value}})}))]:"switch"===t.type?[o("el-switch",{model:{value:a.ruleForm[t.prop],callback:function(e){a.$set(a.ruleForm,t.prop,e)},expression:"ruleForm[item.prop]"}})]:"textarea"===t.type?[o("el-input",{attrs:{type:"textarea",rows:t.rows?t.rows:2,placeholder:t.placeholder?t.placeholder:"请输入内容"},model:{value:a.ruleForm[t.prop],callback:function(e){a.$set(a.ruleForm,t.prop,e)},expression:"ruleForm[item.prop]"}})]:"date"===t.type||"datetime"===t.type?[o("el-date-picker",{attrs:{"suffix-icon":"el-icon-date",format:t.format?t.format:"","value-format":t.format?t.format:"",type:t.type?t.type:"date",placeholder:t.placeholder?t.placeholder:"选择日期"},model:{value:a.ruleForm[t.prop],callback:function(e){a.$set(a.ruleForm,t.prop,e)},expression:"ruleForm[item.prop]"}})]:"address"===t.type?[o("el-cascader",{attrs:{options:t.options,"change-on-select":!0,props:t.props},on:{change:a.selectChange,"expand-change":a.selectChange},model:{value:a.ruleForm[t.prop],callback:function(e){a.$set(a.ruleForm,t.prop,e)},expression:"ruleForm[item.prop]"}})]:a._e()]}}])})}))],1)},[],!1,null,null,null);i.options.__file="index.vue",t.a=i.exports},oA30:function(e,t,a){"use strict";var o=a("bC67");a.n(o).a},p932:function(e,t,a){},rm1f:function(e,t,a){"use strict";var o={data:function(){return{}},props:{btnData:{type:Array,default:{}},rowIndex:{type:String,default:""},btnType:{type:String,default:""}},watch:{},created:function(){},methods:{btnClick:function(e,t,a){this.$emit("btnClick",e,t,a)}}},l=(a("IunS"),a("KHd+")),i=Object(l.a)(o,function(){var a=this,e=a.$createElement,o=a._self._c||e;return o("div",{staticClass:"app-permission-button"},a._l(a.btnData,function(t,e){return o("el-button",{key:e,style:{margin:"text"==t.type?"0 10px 0 0":"0px 10px 20px 0"},attrs:{type:t.type},on:{click:function(e){a.btnClick(t.pType,a.rowIndex,a.btnType)}}},["text"!=t.type?o("span",[a._v("+ ")]):a._e(),a._v(" "),o("span",{attrs:{mytype:"btn"}},[a._v(a._s(t.name))])])}))},[],!1,null,null,null);i.options.__file="index.vue",t.a=i.exports},"s+7F":function(e,t,a){"use strict";var o={name:"SearchTree",data:function(){return{inputValue:"",isAsyc:this.parentIsAysc}},props:{isShow:{type:Boolean,default:!1},parentIsAysc:{type:Boolean,default:!0},parentNoAsycData:{type:Array,default:function(){return[]}},parentTreeProps:{type:Object,default:function(){return{label:"id",children:"children"}}}},watch:{isShow:function(e){this.isShow&&(this.inputValue="")}},created:function(){},methods:{nodeClick:function(e,t){this.$emit("nodeClick",e)},searchClick:function(){this.$emit("searchClick",this.inputValue)},checkChange:function(e){this.$emit("checkChange",this.$refs.searchLoadTree.getCheckedKeys())},treeBlur:function(){},filterNode:function(e,t){if(!e)return!0;var a=!1,o=!0;return t&&t.name&&(o=-1!==t.name.indexOf(e)),t&&t.phone&&(a=-1!==t.phone.indexOf(e)),!(!o&&!a)}}},l=(a("4DO0"),a("KHd+")),i=Object(l.a)(o,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-add-dialog",attrs:{tabindex:1},on:{blur:t.treeBlur}},[a("el-input",{ref:"searchTreeNoAsycInput",staticClass:"orgina-dialog-input",attrs:{placeholder:"请输入"},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.searchClick(e):null}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"suffix"},on:{click:t.searchClick},slot:"suffix"})]),t._v(" "),a("el-tree",t._b({directives:[{name:"show",rawName:"v-show",value:!t.isAsyc,expression:"!isAsyc"}],ref:"searchTreeNoAsyc",attrs:{"default-expand-all":"","node-key":"id",props:t.parentTreeProps,data:t.parentNoAsycData,"filter-node-method":t.filterNode},on:{"node-click":t.nodeClick,check:t.checkChange}},"el-tree",t.$attrs,!1))],1)},[],!1,null,null,null);i.options.__file="index.vue",t.a=i.exports},sH1O:function(e,t,a){},tVFF:function(e,t,a){"use strict";var o={name:"SearchTree",data:function(){return{inputValue:"",isAsyc:this.parentIsAysc}},props:{parentIsAysc:{type:Boolean,default:!0},parentNoAsycData:{type:Array,default:function(){return[]}},parentTreeProps:{type:Object,default:function(){return{}}},isShow:{type:Boolean,default:!1}},watch:{parentIsAysc:function(e){this.isAsyc=e,this.isAsyc&&(this.inputValue="")},isShow:function(e){this.isShow&&(this.inputValue="")}},created:function(){},methods:{nodeLoad:function(e,t){this.$emit("nodeLoad",e,t)},nodeClick:function(e,t){this.$emit("nodeClick",e)},searchClick:function(){this.inputValue?this.isAsyc=!1:this.isAsyc=!0,this.$emit("searchClick",this.inputValue)},checkChange:function(e){this.$emit("checkChange",this.$refs.searchLoadTree.getCheckedKeys())},treeBlur:function(){}}},l=(a("4h+4"),a("KHd+")),i=Object(l.a)(o,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-add-dialog",attrs:{tabindex:1},on:{blur:t.treeBlur}},[a("el-input",{ref:"searchTreeInput",staticClass:"orgina-dialog-input",attrs:{placeholder:"请输入"},nativeOn:{keyup:function(e){return"button"in e||!t._k(e.keyCode,"enter",13,e.key,"Enter")?t.searchClick(e):null}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"suffix"},on:{click:t.searchClick},slot:"suffix"})]),t._v(" "),a("el-tree",t._b({directives:[{name:"show",rawName:"v-show",value:t.isAsyc,expression:"isAsyc"}],ref:"searchLoadTree",attrs:{accordion:"","node-key":"id",props:t.parentTreeProps,load:t.nodeLoad,lazy:""},on:{"node-click":t.nodeClick,check:t.checkChange}},"el-tree",t.$attrs,!1)),t._v(" "),a("el-tree",t._b({directives:[{name:"show",rawName:"v-show",value:!t.isAsyc,expression:"!isAsyc"}],ref:"searchTree",attrs:{"default-expand-all":"","node-key":"id",props:t.parentTreeProps,data:t.parentNoAsycData},on:{"node-click":t.nodeClick,check:t.checkChange}},"el-tree",t.$attrs,!1))],1)},[],!1,null,null,null);i.options.__file="index.vue",t.a=i.exports},unL0:function(e,t,a){}}]);