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

feat: 升级插件

上级 5418b866
var V = Object.defineProperty;
var k = (e, s, t) => s in e ? V(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t;
var l = (e, s, t) => (k(e, typeof s != "symbol" ? s + "" : s, t), t);
import { GridFieldColumnController as C, GridRowController as P, WFStepTraceViewController as T } from "@ibiz-template/controller";
import { defineComponent as u, computed as f, h as a, getCurrentInstance as b, ref as p } from "vue";
import { useNamespace as h, useViewController as x, usePropsWatch as g, useWFStepTraceViewController as S, useWFDynaEditView3Controller as N, useEditView3Controller as I } from "@ibiz-template/vue-util";
import { colorBlend as E, IBizContext as F } from "@ibiz-template/core";
import { ViewType as L } from "@ibiz-template/model";
const D = u({
var T = Object.defineProperty;
var V = (e, s, t) => s in e ? T(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t;
var l = (e, s, t) => (V(e, typeof s != "symbol" ? s + "" : s, t), t);
import { GridFieldColumnController as C, GridRowController as N, WFStepTraceViewController as P } from "@ibiz-template/controller";
import { defineComponent as m, computed as f, h as a, getCurrentInstance as b, ref as p } from "vue";
import { useNamespace as d, useViewController as x, usePropsWatch as g, useWFStepTraceViewController as S, useWFDynaEditView3Controller as I, useEditView3Controller as F } from "@ibiz-template/vue-util";
import { colorBlend as E, IBizContext as L } from "@ibiz-template/core";
import { ViewMode as v } from "@ibiz-template/runtime";
import { ViewType as D } from "@ibiz-template/model";
const W = m({
name: "CodeListGridColumn",
props: {
controller: {
......@@ -14,47 +15,47 @@ const D = u({
required: !0
},
row: {
type: P,
type: N,
required: !0
}
},
setup(e) {
const s = h("grid-field-column"), t = f(() => {
var n;
const s = d("grid-field-column"), t = f(() => {
var i;
if (e.controller.model.source.cLConvertMode !== "FRONT")
return [];
const i = e.row.data[e.controller.model.codeName];
return ((n = e.controller.codeListItems) == null ? void 0 : n.length) && i ? i.split(",").map((w) => {
const y = e.controller.codeListItems.find((d) => d.value === w);
const n = e.row.data[e.controller.model.codeName];
return ((i = e.controller.codeListItems) == null ? void 0 : i.length) && n ? n.split(",").map((w) => {
const y = e.controller.codeListItems.find((h) => h.value === w);
if (y) {
const d = y.color || "#515a6e";
const h = y.color || "#515a6e";
return {
text: y.text,
colorStyle: s.cssVarBlock({
color: d,
"border-color": d,
"bg-color": E(d, "#fff")
color: h,
"border-color": h,
"bg-color": E(h, "#fff")
})
};
}
}).filter(Boolean) : [];
}), r = (i) => {
e.controller.isLinkColumn && e.controller.openLinkView(e.row, i);
}), r = (n) => {
e.controller.isLinkColumn && e.controller.openLinkView(e.row, n);
}, o = f(() => {
let i = "";
let n = "";
switch (e.controller.model.align) {
case "LEFT":
i = "flex-start";
n = "flex-start";
break;
case "RIGHT":
i = "flex-end";
n = "flex-end";
break;
default:
i = "center";
n = "center";
break;
}
return s.cssVarBlock({
"justify-content": i
"justify-content": n
});
});
return {
......@@ -80,17 +81,17 @@ const D = u({
}, [s])]);
}
});
class W extends T {
class O extends P {
constructor() {
super(...arguments);
l(this, "imgSrc");
}
async getUIData() {
const t = new F(this.params, this.context), r = await this.entityService.wf.getWFProcessDiagram(t), o = new Blob([r.data]);
const t = new L(this.params, this.context), r = await this.entityService.wf.getWFProcessDiagram(t), o = new Blob([r.data]);
this.imgSrc = URL.createObjectURL(o);
}
}
const O = u({
const j = m({
name: "PresetWFChartView",
props: {
context: Object,
......@@ -110,9 +111,9 @@ const O = u({
}
},
setup(e) {
const s = h("preset-wf-chart-view"), {
const s = d("preset-wf-chart-view"), {
proxy: t
} = b(), r = x(t, (o, i) => new W(e.modelPath, o, i));
} = b(), r = x(t, (o, n) => new O(e.modelPath, o, n));
return g(t, "deName", r.setDeName.bind(r)), {
c: r,
ns: s
......@@ -128,26 +129,64 @@ const O = u({
})]);
}
});
class j {
const z = m({
name: "WFToolbar",
props: {
wfLinks: {
type: Array,
required: !0
}
},
setup(e, {
emit: s
}) {
return {
ns: d("wf-toolbar"),
handleClick: async (o, n) => {
s("wf-link-click", o, n);
}
};
},
render() {
const e = this.wfLinks || [];
return a("div", {
class: `${this.ns.b()}`
}, [e.length > 0 && e.map((s) => {
const t = s.sequenceFlowName == "\u9A73\u56DE";
return a("div", {
key: s.sequenceFlowId,
class: [this.ns.e("item"), t ? this.ns.em("item", "reject") : ""]
}, [a("i-button", {
attrs: {
title: s.sequenceFlowName
},
on: {
click: (r) => this.handleClick(s, r)
}
}, [s.sequenceFlowName || ""])]);
})]);
}
});
class _ {
constructor() {
l(this, "component", O);
l(this, "component", j);
}
}
class _ {
class q {
constructor() {
l(this, "component", D);
l(this, "component", W);
}
async createController(s, t) {
const r = new C(s, t);
return await r.init(), r;
}
}
class z {
class G {
constructor() {
l(this, "component", "IndexView");
}
}
const v = u({
const k = m({
name: "WFStepTraceGrid",
props: {
context: Object,
......@@ -171,13 +210,13 @@ const v = u({
proxy: s
} = b(), t = S(s, e.modelPath);
g(s, "deName", t.setDeName.bind(t));
const r = h("wf-step-trace-grid"), o = p([]);
const r = d("wf-step-trace-grid"), o = p([]);
t.nerve.self.evt.on("mounted", () => {
var n;
!t.data || (n = t.data.usertasks) == null || n.forEach((m) => {
m.identitylinks.length > 0 || (m.comments.length > 0 && m.comments.forEach((c) => {
var i;
!t.data || (i = t.data.usertasks) == null || i.forEach((u) => {
u.identitylinks.length > 0 || (u.comments.length > 0 && u.comments.forEach((c) => {
o.value.push({
nodeName: m.userTaskName,
nodeName: u.userTaskName,
personName: c.authorName,
time: c.time,
content: c.type,
......@@ -186,7 +225,7 @@ const v = u({
}), o.value.sort((c, w) => Date.parse(w.time) - Date.parse(c.time)));
});
});
const i = p([{
const n = p([{
title: "\u5904\u7406\u73AF\u8282",
key: "nodeName",
width: 180,
......@@ -214,7 +253,7 @@ const v = u({
c: t,
ns: r,
gridData: o,
columns: i
columns: n
};
},
render() {
......@@ -231,7 +270,7 @@ const v = u({
class: this.ns.e("grid")
})]);
}
}), G = u({
}), B = m({
props: {
context: Object,
params: {
......@@ -248,12 +287,12 @@ const v = u({
setup(e) {
const {
proxy: s
} = b(), t = N(s, e.modelPath), r = h(`view-${L.DE_WF_DYNA_EDIT_VIEW3}`.toLowerCase()), o = p(["mainForm"]);
} = b(), t = I(s, e.modelPath), r = d(`view-${D.DE_WF_DYNA_EDIT_VIEW3}`.toLowerCase()), o = p(["mainForm"]);
return {
c: t,
ns: r,
onTabClick: (n) => {
o.value.includes(n) || o.value.push(n);
onTabClick: (i) => {
o.value.includes(i) || o.value.push(i);
},
lazyList: o
};
......@@ -280,7 +319,7 @@ const v = u({
}
if (this.c.complete && this.c.model.drTab.pages[0]) {
const t = this.c.model.drTab.pages[0], r = this.c.drPages[t.source.name];
s.push(e(v, {
s.push(e(k, {
attrs: {
context: r.context,
params: r.params,
......@@ -335,7 +374,9 @@ const v = u({
props: {
context: r.context,
params: r.params,
modal: this.modal,
modal: {
mode: v.EMBED
},
modelPath: t.embedView.source.modelPath,
deName: this.c.model.appEntity.source.codeName
},
......@@ -347,12 +388,12 @@ const v = u({
})])]);
}
});
class q {
class M {
constructor() {
l(this, "component", G);
l(this, "component", B);
}
}
const R = u({
const R = m({
name: "SyEditView3",
props: {
context: Object,
......@@ -370,12 +411,12 @@ const R = u({
setup(e) {
const {
proxy: s
} = b(), t = I(s, e.modelPath), r = h("view-deeditview3"), o = p(["mainForm"]);
} = b(), t = F(s, e.modelPath), r = d("view-deeditview3"), o = p(["mainForm"]);
return {
c: t,
ns: r,
onTabClick: (n) => {
o.value.includes(n) || o.value.push(n);
onTabClick: (i) => {
o.value.includes(i) || o.value.push(i);
},
lazyList: o
};
......@@ -412,7 +453,7 @@ const R = u({
on: {
neuronInit: this.c.nerve.onNeuronInit(this.c.model.form.source.name)
}
}), e(v, {
}), e(k, {
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,
......@@ -435,7 +476,9 @@ const R = u({
props: {
context: t.context,
params: t.params,
modal: this.modal,
modal: {
mode: v.EMBED
},
modelPath: s.embedView.source.modelPath,
deName: this.c.model.appEntity.source.codeName
},
......@@ -452,21 +495,21 @@ class U {
l(this, "component", R);
}
}
const J = {
const X = {
mateUrl: import.meta.url,
install(e) {
ibiz.register.view.register(
ibiz.config.enableDataInfoBar = !1, e.component("WfToolbar", z), ibiz.register.view.register(
"VIEW_CUSTOM_SyWebIndexView",
new z()
new G()
), ibiz.register.view.register(
"VIEW_CUSTOM_PresetWFChartView",
new j()
new _()
), ibiz.register.gridColumn.register(
"GRID_COLRENDER_CodeListGridColumn",
new _()
new q()
), ibiz.register.view.register(
"VIEW_CUSTOM_SyWfDynaEditView3",
new q()
new M()
), ibiz.register.view.register(
"VIEW_CUSTOM_SyEditView3",
new U()
......@@ -474,5 +517,5 @@ const J = {
}
};
export {
J as default
X as default
};
!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 e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(T){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),c=new P(n||[]);return i(a,"_invoke",{value:E(e,r,c)}),a}function h(e,t,r){try{return{type:"normal",arg:e.call(t,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(C([])));w&&w!==n&&o.call(w,c)&&(v=w);var g=y.prototype=m.prototype=Object.create(v);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(t,r){function n(i,a,c,s){var u=h(t[i],t,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==e(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,c,s)}),(function(e){n("throw",e,c,s)})):r.resolve(f).then((function(e){l.value=e,c(l)}),(function(e){return n("throw",e,c,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(e,t){function o(){return new r((function(r,o){n(e,t,r,o)}))}return a=a?a.then(o,o):o()}})}function E(e,t,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 S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=L(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(e,t,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 L(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,L(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=h(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function C(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:S}}function S(){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(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},r.awrap=function(e){return{__await:e}},x(k.prototype),l(k.prototype,s,(function(){return this})),r.AsyncIterator=k,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new k(f(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.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(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=C,P.prototype={constructor:P,reset:function(e){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(N),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.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(e,t){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"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.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(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},r}function r(e,t,r,n,o,i,a){try{var c=e[i](a),s=c.value}catch(u){return void r(u)}c.done?t(s):Promise.resolve(s).then(n,o)}function n(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,s,"next",e)}function s(e){r(a,o,i,c,s,"throw",e)}c(void 0)}))}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function s(e){var t=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(e){return!1}}();return function(){var r,n=f(e);if(t){var o=f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return u(this,r)}}function u(t,r){if(r&&("object"===e(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}System.register(["@ibiz-template/controller","vue","@ibiz-template/vue-util","@ibiz-template/core","@ibiz-template/runtime","@ibiz-template/model"],(function(e,r){"use strict";var i,u,f,d,m,p,y,v,b,w,g,x,k,E,L,O,N,P;return{setters:[function(e){i=e.GridFieldColumnController,u=e.GridRowController,f=e.WFStepTraceViewController},function(e){d=e.defineComponent,m=e.computed,p=e.h,y=e.getCurrentInstance,v=e.ref},function(e){b=e.useNamespace,w=e.useViewController,g=e.usePropsWatch,x=e.useWFStepTraceViewController,k=e.useWFDynaEditView3Controller,E=e.useEditView3Controller},function(e){L=e.colorBlend,O=e.IBizContext},function(e){N=e.ViewMode},function(e){P=e.ViewType}],execute:function(){var C=d({name:"CodeListGridColumn",props:{controller:{type:i,required:!0},row:{type:u,required:!0}},setup:function(e){var t=b("grid-field-column"),r=m((function(){var r;if("FRONT"!==e.controller.model.source.cLConvertMode)return[];var n=e.row.data[e.controller.model.codeName];return null!==(r=e.controller.codeListItems)&&void 0!==r&&r.length&&n?n.split(",").map((function(r){var n=e.controller.codeListItems.find((function(e){return e.value===r}));if(n){var o=n.color||"#515a6e";return{text:n.text,colorStyle:t.cssVarBlock({color:o,"border-color":o,"bg-color":L(o,"#fff")})}}})).filter(Boolean):[]})),n=m((function(){var r="";switch(e.controller.model.align){case"LEFT":r="flex-start";break;case"RIGHT":r="flex-end";break;default:r="center"}return t.cssVarBlock({"justify-content":r})}));return{ns:t,alignStyle:n,selectedItems:r,onCellClick:function(t){e.controller.isLinkColumn&&e.controller.openLinkView(e.row,t)}}},render:function(){var e=this,t=this.controller,r=this.row.data[t.model.codeName];return p("div",{class:[this.ns.b(),t.isLinkColumn&&this.ns.m("link-column")],style:this.alignStyle,on:{click:this.onCellClick}},[this.selectedItems.length>0?this.selectedItems.map((function(t){return p("span",{class:e.ns.e("code-list-item"),style:t.colorStyle},[t.text])})):p("span",{class:this.ns.e("text")},[r])])}}),S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("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&&c(e,t)}(u,e);var r,i=s(u);function u(){var e;o(this,u);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return h(l(e=i.call.apply(i,[this].concat(r))),"imgSrc",void 0),e}return a(u,[{key:"getUIData",value:(r=n(t().mark((function e(){var r,n,o;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new O(this.params,this.context),e.next=3,this.entityService.wf.getWFProcessDiagram(r);case 3:n=e.sent,o=new Blob([n.data]),this.imgSrc=URL.createObjectURL(o);case 6:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}]),u}(f),T=d({name:"PresetWFChartView",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},deName:{type:String,required:!0}},setup:function(e){var t=b("preset-wf-chart-view"),r=y().proxy,n=w(r,(function(t,r){return new S(e.modelPath,t,r)}));return g(r,"deName",n.setDeName.bind(n)),{c:n,ns:t}},render:function(){return p("div",{class:this.ns.b()},[p("img",{attrs:{src:this.c.imgSrc}})])}}),j=d({name:"WFToolbar",props:{wfLinks:{type:Array,required:!0}},setup:function(e,r){var o=r.emit,i=b("wf-toolbar"),a=function(){var e=n(t().mark((function e(r,n){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o("wf-link-click",r,n);case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();return{ns:i,handleClick:a}},render:function(){var e=this,t=this.wfLinks||[];return p("div",{class:"".concat(this.ns.b())},[t.length>0&&t.map((function(t){var r="驳回"==t.sequenceFlowName;return p("div",{key:t.sequenceFlowId,class:[e.ns.e("item"),r?e.ns.em("item","reject"):""]},[p("i-button",{attrs:{title:t.sequenceFlowName},on:{click:function(r){return e.handleClick(t,r)}}},[t.sequenceFlowName||""])])}))])}}),_=a((function e(){o(this,e),h(this,"component",T)})),I=function(){function e(){o(this,e),h(this,"component",C)}var r;return a(e,[{key:"createController",value:(r=n(t().mark((function e(r,n){var o;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=new i(r,n),e.next=3,o.init();case 3:return e.abrupt("return",o);case 4:case"end":return e.stop()}}),e)}))),function(e,t){return r.apply(this,arguments)})}]),e}(),V=a((function e(){o(this,e),h(this,"component","IndexView")})),F=d({name:"WFStepTraceGrid",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},deName:{type:String,required:!0}},setup:function(e){var t=y().proxy,r=x(t,e.modelPath);g(t,"deName",r.setDeName.bind(r));var n=b("wf-step-trace-grid"),o=v([]);r.nerve.self.evt.on("mounted",(function(){var e;r.data&&(null===(e=r.data.usertasks)||void 0===e||e.forEach((function(e){e.identitylinks.length>0||(e.comments.length>0&&e.comments.forEach((function(t){o.value.push({nodeName:e.userTaskName,personName:t.authorName,time:t.time,content:t.type,comment:t.fullMessage})})),o.value.sort((function(e,t){return Date.parse(t.time)-Date.parse(e.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")})])}}),D=d({props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(e){var t=y().proxy,r=k(t,e.modelPath),n=b("view-".concat(P.DE_WF_DYNA_EDIT_VIEW3).toLowerCase()),o=v(["mainForm"]);return{c:r,ns:n,onTabClick:function(e){o.value.includes(e)||o.value.push(e)},lazyList:o}},render:function(e){var t=this,r=[];if(this.c.complete){var n=this.c.activeForm;n&&this.c.providers[n.name]&&r.push(e(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(e(F,{attrs:{context:i.context,params:i.params,deName:this.c.model.appEntity.source.codeName,modal:this.modal,modelPath:o.embedView.source.modelPath}}))}return e("view-base",{attrs:{controller:this.c},scopedSlots:{toolbar:function(){return t.c.complete?[t.c.wfLinks.length>0&&e("wf-toolbar",{attrs:{wfLinks:t.c.wfLinks},on:{"wf-link-click":function(e){t.c.onLinkClick(e)}}})]:null}}},[this.c.complete&&e("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[e("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=t.c.drPages[r.source.name];return e("i-tab-pane",{class:t.ns.be("","tab-item"),attrs:{tab:t.c.model.drTab.source.name,disabled:t.c.isNewData,label:r.source.caption,name:r.source.name}},[!t.c.isNewData&&t.lazyList.includes(r.source.name)&&e("ViewShell",{props:{context:n.context,params:n.params,modal:{mode:N.EMBED},modelPath:r.embedView.source.modelPath,deName:t.c.model.appEntity.source.codeName},on:{neuronInit:t.c.nerve.onNeuronInit(r.source.name)},key:n.key})])}))])])}}),z=a((function e(){o(this,e),h(this,"component",D)})),W=d({name:"SyEditView3",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(e){var t=y().proxy,r=E(t,e.modelPath),n=b("view-deeditview3"),o=v(["mainForm"]);return{c:r,ns:n,onTabClick:function(e){o.value.includes(e)||o.value.push(e)},lazyList:o}},render:function(e){var t=this;return e("view-base",{attrs:{controller:this.c}},[this.c.complete&&e("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[e("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"}},[e("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)}}),e(F,{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=t.c.drPages[r.source.name];if(n)return e("i-tab-pane",{class:t.ns.be("","tab-item"),attrs:{tab:t.c.model.drTab.source.name,disabled:t.c.isNewData,label:r.source.caption,name:r.source.name}},[!t.c.isNewData&&t.lazyList.includes(r.source.name)&&e("ViewShell",{props:{context:n.context,params:n.params,modal:{mode:N.EMBED},modelPath:r.embedView.source.modelPath,deName:t.c.model.appEntity.source.codeName},on:{neuronInit:t.c.nerve.onNeuronInit(r.source.name)},key:n.key})])}))])])}}),G=a((function e(){o(this,e),h(this,"component",W)}));e("default",{mateUrl:r.meta.url,install:function(e){ibiz.config.enableDataInfoBar=!1,e.component("WfToolbar",j),ibiz.register.view.register("VIEW_CUSTOM_SyWebIndexView",new V),ibiz.register.view.register("VIEW_CUSTOM_PresetWFChartView",new _),ibiz.register.gridColumn.register("GRID_COLRENDER_CodeListGridColumn",new I),ibiz.register.view.register("VIEW_CUSTOM_SyWfDynaEditView3",new z),ibiz.register.view.register("VIEW_CUSTOM_SyEditView3",new G)}})}}}))}();
@charset "UTF-8";.ibiz-grid-field-column{--ibiz-grid-field-column-cell-padding: var(--ibiz-grid-cell-padding);--ibiz-grid-field-column-font-color: var(--ibiz-color-primary);display:flex;align-items:center;justify-content:var(--ibiz-grid-field-column-justify-content);width:100%;height:100%;padding:var(--ibiz-grid-field-column-cell-padding)}.ibiz-grid-field-column__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-grid-field-column--link-column{color:var(--ibiz-grid-field-column-font-color);cursor:pointer}.ibiz-grid-field-column__code-list-item{color:var(--ibiz-grid-field-column-color);border-color:var(--ibiz-grid-field-column-border-color);background-color:var(--ibiz-grid-field-column-bg-color);border:3px solid var(--ibiz-grid-field-column-border-color);border-radius:5px;padding:0 8px;display:inline-block}.ibiz-preset-wf-chart-view{width:100%;height:100%;text-align:center;overflow:auto}.ibiz-wf-step-trace-grid__title{padding:calc(var(--ibiz-padding) / 2);font-size:var(--ibiz-font-size-medium);border-bottom:1px solid var(--ibiz-border-color)}.ibiz-wf-step-trace-grid__grid{margin:var(--ibiz-padding)}.app{width:100vw;height:100vh}.app .ibiz-layout{position:relative;margin:auto;--ibiz-layout-width: 1280px}
@charset "UTF-8";.ibiz-grid-field-column{--ibiz-grid-field-column-cell-padding: var(--ibiz-grid-cell-padding);--ibiz-grid-field-column-font-color: var(--ibiz-color-primary);display:flex;align-items:center;justify-content:var(--ibiz-grid-field-column-justify-content);width:100%;height:100%;padding:var(--ibiz-grid-field-column-cell-padding)}.ibiz-grid-field-column__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-grid-field-column--clickable{color:var(--ibiz-grid-field-column-font-color);cursor:pointer}.ibiz-grid-field-column__code-list-item{color:var(--ibiz-grid-field-column-color);border-color:var(--ibiz-grid-field-column-border-color);background-color:var(--ibiz-grid-field-column-bg-color);border:3px solid var(--ibiz-grid-field-column-border-color);border-radius:5px;padding:0 8px;display:inline-block}.ibiz-preset-wf-chart-view{width:100%;height:100%;text-align:center;overflow:auto}.ibiz-wf-toolbar{display:flex}.ibiz-wf-toolbar__item{display:flex;align-items:center;margin:0 4px}.ibiz-wf-toolbar__item .ivu-btn{display:flex;align-items:center;justify-content:center;background-color:#52c41a;border-color:#52c41a;color:#fff}.ibiz-wf-toolbar__item .ivu-btn:hover{background-color:#47cb89;border-color:#47cb89}.ibiz-wf-toolbar__item .ivu-btn>span{display:flex;align-items:center;justify-content:center}.ibiz-wf-toolbar__item--reject .ivu-btn{background-color:#fff;color:#ff434d;border-color:#ff434d}.ibiz-wf-toolbar__item--reject .ivu-btn:hover{color:#f16643;border-color:#f16643;background-color:rgba(254,245,243,.5)}.ibiz-wf-step-trace-grid{background-color:var(--ibiz-bg-color-overlay);border-radius:var(--ibiz-border-radius-base);margin-bottom:var(--ibiz-margin-bottom);padding-bottom:var(--ibiz-padding)}.ibiz-wf-step-trace-grid__title{padding:calc(var(--ibiz-padding) / 2);font-size:var(--ibiz-font-size-medium);border-bottom:1px solid var(--ibiz-border-color)}.ibiz-wf-step-trace-grid__grid{margin:var(--ibiz-padding)}.app{width:100vw;height:100vh}.app .ibiz-layout{position:relative;margin:auto;--ibiz-layout-width: 1280px}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册