UNPKG

kc-aui

Version:

后台业务组件集合

1 lines 30.2 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports._kcAui=t():e._kcAui=t()}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:a})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",a=e[3];if(!a)return n;if(t&&"function"==typeof btoa){var i=(o=a,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),r=a.sources.map(function(e){return"/*# sourceURL="+a.sourceRoot+e+" */"});return[n].concat(r).concat([i]).join("\n")}var o;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var a={},i=0;i<this.length;i++){var r=this[i][0];"number"==typeof r&&(a[r]=!0)}for(i=0;i<e.length;i++){var o=e[i];"number"==typeof o[0]&&a[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),t.push(o))}},t}},function(e,t,n){var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i=n(11),r={},o=a&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,d=function(){},u=null,p="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e){for(var t=0;t<e.length;t++){var n=e[t],a=r[n.id];if(a){a.refs++;for(var i=0;i<a.parts.length;i++)a.parts[i](n.parts[i]);for(;i<n.parts.length;i++)a.parts.push(y(n.parts[i]));a.parts.length>n.parts.length&&(a.parts.length=n.parts.length)}else{var o=[];for(i=0;i<n.parts.length;i++)o.push(y(n.parts[i]));r[n.id]={id:n.id,refs:1,parts:o}}}}function m(){var e=document.createElement("style");return e.type="text/css",o.appendChild(e),e}function y(e){var t,n,a=document.querySelector("style["+p+'~="'+e.id+'"]');if(a){if(c)return d;a.parentNode.removeChild(a)}if(f){var i=l++;a=s||(s=m()),t=g.bind(null,a,i,!1),n=g.bind(null,a,i,!0)}else a=m(),t=function(e,t){var n=t.css,a=t.media,i=t.sourceMap;a&&e.setAttribute("media",a);u.ssrId&&e.setAttribute(p,t.id);i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,a),n=function(){a.parentNode.removeChild(a)};return t(e),function(a){if(a){if(a.css===e.css&&a.media===e.media&&a.sourceMap===e.sourceMap)return;t(e=a)}else n()}}e.exports=function(e,t,n,a){c=n,u=a||{};var o=i(e,t);return h(o),function(t){for(var n=[],a=0;a<o.length;a++){var s=o[a];(l=r[s.id]).refs--,n.push(l)}t?h(o=i(e,t)):o=[];for(a=0;a<n.length;a++){var l;if(0===(l=n[a]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete r[l.id]}}}};var v,b=(v=[],function(e,t){return v[e]=t,v.filter(Boolean).join("\n")});function g(e,t,n,a){var i=n?"":a.css;if(e.styleSheet)e.styleSheet.cssText=b(t,i);else{var r=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(r,o[t]):e.appendChild(r)}}},function(e,t){e.exports=function(e,t,n,a,i,r){var o,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(o=e,s=e.default);var c,d="function"==typeof s?s.options:s;if(t&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0),n&&(d.functional=!0),i&&(d._scopeId=i),r?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},d._ssrRegister=c):a&&(c=a),c){var u=d.functional,p=u?d.render:d.beforeCreate;u?(d._injectStyles=c,d.render=function(e,t){return c.call(t),p(e,t)}):d.beforeCreate=p?[].concat(p,c):[c]}return{esModule:o,exports:s,options:d}}},function(e,t,n){"use strict";var a=n(4);t.a={name:"List",props:{needTotal:{type:Boolean,default:!1},btns:{type:Array,default:function(){return[]}},needSelect:{type:Boolean,default:!1},selectSetting:{type:Array,default:function(){return[]}},tabsValue:{type:String},editableTabs:{type:Array,default:function(){return[]}},isTabs:{type:Boolean,default:!1},title:{type:Array,default:function(){return[]},required:!0},tableData:{type:Array,default:function(){return[]},required:!0},objectSpanMethod:{},operate:{type:Array,default:function(){return[]}},total:{type:Number,default:0},pageSize:{type:Number,default:0},pageNum:{type:Number,default:1},columnStyle:{type:Object,default:function(){return{}}},ope_length:{type:String},ope_label:{type:String,default:"操作"},tag:{type:Object,default:function(){return{"未生效":"primary","已生效":"success"}}},tableHeight:"",emptyText:{type:String,default:"这里空空如也"},is_select_ope:{type:[Number,Boolean],default:!1},refName:{type:String,default:"table-list"},showSummary:{type:[Boolean],default:!1},handleTableSummary:{type:Function,default:function(){return[]}}},data:function(){return{selection:[],allSelected:!1,previewImgUrl:"",previewImgVisible:!1,editTabsValue:this.tabsValue}},computed:{disabledSelection:function(){return this.selectSetting.slice(0,this.tableData.length).filter(function(e){return e.disabled})},handleTableHeight:function(){return this.showSummary?document.body.clientHeight-200:this.tableHeight}},watch:{tableData:function(){this.allSelected=!1}},methods:{cellClick:function(e,t,n,a){this.$emit("cellClick",e,t,n,a)},sortChange:function(e){this.$emit("sortChange",e)},handleTabsClick:function(e,t){this.clearSort(),this.clearSelected(),this.$emit("handleTabsClick",e)},clearSort:function(){this.$refs[this.refName].clearSort()},clearSelected:function(){this.allSelected=!1,this.selectSetting.forEach(function(e){e.val=!1,e.disabled=!1}),this.selection=[]},cellStyle:function(e){var t=e.row,n=e.column,a=(e.rowIndex,e.columnIndex);if(this.columnStyle.column&&a===this.columnStyle.column)return t[this.columnStyle.key]===(this.columnStyle.value||"")?this.columnStyle.rstyle:this.columnStyle.handleZero&&0===t[n.property]?"":this.columnStyle.style},catViewClicked:function(e,t){this.$emit("catView",e,t)},edit:function(e,t){this.$emit("changeOp",e,t)},toclick:function(e,t){void 0!==t?window.location.href=e:window.open(e,"_blank")},changePn:function(e){this.selection=[],this.$emit("changePn",e),this.addHrefQuery({pn:e})},prevPage:function(e){this.pn=e,this.$emit("prevPage",e),this.addHrefQuery({pn:e})},nextPage:function(e){this.pn=e,this.$emit("nextPage",e),this.addHrefQuery({pn:e})},hasSelected:function(e){return this.selection.some(function(t){return t&&t._list_index==e._list_index})},addHrefQuery:function(e){if(location.href.indexOf("pn")<0){var t=location.href.indexOf("?")<0?"?pn=":"&pn=";history.replaceState({},"",location.href+t+e.pn)}else{var n=Object(a.b)(location.href,"pn",e.pn);history.replaceState({},"",n)}},getSelectedIndex:function(e){return this.selection.findIndex(function(t){return t&&t._list_index==e._list_index})},handleSelectionChange:function(e,t){e._list_index=t,this.hasSelected(e)?this.selection.splice(this.getSelectedIndex(e),1):this.selection.push(e),this.selection.length+this.disabledSelection.length==this.tableData.length?this.allSelected=!0:this.allSelected=!1,this.$emit("selectionChange",this.selection)},handleAllSelectedChange:function(){var e=this,t=this.tableData.slice();this.selection=[],t.forEach(function(e,t){e._list_index=t}),this.allSelected?this.selectSetting.forEach(function(n,a){n.disabled||(n.val=!0,t[a]&&e.selection.push(t[a]))}):(this.selection=[],this.selectSetting.forEach(function(e){e.val=!1}))},handleBtnClick:function(e){e&&e(this.selection)},previewImg:function(e){this.previewImgUrl=e,this.previewImgVisible=!0},init:function(){if(0==this.selectSetting.length)for(var e=0;e<this.pageSize;e++)this.selectSetting.push({val:!1,disabled:!1})}},mounted:function(){this.init()}}},function(e,t,n){"use strict";t.a=function(e){if(null===e)return"";var t=[];for(var n in e)e.hasOwnProperty(n)&&void 0!==e[n]&&null!==e[n]&&t.push(n+"="+e[n]);if(t.length)return"?"+t.join("&");return""},t.c=function(e){if(null===e||e.indexOf("?")<0)return{};var t={};return location.href.split("?")[1].split("&").forEach(function(e){var n=e.split("=")[0];t[n]=decodeURI(e.split("=")[1])}),t},t.b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href,t=arguments[1],n=arguments[2],a=e.split("?");if(a.length>1&&a[1].indexOf(t)>-1){for(var i=a[1],r={},o=i.split("&"),s=0;s<o.length;s++)o[s]=o[s].split("="),r[o[s][0]]=o[s][1];r[t]=encodeURI(n);var l=a[0]+"?";return Object.keys(r).forEach(function(e,t,n){l+=e+"="+r[e]+(t<n.length-1?"&":"")}),l}return e||window.location.href};"function"==typeof Symbol&&Symbol.iterator},function(e,t,n){"use strict";var a=n(4),i=n(17);t.a={name:"Search",props:{title:{type:Object,default:function(){return{}}},searchForm:{type:Object,default:function(){return{}}},add:{type:Boolean,default:!1},addText:{type:String,default:"新增"},needexport:{type:Boolean,default:!1},needReset:{type:Boolean,default:!0},showDefault:{type:Boolean,default:!1}},data:function(){return{show:!1,icon:"el-icon-arrow-down",rowSearchForm:"",burdensomeParams:[],pickerOptions:{shortcuts:[{text:"今天",onClick:function(e){var t=new Date,n=new Date,a=n.getTime()%864e5+288e5;n.setTime(n.getTime()-a),e.$emit("pick",[n,t])}},{text:"昨天",onClick:function(e){var t=new Date,n=new Date,a=n.getTime()%864e5+288e5;n.setTime(n.getTime()-a-864e5),t.setTime(t.getTime()-a-1e3),e.$emit("pick",[n,t])}},{text:"过去7天",onClick:function(e){var t=new Date,n=new Date,a=n.getTime()%864e5+288e5;n.setTime(n.getTime()-a-6048e5),t.setTime(t.getTime()-a-1e3),e.$emit("pick",[n,t])}},{text:"过去30天",onClick:function(e){var t=new Date,n=new Date,a=n.getTime()%864e5+288e5;n.setTime(n.getTime()-a-2592e6),t.setTime(t.getTime()-a-1e3),e.$emit("pick",[n,t])}},{text:"本周",onClick:function(e){var t=new Date,n=new Date,a=(new Date).getDay(),i=n.getTime()%864e5+288e5;n.setTime(n.getTime()-i-24*(a-1)*60*60*1e3),e.$emit("pick",[n,t])}},{text:"上周",onClick:function(e){var t=new Date,n=new Date,a=(new Date).getDay(),i=n.getTime()%864e5+288e5;n.setTime(n.getTime()-i-24*(a+6)*60*60*1e3),t.setTime(t.getTime()-i-24*(a-1)*60*60*1e3-1),e.$emit("pick",[n,t])}},{text:"本月",onClick:function(e){var t=new Date,n=new Date,a=(new Date).getDate(),i=n.getTime()%864e5+288e5;n.setTime(n.getTime()-i-24*(a-1)*60*60*1e3),e.$emit("pick",[n,t])}},{text:"上月",onClick:function(e){var t=new Date,n=new Date,a=n.getTime()%864e5+288e5,i=(new Date).getDate(),r=(new Date).getMonth(),o=[[31,28,31,30,31,30,31,31,30,31,30,31],[31,29,31,30,31,30,31,31,30,31,30,31]],s=(new Date).getFullYear()%4==0?1:0;n.setTime(n.getTime()-a-24*(i-1+o[s][r-1])*60*60*1e3),t.setTime(t.getTime()-a-24*(i-1)*60*60*1e3-1),e.$emit("pick",[n,t])}}]}}},created:function(){var e=this;this.show=this.showDefault;var t=Object(i.a)(["rn"]);this.rowSearchForm=JSON.parse(JSON.stringify(this.searchForm)),Object.keys(t).map(function(n){t[n]=isNaN(Number(t[n]))?t[n]:Number(t[n]),e.title[n]&&(e.rowSearchForm[n]=t[n]),Object.keys(e.title).forEach(function(a){var i=e.title[a];i.extraKey&&0==i.extraKey.indexOf(n)?(t[i.key]=[t[n]],e.rowSearchForm[a]=[t[n]]):i.extraKey&&i.extraKey.indexOf(n)>=1&&(t[i.key].push(t[n]),e.rowSearchForm[a].push(t[n]))})}),Object.keys(t).forEach(function(n){"pn"!=n&&"rn"!=n&&!e.title[n]&&delete t[n]}),Object.keys(this.searchForm).forEach(function(n){var a=JSON.stringify(e.searchForm[n]);""!==e.searchForm[n]&&0!==e.searchForm[n]&&e.searchForm[n]&&"[]"!==a&&(t[n]=e.searchForm[n])}),this.$emit("submit",t)},methods:{parseQuery:function(e){var t=[];return location.hash.split("?")[1].split("&").forEach(function(e){t.push(e.split("=")[0])}),t},toshow:function(){this.show=!this.show,this.show?this.icon="el-icon-arrow-up":this.icon="el-icon-arrow-down"},toAdd:function(){this.$emit("add")},toExport:function(){this.burdensomeParams=[],this.dealParamsToDispatchApi(),this.$emit("toExport",this.searchForm)},dealParamsToDispatchApi:function(){var e=this;Object.keys(this.title).forEach(function(t){var n=e.title[t];"dateTimepicker"!=n.type&&"timepicker"!=n.type&&"cascader"!=n.type||(n.extraKey.forEach(function(t,a){e.searchForm[t]=e.searchForm[n.key]&&e.searchForm[n.key][a]}),e.burdensomeParams.push(t))}),Object.keys(this.searchForm).forEach(function(t){"Array"!==Object.prototype.toString.call(e.searchForm[t]).slice(8,-1)||e.searchForm[t].length?""===e.searchForm[t]?delete e.searchForm[t]:void 0===e.searchForm[t]?delete e.searchForm[t]:e.searchForm[t]||0===e.searchForm[t]||"0"===e.searchForm[t]||delete e.searchForm[t]:delete e.searchForm[t]})},change:function(e){if(e.change)return e.change();this.$emit("selectChange",e)},checkboxGroupChange:function(e){this.$emit("checkboxGroupChange",e)},submitForm:function(){var e=this,t={};this.burdensomeParams=[],this.searchForm.pn=1,Object.keys(this.rowSearchForm).forEach(function(t){void 0===e.searchForm[t]&&void 0!==e.rowSearchForm[t]&&(e.searchForm[t]=e.rowSearchForm[t])}),this.rowSearchForm=JSON.parse(JSON.stringify(this.searchForm)),this.dealParamsToDispatchApi(),t=JSON.parse(JSON.stringify(this.searchForm)),this.burdensomeParams.forEach(function(e){delete t[e]}),this.addHrefQuery(t),this.$emit("submit",this.searchForm)},resetForm:function(e){this.$emit("reset",this.searchForm)},addHrefQuery:function(e){var t=this,n=Object(a.c)(location.hash);Object.keys(n).forEach(function(a){void 0===t.rowSearchForm[a]&&void 0===e[a]&&(e[a]=n[a])}),history.replaceState({},"",location.href.split("?")[0]+Object(a.a)(e))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(7),i=n(13),r=[a.a,i.a],o=function e(t){if(e.installed)return!0;r.map(function(e){t.component(e.name,e)})};"undefined"!=typeof window&&window.Vue&&o(window.Vue),t.default={install:o,List:a.a,Search:i.a}},function(e,t,n){"use strict";var a=n(8);a.a.install=function(e){e.component(a.a.name,a.a)},t.a=a.a},function(e,t,n){"use strict";var a=n(3),i=n(12);var r=function(e){n(9)},o=n(2)(a.a,i.a,!1,r,"data-v-7fcf273d",null);t.a=o.exports},function(e,t,n){var a=n(10);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);n(1)("44e05292",a,!0,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.body[data-v-7fcf273d] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n}\n.body p[data-v-7fcf273d] {\n padding: 0;\n margin: 0;\n}\n.body[data-v-7fcf273d] .el-table th {\n background-color: #f5f7fa;\n}\n.el-popover span.explain[data-v-7fcf273d] {\n display: block;\n}\n.sell[data-v-7fcf273d] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.list_ul[data-v-7fcf273d] {\n color: #409eff;\n}\n.coverBox img[data-v-7fcf273d] {\n width: 200px;\n height: 200px;\n}\nli[data-v-7fcf273d] {\n list-style: none;\n cursor: pointer;\n}\n.pagination[data-v-7fcf273d] {\n padding: 20px 0;\n}\n.list-head-box[data-v-7fcf273d] {\n position: relative;\n margin-bottom: 10px;\n}\n.list-head-box .total-text[data-v-7fcf273d] {\n display: inline-block;\n margin-top: 10px;\n}\n.list-head-box .btn-box[data-v-7fcf273d] {\n display: inline-block;\n float: right;\n text-align: right;\n}\n.list-head-box .btn-box.btn-abs-pos[data-v-7fcf273d] {\n position: absolute;\n right: 0;\n top: -62px;\n}\n.list-head-box .btn-box .el-button[data-v-7fcf273d] {\n min-width: 80px;\n}\n[data-v-7fcf273d] .preview-img-dialog {\n max-height: 80%;\n overflow-y: scroll;\n}\n[data-v-7fcf273d] .preview-img-dialog .previewImg {\n display: block;\n max-width: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n margin: 0 auto;\n}\n[data-v-7fcf273d] .preview-img-dialog /deep/ .el-dialog__headerbtn {\n top: 10px;\n}\n[data-v-7fcf273d] .preview-img-dialog /deep/ .el-dialog__body {\n max-height: calc(80vh - 30px);\n overflow-y: scroll;\n}\n",""])},function(e,t){e.exports=function(e,t){for(var n=[],a={},i=0;i<t.length;i++){var r=t[i],o=r[0],s={id:e+":"+i,css:r[1],media:r[2],sourceMap:r[3]};a[o]?a[o].parts.push(s):n.push(a[o]={id:o,parts:[s]})}return n}},function(e,t,n){"use strict";var a={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"body"},[e.isTabs?n("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleTabsClick},model:{value:e.editTabsValue,callback:function(t){e.editTabsValue=t},expression:"editTabsValue"}},e._l(e.editableTabs,function(t,a){return n("el-tab-pane",{key:t.name,attrs:{name:t.name}},[n("span",{attrs:{slot:"label"},slot:"label"},[e._v(e._s(t.num?t.title+"("+t.num+")":t.title))])])}),1):e._e(),e._v(" "),n("div",{staticClass:"list-head-box"},[e.needTotal?n("p",{staticClass:"total-text"},[e._v("共 "+e._s(e.total)+" 条")]):e._e(),e._v(" "),n("div",{class:["btn-box",e.isTabs&&"btn-abs-pos"]},e._l(e.btns,function(t){return n("el-button",{key:t.text,attrs:{type:t.type||"primary",size:"small",disabled:t.disabled||!1},on:{click:function(n){return e.handleBtnClick(t.callback)}}},[e._v(e._s(t.text))])}),1)]),e._v(" "),n("el-table",{ref:e.refName,attrs:{border:"",data:e.tableData,"cell-style":e.cellStyle,"empty-text":e.emptyText,"max-height":e.handleTableHeight,"show-summary":e.showSummary,"summary-method":e.handleTableSummary,"span-method":e.objectSpanMethod},on:{"cell-click":e.cellClick,"sort-change":e.sortChange}},[e.needSelect?n("el-table-column",{attrs:{width:"50"},scopedSlots:e._u([{key:"header",fn:function(t){return[n("el-checkbox",{on:{change:e.handleAllSelectedChange},model:{value:e.allSelected,callback:function(t){e.allSelected=t},expression:"allSelected"}})]}},{key:"default",fn:function(t){return[n("el-checkbox",{attrs:{disabled:e.selectSetting[t.$index].disabled},on:{change:function(n){return e.handleSelectionChange(t.row,t.$index)}},model:{value:e.selectSetting[t.$index].val,callback:function(n){e.$set(e.selectSetting[t.$index],"val",n)},expression:"selectSetting[scope.$index].val"}})]}}],null,!1,3478668226)}):e._e(),e._v(" "),e._l(e.title,function(t){return Boolean(t.hide)?e._e():n("el-table-column",{key:t.type,attrs:{prop:t.type,label:t.value,"min-width":t.width,sortable:!!t.sort&&(!t.needServer||"custom"),width:t.fixedWidth,fixed:t.fixed},scopedSlots:e._u([{key:"header",fn:function(a){return[e._v("\n "+e._s(t.value)+"\n "),t.explain?n("el-popover",{attrs:{placement:"top-start",width:"200",trigger:"hover",title:t.value}},[t.explain.push?n("p",e._l(t.explain,function(t){return n("span",{staticClass:"explain"},[e._v(e._s(t))])}),0):n("p",[n("span",[e._v(e._s(t.explain))])]),e._v(" "),n("i",{staticClass:"el-icon-question",attrs:{slot:"reference"},slot:"reference"})]):e._e()]}},{key:"default",fn:function(a){return["tag"==t.vtype?n("el-tag",{attrs:{type:e.tag[a.row[t.type]],color:e.tag[a.row[t.type]],"disable-transitions":""}},[e._v(e._s(a.row[t.type]))]):"list"==t.vtype?n("div",{staticClass:"list_ul"},["string"==typeof a.row[t.type]?n("p",[e._v(e._s(a.row[t.type]))]):e._l(a.row[t.type],function(a){return n("li",{key:a.name,on:{click:function(n){return e.toclick(a.url,t.isOpen)}}},[e._v(e._s(a.name))])})],2):"image"==t.vtype?n("div",{staticClass:"coverBox"},["string"==typeof a.row[t.type]?n("img",{staticClass:"cover",style:{width:Number(t.fixedWidth)-20+"px",height:Number(t.fixedWidth)-20+"px"},attrs:{src:a.row[t.type],alt:"loading"}}):n("div",e._l(a.row[t.type],function(t,a){return n("img",{key:a,staticClass:"cover",style:{width:"50px",height:"50px",margin:"0 5px 5px 0",objectFit:"cover",cursor:"pointer"},attrs:{src:t,alt:"loading"},on:{click:function(n){return e.previewImg(t)}}})}),0)]):"html"==t.vtype?n("p",{domProps:{innerHTML:e._s(a.row[t.type])}}):"link"==t.vtype?n("el-link",{attrs:{type:"primary",href:a.row[t.type],target:"_blank"}},[e._v(e._s(t.linklabel))]):"array"==t.vtype?n("div",e._l(a.row[t.type],function(t,a){return n("p",{key:a},[e._v(e._s(t))])}),0):"catView"==t.vtype?n("el-button",{attrs:{plain:"",type:"success",size:"small"},on:{click:function(t){return e.catViewClicked(e.index,a)}}},[e._v("\n "+e._s(a.row[t.type])+"\n "),n("i",{class:t.icon})]):"percent"==t.vtype?n("p",[e._v(e._s((100*Number(a.row[t.type])).toFixed(2))+"%")]):n("p",[e._v(e._s(""===a.row[t.type]?a.row[t.defaultVal]:a.row[t.type]))])]}}],null,!0)})}),e._v(" "),e.operate.length?n("el-table-column",{attrs:{label:e.ope_label,fixed:"right","min-width":e.ope_length},scopedSlots:e._u([{key:"default",fn:function(t){return n("div",{},[n("div",{staticClass:"sell"},e._l(e.operate,function(a,i){return Boolean(a.hide)?e._e():n("el-button",{key:a.key,attrs:{type:a.type||"text",disabled:a.canObj?Boolean(a.can&&a.canObj(t.row)):Boolean(a.can&&1===t.row.status||a.disableNum==t.$index||a.vcan&&!t.row.status),size:"small"},on:{click:function(n){return e.edit(i,t,e.tableData)}}},[e._v(e._s(a.changeObj?1===a.changeObj(t.row)?a.evalue:a.value:a.change&&1===t.row.status?a.evalue:a.value))])}),1)])}}],null,!1,531975973)}):e._e()],2),e._v(" "),e.total>e.pageSize?n("div",{staticClass:"pagination"},[n("el-pagination",{attrs:{background:"","current-page":e.pageNum,"page-size":e.pageSize,layout:"prev, pager, next",total:e.total},on:{"prev-click":e.prevPage,"next-click":e.nextPage,"current-change":e.changePn}})],1):e._e(),e._v(" "),n("el-dialog",{attrs:{center:"",width:"50%",top:"10vh","custom-class":"preview-img-dialog",visible:e.previewImgVisible},on:{"update:visible":function(t){e.previewImgVisible=t}}},[n("img",{staticClass:"previewImg",attrs:{src:e.previewImgUrl,alt:"预览"}})])],1)},staticRenderFns:[]};t.a=a},function(e,t,n){"use strict";var a=n(14);a.a.install=function(e){e.component(a.a.name,a.a)},t.a=a.a},function(e,t,n){"use strict";var a=n(5),i=n(18);var r=function(e){n(15)},o=n(2)(a.a,i.a,!1,r,"data-v-6f521afa",null);t.a=o.exports},function(e,t,n){var a=n(16);"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);n(1)("92ad0768",a,!0,{})},function(e,t,n){(e.exports=n(0)(!1)).push([e.i,"\n.el-input[data-v-6f521afa],\n.el-select[data-v-6f521afa],\n.el-textarea[data-v-6f521afa] {\n width: 270px;\n}\n.el-date-editor[data-v-6f521afa] {\n width: 400px;\n}\n.el-date-editor .el-range-input[data-v-6f521afa] {\n width: 150px;\n}\n.body[data-v-6f521afa] {\n margin-bottom: 20px;\n}\n.body .search[data-v-6f521afa] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-direction: row;\n flex-direction: row;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n padding: 10px 10px 10px 0;\n border-bottom: 1px solid #eee;\n}\n.body .reset[data-v-6f521afa] {\n width: 70px;\n}\n.body .el-form[data-v-6f521afa] {\n margin: 10px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n.body .el-form .search-item[data-v-6f521afa] {\n width: 50%;\n}\n.body .el-form .groupSearch-item[data-v-6f521afa] {\n width: 100%;\n height: 20px;\n}\n.body .el-form .search-ope[data-v-6f521afa] {\n width: 80%;\n}\n.body .el-form .button[data-v-6f521afa] {\n padding: 15px;\n border-top: 1px solid #eee;\n border-bottom: 1px solid #eee;\n}\n.body .el-form .date-picker[data-v-6f521afa] {\n width: 270px!important;\n}\n.body[data-v-6f521afa] .el-range-input {\n font-size: 10px;\n}\n",""])},function(e,t,n){"use strict";t.a=i;"function"==typeof Symbol&&Symbol.iterator;var a={decode:function(e){return decodeURIComponent(e)},encode:function(e){return encodeURIComponent(e)}};function i(e){var t=r(location.href);return Object.keys(t).forEach(function(n){(e.indexOf(n)>=0||0!==t[n]&&""===t[n])&&delete t[n]}),t}function r(e){if(null===e||e.indexOf("?")<0)return{};var t={};return location.href.split("?")[1].split("&").forEach(function(e){var n=e.split("=")[0],i=a.decode(e.split("=")[1]);isNaN(Number(i))?t[n]=i:t[n]=Number(i)}),t}},function(e,t,n){"use strict";var a={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"body"},[n("div",{staticClass:"search"},[e.searchForm&&Object.getOwnPropertyNames(e.searchForm).length>0?n("el-button",{attrs:{type:"primary",icon:e.icon,size:"small"},on:{click:e.toshow}},[e._v("筛选")]):e._e(),e._v(" "),e.add?n("el-button",{staticStyle:{"margin-right":"20px"},attrs:{type:"success",icon:"el-icon-folder-add",size:"small"},on:{click:e.toAdd}},[e._v(e._s(e.addText))]):e._e()],1),e._v(" "),e.show&&e.searchForm&&Object.getOwnPropertyNames(e.searchForm).length>0?n("el-form",{ref:"searchForm",attrs:{model:e.searchForm,"label-width":"auto","label-position":"right"},nativeOn:{submit:function(e){e.preventDefault()}}},[e._l(e.title,function(t){return n("el-form-item",{key:t.key,class:["search-item","group"==t.type?"groupSearch-item":""],attrs:{label:t.value,placeholder:t.placeholder},model:{value:e.searchForm[t.key],callback:function(n){e.$set(e.searchForm,t.key,n)},expression:"searchForm[item['key']]"}},["textarea"==t.type?n("el-input",{attrs:{size:t.size,type:"textarea",disabled:t.disabled,placeholder:t.placeholder},model:{value:e.searchForm[t.key],callback:function(n){e.$set(e.searchForm,t.key,n)},expression:"searchForm[item['key']]"}}):e._e(),e._v(" "),"text"==t.type?n("el-input",{attrs:{size:t.size,type:"text",disabled:t.disabled,maxlength:t.maxlength,placeholder:t.placeholder,autocomplete:"on","show-word-limit":t.showLimit},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.submitForm("searchForm")}},model:{value:e.searchForm[t.key],callback:function(n){e.$set(e.searchForm,t.key,n)},expression:"searchForm[item['key']]"}}):e._e(),e._v(" "),"select"==t.type?n("div",{staticClass:"myselect"},[n("el-select",{attrs:{size:t.size,disabled:t.disabled,placeholder:t.placeholder,multiple:t.multiple,"filter-method":t.filterMethod,clearable:!t.notClear,filterable:""},on:{change:function(n){return e.change(t)}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.submitForm("searchForm")}},model:{value:e.searchForm[t.key],callback:function(n){e.$set(e.searchForm,t.key,n)},expression:"searchForm[item['key']]"}},e._l(t.data,function(e){return n("el-option",{key:e[t.labelField]||e.id,attrs:{label:e[t.valueField]||e.name,value:e[t.labelField]||e.id}})}),1)],1):e._e(),e._v(" "),"timepicker"==t.type?n("div",[n("el-date-picker",{attrs:{disabled:t.disabled,size:t.size,type:"daterange","default-time":t.defaultTime?t.defaultTime:["00:00:00","23:59:59"],"value-format":"timestamp","range-separator":"至","picker-options":t.pickerOptions||e.pickerOptions,"start-placeholder":"请选择开始日期","end-placeholder":"请选择结束日期"},model:{value:e.searchForm[t.key],callback:function(n){e.$set(e.searchForm,t.key,n)},expression:"searchForm[item['key']]"}})],1):e._e(),e._v(" "),"dateTimepicker"==t.type?n("div",[n("el-date-picker",{attrs:{disabled:t.disabled,size:t.size,type:"datetimerange","value-format":"timestamp","default-time":t.defaultTime?t.defaultTime:["00:00:00","23:59:59"],"range-separator":"至","start-placeholder":"请选择开始时间","end-placeholder":"请选择结束时间"},model:{value:e.searchForm[t.key],callback:function(n){e.$set(e.searchForm,t.key,n)},expression:"searchForm[item['key']]"}})],1):e._e(),e._v(" "),"datePicker"==t.type?n("div",[n("el-date-picker",{staticClass:"date-picker",attrs:{disabled:t.disabled,size:t.size,type:t.dateType,format:t.format||"","value-format":t.valueFormat||"",placeholder:t.placeholder||"请选择时间"},model:{value:e.searchForm[t.key],callback:function(n){e.$set(e.searchForm,t.key,n)},expression:"searchForm[item['key']]"}})],1):e._e(),e._v(" "),"checkbox"==t.type?n("div",[n("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:e.searchForm[t.key],callback:function(n){e.$set(e.searchForm,t.key,n)},expression:"searchForm[item['key']]"}},[e._v("\n "+e._s(e.searchForm[t.value])+"\n ")])],1):e._e(),e._v(" "),"checkboxGroup"==t.type?n("div",[n("el-checkbox-group",{on:{change:e.checkboxGroupChange},model:{value:e.searchForm[t.key],callback:function(n){e.$set(e.searchForm,t.key,n)},expression:"searchForm[item['key']]"}},e._l(t.options,function(t,a){return n("el-checkbox",{key:t+a,attrs:{label:a}},[e._v("\n "+e._s(t)+"\n ")])}),1)],1):e._e(),e._v(" "),"cascader"==t.type?n("div",[n("el-cascader",{attrs:{options:t.options,props:t.extra,clearable:""},model:{value:e.searchForm[t.key],callback:function(n){e.$set(e.searchForm,t.key,n)},expression:"searchForm[item['key']]"}})],1):e._e()],1)}),e._v(" "),n("el-form-item",{staticClass:"search-ope"},[e.needReset?n("el-button",{staticClass:"reset",attrs:{size:"small"},on:{click:function(t){return e.resetForm("searchForm")}}},[e._v("重置")]):e._e(),e._v(" "),n("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"small"},on:{click:function(t){return e.submitForm("searchForm")}}},[e._v("搜索")]),e._v(" "),e.needexport?n("el-button",{attrs:{icon:"el-icon-upload2",type:"primary",size:"small"},on:{click:e.toExport}},[e._v("导出")]):e._e()],1)],2):e._e()],1)},staticRenderFns:[]};t.a=a}])});