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

feat: 插件更新

上级 635c8603
var T = Object.defineProperty; var A = Object.defineProperty;
var N = (e, s, t) => s in e ? T(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t; var j = (e, t, o) => t in e ? A(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
var l = (e, s, t) => (N(e, typeof s != "symbol" ? s + "" : s, t), t); var f = (e, t, o) => (j(e, typeof t != "symbol" ? t + "" : t, o), o);
import { GridFieldColumnController as C, GridRowController as V, WFStepTraceViewController as P } from "@ibiz-template/controller"; import { GridFieldColumnController as L, GridRowController as z, WFStepTraceViewController as M, UploadEditorController as R } from "@ibiz-template/controller";
import { defineComponent as m, computed as f, h as a, getCurrentInstance as b, ref as p } from "vue"; import { defineComponent as y, computed as N, h as u, getCurrentInstance as T, ref as m, watch as E } 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 { useNamespace as v, useViewController as q, usePropsWatch as _, getUploadProps as G, getEditorEmits as $, useWFStepTraceViewController as J, useWFDynaEditView3Controller as Y, useEditView3Controller as H } from "@ibiz-template/vue-util";
import { colorBlend as E, IBizContext as L } from "@ibiz-template/core"; import { colorBlend as K, IBizContext as Q } from "@ibiz-template/core";
import { ViewMode as v } from "@ibiz-template/runtime"; import { getCookie as X } from "qx-util";
import { ViewType as D } from "@ibiz-template/model"; import { ViewMode as W } from "@ibiz-template/runtime";
const W = m({ import { ViewType as Z } from "@ibiz-template/model";
const ee = y({
name: "CodeListGridColumn", name: "CodeListGridColumn",
props: { props: {
controller: { controller: {
type: C, type: L,
required: !0 required: !0
}, },
row: { row: {
type: V, type: z,
required: !0 required: !0
} }
}, },
setup(e) { setup(e) {
const s = d("grid-field-column"), t = f(() => { const t = v("grid-field-column"), o = N(() => {
var i; var a;
if (e.controller.model.source.cLConvertMode !== "FRONT") if (e.controller.model.source.cLConvertMode !== "FRONT")
return []; return [];
const n = e.row.data[e.controller.model.codeName]; const n = e.row.data[e.controller.model.codeName];
return ((i = e.controller.codeListItems) == null ? void 0 : i.length) && n ? n.split(",").map((w) => { return ((a = e.controller.codeListItems) == null ? void 0 : a.length) && n ? n.split(",").map((b) => {
const y = e.controller.codeListItems.find((h) => h.value === w); const w = e.controller.codeListItems.find((p) => p.value === b);
if (y) { if (w) {
const h = y.color || "#515a6e"; const p = w.color || "#515a6e";
return { return {
text: y.text, text: w.text,
colorStyle: s.cssVarBlock({ colorStyle: t.cssVarBlock({
color: h, color: p,
"border-color": h, "border-color": p,
"bg-color": E(h, "#fff") "bg-color": K(p, "#fff")
}) })
}; };
} }
}).filter(Boolean) : []; }).filter(Boolean) : [];
}), r = (n) => { }), s = (n) => {
e.controller.isLinkColumn && e.controller.openLinkView(e.row, n); e.controller.isLinkColumn && e.controller.openLinkView(e.row, n);
}, o = f(() => { }, i = N(() => {
let n = ""; let n = "";
switch (e.controller.model.align) { switch (e.controller.model.align) {
case "LEFT": case "LEFT":
...@@ -54,44 +55,44 @@ const W = m({ ...@@ -54,44 +55,44 @@ const W = m({
n = "center"; n = "center";
break; break;
} }
return s.cssVarBlock({ return t.cssVarBlock({
"justify-content": n "justify-content": n
}); });
}); });
return { return {
ns: s, ns: t,
alignStyle: o, alignStyle: i,
selectedItems: t, selectedItems: o,
onCellClick: r onCellClick: s
}; };
}, },
render() { render() {
const e = this.controller, s = this.row.data[e.model.codeName]; const e = this.controller, t = this.row.data[e.model.codeName];
return a("div", { return u("div", {
class: [this.ns.b(), e.isLinkColumn && this.ns.m("link-column")], class: [this.ns.b(), e.isLinkColumn && this.ns.m("link-column")],
style: this.alignStyle, style: this.alignStyle,
on: { on: {
click: this.onCellClick click: this.onCellClick
} }
}, [this.selectedItems.length > 0 ? this.selectedItems.map((t) => a("span", { }, [this.selectedItems.length > 0 ? this.selectedItems.map((o) => u("span", {
class: this.ns.e("code-list-item"), class: this.ns.e("code-list-item"),
style: t.colorStyle style: o.colorStyle
}, [t.text])) : a("span", { }, [o.text])) : u("span", {
class: this.ns.e("text") class: this.ns.e("text")
}, [s])]); }, [t])]);
} }
}); });
class O extends P { class te extends M {
constructor() { constructor() {
super(...arguments); super(...arguments);
l(this, "imgSrc"); f(this, "imgSrc");
} }
async getUIData() { async getUIData() {
const t = new L(this.params, this.context), r = await this.entityService.wf.getWFProcessDiagram(t), o = new Blob([r.data]); const o = new Q(this.params, this.context), s = await this.entityService.wf.getWFProcessDiagram(o), i = new Blob([s.data]);
this.imgSrc = URL.createObjectURL(o); this.imgSrc = URL.createObjectURL(i);
} }
} }
const j = m({ const oe = y({
name: "PresetWFChartView", name: "PresetWFChartView",
props: { props: {
context: Object, context: Object,
...@@ -111,25 +112,25 @@ const j = m({ ...@@ -111,25 +112,25 @@ const j = m({
} }
}, },
setup(e) { setup(e) {
const s = d("preset-wf-chart-view"), { const t = v("preset-wf-chart-view"), {
proxy: t proxy: o
} = b(), r = x(t, (o, n) => new O(e.modelPath, o, n)); } = T(), s = q(o, (i, n) => new te(e.modelPath, i, n));
return g(t, "deName", r.setDeName.bind(r)), { return _(o, "deName", s.setDeName.bind(s)), {
c: r, c: s,
ns: s ns: t
}; };
}, },
render() { render() {
return a("div", { return u("div", {
class: this.ns.b() class: this.ns.b()
}, [a("img", { }, [u("img", {
attrs: { attrs: {
src: this.c.imgSrc src: this.c.imgSrc
} }
})]); })]);
} }
}); });
const z = m({ const se = y({
name: "WFToolbar", name: "WFToolbar",
props: { props: {
wfLinks: { wfLinks: {
...@@ -138,55 +139,310 @@ const z = m({ ...@@ -138,55 +139,310 @@ const z = m({
} }
}, },
setup(e, { setup(e, {
emit: s emit: t
}) { }) {
return { return {
ns: d("wf-toolbar"), ns: v("wf-toolbar"),
handleClick: async (o, n) => { handleClick: async (i, n) => {
s("wf-link-click", o, n); t("wf-link-click", i, n);
} }
}; };
}, },
render() { render() {
const e = this.wfLinks || []; const e = this.wfLinks || [];
return a("div", { return u("div", {
class: `${this.ns.b()}` class: `${this.ns.b()}`
}, [e.length > 0 && e.map((s) => { }, [e.length > 0 && e.map((t) => {
const t = s.sequenceFlowName == "\u9A73\u56DE" || s.sequenceFlowName == "\u53D6\u6D88"; const o = t.sequenceFlowName == "\u9A73\u56DE" || t.sequenceFlowName == "\u53D6\u6D88";
return a("div", { return u("div", {
key: s.sequenceFlowId, key: t.sequenceFlowId,
class: [this.ns.e("item"), t ? this.ns.em("item", "reject") : ""] class: [this.ns.e("item"), o ? this.ns.em("item", "reject") : ""]
}, [a("i-button", { }, [u("i-button", {
attrs: { attrs: {
title: s.sequenceFlowName title: t.sequenceFlowName
}, },
on: { on: {
click: (r) => this.handleClick(s, r) click: (s) => this.handleClick(t, s)
} }
}, [s.sequenceFlowName || ""])]); }, [t.sequenceFlowName || ""])]);
})]); })]);
} }
}), re = typeof btoa == "function", U = typeof Buffer == "function";
typeof TextDecoder == "function" && new TextDecoder();
const P = typeof TextEncoder == "function" ? new TextEncoder() : void 0, ie = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", S = Array.prototype.slice.call(ie);
((e) => {
let t = {};
return e.forEach((o, s) => t[o] = s), t;
})(S);
const h = String.fromCharCode.bind(String);
typeof Uint8Array.from == "function" && Uint8Array.from.bind(Uint8Array);
const ne = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "_"), ae = (e) => {
let t, o, s, i, n = "";
const a = e.length % 3;
for (let l = 0; l < e.length; ) {
if ((o = e.charCodeAt(l++)) > 255 || (s = e.charCodeAt(l++)) > 255 || (i = e.charCodeAt(l++)) > 255)
throw new TypeError("invalid character found");
t = o << 16 | s << 8 | i, n += S[t >> 18 & 63] + S[t >> 12 & 63] + S[t >> 6 & 63] + S[t & 63];
}
return a ? n.slice(0, a - 3) + "===".substring(a) : n;
}, B = re ? (e) => btoa(e) : U ? (e) => Buffer.from(e, "binary").toString("base64") : ae, le = U ? (e) => Buffer.from(e).toString("base64") : (e) => {
let o = [];
for (let s = 0, i = e.length; s < i; s += 4096)
o.push(h.apply(null, e.subarray(s, s + 4096)));
return B(o.join(""));
}, ce = (e) => {
if (e.length < 2) {
var t = e.charCodeAt(0);
return t < 128 ? e : t < 2048 ? h(192 | t >>> 6) + h(128 | t & 63) : h(224 | t >>> 12 & 15) + h(128 | t >>> 6 & 63) + h(128 | t & 63);
} else {
var t = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
return h(240 | t >>> 18 & 7) + h(128 | t >>> 12 & 63) + h(128 | t >>> 6 & 63) + h(128 | t & 63);
}
}, de = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, me = (e) => e.replace(de, ce), V = U ? (e) => Buffer.from(e, "utf8").toString("base64") : P ? (e) => le(P.encode(e)) : (e) => B(me(e)), ue = (e, t = !1) => t ? ne(V(e)) : V(e);
function he(e, t, o) {
const s = m([]), i = m({
Authorization: `Bearer ${X("access_token")}`
}), n = m(""), a = m(""), l = {
count: 0,
cacheFiles: []
};
E(
() => e.value,
(r) => {
s.value = r ? JSON.parse(r) : [];
},
{ immediate: !0 }
), E(
() => e.data,
(r) => {
if (r) {
const c = o.calcBaseUrl(r);
n.value = c.uploadUrl, a.value = c.downloadUrl;
}
},
{ immediate: !0, deep: !0 }
), E(
s,
(r) => {
(r == null ? void 0 : r.length) && a.value && r.forEach((c) => {
c.url = c.url || a.value.replace("%fileId%", c.id);
});
},
{ immediate: !0 }
), E(
a,
(r) => {
r && s.value.length && s.value.forEach((c) => {
c.url = a.value.replace("%fileId%", c.id);
});
},
{ immediate: !0 }
);
const d = () => {
const r = [...s.value, ...l.cacheFiles], c = r.length > 0 ? JSON.stringify(r.map((g) => ({ name: g.name, id: g.id }))) : null;
l.cacheFiles = [], t(c);
}, b = () => {
l.count += 1;
}, w = (r) => {
!r || (l.cacheFiles.push({
name: r.filename,
id: r.fileid
}), l.count -= 1, l.count === 0 && d());
}, p = (r) => {
throw l.count -= 1, r;
}, k = (r) => {
if (e.disabled)
return;
const c = s.value.findIndex((g) => g.id === r.id);
c !== -1 && s.value.splice(c, 1), d();
}, D = (r) => {
const c = r.url || a.value.replace("%fileId%", r.id);
o.fileDownload({ url: c, name: r.name });
}, C = m(!1), x = m(""), F = m("");
return {
uploadUrl: n,
downloadUrl: a,
headers: i,
files: s,
onDownload: D,
onError: p,
onRemove: k,
onSuccess: w,
beforeUpload: b,
showModal: C,
modalTitle: x,
iframeUrl: F,
onModalCancel: () => {
C.value = !1, x.value = "", F.value = "";
},
previewFile: (r) => {
C.value = !0, x.value = r.name;
const c = window.Environment.previewFileUrl;
if (c) {
const g = encodeURIComponent(
ue(
`${window.location.origin}${r.url}?fullfilename=${r.name}`
)
);
F.value = `${c}/onlinePreview?url=${g}`;
}
}
};
}
const pe = y({
name: "SyFileUpload",
props: G(),
emits: $(),
setup(e, {
emit: t
}) {
const o = v("sy-file-upload"), s = e.controller, {
uploadUrl: i,
headers: n,
files: a,
onDownload: l,
onError: d,
onRemove: b,
onSuccess: w,
beforeUpload: p,
showModal: k,
modalTitle: D,
iframeUrl: C,
onModalCancel: x,
previewFile: F
} = he(e, (I) => {
t("change", I);
}, s);
return {
ns: o,
c: s,
uploadUrl: i,
headers: n,
files: a,
onDownload: l,
onError: d,
onRemove: b,
onSuccess: w,
beforeUpload: p,
showModal: k,
modalTitle: D,
iframeUrl: C,
onModalCancel: x,
previewFile: F
};
},
render(e) {
return e("div", {
class: [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : ""]
}, [e("IUpload", {
ref: "fileUpload",
props: {
action: this.uploadUrl,
headers: this.headers,
disabled: this.disabled,
"default-file-list": this.files,
multiple: this.c.model.multiple,
type: this.c.model.isDrag ? "drag" : "select",
accept: this.c.model.accept,
"before-upload": this.beforeUpload,
"on-success": this.onSuccess,
"on-error": this.onError,
"on-remove": this.onRemove,
"on-preview": this.onDownload,
"show-upload-list": !1
}
}, [this.c.model.isDrag ? e("div", {
class: this.ns.bm("box", "drag")
}, [e("i-icon", {
attrs: {
type: "md-cloud-upload"
}
}), e("div", {
class: this.ns.be("box", "title")
}, [e("span", ["\u5C06\u6587\u4EF6\u62D6\u5230\u6B64\u5904\uFF0C\u6216"]), e("span", ["\u70B9\u51FB\u4E0A\u4F20"])])]) : e("i-button", {
attrs: {
icon: "md-cloud-upload"
},
class: this.ns.bm("box", "select")
}, ["\u70B9\u51FB\u4E0A\u4F20"])]), e("div", {
class: this.ns.b("file-list")
}, [this.files.map((t) => e("div", {
class: this.ns.b("file-item"),
key: t.id
}, [e("div", {
class: this.ns.b("file-item-title")
}, [e("i-icon", {
attrs: {
type: "md-document"
}
}), e("span", [t.name])]), e("div", {
class: this.ns.b("file-item-action")
}, [e("i-button", {
class: this.ns.be("file-item-action", "download"),
attrs: {
icon: "md-download",
type: "text"
},
on: {
click: () => this.onDownload(t)
}
}, ["\u4E0B\u8F7D"]), e("i-button", {
class: this.ns.be("file-item-action", "preview"),
attrs: {
icon: "md-eye",
type: "text"
},
on: {
click: () => this.previewFile(t)
}
}, ["\u9884\u89C8"]), this.disabled || this.readonly ? null : e("i-button", {
class: this.ns.be("file-item-action", "remove"),
attrs: {
icon: "md-trash",
type: "text"
},
on: {
click: () => this.onRemove(t)
}
}, ["\u5220\u9664"])])]))]), e("i-modal", {
attrs: {
value: this.showModal,
title: this.modalTitle,
width: "70%",
transfer: !1,
"footer-hide": !0
},
on: {
"on-cancel": this.onModalCancel
}
}, [e("iframe", {
class: this.ns.b("iframe"),
attrs: {
src: this.iframeUrl
}
})])]);
}
}); });
class q { class fe {
constructor() { constructor() {
l(this, "component", j); f(this, "component", oe);
} }
} }
class _ { class be {
constructor() { constructor() {
l(this, "component", W); f(this, "component", ee);
} }
async createController(s, t) { async createController(t, o) {
const r = new C(s, t); const s = new L(t, o);
return await r.init(), r; return await s.init(), s;
} }
} }
class G { class we {
constructor() { constructor() {
l(this, "component", "IndexView"); f(this, "component", "IndexView");
} }
} }
const k = m({ const O = y({
name: "WFStepTraceGrid", name: "WFStepTraceGrid",
props: { props: {
context: Object, context: Object,
...@@ -207,25 +463,25 @@ const k = m({ ...@@ -207,25 +463,25 @@ const k = m({
}, },
setup(e) { setup(e) {
const { const {
proxy: s proxy: t
} = b(), t = S(s, e.modelPath); } = T(), o = J(t, e.modelPath);
g(s, "deName", t.setDeName.bind(t)); _(t, "deName", o.setDeName.bind(o));
const r = d("wf-step-trace-grid"), o = p([]); const s = v("wf-step-trace-grid"), i = m([]);
t.nerve.self.evt.on("mounted", () => { o.nerve.self.evt.on("mounted", () => {
var i; var a;
!t.data || (i = t.data.usertasks) == null || i.forEach((u) => { !o.data || (a = o.data.usertasks) == null || a.forEach((l) => {
u.identitylinks.length > 0 || (u.comments.length > 0 && u.comments.forEach((c) => { l.identitylinks.length > 0 || (l.comments.length > 0 && l.comments.forEach((d) => {
o.value.push({ i.value.push({
nodeName: u.userTaskName, nodeName: l.userTaskName,
personName: c.authorName, personName: d.authorName,
time: c.time, time: d.time,
content: c.type, content: d.type,
comment: c.fullMessage comment: d.fullMessage
}); });
}), o.value.sort((c, w) => Date.parse(w.time) - Date.parse(c.time))); }), i.value.sort((d, b) => Date.parse(b.time) - Date.parse(d.time)));
}); });
}); });
const n = p([{ const n = m([{
title: "\u5904\u7406\u73AF\u8282", title: "\u5904\u7406\u73AF\u8282",
key: "nodeName", key: "nodeName",
width: 180, width: 180,
...@@ -250,18 +506,18 @@ const k = m({ ...@@ -250,18 +506,18 @@ const k = m({
key: "comment" key: "comment"
}]); }]);
return { return {
c: t, c: o,
ns: r, ns: s,
gridData: o, gridData: i,
columns: n columns: n
}; };
}, },
render() { render() {
return a("div", { return u("div", {
class: this.ns.b() class: this.ns.b()
}, [a("div", { }, [u("div", {
class: this.ns.e("title") class: this.ns.e("title")
}, ["\u5BA1\u6279\u4FE1\u606F"]), a("i-table", { }, ["\u5BA1\u6279\u4FE1\u606F"]), u("i-table", {
attrs: { attrs: {
"disabled-hover": !0, "disabled-hover": !0,
columns: this.columns, columns: this.columns,
...@@ -270,7 +526,7 @@ const k = m({ ...@@ -270,7 +526,7 @@ const k = m({
class: this.ns.e("grid") class: this.ns.e("grid")
})]); })]);
} }
}), B = m({ }), ye = y({
props: { props: {
context: Object, context: Object,
params: { params: {
...@@ -286,26 +542,26 @@ const k = m({ ...@@ -286,26 +542,26 @@ const k = m({
}, },
setup(e) { setup(e) {
const { const {
proxy: s proxy: t
} = b(), t = I(s, e.modelPath), r = d(`view-${D.DE_WF_DYNA_EDIT_VIEW3}`.toLowerCase()), o = p(["mainForm"]); } = T(), o = Y(t, e.modelPath), s = v(`view-${Z.DE_WF_DYNA_EDIT_VIEW3}`.toLowerCase()), i = m(["mainForm"]);
return { return {
c: t, c: o,
ns: r, ns: s,
onTabClick: (i) => { onTabClick: (a) => {
o.value.includes(i) || o.value.push(i); i.value.includes(a) || i.value.push(a);
}, },
lazyList: o lazyList: i
}; };
}, },
render(e) { render(e) {
const s = []; const t = [];
if (this.c.complete) { if (this.c.complete) {
const { const {
activeForm: t activeForm: o
} = this.c; } = this.c;
t && this.c.providers[t.name] && s.push(e(this.c.providers[t.name].component, { o && this.c.providers[o.name] && t.push(e(this.c.providers[o.name].component, {
props: { props: {
modelData: t, modelData: o,
context: this.c.context, context: this.c.context,
params: this.c.params params: this.c.params
}, },
...@@ -318,14 +574,14 @@ const k = m({ ...@@ -318,14 +574,14 @@ const k = m({
})); }));
} }
if (this.c.complete && this.c.model.drTab.pages[0]) { 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]; const o = this.c.model.drTab.pages[0], s = this.c.drPages[o.source.name];
s.push(e(k, { t.push(e(O, {
attrs: { attrs: {
context: r.context, context: s.context,
params: r.params, params: s.params,
deName: this.c.model.appEntity.source.codeName, deName: this.c.model.appEntity.source.codeName,
modal: this.modal, modal: this.modal,
modelPath: t.embedView.source.modelPath modelPath: o.embedView.source.modelPath
} }
})); }));
} }
...@@ -339,8 +595,8 @@ const k = m({ ...@@ -339,8 +595,8 @@ const k = m({
wfLinks: this.c.wfLinks wfLinks: this.c.wfLinks
}, },
on: { on: {
"wf-link-click": (t) => { "wf-link-click": (o) => {
this.c.onLinkClick(t); this.c.onLinkClick(o);
} }
} }
})] : null })] : null
...@@ -360,40 +616,40 @@ const k = m({ ...@@ -360,40 +616,40 @@ const k = m({
label: this.c.model.drTab.source.editItemCaption, label: this.c.model.drTab.source.editItemCaption,
name: "mainForm" name: "mainForm"
} }
}, [s]), this.c.model.drTab.pages.map((t) => { }, [t]), this.c.model.drTab.pages.map((o) => {
const r = this.c.drPages[t.source.name]; const s = this.c.drPages[o.source.name];
return e("i-tab-pane", { return e("i-tab-pane", {
class: this.ns.be("", "tab-item"), class: this.ns.be("", "tab-item"),
attrs: { attrs: {
tab: this.c.model.drTab.source.name, tab: this.c.model.drTab.source.name,
disabled: this.c.isNewData, disabled: this.c.isNewData,
label: t.source.caption, label: o.source.caption,
name: t.source.name name: o.source.name
} }
}, [!this.c.isNewData && this.lazyList.includes(t.source.name) && e("ViewShell", { }, [!this.c.isNewData && this.lazyList.includes(o.source.name) && e("ViewShell", {
props: { props: {
context: r.context, context: s.context,
params: r.params, params: s.params,
modal: { modal: {
mode: v.EMBED mode: W.EMBED
}, },
modelPath: t.embedView.source.modelPath, modelPath: o.embedView.source.modelPath,
deName: this.c.model.appEntity.source.codeName deName: this.c.model.appEntity.source.codeName
}, },
on: { on: {
neuronInit: this.c.nerve.onNeuronInit(t.source.name) neuronInit: this.c.nerve.onNeuronInit(o.source.name)
}, },
key: r.key key: s.key
})]); })]);
})])]); })])]);
} }
}); });
class M { class ve {
constructor() { constructor() {
l(this, "component", B); f(this, "component", ye);
} }
} }
const R = m({ const ge = y({
name: "SyEditView3", name: "SyEditView3",
props: { props: {
context: Object, context: Object,
...@@ -410,15 +666,15 @@ const R = m({ ...@@ -410,15 +666,15 @@ const R = m({
}, },
setup(e) { setup(e) {
const { const {
proxy: s proxy: t
} = b(), t = F(s, e.modelPath), r = d("view-deeditview3"), o = p(["mainForm"]); } = T(), o = H(t, e.modelPath), s = v("view-deeditview3"), i = m(["mainForm"]);
return { return {
c: t, c: o,
ns: r, ns: s,
onTabClick: (i) => { onTabClick: (a) => {
o.value.includes(i) || o.value.push(i); i.value.includes(a) || i.value.push(a);
}, },
lazyList: o lazyList: i
}; };
}, },
render(e) { render(e) {
...@@ -453,7 +709,7 @@ const R = m({ ...@@ -453,7 +709,7 @@ const R = m({
on: { on: {
neuronInit: this.c.nerve.onNeuronInit(this.c.model.form.source.name) neuronInit: this.c.nerve.onNeuronInit(this.c.model.form.source.name)
} }
}), e(k, { }), e(O, {
attrs: { attrs: {
context: this.c.drPages[this.c.model.drTab.pages[0].source.name].context, 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, params: this.c.drPages[this.c.model.drTab.pages[0].source.name].params,
...@@ -461,61 +717,74 @@ const R = m({ ...@@ -461,61 +717,74 @@ const R = m({
modal: this.modal, modal: this.modal,
modelPath: this.c.model.drTab.pages[0].embedView.source.modelPath modelPath: this.c.model.drTab.pages[0].embedView.source.modelPath
} }
})]), this.c.model.drTab.pages.map((s) => { })]), this.c.model.drTab.pages.map((t) => {
const t = this.c.drPages[s.source.name]; const o = this.c.drPages[t.source.name];
if (!!t) if (!!o)
return e("i-tab-pane", { return e("i-tab-pane", {
class: this.ns.be("", "tab-item"), class: this.ns.be("", "tab-item"),
attrs: { attrs: {
tab: this.c.model.drTab.source.name, tab: this.c.model.drTab.source.name,
disabled: this.c.isNewData, disabled: this.c.isNewData,
label: s.source.caption, label: t.source.caption,
name: s.source.name name: t.source.name
} }
}, [!this.c.isNewData && this.lazyList.includes(s.source.name) && e("ViewShell", { }, [!this.c.isNewData && this.lazyList.includes(t.source.name) && e("ViewShell", {
props: { props: {
context: t.context, context: o.context,
params: t.params, params: o.params,
modal: { modal: {
mode: v.EMBED mode: W.EMBED
}, },
modelPath: s.embedView.source.modelPath, modelPath: t.embedView.source.modelPath,
deName: this.c.model.appEntity.source.codeName deName: this.c.model.appEntity.source.codeName
}, },
on: { on: {
neuronInit: this.c.nerve.onNeuronInit(s.source.name) neuronInit: this.c.nerve.onNeuronInit(t.source.name)
}, },
key: t.key key: o.key
})]); })]);
})])]); })])]);
} }
}); });
class U { class Ce {
constructor() { constructor() {
l(this, "component", R); f(this, "component", ge);
}
}
class xe {
constructor() {
f(this, "formEditor", "SyFileUpload");
f(this, "gridEditor", "IBizGridFileUpload");
}
async createController(t, o) {
const s = new R(t, o);
return await s.init(), s;
} }
} }
const X = { const Pe = {
mateUrl: import.meta.url, mateUrl: import.meta.url,
install(e) { install(e) {
ibiz.config.enableDataInfoBar = !1, e.component("WfToolbar", z), ibiz.register.view.register( ibiz.config.enableDataInfoBar = !1, e.component("WfToolbar", se), ibiz.register.view.register(
"VIEW_CUSTOM_SyWebIndexView", "VIEW_CUSTOM_SyWebIndexView",
new G() new we()
), ibiz.register.view.register( ), ibiz.register.view.register(
"VIEW_CUSTOM_PresetWFChartView", "VIEW_CUSTOM_PresetWFChartView",
new q() new fe()
), ibiz.register.gridColumn.register( ), ibiz.register.gridColumn.register(
"GRID_COLRENDER_CodeListGridColumn", "GRID_COLRENDER_CodeListGridColumn",
new _() new be()
), ibiz.register.view.register( ), ibiz.register.view.register(
"VIEW_CUSTOM_SyWfDynaEditView3", "VIEW_CUSTOM_SyWfDynaEditView3",
new M() new ve()
), ibiz.register.view.register( ), ibiz.register.view.register(
"VIEW_CUSTOM_SyEditView3", "VIEW_CUSTOM_SyEditView3",
new U() new Ce()
), e.component("SyFileUpload", pe), ibiz.register.editor.register(
"EDITOR_CUSTOMSTYLE_SyFileUpload",
new xe()
); );
} }
}; };
export { export {
X as default Pe as default
}; };
!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 d?t:d,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 m={};function d(){}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=d.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===m)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===m)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 m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var n=h(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,m;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,m):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}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,m):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),m},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),m}},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),m}},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,m,d,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){m=e.defineComponent,d=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=m({name:"CodeListGridColumn",props:{controller:{type:i,required:!0},row:{type:u,required:!0}},setup:function(e){var t=b("grid-field-column"),r=d((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=d((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=m({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=m({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||"取消"==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=m({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=m({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=m({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)}})}}}))}(); !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(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function n(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return t};var t={},r=Object.prototype,o=r.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",l=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(N){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),c=new T(n||[]);return i(a,"_invoke",{value:k(e,r,c)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=f;var m={};function p(){}function h(){}function v(){}var y={};u(y,c,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(L([])));w&&w!==r&&o.call(w,c)&&(y=w);var g=v.prototype=p.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(t,r){function n(i,a,c,s){var l=d(t[i],t,a);if("throw"!==l.type){var u=l.arg,f=u.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){u.value=e,c(u)}),(function(e){return n("throw",e,c,s)}))}s(l.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 k(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 F()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=S(a,r);if(c){if(c===m)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=d(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function S(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,S(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,m;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,m):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function C(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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function L(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:F}}function F(){return{value:void 0,done:!0}}return h.prototype=v,i(g,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},t.awrap=function(e){return{__await:e}},x(E.prototype),u(E.prototype,s,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new E(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(g),u(g,l,"Generator"),u(g,c,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.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}},t.values=L,T.prototype={constructor:T,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(O),!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,m):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),m},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),O(r),m}},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;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),m}},t}function o(e,t,r,n,o,i,a){try{var c=e[i](a),s=c.value}catch(l){return void r(l)}c.done?t(s):Promise.resolve(s).then(n,o)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function c(e){o(a,n,i,c,s,"next",e)}function s(e){o(a,n,i,c,s,"throw",e)}c(void 0)}))}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 s(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function u(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=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return f(this,r)}}function f(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 d(t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function p(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","qx-util","@ibiz-template/runtime","@ibiz-template/model"],(function(e,r){"use strict";var o,c,f,m,h,v,y,b,w,g,x,E,k,S,C,O,T,L,F,N,P,j,I;return{setters:[function(e){o=e.GridFieldColumnController,c=e.GridRowController,f=e.WFStepTraceViewController,m=e.UploadEditorController},function(e){h=e.defineComponent,v=e.computed,y=e.h,b=e.getCurrentInstance,w=e.ref,g=e.watch},function(e){x=e.useNamespace,E=e.useViewController,k=e.usePropsWatch,S=e.getUploadProps,C=e.getEditorEmits,O=e.useWFStepTraceViewController,T=e.useWFDynaEditView3Controller,L=e.useEditView3Controller},function(e){F=e.colorBlend,N=e.IBizContext},function(e){P=e.getCookie},function(e){j=e.ViewMode},function(e){I=e.ViewType}],execute:function(){var D=h({name:"CodeListGridColumn",props:{controller:{type:o,required:!0},row:{type:c,required:!0}},setup:function(e){var t=x("grid-field-column"),r=v((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":F(o,"#fff")})}}})).filter(Boolean):[]})),n=v((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 y("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 y("span",{class:e.ns.e("code-list-item"),style:t.colorStyle},[t.text])})):y("span",{class:this.ns.e("text")},[r])])}}),U=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&&l(e,t)}(o,e);var t,r=u(o);function o(){var e;a(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return p(d(e=r.call.apply(r,[this].concat(n))),"imgSrc",void 0),e}return s(o,[{key:"getUIData",value:(t=i(n().mark((function e(){var t,r,o;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new N(this.params,this.context),e.next=3,this.entityService.wf.getWFProcessDiagram(t);case 3:r=e.sent,o=new Blob([r.data]),this.imgSrc=URL.createObjectURL(o);case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),o}(f),_=h({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=x("preset-wf-chart-view"),r=b().proxy,n=E(r,(function(t,r){return new U(e.modelPath,t,r)}));return k(r,"deName",n.setDeName.bind(n)),{c:n,ns:t}},render:function(){return y("div",{class:this.ns.b()},[y("img",{attrs:{src:this.c.imgSrc}})])}}),V=h({name:"WFToolbar",props:{wfLinks:{type:Array,required:!0}},setup:function(e,t){var r=t.emit,o=x("wf-toolbar"),a=function(){var e=i(n().mark((function e(t,o){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r("wf-link-click",t,o);case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();return{ns:o,handleClick:a}},render:function(){var e=this,t=this.wfLinks||[];return y("div",{class:"".concat(this.ns.b())},[t.length>0&&t.map((function(t){var r="驳回"==t.sequenceFlowName||"取消"==t.sequenceFlowName;return y("div",{key:t.sequenceFlowId,class:[e.ns.e("item"),r?e.ns.em("item","reject"):""]},[y("i-button",{attrs:{title:t.sequenceFlowName},on:{click:function(r){return e.handleClick(t,r)}}},[t.sequenceFlowName||""])])}))])}}),z="function"==typeof btoa,A="function"==typeof Buffer;"function"==typeof TextDecoder&&new TextDecoder;var R,B="function"==typeof TextEncoder?new TextEncoder:void 0,M=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");R={},M.forEach((function(e,t){return R[e]=t}));var W=String.fromCharCode.bind(String);"function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array);var G=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},q=z?function(e){return btoa(e)}:A?function(e){return Buffer.from(e,"binary").toString("base64")}:function(e){for(var t,r,n,o,i="",a=e.length%3,c=0;c<e.length;){if((r=e.charCodeAt(c++))>255||(n=e.charCodeAt(c++))>255||(o=e.charCodeAt(c++))>255)throw new TypeError("invalid character found");i+=M[(t=r<<16|n<<8|o)>>18&63]+M[t>>12&63]+M[t>>6&63]+M[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},Y=A?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var t=[],r=0,n=e.length;r<n;r+=4096)t.push(W.apply(null,e.subarray(r,r+4096)));return q(t.join(""))},J=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?W(192|t>>>6)+W(128|63&t):W(224|t>>>12&15)+W(128|t>>>6&63)+W(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return W(240|t>>>18&7)+W(128|t>>>12&63)+W(128|t>>>6&63)+W(128|63&t)},H=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,K=A?function(e){return Buffer.from(e,"utf8").toString("base64")}:B?function(e){return Y(B.encode(e))}:function(e){return q(e.replace(H,J))};function Q(e,r,n){var o=w([]),i=w({Authorization:"Bearer ".concat(P("access_token"))}),a=w(""),c=w(""),s={count:0,cacheFiles:[]};g((function(){return e.value}),(function(e){o.value=e?JSON.parse(e):[]}),{immediate:!0}),g((function(){return e.data}),(function(e){if(e){var t=n.calcBaseUrl(e);a.value=t.uploadUrl,c.value=t.downloadUrl}}),{immediate:!0,deep:!0}),g(o,(function(e){null!=e&&e.length&&c.value&&e.forEach((function(e){e.url=e.url||c.value.replace("%fileId%",e.id)}))}),{immediate:!0}),g(c,(function(e){e&&o.value.length&&o.value.forEach((function(e){e.url=c.value.replace("%fileId%",e.id)}))}),{immediate:!0});var l=function(){var e=[].concat(t(o.value),t(s.cacheFiles)),n=e.length>0?JSON.stringify(e.map((function(e){return{name:e.name,id:e.id}}))):null;s.cacheFiles=[],r(n)},u=w(!1),f=w(""),d=w("");return{uploadUrl:a,downloadUrl:c,headers:i,files:o,onDownload:function(e){var t=e.url||c.value.replace("%fileId%",e.id);n.fileDownload({url:t,name:e.name})},onError:function(e){throw s.count-=1,e},onRemove:function(t){if(!e.disabled){var r=o.value.findIndex((function(e){return e.id===t.id}));-1!==r&&o.value.splice(r,1),l()}},onSuccess:function(e){e&&(s.cacheFiles.push({name:e.filename,id:e.fileid}),s.count-=1,0===s.count&&l())},beforeUpload:function(){s.count+=1},showModal:u,modalTitle:f,iframeUrl:d,onModalCancel:function(){u.value=!1,f.value="",d.value=""},previewFile:function(e){u.value=!0,f.value=e.name;var t=window.Environment.previewFileUrl;if(t){var r=encodeURIComponent(function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?G(K(e)):K(e)}("".concat(window.location.origin).concat(e.url,"?fullfilename=").concat(e.name)));d.value="".concat(t,"/onlinePreview?url=").concat(r)}}}}var X=h({name:"SyFileUpload",props:S(),emits:C(),setup:function(e,t){var r=t.emit,n=x("sy-file-upload"),o=e.controller,i=Q(e,(function(e){r("change",e)}),o);return{ns:n,c:o,uploadUrl:i.uploadUrl,headers:i.headers,files:i.files,onDownload:i.onDownload,onError:i.onError,onRemove:i.onRemove,onSuccess:i.onSuccess,beforeUpload:i.beforeUpload,showModal:i.showModal,modalTitle:i.modalTitle,iframeUrl:i.iframeUrl,onModalCancel:i.onModalCancel,previewFile:i.previewFile}},render:function(e){var t=this;return e("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[e("IUpload",{ref:"fileUpload",props:{action:this.uploadUrl,headers:this.headers,disabled:this.disabled,"default-file-list":this.files,multiple:this.c.model.multiple,type:this.c.model.isDrag?"drag":"select",accept:this.c.model.accept,"before-upload":this.beforeUpload,"on-success":this.onSuccess,"on-error":this.onError,"on-remove":this.onRemove,"on-preview":this.onDownload,"show-upload-list":!1}},[this.c.model.isDrag?e("div",{class:this.ns.bm("box","drag")},[e("i-icon",{attrs:{type:"md-cloud-upload"}}),e("div",{class:this.ns.be("box","title")},[e("span",["将文件拖到此处,或"]),e("span",["点击上传"])])]):e("i-button",{attrs:{icon:"md-cloud-upload"},class:this.ns.bm("box","select")},["点击上传"])]),e("div",{class:this.ns.b("file-list")},[this.files.map((function(r){return e("div",{class:t.ns.b("file-item"),key:r.id},[e("div",{class:t.ns.b("file-item-title")},[e("i-icon",{attrs:{type:"md-document"}}),e("span",[r.name])]),e("div",{class:t.ns.b("file-item-action")},[e("i-button",{class:t.ns.be("file-item-action","download"),attrs:{icon:"md-download",type:"text"},on:{click:function(){return t.onDownload(r)}}},["下载"]),e("i-button",{class:t.ns.be("file-item-action","preview"),attrs:{icon:"md-eye",type:"text"},on:{click:function(){return t.previewFile(r)}}},["预览"]),t.disabled||t.readonly?null:e("i-button",{class:t.ns.be("file-item-action","remove"),attrs:{icon:"md-trash",type:"text"},on:{click:function(){return t.onRemove(r)}}},["删除"])])])}))]),e("i-modal",{attrs:{value:this.showModal,title:this.modalTitle,width:"70%",transfer:!1,"footer-hide":!0},on:{"on-cancel":this.onModalCancel}},[e("iframe",{class:this.ns.b("iframe"),attrs:{src:this.iframeUrl}})])])}}),Z=s((function e(){a(this,e),p(this,"component",_)})),$=function(){function e(){a(this,e),p(this,"component",D)}var t;return s(e,[{key:"createController",value:(t=i(n().mark((function e(t,r){var i;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new o(t,r),e.next=3,i.init();case 3:return e.abrupt("return",i);case 4:case"end":return e.stop()}}),e)}))),function(e,r){return t.apply(this,arguments)})}]),e}(),ee=s((function e(){a(this,e),p(this,"component","IndexView")})),te=h({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=b().proxy,r=O(t,e.modelPath);k(t,"deName",r.setDeName.bind(r));var n=x("wf-step-trace-grid"),o=w([]);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=w([{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 y("div",{class:this.ns.b()},[y("div",{class:this.ns.e("title")},["审批信息"]),y("i-table",{attrs:{"disabled-hover":!0,columns:this.columns,data:this.gridData},class:this.ns.e("grid")})])}}),re=h({props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(e){var t=b().proxy,r=T(t,e.modelPath),n=x("view-".concat(I.DE_WF_DYNA_EDIT_VIEW3).toLowerCase()),o=w(["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(te,{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:j.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})])}))])])}}),ne=s((function e(){a(this,e),p(this,"component",re)})),oe=h({name:"SyEditView3",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(e){var t=b().proxy,r=L(t,e.modelPath),n=x("view-deeditview3"),o=w(["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(te,{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:j.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})])}))])])}}),ie=s((function e(){a(this,e),p(this,"component",oe)})),ae=function(){function e(){a(this,e),p(this,"formEditor","SyFileUpload"),p(this,"gridEditor","IBizGridFileUpload")}var t;return s(e,[{key:"createController",value:(t=i(n().mark((function e(t,r){var o;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=new m(t,r),e.next=3,o.init();case 3:return e.abrupt("return",o);case 4:case"end":return e.stop()}}),e)}))),function(e,r){return t.apply(this,arguments)})}]),e}();e("default",{mateUrl:r.meta.url,install:function(e){ibiz.config.enableDataInfoBar=!1,e.component("WfToolbar",V),ibiz.register.view.register("VIEW_CUSTOM_SyWebIndexView",new ee),ibiz.register.view.register("VIEW_CUSTOM_PresetWFChartView",new Z),ibiz.register.gridColumn.register("GRID_COLRENDER_CodeListGridColumn",new $),ibiz.register.view.register("VIEW_CUSTOM_SyWfDynaEditView3",new ne),ibiz.register.view.register("VIEW_CUSTOM_SyEditView3",new ie),e.component("SyFileUpload",X),ibiz.register.editor.register("EDITOR_CUSTOMSTYLE_SyFileUpload",new ae)}})}}}))}();
@charset "UTF-8";.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%;overflow:auto;text-align:center;background-color:var(--ibiz-bg-color)}.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{padding-bottom:1px;margin:var(--ibiz-margin);background-color:var(--ibiz-bg-color-overlay);border-radius:var(--ibiz-border-radius-base)}.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}.app .ibiz-app-user{pointer-events:none}.ibiz-form .ibiz-span{color:var(--ibiz-text-color-readonly)} @charset "UTF-8";.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%;overflow:auto;text-align:center;background-color:var(--ibiz-bg-color)}.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-sy-file-upload{display:flex;flex-direction:column;max-width:400px}.ibiz-sy-file-upload .ivu-upload-drag{height:180px}.ibiz-sy-file-upload--disabled .ivu-upload-select,.ibiz-sy-file-upload--disabled .ivu-upload-drag,.ibiz-sy-file-upload--readonly .ivu-upload-select,.ibiz-sy-file-upload--readonly .ivu-upload-drag{display:none}.ibiz-sy-file-upload .ibiz-sy-file-upload-box--drag>.ivu-icon{margin:40px 0 16px;font-size:67px;line-height:50px;color:#c0c4cc}.ibiz-sy-file-upload-box__title>span:last-child{color:#409eff}.ibiz-sy-file-upload .ibiz-sy-file-upload-box--select{font-size:12px;color:#fff;background-color:#409eff;border-color:#409eff;border-radius:3px}.ibiz-sy-file-upload .ibiz-sy-file-upload-box--select:hover,.ibiz-sy-file-upload .ibiz-sy-file-upload-box--select:focus{background:#66b1ff;border-color:#66b1ff}.ibiz-sy-file-upload .ibiz-sy-file-upload-box--select:active{background:#3a8ee6;border-color:#3a8ee6}.ibiz-sy-file-upload .ibiz-sy-file-upload-file-list{display:flex;flex-direction:column;width:100%}.ibiz-sy-file-upload .ibiz-sy-file-upload-file-list .ibiz-sy-file-upload-file-item .ibiz-sy-file-upload-file-item-title{display:flex;align-items:center;font-size:14px;text-align:left;white-space:nowrap}.ibiz-sy-file-upload .ibiz-sy-file-upload-file-list .ibiz-sy-file-upload-file-item .ibiz-sy-file-upload-file-item-title>.ivu-icon{margin-right:5px}.ibiz-sy-file-upload .ibiz-sy-file-upload-file-list .ibiz-sy-file-upload-file-item .ibiz-sy-file-upload-file-item-action{display:flex;align-items:center;margin-top:-4px}.ibiz-sy-file-upload .ibiz-sy-file-upload-file-list .ibiz-sy-file-upload-file-item .ibiz-sy-file-upload-file-item-action .ivu-btn{position:relative;padding:0;margin-right:10px;font-size:14px;background-color:transparent}.ibiz-sy-file-upload .ibiz-sy-file-upload-file-list .ibiz-sy-file-upload-file-item .ibiz-sy-file-upload-file-item-action .ivu-btn:last-child{margin-right:0}.ibiz-sy-file-upload .ibiz-sy-file-upload-file-list .ibiz-sy-file-upload-file-item .ibiz-sy-file-upload-file-item-action .ivu-btn>.ivu-icon+span{margin-left:3px}.ibiz-sy-file-upload .ibiz-sy-file-upload-file-list .ibiz-sy-file-upload-file-item .ibiz-sy-file-upload-file-item-action .ivu-btn:after{position:absolute;right:0;bottom:0;left:0;height:0;content:""}.ibiz-sy-file-upload .ibiz-sy-file-upload-file-list .ibiz-sy-file-upload-file-item .ibiz-sy-file-upload-file-item-action .ivu-btn:focus{box-shadow:none}.ibiz-sy-file-upload-file-item-action__download,.ibiz-sy-file-upload-file-item-action__download:active{color:#67c23a}.ibiz-sy-file-upload-file-item-action__download:hover{color:#85ce61}.ibiz-sy-file-upload-file-item-action__download:hover:after{border-bottom:1px solid #67c23a}.ibiz-sy-file-upload-file-item-action__preview,.ibiz-sy-file-upload-file-item-action__preview:active{color:#e6a23c}.ibiz-sy-file-upload-file-item-action__preview:hover{color:#ebb563}.ibiz-sy-file-upload-file-item-action__preview:hover:after{border-bottom:1px solid #e6a23c}.ibiz-sy-file-upload-file-item-action__remove,.ibiz-sy-file-upload-file-item-action__remove:active{color:#f56c6c}.ibiz-sy-file-upload-file-item-action__remove:hover{color:#f78989}.ibiz-sy-file-upload-file-item-action__remove:hover:after{border-bottom:1px solid #f56c6c}.ibiz-sy-file-upload .ibiz-sy-file-upload-iframe{width:100%;height:100%;border:none}.ibiz-sy-file-upload .ivu-modal{top:5vh;height:90vh}.ibiz-sy-file-upload .ivu-modal .ivu-modal-content{height:100%}.ibiz-sy-file-upload .ivu-modal .ivu-modal-header{height:40px;padding:20px 20px 10px;text-align:center;border-bottom:none}.ibiz-sy-file-upload .ivu-modal .ivu-modal-header .ivu-modal-header-inner{height:auto;font-size:18px;line-height:24px;color:#303133}.ibiz-sy-file-upload .ivu-modal .ivu-modal-body{height:calc(100% - 40px);padding:25px 25px 30px}.ibiz-wf-step-trace-grid{padding-bottom:1px;margin:var(--ibiz-margin);background-color:var(--ibiz-bg-color-overlay);border-radius:var(--ibiz-border-radius-base)}.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}.app .ibiz-app-user{pointer-events:none}.ibiz-form .ibiz-span{color:var(--ibiz-text-color-readonly)}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册