提交 616dcc8f 编写于 作者: lxm1993's avatar lxm1993

feat: 插件更新

上级 b09818cc
......@@ -229,7 +229,7 @@ const v = u({
data: this.gridData
},
class: this.ns.e("grid")
}), ";"]);
})]);
}
}), G = u({
props: {
......@@ -420,7 +420,7 @@ const R = u({
modal: this.modal,
modelPath: this.c.model.drTab.pages[0].embedView.source.modelPath
}
}), ","]), this.c.model.drTab.pages.map((s) => {
})]), this.c.model.drTab.pages.map((s) => {
const t = this.c.drPages[s.source.name];
if (!!t)
return e("i-tab-pane", {
......
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(T){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,a=Object.create(o.prototype),c=new N(n||[]);return i(a,"_invoke",{value:L(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(T){return{type:"throw",arg:T}}}r.wrap=f;var d={};function m(){}function p(){}function y(){}var v={};l(v,c,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(S([])));w&&w!==n&&o.call(w,c)&&(v=w);var g=y.prototype=m.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(e,r){function n(i,a,c,s){var u=h(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,c,s)}),(function(t){n("throw",t,c,s)})):r.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return n("throw",t,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return a=a?a.then(o,o):o()}})}function L(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=O(a,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=h(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function O(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function S(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=y,i(g,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:p,configurable:!0}),p.displayName=l(y,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},r.awrap=function(t){return{__await:t}},x(k.prototype),l(k.prototype,s,(function(){return this})),r.AsyncIterator=k,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new k(f(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(g),l(g,u,"Generator"),l(g,c,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=S,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},r}function r(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function c(t){r(a,o,i,c,s,"next",t)}function s(t){r(a,o,i,c,s,"throw",t)}c(void 0)}))}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=f(t);if(e){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,r){if(r&&("object"===t(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}System.register(["@ibiz-template/controller","vue","@ibiz-template/vue-util","@ibiz-template/core","@ibiz-template/model"],(function(t,r){"use strict";var i,u,f,d,m,p,y,v,b,w,g,x,k,L,O,E,P;return{setters:[function(t){i=t.GridFieldColumnController,u=t.GridRowController,f=t.WFStepTraceViewController},function(t){d=t.defineComponent,m=t.computed,p=t.h,y=t.getCurrentInstance,v=t.ref},function(t){b=t.useNamespace,w=t.useViewController,g=t.usePropsWatch,x=t.useWFStepTraceViewController,k=t.useWFDynaEditView3Controller,L=t.useEditView3Controller},function(t){O=t.colorBlend,E=t.IBizContext},function(t){P=t.ViewType}],execute:function(){var N=d({name:"CodeListGridColumn",props:{controller:{type:i,required:!0},row:{type:u,required:!0}},setup:function(t){var e=b("grid-field-column"),r=m((function(){var r;if("FRONT"!==t.controller.model.source.cLConvertMode)return[];var n=t.row.data[t.controller.model.codeName];return null!==(r=t.controller.codeListItems)&&void 0!==r&&r.length&&n?n.split(",").map((function(r){var n=t.controller.codeListItems.find((function(t){return t.value===r}));if(n){var o=n.color||"#515a6e";return{text:n.text,colorStyle:e.cssVarBlock({color:o,"border-color":o,"bg-color":O(o,"#fff")})}}})).filter(Boolean):[]})),n=m((function(){var r="";switch(t.controller.model.align){case"LEFT":r="flex-start";break;case"RIGHT":r="flex-end";break;default:r="center"}return e.cssVarBlock({"justify-content":r})}));return{ns:e,alignStyle:n,selectedItems:r,onCellClick:function(e){t.controller.isLinkColumn&&t.controller.openLinkView(t.row,e)}}},render:function(){var t=this,e=this.controller,r=this.row.data[e.model.codeName];return p("div",{class:[this.ns.b(),e.isLinkColumn&&this.ns.m("link-column")],style:this.alignStyle,on:{click:this.onCellClick}},[this.selectedItems.length>0?this.selectedItems.map((function(e){return p("span",{class:t.ns.e("code-list-item"),style:e.colorStyle},[e.text])})):p("span",{class:this.ns.e("text")},[r])])}}),S=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(u,t);var r,i=s(u);function u(){var t;o(this,u);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return h(l(t=i.call.apply(i,[this].concat(r))),"imgSrc",void 0),t}return a(u,[{key:"getUIData",value:(r=n(e().mark((function t(){var r,n,o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new E(this.params,this.context),t.next=3,this.entityService.wf.getWFProcessDiagram(r);case 3:n=t.sent,o=new Blob([n.data]),this.imgSrc=URL.createObjectURL(o);case 6:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})}]),u}(f),C=d({name:"PresetWFChartView",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},deName:{type:String,required:!0}},setup:function(t){var e=b("preset-wf-chart-view"),r=y().proxy,n=w(r,(function(e,r){return new S(t.modelPath,e,r)}));return g(r,"deName",n.setDeName.bind(n)),{c:n,ns:e}},render:function(){return p("div",{class:this.ns.b()},[p("img",{attrs:{src:this.c.imgSrc}})])}}),T=a((function t(){o(this,t),h(this,"component",C)})),j=function(){function t(){o(this,t),h(this,"component",N)}var r;return a(t,[{key:"createController",value:(r=n(e().mark((function t(r,n){var o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=new i(r,n),t.next=3,o.init();case 3:return t.abrupt("return",o);case 4:case"end":return t.stop()}}),t)}))),function(t,e){return r.apply(this,arguments)})}]),t}(),_=a((function t(){o(this,t),h(this,"component","IndexView")})),I=d({name:"WFStepTraceGrid",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},deName:{type:String,required:!0}},setup:function(t){var e=y().proxy,r=x(e,t.modelPath);g(e,"deName",r.setDeName.bind(r));var n=b("wf-step-trace-grid"),o=v([]);r.nerve.self.evt.on("mounted",(function(){var t;r.data&&(null===(t=r.data.usertasks)||void 0===t||t.forEach((function(t){t.identitylinks.length>0||(t.comments.length>0&&t.comments.forEach((function(e){o.value.push({nodeName:t.userTaskName,personName:e.authorName,time:e.time,content:e.type,comment:e.fullMessage})})),o.value.sort((function(t,e){return Date.parse(e.time)-Date.parse(t.time)})))})))}));var i=v([{title:"处理环节",key:"nodeName",width:180,resizable:!0},{title:"处理人",key:"personName",width:180,resizable:!0},{title:"处理时间",key:"time",width:180,resizable:!0},{title:"处理内容",key:"content",width:180,resizable:!0},{title:"处理意见",key:"comment"}]);return{c:r,ns:n,gridData:o,columns:i}},render:function(){return p("div",{class:this.ns.b()},[p("div",{class:this.ns.e("title")},["审批信息"]),p("i-table",{attrs:{"disabled-hover":!0,columns:this.columns,data:this.gridData},class:this.ns.e("grid")}),";"])}}),V=d({props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(t){var e=y().proxy,r=k(e,t.modelPath),n=b("view-".concat(P.DE_WF_DYNA_EDIT_VIEW3).toLowerCase()),o=v(["mainForm"]);return{c:r,ns:n,onTabClick:function(t){o.value.includes(t)||o.value.push(t)},lazyList:o}},render:function(t){var e=this,r=[];if(this.c.complete){var n=this.c.activeForm;n&&this.c.providers[n.name]&&r.push(t(this.c.providers[n.name].component,{props:{modelData:n,context:this.c.context,params:this.c.params},style:{height:"auto"},on:{neuronInit:this.c.nerve.onNeuronInit("form")}}))}if(this.c.complete&&this.c.model.drTab.pages[0]){var o=this.c.model.drTab.pages[0],i=this.c.drPages[o.source.name];r.push(t(I,{attrs:{context:i.context,params:i.params,deName:this.c.model.appEntity.source.codeName,modal:this.modal,modelPath:o.embedView.source.modelPath}}))}return t("view-base",{attrs:{controller:this.c},scopedSlots:{toolbar:function(){return e.c.complete?[e.c.wfLinks.length>0&&t("wf-toolbar",{attrs:{wfLinks:e.c.wfLinks},on:{"wf-link-click":function(t){e.c.onLinkClick(t)}}})]:null}}},[this.c.complete&&t("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[t("i-tab-pane",{class:this.ns.be("","tab-item"),attrs:{tab:this.c.model.drTab.source.name,label:this.c.model.drTab.source.editItemCaption,name:"mainForm"}},[r]),this.c.model.drTab.pages.map((function(r){var n=e.c.drPages[r.source.name];return t("i-tab-pane",{class:e.ns.be("","tab-item"),attrs:{tab:e.c.model.drTab.source.name,disabled:e.c.isNewData,label:r.source.caption,name:r.source.name}},[!e.c.isNewData&&e.lazyList.includes(r.source.name)&&t("ViewShell",{props:{context:n.context,params:n.params,modal:e.modal,modelPath:r.embedView.source.modelPath,deName:e.c.model.appEntity.source.codeName},on:{neuronInit:e.c.nerve.onNeuronInit(r.source.name)},key:n.key})])}))])])}}),D=a((function t(){o(this,t),h(this,"component",V)})),F=d({name:"SyEditView3",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(t){var e=y().proxy,r=L(e,t.modelPath),n=b("view-deeditview3"),o=v(["mainForm"]);return{c:r,ns:n,onTabClick:function(t){o.value.includes(t)||o.value.push(t)},lazyList:o}},render:function(t){var e=this;return t("view-base",{attrs:{controller:this.c}},[this.c.complete&&t("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[t("i-tab-pane",{class:this.ns.be("","tab-item"),attrs:{tab:this.c.model.drTab.source.name,label:this.c.model.drTab.source.editItemCaption,name:"mainForm"}},[t("edit-form-control",{attrs:{modelData:this.c.model.form,context:this.c.context,params:this.c.params},style:{height:"auto"},on:{neuronInit:this.c.nerve.onNeuronInit(this.c.model.form.source.name)}}),t(I,{attrs:{context:this.c.drPages[this.c.model.drTab.pages[0].source.name].context,params:this.c.drPages[this.c.model.drTab.pages[0].source.name].params,deName:this.c.model.appEntity.source.codeName,modal:this.modal,modelPath:this.c.model.drTab.pages[0].embedView.source.modelPath}}),","]),this.c.model.drTab.pages.map((function(r){var n=e.c.drPages[r.source.name];if(n)return t("i-tab-pane",{class:e.ns.be("","tab-item"),attrs:{tab:e.c.model.drTab.source.name,disabled:e.c.isNewData,label:r.source.caption,name:r.source.name}},[!e.c.isNewData&&e.lazyList.includes(r.source.name)&&t("ViewShell",{props:{context:n.context,params:n.params,modal:e.modal,modelPath:r.embedView.source.modelPath,deName:e.c.model.appEntity.source.codeName},on:{neuronInit:e.c.nerve.onNeuronInit(r.source.name)},key:n.key})])}))])])}}),z=a((function t(){o(this,t),h(this,"component",F)}));t("default",{mateUrl:r.meta.url,install:function(t){ibiz.register.view.register("VIEW_CUSTOM_SyWebIndexView",new _),ibiz.register.view.register("VIEW_CUSTOM_PresetWFChartView",new T),ibiz.register.gridColumn.register("GRID_COLRENDER_CodeListGridColumn",new j),ibiz.register.view.register("VIEW_CUSTOM_SyWfDynaEditView3",new D),ibiz.register.view.register("VIEW_CUSTOM_SyEditView3",new z)}})}}}))}();
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(T){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,a=Object.create(o.prototype),c=new N(n||[]);return i(a,"_invoke",{value:L(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(T){return{type:"throw",arg:T}}}r.wrap=f;var d={};function m(){}function p(){}function y(){}var v={};l(v,c,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(S([])));w&&w!==n&&o.call(w,c)&&(v=w);var g=y.prototype=m.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(e,r){function n(i,a,c,s){var u=h(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,c,s)}),(function(t){n("throw",t,c,s)})):r.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return n("throw",t,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return a=a?a.then(o,o):o()}})}function L(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=O(a,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=h(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function O(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function S(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=y,i(g,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:p,configurable:!0}),p.displayName=l(y,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},r.awrap=function(t){return{__await:t}},x(k.prototype),l(k.prototype,s,(function(){return this})),r.AsyncIterator=k,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new k(f(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(g),l(g,u,"Generator"),l(g,c,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=S,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},r}function r(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function c(t){r(a,o,i,c,s,"next",t)}function s(t){r(a,o,i,c,s,"throw",t)}c(void 0)}))}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t,e,r){return e&&i(t.prototype,e),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=f(t);if(e){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,r){if(r&&("object"===t(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}System.register(["@ibiz-template/controller","vue","@ibiz-template/vue-util","@ibiz-template/core","@ibiz-template/model"],(function(t,r){"use strict";var i,u,f,d,m,p,y,v,b,w,g,x,k,L,O,E,P;return{setters:[function(t){i=t.GridFieldColumnController,u=t.GridRowController,f=t.WFStepTraceViewController},function(t){d=t.defineComponent,m=t.computed,p=t.h,y=t.getCurrentInstance,v=t.ref},function(t){b=t.useNamespace,w=t.useViewController,g=t.usePropsWatch,x=t.useWFStepTraceViewController,k=t.useWFDynaEditView3Controller,L=t.useEditView3Controller},function(t){O=t.colorBlend,E=t.IBizContext},function(t){P=t.ViewType}],execute:function(){var N=d({name:"CodeListGridColumn",props:{controller:{type:i,required:!0},row:{type:u,required:!0}},setup:function(t){var e=b("grid-field-column"),r=m((function(){var r;if("FRONT"!==t.controller.model.source.cLConvertMode)return[];var n=t.row.data[t.controller.model.codeName];return null!==(r=t.controller.codeListItems)&&void 0!==r&&r.length&&n?n.split(",").map((function(r){var n=t.controller.codeListItems.find((function(t){return t.value===r}));if(n){var o=n.color||"#515a6e";return{text:n.text,colorStyle:e.cssVarBlock({color:o,"border-color":o,"bg-color":O(o,"#fff")})}}})).filter(Boolean):[]})),n=m((function(){var r="";switch(t.controller.model.align){case"LEFT":r="flex-start";break;case"RIGHT":r="flex-end";break;default:r="center"}return e.cssVarBlock({"justify-content":r})}));return{ns:e,alignStyle:n,selectedItems:r,onCellClick:function(e){t.controller.isLinkColumn&&t.controller.openLinkView(t.row,e)}}},render:function(){var t=this,e=this.controller,r=this.row.data[e.model.codeName];return p("div",{class:[this.ns.b(),e.isLinkColumn&&this.ns.m("link-column")],style:this.alignStyle,on:{click:this.onCellClick}},[this.selectedItems.length>0?this.selectedItems.map((function(e){return p("span",{class:t.ns.e("code-list-item"),style:e.colorStyle},[e.text])})):p("span",{class:this.ns.e("text")},[r])])}}),S=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(u,t);var r,i=s(u);function u(){var t;o(this,u);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return h(l(t=i.call.apply(i,[this].concat(r))),"imgSrc",void 0),t}return a(u,[{key:"getUIData",value:(r=n(e().mark((function t(){var r,n,o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new E(this.params,this.context),t.next=3,this.entityService.wf.getWFProcessDiagram(r);case 3:n=t.sent,o=new Blob([n.data]),this.imgSrc=URL.createObjectURL(o);case 6:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})}]),u}(f),C=d({name:"PresetWFChartView",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},deName:{type:String,required:!0}},setup:function(t){var e=b("preset-wf-chart-view"),r=y().proxy,n=w(r,(function(e,r){return new S(t.modelPath,e,r)}));return g(r,"deName",n.setDeName.bind(n)),{c:n,ns:e}},render:function(){return p("div",{class:this.ns.b()},[p("img",{attrs:{src:this.c.imgSrc}})])}}),T=a((function t(){o(this,t),h(this,"component",C)})),j=function(){function t(){o(this,t),h(this,"component",N)}var r;return a(t,[{key:"createController",value:(r=n(e().mark((function t(r,n){var o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=new i(r,n),t.next=3,o.init();case 3:return t.abrupt("return",o);case 4:case"end":return t.stop()}}),t)}))),function(t,e){return r.apply(this,arguments)})}]),t}(),_=a((function t(){o(this,t),h(this,"component","IndexView")})),I=d({name:"WFStepTraceGrid",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},deName:{type:String,required:!0}},setup:function(t){var e=y().proxy,r=x(e,t.modelPath);g(e,"deName",r.setDeName.bind(r));var n=b("wf-step-trace-grid"),o=v([]);r.nerve.self.evt.on("mounted",(function(){var t;r.data&&(null===(t=r.data.usertasks)||void 0===t||t.forEach((function(t){t.identitylinks.length>0||(t.comments.length>0&&t.comments.forEach((function(e){o.value.push({nodeName:t.userTaskName,personName:e.authorName,time:e.time,content:e.type,comment:e.fullMessage})})),o.value.sort((function(t,e){return Date.parse(e.time)-Date.parse(t.time)})))})))}));var i=v([{title:"处理环节",key:"nodeName",width:180,resizable:!0},{title:"处理人",key:"personName",width:180,resizable:!0},{title:"处理时间",key:"time",width:180,resizable:!0},{title:"处理内容",key:"content",width:180,resizable:!0},{title:"处理意见",key:"comment"}]);return{c:r,ns:n,gridData:o,columns:i}},render:function(){return p("div",{class:this.ns.b()},[p("div",{class:this.ns.e("title")},["审批信息"]),p("i-table",{attrs:{"disabled-hover":!0,columns:this.columns,data:this.gridData},class:this.ns.e("grid")})])}}),V=d({props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(t){var e=y().proxy,r=k(e,t.modelPath),n=b("view-".concat(P.DE_WF_DYNA_EDIT_VIEW3).toLowerCase()),o=v(["mainForm"]);return{c:r,ns:n,onTabClick:function(t){o.value.includes(t)||o.value.push(t)},lazyList:o}},render:function(t){var e=this,r=[];if(this.c.complete){var n=this.c.activeForm;n&&this.c.providers[n.name]&&r.push(t(this.c.providers[n.name].component,{props:{modelData:n,context:this.c.context,params:this.c.params},style:{height:"auto"},on:{neuronInit:this.c.nerve.onNeuronInit("form")}}))}if(this.c.complete&&this.c.model.drTab.pages[0]){var o=this.c.model.drTab.pages[0],i=this.c.drPages[o.source.name];r.push(t(I,{attrs:{context:i.context,params:i.params,deName:this.c.model.appEntity.source.codeName,modal:this.modal,modelPath:o.embedView.source.modelPath}}))}return t("view-base",{attrs:{controller:this.c},scopedSlots:{toolbar:function(){return e.c.complete?[e.c.wfLinks.length>0&&t("wf-toolbar",{attrs:{wfLinks:e.c.wfLinks},on:{"wf-link-click":function(t){e.c.onLinkClick(t)}}})]:null}}},[this.c.complete&&t("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[t("i-tab-pane",{class:this.ns.be("","tab-item"),attrs:{tab:this.c.model.drTab.source.name,label:this.c.model.drTab.source.editItemCaption,name:"mainForm"}},[r]),this.c.model.drTab.pages.map((function(r){var n=e.c.drPages[r.source.name];return t("i-tab-pane",{class:e.ns.be("","tab-item"),attrs:{tab:e.c.model.drTab.source.name,disabled:e.c.isNewData,label:r.source.caption,name:r.source.name}},[!e.c.isNewData&&e.lazyList.includes(r.source.name)&&t("ViewShell",{props:{context:n.context,params:n.params,modal:e.modal,modelPath:r.embedView.source.modelPath,deName:e.c.model.appEntity.source.codeName},on:{neuronInit:e.c.nerve.onNeuronInit(r.source.name)},key:n.key})])}))])])}}),D=a((function t(){o(this,t),h(this,"component",V)})),F=d({name:"SyEditView3",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(t){var e=y().proxy,r=L(e,t.modelPath),n=b("view-deeditview3"),o=v(["mainForm"]);return{c:r,ns:n,onTabClick:function(t){o.value.includes(t)||o.value.push(t)},lazyList:o}},render:function(t){var e=this;return t("view-base",{attrs:{controller:this.c}},[this.c.complete&&t("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[t("i-tab-pane",{class:this.ns.be("","tab-item"),attrs:{tab:this.c.model.drTab.source.name,label:this.c.model.drTab.source.editItemCaption,name:"mainForm"}},[t("edit-form-control",{attrs:{modelData:this.c.model.form,context:this.c.context,params:this.c.params},style:{height:"auto"},on:{neuronInit:this.c.nerve.onNeuronInit(this.c.model.form.source.name)}}),t(I,{attrs:{context:this.c.drPages[this.c.model.drTab.pages[0].source.name].context,params:this.c.drPages[this.c.model.drTab.pages[0].source.name].params,deName:this.c.model.appEntity.source.codeName,modal:this.modal,modelPath:this.c.model.drTab.pages[0].embedView.source.modelPath}})]),this.c.model.drTab.pages.map((function(r){var n=e.c.drPages[r.source.name];if(n)return t("i-tab-pane",{class:e.ns.be("","tab-item"),attrs:{tab:e.c.model.drTab.source.name,disabled:e.c.isNewData,label:r.source.caption,name:r.source.name}},[!e.c.isNewData&&e.lazyList.includes(r.source.name)&&t("ViewShell",{props:{context:n.context,params:n.params,modal:e.modal,modelPath:r.embedView.source.modelPath,deName:e.c.model.appEntity.source.codeName},on:{neuronInit:e.c.nerve.onNeuronInit(r.source.name)},key:n.key})])}))])])}}),z=a((function t(){o(this,t),h(this,"component",F)}));t("default",{mateUrl:r.meta.url,install:function(t){ibiz.register.view.register("VIEW_CUSTOM_SyWebIndexView",new _),ibiz.register.view.register("VIEW_CUSTOM_PresetWFChartView",new T),ibiz.register.gridColumn.register("GRID_COLRENDER_CodeListGridColumn",new j),ibiz.register.view.register("VIEW_CUSTOM_SyWfDynaEditView3",new D),ibiz.register.view.register("VIEW_CUSTOM_SyEditView3",new z)}})}}}))}();
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册