ytg7vue 1.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ module.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=18)}([function(e,t){e.exports=function(e,t,n,r,i,o){var a,s=e=e||{},u=typeof e.default;"object"!==u&&"function"!==u||(a=e,s=e.default);var c="function"==typeof s?s.options:s;t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId=i);var f;if(o?(f=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=f):r&&(f=r),f){var d=c.functional,l=d?c.render:c.beforeCreate;d?(c._injectStyles=f,c.render=function(e,t){return f.call(t),l(e,t)}):c.beforeCreate=l?[].concat(l,f):[f]}return{esModule:a,exports:s,options:c}}},function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=f[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(o(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{for(var a=[],i=0;i<n.parts.length;i++)a.push(o(n.parts[i]));f[n.id]={id:n.id,refs:1,parts:a}}}}function i(){var e=document.createElement("style");return e.type="text/css",d.appendChild(e),e}function o(e){var t,n,r=document.querySelector("style["+g+'~="'+e.id+'"]');if(r){if(h)return m;r.parentNode.removeChild(r)}if(y){var o=p++;r=l||(l=i()),t=a.bind(null,r,o,!1),n=a.bind(null,r,o,!0)}else r=i(),t=s.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function a(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function s(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),v.ssrId&&e.setAttribute(g,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var u="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!u)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 c=n(4),f={},d=u&&(document.head||document.getElementsByTagName("head")[0]),l=null,p=0,h=!1,m=function(){},v=null,g="data-vue-ssr-id",y="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n,i){h=n,v=i||{};var o=c(e,t);return r(o),function(t){for(var n=[],i=0;i<o.length;i++){var a=o[i],s=f[a.id];s.refs--,n.push(s)}t?(o=c(e,t),r(o)):o=[];for(var i=0;i<n.length;i++){var s=n[i];if(0===s.refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete f[s.id]}}}};var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){"use strict";t.a={name:"BtnRight",data:function(){return{btnRight:!0}},created:function(){},methods:{getName:function(){},checkRight:function(){if(!this.$store)return!0;var e=this.$store.state.user.hidBtns,t=this.findNameCombine();if(!t)return!0;var n=this.$route.name;if(e&&e.length>0)for(var r=0;r<e.length;r++){var i=e[r];i.menuId==n&&t==i.permissions&&(this.btnRight=!1)}},addBtnMetaToParent:function(){if(!this.$route.meta.btnRole)return!1;var e=this.findNameCombine();if(!e)return!1;var t={name:this.getName(),permissions:e};this.checkIsSame(t)||this.$route.meta.btnRole.push(t)},checkIsSame:function(e){for(var t=this.$route.meta.btnRole,n=0;n<t.length;n++){if(t[n].permissions==e.permissions)return!0}return!1},findNameCombine:function(){if(this.vid)return this.vid;var e=this.$vnode.context,t=e.$options.name;return"HdFormDialog"==t&&(t=this.findNameFromFile(e.$vnode.context.$options.name)),t||(t="noname"),t+"_"+this.getName()},findNameFromFile:function(e){if(!e)return!1;var t=e.split("\\");return t[t.length-1].split(".")[0]},findRoleSetParent:function(){for(var e=this.$parent.$parent;e&&"btnRole"==!e.$options.name;)e=e.$parent;return e}}}},function(e,t){e.exports=function(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s=o[1],u=o[2],c=o[3],f={id:e+":"+i,css:s,media:u,sourceMap:c};r[a]?r[a].parts.push(f):n.push(r[a]={id:a,parts:[f]})}return n}},function(e,t,n){"use strict";var r=n(7);t.a={name:"HdBtn",mixins:[r.a],data:function(){return{}},props:{noRoleManage:Boolean,keyMap:Array,keyType:String,hotKeyRange:{type:String,default:"hd-com-grid"},icon:String,hint:String,vid:String},created:function(){this.noRoleManage||this.$route&&this.$route.meta.btnRoleCheck&&this.addBtnMetaToParent()},mounted:function(){var e=this;this.$nextTick(function(){e.$refs.hdbtn&&e.$refs.hdbtn.referenceElm&&e.$refs.hdbtn.referenceElm.setAttribute("tabindex",-1)}),this.checkRight()},computed:{addTextProp:function(){return this.nowKeyMap&&2==this.nowKeyMap.length?"("+this.nowKeyMap[1].toUpperCase()+")":""},nowKeyMap:function(){return this.keyMap?this.keyMap:this.keyType&&this.$keyMap?this.$keyMap[this.keyType]:void 0}},methods:{getName:function(){return this.hint+"(-)"},handleClick:function(e){this.$emit("click",e)},click:function(e){void 0!==this.$attrs.disabled&&!1!==this.$attrs.disabled||this.handleClick(e)}}}},,function(e,t,n){"use strict";var r=n(3),i=n(0),o=i(r.a,null,!1,null,null,null);t.a=o.exports},,,,,,,,,,,function(e,t,n){"use strict";function r(e){n(19)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=n(21),a=n(0),s=r,u=a(i.a,o.a,!1,s,null,null);t.default=u.exports},function(e,t,n){var r=n(20);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(2)("37399a8d",r,!0,{})},function(e,t,n){t=e.exports=n(1)(void 0),t.push([e.i,".hdBtn{cursor:pointer}",""])},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.btnRight?n("el-tooltip",{ref:"hdbtn",attrs:{content:e.$t(e.hint+e.addTextProp),placement:"bottom",effect:"light",enterable:!1,"open-delay":500,transition:""}},[n("i",{class:"hdBtn "+e.icon,on:{click:e.handleClick}},[e.icon?e._e():e._t("default"),e._v(" "),e.nowKeyMap?n("hd-hot-key",{attrs:{hotKeyRange:e.hotKeyRange,keyMap:e.nowKeyMap},on:{do:function(t){e.click("hotkey")}}}):e._e()],2)]):e._e()},i=[],o={render:r,staticRenderFns:i};t.a=o}]);
@@ -0,0 +1 @@
1
+ module.exports=function(e){function t(r){if(i[r])return i[r].exports;var o=i[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,r){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=81)}([function(e,t){e.exports=function(e,t,i,r,o,n){var s,l=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(s=e,l=e.default);var d="function"==typeof l?l.options:l;t&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0),i&&(d.functional=!0),o&&(d._scopeId=o);var u;if(n?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(n)},d._ssrRegister=u):r&&(u=r),u){var c=d.functional,h=c?d.render:d.beforeCreate;c?(d._injectStyles=u,d.render=function(e,t){return u.call(t),h(e,t)}):d.beforeCreate=h?[].concat(h,u):[u]}return{esModule:s,exports:l,options:d}}},function(e,t){function i(e,t){var i=e[1]||"",o=e[3];if(!o)return i;if(t&&"function"==typeof btoa){var n=r(o);return[i].concat(o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"})).concat([n]).join("\n")}return[i].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=i(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var n=this[o][0];"number"==typeof n&&(r[n]=!0)}for(o=0;o<e.length;o++){var s=e[o];"number"==typeof s[0]&&r[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),t.push(s))}},t}},function(e,t,i){function r(e){for(var t=0;t<e.length;t++){var i=e[t],r=u[i.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](i.parts[o]);for(;o<i.parts.length;o++)r.parts.push(n(i.parts[o]));r.parts.length>i.parts.length&&(r.parts.length=i.parts.length)}else{for(var s=[],o=0;o<i.parts.length;o++)s.push(n(i.parts[o]));u[i.id]={id:i.id,refs:1,parts:s}}}}function o(){var e=document.createElement("style");return e.type="text/css",c.appendChild(e),e}function n(e){var t,i,r=document.querySelector("style["+_+'~="'+e.id+'"]');if(r){if(f)return g;r.parentNode.removeChild(r)}if(v){var n=p++;r=h||(h=o()),t=s.bind(null,r,n,!1),i=s.bind(null,r,n,!0)}else r=o(),t=l.bind(null,r),i=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else i()}}function s(e,t,i,r){var o=i?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,o);else{var n=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(n,s[t]):e.appendChild(n)}}function l(e,t){var i=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),m.ssrId&&e.setAttribute(_,t.id),o&&(i+="\n/*# sourceURL="+o.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}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 d=i(4),u={},c=a&&(document.head||document.getElementsByTagName("head")[0]),h=null,p=0,f=!1,g=function(){},m=null,_="data-vue-ssr-id",v="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,i,o){f=i,m=o||{};var n=d(e,t);return r(n),function(t){for(var i=[],o=0;o<n.length;o++){var s=n[o],l=u[s.id];l.refs--,i.push(l)}t?(n=d(e,t),r(n)):n=[];for(var o=0;o<i.length;o++){var l=i[o];if(0===l.refs){for(var a=0;a<l.parts.length;a++)l.parts[a]();delete u[l.id]}}}};var b=function(){var e=[];return function(t,i){return e[t]=i,e.filter(Boolean).join("\n")}}()},function(e,t,i){"use strict";t.a={name:"BtnRight",data:function(){return{btnRight:!0}},created:function(){},methods:{getName:function(){},checkRight:function(){if(!this.$store)return!0;var e=this.$store.state.user.hidBtns,t=this.findNameCombine();if(!t)return!0;var i=this.$route.name;if(e&&e.length>0)for(var r=0;r<e.length;r++){var o=e[r];o.menuId==i&&t==o.permissions&&(this.btnRight=!1)}},addBtnMetaToParent:function(){if(!this.$route.meta.btnRole)return!1;var e=this.findNameCombine();if(!e)return!1;var t={name:this.getName(),permissions:e};this.checkIsSame(t)||this.$route.meta.btnRole.push(t)},checkIsSame:function(e){for(var t=this.$route.meta.btnRole,i=0;i<t.length;i++){if(t[i].permissions==e.permissions)return!0}return!1},findNameCombine:function(){if(this.vid)return this.vid;var e=this.$vnode.context,t=e.$options.name;return"HdFormDialog"==t&&(t=this.findNameFromFile(e.$vnode.context.$options.name)),t||(t="noname"),t+"_"+this.getName()},findNameFromFile:function(e){if(!e)return!1;var t=e.split("\\");return t[t.length-1].split(".")[0]},findRoleSetParent:function(){for(var e=this.$parent.$parent;e&&"btnRole"==!e.$options.name;)e=e.$parent;return e}}}},function(e,t){e.exports=function(e,t){for(var i=[],r={},o=0;o<t.length;o++){var n=t[o],s=n[0],l=n[1],a=n[2],d=n[3],u={id:e+":"+o,css:l,media:a,sourceMap:d};r[s]?r[s].parts.push(u):i.push(r[s]={id:s,parts:[u]})}return i}},function(e,t,i){"use strict";var r=i(7);t.a={name:"HdBtn",mixins:[r.a],data:function(){return{}},props:{noRoleManage:Boolean,keyMap:Array,keyType:String,hotKeyRange:{type:String,default:"hd-com-grid"},icon:String,hint:String,vid:String},created:function(){this.noRoleManage||this.$route&&this.$route.meta.btnRoleCheck&&this.addBtnMetaToParent()},mounted:function(){var e=this;this.$nextTick(function(){e.$refs.hdbtn&&e.$refs.hdbtn.referenceElm&&e.$refs.hdbtn.referenceElm.setAttribute("tabindex",-1)}),this.checkRight()},computed:{addTextProp:function(){return this.nowKeyMap&&2==this.nowKeyMap.length?"("+this.nowKeyMap[1].toUpperCase()+")":""},nowKeyMap:function(){return this.keyMap?this.keyMap:this.keyType&&this.$keyMap?this.$keyMap[this.keyType]:void 0}},methods:{getName:function(){return this.hint+"(-)"},handleClick:function(e){this.$emit("click",e)},click:function(e){void 0!==this.$attrs.disabled&&!1!==this.$attrs.disabled||this.handleClick(e)}}}},function(e,t){e.exports=require("babel-runtime/helpers/toConsumableArray")},function(e,t,i){"use strict";var r=i(3),o=i(0),n=o(r.a,null,!1,null,null,null);t.a=n.exports},function(e,t){e.exports=require("babel-runtime/core-js/object/assign")},function(e,t){e.exports=require("babel-runtime/core-js/json/stringify")},function(e,t,i){"use strict";var r=i(11),o=i.n(r),n=i(8),s=i.n(n),l=i(6),a=i.n(l),d=i(27),u=i(33),c=i(39),h=i(42),p=i(48),f=i(49),g=i(18),m=i(54);t.a={name:"HdGrid",components:{HdRightMenu:m.a,GridShow:d.a,PdfShow:h.a,GridExField:u.a,ExtendColumn:f.a,HdBtn:g.default},mixins:[c.a,p.a],data:function(){return{disCol:[],oriCol:[],chiCol:[],colThis:[],menuId:"",gridId:"",queryShow:!0,excelAllExporting:!1,pdfAllExporting:!1,gridShowIs:!1,exFieldShowIs:!1,pdfShowIs:!1,gridCanReload:!0,isGridCustom:!1,exFieldRows:[],rightMenuVisable:!1,rightMenuRow:[]}},inheritAttrs:!1,props:{hdResult:Object,hdAllResult:Object,hdQuery:{type:Object,default:function(){return{}}},height:{type:String,default:function(){return"100%"}},noSets:{type:Boolean,default:function(){return!1}},defaultSort:{type:Object,default:function(){return{prop:"updTim",order:"descending"}}},pageHide:Boolean,ckHide:Boolean,indexHide:Boolean,recHide:Boolean,rowClassName:Function,noExcelExport:[Array],excelPropHeader:Boolean,visualScroll:Boolean,pageSizes:[Array],exField:{type:Object,default:function(){return{open:!1,table:null,columnList:null}}},excelFormatter:Function,addHide:Boolean,delHide:Boolean,saveHide:Boolean,copyHide:Boolean,hdBtnTool:{type:Boolean,default:!0}},created:function(){this.$parent.$vnode.context.$options._componentTag?this.gridId=this.$parent.$vnode.context.$options._componentTag+"_"+this.$parent.$parent.$options._componentTag:this.gridId=this.$parent.$vnode.context.$options.name+"_"+this.$parent.$parent.$options._componentTag},mounted:function(){this.hdQuery.doSort(this.defaultSort,!0);var e=localStorage.getItem("page_"+this.gridId);e&&(this.hdQuery.rows=parseInt(e)),this.pageHide&&(this.hdQuery.page=null,this.hdQuery.rows=null),this.visualScroll&&this.initVisual(),this.exField.gridCode&&this.initExFieldRows(),this.$nextTick(function(){this.noSets||this.gridShow(!0)})},methods:{doAdd:function(){this.$emit("sel-ok","doAdd")},doRemove:function(){this.$emit("sel-ok","doRemove")},doSave:function(){this.$emit("sel-ok","doSave")},doCopy:function(){this.$emit("sel-ok","doCopy")},doUpdateOne:function(){this.$emit("sel-ok","doUpdateOne",this.rightMenuRow)},doRemoveOne:function(){this.$emit("sel-ok","doRemoveOne",this.rightMenuRow)},doCopyOne:function(){this.$emit("sel-ok","doCopyOne",this.rightMenuRow)},gridShow:function(e){e||(this.gridCanReload=!1),this.$nextTick(function(){this.gridCanReload=!0,this.$nextTick(function(){var t=this;!e&&this.visualScroll&&(this.initVisual(),this.initTableHeight()),this.oriCol=this.$refs.ingrid.store.states._columns,this.menuId=this.$route.name;var i="/webresources/login/com/ComGridShow/find?menuId="+this.menuId+"&gridId="+this.gridId;this.$http.post(i).then(function(e){t.isGridCustom=0!=e.data.length,t.disCol=t.gridCompute(t.oriCol,e.data),t.$refs.ingrid.store.states._columns=t.disCol.filter(function(e){return"0"!=e.showFlg}),console.log("显示序列条数",t.$refs.ingrid.store.states._columns.length),t.$refs.ingrid.store.updateColumns(),t.$nextTick(function(){this.$refs.ingrid.doLayout()})})})})},exFieldShow:function(){window.location.reload()},gridSets:function(){var e=this;this.gridShowIs=!0,this.$nextTick(function(){e.$refs.gridShow.show(e.disCol,e.menuId,e.gridId)})},exFieldSets:function(){var e=this;this.exFieldShowIs=!0,this.$nextTick(function(){e.$refs.exFieldShow.show()})},gridCompute:function(e,t){for(var i=[],r=[],o=0;o<e.length;o++){var n=e[o];n.showFlg="1",n._ori_label=n.label,n.label=n._ori_label;var s=!1;if(!n||n.property){for(var l=0;l<t.length;l++)if(n.property==t[l].property){s=!0;break}s||r.push(n)}else"right"==n.fixed?i.push(e[o]):i.push(n)}for(var d=0;d<t.length;d++)for(var u=t[d],c=0;c<e.length;c++){var h=e[c];if("checkBox"==h.className&&(this.$set(h,"fixed","left"),this.$set(h,"className","checkBox backFF")),"selection"!=h.type&&"index"!=h.type||(this.$set(h,"fixed","left"),this.$set(h,"className","backFF")),h.property&&u.property==h.property){this.$set(h,"showFlg",u.showFlg),this.$set(h,"freezeFlg",u.freezeFlg),"1"==u.freezeFlg&&(this.$set(h,"fixed","left"),this.$set(h,"className","backFF"+h.className)),h.width=u.width,i.push(h);break}}return i=[].concat(a()(i),r)},extSets:function(e){"gridSets"==e&&this.gridSets(),"exFieldSets"==e?this.exFieldSets():"pageExcel"==e?this.doPageExcel():"allExcel"==e?this.doAllExcel():"allPdf"==e?this.doAllPdf():"queryToggle"==e&&(this.queryShow=!this.queryShow),this.$emit("extSets",e)},getHdComGrid:function(){for(var e=this.$parent;e;){if("HdComGrid"==e.$options.name)return e;e=e.$parent}return null},myselectionChange:function(e){this.hdQuery&&(this.hdQuery.selObj=e),this.$emit("selection-change",e,!0)},myrowClick:function(e,t,i){this.hdQuery&&(this.hdQuery.selRow=e)},myrowDblClick:function(e,t,i){this.$listeners["row-dblclick"]||1!=this.$route.path.indexOf("privilege")&&(this.$emit("sel-ok","doUpdateOne",e),this.hdQuery&&(this.hdQuery.selRow=e))},myrowContextmenu:function(e,t,i){this.hdQuery&&(this.rightMenuRow=e),this.rightMenuVisable=!1,i.preventDefault();var r=this.$refs.rightMenu.$el;console.log(i),i.clientX>900?r.style.left=i.clientX-265+"px":r.style.left=i.clientX-175+"px",document.addEventListener("click",this.foo),i.clientY>500?r.style.top=i.clientY-185+"px":r.style.top=i.clientY-105+"px"},foo:function(){this.rightMenuVisable=!1,document.removeEventListener("click",this.foo)},dodefaultSort:function(e,t,i){var r=this;if(e.column.sortable){for(var o=!1,n=0;n<this.hdResultComRows.length;n++)if(this.hdResultComRows[n].isEdit){o=!0;break}o?this.$confirm(this.$t("存在未保存数据,是否继续?"),this.$t("提示"),{}).then(function(){r.hdQuery.doSort(e,!1)}):this.hdQuery.doSort(e,!1)}},localeCompare:function(e,t){return e?t?e.localeCompare(t):-1:1},doPageExcel:function(){this.excelExport(this.hdResult.rows)},doAllExcel:function(){var e=this,t=null;this.$emit("allExcel",function(e){t=e}),this.excelAllExporting=!0,t.then(function(t){e.excelExport(t.data.rows),e.excelAllExporting=!1})},doAllPdf:function(){var e=this,t=null;this.pdfShowIs=!0,this.$emit("allExcel",function(e){t=e}),this.pdfAllExporting=!0,t.then(function(t){e.pdfExport(t.data.rows),e.pdfAllExporting=!1})},getInputFormat:function(e){for(var t=0;t<this.colThis.length;t++){var i=this.colThis[t];if(i.$attrs.prop==e)return i.getValueByPath}},rowSizeChg:function(e){localStorage.setItem("page_"+this.gridId,e),this.hdQuery.doSizeChg(e)},getCkRows:function(){return this.visualScroll?this.hdResult.rows.filter(function(e){return 1==e._isCK}):this.hdQuery.selObj},initExFieldRows:function(){var e=this,t=new HdQuery(this);t.query.gridCode=this.exField.gridCode,t.sort="sortNo",t.order="asc",this.$http.post("/webresources/login/tech/ComExField/detail/find",t).then(function(t){e.exFieldRows=t.data.rows,e.exFieldRows.forEach(function(e){e.fieldName=e.columnName.toLowerCase().replace(/\_+[a-zA-Z]/g,function(e,t){return t?e.substr(-1).toUpperCase():e})}),e.$nextTick(function(){this.$refs.ingrid.doLayout()})})},filterChange:function(e){this.hdResult.filters=s()(this.hdResult.filters||{},e),this.filterHdResult()},filterHdResult:function(){var e=this,t=o()(this.hdResult.filters||{});this.hdResult.rows=this.hdResult._rows.filter(function(i){return!t.some(function(t){var r=(e.$refs.ingrid.store.states._columns.find(function(e){return e.id==t})||"").property;return e.hdResult.filters[t].length>0&&-1==e.hdResult.filters[t].indexOf(i[r])})})}},computed:{hdResultComRows:function(){return this.visualScroll?this.gridDataRows:this.hdResult.rows},pageSizeArray:function(){return null==this.pageSizes?this.visualScroll?[20,50,100,200,500,1e3]:[20,50,100,200]:this.pageSizes},showBtnTool:function(){return this.hdBtnTool&&1!=this.$route.path.indexOf("privilege")}},watch:{}}},function(e,t){e.exports=require("babel-runtime/core-js/object/keys")},function(e,t,i){"use strict";var r=i(9),o=i.n(r),n=i(13),s=i.n(n);t.a={name:"gridshow",components:{},data:function(){return{hdQuery:new HdQuery(this),list:[],oldList:[],newList:[],visible:!1,loading:!1,menuId:"",gridId:"",specCkForGrid:!0}},mounted:function(){this.loading=!1},methods:{show:function(e,t,i){var r=this;this.menuId=t,this.gridId=i,this.visible=!0,this.list=JSON.parse(o()(e.filter(function(e){return e.property}))),this.oldList=this.list.map(function(e){return e.property}),this.newList=this.oldList.slice(),this.$nextTick(function(){r.setSort()})},setSort:function(){for(var e=this,t=document.querySelectorAll(".gridShow .el-table__body-wrapper > table > tbody"),i=0;i<t.length;i++){var r=t[i];this.sortable=s.a.create(r,{ghostClass:"sortable-ghost",onEnd:function(t){var i=e.list.splice(t.oldIndex,1)[0];e.list.splice(t.newIndex,0,i);var r=e.newList.splice(t.oldIndex,1)[0];e.newList.splice(t.newIndex,0,r)}})}},submit:function(){var e=this,t="/webresources/login/com/ComGridShow/save?menuId="+this.menuId+"&gridId="+this.gridId;this.loading=!0,this.$http.post(t,this.list).then(function(t){e.loading=!1;var i=t.data;e.$message({type:"-1"==i.code?"error":"success",message:i.message}),"-1"!=i.code&&(e.visible=!1,e.$emit("save-ok"))})},reset:function(){var e=this,t="/webresources/login/com/ComGridShow/reset?menuId="+this.menuId+"&gridId="+this.gridId;this.$http.post(t,this.list).then(function(t){var i=t.data;e.$message({type:"-1"==i.code?"error":"success",message:i.message}),"-1"!=i.code&&(e.visible=!1,e.$emit("save-ok"))})}}}},function(e,t){e.exports=require("sortablejs")},function(e,t,i){"use strict";var r=i(13),o=i.n(r),n=i(36);t.a={name:"gridexfield",components:{SelGridFieldcode:n.a},props:{table:String,columnList:Array,gridCode:String},data:function(){return{hdQuery:new HdQuery(this),visible:!1,loading:!1,list:[]}},mounted:function(){this.init()},methods:{init:function(e){var t=this;this.hdQuery.query.tableName=this.table,this.hdQuery.query.columnList=this.columnList,this.hdQuery.query.gridCode=this.gridCode,this.hdQuery.sort="sortNo",this.hdQuery.order="asc",this.$http.post("/webresources/login/tech/ComExFieldCustom/find",this.hdQuery).then(function(e){t.list=e.data.rows,t.columnList&&t.columnList.forEach(function(i){e.data.rows.some(function(e){return e.columnName==i})||t.list.unshift({columnName:i,tableName:t.table,formXs:"20",formSpan:"12",isEdit:!0})});var i=0;t.list.forEach(function(e){e.isEdit=!0,e.sortNo=i++,e.formSpan=e.formSpan+""}),t.$refs.grid.doQuery({rows:t.list}),t.$nextTick(function(){t.setSort()})})},show:function(){this.visible=!0,this.list.forEach(function(e){e.isEdit=!0})},setSort:function(){for(var e=this,t=document.querySelectorAll(".gridShow .el-table__body-wrapper > table > tbody"),i=0;i<t.length;i++){var r=t[i];this.sortable=o.a.create(r,{ghostClass:"sortable-ghost",onEnd:function(t){e.list.forEach(function(e){e.sortNo==t.oldIndex?e.sortNo=t.newIndex:t.newIndex>t.oldIndex&&e.sortNo<=t.newIndex&&e.sortNo>t.oldIndex?e.sortNo=e.sortNo-1:t.newIndex<t.oldIndex&&e.sortNo>=t.newIndex&&e.sortNo<t.oldIndex&&(e.sortNo=e.sortNo+1)})}})}},doAdd:function(){var e=this.getEmptyColumn();if(null==e)return void this.$message({message:"没有剩余的扩展字段"});var t={gridCode:this.gridCode,tableName:this.table,columnName:e,formXs:12,formSpan:"20",isEdit:!0};this.$refs.grid.doEdit("",t)},submit:function(){var e=this;this.list.forEach(function(t){t.columnComment&&t.columnType||(t.isEdit=!1),t.gridCode=e.gridCode}),this.$refs.grid.doSaveAll().then(function(t){e.visible=!1,e.$emit("save-ok")}).catch(function(t){e.$message({message:"填写有误"})})},getEmptyColumn:function(){var e=this,t=this.columnList.filter(function(t){return!e.list.some(function(e){return e.columnName==t})});return t.length>0?t[0]:null},columnTypeChange:function(e,t){t.exColumnId&&this.$message({type:"warning",message:this.$t("修改类型可能回造成数据混乱或丢失, 请慎重!")}),"VARCHAR"!=t.columnType&&"BOOLEAN"!=t.columnType||(t.formatter="x")}}}},function(e,t,i){"use strict";t.a={name:"sel-grid-fieldcode",components:{},data:function(){return{hdQuery:new HdQuery(this)}},mounted:function(){},props:{txtVal:String,idVal:String,disabled:Boolean},methods:{beforeQuery:function(e){this.hdQuery.query.anyQuery=e},doClick:function(e){this.$emit("update:txtVal",e.fieldName),this.$emit("update:idVal",e.fieldCod)}}}},function(e,t,i){"use strict";var r=i(6),o=i.n(r),n=i(9),s=i.n(n),l=i(45),a=i.n(l),d=i(46);i.n(d);window.jsPDF=a.a,t.a={name:"pdfshow",components:{},props:{gening:{type:Boolean,default:function(){return!0}},defaultSort:{type:Object,default:function(){return{prop:"updTim",order:"descending"}}},pageHide:Boolean,ckHide:Boolean,indexHide:Boolean,recHide:Boolean,rowClassName:Function,excelPropHeader:Boolean},data:function(){return{visible:!0,totalSize:0,isLandscape:!1,pdfExport:[],currentPage:1,pageSize:400,resultData:[],gridData:[],title:"",fontSize:10}},mounted:function(){},methods:{handleSizeChange:function(){this.initPdf()},handleCurrentChange:function(){this.initPdf()},initShowData:function(){this.gridData=[];for(var e=0;e<this.resultData.length;e++){for(var t=[],i=0;i<this.resultData[e].length;i++)this.pdfExport.indexOf(i)>-1&&t.push(this.resultData[e][i]);this.gridData.push(t)}},refreshGridData:function(){console.log("refreshGridData",this.pdfExport);var e={isLandscape:this.isLandscape,fontSize:this.fontSize,cols:this.pdfExport};localStorage.setItem("HdPdfSel"+this.$parent.gridId,s()(e)),this.initShowData(),this.initPdf()},addScript:function(){this.$message({type:"success",showClose:!0,duration:99999,message:this.$t("正在初始化pdf脚本,请等待...")});var e=document.getElementsByTagName("head")[0],t=document.createElement("script"),i=this;t.onload=t.onreadystatechange=function(){console.log("readyState",i.readyState),i.readyState&&"loaded"!==i.readyState&&"complete"!==i.readyState||(i.$message.closeAll(),i.initPdf(),t.onload=t.onreadystatechange=null)},t.type="text/javascript",t.src="static/js/simsun.js",e.appendChild(t)},genPdf:function(e,t,i){this.totalSize=t.length-1,this.resultData.push(["#"].concat(o()(t[0])));for(var r=1;r<t.length;r++)this.resultData.push([r].concat(o()(t[r])));console.log("localStorage",localStorage.getItem("HdPdfSel"+this.$parent.gridId));var n=localStorage.getItem("HdPdfSel"+this.$parent.gridId);if(n){var s=JSON.parse(n);if(this.pdfExport=s.cols,this.fontSize=s.fontSize,this.isLandscape=s.isLandscape,!this.pdfExport||!Array.isArray(this.pdfExport)||this.pdfExport.length<1){this.pdfExport=[];for(var l=0;l<=this.totalSize;l++)this.pdfExport.push(l)}}this.initShowData(),this.title=i,this.addScript()},initPdf:function(){var e=this,t=(this.currentPage-1)*this.pageSize+1,i=this.currentPage*this.pageSize+1,r=this.gridData.slice(t,i);this.$nextTick(function(){e.showPdf([e.gridData[0]],r,e.title)})},showPdf:function(e,t,i){var r=e,o=t,n=null;if(this.isLandscape){var n=new a.a("l","pt");n.setFont("simsun"),n.setFontStyle("normal"),n.text(i,450,20,{align:"center"})}else{var n=new a.a("h","pt");n.setFont("simsun"),n.setFontStyle("normal"),n.text(i,300,20,{align:"center"})}n.autoTable({head:r,body:o,margin:{right:6,left:6},styles:{font:"simsun",fontStyle:"normal",lineColor:"#000",lineWidth:1,fontSize:this.fontSize,cellPadding:.5,halign:"center"},headStyles:{font:"simsun",fontStyle:"normal"}}),document.getElementById("output").data=n.output("datauristring")}},watch:{fontSize:function(e){e?e>50?this.fontSize=50:e<2&&(this.fontSize=1):this.fontSize=10}}}},function(e,t,i){"use strict";var r=i(52);t.a={name:"ExtendColumn",mixins:[r.a],props:{exFieldRow:Object},data:function(){return{codeList:Object}},mounted:function(){},methods:{genCode:function(e,t){var i=this;if(this.codeList[t])return this.codeList[t][e];this.codeList[t]={},this.$http.get("/webresources/login/privilege/SysCode/findAll?fieldCod="+t).then(function(r){r.data.forEach(function(r){return i.codeList[t][r.code]=r.name,i.codeList[t][e]})})},getSysCode:function(e){var t=this;this.$http.get("/webresources/login/privilege/SysCode/findAll?fieldCod="+e).then(function(i){i.data.forEach(function(i){t.codeList[e][i.fieldCod]=i.fieldNam})})}}}},function(e,t,i){"use strict";function r(e){i(19)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(5),n=i(21),s=i(0),l=r,a=s(o.a,n.a,!1,l,null,null);t.default=a.exports},function(e,t,i){var r=i(20);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);i(2)("37399a8d",r,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".hdBtn{cursor:pointer}",""])},function(e,t,i){"use strict";var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.btnRight?i("el-tooltip",{ref:"hdbtn",attrs:{content:e.$t(e.hint+e.addTextProp),placement:"bottom",effect:"light",enterable:!1,"open-delay":500,transition:""}},[i("i",{class:"hdBtn "+e.icon,on:{click:e.handleClick}},[e.icon?e._e():e._t("default"),e._v(" "),e.nowKeyMap?i("hd-hot-key",{attrs:{hotKeyRange:e.hotKeyRange,keyMap:e.nowKeyMap},on:{do:function(t){e.click("hotkey")}}}):e._e()],2)]):e._e()},o=[],n={render:r,staticRenderFns:o};t.a=n},function(e,t,i){"use strict";t.a={name:"HdRightMenu",props:{noRoleManage:!1},data:function(){return{isFocus:!1,rangeThis:{}}},created:function(){},methods:{doAdd:function(){this.$emit("do-add")},doRemove:function(){this.$emit("do-remove")},doUpdate:function(){this.$emit("do-update")},doCopy:function(){this.$emit("do-copy")}}}},function(e,t){e.exports=require("xlsx")},function(e,t,i){"use strict";function r(e){i(25)}Object.defineProperty(t,"__esModule",{value:!0});var o=i(10),n=i(56),s=i(0),l=r,a=s(o.a,n.a,!1,l,"data-v-4ca5c5c6",null);t.default=a.exports},function(e,t,i){var r=i(26);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);i(2)("0eea07ed",r,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".hdgrid[data-v-4ca5c5c6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hdgrid[data-v-4ca5c5c6] .el-table{height:100%;width:100%;-webkit-box-flex:1;-ms-flex:1;flex:1}.hdgrid[data-v-4ca5c5c6] .el-table th.gutter{display:table-cell!important}.hdgrid[data-v-4ca5c5c6] .el-table .el-table__fixed-header-wrapper th,.hdgrid[data-v-4ca5c5c6] .el-table .el-table__header-wrapper th{background-color:#f6f6f6}.hdgrid[data-v-4ca5c5c6] .el-table td,.hdgrid[data-v-4ca5c5c6] .el-table th{padding:1px 0}.hdgrid[data-v-4ca5c5c6] .el-table .cell,.hdgrid[data-v-4ca5c5c6] .el-table .el-table--border td:first-child .cell,.hdgrid[data-v-4ca5c5c6] .el-table .el-table--border th:first-child .cell,.hdgrid[data-v-4ca5c5c6] .el-table .el-table th div{padding:1.5px 0 1.5px 4px!important}.hdgrid[data-v-4ca5c5c6] .el-table .el-table__empty-block{position:static;text-align:center;width:100%;height:80%}.hdgrid[data-v-4ca5c5c6] .el-table .el-table__body{margin-bottom:10px}.hdgrid[data-v-4ca5c5c6] .el-table .el-table__body-wrapper{height:100%;overflow:auto}.hdgrid[data-v-4ca5c5c6] .el-table .el-input__inner{height:27px;margin-bottom:0;line-height:27px}.hdgrid[data-v-4ca5c5c6] .el-table .el-form-item__content,.hdgrid[data-v-4ca5c5c6] .el-table .el-form-item__label,.hdgrid[data-v-4ca5c5c6] .el-table .el-input,.hdgrid[data-v-4ca5c5c6] .el-table .el-input__icon{line-height:30px}.hdgrid[data-v-4ca5c5c6] .el-table .el-input__inner{padding:5px}.hdgrid[data-v-4ca5c5c6] .el-table .el-input--prefix .el-input__inner{padding-left:30px}.hdgrid[data-v-4ca5c5c6] .el-table .cell{min-width:20px}.hdgrid[data-v-4ca5c5c6] .el-table .checkBox .cell{overflow:inherit}.hdgrid[data-v-4ca5c5c6] .el-table .checkBox .cell .el-checkbox,.hdgrid[data-v-4ca5c5c6] .el-table .checkBox .cell .el-checkbox__input{position:inherit}.hdBtnTool[data-v-4ca5c5c6]{font-weight:700;vertical-align:middle;margin-left:20px}",""])},function(e,t,i){"use strict";function r(e){i(28),i(30)}var o=i(12),n=i(32),s=i(0),l=r,a=s(o.a,n.a,!1,l,"data-v-324af748",null);t.a=a.exports},function(e,t,i){var r=i(29);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);i(2)("34aa3991",r,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".sortable-ghost{opacity:.8;color:#fff!important;background:#42b983!important}.gridShow{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.gridShow .el-table{height:100%;width:100%;-webkit-box-flex:1;-ms-flex:1;flex:1}.gridShow .el-table .el-table__body-wrapper{width:100%;padding-bottom:30px}.gridShow .el-table .el-table__header-wrapper th{background-color:#f6f6f6}.gridShow .el-table .el-table__fixed-header-wrapper th{background-color:#8cbda4}.gridShow .el-table td,.gridShow .el-table th{padding:2px 0}.gridShow .el-table .cell,.gridShow .el-table .el-table--border td:first-child .cell,.gridShow .el-table .el-table--border th:first-child .cell,.gridShow .el-table .el-table th div{padding-left:2px!important;padding-right:2px!important}.gridShow .el-table .el-table__empty-block{position:static;text-align:center;width:100%;height:80%}.gridShow .el-table .el-table__body{margin-bottom:10px}.gridShow .el-table .el-table__body-wrapper{height:100%;overflow-y:auto}.gridShow .el-table .el-input__inner{height:27px;margin-bottom:0}.gridShow .el-table .el-form-item__content,.gridShow .el-table .el-form-item__label,.gridShow .el-table .el-input,.gridShow .el-table .el-input__icon{line-height:30px}.gridShow .el-table .el-input__inner{padding:5px}.gridShow .el-table .el-input--prefix .el-input__inner{padding-left:30px}",""])},function(e,t,i){var r=i(31);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);i(2)("0462a30a",r,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".icon-star[data-v-324af748]{margin-right:2px}.drag-handler[data-v-324af748]{width:20px;height:20px;cursor:pointer}.show-d[data-v-324af748]{margin-top:15px}",""])},function(e,t,i){"use strict";var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"展示设置",visible:e.visible,width:"50%","append-to-body":"",top:"2vh"},on:{"update:visible":function(t){e.visible=t}}},[i("el-container",{staticStyle:{height:"80vh",border:"1px solid #eee"}},[i("el-main",{staticClass:"gridShow"},[i("el-table",{attrs:{data:e.list,"row-key":"property"}},[i("el-table-column",{attrs:{align:"center",label:"名称",prop:"label",width:"150",noQuery:""}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"宽度(px)",prop:"width",width:"150",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("hd-num",{attrs:{step:10},model:{value:t.row.width,callback:function(i){e.$set(t.row,"width",e._n(i))},expression:"scope.row.width"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"展示",prop:"showFlg",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},model:{value:t.row.showFlg,callback:function(i){e.$set(t.row,"showFlg",i)},expression:"scope.row.showFlg"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"冻结",prop:"freezeFlg",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},model:{value:t.row.freezeFlg,callback:function(i){e.$set(t.row,"freezeFlg",i)},expression:"scope.row.freezeFlg"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"排序",width:"80",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(e){return[i("svg-icon",{staticClass:"drag-handler",attrs:{"icon-class":"drag"}})]}}])})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.reset}},[e._v(e._s(e.$t("重置")))]),e._v(" "),i("el-button",{on:{click:function(t){e.visible=!1}}},[e._v(e._s(e.$t("取 消")))]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.submit}},[e._v(" "+e._s(e.$t("确 定")))])],1)],1)},o=[],n={render:r,staticRenderFns:o};t.a=n},function(e,t,i){"use strict";function r(e){i(34)}var o=i(14),n=i(38),s=i(0),l=r,a=s(o.a,n.a,!1,l,"data-v-cee2d6d8",null);t.a=a.exports},function(e,t,i){var r=i(35);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);i(2)("5ab29bc4",r,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,"",""])},function(e,t,i){"use strict";var r=i(15),o=i(37),n=i(0),s=n(r.a,o.a,!1,null,null,null);t.a=s.exports},function(e,t,i){"use strict";var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("hd-grid-sel",{attrs:{txtVal:e.txtVal,idVal:e.idVal,placeholder:"请点击选取",height:"50vh",width:"300px",hdQuery:e.hdQuery,disabled:e.disabled,url:"webresources/login/privilege/SysField/vue/find",beforeQuery:e.beforeQuery},on:{rowClick:e.doClick}},[i("el-table-column",{attrs:{width:"120px",align:"left","header-align":"center",label:"代码",prop:"fieldCod",sortable:""}}),e._v(" "),i("el-table-column",{attrs:{widhth:"180px",align:"left","header-align":"center",label:"名称",prop:"fieldName",sortable:""}})],1)},o=[],n={render:r,staticRenderFns:o};t.a=n},function(e,t,i){"use strict";var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"扩展字段设置",visible:e.visible,width:"65%","append-to-body":"",top:"2vh"},on:{"update:visible":function(t){e.visible=t}}},[i("el-container",{staticStyle:{height:"80vh",border:"1px solid #eee"}},[i("el-main",{staticClass:"gridShow"},[i("hd-com-grid",{ref:"grid",attrs:{hdQuery:e.hdQuery,url:"/webresources/login/tech/ComExFieldCustom","not-init":"","no-sets":"","ck-hide":"","no-sort":"","index-hide":"","hd-btn-tool":!1,"rec-hide":"","page-hide":"","default-sort":{prop:"sortNo",order:"ascending"}}},[i("el-table-column",{attrs:{width:"100px",align:"center",label:"是否使用",prop:"useFlg",sortable:"",rules:e.$r(0,0,50),input:"el-switch",inputProp:{activeValue:"1",inactiveValue:"0"},inputFormat:e.$ckFt}}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"字段注解",prop:"columnComment",rules:e.$r(1,0,50)}}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"字段类型",prop:"columnType",rules:e.$r(1),input:"HdDrop",inputProp:{field:"IDV_COLUMN_TYPE"}},on:{change:e.columnTypeChange}}),e._v(" "),i("el-table-column",{attrs:{width:"110px",align:"center",label:"格式/代码",prop:"formatter",rules:e.$r(1)},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?["DROP"==t.row.columnType?[i("sel-grid-fieldcode",{staticStyle:{width:"100%"},attrs:{gridRow:t.row,txtVal:t.row.formatter,idVal:t.row.formatter},on:{"update:txtVal":function(i){e.$set(t.row,"formatter",i)},"update:idVal":function(i){e.$set(t.row,"formatter",i)},blur:function(i){e.checkErr(t.row)}},model:{value:t.row.formatter,callback:function(i){e.$set(t.row,"formatter",i)},expression:"scope.row['formatter']"}})]:"NUMBER"==t.row.columnType?[i("HdDrop",{staticStyle:{width:"100%"},attrs:{gridRow:t.row,txtVal:t.row.formatterStr,idVal:t.row.formatter,field:"IDV_NUMBER_FORMATTER"},on:{"update:txtVal":function(i){e.$set(t.row,"formatterStr",i)},"update:idVal":function(i){e.$set(t.row,"formatter",i)},blur:function(i){e.checkErr(t.row)}},model:{value:t.row.formatter,callback:function(i){e.$set(t.row,"formatter",i)},expression:"scope.row['formatter']"}})]:"DATE"==t.row.columnType?[i("HdDrop",{staticStyle:{width:"100%"},attrs:{gridRow:t.row,txtVal:t.row.formatterStr,idVal:t.row.formatter,field:"IDV_DATE_FORMATTER"},on:{"update:txtVal":function(i){e.$set(t.row,"formatterStr",i)},"update:idVal":function(i){e.$set(t.row,"formatter",i)},blur:function(i){e.checkErr(t.row)}},model:{value:t.row.formatter,callback:function(i){e.$set(t.row,"formatter",i)},expression:"scope.row['formatter']"}})]:void 0]:e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"是否必填",prop:"columnRequire",input:"el-switch",inputProp:{"active-value":1,"inactive-value":0},inputFormat:e.$ckFt}}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"最大长度",prop:"columnLen",rules:e.$r(1,0,255,"number"),input:"HdNum"}}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"表格宽度",prop:"formSpan",rules:e.$r(1),input:"HdDrop",inputProp:{field:"IDV_FORM_SPAN"}}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"排序",width:"80px",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(e){return[i("svg-icon",{staticClass:"drag-handler",attrs:{"icon-class":"drag"}})]}}])})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.visible=!1}}},[e._v(e._s(e.$t("取 消")))]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.submit}},[e._v(" "+e._s(e.$t("确 定")))])],1)],1)},o=[],n={render:r,staticRenderFns:o};t.a=n},function(e,t,i){"use strict";t.a={data:function(){return{rowSelNum:-1}},methods:{addHotKey:function(){document.body.addEventListener("keydown",this.handleKeydown)},removeHotKey:function(){document.body.removeEventListener("keydown",this.handleKeydown)},handleKeydown:function(e){var t=e.keyCode;-1!==[38,40,37,39].indexOf(t)&&(38===t&&(this.rowSelNum-=1),40===t&&(this.rowSelNum+=1),37===t&&this.hdQuery.doCurPageChange(this.hdQuery.page-1),39===t&&this.hdQuery.doCurPageChange(this.hdQuery.page+1),e.stopPropagation(),e.preventDefault()),13===t&&(this.hdQuery.selRow?(this.$emit("enterClick",this.hdQuery.selRow),this.hdQuery.selRow=null):this.hdResultComRows.length>0&&(this.hdQuery.selRow=this.hdResultComRows[0],this.$emit("enterClick",this.hdResultComRows[0]),this.hdQuery.selRow=null)),e.altKey&&13===t&&this.$emit("altEnterClick",this.hdQuery.selRow)},setCurrentRow:function(e,t){this.rowSelNum=e,this.$refs.ingrid.setCurrentRow(this.hdResultComRows[e]),this.hdQuery&&(this.hdQuery.selRow=this.hdResultComRows[this.rowSelNum]);var i=this.$refs.ingrid.$el.querySelectorAll(".el-table__body tr")[e];if(!i)return!0;var r=this.$refs.ingrid.$el.querySelector(".el-table__body-wrapper"),o=(r.getBoundingClientRect().height,i.offsetTop),n=i.offsetTop+i.offsetHeight,s=r.scrollTop,l=s+r.clientHeight+i.clientHeight/3;o<s?r.scrollTop=o:n>l&&(r.scrollTop=r.scrollTop+i.clientHeight)},findLeafCol:function(e,t,i,r,o){if(e.children)for(var n=0;n<e.children.length;n++)this.findLeafCol(e.children[n],t,i,r,e);else t.push(e),o?i.push(o.label+"-"+e.label):i.push(e.label),r.push(e.property)},comExport:function(e){for(var t=[],i=[],r=[],o=0;o<this.disCol.length;o++){var n=this.disCol[o];n&&(n.property||n.children)&&n.showFlg&&"0"!=n.showFlg&&this.findLeafCol(n,r,t,i)}var s=this.formatJson(i,e,t),l=[t].concat(s);return this.summaryAdd(l,i.length),{header:t,filterVal:i,merdata:l,title:this.$route.meta.title+(new Date).format("yyyy-MM-dd HH:mm:ss")}},excelExport:function(e){var t=this.comExport(e),r={};if(this.excelFormatter)r=this.excelFormatter(t);else{var o=t.merdata;this.excelPropHeader&&(o=this.formatJson(t.filterVal,o)),r={header:o[0],data:o.slice(1),filename:t.title}}i(40).export_json_to_excel(r)},pdfExport:function(e){var t=this.comExport(e),i=t.header,r=(t.filterVal,t.merdata),o=t.title;this.$refs.pdfshow.genPdf(i,r,o)},summaryAdd:function(e,t){if(void 0!=this.$attrs.showSummary||void 0!=this.$attrs["show-summary"]){for(var i=[],r=0;r<this.disCol.length;r++){var o=this.disCol[r];o&&o.property&&o.showFlg&&i.push(o)}for(var n=new Array(t),s=this.$attrs.summaryMethod||this.$attrs["summary-method"],l=s({columns:i}),a=0;a<n.length;a++)l[a]?n[a]=l[a]:n[a]="";e.push(n)}},formatJson:function(e,t,i){var r=this;if(!t||0==t.length)return[];if(this.excelPropHeader)for(var o in t[0]){var n=!1;for(var s in e)if(e[s]==o){n=!0;break}n||e.push(o)}var l=["_obj","idevVersionUse","_map"];this.noExcelExport&&(l=l.concat(this.noExcelExport));for(var a=0;a<l.length;a++){var d=e.removeone(l[a]);-1!=d&&i.splice(d,1)}return t.map(function(t){return e.map(function(e){try{var i=r.getInputFormat(e);return i?i(t,e):t[e]+""}catch(e){return console.info(e),null}})})}},watch:{rowSelNum:function(e,t){if(e<0){if(0==this.hdResult.rows.length)return this.rowSelNum=-1,!1;this.rowSelNum=0}e>this.hdResult.rows.length-1&&(this.rowSelNum=this.hdResult.rows.length-1),this.hdQuery&&(this.hdQuery.selRow=this.hdResult.rows[this.rowSelNum]),this.setCurrentRow(this.rowSelNum,e-t>0)}}}},function(e,t,i){"use strict";function r(e){for(var t=[],i=e.querySelectorAll("tr"),r=[],o=0;o<i.length;++o){for(var n=[],s=i[o],l=s.querySelectorAll("td"),a=0;a<l.length;++a){var d=l[a],u=d.getAttribute("colspan"),c=d.getAttribute("rowspan"),h=d.innerText;if(""!==h&&h==+h&&(h=+h),r.forEach(function(e){if(o>=e.s.r&&o<=e.e.r&&n.length>=e.s.c&&n.length<=e.e.c)for(var t=0;t<=e.e.c-e.s.c;++t)n.push(null)}),(c||u)&&(c=c||1,u=u||1,r.push({s:{r:o,c:n.length},e:{r:o+c-1,c:n.length+u-1}})),n.push(""!==h?h:null),u)for(var p=0;p<u-1;++p)n.push(null)}t.push(n)}return[t,r]}function o(e,t){return t&&(e+=1462),(Date.parse(e)-new Date(Date.UTC(1899,11,30)))/864e5}function n(e,t){for(var i={},r={s:{c:1e7,r:1e7},e:{c:0,r:0}},n=0;n!=e.length;++n)for(var s=0;s!=e[n].length;++s){r.s.r>n&&(r.s.r=n),r.s.c>s&&(r.s.c=s),r.e.r<n&&(r.e.r=n),r.e.c<s&&(r.e.c=s);var l={v:e[n][s]};if(null!=l.v){var a=f.a.utils.encode_cell({c:s,r:n});"number"==typeof l.v?l.t="n":"boolean"==typeof l.v?l.t="b":l.v instanceof Date?(l.t="n",l.z=f.a.SSF._table[14],l.v=o(l.v)):l.t="s",i[a]=l}}return r.s.c<1e7&&(i["!ref"]=f.a.utils.encode_range(r)),i}function s(){if(!(this instanceof s))return new s;this.SheetNames=[],this.Sheets={}}function l(e){for(var t=new ArrayBuffer(e.length),i=new Uint8Array(t),r=0;r!=e.length;++r)i[r]=255&e.charCodeAt(r);return t}function a(e){var t=document.getElementById(e),i=r(t),o=i[1],a=i[0],d=new s,u=n(a);u["!merges"]=o,d.SheetNames.push("SheetJS"),d.Sheets.SheetJS=u;var c=f.a.write(d,{bookType:"xlsx",bookSST:!1,type:"binary"});Object(h.saveAs)(new Blob([l(c)],{type:"application/octet-stream"}),"test.xlsx")}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.multiHeader,i=void 0===t?[]:t,r=e.header,o=e.data,a=e.filename,d=e.merges,u=void 0===d?[]:d,p=e.autoWidth,g=void 0===p||p,m=e.bookType,_=void 0===m?"xlsx":m;a=a||"excel-list",o=[].concat(c()(o)),o.unshift(r);for(var v=i.length-1;v>-1;v--)o.unshift(i[v]);var b=new s,y=n(o);if(u.length>0&&(y["!merges"]||(y["!merges"]=[]),u.forEach(function(e){y["!merges"].push(f.a.utils.decode_range(e))})),g){for(var w=o.map(function(e){return e.map(function(e){return null==e?{wch:10}:e.toString().charCodeAt(0)>255?{wch:2*e.toString().length}:{wch:e.toString().length}})}),x=w[0],C=1;C<w.length;C++)for(var S=0;S<w[C].length;S++)x[S].wch<w[C][S].wch&&(x[S].wch=w[C][S].wch);y["!cols"]=x}b.SheetNames.push("SheetJS"),b.Sheets.SheetJS=y;var $=f.a.write(b,{bookType:_,bookSST:!1,type:"binary"});Object(h.saveAs)(new Blob([l($)],{type:"application/octet-stream"}),a+"."+_)}Object.defineProperty(t,"__esModule",{value:!0}),t.export_table_to_excel=a,t.export_json_to_excel=d;var u=i(6),c=i.n(u),h=i(41),p=(i.n(h),i(23)),f=i.n(p)},function(e,t){e.exports=require("file-saver")},function(e,t,i){"use strict";function r(e){i(43)}var o=i(16),n=i(47),s=i(0),l=r,a=s(o.a,n.a,!1,l,"data-v-6bc33797",null);t.a=a.exports},function(e,t,i){var r=i(44);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);i(2)("d86d12e2",r,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".pdfshow[data-v-6bc33797] .el-dialog__body{width:100%;height:calc(100% - 55px)}",""])},function(e,t){e.exports=require("jspdf")},function(e,t){e.exports=require("jspdf-autotable")},function(e,t,i){"use strict";var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"pdfshow",attrs:{fullscreen:!0,title:e.gening?"正在生成pdf":"PDF预览",visible:e.visible},on:{"update:visible":function(t){e.visible=t},close:function(t){e.$emit("close")}}},[i("el-row",[i("el-col",{attrs:{span:4}},[i("el-switch",{attrs:{"active-text":e.$t("横向显示"),"inactive-text":e.$t("竖向显示")},on:{change:function(t){e.initPdf()}},model:{value:e.isLandscape,callback:function(t){e.isLandscape=t},expression:"isLandscape"}})],1),e._v(" "),i("el-col",{attrs:{span:4}},[e._v("\n "+e._s(e.$t("字号"))+"\n "),i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:!1,placeholder:e.$t("请输入字号"),size:"mini"},model:{value:e.fontSize,callback:function(t){e.fontSize=e._n(t)},expression:"fontSize"}})],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-pagination",{attrs:{"current-page":e.currentPage,"page-size":e.pageSize,"page-sizes":[100,200,400],total:e.totalSize,layout:"sizes, prev, pager, next"},on:{"update:currentPage":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"current-change":function(t){e.initPdf()},"size-change":function(t){e.initPdf()}}})],1),e._v(" "),i("el-col",{attrs:{span:4}},[i("el-button",{on:{click:function(t){e.refreshGridData()}}},[e._v(e._s(e.$t("刷新")))])],1)],1),e._v(" "),i("el-row",[i("el-checkbox-group",{model:{value:e.pdfExport,callback:function(t){e.pdfExport=t},expression:"pdfExport"}},e._l(e.resultData[0],function(t,r){return i("el-checkbox",{key:r,attrs:{label:r}},[e._v(e._s(t))])}))],1),e._v(" "),i("object",{staticStyle:{width:"100%",height:"calc(100% - 40px)"},attrs:{id:"output",type:"application/pdf"}},[i("p",[e._v("It appears you don't have PDF support in this web browser")])])],1)},o=[],n={render:r,staticRenderFns:o};t.a=n},function(e,t,i){"use strict";t.a={data:function(){return{gridDataRows:[],startIndex:0,scroller:0,trHeight:35.5,minRowNum:0,tmpScrollNum:0}},activated:function(){if(!this.visualScroll)return!1;this.scroller=this.$refs.ingrid.$refs.bodyWrapper.scrollTop},methods:{initVisual:function(){var e=this;if(!this.visualScroll)return!1;this.initTableStyle();var t=this.$refs.ingrid.$refs.bodyWrapper,i=this;t.onscroll=function(r){i.tmpScrollNum++,e.$refs.ingrid.store.states.hoverRow="locked",i.scroller=t.scrollTop,setTimeout(function(){0==--i.tmpScrollNum&&(e.$refs.ingrid.store.states.hoverRow=null)},500)}},initTableStyle:function(){this.$refs.ingrid.$refs.bodyWrapper.querySelector("tbody").style.position="absolute"},initTableHeight:function(){var e=this.hdResult.rows.length*this.trHeight,t=this.$refs.ingrid.$refs.bodyWrapper;t.querySelector(".el-table__body").style.height=e+"px",this.updateGridDataRows(t.scrollTop,t.clientHeight)},updateGridDataRows:function(e,t){t=t>this.minRowNum*this.trHeight?t:this.minRowNum*this.trHeight;var i=Math.ceil(e/this.trHeight);i=i<0?0:i;var r=Math.ceil((e+t)/this.trHeight);r=r>this.hdResult.rows.length?this.hdResult.rows.length:r,this.gridDataRows=this.hdResult.rows.slice(i,r),this.startIndex=i,this.$refs.ingrid.setCurrentRow(this.hdQuery.selRow)},getIndex:function(e){return this.startIndex+e},checkAllChange:function(e){for(var t=0;t<this.hdResult.rows.length;t++)this.$set(this.hdResult.rows[t],"_isCK",e)}},watch:{scroller:function(e,t){if(!this.visualScroll)return!1;var i=this.$refs.ingrid.$refs.bodyWrapper,r=this.$refs.ingrid.$refs.fixedBodyWrapper,o=this.$refs.ingrid.$refs.rightFixedBodyWrapper,n=i.clientHeight;e!=t&&(i.querySelector("tbody").style.transform="translate(0px,"+e+"px)",r&&(r.scrollTop=0),o&&(o.scrollTop=0),this.updateGridDataRows(e,n))},"hdResult.rows":function(){var e=this;if(!this.visualScroll)return!1;this.hdResult.rows.filter(function(e){return!e._isCK}).forEach(function(t){e.$set(t,"_isCk",!1)}),this.initTableHeight()}},computed:{isSubChecked:function(){if(!this.visualScroll)return!1;var e=!1,t=!1;return!(!this.hdResult.rows||0==this.hdResult.rows.length)&&(this.hdResult.rows.forEach(function(i){i._isCK&&(e=!0),i._isCK||(t=!0)}),e&&t)},isAllChecked:function(){if(!this.visualScroll)return!1;var e=!0;return!(!this.hdResult.rows||0==this.hdResult.rows.length)&&(this.hdResult.rows.forEach(function(t){t._isCK||(e=!1)}),e)}}}},function(e,t,i){"use strict";function r(e){i(50)}var o=i(17),n=i(53),s=i(0),l=r,a=s(o.a,n.a,!1,l,"data-v-47c19530",null);t.a=a.exports},function(e,t,i){var r=i(51);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);i(2)("6cf9b2ba",r,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,"",""])},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__.a={methods:{genFormatter:function genFormatter(formatter){var rtn=eval("this."+formatter);return rtn},genRules:function genRules(field){if(field.rules)return eval("this."+field.rules);var require=field.columnRequire?field.columnRequire:"0",rules="";return rules="DROP"==field.columnType||"DATE"==field.columnType||"BOOLEAN"==field.columnType?"this.$r("+require+")":"NUMBER"==field.columnType?"this.$r("+require+", 0, "+this.repeat("9",field.columnLen)+",'number',"+field.formatter+")":"this.$r("+require+", 0, "+field.columnLen+")",eval(rules)},repeat:function(e,t){return new Array(t+1).join(e)}}}},function(e,t,i){"use strict";var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return"BOOLEAN"==e.exFieldRow.columnType?i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{align:"center","input-format":e.$ckFt,input:"el-switch",inputProp:{activeValue:"1",inactiveValue:"0"},label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}}):"DROP"==e.exFieldRow.columnType?i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{align:"center","input-format":function(t){return e.genCode(t,e.exFieldRow.formatter)},input:"HdDrop",inputProp:{field:e.exFieldRow.formatter},label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}}):"DATE"==e.exFieldRow.columnType?i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{inputProp:e.genFormatter(e.exFieldRow.formatter),align:"center",input:"el-date-picker",label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}}):"NUMBER"==e.exFieldRow.columnType?i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{align:"center",input:"HdNum",label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}}):i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{align:"center",label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}})},o=[],n={render:r,staticRenderFns:o};t.a=n},function(e,t,i){"use strict";var r=i(22),o=i(55),n=i(0),s=n(r.a,o.a,!1,null,null,null);t.a=s.exports},function(e,t,i){"use strict";var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"menu"},[e._t("rightMenu",[i("el-button-group",[i("hd-button",{staticClass:"rightmenu_button",attrs:{vid:"doAdd"},on:{click:e.doAdd}},[e._v("增加\n ")]),e._v(" "),i("hd-button",{staticClass:"rightmenu_button",attrs:{vid:"doUpdate"},on:{click:e.doUpdate}},[e._v("修改\n ")]),e._v(" "),i("hd-button",{staticClass:"rightmenu_button",attrs:{vid:"doRemove"},on:{click:e.doRemove}},[e._v("删除\n ")]),e._v(" "),i("hd-button",{staticClass:"rightmenu_button",attrs:{vid:"doCopy"},on:{click:e.doCopy}},[e._v("复制\n ")])],1),e._v(" "),this.$slots.rightMenuExt?i("div",{staticStyle:{border:"#555 1px solid"}}):e._e(),e._v(" "),i("el-button-group",[e._t("rightMenuExt")],2)])],2)},o=[],n={render:r,staticRenderFns:o};t.a=n},function(e,t,i){"use strict";var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"grid",staticClass:"hdgrid",style:{width:"100%",height:e.height}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.queryShow,expression:"queryShow"}]},[e._t("query")],2),e._v(" "),e.noSets?e._e():i("div",{staticStyle:{height:"0px"}},[i("el-dropdown",{staticStyle:{float:"right",height:"0",width:"20px",position:"relative",right:"0px","text-align":"center","z-index":"100",cursor:"pointer","font-size":"25px"},on:{command:e.extSets}},[i("span",{staticClass:"el-dropdown-link"},[i("i",{staticClass:"fa fa-cogs",style:{"font-size":"13px",color:e.isGridCustom?"red !important":""}})]),e._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{command:"gridSets"}},[e._v(e._s(e.$t("自定义展示")))]),e._v(" "),i("el-dropdown-item",{attrs:{command:"pageExcel"}},[e._v(e._s(e.$t("导出当页excel"))+"\n ")]),e._v(" "),i("el-dropdown-item",{attrs:{disabled:e.excelAllExporting,command:"allExcel"}},[e._v("\n "+e._s(e.excelAllExporting?e.$t("正在导出"):e.$t("导出全部excel"))+"\n ")]),e._v(" "),i("el-dropdown-item",{attrs:{disabled:e.pdfAllExporting,command:"allPdf"}},[e._v("\n "+e._s(e.pdfAllExporting?e.$t("正在生成"):e.$t("pdf打印"))+"\n ")]),e._v(" "),i("el-dropdown-item",{attrs:{command:"queryToggle"}},[e._v(e._s(e.queryShow?e.$t("隐藏查询区"):e.$t("显示查询区")))]),e._v(" "),e.exField.open?i("el-dropdown-item",{attrs:{command:"exFieldSets"}},[e._v(e._s(e.$t("添加扩展字段")))]):e._e(),e._v(" "),e._t("extSets")],2)],1)],1),e._v(" "),e.gridCanReload?i("el-table",e._g(e._b({ref:"ingrid",attrs:{data:e.hdResultComRows,"default-sort":e.defaultSort,"row-class-name":e.rowClassName,stripe:void 0==e.$attrs.stripe||e.$attrs.stripe,border:"","element-loading-text":"加载中...",height:"100%","highlight-current-row":""},on:{"row-click":e.myrowClick,"row-dblclick":e.myrowDblClick,"row-contextmenu":e.myrowContextmenu,"selection-change":e.myselectionChange,"sort-change":e.dodefaultSort,"filter-change":e.filterChange}},"el-table",e.$attrs,!1),e.$listeners),[e.visualScroll?[e.ckHide?e._e():i("ex-table-column",{attrs:{showOverflowTooltip:!0,align:"center","class-name":"checkBox",noEdit:"",noSlot:"",width:"30"},scopedSlots:e._u([{key:"header",fn:function(t){return[i("el-checkbox",{attrs:{indeterminate:e.isSubChecked,value:e.isAllChecked},on:{change:e.checkAllChange}})]}},{key:"default",fn:function(t){return[i("el-checkbox",{model:{value:t.row._isCK,callback:function(i){e.$set(t.row,"_isCK",i)},expression:"scope.row._isCK"}})]}}])}),e._v(" "),e.indexHide?e._e():i("ex-table-column",{attrs:{index:e.getIndex,showOverflowTooltip:!0,align:"center",noEdit:"",noSlot:"",type:"index",width:"40"},scopedSlots:e._u([{key:"header",fn:function(t){return[i("span",[e._v("#")])]}},{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+e.startIndex+1)+"\n ")]}}])})]:[e.ckHide?e._e():i("ExTableColumn",{attrs:{showOverflowTooltip:!1,align:"center","class-name":"backFF",noEdit:"",noSlot:"",type:"selection",width:"30"}}),e._v(" "),e.indexHide?e._e():i("ex-table-column",{attrs:{showOverflowTooltip:!1,align:"center",noEdit:"",noSlot:"",type:"index",width:"40"},scopedSlots:e._u([{key:"header",fn:function(t){return[i("span",[e._v("#")])]}}])})],e._v(" "),e._t("default"),e._v(" "),e.exField.gridCode?[e._l(e.exFieldRows,function(e){return[i("ExtendColumn",{attrs:{exFieldRow:e}})]})]:e._e(),e._v(" "),e.recHide?e._e():[i("el-table-column",{attrs:{align:"left","header-align":"center",label:"创建人",noEdit:"",prop:"recNam",sortable:"",width:"auto"}}),e._v(" "),i("el-table-column",{attrs:{inputProp:e.$date,align:"center",input:"el-date-picker",label:"创建时间",noEdit:"",prop:"recTim",sortable:"",width:"135px"}}),e._v(" "),i("el-table-column",{attrs:{align:"left","header-align":"center",label:"更新人",noEdit:"",prop:"updNam",sortable:"",width:"auto"}}),e._v(" "),i("el-table-column",{attrs:{inputProp:e.$date,align:"center",input:"el-date-picker",label:"更新时间",noEdit:"",prop:"updTim",sortable:"",width:"135px"}})]],2):e._e(),e._v(" "),!e.pageHide||e.showBtnTool?i("div",{ref:"pagecon",staticClass:"pagination-container",staticStyle:{height:"26px",overflow:"hidden"}},[e.showBtnTool?i("div",{staticStyle:{float:"left"}},[e._t("btnTool",[e.addHide?e._e():i("hd-btn",{staticClass:"hdBtnTool",attrs:{icon:"el-icon-plus",hint:"增加",vid:"doAdd",keyType:"add"},on:{click:e.doAdd}}),e._v(" "),e.delHide?e._e():i("hd-btn",{staticClass:"hdBtnTool",attrs:{icon:"el-icon-minus",hint:"删除",keyType:"del"},on:{click:e.doRemove}}),e._v(" "),e.saveHide?e._e():i("hd-btn",{staticClass:"hdBtnTool",attrs:{icon:"el-icon-check",hint:"保存",keyType:"save"},on:{click:e.doSave}})])],2):e._e(),e._v(" "),e.pageHide?e._e():i("el-pagination",{staticStyle:{float:"right"},attrs:{"current-page":e.hdQuery.page,"page-size":e.hdQuery.rows,"page-sizes":e.pageSizeArray,total:e.hdResult.total,layout:" total, slot, prev, pager, next,sizes",small:""},on:{"update:currentPage":function(t){e.$set(e.hdQuery,"page",t)},"current-change":e.hdQuery.doCurPageChange,"size-change":e.rowSizeChg}})],1):e._e(),e._v(" "),e.gridShowIs?i("GridShow",{ref:"gridShow",on:{"save-ok":function(t){e.gridShow()}}}):e._e(),e._v(" "),e.exField.open&&e.exFieldShowIs?i("GridExField",{ref:"exFieldShow",attrs:{columnList:e.exField.columnList,gridCode:e.exField.gridCode,table:e.exField.table},on:{"save-ok":function(t){e.exFieldShow()}}}):e._e(),e._v(" "),e.pdfShowIs?i("PdfShow",{ref:"pdfshow",attrs:{gening:e.pdfAllExporting},on:{close:function(t){e.pdfShowIs=!1}}}):e._e(),e._v(" "),i("hd-right-menu",{directives:[{name:"show",rawName:"v-show",value:e.rightMenuVisable,expression:"rightMenuVisable"}],ref:"rightMenu",on:{"do-add":e.doAdd,"do-update":e.doUpdateOne,"do-remove":e.doRemoveOne,"do-copy":e.doCopyOne}},[i("template",{slot:"rightMenu"},[e._t("rightMenu")],2),e._v(" "),i("template",{slot:"rightMenuExt"},[e._t("rightMenuExt")],2)],2)],1)},o=[],n={render:r,staticRenderFns:o};t.a=n},,,function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__=__webpack_require__(9),__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_assign__=__webpack_require__(8),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_assign___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_assign__),__WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_promise__=__webpack_require__(82),__WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_promise___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_promise__),__WEBPACK_IMPORTED_MODULE_3__HdComQuery__=__webpack_require__(83),__WEBPACK_IMPORTED_MODULE_4__ImportExcel__=__webpack_require__(93),__WEBPACK_IMPORTED_MODULE_5__GridChart__=__webpack_require__(97),__WEBPACK_IMPORTED_MODULE_6__HdGrid__=__webpack_require__(24);__webpack_exports__.a={name:"HdComGrid",components:{HdComQuery:__WEBPACK_IMPORTED_MODULE_3__HdComQuery__.a,ImportExcel:__WEBPACK_IMPORTED_MODULE_4__ImportExcel__.a,GridChart:__WEBPACK_IMPORTED_MODULE_5__GridChart__.a,HdGrid:__WEBPACK_IMPORTED_MODULE_6__HdGrid__.default},data:function(){return{hdResult:{rows:[],total:0},listLoading:!1,visible:!1,allColumn:[],columnFlowThis:{},comQueryIs:!1,imExcelIs:!1,gridChartIs:!1,saveIng:!1,autoFilterOpen:!1}},inheritAttrs:!1,props:{imExcel:Boolean,hdQuery:{type:Object,default:function(){return new HdQuery(this)}},notInit:Boolean,validate:{type:Object,default:function(){return{}}},url:String,findUrl:{type:String,default:function(){return this.url+"/find"}},findoneUrl:{type:String,default:function(){return this.url+"/findone"}},saveoneUrl:{type:String,default:function(){return this.url+"/saveone"}},saveAllUrl:{type:String,default:function(){return this.url+"/saveAll"}},removeUrl:{type:String,default:function(){return this.url+"/remove"}},removeAllUrl:{type:String,default:function(){return this.url+"/removeAll"}},imExcelUrl:{type:String,default:function(){return this.url+"/imExcel"}},genChart:Boolean,chartUrl:{type:String,default:function(){return this.url+"/genChart"}},noCopy:[Array,String],addWay:Function,saveWay:Function,autoFilterVisable:{type:Boolean,default:!1},customeTreeVisable:Boolean,isNotDbEdit:{type:Boolean,default:!1},noAdQuery:{type:Boolean,default:!1}},mounted:function(){this.hdQuery.setThis(this),this.notInit||this.doQuery()},methods:{extSets:function(e){var t=this;"comQuery"==e?(this.comQueryIs=!0,this.$nextTick(function(){t.$refs.comQuery.show()})):"flowHide"==e?this.columnFlowThis.isShow=!this.columnFlowThis.isShow:"imExcel"==e?(this.imExcelIs=!0,this.$nextTick(function(){t.$refs.imExcel.show()})):"gridChart"==e?(this.gridChartIs=!0,this.$nextTick(function(){t.$refs.gridChart.show()})):"autoFilter"==e?this.autoFilterOpen=!this.autoFilterOpen:this.$emit("extSets",e)},doQuery:function(e){var t=this;return e?(this.hdResult=e,!0):(this.hdQuery.selRow=null,this.hdQuery._noLoadingOnce?this.hdQuery._noLoadingOnce=!1:this.listLoading=!0,new __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_promise___default.a(function(e,i){t.$nextTick(function(){t.$http.post(t.findUrl,t.hdQuery).then(function(i){t.listLoading=!1,t.hdResult=i.data,e(i.data)}).catch(function(e){t.listLoading=!1})})}))},doAllExcel:function(e){var t=new HdQuery(this);__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_assign___default()(t,this.hdQuery),t.rows=null,e(this.$http.post(this.findUrl,t))},doEdit:function(e,t){var i=this;this.$nextTick(function(){e?(i.$set(e,"isEdit",!0),e._oriData={},e._oriData=__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_assign___default()({},e),i.doVaild(e)):i.$http.post(i.findoneUrl,i.hdQuery).then(function(e){i.$set(e.data,"isEdit",!0),i.$set(e.data,"_add",(new Date).getTime());var r=__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_assign___default()(e.data,t);i.hdResult.rows.unshift(r),i.$refs.hdgrid.$refs.ingrid.$refs.bodyWrapper.scrollTop=0,i.doVaild(r)}),i.resetCurHightRow()})},doCancel:function(e,t){if(this.clearValiHint(e),e._add)for(var i=0;i<this.hdResult.rows.length;i++)if(this.hdResult.rows[i]._add==e._add)return this.hdResult.rows.splice(i,1),this.resetCurHightRow(),!1;__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_assign___default()(e,e._oriData),this.$set(e,"isEdit",!1),this.resetCurHightRow()},doRemove:function(e){var t=this,i=new __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_promise___default.a(function(i,r){t.$confirm(t.$t("确定删除本数据?"),t.$t("提示"),{}).then(function(){t.$http.post(t.removeUrl,e).then(function(o){var n=o.data;if(t.$message({type:"-1"==n.code?"error":"success",showClose:!0,duration:"-1"==n.code?6e3:1500,message:n.message}),"-1"==n.code)return void r(n);i(n),t.hdResult.rows.remove(e)})}).catch(function(e){})});return i.catch(function(e){}),this.resetCurHightRow(),i},doRemoveAll:function(){var e=this,t=this.$refs.hdgrid.getCkRows();if(!t||0==t.length)return this.$message({type:"error",message:this.$t("请选择数据"),showClose:!0,duration:1500}),!1;var i=new __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_promise___default.a(function(i,r){e.$confirm(e.$t("确定删除选中数据?"),e.$t("提示"),{}).then(function(){e.$http.post(e.removeAllUrl,t).then(function(o){var n=o.data;if(e.$message({type:"-1"===n.code?"error":"success",showClose:!0,duration:"-1"==n.code?6e3:1500,message:n.message}),"-1"===n.code)return void r(n);i(n),e.hdResult.rows.remove(t)})}).catch(function(){})});return i.catch(function(e){}),this.resetCurHightRow(),i},saveCheck:function(){return new schema(this.validate)},doSave:function(e){var t=this;this.clearValiHint(e);var i=new __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_promise___default.a(function(i,r){t.saveCheck().validate(e,function(o,n){o?(o.forEach(function(i,r){console.info(i.field+"--"+i.message),t.$set(e,"_err_"+i.field,i.message)}),t.$message({type:"error",message:t.$t("填写有误"),showClose:!0,duration:1500})):t.$nextTick(function(){if(t.saveIng)return r(!1),!1;t.saveIng=!0,t.$http.post(t.saveoneUrl,e).then(function(o){t.saveIng=!1;var n=o.data;if(t.$message({type:"-1"==n.code?"error":"success",message:n.message,showClose:!0,duration:"-1"==n.code?6e3:1500}),"-1"==n.code)return void r(n);i(n),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_assign___default()(e,n.data),e._add=null,t.$set(e,"isEdit",!1)}).catch(function(e){t.saveIng=!1})})})});return i.catch(function(e){}),this.resetCurHightRow(),i},clearValiHint:function(e){for(var t in e)0==t.indexOf("_err_")&&(e[t]="")},doCopy:function(){var e=this.$refs.hdgrid.getCkRows();if(!e||0==e.length)return this.$message({type:"error",message:this.$t("请勾选数据")}),!1;for(var t=0;t<e.length;t++)this.doCopyOne(e[t],t);this.resetCurHightRow()},doCopyOne:function doCopyOne(row,i){var nowTime=(new Date).getTime(),one=JSON.parse(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default()(row));one._add=nowTime+i;var noCpLs=["recNam","recTim","updNam","updNam","updTim","idevVersionUse"];if(this.noCopy){"string"==typeof this.noCopy?noCpLs.push(this.noCopy):noCpLs=noCpLs.concat(this.noCopy);for(var j=0;j<noCpLs.length;j++)eval("one."+noCpLs[j]+" = null")}this.$set(one,"isEdit",!0),this.$set(one,"_isCK",!1),this.$set(row,"_isCK",!1),this.doVaild(one),this.hdResult.rows.unshift(one)},doSaveAll:function(){var e=this,t=new __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_promise___default.a(function(t,i){var r=e.hdResult.rows.filter(function(t){return e.clearValiHint(t),t.isEdit});if(0==r.length)return e.$message({type:"error",message:e.$t("无数据保存"),showClose:!0,duration:1500}),!1;e.$nextTick(function(){e.checkAllRow(r,0,!1,e.callSaveAll,{resolve:t,reject:i})})});return t.catch(function(e){}),t},checkAllRow:function(e,t,i,r,o){var n=this,s=o.resolve,l=o.reject;if(e.length==t)return r(i,{resolve:s,reject:l}),!0;this.saveCheck().validate(e[t],function(o,a){o&&(o.forEach(function(i,r){n.$set(e[t],"_err_"+i.field,i.message)}),i=!0),n.checkAllRow(e,++t,i,r,{resolve:s,reject:l})})},callSaveAll:function(e,t){var i=this,r=t.resolve,o=t.reject;if(e)this.$message({type:"error",message:this.$t("填写有误"),showClose:!0,duration:1500});else{var n=this.hdResult.rows.filter(function(e){return e.isEdit});this.$http.post(this.saveAllUrl,n).then(function(e){var t=e.data;if(i.$message({type:"-1"==t.code?"error":"success",message:t.message,showClose:!0,duration:"-1"==t.code?6e3:1500}),"-1"==t.code)return void o(t);if(t.data)for(var s=0;s<t.data.length;s++){var l=t.data[s],a=n[s];__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_assign___default()(a,l),i.$set(a,"isEdit",!1),a._add=null}r(t)})}},resetCurHightRow:function(){var e=this;if(this.$refs.hdgrid.$refs.ingrid.setCurrentRow(),this.hdQuery&&this.hdQuery.selRow)return setTimeout(function(){e.$refs.hdgrid.$refs.ingrid.setCurrentRow(e.hdQuery.selRow)},300),!0},addHotKey:function(){this.$refs.hdgrid.addHotKey()},removeHotKey:function(){this.$refs.hdgrid.removeHotKey()},doImportExcel:function(e){var t=this;if(!e||e.results.length<=0)return this.$message({type:"error",message:this.$t("Excel模板解析错误"),showClose:!0,duration:1500}),!1;var i=e.results,r=new __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_promise___default.a(function(e,r){t.$confirm(t.$t("本次上传数据为")+i.length+t.$t("行,是否继续?"),t.$t("提示"),{}).then(function(){t.$http.post(t.imExcelUrl,i).then(function(i){var o=i.data;if(t.$message({type:"-1"==o.code?"error":"success",showClose:!0,duration:"-1"==o.code?6e3:1500,message:o.message}),"-1"==o.code)return void r(o);t.imExcelIs=!1,e(o),t.doQuery()})}).catch(function(e){})});return r.catch(function(e){}),this.resetCurHightRow(),r},getCkRows:function(){return this.$refs.hdgrid.getCkRows()},getSelRow:function(){return this.hdQuery.selRow},beforeAdd:function(){},beforeSave:function(){},operaData:function(e,t){"doAdd"==e?this.addWay?this.addWay():this.doEdit(""):"doRemove"==e?this.doRemoveAll():"doSave"==e?this.saveWay?this.saveWay():this.doSaveAll():"doCopy"==e?this.doCopy():"doUpdateOne"==e?this.isNotDbEdit||this.doEdit(t):"doRemoveOne"==e?this.doRemove(t):"doCopyOne"==e&&(this.doCopyOne(t,0),this.resetCurHightRow())},doVaild:function(e){var t=this;this.saveCheck().validate(e,function(i,r){i&&i.forEach(function(i,r){console.info(i.field+"--"+i.message),t.$set(e,"_err_"+i.field,i.message)})})}},watch:{}}},function(e,t,i){"use strict";var r=i(84),o=i(88);t.a={name:"HdComQuery",components:{HdComSortDetail:o.a,HdComQueryDetail:r.a},data:function(){return{isFirst:!0,visible:!1,proSaveVisible:!1,leftLs:[],rightLs:[],sortLs:[],selQueryId:"",proName:"",proLs:[],keepQueryUse:!1}},inheritAttrs:!1,props:{hdQuery:Object,allColumn:Array},mounted:function(){this.doQuery()},methods:{doSave:function(){var e=this,t={};t.name=this.proName,t.menuId=this.$route.name,t.gridId=this.getHdComGrid().$refs.hdgrid.gridId;var i={vueleftQueryLs:[],vuerightQueryLs:[],sorts:{params:this.sortLs}};this.addToHdQuery(i.vueleftQueryLs,this.leftLs),i.vueGroupRel="or",this.addToHdQuery(i.vuerightQueryLs,this.rightLs),t.hdQuery=i,this.$http.post("/webresources/login/com/ComQuery/saveone/",t).then(function(t){var i=t.data;e.$message({type:"-1"==i.code?"error":"success",showClose:!0,duration:1500,message:i.message}),e.proLs.push(i.data),e.selQueryId=i.data.queryId,e.proSaveVisible=!1})},remove:function(){var e=this;if(!this.selQueryId)return this.$message({type:"error",message:this.$t("请先选择要删除的方案"),showClose:!0,duration:1500}),!1;var t={};t.queryId=this.selQueryId,this.$http.post("/webresources/login/com/ComQuery/remove/",t).then(function(t){for(var i=t.data,r=0;r<e.proLs.length;r++)if(e.proLs[r].queryId==e.selQueryId){e.proLs.splice(r,1),e.selQueryId=null;break}e.$message({type:"-1"==i.code?"error":"success",showClose:!0,duration:1500,message:i.message})})},doQuery:function(){this.leftLs.push({selCol:{},rel:"="}),this.leftLs.push({selCol:{},rel:"="}),this.leftLs.push({selCol:{},rel:"="}),this.rightLs.push({selCol:{},rel:"="}),this.rightLs.push({selCol:{},rel:"="}),this.rightLs.push({selCol:{},rel:"="})},add:function(){this.leftLs.push({selCol:{},rel:"="}),this.rightLs.push({selCol:{},rel:"="})},show:function(){var e=this;this.visible=!0;var t={query:{}};t.query.menuId=this.$route.name,t.query.gridId=this.getHdComGrid().$refs.hdgrid.gridId,this.isFirst&&this.$http.post("/webresources/login/com/ComQuery/find/",t).then(function(t){e.proLs=t.data}),this.isFirst=!1},doCloseAndClear:function(){this.visible=!1},doCloseAndKeep:function(){this.keepQueryUse=!0,this.visible=!1},change:function(e){var t=this;this.$http.post("/webresources/login/com/ComQuery/findDetail?queryId="+e).then(function(e){var i=e.data;t.leftLs=t.listInit(i[0]),t.rightLs=t.listInit(i[1])})},listInit:function(e){for(var t=0;t<e.length;t++)for(var i=e[t],r=0;r<this.allColumn.length;r++){var o=this.allColumn[r];if(o.$attrs&&i.key==o.$attrs.prop){i.selCol=o;break}}return e},doQueryRs:function(){this.hdQuery.vueleftQueryLs=[],this.hdQuery.vuerightQueryLs=[],this.addToHdQuery(this.hdQuery.vueleftQueryLs,this.leftLs),this.hdQuery.vueGroupRel="or",this.addToHdQuery(this.hdQuery.vuerightQueryLs,this.rightLs),this.hdQuery.sorts={params:this.sortLs},this.hdQuery.sort="",this.getHdComGrid().doQuery()},addToHdQuery:function(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.key&&e.push({key:r.key,rel:r.rel,value:r.value,type:r.type})}},getHdComGrid:function(){for(var e=this.$parent;e;){if("HdComGrid"==e.$options.name)return e;e=e.$parent}return null}},watch:{visible:function(e){e||(this.keepQueryUse?this.keepQueryUse=!1:(this.hdQuery.vueleftQueryLs=[],this.hdQuery.vuerightQueryLs=[],this.hdQuery.vueGroupRel=null))}}}},function(e,t,i){"use strict";var r=i(8),o=i.n(r);t.a={data:function(){return{}},inheritAttrs:!1,props:{allColumn:Array,list:Array,title:String},mounted:function(){},methods:{doCopy:function(e,t){this.list.splice(t,0,o()({},e))},doRemove:function(e){this.list.splice(e,1)},change:function(e,t){return e?(t.selCol=e,t.key=e.$attrs.prop,!!t.selCol.input&&(t.type="","string"==typeof e.input&&((e.input.indexOf("date")>=0||e.input.indexOf("Date")>=0)&&("date"==e.inputProp.type&&(t.type="date"),"datetime"==e.inputProp.type&&(t.type="datetime")),void((e.input.indexOf("num")>=0||e.input.indexOf("Num")>=0)&&(t.type="number"))))):(t.key="",!1)}}}},function(e,t,i){"use strict";t.a={name:"HdComSortDetail",data:function(){return{inputVisible:!1,inputValue:""}},inheritAttrs:!1,props:{allColumn:Array,list:Array,title:String},mounted:function(){},methods:{handleClose:function(e){this.list.splice(this.list.indexOf(e),1)},showInput:function(){var e=this;this.inputVisible=!0,this.$nextTick(function(t){e.$refs.saveTagInput.$refs.input.focus()})},change:function(e){var t=this;console.log("inputValue",e);var i=this.inputValue;if(i){var r=this.genItem(i);this.list.forEach(function(e,i){e.sortProperty==r.sortProperty&&t.list.splice(i,1)}),this.list.push(r)}console.log("list",this.list),this.inputVisible=!1,this.inputValue=""},genItem:function(e){return{sortProperty:e[0],sortType:e[1],alias:"a",text:this.allColumn.find(function(t){return t.$attrs.prop==e[0]}).$attrs.label+"/"+("ASC"==e[1]?"升序":"降序")}}},computed:{sortOption:function(){return this.allColumn.map(function(e){return{value:e.$attrs.prop,label:e.$attrs.label,children:[{value:"ASC",label:"升序"},{value:"DESC",label:"降序"}]}})}}}},function(e,t,i){"use strict";var r=i(23),o=i.n(r);t.a={data:function(){return{loading:!1,excelData:{header:null,results:null},visible:!1,allSheet:[],selSheet:"",workbook:null,sheetVisible:!1}},methods:{show:function(){this.visible=!0},generateDate:function(e){var t=e.header,i=e.results;this.excelData.header=t,this.excelData.results=i,this.$emit("on-selected-file",this.excelData)},handleDrop:function(e){e.stopPropagation(),e.preventDefault();var t=e.dataTransfer.files;if(1!==t.length)return void this.$message.error(this.$t("只支持单文件!"));var i=t[0];this.readerData(i),e.stopPropagation(),e.preventDefault()},handleDragover:function(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},handleUpload:function(){document.getElementById("excel-upload-input").click()},handkeFileChange:function(e){var t=e.target.files,i=t[0];i&&(this.readerData(i),this.$refs["excel-upload-input"].value=null)},readerData:function(e){var t=this,i=new FileReader;i.onload=function(e){var i=e.target.result,r=t.fixdata(i);t.workbook=o.a.read(btoa(r),{type:"base64"}),t.allSheet=t.workbook.SheetNames,t.selSheet=t.workbook.SheetNames[0],1==t.allSheet.length?t.sheetSure():t.sheetVisible=!0},i.readAsArrayBuffer(e)},sheetSure:function(){var e=this.workbook.Sheets[this.selSheet],t=this.get_header_row(e),i=o.a.utils.sheet_to_json(e);this.generateDate({header:t,results:i})},fixdata:function(e){for(var t="",i=0,r=10240;i<e.byteLength/r;++i)t+=String.fromCharCode.apply(null,new Uint8Array(e.slice(i*r,i*r+r)));return t+=String.fromCharCode.apply(null,new Uint8Array(e.slice(i*r)))},get_header_row:function(e){var t=[],i=o.a.utils.decode_range(e["!ref"]),r=void 0,n=i.s.r;for(r=i.s.c;r<=i.e.c;++r){var s=e[o.a.utils.encode_cell({c:r,r:n})],l="UNKNOWN "+r;s&&s.t&&(l=o.a.utils.format_cell(s)),t.push(l)}return t}}}},function(e,t,i){"use strict";var r=i(8),o=i.n(r),n=i(100);t.a={components:{HdDrop:n.a},name:"GridChart",props:["allColumn","url","hdQuery"],data:function(){return{visible:!1}},mounted:function(){},methods:{show:function(){this.visible=!0,this.genDrop()},genDrop:function(){for(var e=[],t=[{name:this.$t("只统计数量"),code:"_chartNumOnly"}],i=0;i<this.allColumn.length;i++){var r=this.allColumn[i],o={name:r.$attrs.label,code:r.$attrs.prop};e.push(o),void 0!=r.$attrs.chartNum&&t.push(o)}this.$nextTick(function(){this.$refs.labelDrop.options=e,this.$refs.labelDrop.backUpArr=e,this.$refs.valDrop.options=t,this.$refs.valDrop.backUpArr=t})},doQuery:function(){var e=this;if(!this.hdQuery.query._chartLabel||!this.hdQuery.query._chartValue)return this.$message({type:"error",showClose:!0,duration:1500,message:"请选择统计的标签和值"}),!1;var t=new HdQuery(this);o()(t,this.hdQuery),t.rows=null,t.sort=null,this.$http.post(this.url,t).then(function(t){for(var i=[],r=[],o=t.data,n=0;n<o.length;n++)i.push(o[n].name),r.push(o[n].value);e.initChart(i,r),e.initPip(i,o),e.initBar(i,r),e.initCircle(i,o)})},initChart:function(e,t){var i=echarts.init(this.$refs.mychart),r={xAxis:{type:"category",data:e},yAxis:{type:"value"},series:[{data:t,type:"line"}]};i.setOption(r)},initPip:function(e,t){var i=echarts.init(this.$refs.mychart2),r={legend:{bottom:0,data:e},series:[{type:"pie",selectedMode:"single",data:t}]};i.setOption(r)},initBar:function(e,t){var i=echarts.init(this.$refs.mychart3),r={xAxis:{type:"category",data:e},yAxis:{type:"value"},series:[{data:t,type:"bar"}]};i.setOption(r)},initCircle:function(e,t){var i=echarts.init(this.$refs.mychart4),r={tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},legend:{orient:"vertical",x:"left",data:e},series:[{type:"pie",radius:["50%","70%"],avoidLabelOverlap:!1,label:{normal:{show:!1,position:"center"},emphasis:{show:!0,textStyle:{fontSize:"30",fontWeight:"bold"}}},labelLine:{normal:{show:!1}},data:t}]};i.setOption(r)}}}},function(e,t,i){"use strict";t.a={name:"HdDrop",data:function(){return{options:[],backUpArr:[]}},props:{value:String,field:String,placeholder:String,name:String,url:String,txtVal:String,codeIn:String,clearable:{type:Boolean,default:!0}},inheritAttrs:!1,mounted:function(){(this.url||this.field)&&this.doQuery()},methods:{doQuery:function(){var e=this,t="";t=this.url?this.url:"/webresources/login/privilege/SysCode/findAll?fieldCod="+this.field,this.$http.get(t).then(function(t){e.options=t.data,e.codeIn&&(e.options=e.options.filter(function(t){return e.codeIn.find(function(e){return e==t.code})})),e.backUpArr=e.options})},change:function(e){this.upName(e)},visibleChange:function(e){e||(this.options=this.backUpArr)},filterMe:function(e){this.options=e?this.backUpArr.filter(function(t){if(t.code.indexOf(e)>=0||t.name.indexOf(e)>=0)return!0}):this.backUpArr},upName:function(e){e||this.$emit("update:name",null);for(var t=0;t<this.options.length;t++)if(this.options[t].code==e){var i=this.options[t];return this.$emit("update:name",i.name),this.$emit("update:txtVal",i.name),!0}}},watch:{url:function(){this.doQuery()},field:function(){this.doQuery()},codeIn:{handler:function(e,t){for(var i=0;i<e.length;i++)if(e[i]!=t[i])return this.doQuery(),!0},deep:!0}},computed:{selVal:{get:function(){return this.value?this.value:""},set:function(e){this.$emit("input",e)}}}}},,,,,,,,,,,,,,,,function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(59),o=i(103),n=i(0),s=n(r.a,o.a,!1,null,null,null);t.default=s.exports},function(e,t){e.exports=require("babel-runtime/core-js/promise")},function(e,t,i){"use strict";var r=i(60),o=i(92),n=i(0),s=n(r.a,o.a,!1,null,null,null);t.a=s.exports},function(e,t,i){"use strict";function r(e){i(85)}var o=i(61),n=i(87),s=i(0),l=r,a=s(o.a,n.a,!1,l,null,null);t.a=a.exports},function(e,t,i){var r=i(86);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);i(2)("7550fd4b",r,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".gridShow .el-table{height:100%;width:100%}.gridShow .el-table .el-table__body-wrapper{width:100%}.gridShow .el-table .el-table__fixed-header-wrapper th,.gridShow .el-table .el-table__header-wrapper th{background-color:#f6f6f6}.gridShow .el-table td,.gridShow .el-table th{padding:1px 0}.gridShow .el-table .cell,.gridShow .el-table .el-table--border td:first-child .cell,.gridShow .el-table .el-table--border th:first-child .cell,.gridShow .el-table .el-table th div{padding:1.5px 1px 1.5px 5px!important}.gridShow .el-table .el-table__empty-block{position:static;text-align:center;width:100%;height:80%}.gridShow .el-table .el-table__body{margin-bottom:10px}.gridShow .el-table .el-table__body-wrapper{height:100%;overflow-y:auto}.gridShow .el-table .el-input__inner{height:27px;margin-bottom:0}.gridShow .el-table .el-form-item__content,.gridShow .el-table .el-form-item__label,.gridShow .el-table .el-input,.gridShow .el-table .el-input__icon{line-height:30px}.gridShow .el-table .el-input__inner{padding:5px}.gridShow .el-table .el-input--prefix .el-input__inner{padding-left:30px}",""])},function(e,t,i){"use strict";var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",[i("el-main",{staticClass:"gridShow",attrs:{title:e.title}},[i("el-table",{attrs:{data:e.list,"row-key":"property"}},[i("el-table-column",{attrs:{align:"center",label:"条件",width:"120px",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:e.$t("请选择"),"value-key":"$attrs.prop"},on:{change:function(i){return e.change(i,t.row)}},model:{value:t.row.selCol,callback:function(i){e.$set(t.row,"selCol",i)},expression:"scope.row.selCol"}},e._l(e.allColumn,function(e){return i("el-option",{key:e.$attrs.prop,attrs:{label:e.$attrs.label,value:e}})}))]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"关系",prop:"width",width:"80px",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:e.$t("请选择")},model:{value:t.row.rel,callback:function(i){e.$set(t.row,"rel",i)},expression:"scope.row.rel"}},[i("el-option",{attrs:{label:"=",value:"="}}),e._v(" "),i("el-option",{attrs:{label:e.$t("包含"),value:"%like%"}}),e._v(" "),i("el-option",{attrs:{label:">=",value:">="}}),e._v(" "),i("el-option",{attrs:{label:"<=",value:"<="}}),e._v(" "),i("el-option",{attrs:{label:e.$t("非空"),value:"not null"}}),e._v(" "),i("el-option",{attrs:{label:e.$t("为空"),value:"is null"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"值",noQuery:"",width:"160px"},scopedSlots:e._u([{key:"default",fn:function(t){return[i(t.row.selCol.input?t.row.selCol.input:"ElInput",e._b({tag:"component",staticStyle:{width:"100%"},attrs:{idVal:t.row.value,txtVal:t.row.showName},on:{"update:idVal":function(i){e.$set(t.row,"value",i)},"update:txtVal":function(i){e.$set(t.row,"showName",i)}},model:{value:t.row.value,callback:function(i){e.$set(t.row,"value",i)},expression:"scope.row.value"}},"component",t.row.selCol.inputProp,!1))]}}])}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("hd-btn",{attrs:{icon:"el-icon-circle-plus-outline",hint:"复制"},on:{click:function(i){i.stopPropagation(),e.doCopy(t.row,t.index)}}}),e._v(" "),i("hd-btn",{attrs:{icon:"el-icon-delete",hint:"删除"},on:{click:function(i){i.stopPropagation(),e.doRemove(t.row)}}})]}}])})],1)],1)],1)},o=[],n={render:r,staticRenderFns:o};t.a=n},function(e,t,i){"use strict";function r(e){i(89)}var o=i(62),n=i(91),s=i(0),l=r,a=s(o.a,n.a,!1,l,null,null);t.a=a.exports},function(e,t,i){var r=i(90);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);i(2)("1f7ae968",r,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".gridShow .el-tag+.el-tag{margin-left:10px}.gridShow .button-new-tag{margin-left:10px;height:32px;line-height:30px;padding-top:0;padding-bottom:0}.gridShow .input-new-tag{width:90px;margin-left:10px;vertical-align:bottom}",""])},function(e,t,i){"use strict";var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",[i("el-main",{staticClass:"gridShow",attrs:{title:e.title}},[e._l(e.list,function(t){return i("el-tag",{key:t.text,attrs:{closable:"","disable-transitions":!1},on:{close:function(i){e.handleClose(t)}}},[e._v("\n "+e._s(t.text)+"\n ")])}),e._v(" "),e.inputVisible?i("el-cascader",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{placeholder:e.$t("请选择"),size:"small",options:e.sortOption,props:{expandTrigger:"hover"}},on:{change:function(t){return e.change(t)}},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key))return null;e.handleInputConfirm(t)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}):i("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:e.showInput}},[e._v("+ New Tag")])],2)],1)},o=[],n={render:r,staticRenderFns:o};t.a=n},function(e,t,i){"use strict";var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"高级查询",visible:e.visible,width:"80%","append-to-body":"",top:"2vh"},on:{"update:visible":function(t){e.visible=t}}},[i("div",{staticClass:"filter-container",staticStyle:{padding:"0"}},[i("el-select",{attrs:{filterable:"","default-first-option":"",placeholder:"请选择方案"},on:{change:e.change},model:{value:e.selQueryId,callback:function(t){e.selQueryId=t},expression:"selQueryId"}},e._l(e.proLs,function(e){return i("el-option",{key:e.queryId,attrs:{label:e.name,value:e.queryId}})})),e._v(" "),i("el-button",{staticClass:"filter-item",attrs:{type:"primary",hotKeyRange:e.$options.name},on:{click:e.remove}},[e._v(e._s(e.$t("删除方案"))+"\n ")]),e._v(" "),i("el-button",{staticClass:"filter-item",attrs:{type:"primary",hotKeyRange:e.$options.name},on:{click:function(t){e.proSaveVisible=!0}}},[e._v(e._s(e.$t("方案保存"))+"\n ")]),e._v(" "),i("el-button",{staticClass:"filter-item",attrs:{type:"primary",hotKeyRange:e.$options.name},on:{click:e.add}},[e._v(e._s(e.$t("新增条件"))+"\n ")])],1),e._v(" "),i("div",{staticStyle:{height:"360px"}},[i("el-row",[i("el-col",{attrs:{span:11}},[i("div",{staticStyle:{"padding-top":"0px",height:"250px"}},[i("HdComQueryDetail",{ref:"LQuery",attrs:{allColumn:e.allColumn,list:e.leftLs,title:"组一"}})],1)]),e._v(" "),i("el-col",{attrs:{span:2}},[i("div",{staticStyle:{width:"100%",position:"relative",top:"50px","text-align":"center"}},[e._v(e._s(e.$t("或者")))])]),e._v(" "),i("el-col",{attrs:{span:11}},[i("div",{staticStyle:{"padding-top":"0px",height:"250px"}},[i("HdComQueryDetail",{ref:"RQuery",attrs:{allColumn:e.allColumn,list:e.rightLs,title:"组二"}})],1)])],1),e._v(" "),i("el-row",[i("div",{staticStyle:{"padding-top":"0px",height:"100px"}},[i("HdComSortDetail",{ref:"RQuery",attrs:{allColumn:e.allColumn,list:e.sortLs,title:"排序"}})],1)])],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.doCloseAndKeep()}}},[e._v(e._s(e.$t("关闭")+"("+e.$t("保留条件")))]),e._v(" "),i("el-button",{on:{click:e.doCloseAndClear}},[e._v(e._s(e.$t("关闭")))]),e._v(" "),i("el-button",{attrs:{type:"primary",hotKeyRange:e.$options.name},on:{click:e.doQueryRs}},[e._v(e._s(e.$t("查询")))])],1),e._v(" "),i("el-dialog",{attrs:{title:"方案保存",visible:e.proSaveVisible,width:"30%","append-to-body":"",top:"2vh"},on:{"update:visible":function(t){e.proSaveVisible=t}}},[i("el-row",[i("el-col",{attrs:{span:20}},[i("el-input",{model:{value:e.proName,callback:function(t){e.proName=t},expression:"proName"}})],1),e._v(" "),i("el-col",{attrs:{span:4}},[i("el-button",{attrs:{type:"primary"},on:{click:e.doSave}},[e._v(e._s(e.$t("保存")))])],1)],1)],1)],1)},o=[],n={render:r,staticRenderFns:o};t.a=n},function(e,t,i){"use strict";function r(e){i(94)}var o=i(63),n=i(96),s=i(0),l=r,a=s(o.a,n.a,!1,l,"data-v-263ff3bf",null);t.a=a.exports},function(e,t,i){var r=i(95);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);i(2)("4a78d21a",r,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,"#excel-upload-input[data-v-263ff3bf]{display:none;z-index:-9999}.excelSel[data-v-263ff3bf]{border:2px dashed #bbb;width:600px;height:160px;line-height:80px;margin:0 auto;font-size:24px;border-radius:5px;text-align:center;color:#bbb;position:relative}",""])},function(e,t,i){"use strict";var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"Excel上传",visible:e.visible,width:"65%",top:"10vh"},on:{"update:visible":function(t){e.visible=t}}},[i("input",{ref:"excel-upload-input",staticClass:"c-hide",attrs:{id:"excel-upload-input",type:"file",accept:".xlsx, .xls"},on:{change:e.handkeFileChange}}),e._v(" "),i("div",{staticClass:"excelSel",on:{drop:e.handleDrop,dragover:e.handleDragover,dragenter:e.handleDragover}},[e._v("\n "+e._s(e.$t("Excel导入,需要以导出的Excel为模板"))),i("br"),e._v("\n "+e._s(e.$t("Excel文件拖动到或点击按钮上传"))+"\n "),i("el-button",{staticStyle:{"margin-left":"16px"},attrs:{type:"primary"},on:{click:e.handleUpload}},[e._v(e._s(e.$t("浏览")))])],1),e._v(" "),i("el-dialog",{attrs:{title:"sheet选择",visible:e.sheetVisible,width:"55%",top:"15vh"},on:{"update:visible":function(t){e.sheetVisible=t}}},[i("div",{staticStyle:{margin:"10px"}},[e._v(e._s(e.$t("发现excel中存在多个sheet,请选择一个")))]),e._v(" "),i("el-radio-group",{model:{value:e.selSheet,callback:function(t){e.selSheet=t},expression:"selSheet"}},e._l(e.allSheet,function(t,r){return i("el-radio",{key:r,attrs:{label:t}},[e._v(e._s(t))])})),e._v(" "),i("el-button",{staticStyle:{"margin-left":"16px"},attrs:{type:"primary"},on:{click:e.sheetSure}},[e._v(e._s(e.$t("确定")))])],1)],1)},o=[],n={render:r,staticRenderFns:o};t.a=n},function(e,t,i){"use strict";function r(e){i(98)}var o=i(64),n=i(102),s=i(0),l=r,a=s(o.a,n.a,!1,l,"data-v-21f3bc42",null);t.a=a.exports},function(e,t,i){var r=i(99);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);i(2)("69cd04a2",r,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,"",""])},function(e,t,i){"use strict";var r=i(65),o=i(101),n=i(0),s=n(r.a,o.a,!1,null,null,null);t.a=s.exports},function(e,t,i){"use strict";var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-select",e._g(e._b({staticStyle:{width:"100%"},attrs:{filterable:"",clearable:e.clearable,placeholder:e.placeholder?e.$t(e.placeholder):e.$t("请选择"),"filter-method":e.filterMe},on:{change:e.change,"visible-change":e.visibleChange},model:{value:e.selVal,callback:function(t){e.selVal=t},expression:"selVal"}},"el-select",e.$attrs,!1),e.$listeners),e._l(e.options,function(t){return i("el-option",{key:t.code,attrs:{label:t.name,value:t.code}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.name))]),e._v(" "),i("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.code))])])}))},o=[],n={render:r,staticRenderFns:o};t.a=n},function(e,t,i){"use strict";var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"统计展示",visible:e.visible,width:"80%","append-to-body":"",top:"2vh"},on:{"update:visible":function(t){e.visible=t}}},[e._v("\n "+e._s(e.$t("展示标签列"))+"\n "),i("hd-drop",{ref:"labelDrop",staticStyle:{width:"200px"},model:{value:e.hdQuery.query._chartLabel,callback:function(t){e.$set(e.hdQuery.query,"_chartLabel",t)},expression:"hdQuery.query._chartLabel"}}),e._v(" "),i("span",[e._v(e._s(e.$t("对应的值列"))+"\n "),i("hd-drop",{ref:"valDrop",staticStyle:{width:"200px"},model:{value:e.hdQuery.query._chartValue,callback:function(t){e.$set(e.hdQuery.query,"_chartValue",t)},expression:"hdQuery.query._chartValue"}})],1),e._v(" "),i("el-button",{on:{click:e.doQuery}},[e._v(e._s(e.$t("统计")))]),e._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("div",{ref:"mychart",staticStyle:{height:"60vh"}})]),e._v(" "),i("el-col",{attrs:{span:12}},[i("div",{ref:"mychart2",staticStyle:{height:"60vh"}})]),e._v(" "),i("el-col",{attrs:{span:12}},[i("div",{ref:"mychart3",staticStyle:{height:"60vh"}})]),e._v(" "),i("el-col",{attrs:{span:12}},[i("div",{ref:"mychart4",staticStyle:{height:"60vh"}})])],1)],1)},o=[],n={render:r,staticRenderFns:o};t.a=n},function(e,t,i){"use strict";var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%"}},[e.comQueryIs?i("hd-com-query",{ref:"comQuery",attrs:{allColumn:e.allColumn,hdQuery:e.hdQuery}}):e._e(),e._v(" "),e.imExcelIs?i("ImportExcel",{ref:"imExcel",on:{"on-selected-file":e.doImportExcel}}):e._e(),e._v(" "),e.gridChartIs?i("GridChart",{ref:"gridChart",attrs:{allColumn:e.allColumn,hdQuery:e.hdQuery,url:e.chartUrl}}):e._e(),e._v(" "),i("HdGrid",e._g(e._b({directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"hdgrid",attrs:{hdQuery:e.hdQuery,hdResult:e.hdResult},on:{allExcel:e.doAllExcel,extSets:e.extSets,"sel-ok":e.operaData}},"HdGrid",e.$attrs,!1),e.$listeners),[i("template",{slot:"extSets"},[i("el-dropdown-item",{attrs:{command:"flowHide"}},[e._v(e._s(e.columnFlowThis.isShow?e.$t("隐藏行按钮"):e.$t("显示行按钮")))]),e._v(" "),e.noAdQuery?e._e():i("el-dropdown-item",{attrs:{command:"comQuery"}},[e._v(e._s(e.$t("高级查询")))]),e._v(" "),e.genChart?i("el-dropdown-item",{attrs:{command:"gridChart"}},[e._v(e._s(e.$t("图表统计")))]):e._e(),e._v(" "),e.imExcel?i("el-dropdown-item",{attrs:{command:"imExcel"}},[e._v(e._s(e.$t("导入excel")))]):e._e(),e._v(" "),e._t("extSets")],2),e._v(" "),i("template",{slot:"query"},[e._t("query")],2),e._v(" "),e._t("default"),e._v(" "),i("template",{slot:"rightMenu"},[e._t("rightMenu")],2),e._v(" "),i("template",{slot:"rightMenuExt"},[e._t("rightMenuExt")],2),e._v(" "),i("template",{slot:"btnTool"},[e._t("btnTool")],2)],2)],1)},o=[],n={render:r,staticRenderFns:o};t.a=n}]);
@@ -0,0 +1 @@
1
+ module.exports=function(e){function t(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,o){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=24)}([function(e,t){e.exports=function(e,t,i,o,n,r){var s,l=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(s=e,l=e.default);var d="function"==typeof l?l.options:l;t&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0),i&&(d.functional=!0),n&&(d._scopeId=n);var c;if(r?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},d._ssrRegister=c):o&&(c=o),c){var u=d.functional,h=u?d.render:d.beforeCreate;u?(d._injectStyles=c,d.render=function(e,t){return c.call(t),h(e,t)}):d.beforeCreate=h?[].concat(h,c):[c]}return{esModule:s,exports:l,options:d}}},function(e,t){function i(e,t){var i=e[1]||"",n=e[3];if(!n)return i;if(t&&"function"==typeof btoa){var r=o(n);return[i].concat(n.sources.map(function(e){return"/*# sourceURL="+n.sourceRoot+e+" */"})).concat([r]).join("\n")}return[i].join("\n")}function o(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var o=i(t,e);return t[2]?"@media "+t[2]+"{"+o+"}":o}).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},n=0;n<this.length;n++){var r=this[n][0];"number"==typeof r&&(o[r]=!0)}for(n=0;n<e.length;n++){var s=e[n];"number"==typeof s[0]&&o[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),t.push(s))}},t}},function(e,t,i){function o(e){for(var t=0;t<e.length;t++){var i=e[t],o=c[i.id];if(o){o.refs++;for(var n=0;n<o.parts.length;n++)o.parts[n](i.parts[n]);for(;n<i.parts.length;n++)o.parts.push(r(i.parts[n]));o.parts.length>i.parts.length&&(o.parts.length=i.parts.length)}else{for(var s=[],n=0;n<i.parts.length;n++)s.push(r(i.parts[n]));c[i.id]={id:i.id,refs:1,parts:s}}}}function n(){var e=document.createElement("style");return e.type="text/css",u.appendChild(e),e}function r(e){var t,i,o=document.querySelector("style["+v+'~="'+e.id+'"]');if(o){if(p)return g;o.parentNode.removeChild(o)}if(w){var r=f++;o=h||(h=n()),t=s.bind(null,o,r,!1),i=s.bind(null,o,r,!0)}else o=n(),t=l.bind(null,o),i=function(){o.parentNode.removeChild(o)};return t(e),function(o){if(o){if(o.css===e.css&&o.media===e.media&&o.sourceMap===e.sourceMap)return;t(e=o)}else i()}}function s(e,t,i,o){var n=i?"":o.css;if(e.styleSheet)e.styleSheet.cssText=b(t,n);else{var r=document.createTextNode(n),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(r,s[t]):e.appendChild(r)}}function l(e,t){var i=t.css,o=t.media,n=t.sourceMap;if(o&&e.setAttribute("media",o),m.ssrId&&e.setAttribute(v,t.id),n&&(i+="\n/*# sourceURL="+n.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}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 d=i(4),c={},u=a&&(document.head||document.getElementsByTagName("head")[0]),h=null,f=0,p=!1,g=function(){},m=null,v="data-vue-ssr-id",w="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,i,n){p=i,m=n||{};var r=d(e,t);return o(r),function(t){for(var i=[],n=0;n<r.length;n++){var s=r[n],l=c[s.id];l.refs--,i.push(l)}t?(r=d(e,t),o(r)):r=[];for(var n=0;n<i.length;n++){var l=i[n];if(0===l.refs){for(var a=0;a<l.parts.length;a++)l.parts[a]();delete c[l.id]}}}};var b=function(){var e=[];return function(t,i){return e[t]=i,e.filter(Boolean).join("\n")}}()},function(e,t,i){"use strict";t.a={name:"BtnRight",data:function(){return{btnRight:!0}},created:function(){},methods:{getName:function(){},checkRight:function(){if(!this.$store)return!0;var e=this.$store.state.user.hidBtns,t=this.findNameCombine();if(!t)return!0;var i=this.$route.name;if(e&&e.length>0)for(var o=0;o<e.length;o++){var n=e[o];n.menuId==i&&t==n.permissions&&(this.btnRight=!1)}},addBtnMetaToParent:function(){if(!this.$route.meta.btnRole)return!1;var e=this.findNameCombine();if(!e)return!1;var t={name:this.getName(),permissions:e};this.checkIsSame(t)||this.$route.meta.btnRole.push(t)},checkIsSame:function(e){for(var t=this.$route.meta.btnRole,i=0;i<t.length;i++){if(t[i].permissions==e.permissions)return!0}return!1},findNameCombine:function(){if(this.vid)return this.vid;var e=this.$vnode.context,t=e.$options.name;return"HdFormDialog"==t&&(t=this.findNameFromFile(e.$vnode.context.$options.name)),t||(t="noname"),t+"_"+this.getName()},findNameFromFile:function(e){if(!e)return!1;var t=e.split("\\");return t[t.length-1].split(".")[0]},findRoleSetParent:function(){for(var e=this.$parent.$parent;e&&"btnRole"==!e.$options.name;)e=e.$parent;return e}}}},function(e,t){e.exports=function(e,t){for(var i=[],o={},n=0;n<t.length;n++){var r=t[n],s=r[0],l=r[1],a=r[2],d=r[3],c={id:e+":"+n,css:l,media:a,sourceMap:d};o[s]?o[s].parts.push(c):i.push(o[s]={id:s,parts:[c]})}return i}},function(e,t,i){"use strict";var o=i(7);t.a={name:"HdBtn",mixins:[o.a],data:function(){return{}},props:{noRoleManage:Boolean,keyMap:Array,keyType:String,hotKeyRange:{type:String,default:"hd-com-grid"},icon:String,hint:String,vid:String},created:function(){this.noRoleManage||this.$route&&this.$route.meta.btnRoleCheck&&this.addBtnMetaToParent()},mounted:function(){var e=this;this.$nextTick(function(){e.$refs.hdbtn&&e.$refs.hdbtn.referenceElm&&e.$refs.hdbtn.referenceElm.setAttribute("tabindex",-1)}),this.checkRight()},computed:{addTextProp:function(){return this.nowKeyMap&&2==this.nowKeyMap.length?"("+this.nowKeyMap[1].toUpperCase()+")":""},nowKeyMap:function(){return this.keyMap?this.keyMap:this.keyType&&this.$keyMap?this.$keyMap[this.keyType]:void 0}},methods:{getName:function(){return this.hint+"(-)"},handleClick:function(e){this.$emit("click",e)},click:function(e){void 0!==this.$attrs.disabled&&!1!==this.$attrs.disabled||this.handleClick(e)}}}},function(e,t){e.exports=require("babel-runtime/helpers/toConsumableArray")},function(e,t,i){"use strict";var o=i(3),n=i(0),r=n(o.a,null,!1,null,null,null);t.a=r.exports},function(e,t){e.exports=require("babel-runtime/core-js/object/assign")},function(e,t){e.exports=require("babel-runtime/core-js/json/stringify")},function(e,t,i){"use strict";var o=i(11),n=i.n(o),r=i(8),s=i.n(r),l=i(6),a=i.n(l),d=i(27),c=i(33),u=i(39),h=i(42),f=i(48),p=i(49),g=i(18),m=i(54);t.a={name:"HdGrid",components:{HdRightMenu:m.a,GridShow:d.a,PdfShow:h.a,GridExField:c.a,ExtendColumn:p.a,HdBtn:g.default},mixins:[u.a,f.a],data:function(){return{disCol:[],oriCol:[],chiCol:[],colThis:[],menuId:"",gridId:"",queryShow:!0,excelAllExporting:!1,pdfAllExporting:!1,gridShowIs:!1,exFieldShowIs:!1,pdfShowIs:!1,gridCanReload:!0,isGridCustom:!1,exFieldRows:[],rightMenuVisable:!1,rightMenuRow:[]}},inheritAttrs:!1,props:{hdResult:Object,hdAllResult:Object,hdQuery:{type:Object,default:function(){return{}}},height:{type:String,default:function(){return"100%"}},noSets:{type:Boolean,default:function(){return!1}},defaultSort:{type:Object,default:function(){return{prop:"updTim",order:"descending"}}},pageHide:Boolean,ckHide:Boolean,indexHide:Boolean,recHide:Boolean,rowClassName:Function,noExcelExport:[Array],excelPropHeader:Boolean,visualScroll:Boolean,pageSizes:[Array],exField:{type:Object,default:function(){return{open:!1,table:null,columnList:null}}},excelFormatter:Function,addHide:Boolean,delHide:Boolean,saveHide:Boolean,copyHide:Boolean,hdBtnTool:{type:Boolean,default:!0}},created:function(){this.$parent.$vnode.context.$options._componentTag?this.gridId=this.$parent.$vnode.context.$options._componentTag+"_"+this.$parent.$parent.$options._componentTag:this.gridId=this.$parent.$vnode.context.$options.name+"_"+this.$parent.$parent.$options._componentTag},mounted:function(){this.hdQuery.doSort(this.defaultSort,!0);var e=localStorage.getItem("page_"+this.gridId);e&&(this.hdQuery.rows=parseInt(e)),this.pageHide&&(this.hdQuery.page=null,this.hdQuery.rows=null),this.visualScroll&&this.initVisual(),this.exField.gridCode&&this.initExFieldRows(),this.$nextTick(function(){this.noSets||this.gridShow(!0)})},methods:{doAdd:function(){this.$emit("sel-ok","doAdd")},doRemove:function(){this.$emit("sel-ok","doRemove")},doSave:function(){this.$emit("sel-ok","doSave")},doCopy:function(){this.$emit("sel-ok","doCopy")},doUpdateOne:function(){this.$emit("sel-ok","doUpdateOne",this.rightMenuRow)},doRemoveOne:function(){this.$emit("sel-ok","doRemoveOne",this.rightMenuRow)},doCopyOne:function(){this.$emit("sel-ok","doCopyOne",this.rightMenuRow)},gridShow:function(e){e||(this.gridCanReload=!1),this.$nextTick(function(){this.gridCanReload=!0,this.$nextTick(function(){var t=this;!e&&this.visualScroll&&(this.initVisual(),this.initTableHeight()),this.oriCol=this.$refs.ingrid.store.states._columns,this.menuId=this.$route.name;var i="/webresources/login/com/ComGridShow/find?menuId="+this.menuId+"&gridId="+this.gridId;this.$http.post(i).then(function(e){t.isGridCustom=0!=e.data.length,t.disCol=t.gridCompute(t.oriCol,e.data),t.$refs.ingrid.store.states._columns=t.disCol.filter(function(e){return"0"!=e.showFlg}),console.log("显示序列条数",t.$refs.ingrid.store.states._columns.length),t.$refs.ingrid.store.updateColumns(),t.$nextTick(function(){this.$refs.ingrid.doLayout()})})})})},exFieldShow:function(){window.location.reload()},gridSets:function(){var e=this;this.gridShowIs=!0,this.$nextTick(function(){e.$refs.gridShow.show(e.disCol,e.menuId,e.gridId)})},exFieldSets:function(){var e=this;this.exFieldShowIs=!0,this.$nextTick(function(){e.$refs.exFieldShow.show()})},gridCompute:function(e,t){for(var i=[],o=[],n=0;n<e.length;n++){var r=e[n];r.showFlg="1",r._ori_label=r.label,r.label=r._ori_label;var s=!1;if(!r||r.property){for(var l=0;l<t.length;l++)if(r.property==t[l].property){s=!0;break}s||o.push(r)}else"right"==r.fixed?i.push(e[n]):i.push(r)}for(var d=0;d<t.length;d++)for(var c=t[d],u=0;u<e.length;u++){var h=e[u];if("checkBox"==h.className&&(this.$set(h,"fixed","left"),this.$set(h,"className","checkBox backFF")),"selection"!=h.type&&"index"!=h.type||(this.$set(h,"fixed","left"),this.$set(h,"className","backFF")),h.property&&c.property==h.property){this.$set(h,"showFlg",c.showFlg),this.$set(h,"freezeFlg",c.freezeFlg),"1"==c.freezeFlg&&(this.$set(h,"fixed","left"),this.$set(h,"className","backFF"+h.className)),h.width=c.width,i.push(h);break}}return i=[].concat(a()(i),o)},extSets:function(e){"gridSets"==e&&this.gridSets(),"exFieldSets"==e?this.exFieldSets():"pageExcel"==e?this.doPageExcel():"allExcel"==e?this.doAllExcel():"allPdf"==e?this.doAllPdf():"queryToggle"==e&&(this.queryShow=!this.queryShow),this.$emit("extSets",e)},getHdComGrid:function(){for(var e=this.$parent;e;){if("HdComGrid"==e.$options.name)return e;e=e.$parent}return null},myselectionChange:function(e){this.hdQuery&&(this.hdQuery.selObj=e),this.$emit("selection-change",e,!0)},myrowClick:function(e,t,i){this.hdQuery&&(this.hdQuery.selRow=e)},myrowDblClick:function(e,t,i){this.$listeners["row-dblclick"]||1!=this.$route.path.indexOf("privilege")&&(this.$emit("sel-ok","doUpdateOne",e),this.hdQuery&&(this.hdQuery.selRow=e))},myrowContextmenu:function(e,t,i){this.hdQuery&&(this.rightMenuRow=e),this.rightMenuVisable=!1,i.preventDefault();var o=this.$refs.rightMenu.$el;console.log(i),i.clientX>900?o.style.left=i.clientX-265+"px":o.style.left=i.clientX-175+"px",document.addEventListener("click",this.foo),i.clientY>500?o.style.top=i.clientY-185+"px":o.style.top=i.clientY-105+"px"},foo:function(){this.rightMenuVisable=!1,document.removeEventListener("click",this.foo)},dodefaultSort:function(e,t,i){var o=this;if(e.column.sortable){for(var n=!1,r=0;r<this.hdResultComRows.length;r++)if(this.hdResultComRows[r].isEdit){n=!0;break}n?this.$confirm(this.$t("存在未保存数据,是否继续?"),this.$t("提示"),{}).then(function(){o.hdQuery.doSort(e,!1)}):this.hdQuery.doSort(e,!1)}},localeCompare:function(e,t){return e?t?e.localeCompare(t):-1:1},doPageExcel:function(){this.excelExport(this.hdResult.rows)},doAllExcel:function(){var e=this,t=null;this.$emit("allExcel",function(e){t=e}),this.excelAllExporting=!0,t.then(function(t){e.excelExport(t.data.rows),e.excelAllExporting=!1})},doAllPdf:function(){var e=this,t=null;this.pdfShowIs=!0,this.$emit("allExcel",function(e){t=e}),this.pdfAllExporting=!0,t.then(function(t){e.pdfExport(t.data.rows),e.pdfAllExporting=!1})},getInputFormat:function(e){for(var t=0;t<this.colThis.length;t++){var i=this.colThis[t];if(i.$attrs.prop==e)return i.getValueByPath}},rowSizeChg:function(e){localStorage.setItem("page_"+this.gridId,e),this.hdQuery.doSizeChg(e)},getCkRows:function(){return this.visualScroll?this.hdResult.rows.filter(function(e){return 1==e._isCK}):this.hdQuery.selObj},initExFieldRows:function(){var e=this,t=new HdQuery(this);t.query.gridCode=this.exField.gridCode,t.sort="sortNo",t.order="asc",this.$http.post("/webresources/login/tech/ComExField/detail/find",t).then(function(t){e.exFieldRows=t.data.rows,e.exFieldRows.forEach(function(e){e.fieldName=e.columnName.toLowerCase().replace(/\_+[a-zA-Z]/g,function(e,t){return t?e.substr(-1).toUpperCase():e})}),e.$nextTick(function(){this.$refs.ingrid.doLayout()})})},filterChange:function(e){this.hdResult.filters=s()(this.hdResult.filters||{},e),this.filterHdResult()},filterHdResult:function(){var e=this,t=n()(this.hdResult.filters||{});this.hdResult.rows=this.hdResult._rows.filter(function(i){return!t.some(function(t){var o=(e.$refs.ingrid.store.states._columns.find(function(e){return e.id==t})||"").property;return e.hdResult.filters[t].length>0&&-1==e.hdResult.filters[t].indexOf(i[o])})})}},computed:{hdResultComRows:function(){return this.visualScroll?this.gridDataRows:this.hdResult.rows},pageSizeArray:function(){return null==this.pageSizes?this.visualScroll?[20,50,100,200,500,1e3]:[20,50,100,200]:this.pageSizes},showBtnTool:function(){return this.hdBtnTool&&1!=this.$route.path.indexOf("privilege")}},watch:{}}},function(e,t){e.exports=require("babel-runtime/core-js/object/keys")},function(e,t,i){"use strict";var o=i(9),n=i.n(o),r=i(13),s=i.n(r);t.a={name:"gridshow",components:{},data:function(){return{hdQuery:new HdQuery(this),list:[],oldList:[],newList:[],visible:!1,loading:!1,menuId:"",gridId:"",specCkForGrid:!0}},mounted:function(){this.loading=!1},methods:{show:function(e,t,i){var o=this;this.menuId=t,this.gridId=i,this.visible=!0,this.list=JSON.parse(n()(e.filter(function(e){return e.property}))),this.oldList=this.list.map(function(e){return e.property}),this.newList=this.oldList.slice(),this.$nextTick(function(){o.setSort()})},setSort:function(){for(var e=this,t=document.querySelectorAll(".gridShow .el-table__body-wrapper > table > tbody"),i=0;i<t.length;i++){var o=t[i];this.sortable=s.a.create(o,{ghostClass:"sortable-ghost",onEnd:function(t){var i=e.list.splice(t.oldIndex,1)[0];e.list.splice(t.newIndex,0,i);var o=e.newList.splice(t.oldIndex,1)[0];e.newList.splice(t.newIndex,0,o)}})}},submit:function(){var e=this,t="/webresources/login/com/ComGridShow/save?menuId="+this.menuId+"&gridId="+this.gridId;this.loading=!0,this.$http.post(t,this.list).then(function(t){e.loading=!1;var i=t.data;e.$message({type:"-1"==i.code?"error":"success",message:i.message}),"-1"!=i.code&&(e.visible=!1,e.$emit("save-ok"))})},reset:function(){var e=this,t="/webresources/login/com/ComGridShow/reset?menuId="+this.menuId+"&gridId="+this.gridId;this.$http.post(t,this.list).then(function(t){var i=t.data;e.$message({type:"-1"==i.code?"error":"success",message:i.message}),"-1"!=i.code&&(e.visible=!1,e.$emit("save-ok"))})}}}},function(e,t){e.exports=require("sortablejs")},function(e,t,i){"use strict";var o=i(13),n=i.n(o),r=i(36);t.a={name:"gridexfield",components:{SelGridFieldcode:r.a},props:{table:String,columnList:Array,gridCode:String},data:function(){return{hdQuery:new HdQuery(this),visible:!1,loading:!1,list:[]}},mounted:function(){this.init()},methods:{init:function(e){var t=this;this.hdQuery.query.tableName=this.table,this.hdQuery.query.columnList=this.columnList,this.hdQuery.query.gridCode=this.gridCode,this.hdQuery.sort="sortNo",this.hdQuery.order="asc",this.$http.post("/webresources/login/tech/ComExFieldCustom/find",this.hdQuery).then(function(e){t.list=e.data.rows,t.columnList&&t.columnList.forEach(function(i){e.data.rows.some(function(e){return e.columnName==i})||t.list.unshift({columnName:i,tableName:t.table,formXs:"20",formSpan:"12",isEdit:!0})});var i=0;t.list.forEach(function(e){e.isEdit=!0,e.sortNo=i++,e.formSpan=e.formSpan+""}),t.$refs.grid.doQuery({rows:t.list}),t.$nextTick(function(){t.setSort()})})},show:function(){this.visible=!0,this.list.forEach(function(e){e.isEdit=!0})},setSort:function(){for(var e=this,t=document.querySelectorAll(".gridShow .el-table__body-wrapper > table > tbody"),i=0;i<t.length;i++){var o=t[i];this.sortable=n.a.create(o,{ghostClass:"sortable-ghost",onEnd:function(t){e.list.forEach(function(e){e.sortNo==t.oldIndex?e.sortNo=t.newIndex:t.newIndex>t.oldIndex&&e.sortNo<=t.newIndex&&e.sortNo>t.oldIndex?e.sortNo=e.sortNo-1:t.newIndex<t.oldIndex&&e.sortNo>=t.newIndex&&e.sortNo<t.oldIndex&&(e.sortNo=e.sortNo+1)})}})}},doAdd:function(){var e=this.getEmptyColumn();if(null==e)return void this.$message({message:"没有剩余的扩展字段"});var t={gridCode:this.gridCode,tableName:this.table,columnName:e,formXs:12,formSpan:"20",isEdit:!0};this.$refs.grid.doEdit("",t)},submit:function(){var e=this;this.list.forEach(function(t){t.columnComment&&t.columnType||(t.isEdit=!1),t.gridCode=e.gridCode}),this.$refs.grid.doSaveAll().then(function(t){e.visible=!1,e.$emit("save-ok")}).catch(function(t){e.$message({message:"填写有误"})})},getEmptyColumn:function(){var e=this,t=this.columnList.filter(function(t){return!e.list.some(function(e){return e.columnName==t})});return t.length>0?t[0]:null},columnTypeChange:function(e,t){t.exColumnId&&this.$message({type:"warning",message:this.$t("修改类型可能回造成数据混乱或丢失, 请慎重!")}),"VARCHAR"!=t.columnType&&"BOOLEAN"!=t.columnType||(t.formatter="x")}}}},function(e,t,i){"use strict";t.a={name:"sel-grid-fieldcode",components:{},data:function(){return{hdQuery:new HdQuery(this)}},mounted:function(){},props:{txtVal:String,idVal:String,disabled:Boolean},methods:{beforeQuery:function(e){this.hdQuery.query.anyQuery=e},doClick:function(e){this.$emit("update:txtVal",e.fieldName),this.$emit("update:idVal",e.fieldCod)}}}},function(e,t,i){"use strict";var o=i(6),n=i.n(o),r=i(9),s=i.n(r),l=i(45),a=i.n(l),d=i(46);i.n(d);window.jsPDF=a.a,t.a={name:"pdfshow",components:{},props:{gening:{type:Boolean,default:function(){return!0}},defaultSort:{type:Object,default:function(){return{prop:"updTim",order:"descending"}}},pageHide:Boolean,ckHide:Boolean,indexHide:Boolean,recHide:Boolean,rowClassName:Function,excelPropHeader:Boolean},data:function(){return{visible:!0,totalSize:0,isLandscape:!1,pdfExport:[],currentPage:1,pageSize:400,resultData:[],gridData:[],title:"",fontSize:10}},mounted:function(){},methods:{handleSizeChange:function(){this.initPdf()},handleCurrentChange:function(){this.initPdf()},initShowData:function(){this.gridData=[];for(var e=0;e<this.resultData.length;e++){for(var t=[],i=0;i<this.resultData[e].length;i++)this.pdfExport.indexOf(i)>-1&&t.push(this.resultData[e][i]);this.gridData.push(t)}},refreshGridData:function(){console.log("refreshGridData",this.pdfExport);var e={isLandscape:this.isLandscape,fontSize:this.fontSize,cols:this.pdfExport};localStorage.setItem("HdPdfSel"+this.$parent.gridId,s()(e)),this.initShowData(),this.initPdf()},addScript:function(){this.$message({type:"success",showClose:!0,duration:99999,message:this.$t("正在初始化pdf脚本,请等待...")});var e=document.getElementsByTagName("head")[0],t=document.createElement("script"),i=this;t.onload=t.onreadystatechange=function(){console.log("readyState",i.readyState),i.readyState&&"loaded"!==i.readyState&&"complete"!==i.readyState||(i.$message.closeAll(),i.initPdf(),t.onload=t.onreadystatechange=null)},t.type="text/javascript",t.src="static/js/simsun.js",e.appendChild(t)},genPdf:function(e,t,i){this.totalSize=t.length-1,this.resultData.push(["#"].concat(n()(t[0])));for(var o=1;o<t.length;o++)this.resultData.push([o].concat(n()(t[o])));console.log("localStorage",localStorage.getItem("HdPdfSel"+this.$parent.gridId));var r=localStorage.getItem("HdPdfSel"+this.$parent.gridId);if(r){var s=JSON.parse(r);if(this.pdfExport=s.cols,this.fontSize=s.fontSize,this.isLandscape=s.isLandscape,!this.pdfExport||!Array.isArray(this.pdfExport)||this.pdfExport.length<1){this.pdfExport=[];for(var l=0;l<=this.totalSize;l++)this.pdfExport.push(l)}}this.initShowData(),this.title=i,this.addScript()},initPdf:function(){var e=this,t=(this.currentPage-1)*this.pageSize+1,i=this.currentPage*this.pageSize+1,o=this.gridData.slice(t,i);this.$nextTick(function(){e.showPdf([e.gridData[0]],o,e.title)})},showPdf:function(e,t,i){var o=e,n=t,r=null;if(this.isLandscape){var r=new a.a("l","pt");r.setFont("simsun"),r.setFontStyle("normal"),r.text(i,450,20,{align:"center"})}else{var r=new a.a("h","pt");r.setFont("simsun"),r.setFontStyle("normal"),r.text(i,300,20,{align:"center"})}r.autoTable({head:o,body:n,margin:{right:6,left:6},styles:{font:"simsun",fontStyle:"normal",lineColor:"#000",lineWidth:1,fontSize:this.fontSize,cellPadding:.5,halign:"center"},headStyles:{font:"simsun",fontStyle:"normal"}}),document.getElementById("output").data=r.output("datauristring")}},watch:{fontSize:function(e){e?e>50?this.fontSize=50:e<2&&(this.fontSize=1):this.fontSize=10}}}},function(e,t,i){"use strict";var o=i(52);t.a={name:"ExtendColumn",mixins:[o.a],props:{exFieldRow:Object},data:function(){return{codeList:Object}},mounted:function(){},methods:{genCode:function(e,t){var i=this;if(this.codeList[t])return this.codeList[t][e];this.codeList[t]={},this.$http.get("/webresources/login/privilege/SysCode/findAll?fieldCod="+t).then(function(o){o.data.forEach(function(o){return i.codeList[t][o.code]=o.name,i.codeList[t][e]})})},getSysCode:function(e){var t=this;this.$http.get("/webresources/login/privilege/SysCode/findAll?fieldCod="+e).then(function(i){i.data.forEach(function(i){t.codeList[e][i.fieldCod]=i.fieldNam})})}}}},function(e,t,i){"use strict";function o(e){i(19)}Object.defineProperty(t,"__esModule",{value:!0});var n=i(5),r=i(21),s=i(0),l=o,a=s(n.a,r.a,!1,l,null,null);t.default=a.exports},function(e,t,i){var o=i(20);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("37399a8d",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".hdBtn{cursor:pointer}",""])},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.btnRight?i("el-tooltip",{ref:"hdbtn",attrs:{content:e.$t(e.hint+e.addTextProp),placement:"bottom",effect:"light",enterable:!1,"open-delay":500,transition:""}},[i("i",{class:"hdBtn "+e.icon,on:{click:e.handleClick}},[e.icon?e._e():e._t("default"),e._v(" "),e.nowKeyMap?i("hd-hot-key",{attrs:{hotKeyRange:e.hotKeyRange,keyMap:e.nowKeyMap},on:{do:function(t){e.click("hotkey")}}}):e._e()],2)]):e._e()},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";t.a={name:"HdRightMenu",props:{noRoleManage:!1},data:function(){return{isFocus:!1,rangeThis:{}}},created:function(){},methods:{doAdd:function(){this.$emit("do-add")},doRemove:function(){this.$emit("do-remove")},doUpdate:function(){this.$emit("do-update")},doCopy:function(){this.$emit("do-copy")}}}},function(e,t){e.exports=require("xlsx")},function(e,t,i){"use strict";function o(e){i(25)}Object.defineProperty(t,"__esModule",{value:!0});var n=i(10),r=i(56),s=i(0),l=o,a=s(n.a,r.a,!1,l,"data-v-4ca5c5c6",null);t.default=a.exports},function(e,t,i){var o=i(26);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("0eea07ed",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".hdgrid[data-v-4ca5c5c6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hdgrid[data-v-4ca5c5c6] .el-table{height:100%;width:100%;-webkit-box-flex:1;-ms-flex:1;flex:1}.hdgrid[data-v-4ca5c5c6] .el-table th.gutter{display:table-cell!important}.hdgrid[data-v-4ca5c5c6] .el-table .el-table__fixed-header-wrapper th,.hdgrid[data-v-4ca5c5c6] .el-table .el-table__header-wrapper th{background-color:#f6f6f6}.hdgrid[data-v-4ca5c5c6] .el-table td,.hdgrid[data-v-4ca5c5c6] .el-table th{padding:1px 0}.hdgrid[data-v-4ca5c5c6] .el-table .cell,.hdgrid[data-v-4ca5c5c6] .el-table .el-table--border td:first-child .cell,.hdgrid[data-v-4ca5c5c6] .el-table .el-table--border th:first-child .cell,.hdgrid[data-v-4ca5c5c6] .el-table .el-table th div{padding:1.5px 0 1.5px 4px!important}.hdgrid[data-v-4ca5c5c6] .el-table .el-table__empty-block{position:static;text-align:center;width:100%;height:80%}.hdgrid[data-v-4ca5c5c6] .el-table .el-table__body{margin-bottom:10px}.hdgrid[data-v-4ca5c5c6] .el-table .el-table__body-wrapper{height:100%;overflow:auto}.hdgrid[data-v-4ca5c5c6] .el-table .el-input__inner{height:27px;margin-bottom:0;line-height:27px}.hdgrid[data-v-4ca5c5c6] .el-table .el-form-item__content,.hdgrid[data-v-4ca5c5c6] .el-table .el-form-item__label,.hdgrid[data-v-4ca5c5c6] .el-table .el-input,.hdgrid[data-v-4ca5c5c6] .el-table .el-input__icon{line-height:30px}.hdgrid[data-v-4ca5c5c6] .el-table .el-input__inner{padding:5px}.hdgrid[data-v-4ca5c5c6] .el-table .el-input--prefix .el-input__inner{padding-left:30px}.hdgrid[data-v-4ca5c5c6] .el-table .cell{min-width:20px}.hdgrid[data-v-4ca5c5c6] .el-table .checkBox .cell{overflow:inherit}.hdgrid[data-v-4ca5c5c6] .el-table .checkBox .cell .el-checkbox,.hdgrid[data-v-4ca5c5c6] .el-table .checkBox .cell .el-checkbox__input{position:inherit}.hdBtnTool[data-v-4ca5c5c6]{font-weight:700;vertical-align:middle;margin-left:20px}",""])},function(e,t,i){"use strict";function o(e){i(28),i(30)}var n=i(12),r=i(32),s=i(0),l=o,a=s(n.a,r.a,!1,l,"data-v-324af748",null);t.a=a.exports},function(e,t,i){var o=i(29);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("34aa3991",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".sortable-ghost{opacity:.8;color:#fff!important;background:#42b983!important}.gridShow{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.gridShow .el-table{height:100%;width:100%;-webkit-box-flex:1;-ms-flex:1;flex:1}.gridShow .el-table .el-table__body-wrapper{width:100%;padding-bottom:30px}.gridShow .el-table .el-table__header-wrapper th{background-color:#f6f6f6}.gridShow .el-table .el-table__fixed-header-wrapper th{background-color:#8cbda4}.gridShow .el-table td,.gridShow .el-table th{padding:2px 0}.gridShow .el-table .cell,.gridShow .el-table .el-table--border td:first-child .cell,.gridShow .el-table .el-table--border th:first-child .cell,.gridShow .el-table .el-table th div{padding-left:2px!important;padding-right:2px!important}.gridShow .el-table .el-table__empty-block{position:static;text-align:center;width:100%;height:80%}.gridShow .el-table .el-table__body{margin-bottom:10px}.gridShow .el-table .el-table__body-wrapper{height:100%;overflow-y:auto}.gridShow .el-table .el-input__inner{height:27px;margin-bottom:0}.gridShow .el-table .el-form-item__content,.gridShow .el-table .el-form-item__label,.gridShow .el-table .el-input,.gridShow .el-table .el-input__icon{line-height:30px}.gridShow .el-table .el-input__inner{padding:5px}.gridShow .el-table .el-input--prefix .el-input__inner{padding-left:30px}",""])},function(e,t,i){var o=i(31);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("0462a30a",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".icon-star[data-v-324af748]{margin-right:2px}.drag-handler[data-v-324af748]{width:20px;height:20px;cursor:pointer}.show-d[data-v-324af748]{margin-top:15px}",""])},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"展示设置",visible:e.visible,width:"50%","append-to-body":"",top:"2vh"},on:{"update:visible":function(t){e.visible=t}}},[i("el-container",{staticStyle:{height:"80vh",border:"1px solid #eee"}},[i("el-main",{staticClass:"gridShow"},[i("el-table",{attrs:{data:e.list,"row-key":"property"}},[i("el-table-column",{attrs:{align:"center",label:"名称",prop:"label",width:"150",noQuery:""}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"宽度(px)",prop:"width",width:"150",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("hd-num",{attrs:{step:10},model:{value:t.row.width,callback:function(i){e.$set(t.row,"width",e._n(i))},expression:"scope.row.width"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"展示",prop:"showFlg",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},model:{value:t.row.showFlg,callback:function(i){e.$set(t.row,"showFlg",i)},expression:"scope.row.showFlg"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"冻结",prop:"freezeFlg",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},model:{value:t.row.freezeFlg,callback:function(i){e.$set(t.row,"freezeFlg",i)},expression:"scope.row.freezeFlg"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"排序",width:"80",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(e){return[i("svg-icon",{staticClass:"drag-handler",attrs:{"icon-class":"drag"}})]}}])})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.reset}},[e._v(e._s(e.$t("重置")))]),e._v(" "),i("el-button",{on:{click:function(t){e.visible=!1}}},[e._v(e._s(e.$t("取 消")))]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.submit}},[e._v(" "+e._s(e.$t("确 定")))])],1)],1)},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";function o(e){i(34)}var n=i(14),r=i(38),s=i(0),l=o,a=s(n.a,r.a,!1,l,"data-v-cee2d6d8",null);t.a=a.exports},function(e,t,i){var o=i(35);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("5ab29bc4",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,"",""])},function(e,t,i){"use strict";var o=i(15),n=i(37),r=i(0),s=r(o.a,n.a,!1,null,null,null);t.a=s.exports},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("hd-grid-sel",{attrs:{txtVal:e.txtVal,idVal:e.idVal,placeholder:"请点击选取",height:"50vh",width:"300px",hdQuery:e.hdQuery,disabled:e.disabled,url:"webresources/login/privilege/SysField/vue/find",beforeQuery:e.beforeQuery},on:{rowClick:e.doClick}},[i("el-table-column",{attrs:{width:"120px",align:"left","header-align":"center",label:"代码",prop:"fieldCod",sortable:""}}),e._v(" "),i("el-table-column",{attrs:{widhth:"180px",align:"left","header-align":"center",label:"名称",prop:"fieldName",sortable:""}})],1)},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"扩展字段设置",visible:e.visible,width:"65%","append-to-body":"",top:"2vh"},on:{"update:visible":function(t){e.visible=t}}},[i("el-container",{staticStyle:{height:"80vh",border:"1px solid #eee"}},[i("el-main",{staticClass:"gridShow"},[i("hd-com-grid",{ref:"grid",attrs:{hdQuery:e.hdQuery,url:"/webresources/login/tech/ComExFieldCustom","not-init":"","no-sets":"","ck-hide":"","no-sort":"","index-hide":"","hd-btn-tool":!1,"rec-hide":"","page-hide":"","default-sort":{prop:"sortNo",order:"ascending"}}},[i("el-table-column",{attrs:{width:"100px",align:"center",label:"是否使用",prop:"useFlg",sortable:"",rules:e.$r(0,0,50),input:"el-switch",inputProp:{activeValue:"1",inactiveValue:"0"},inputFormat:e.$ckFt}}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"字段注解",prop:"columnComment",rules:e.$r(1,0,50)}}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"字段类型",prop:"columnType",rules:e.$r(1),input:"HdDrop",inputProp:{field:"IDV_COLUMN_TYPE"}},on:{change:e.columnTypeChange}}),e._v(" "),i("el-table-column",{attrs:{width:"110px",align:"center",label:"格式/代码",prop:"formatter",rules:e.$r(1)},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.isEdit?["DROP"==t.row.columnType?[i("sel-grid-fieldcode",{staticStyle:{width:"100%"},attrs:{gridRow:t.row,txtVal:t.row.formatter,idVal:t.row.formatter},on:{"update:txtVal":function(i){e.$set(t.row,"formatter",i)},"update:idVal":function(i){e.$set(t.row,"formatter",i)},blur:function(i){e.checkErr(t.row)}},model:{value:t.row.formatter,callback:function(i){e.$set(t.row,"formatter",i)},expression:"scope.row['formatter']"}})]:"NUMBER"==t.row.columnType?[i("HdDrop",{staticStyle:{width:"100%"},attrs:{gridRow:t.row,txtVal:t.row.formatterStr,idVal:t.row.formatter,field:"IDV_NUMBER_FORMATTER"},on:{"update:txtVal":function(i){e.$set(t.row,"formatterStr",i)},"update:idVal":function(i){e.$set(t.row,"formatter",i)},blur:function(i){e.checkErr(t.row)}},model:{value:t.row.formatter,callback:function(i){e.$set(t.row,"formatter",i)},expression:"scope.row['formatter']"}})]:"DATE"==t.row.columnType?[i("HdDrop",{staticStyle:{width:"100%"},attrs:{gridRow:t.row,txtVal:t.row.formatterStr,idVal:t.row.formatter,field:"IDV_DATE_FORMATTER"},on:{"update:txtVal":function(i){e.$set(t.row,"formatterStr",i)},"update:idVal":function(i){e.$set(t.row,"formatter",i)},blur:function(i){e.checkErr(t.row)}},model:{value:t.row.formatter,callback:function(i){e.$set(t.row,"formatter",i)},expression:"scope.row['formatter']"}})]:void 0]:e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"是否必填",prop:"columnRequire",input:"el-switch",inputProp:{"active-value":1,"inactive-value":0},inputFormat:e.$ckFt}}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"最大长度",prop:"columnLen",rules:e.$r(1,0,255,"number"),input:"HdNum"}}),e._v(" "),i("el-table-column",{attrs:{width:"100px",align:"center",label:"表格宽度",prop:"formSpan",rules:e.$r(1),input:"HdDrop",inputProp:{field:"IDV_FORM_SPAN"}}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"排序",width:"80px",noQuery:""},scopedSlots:e._u([{key:"default",fn:function(e){return[i("svg-icon",{staticClass:"drag-handler",attrs:{"icon-class":"drag"}})]}}])})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.visible=!1}}},[e._v(e._s(e.$t("取 消")))]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.submit}},[e._v(" "+e._s(e.$t("确 定")))])],1)],1)},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";t.a={data:function(){return{rowSelNum:-1}},methods:{addHotKey:function(){document.body.addEventListener("keydown",this.handleKeydown)},removeHotKey:function(){document.body.removeEventListener("keydown",this.handleKeydown)},handleKeydown:function(e){var t=e.keyCode;-1!==[38,40,37,39].indexOf(t)&&(38===t&&(this.rowSelNum-=1),40===t&&(this.rowSelNum+=1),37===t&&this.hdQuery.doCurPageChange(this.hdQuery.page-1),39===t&&this.hdQuery.doCurPageChange(this.hdQuery.page+1),e.stopPropagation(),e.preventDefault()),13===t&&(this.hdQuery.selRow?(this.$emit("enterClick",this.hdQuery.selRow),this.hdQuery.selRow=null):this.hdResultComRows.length>0&&(this.hdQuery.selRow=this.hdResultComRows[0],this.$emit("enterClick",this.hdResultComRows[0]),this.hdQuery.selRow=null)),e.altKey&&13===t&&this.$emit("altEnterClick",this.hdQuery.selRow)},setCurrentRow:function(e,t){this.rowSelNum=e,this.$refs.ingrid.setCurrentRow(this.hdResultComRows[e]),this.hdQuery&&(this.hdQuery.selRow=this.hdResultComRows[this.rowSelNum]);var i=this.$refs.ingrid.$el.querySelectorAll(".el-table__body tr")[e];if(!i)return!0;var o=this.$refs.ingrid.$el.querySelector(".el-table__body-wrapper"),n=(o.getBoundingClientRect().height,i.offsetTop),r=i.offsetTop+i.offsetHeight,s=o.scrollTop,l=s+o.clientHeight+i.clientHeight/3;n<s?o.scrollTop=n:r>l&&(o.scrollTop=o.scrollTop+i.clientHeight)},findLeafCol:function(e,t,i,o,n){if(e.children)for(var r=0;r<e.children.length;r++)this.findLeafCol(e.children[r],t,i,o,e);else t.push(e),n?i.push(n.label+"-"+e.label):i.push(e.label),o.push(e.property)},comExport:function(e){for(var t=[],i=[],o=[],n=0;n<this.disCol.length;n++){var r=this.disCol[n];r&&(r.property||r.children)&&r.showFlg&&"0"!=r.showFlg&&this.findLeafCol(r,o,t,i)}var s=this.formatJson(i,e,t),l=[t].concat(s);return this.summaryAdd(l,i.length),{header:t,filterVal:i,merdata:l,title:this.$route.meta.title+(new Date).format("yyyy-MM-dd HH:mm:ss")}},excelExport:function(e){var t=this.comExport(e),o={};if(this.excelFormatter)o=this.excelFormatter(t);else{var n=t.merdata;this.excelPropHeader&&(n=this.formatJson(t.filterVal,n)),o={header:n[0],data:n.slice(1),filename:t.title}}i(40).export_json_to_excel(o)},pdfExport:function(e){var t=this.comExport(e),i=t.header,o=(t.filterVal,t.merdata),n=t.title;this.$refs.pdfshow.genPdf(i,o,n)},summaryAdd:function(e,t){if(void 0!=this.$attrs.showSummary||void 0!=this.$attrs["show-summary"]){for(var i=[],o=0;o<this.disCol.length;o++){var n=this.disCol[o];n&&n.property&&n.showFlg&&i.push(n)}for(var r=new Array(t),s=this.$attrs.summaryMethod||this.$attrs["summary-method"],l=s({columns:i}),a=0;a<r.length;a++)l[a]?r[a]=l[a]:r[a]="";e.push(r)}},formatJson:function(e,t,i){var o=this;if(!t||0==t.length)return[];if(this.excelPropHeader)for(var n in t[0]){var r=!1;for(var s in e)if(e[s]==n){r=!0;break}r||e.push(n)}var l=["_obj","idevVersionUse","_map"];this.noExcelExport&&(l=l.concat(this.noExcelExport));for(var a=0;a<l.length;a++){var d=e.removeone(l[a]);-1!=d&&i.splice(d,1)}return t.map(function(t){return e.map(function(e){try{var i=o.getInputFormat(e);return i?i(t,e):t[e]+""}catch(e){return console.info(e),null}})})}},watch:{rowSelNum:function(e,t){if(e<0){if(0==this.hdResult.rows.length)return this.rowSelNum=-1,!1;this.rowSelNum=0}e>this.hdResult.rows.length-1&&(this.rowSelNum=this.hdResult.rows.length-1),this.hdQuery&&(this.hdQuery.selRow=this.hdResult.rows[this.rowSelNum]),this.setCurrentRow(this.rowSelNum,e-t>0)}}}},function(e,t,i){"use strict";function o(e){for(var t=[],i=e.querySelectorAll("tr"),o=[],n=0;n<i.length;++n){for(var r=[],s=i[n],l=s.querySelectorAll("td"),a=0;a<l.length;++a){var d=l[a],c=d.getAttribute("colspan"),u=d.getAttribute("rowspan"),h=d.innerText;if(""!==h&&h==+h&&(h=+h),o.forEach(function(e){if(n>=e.s.r&&n<=e.e.r&&r.length>=e.s.c&&r.length<=e.e.c)for(var t=0;t<=e.e.c-e.s.c;++t)r.push(null)}),(u||c)&&(u=u||1,c=c||1,o.push({s:{r:n,c:r.length},e:{r:n+u-1,c:r.length+c-1}})),r.push(""!==h?h:null),c)for(var f=0;f<c-1;++f)r.push(null)}t.push(r)}return[t,o]}function n(e,t){return t&&(e+=1462),(Date.parse(e)-new Date(Date.UTC(1899,11,30)))/864e5}function r(e,t){for(var i={},o={s:{c:1e7,r:1e7},e:{c:0,r:0}},r=0;r!=e.length;++r)for(var s=0;s!=e[r].length;++s){o.s.r>r&&(o.s.r=r),o.s.c>s&&(o.s.c=s),o.e.r<r&&(o.e.r=r),o.e.c<s&&(o.e.c=s);var l={v:e[r][s]};if(null!=l.v){var a=p.a.utils.encode_cell({c:s,r:r});"number"==typeof l.v?l.t="n":"boolean"==typeof l.v?l.t="b":l.v instanceof Date?(l.t="n",l.z=p.a.SSF._table[14],l.v=n(l.v)):l.t="s",i[a]=l}}return o.s.c<1e7&&(i["!ref"]=p.a.utils.encode_range(o)),i}function s(){if(!(this instanceof s))return new s;this.SheetNames=[],this.Sheets={}}function l(e){for(var t=new ArrayBuffer(e.length),i=new Uint8Array(t),o=0;o!=e.length;++o)i[o]=255&e.charCodeAt(o);return t}function a(e){var t=document.getElementById(e),i=o(t),n=i[1],a=i[0],d=new s,c=r(a);c["!merges"]=n,d.SheetNames.push("SheetJS"),d.Sheets.SheetJS=c;var u=p.a.write(d,{bookType:"xlsx",bookSST:!1,type:"binary"});Object(h.saveAs)(new Blob([l(u)],{type:"application/octet-stream"}),"test.xlsx")}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.multiHeader,i=void 0===t?[]:t,o=e.header,n=e.data,a=e.filename,d=e.merges,c=void 0===d?[]:d,f=e.autoWidth,g=void 0===f||f,m=e.bookType,v=void 0===m?"xlsx":m;a=a||"excel-list",n=[].concat(u()(n)),n.unshift(o);for(var w=i.length-1;w>-1;w--)n.unshift(i[w]);var b=new s,x=r(n);if(c.length>0&&(x["!merges"]||(x["!merges"]=[]),c.forEach(function(e){x["!merges"].push(p.a.utils.decode_range(e))})),g){for(var y=n.map(function(e){return e.map(function(e){return null==e?{wch:10}:e.toString().charCodeAt(0)>255?{wch:2*e.toString().length}:{wch:e.toString().length}})}),_=y[0],S=1;S<y.length;S++)for(var $=0;$<y[S].length;$++)_[$].wch<y[S][$].wch&&(_[$].wch=y[S][$].wch);x["!cols"]=_}b.SheetNames.push("SheetJS"),b.Sheets.SheetJS=x;var R=p.a.write(b,{bookType:v,bookSST:!1,type:"binary"});Object(h.saveAs)(new Blob([l(R)],{type:"application/octet-stream"}),a+"."+v)}Object.defineProperty(t,"__esModule",{value:!0}),t.export_table_to_excel=a,t.export_json_to_excel=d;var c=i(6),u=i.n(c),h=i(41),f=(i.n(h),i(23)),p=i.n(f)},function(e,t){e.exports=require("file-saver")},function(e,t,i){"use strict";function o(e){i(43)}var n=i(16),r=i(47),s=i(0),l=o,a=s(n.a,r.a,!1,l,"data-v-6bc33797",null);t.a=a.exports},function(e,t,i){var o=i(44);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("d86d12e2",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,".pdfshow[data-v-6bc33797] .el-dialog__body{width:100%;height:calc(100% - 55px)}",""])},function(e,t){e.exports=require("jspdf")},function(e,t){e.exports=require("jspdf-autotable")},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{staticClass:"pdfshow",attrs:{fullscreen:!0,title:e.gening?"正在生成pdf":"PDF预览",visible:e.visible},on:{"update:visible":function(t){e.visible=t},close:function(t){e.$emit("close")}}},[i("el-row",[i("el-col",{attrs:{span:4}},[i("el-switch",{attrs:{"active-text":e.$t("横向显示"),"inactive-text":e.$t("竖向显示")},on:{change:function(t){e.initPdf()}},model:{value:e.isLandscape,callback:function(t){e.isLandscape=t},expression:"isLandscape"}})],1),e._v(" "),i("el-col",{attrs:{span:4}},[e._v("\n "+e._s(e.$t("字号"))+"\n "),i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:!1,placeholder:e.$t("请输入字号"),size:"mini"},model:{value:e.fontSize,callback:function(t){e.fontSize=e._n(t)},expression:"fontSize"}})],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-pagination",{attrs:{"current-page":e.currentPage,"page-size":e.pageSize,"page-sizes":[100,200,400],total:e.totalSize,layout:"sizes, prev, pager, next"},on:{"update:currentPage":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"current-change":function(t){e.initPdf()},"size-change":function(t){e.initPdf()}}})],1),e._v(" "),i("el-col",{attrs:{span:4}},[i("el-button",{on:{click:function(t){e.refreshGridData()}}},[e._v(e._s(e.$t("刷新")))])],1)],1),e._v(" "),i("el-row",[i("el-checkbox-group",{model:{value:e.pdfExport,callback:function(t){e.pdfExport=t},expression:"pdfExport"}},e._l(e.resultData[0],function(t,o){return i("el-checkbox",{key:o,attrs:{label:o}},[e._v(e._s(t))])}))],1),e._v(" "),i("object",{staticStyle:{width:"100%",height:"calc(100% - 40px)"},attrs:{id:"output",type:"application/pdf"}},[i("p",[e._v("It appears you don't have PDF support in this web browser")])])],1)},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";t.a={data:function(){return{gridDataRows:[],startIndex:0,scroller:0,trHeight:35.5,minRowNum:0,tmpScrollNum:0}},activated:function(){if(!this.visualScroll)return!1;this.scroller=this.$refs.ingrid.$refs.bodyWrapper.scrollTop},methods:{initVisual:function(){var e=this;if(!this.visualScroll)return!1;this.initTableStyle();var t=this.$refs.ingrid.$refs.bodyWrapper,i=this;t.onscroll=function(o){i.tmpScrollNum++,e.$refs.ingrid.store.states.hoverRow="locked",i.scroller=t.scrollTop,setTimeout(function(){0==--i.tmpScrollNum&&(e.$refs.ingrid.store.states.hoverRow=null)},500)}},initTableStyle:function(){this.$refs.ingrid.$refs.bodyWrapper.querySelector("tbody").style.position="absolute"},initTableHeight:function(){var e=this.hdResult.rows.length*this.trHeight,t=this.$refs.ingrid.$refs.bodyWrapper;t.querySelector(".el-table__body").style.height=e+"px",this.updateGridDataRows(t.scrollTop,t.clientHeight)},updateGridDataRows:function(e,t){t=t>this.minRowNum*this.trHeight?t:this.minRowNum*this.trHeight;var i=Math.ceil(e/this.trHeight);i=i<0?0:i;var o=Math.ceil((e+t)/this.trHeight);o=o>this.hdResult.rows.length?this.hdResult.rows.length:o,this.gridDataRows=this.hdResult.rows.slice(i,o),this.startIndex=i,this.$refs.ingrid.setCurrentRow(this.hdQuery.selRow)},getIndex:function(e){return this.startIndex+e},checkAllChange:function(e){for(var t=0;t<this.hdResult.rows.length;t++)this.$set(this.hdResult.rows[t],"_isCK",e)}},watch:{scroller:function(e,t){if(!this.visualScroll)return!1;var i=this.$refs.ingrid.$refs.bodyWrapper,o=this.$refs.ingrid.$refs.fixedBodyWrapper,n=this.$refs.ingrid.$refs.rightFixedBodyWrapper,r=i.clientHeight;e!=t&&(i.querySelector("tbody").style.transform="translate(0px,"+e+"px)",o&&(o.scrollTop=0),n&&(n.scrollTop=0),this.updateGridDataRows(e,r))},"hdResult.rows":function(){var e=this;if(!this.visualScroll)return!1;this.hdResult.rows.filter(function(e){return!e._isCK}).forEach(function(t){e.$set(t,"_isCk",!1)}),this.initTableHeight()}},computed:{isSubChecked:function(){if(!this.visualScroll)return!1;var e=!1,t=!1;return!(!this.hdResult.rows||0==this.hdResult.rows.length)&&(this.hdResult.rows.forEach(function(i){i._isCK&&(e=!0),i._isCK||(t=!0)}),e&&t)},isAllChecked:function(){if(!this.visualScroll)return!1;var e=!0;return!(!this.hdResult.rows||0==this.hdResult.rows.length)&&(this.hdResult.rows.forEach(function(t){t._isCK||(e=!1)}),e)}}}},function(e,t,i){"use strict";function o(e){i(50)}var n=i(17),r=i(53),s=i(0),l=o,a=s(n.a,r.a,!1,l,"data-v-47c19530",null);t.a=a.exports},function(e,t,i){var o=i(51);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i(2)("6cf9b2ba",o,!0,{})},function(e,t,i){t=e.exports=i(1)(void 0),t.push([e.i,"",""])},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__.a={methods:{genFormatter:function genFormatter(formatter){var rtn=eval("this."+formatter);return rtn},genRules:function genRules(field){if(field.rules)return eval("this."+field.rules);var require=field.columnRequire?field.columnRequire:"0",rules="";return rules="DROP"==field.columnType||"DATE"==field.columnType||"BOOLEAN"==field.columnType?"this.$r("+require+")":"NUMBER"==field.columnType?"this.$r("+require+", 0, "+this.repeat("9",field.columnLen)+",'number',"+field.formatter+")":"this.$r("+require+", 0, "+field.columnLen+")",eval(rules)},repeat:function(e,t){return new Array(t+1).join(e)}}}},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return"BOOLEAN"==e.exFieldRow.columnType?i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{align:"center","input-format":e.$ckFt,input:"el-switch",inputProp:{activeValue:"1",inactiveValue:"0"},label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}}):"DROP"==e.exFieldRow.columnType?i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{align:"center","input-format":function(t){return e.genCode(t,e.exFieldRow.formatter)},input:"HdDrop",inputProp:{field:e.exFieldRow.formatter},label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}}):"DATE"==e.exFieldRow.columnType?i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{inputProp:e.genFormatter(e.exFieldRow.formatter),align:"center",input:"el-date-picker",label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}}):"NUMBER"==e.exFieldRow.columnType?i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{align:"center",input:"HdNum",label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}}):i("el-table-column",{key:e.exFieldRow.exFieldId,attrs:{align:"center",label:e.exFieldRow.columnComment,rules:e.genRules(e.exFieldRow),prop:e.exFieldRow.fieldName,sortable:"",width:null==e.exFieldRow.gridWidth?"auto":e.exFieldRow.gridWidth}})},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";var o=i(22),n=i(55),r=i(0),s=r(o.a,n.a,!1,null,null,null);t.a=s.exports},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"menu"},[e._t("rightMenu",[i("el-button-group",[i("hd-button",{staticClass:"rightmenu_button",attrs:{vid:"doAdd"},on:{click:e.doAdd}},[e._v("增加\n ")]),e._v(" "),i("hd-button",{staticClass:"rightmenu_button",attrs:{vid:"doUpdate"},on:{click:e.doUpdate}},[e._v("修改\n ")]),e._v(" "),i("hd-button",{staticClass:"rightmenu_button",attrs:{vid:"doRemove"},on:{click:e.doRemove}},[e._v("删除\n ")]),e._v(" "),i("hd-button",{staticClass:"rightmenu_button",attrs:{vid:"doCopy"},on:{click:e.doCopy}},[e._v("复制\n ")])],1),e._v(" "),this.$slots.rightMenuExt?i("div",{staticStyle:{border:"#555 1px solid"}}):e._e(),e._v(" "),i("el-button-group",[e._t("rightMenuExt")],2)])],2)},n=[],r={render:o,staticRenderFns:n};t.a=r},function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"grid",staticClass:"hdgrid",style:{width:"100%",height:e.height}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.queryShow,expression:"queryShow"}]},[e._t("query")],2),e._v(" "),e.noSets?e._e():i("div",{staticStyle:{height:"0px"}},[i("el-dropdown",{staticStyle:{float:"right",height:"0",width:"20px",position:"relative",right:"0px","text-align":"center","z-index":"100",cursor:"pointer","font-size":"25px"},on:{command:e.extSets}},[i("span",{staticClass:"el-dropdown-link"},[i("i",{staticClass:"fa fa-cogs",style:{"font-size":"13px",color:e.isGridCustom?"red !important":""}})]),e._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{command:"gridSets"}},[e._v(e._s(e.$t("自定义展示")))]),e._v(" "),i("el-dropdown-item",{attrs:{command:"pageExcel"}},[e._v(e._s(e.$t("导出当页excel"))+"\n ")]),e._v(" "),i("el-dropdown-item",{attrs:{disabled:e.excelAllExporting,command:"allExcel"}},[e._v("\n "+e._s(e.excelAllExporting?e.$t("正在导出"):e.$t("导出全部excel"))+"\n ")]),e._v(" "),i("el-dropdown-item",{attrs:{disabled:e.pdfAllExporting,command:"allPdf"}},[e._v("\n "+e._s(e.pdfAllExporting?e.$t("正在生成"):e.$t("pdf打印"))+"\n ")]),e._v(" "),i("el-dropdown-item",{attrs:{command:"queryToggle"}},[e._v(e._s(e.queryShow?e.$t("隐藏查询区"):e.$t("显示查询区")))]),e._v(" "),e.exField.open?i("el-dropdown-item",{attrs:{command:"exFieldSets"}},[e._v(e._s(e.$t("添加扩展字段")))]):e._e(),e._v(" "),e._t("extSets")],2)],1)],1),e._v(" "),e.gridCanReload?i("el-table",e._g(e._b({ref:"ingrid",attrs:{data:e.hdResultComRows,"default-sort":e.defaultSort,"row-class-name":e.rowClassName,stripe:void 0==e.$attrs.stripe||e.$attrs.stripe,border:"","element-loading-text":"加载中...",height:"100%","highlight-current-row":""},on:{"row-click":e.myrowClick,"row-dblclick":e.myrowDblClick,"row-contextmenu":e.myrowContextmenu,"selection-change":e.myselectionChange,"sort-change":e.dodefaultSort,"filter-change":e.filterChange}},"el-table",e.$attrs,!1),e.$listeners),[e.visualScroll?[e.ckHide?e._e():i("ex-table-column",{attrs:{showOverflowTooltip:!0,align:"center","class-name":"checkBox",noEdit:"",noSlot:"",width:"30"},scopedSlots:e._u([{key:"header",fn:function(t){return[i("el-checkbox",{attrs:{indeterminate:e.isSubChecked,value:e.isAllChecked},on:{change:e.checkAllChange}})]}},{key:"default",fn:function(t){return[i("el-checkbox",{model:{value:t.row._isCK,callback:function(i){e.$set(t.row,"_isCK",i)},expression:"scope.row._isCK"}})]}}])}),e._v(" "),e.indexHide?e._e():i("ex-table-column",{attrs:{index:e.getIndex,showOverflowTooltip:!0,align:"center",noEdit:"",noSlot:"",type:"index",width:"40"},scopedSlots:e._u([{key:"header",fn:function(t){return[i("span",[e._v("#")])]}},{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+e.startIndex+1)+"\n ")]}}])})]:[e.ckHide?e._e():i("ExTableColumn",{attrs:{showOverflowTooltip:!1,align:"center","class-name":"backFF",noEdit:"",noSlot:"",type:"selection",width:"30"}}),e._v(" "),e.indexHide?e._e():i("ex-table-column",{attrs:{showOverflowTooltip:!1,align:"center",noEdit:"",noSlot:"",type:"index",width:"40"},scopedSlots:e._u([{key:"header",fn:function(t){return[i("span",[e._v("#")])]}}])})],e._v(" "),e._t("default"),e._v(" "),e.exField.gridCode?[e._l(e.exFieldRows,function(e){return[i("ExtendColumn",{attrs:{exFieldRow:e}})]})]:e._e(),e._v(" "),e.recHide?e._e():[i("el-table-column",{attrs:{align:"left","header-align":"center",label:"创建人",noEdit:"",prop:"recNam",sortable:"",width:"auto"}}),e._v(" "),i("el-table-column",{attrs:{inputProp:e.$date,align:"center",input:"el-date-picker",label:"创建时间",noEdit:"",prop:"recTim",sortable:"",width:"135px"}}),e._v(" "),i("el-table-column",{attrs:{align:"left","header-align":"center",label:"更新人",noEdit:"",prop:"updNam",sortable:"",width:"auto"}}),e._v(" "),i("el-table-column",{attrs:{inputProp:e.$date,align:"center",input:"el-date-picker",label:"更新时间",noEdit:"",prop:"updTim",sortable:"",width:"135px"}})]],2):e._e(),e._v(" "),!e.pageHide||e.showBtnTool?i("div",{ref:"pagecon",staticClass:"pagination-container",staticStyle:{height:"26px",overflow:"hidden"}},[e.showBtnTool?i("div",{staticStyle:{float:"left"}},[e._t("btnTool",[e.addHide?e._e():i("hd-btn",{staticClass:"hdBtnTool",attrs:{icon:"el-icon-plus",hint:"增加",vid:"doAdd",keyType:"add"},on:{click:e.doAdd}}),e._v(" "),e.delHide?e._e():i("hd-btn",{staticClass:"hdBtnTool",attrs:{icon:"el-icon-minus",hint:"删除",keyType:"del"},on:{click:e.doRemove}}),e._v(" "),e.saveHide?e._e():i("hd-btn",{staticClass:"hdBtnTool",attrs:{icon:"el-icon-check",hint:"保存",keyType:"save"},on:{click:e.doSave}})])],2):e._e(),e._v(" "),e.pageHide?e._e():i("el-pagination",{staticStyle:{float:"right"},attrs:{"current-page":e.hdQuery.page,"page-size":e.hdQuery.rows,"page-sizes":e.pageSizeArray,total:e.hdResult.total,layout:" total, slot, prev, pager, next,sizes",small:""},on:{"update:currentPage":function(t){e.$set(e.hdQuery,"page",t)},"current-change":e.hdQuery.doCurPageChange,"size-change":e.rowSizeChg}})],1):e._e(),e._v(" "),e.gridShowIs?i("GridShow",{ref:"gridShow",on:{"save-ok":function(t){e.gridShow()}}}):e._e(),e._v(" "),e.exField.open&&e.exFieldShowIs?i("GridExField",{ref:"exFieldShow",attrs:{columnList:e.exField.columnList,gridCode:e.exField.gridCode,table:e.exField.table},on:{"save-ok":function(t){e.exFieldShow()}}}):e._e(),e._v(" "),e.pdfShowIs?i("PdfShow",{ref:"pdfshow",attrs:{gening:e.pdfAllExporting},on:{close:function(t){e.pdfShowIs=!1}}}):e._e(),e._v(" "),i("hd-right-menu",{directives:[{name:"show",rawName:"v-show",value:e.rightMenuVisable,expression:"rightMenuVisable"}],ref:"rightMenu",on:{"do-add":e.doAdd,"do-update":e.doUpdateOne,"do-remove":e.doRemoveOne,"do-copy":e.doCopyOne}},[i("template",{slot:"rightMenu"},[e._t("rightMenu")],2),e._v(" "),i("template",{slot:"rightMenuExt"},[e._t("rightMenuExt")],2)],2)],1)},n=[],r={render:o,staticRenderFns:n};t.a=r}]);
@@ -0,0 +1 @@
1
+ module.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=77)}({0:function(e,t){e.exports=function(e,t,n,r,o,s){var i,a=e=e||{},u=typeof e.default;"object"!==u&&"function"!==u||(i=e,a=e.default);var c="function"==typeof a?a.options:a;t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId=o);var f;if(s?(f=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=f):r&&(f=r),f){var d=c.functional,p=d?c.render:c.beforeCreate;d?(c._injectStyles=f,c.render=function(e,t){return f.call(t),p(e,t)}):c.beforeCreate=p?[].concat(p,f):[f]}return{esModule:i,exports:a,options:c}}},1:function(e,t){function n(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var s=r(o);return[n].concat(o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"})).concat([s]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var s=this[o][0];"number"==typeof s&&(r[s]=!0)}for(o=0;o<e.length;o++){var i=e[o];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),t.push(i))}},t}},2:function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=f[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(s(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{for(var i=[],o=0;o<n.parts.length;o++)i.push(s(n.parts[o]));f[n.id]={id:n.id,refs:1,parts:i}}}}function o(){var e=document.createElement("style");return e.type="text/css",d.appendChild(e),e}function s(e){var t,n,r=document.querySelector("style["+m+'~="'+e.id+'"]');if(r){if(h)return v;r.parentNode.removeChild(r)}if(y){var s=l++;r=p||(p=o()),t=i.bind(null,r,s,!1),n=i.bind(null,r,s,!0)}else r=o(),t=a.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function i(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var s=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(s,i[t]):e.appendChild(s)}}function a(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),g.ssrId&&e.setAttribute(m,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var u="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!u)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 c=n(4),f={},d=u&&(document.head||document.getElementsByTagName("head")[0]),p=null,l=0,h=!1,v=function(){},g=null,m="data-vue-ssr-id",y="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n,o){h=n,g=o||{};var s=c(e,t);return r(s),function(t){for(var n=[],o=0;o<s.length;o++){var i=s[o],a=f[i.id];a.refs--,n.push(a)}t?(s=c(e,t),r(s)):s=[];for(var o=0;o<n.length;o++){var a=n[o];if(0===a.refs){for(var u=0;u<a.parts.length;u++)a.parts[u]();delete f[a.id]}}}};var _=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},4:function(e,t){e.exports=function(e,t){for(var n=[],r={},o=0;o<t.length;o++){var s=t[o],i=s[0],a=s[1],u=s[2],c=s[3],f={id:e+":"+o,css:a,media:u,sourceMap:c};r[i]?r[i].parts.push(f):n.push(r[i]={id:i,parts:[f]})}return n}},58:function(e,t,n){"use strict";t.a={name:"HdHotKey",data:function(){return{isFocus:!1,rangeThis:{}}},props:["keyMap","hotKeyRange"],created:function(){this.rangeThis=this.getRangeThis(),this.$set(this.$store.state,"IdevFocus",-1)},mounted:function(){var e=this;this.$nextTick(function(){if(e.rangeThis){var t=e.rangeThis.$el;t.onmouseenter=function(){"-1"!=e.$store.state.hotKey&&e.$set(e.$store.state,"IdevFocus",e.rangeThis._uid)},t.onmouseleave=function(){e.$set(e.$store.state,"IdevFocus","-1")}}})},methods:{getRangeThis:function(){for(var e=this.$parent;e;){if(e.$options._componentTag==this.hotKeyRange)return e;e=e.$parent}return null},doMethod:function(e){this.$emit("do",e)}},watch:{"$store.state.IdevFocus":function(){if(!this.rangeThis)return!1;this.rangeThis.$el&&(this.$store.state.IdevFocus==this.rangeThis._uid?this.isFocus=!0:this.isFocus=!1)}}}},77:function(e,t,n){"use strict";function r(e){n(78)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(58),s=n(80),i=n(0),a=r,u=i(o.a,s.a,!1,a,null,null);t.default=u.exports},78:function(e,t,n){var r=n(79);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(2)("347069e0",r,!0,{})},79:function(e,t,n){t=e.exports=n(1)(void 0),t.push([e.i,"",""])},80:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isFocus?n("div",{directives:[{name:"shortkey",rawName:"v-shortkey",value:e.keyMap,expression:"keyMap"}],on:{shortkey:e.doMethod}}):e._e()},o=[],s={render:r,staticRenderFns:o};t.a=s}});
@@ -0,0 +1 @@
1
+ module.exports=function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=104)}({0:function(t,e){t.exports=function(t,e,r,n,o,i){var a,s=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(a=t,s=t.default);var l="function"==typeof s?s.options:s;e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=o);var f;if(i?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=f):n&&(f=n),f){var c=l.functional,d=c?l.render:l.beforeCreate;c?(l._injectStyles=f,l.render=function(t,e){return f.call(e),d(t,e)}):l.beforeCreate=d?[].concat(d,f):[f]}return{esModule:a,exports:s,options:l}}},104:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(66),o=r(106),i=r(0),a=i(n.a,o.a,!1,null,null,null);e.default=a.exports},105:function(t,e){t.exports=require("async-validator")},106:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.btnRight&&t.isShow?t.$slots.default?t.$slots.default?r("ExTableColumn",t._g(t._b({attrs:{label:t.$t(t.$attrs.label),sortable:t.realSortable,width:t.autoWidth,showOverflowTooltip:t.showOverflowTooltip}},"ExTableColumn",t.$attrs,!1),t.$listeners),[t._t("default")],2):r("ExTableColumn",t._g(t._b({attrs:{label:t.$t(t.$attrs.label),sortable:t.realSortable,width:t.autoWidth,showOverflowTooltip:t.showOverflowTooltip}},"ExTableColumn",t.$attrs,!1),t.$listeners)):r("ExTableColumn",t._g(t._b({attrs:{"class-name":t.getClassName(t.$attrs),label:t.$t(t.$attrs.label),sortable:t.realSortable,width:t.autoWidth,showOverflowTooltip:t.showOverflowTooltip,filters:t.filterData,"filter-method":t.isOpenFilter?function(){return!0}:null},scopedSlots:t._u([{key:"default",fn:function(e){return[t._t("default",[e.row.isEdit&&!t.noEdit?[r(t.input,t._b({tag:"component",staticStyle:{width:"100%"},attrs:{gridRow:e.row,idVal:e.row[t.$attrs.idVal],txtVal:e.row[t.$attrs.txtVal]},on:{"update:idVal":function(r){t.$set(e.row,t.$attrs.idVal,r)},"update:txtVal":function(r){t.$set(e.row,t.$attrs.txtVal,r)},blur:function(r){t.checkErr(e.row)},change:function(r){t.$emit("change",r,e.row)},selItem:function(r){t.selItem(e.row,r)}},model:{value:e.row[t.$attrs.prop],callback:function(r){t.$set(e.row,t.$attrs.prop,r)},expression:"scope.row[$attrs.prop]"}},"component",t.inputProp,!1))]:t.isHtml?[r("div",{domProps:{innerHTML:t._s(t.getValueByPath(e.row,t.$attrs.prop))}})]:[t._v(t._s(t.getValueByPath(e.row,t.$attrs.prop)))]],{index:e.$index,row:e.row}),t._v(" "),e.row.isEdit&&!t.noEdit?[r("ErrHint",{attrs:{errMsg:e.row["_err_"+t.$attrs.prop]},on:{checkErr:function(r){t.checkErr(e.row,r)}},model:{value:e.row[t.$attrs.prop],callback:function(r){t.$set(e.row,t.$attrs.prop,r)},expression:"scope.row[$attrs.prop]"}})]:t._e()]}}])},"ExTableColumn",t.$attrs,!1),t.$listeners)):r("div")},o=[],i={render:n,staticRenderFns:o};e.a=i},11:function(t,e){t.exports=require("babel-runtime/core-js/object/keys")},3:function(t,e,r){"use strict";e.a={name:"BtnRight",data:function(){return{btnRight:!0}},created:function(){},methods:{getName:function(){},checkRight:function(){if(!this.$store)return!0;var t=this.$store.state.user.hidBtns,e=this.findNameCombine();if(!e)return!0;var r=this.$route.name;if(t&&t.length>0)for(var n=0;n<t.length;n++){var o=t[n];o.menuId==r&&e==o.permissions&&(this.btnRight=!1)}},addBtnMetaToParent:function(){if(!this.$route.meta.btnRole)return!1;var t=this.findNameCombine();if(!t)return!1;var e={name:this.getName(),permissions:t};this.checkIsSame(e)||this.$route.meta.btnRole.push(e)},checkIsSame:function(t){for(var e=this.$route.meta.btnRole,r=0;r<e.length;r++){if(e[r].permissions==t.permissions)return!0}return!1},findNameCombine:function(){if(this.vid)return this.vid;var t=this.$vnode.context,e=t.$options.name;return"HdFormDialog"==e&&(e=this.findNameFromFile(t.$vnode.context.$options.name)),e||(e="noname"),e+"_"+this.getName()},findNameFromFile:function(t){if(!t)return!1;var e=t.split("\\");return e[e.length-1].split(".")[0]},findRoleSetParent:function(){for(var t=this.$parent.$parent;t&&"btnRole"==!t.$options.name;)t=t.$parent;return t}}}},66:function(t,e,r){"use strict";var n=r(11),o=r.n(n),i=r(105),a=r.n(i),s=r(7);e.a={name:"ElTableColumn",inheritAttrs:!1,components:{},mixins:[s.a],props:{input:{type:[String,Object],default:function(){return"ElInput"}},inputProp:Object,inputFormat:Function,selFormat:Function,noEdit:{type:Boolean,default:function(){return!1}},noZeroHide:{type:Boolean,default:!1},noQuery:Boolean,sortable:{type:Boolean,default:function(){return!1}},rules:Array,perWidth:{type:Number,default:12},showOverflowTooltip:{type:Boolean,default:function(){return!0}},openFilter:{type:Boolean,default:function(){return!1}},isHtml:{type:Boolean,default:function(){return!1}}},mounted:function(){this.isFixDo();var t=this.getHdComGrid();if(t){var e=t.validate;e&&this.rules&&(e[this.$attrs.prop]=this.rules),this.$attrs.prop&&!this.noQuery&&t.allColumn.push(this)}var r=this.getHdGrid();r&&r.colThis.push(this)},data:function(){return{comdata:null,btnRight:!0,isShow:!0}},updated:function(){},methods:{isFixDo:function(){this.$attrs.fixed&&"right"==this.$attrs.fixed&&(this.addBtnMetaToParent(),this.checkRight(),this.getHdComGrid().columnFlowThis=this)},getName:function(){return this.$t("列表浮动区")},selItem:function(t,e){if(this.selFormat)return this.selFormat(t,this.$attrs.prop,e)},checkErr:function(t){var e=this;this.validate(t[this.$attrs.prop],function(r){e.$set(t,"_err_"+e.$attrs.prop,r)})},getRules:function(){var t=this.getHdComGrid();if(t){return t.validate}return!1},getHdComGrid:function(){for(var t=this.$parent;t;){if("HdComGrid"==t.$options.name)return t;t=t.$parent}return null},getHdGrid:function(){for(var t=this.$parent;t;){if("HdGrid"==t.$options.name)return t;t=t.$parent}return null},validate:function(t,e){var r={},n=this.getRules();if(!n)return!1;var o=n[this.$attrs.prop];if(!o)return!1;r[this.$attrs.prop]=o;var i=new a.a(r),s={};s[this.$attrs.prop]=t,i.validate(s,{firstFields:!0},function(t,r){e(t?t[0].message:"")})},getValueByPath:function(t,e){e=e||"";for(var r=e.split("."),n=t,o=null,i=0,a=r.length;i<a;i++){var s=r[i];if(!n)break;if(i===a-1){o=n[s];break}n=n[s]}return this.inputFormat?this.inputFormat(o,t,e):this.$attrs.txtVal?t[this.$attrs.txtVal]:0!==o||this.noZeroHide?o:""},getRealWidth:function(t){for(var e=t.length,r=0,n=0;n<e;n++)0!=(65280&t.charCodeAt(n))&&r++,r++;return r},getClassName:function(t){var e=t["class-name"]?t["class-name"]:"";return(t.fixed?"backFF":"")+e}},computed:{autoWidth:function(){return"auto"==this.$attrs.width?this.$attrs.label?this.perWidth*this.getRealWidth(this.$t(this.$attrs.label))+17:100:this.$attrs.width},filterData:function(){var t=this;if(this.getHdComGrid()&&this.getHdComGrid().hdResult&&this.getHdComGrid().hdResult._rows){var e=[],r={};return this.getHdComGrid().hdResult._rows.forEach(function(e){var n=e[t.$attrs.prop]||null,o=t.getValueByPath(e,t.$attrs.prop)||"";r[n]?r[n].number++:r[n]={number:1,text:o}}),this.$nextTick(function(t){o()(r).forEach(function(t){e.push({text:r[t].text+"("+r[t].number+")",value:t})})}),e}},isOpenFilter:function(){return this.openFilter&&"操作"!=this.$attrs.label},realSortable:function(){return!!this.sortable&&"custom"}}}},7:function(t,e,r){"use strict";var n=r(3),o=r(0),i=o(n.a,null,!1,null,null,null);e.a=i.exports}});
@@ -0,0 +1 @@
1
+ module.exports=function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=67)}({0:function(e,t){e.exports=function(e,t,n,r,a,o){var i,l=e=e||{},s=typeof e.default;"object"!==s&&"function"!==s||(i=e,l=e.default);var c="function"==typeof l?l.options:l;t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),a&&(c._scopeId=a);var d;if(o?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=d):r&&(d=r),d){var u=c.functional,p=u?c.render:c.beforeCreate;u?(c._injectStyles=d,c.render=function(e,t){return d.call(t),p(e,t)}):c.beforeCreate=p?[].concat(p,d):[d]}return{esModule:i,exports:l,options:c}}},1:function(e,t){function n(e,t){var n=e[1]||"",a=e[3];if(!a)return n;if(t&&"function"==typeof btoa){var o=r(a);return[n].concat(a.sources.map(function(e){return"/*# sourceURL="+a.sourceRoot+e+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},a=0;a<this.length;a++){var o=this[a][0];"number"==typeof o&&(r[o]=!0)}for(a=0;a<e.length;a++){var i=e[a];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),t.push(i))}},t}},2:function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=d[n.id];if(r){r.refs++;for(var a=0;a<r.parts.length;a++)r.parts[a](n.parts[a]);for(;a<n.parts.length;a++)r.parts.push(o(n.parts[a]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{for(var i=[],a=0;a<n.parts.length;a++)i.push(o(n.parts[a]));d[n.id]={id:n.id,refs:1,parts:i}}}}function a(){var e=document.createElement("style");return e.type="text/css",u.appendChild(e),e}function o(e){var t,n,r=document.querySelector("style["+_+'~="'+e.id+'"]');if(r){if(h)return v;r.parentNode.removeChild(r)}if(m){var o=f++;r=p||(p=a()),t=i.bind(null,r,o,!1),n=i.bind(null,r,o,!0)}else r=a(),t=l.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function i(e,t,n,r){var a=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=g(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function l(e,t){var n=t.css,r=t.media,a=t.sourceMap;if(r&&e.setAttribute("media",r),b.ssrId&&e.setAttribute(_,t.id),a&&(n+="\n/*# sourceURL="+a.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var s="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!s)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 c=n(4),d={},u=s&&(document.head||document.getElementsByTagName("head")[0]),p=null,f=0,h=!1,v=function(){},b=null,_="data-vue-ssr-id",m="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n,a){h=n,b=a||{};var o=c(e,t);return r(o),function(t){for(var n=[],a=0;a<o.length;a++){var i=o[a],l=d[i.id];l.refs--,n.push(l)}t?(o=c(e,t),r(o)):o=[];for(var a=0;a<n.length;a++){var l=n[a];if(0===l.refs){for(var s=0;s<l.parts.length;s++)l.parts[s]();delete d[l.id]}}}};var g=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},4:function(e,t){e.exports=function(e,t){for(var n=[],r={},a=0;a<t.length;a++){var o=t[a],i=o[0],l=o[1],s=o[2],c=o[3],d={id:e+":"+a,css:l,media:s,sourceMap:c};r[i]?r[i].parts.push(d):n.push(r[i]={id:i,parts:[d]})}return n}},57:function(e,t,n){"use strict";var r=n(72),a=n.n(r),o=n(73);t.a={name:"treeTable",props:{data:{type:[Array,Object],required:!0},columns:{type:Array,default:function(){return[]}},evalFunc:Function,evalArgs:Array,expandAll:{type:Boolean,default:!1}},computed:{formatData:function(){var e=void 0;e=Array.isArray(this.data)?this.data:[this.data];var t=this.evalFunc||o.a,n=this.evalArgs?a()([e,this.expandAll],this.evalArgs):[e,this.expandAll];return t.apply(null,n)}},methods:{showRow:function(e){var t=!e.row.parent||e.row.parent._expanded&&e.row.parent._show;return e.row._show=t,t?"animation:treeTableShow 1s;-webkit-animation:treeTableShow 1s;":"display:none;"},toggleExpanded:function(e){var t=this.formatData[e];t._expanded=!t._expanded},iconShow:function(e,t){return 0===e&&t.children&&t.children.length>0}}}},67:function(e,t,n){"use strict";function r(e){n(68),n(70)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(57),o=n(76),i=n(0),l=r,s=i(a.a,o.a,!1,l,"data-v-4e6c8ebe",null);t.default=s.exports},68:function(e,t,n){var r=n(69);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(2)("6acf1827",r,!0,{})},69:function(e,t,n){t=e.exports=n(1)(void 0),t.push([e.i,"@keyframes treeTableShow{0%{opacity:0}to{opacity:1}}@-webkit-keyframes treeTableShow{0%{opacity:0}to{opacity:1}}",""])},70:function(e,t,n){var r=n(71);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(2)("d8751f2c",r,!0,{})},71:function(e,t,n){t=e.exports=n(1)(void 0),t.push([e.i,'.ms-tree-space[data-v-4e6c8ebe]{position:relative;top:1px;display:inline-block;font-style:normal;font-weight:400;line-height:1;width:8px;height:14px}.ms-tree-space[data-v-4e6c8ebe]:before{content:""}.processContainer[data-v-4e6c8ebe]{width:100%;height:100%}table td[data-v-4e6c8ebe]{line-height:26px}.tree-ctrl[data-v-4e6c8ebe]{position:relative;cursor:pointer;color:#2196f3;margin-left:-8px}.el-table[data-v-4e6c8ebe]{height:100%;width:100%;-webkit-box-flex:1;-ms-flex:1;flex:1}.el-table .el-table__body-wrapper[data-v-4e6c8ebe]{width:100%}.el-table .el-table__fixed-header-wrapper th[data-v-4e6c8ebe],.el-table .el-table__header-wrapper th[data-v-4e6c8ebe]{background-color:#f6f6f6}.el-table td[data-v-4e6c8ebe],.el-table th[data-v-4e6c8ebe]{padding:1px 0}.el-table .cell[data-v-4e6c8ebe],.el-table .el-table--border td:first-child .cell[data-v-4e6c8ebe],.el-table .el-table--border th:first-child .cell[data-v-4e6c8ebe],.el-table .el-table th div[data-v-4e6c8ebe]{padding:1.5px 1px 1.5px 5px!important}.el-table .el-table__empty-block[data-v-4e6c8ebe]{position:static;text-align:center;width:100%;height:80%}.el-table .el-table__body[data-v-4e6c8ebe]{margin-bottom:10px}.el-table .el-table__body-wrapper[data-v-4e6c8ebe]{height:100%;overflow-y:auto}.el-table .el-input__inner[data-v-4e6c8ebe]{height:27px;margin-bottom:0}.el-table .el-form-item__content[data-v-4e6c8ebe],.el-table .el-form-item__label[data-v-4e6c8ebe],.el-table .el-input[data-v-4e6c8ebe],.el-table .el-input__icon[data-v-4e6c8ebe]{line-height:30px}.el-table .el-input__inner[data-v-4e6c8ebe]{padding:5px}.el-table .el-input--prefix .el-input__inner[data-v-4e6c8ebe]{padding-left:30px}',""])},72:function(e,t){e.exports=require("babel-runtime/core-js/array/concat")},73:function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[];return o()(e).forEach(function(e){"open"===e.state&&(e._expanded=!0),void 0===e._expanded&&l.a.set(e,"_expanded",t);var o=1;if(void 0!==a&&null!==a&&(o=a+1),l.a.set(e,"_level",o),n&&l.a.set(e,"parent",n),i.push(e),e.children&&e.children.length>0){var s=r(e.children,t,e,o);i=i.concat(s)}}),i}t.a=r;var a=n(74),o=n.n(a),i=n(75),l=n.n(i)},74:function(e,t){e.exports=require("babel-runtime/core-js/array/from")},75:function(e,t){e.exports=require("vue")},76:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-table",e._b({attrs:{data:e.formatData,"row-style":e.showRow}},"el-table",e.$attrs,!1),[0===e.columns.length?n("el-table-column",{attrs:{width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._l(t.row._level,function(e){return n("span",{key:e,staticClass:"ms-tree-space"})}),e._v(" "),e.iconShow(0,t.row)?n("span",{staticClass:"tree-ctrl",on:{click:function(n){e.toggleExpanded(t.$index)}}},[t.row._expanded?n("i",{staticClass:"el-icon-minus"}):n("i",{staticClass:"el-icon-plus"})]):e._e(),e._v("\n "+e._s(t.$index)+"\n ")]}}])}):e._l(e.columns,function(t,r){return n("el-table-column",{key:t.value,attrs:{label:t.text,width:t.width},scopedSlots:e._u([{key:"default",fn:function(a){return[e._l(a.row._level,function(t){return 0===r?n("span",{key:t,staticClass:"ms-tree-space"}):e._e()}),e._v(" "),e.iconShow(r,a.row)?n("span",{staticClass:"tree-ctrl",on:{click:function(t){e.toggleExpanded(a.$index)}}},[a.row._expanded?n("i",{staticClass:"el-icon-minus"}):n("i",{staticClass:"el-icon-plus"})]):e._e(),e._v("\n "+e._s(a.row[t.value])+"\n ")]}}])})}),e._v(" "),e._t("default")],2)},a=[],o={render:r,staticRenderFns:a};t.a=o}});