!function(){functione(t){returne="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},e(t)}functiont(e,t){returnfunction(e){if(Array.isArray(e))returne}(e)||function(e,t){varn=null==e?null:"undefined"!=typeofSymbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){varr,o,i,a,u=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}elsefor(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throwo}}returnu}}(e,t)||P(e,t)||function(){thrownewTypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionn(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */n=function(){returnr};vart,r={},o=Object.prototype,i=o.hasOwnProperty,a="function"==typeofSymbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";functions(e,t,n,r){returnObject.defineProperty(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r})}try{s({},"")}catch(t){s=function(e,t,n){returne[t]=n}}functionf(e,n,r,o){vari=n&&n.prototypeinstanceofp?n:p,a=Object.create(i.prototype);returns(a,"_invoke",function(e,n,r){varo=1;returnfunction(i,a){if(3===o)throwError("Generator is already running");if(4===o){if("throw"===i)throwa;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){varu=r.delegate;if(u){varc=O(u,r);if(c){if(c===d)continue;returnc}}if("next"===r.method)r.sent=r._sent=r.arg;elseif("throw"===r.method){if(1===o)throwo=4,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=3;varl=h(e,n,r);if("normal"===l.type){if(o=r.done?4:2,l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=4,r.method="throw",r.arg=l.arg)}}}(e,r,newE(o||[])),!0),a}functionh(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=f;vard={};functionp(){}functiong(){}functionv(){}varm={};s(m,u,(function(){returnthis}));vary=Object.getPrototypeOf,b=y&&y(y(x([])));b&&b!==o&&i.call(b,u)&&(m=b);varw=v.prototype=p.prototype=Object.create(m);functionP(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){returnthis._invoke(t,e)}))}))}functionS(t,n){functionr(o,a,u,c){varl=h(t[o],t,a);if("throw"!==l.type){vars=l.arg,f=s.value;returnf&&"object"==e(f)&&i.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,u,c)}),(function(e){r("throw",e,u,c)})):n.resolve(f).then((function(e){s.value=e,u(s)}),(function(e){returnr("throw",e,u,c)}))}c(l.arg)}varo;s(this,"_invoke",(function(e,t){functioni(){returnnewn((function(n,o){r(e,t,n,o)}))}returno=o?o.then(i,i):i()}),!0)}functionO(e,n){varr=n.method,o=e.i[r];if(o===t)returnn.delegate=null,"throw"===r&&e.i.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=newTypeError("The iterator does not provide a '"+r+"' method")),d;vari=h(o,e.i,n.arg);if("throw"===i.type)returnn.method="throw",n.arg=i.arg,n.delegate=null,d;vara=i.arg;returna?a.done?(n[e.r]=a.value,n.next=e.n,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,d):a:(n.method="throw",n.arg=newTypeError("iterator result is not an object"),n.delegate=null,d)}functionC(e){this.tryEntries.push(e)}functionk(e){varn=e[4]||{};n.type="normal",n.arg=t,e[4]=n}functionE(e){this.tryEntries=[[-1]],e.forEach(C,this),this.reset(!0)}functionx(n){if(null!=n){varr=n[u];if(r)returnr.call(n);if("function"==typeofn.next)returnn;if(!isNaN(n.length)){varo=-1,a=functione(){for(;++o<n.length;)if(i.call(n,o))returne.value=n[o],e.done=!1,e;returne.value=t,e.done=!0,e};returna.next=a}}thrownewTypeError(e(n)+" is not iterable")}returng.prototype=v,s(w,"constructor",v),s(v,"constructor",g),g.displayName=s(v,l,"GeneratorFunction"),r.isGeneratorFunction=function(e){vart="function"==typeofe&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){returnObject.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},r.awrap=function(e){return{__await:e}},P(S.prototype),s(S.prototype,c,(function(){returnthis})),r.AsyncIterator=S,r.async=function(e,t,n,o,i){void0===i&&(i=Promise);vara=newS(f(e,t,n,o),i);returnr.isGeneratorFunction(t)?a:a.next().then((function(e){returne.done?e.value:a.next()}))},P(w),s(w,l,"Generator"),s(w,u,(function(){returnthis})),s(w,"toString",(function(){return"[object Generator]"})),r.keys=function(e){vart=Object(e),n=[];for(varrint)n.unshift(r);returnfunctione(){for(;n.length;)if((r=n.pop())int)returne.value=r,e.done=!1,e;returne.done=!0,e}},r.values=x,E.prototype={constructor:E,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(varninthis)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;vare=this.tryEntries[0][4];if("throw"===e.type)throwe.arg;returnthis.rval},dispatchException:function(e){if(this.done)throwe;varn=this;functionr(t){a.type="throw",a.arg=e,n.next=t}for(varo=n.tryEntries.length-1;o>=0;--o){vari=this.tryEntries[o],a=i[4],u=this.prev,c=i[1],l=i[2];if(-1===i[0])returnr("end"),!1;if(!c&&!l)throwError("try statement without catch or finally");if(null!=i[0]&&i[0]<=u){if(u<c)returnthis.method="next",this.arg=t,r(c),!0;if(u<l)returnr(l),!1}}},abrupt:function(e,t){for(varn=this.tryEntries.length-1;n>=0;--n){varr=this.tryEntries[n];if(r[0]>-1&&r[0]<=this.prev&&this.prev<r[2]){varo=r;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);vari=o?o[4]:{};returni.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throwe.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(vart=this.tryEntries.length-1;t>=0;--t){varn=this.tryEntries[t];if(n[2]===e)returnthis.complete(n[4],n[3]),k(n),d}},catch:function(e){for(vart=this.tryEntries.length-1;t>=0;--t){varn=this.tryEntries[t];if(n[0]===e){varr=n[4];if("throw"===r.type){varo=r.arg;k(n)}returno}}throwError("illegal catch attempt")},delegateYield:function(e,n,r){returnthis.delegate={i:x(e),r:n,n:r},"next"===this.method&&(this.arg=t),d}},r}functionr(e,t,n,r,o,i,a){try{varu=e[i](a),c=u.value}catch(e){returnvoidn(e)}u.done?t(c):Promise.resolve(c).then(r,o)}functiono(e){returnfunction(){vart=this,n=arguments;returnnewPromise((function(o,i){vara=e.apply(t,n);functionu(e){r(a,o,i,u,c,"next",e)}functionc(e){r(a,o,i,u,c,"throw",e)}u(void0)}))}}functioni(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functiona(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,b(r.key),r)}}functionu(e,t,n){returnt&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}functionc(t,n,r){returnn=d(n),function(t,n){if(n&&("object"==e(n)||"function"==typeofn))returnn;if(void0!==n)thrownewTypeError("Derived constructors may only return object or undefined");returnfunction(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}(t)}(t,l()?Reflect.construct(n,r||[],d(t).constructor):n.apply(t,r))}functionl(){try{vare=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}functions(e,t,n,r){varo=f(d(1&r?e.prototype:e),t,n);return2&r&&"function"==typeofo?function(e){returno.apply(n,e)}:o}functionf(){returnf="undefined"!=typeofReflect&&Reflect.get?Reflect.get.bind():function(e,t,n){varr=h(e,t);if(r){varo=Object.getOwnPropertyDescriptor(r,t);returno.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(null,arguments)}functionh(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=d(e)););returne}functiond(e){returnd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){returne.__proto__||Object.getPrototypeOf(e)},d(e)}functionp(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}functiong(e,t){returng=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){returne.__proto__=t,e},g(e,t)}functionv(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}functionm(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functiony(e,t,n){return(t=b(t))ine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionb(t){varn=function(t,n){if("object"!=e(t)||!t)returnt;varr=t[Symbol.toPrimitive];if(void0!==r){varo=r.call(t,n||"default");if("object"!=e(o))returno;thrownewTypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}functionw(e){returnfunction(e){if(Array.isArray(e))returnS(e)}(e)||function(e){if("undefined"!=typeofSymbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])returnArray.from(e)}(e)||P(e)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionP(e,t){if(e){if("string"==typeofe)returnS(e,t);varn={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void0}}functionS(e,t){(null==t||t>e.length)&&(t=e.length);for(varn=0,r=Array(t);n<t;n++)r[n]=e[n];returnr}System.register(["@ibiz-template/model","@ibiz-template/vue-util","vue","lodash-es","@ibiz-template/controller","@ibiz-template/core","@ibiz-template/runtime","@ibiz-template/service"],(function(e,r){"use strict";vara,l,f,h,d,g,v,b,P,S,O,C,k,E,x,R,j,N;return{setters:[function(e){a=e.GridModel,l=e.AppEntityModel},function(e){f=e.useNamespace,h=e.useControlController,d=e.usePropsWatch},function(e){g=e.defineComponent,v=e.computed,b=e.h,P=e.ref,S=e.getCurrentInstance,O=e.watch,C=e.onUnmounted},function(e){k=e.cloneDeep},function(e){E=e.GridController},function(e){x=e.StringUtil},function(e){R=e.FrontUIActionHandler,j=e.OpenAppViewCommand},function(e){N=e.calcResPath}],execute:function(){varr=g({name:"AppGridPagination",props:{total:{type:Number,required:!0},curPage:{type:Number,required:!0},size:{type:Number,required:!0}},setup:function(e){return{ns:f("grid-page"),start:v((function(){return(e.curPage-1)*e.size+1})),end:v((function(){returne.curPage*e.size}))}},methods:{onPageChange:function(e){this.$emit("change",e)},onPageSizeChange:function(e){this.$emit("page-size-change",e)},pageReset:function(){this.$emit("page-reset")}},render:function(){returnb("div",{class:this.ns.b()},[b("i-page",{attrs:{transfer:!0,total:this.total,"show-sizer":!0,"show-elevator":!0,current:this.curPage,"page-size":this.size,"page-size-opts":[10,20,30,40,50,60,70,80,90,100],"show-total":!0},on:{"on-change":this.onPageChange,"on-page-size-change":this.onPageSizeChange}},[b("span",{class:this.ns.b("btn")},[b("i-button",{attrs:{icon:"md-refresh",title:"刷新"},on:{click:this.pageReset}})]),b("span",["显示 ",this.start," - ",this.end," 条,共 ",this.total," 条数据"])])])}});function_(e,t){varn,r,o=[];"GROUPGRIDCOLUMN"===e.source.columnType&&e.children.forEach((function(e){o.push(_(e,t))}));vari={title:e.title,width:"STAR"===e.source.widthUnit?void0:e.width,minWidth:e.width,align:(null===(n=e.source.align)||void0===n?void0:n.toLowerCase())||"center",slot:e.codeName,key:e.codeName,fieldName:e.deFieldName,ellipsis:!0,tooltip:!1,resizable:!0,sortable:!(t.noSort||!e.source.enableSort)&&"custom",columnType:e.source.columnType,userParams:e.source.userParams,className:null===(r=e.source.getCellPSSysCss())||void0===r?void0:r.cssName};returno.length>0&&Object.assign(i,{children:o}),i}functionT(e){vart=e.model,n=[],r=t.columns.map((function(t){return_(t,e)}));returnt.children.forEach((function(e){vart=r.find((function(t){returnt.key===e.codeName}));t&&n.push(t)})),e.singleSelect||n.splice(0,0,{type:"selection",width:60}),n}varA=function(e){functiont(){vare;i(this,t);for(varn=arguments.length,r=newArray(n),o=0;o<n;o++)r[o]=arguments[o];returny(e=c(this,t,[].concat(r)),"enableHiddenColumn",!1),e}returnp(t,e),u(t,[{key:"onInit",value:(r=o(n().mark((functione(){varr,o;returnn().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returne.next=2,s(t,"onInit",this,3)([]);case2:o="true"===(null===(r=this.controlParams)||void0===r?void0:r.DEFAULT_STREAM),this.enableHiddenColumn=o;case4:case"end":returne.stop()}}),e,this)}))),function(){returnr.apply(this,arguments)})},{key:"ToggleStreamlineColumn",value:function(){this.enableHiddenColumn=!this.enableHiddenColumn}}]);varr}(E),z=g({props:{modelData:{type:a,required:!0},context:{type:Object,required:!0},params:{type:Object,default:function(){return{}}},gridRowActiveMode:{type:Number,default:2},modal:{type:Object}},setup:function(e){varn,r,o,i=S().proxy,a=f("grid"),u=h(i,(function(){vart=newA(e.modelData,e.context,e.params);returnd(i,"gridRowActiveMode",t.setGridRowActiveMode.bind(t)),t})),c=u.model.source.getPSControlParam(),l="true"===(null==c||null===(n=c.ctrlParams)||void0===n?void0:n.IS_NOT_FLEX),s=P([]);null!=c&&null!==(r=c.ctrlParams)&&void0!==r&&r.STREAMLINE_LISTS&&(s.value=JSON.parse(c.ctrlParams.STREAMLINE_LISTS)),console.log("精简列",null===(o=s.value)||void0===o?void0:o.toString());varp=P(),g=function(e){vart=P([]);e.nerve.self.evt.on("created",(function(){t.value=T(e)}));varn=v((function(){varn,r=w(t.value),o=r.find((function(e){return!e.width})),i=null===(n=e.model.source.getPSControlParam())||void0===n?void0:n.ctrlParams,a="true"===(null==i?void0:i.IS_NOT_FLEX);if(!o&&!a){varu=r.length-1;"rowEdit"===r[u].key&&(u-=1),r[u]=m(m({},r[u]),{},{width:void0})}varc=r.find((function(e){return"UAGRIDCOLUMN"===e.columnType}));if(c){varl=c.userParams;l&&"true"===l.fixed&&(c.fixed="right")}vars=r.length,f=e.model,h=f.frozenFirstColumn,d=f.frozenLastColumn;returnr.forEach((function(e,t){h&&t<h?e.fixed="left":d&&t>=s-d&&(e.fixed="right")})),r}));return[n,t]}(u),y=t(g,1)[0],b=function(e){vart=function(t){returne.items.find((function(e){returne.srfkey===t.srfkey}))};return{onRowClick:function(n){varr=t(n);if(e.singleSelect){varo=e.selectedData.find((function(e){returne.srfkey===n.srfkey}));e.onSelectionChange(o?[]:[r])}e.onRowClick(r)},onDbRowClick:function(n){e.onDbRowClick(t(n))},onSelectionChange:function(n){if(!e.singleSelect){varr=[];n.forEach((function(e){varn=t(e);n&&r.push(n)})),e.onSelectionChange(r)}},onSortChange:function(t){varn=t.column,r=t.order,o="asc"===r||"desc"===r?r:void0;e.setSort(n.fieldName,o),e.load()}}}(u),E=b.onRowClick,x=b.onDbRowClick,R=b.onSelectionChange,j=b.onSortChange,N=function(e){return{onPageChange:function(t){t&&t!==e.curPage&&(e.curPage=t,e.load())},onPageSizeChange:function(t){t&&t!==e.size&&(e.size=t,1===e.curPage&&e.load())},onPageReset:function(){e.curPage=1,e.load()}}}(u),_=N.onPageChange,z=N.onPageReset,D=N.onPageSizeChange,I=v((function(){vart,n=null===(t=e.modelData)||void0===t||null===(t=t.source.getPSControlParam())||void0===t?void0:t.ctrlParams;return"false"!==(null==n?void0:n.HIGHLIGHT)})),G=null,U=P(0),L=P(null),H=P(null),M=null,F=0,$=function(){vart;if(L.value&&"EMBED"!==(null===(t=e.modal)||void0===t?void0:t.mode))if(u.model.source.enablePagingBar&&H.value){varn=H.value.$el,r=n.offsetHeight+parseFloat(window.getComputedStyle(n).paddingTop);U.value=L.value.offsetHeight-r}elseU.value=L.value.offsetHeight;u.model.source.height>0&&(U.value=u.model.source.height)};O(L,(function(e,t){e&&e!==t&&($(),window.ResizeObserver&&L.value&&(M=newResizeObserver((function(e){vart=e[0].contentRect.height;t!==F&&($(),F=t)}))).observe(L.value))})),C((function(){M&&M.disconnect()}));varB=v((function(){vare=u.items.map((function(e){returne._checked=u.selectedData.some((function(t){returnt.srfkey===e.srfkey})),e}));returne.length?(e.unshift({hiddenRow:!0,_checked:u.items.every((function(e){returne._checked}))}),e):e})),q=function(e){vart=[];returne.forEach((function(e){if(!s.value.includes(e.key)&&!s.value.includes(e.fieldName)){varn=k(e);if(e.children){varr=q(e.children);n.children=r}t.push(n)}})),t},W=v((function(){returnu.enableHiddenColumn?q(y.value):y.value}));return{c:u,ns:a,columns:y,tableData:B,onDbRowClick:x,onUIRowClick:function(e,t){null!=G&&window.clearTimeout(G),G=window.setTimeout((function(){varn=i.$refs.grid;n&&(u.selectedData.find((function(t){returnt.srfkey===e.srfkey}))&&n.clearCurrentRow(),n.toggleSelect&&n.toggleSelect(t));E(e)}),300)},onUIDbRowClick:function(e){null!=G&&window.clearTimeout(G);vart=i.$refs.grid;t&&(u.selectedData.find((function(t){returnt.srfkey===e.srfkey}))||t.clearCurrentRow());x(e)},onSelectionChange:R,onSortChange:j,onPageChange:_,onPageSizeChange:D,onPageReset:z,tableHeight:U,gridRef:L,girdPaginationRef:H,highlight:I,isNotFlex:l,grid:p,streamlineLists:s,streamColumn:W}},render:function(){vare,t=this;if(this.c.complete){varn={};returnthis.c.model.columns.forEach((function(e){if("GROUPGRIDCOLUMN"!==e.source.columnType){varr=e.codeName;n[r]=function(e){varn=e.row,o=e.index,i=t.c.rows[o-1];returnn.hiddenRow?b("span",{style:"word-break: break-word;white-space: pre-wrap;"},["隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列隐藏行的列"]):i?b(t.c.providers[r].component,{props:{controller:t.c.columns[r],row:i},key:n.srfkey+r}):void0}}})),b("control-layout",{attrs:{modelData:this.c.model}},[b("div",{ref:"gridRef",class:[this.ns.b(),this.ns.is("show-header",!this.c.model.source.hideHeader),this.ns.is("enable-page",this.c.model.source.enablePagingBar)],style:this.isNotFlex?null===(e=this.grid)||void0===e?void0:e.tableStyle:void0},[b("i-table",{ref:"grid",attrs:{height:this.tableHeight,"show-header":!this.c.model.source.hideHeader,"highlight-row":this.c.singleSelect&&this.highlight,data:this.tableData,columns:this.streamColumn,"row-class-name":function(e){returne.hiddenRow?"hidden-row":""},"span-method":this.c.spanMethod.bind(this.c)},class:this.ns.b("content"),on:{"on-row-click":this.onUIRowClick,"on-row-dblclick":this.onUIDbRowClick,"on-selection-change":this.onSelectionChange,"on-sort-change":this.onSortChange},scopedSlots:n}),this.c.model.source.enablePagingBar&&b(r,{ref:"girdPaginationRef",attrs:{total:this.c.total,curPage:this.c.curPage,size:this.c.size},on:{change:this.onPageChange,"page-size-change":this.onPageSizeChange,"page-reset":this.onPageReset}})])])}}}),D=function(e){functiont(){returni(this,t),c(this,t,arguments)}returnp(t,e),u(t,[{key:"execAction",value:(r=o(n().mark((functione(t,r,o,i,a){varu,c,s,f,h,d,p,g,v,m,y,b,w,P,S,O,C,k,E,R,_;returnn().wrap((function(e){for(;;)switch(e.prev=e.next){case0:if(u={},"OPENHTMLPAGE"===(c=t.frontProcessType)&&(s=x.fill(t.htmlPageUrl,r,null==o?void0:o[0]),window.open(s,"_blank")),"DATAIMP"!==c){e.next=27;break}if(!(f=t.getPSAppDataEntity())){e.next=27;break}if(!1!==f.isFill){e.next=9;break}returne.next=9,f.fill(!0);case9:returnh=newl(f),e.next=12,h.init();case12:returne.next=14,this.handleParams(t,r,o,i);case14:returnd=e.sent,p=d.resultContext,g=ibiz.resourcePathUtil.calcPaths(p,h.codeName),v=N(p,g),m="".concat(v,"/").concat(h.deNamePlural,"/importtemplate"),y="".concat(v,"/").concat(h.deNamePlural,"/importdata2"),(b=t.getPSAppDEDataImport())&&(m+="?srfimporttag=".concat(b.codeName),y+="?srfimporttag=".concat(b.codeName)),(w=ibiz.overlay.createModal("DataImport",{templateUrl:m,importUrl:y,dismiss:function(e){w.dismiss(e)}},{width:"auto",placement:"center"})).present(),e.next=26,w.onWillDismiss();case26:returne.abrupt("return",{refresh:!0});case27:if(!["TOP","WIZARD"].includes(c)){e.next=45;break}if(P=t.getFrontPSAppView()){e.next=31;break}thrownewError("未配置打开视图");case31:returne.next=33,P.fill(!0);case33:returne.next=35,this.handleParams(t,r,o,i);case35:returnS=e.sent,O=S.resultContext,C=S.resultParams,e.next=40,ibiz.commands.execute(j.TAG,P,O,C,a);case40:!1===(null==(k=e.sent)?void0:k.ok)&&(u.closeView=!1,u.refresh=!1,u.cancel=!0),null!=k&&k.ok&&k.data&&(u.data=k.data),e.next=48;break;case45:E=null==a?void0:a.neuron.call.getGridController(),R=null==a?void0:a.neuron.call.getThis(),E&&R&&(_=E.call.getGridController())&&(_.ToggleStreamlineColumn(),"jjzs"===t.codeName.toLowerCase()?(R.toolbarState.show_all.visible=!0,R.toolbarState.show_streamline.visible=!1):(R.toolbarState.show_all.visible=!1,R.toolbarState.show_streamline.visible=!0));case48:returne.abrupt("return",u);case49:case"end":returne.stop()}}),e,this)}))),function(e,t,n,o,i){returnr.apply(this,arguments)})}]);varr}(R),I=function(){returnu((functione(){i(this,e),y(this,"handler",void0)}),[{key:"getHandler",value:(e=o(n().mark((functione(){returnn().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnthis.handler||(this.handler=newD),e.abrupt("return",this.handler);case2:case"end":returne.stop()}}),e,this)}))),function(){returne.apply(this,arguments)})}]);vare}(),G=u((functione(){i(this,e),y(this,"component","StreamlineGrid")}));e("default",{install:function(e){e.component("StreamlineGrid",z),ibiz.register.control.register("GRID_STREAMLINE",newG),ibiz.register.uiAction.register("DEUIACTION_SHOW_ALL_COLUMN",newI)}})}}}))}();