提交 0d9f8011 编写于 作者: Cano1997's avatar Cano1997

update: sy-web插件删除文件预览

上级 8e912ada
var ce = Object.defineProperty; var ce = Object.defineProperty;
var de = (e, t, s) => t in e ? ce(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s; var de = (e, t, s) => t in e ? ce(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
var E = (e, t, s) => (de(e, typeof t != "symbol" ? t + "" : t, s), s); var U = (e, t, s) => (de(e, typeof t != "symbol" ? t + "" : t, s), s);
import { IndexViewModel as ue, GridModel as he, ViewType as me, ModelUtil as pe } from "@ibiz-template/model"; import { IndexViewModel as ue, GridModel as he, ViewType as me, ModelUtil as pe } from "@ibiz-template/model";
import { GridFieldColumnController as Z, GridRowController as X, WFStepTraceViewController as fe, UploadEditorController as J, GridController as ge, GridNotifyState as we, WFDynaEditView3Controller as ve } from "@ibiz-template/controller"; import { GridFieldColumnController as Z, GridRowController as X, WFStepTraceViewController as fe, UploadEditorController as J, GridController as ge, GridNotifyState as we, WFDynaEditView3Controller as ve } from "@ibiz-template/controller";
import { defineComponent as L, computed as D, h as c, getCurrentInstance as A, ref as w, watch as N, toRefs as $, onUnmounted as be } from "vue"; import { defineComponent as L, computed as D, h as c, getCurrentInstance as A, ref as g, watch as P, toRefs as $, onUnmounted as be } from "vue";
import { useNamespace as U, useViewController as Q, usePropsWatch as B, getUploadProps as ye, getEditorEmits as K, getGridUploadProps as z, getGridEditorEmits as _, useClickOutside as Ce, useEventListener as Fe, getInputProps as xe, getGridInputProps as ke, useGridCellEditor as Se, useControlController as Le, useWFStepTraceViewController as Ue, useEditView3Controller as Ee } from "@ibiz-template/vue-util"; import { useNamespace as E, useViewController as Q, usePropsWatch as B, getUploadProps as ye, getEditorEmits as K, getGridUploadProps as z, getGridEditorEmits as _, useClickOutside as Ce, useEventListener as xe, getInputProps as ke, getGridInputProps as Fe, useGridCellEditor as Se, useControlController as Le, useWFStepTraceViewController as Ee, useEditView3Controller as Ue } from "@ibiz-template/vue-util";
import { colorBlend as Ne, HttpError as Y, isImage as Pe, uploadFile as Ie, RuntimeError as Te } from "@ibiz-template/core"; import { colorBlend as Pe, HttpError as Y, isImage as Ne, uploadFile as Ie, RuntimeError as Te } from "@ibiz-template/core";
import { getCookie as De, createUUID as W } from "qx-util"; import { getCookie as De, createUUID as W } from "qx-util";
import { debounce as Me } from "lodash-es"; import { debounce as Me } from "lodash-es";
import { ViewMode as ee, UIActionHandler as te, PluginStaticResource as Re } from "@ibiz-template/runtime"; import { ViewMode as ee, UIActionHandler as te, PluginStaticResource as Re } from "@ibiz-template/runtime";
...@@ -22,21 +22,21 @@ const Ae = L({ ...@@ -22,21 +22,21 @@ const Ae = L({
} }
}, },
setup(e) { setup(e) {
const t = U("grid-field-column"), s = D(() => { const t = E("grid-field-column"), s = D(() => {
var r; var r;
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 (r = e.controller.codeListItems) != null && r.length && n ? n.split(",").map((m) => { return (r = e.controller.codeListItems) != null && r.length && n ? n.split(",").map((m) => {
const p = e.controller.codeListItems.find((g) => g.value === m); const p = e.controller.codeListItems.find((f) => f.value === m);
if (p) { if (p) {
const g = p.color || "#515a6e"; const f = p.color || "#515a6e";
return { return {
text: p.text, text: p.text,
colorStyle: t.cssVarBlock({ colorStyle: t.cssVarBlock({
color: g, color: f,
"border-color": g, "border-color": f,
"bg-color": Ne(g, "#fff") "bg-color": Pe(f, "#fff")
}) })
}; };
} }
...@@ -92,7 +92,7 @@ class Ge extends fe { ...@@ -92,7 +92,7 @@ class Ge extends fe {
* @type {string} * @type {string}
* @memberof PresetWFChartViewController * @memberof PresetWFChartViewController
*/ */
E(this, "imgSrc"); U(this, "imgSrc");
} }
async getUIData() { async getUIData() {
const s = Object.assign(this.context.clone(), this.params), o = await this.entityService.wf.getWFProcessDiagram(s), i = new Blob([o.data], { const s = Object.assign(this.context.clone(), this.params), o = await this.entityService.wf.getWFProcessDiagram(s), i = new Blob([o.data], {
...@@ -121,7 +121,7 @@ const Oe = L({ ...@@ -121,7 +121,7 @@ const Oe = L({
} }
}, },
setup(e) { setup(e) {
const t = U("preset-wf-chart-view"), { const t = E("preset-wf-chart-view"), {
proxy: s proxy: s
} = A(), o = Q(s, (i, n) => new Ge(e.modelPath, i, n)); } = A(), o = Q(s, (i, n) => new Ge(e.modelPath, i, n));
return B(s, "deName", o.setDeName.bind(o)), { return B(s, "deName", o.setDeName.bind(o)), {
...@@ -150,7 +150,7 @@ const $e = L({ ...@@ -150,7 +150,7 @@ const $e = L({
setup(e, { setup(e, {
emit: t emit: t
}) { }) {
const s = U("wf-toolbar"), o = async (n, r) => { const s = E("wf-toolbar"), o = async (n, r) => {
t("wf-link-click", n, r); t("wf-link-click", n, r);
}; };
return { return {
...@@ -188,7 +188,7 @@ const V = typeof TextEncoder == "function" ? new TextEncoder() : void 0, ze = "A ...@@ -188,7 +188,7 @@ const V = typeof TextEncoder == "function" ? new TextEncoder() : void 0, ze = "A
let t = {}; let t = {};
return e.forEach((s, o) => t[s] = o), t; return e.forEach((s, o) => t[s] = o), t;
})(R); })(R);
const I = String.fromCharCode.bind(String); const T = String.fromCharCode.bind(String);
typeof Uint8Array.from == "function" && Uint8Array.from.bind(Uint8Array); typeof Uint8Array.from == "function" && Uint8Array.from.bind(Uint8Array);
const _e = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "_"), je = (e) => { const _e = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "_"), je = (e) => {
let t, s, o, i, n = ""; let t, s, o, i, n = "";
...@@ -202,34 +202,34 @@ const _e = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : ...@@ -202,34 +202,34 @@ const _e = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" :
}, se = Be ? (e) => btoa(e) : j ? (e) => Buffer.from(e, "binary").toString("base64") : je, We = j ? (e) => Buffer.from(e).toString("base64") : (e) => { }, se = Be ? (e) => btoa(e) : j ? (e) => Buffer.from(e, "binary").toString("base64") : je, We = j ? (e) => Buffer.from(e).toString("base64") : (e) => {
let s = []; let s = [];
for (let o = 0, i = e.length; o < i; o += 4096) for (let o = 0, i = e.length; o < i; o += 4096)
s.push(I.apply(null, e.subarray(o, o + 4096))); s.push(T.apply(null, e.subarray(o, o + 4096)));
return se(s.join("")); return se(s.join(""));
}, Ve = (e) => { }, Ve = (e) => {
if (e.length < 2) { if (e.length < 2) {
var t = e.charCodeAt(0); var t = e.charCodeAt(0);
return t < 128 ? e : t < 2048 ? I(192 | t >>> 6) + I(128 | t & 63) : I(224 | t >>> 12 & 15) + I(128 | t >>> 6 & 63) + I(128 | t & 63); return t < 128 ? e : t < 2048 ? T(192 | t >>> 6) + T(128 | t & 63) : T(224 | t >>> 12 & 15) + T(128 | t >>> 6 & 63) + T(128 | t & 63);
} else { } else {
var t = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320); var t = 65536 + (e.charCodeAt(0) - 55296) * 1024 + (e.charCodeAt(1) - 56320);
return I(240 | t >>> 18 & 7) + I(128 | t >>> 12 & 63) + I(128 | t >>> 6 & 63) + I(128 | t & 63); return T(240 | t >>> 18 & 7) + T(128 | t >>> 12 & 63) + T(128 | t >>> 6 & 63) + T(128 | t & 63);
} }
}, qe = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, He = (e) => e.replace(qe, Ve), q = j ? (e) => Buffer.from(e, "utf8").toString("base64") : V ? (e) => We(V.encode(e)) : (e) => se(He(e)), oe = (e, t = !1) => t ? _e(q(e)) : q(e); }, qe = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, He = (e) => e.replace(qe, Ve), q = j ? (e) => Buffer.from(e, "utf8").toString("base64") : V ? (e) => We(V.encode(e)) : (e) => se(He(e)), oe = (e, t = !1) => t ? _e(q(e)) : q(e);
function Ze(e, t, s) { function Ze(e, t, s) {
var S; var k;
const o = w([]), i = w({ const o = g([]), i = g({
Authorization: `Bearer ${De("access_token")}` Authorization: `Bearer ${De("access_token")}`
}), n = w(""), r = w(""), a = { }), n = g(""), r = g(""), a = {
count: 0, count: 0,
cacheFiles: [] cacheFiles: []
// iview上传过程中不能改default-file-list,所以需要缓存 // iview上传过程中不能改default-file-list,所以需要缓存
}, d = (S = s.editorParams) == null ? void 0 : S.blackList; }, d = (k = s.editorParams) == null ? void 0 : k.blackList;
let m = []; let m = [];
d && typeof d == "string" && (m = d.split(",")), N( d && typeof d == "string" && (m = d.split(",")), P(
() => e.value, () => e.value,
(l) => { (l) => {
o.value = l ? JSON.parse(l) : []; o.value = l ? JSON.parse(l) : [];
}, },
{ immediate: !0 } { immediate: !0 }
), N( ), P(
() => e.data, () => e.data,
(l) => { (l) => {
if (l) { if (l) {
...@@ -238,7 +238,7 @@ function Ze(e, t, s) { ...@@ -238,7 +238,7 @@ function Ze(e, t, s) {
} }
}, },
{ immediate: !0, deep: !0 } { immediate: !0, deep: !0 }
), N( ), P(
o, o,
(l) => { (l) => {
l != null && l.length && r.value && l.forEach((h) => { l != null && l.length && r.value && l.forEach((h) => {
...@@ -246,7 +246,7 @@ function Ze(e, t, s) { ...@@ -246,7 +246,7 @@ function Ze(e, t, s) {
}); });
}, },
{ immediate: !0 } { immediate: !0 }
), N( ), P(
r, r,
(l) => { (l) => {
l && o.value.length && o.value.forEach((h) => { l && o.value.length && o.value.forEach((h) => {
...@@ -256,9 +256,9 @@ function Ze(e, t, s) { ...@@ -256,9 +256,9 @@ function Ze(e, t, s) {
{ immediate: !0 } { immediate: !0 }
); );
const p = () => { const p = () => {
const l = [...o.value, ...a.cacheFiles], h = l.length > 0 ? JSON.stringify(l.map((v) => ({ name: v.name, id: v.id }))) : null; const l = [...o.value, ...a.cacheFiles], h = l.length > 0 ? JSON.stringify(l.map((b) => ({ name: b.name, id: b.id }))) : null;
a.cacheFiles = [], t(h); a.cacheFiles = [], t(h);
}, g = (l) => { }, f = (l) => {
const h = l.name.trim().toLowerCase(); const h = l.name.trim().toLowerCase();
if (m.some((C) => h.endsWith(`.${C}`))) if (m.some((C) => h.endsWith(`.${C}`)))
return ibiz.message.error(`不可上传 ${m.join("、")}类型的文件!`), !1; return ibiz.message.error(`不可上传 ${m.join("、")}类型的文件!`), !1;
...@@ -276,43 +276,43 @@ function Ze(e, t, s) { ...@@ -276,43 +276,43 @@ function Ze(e, t, s) {
}, x = (l) => { }, x = (l) => {
if (e.disabled) if (e.disabled)
return; return;
const h = o.value.findIndex((v) => v.id === l.id); const h = o.value.findIndex((b) => b.id === l.id);
h !== -1 && o.value.splice(h, 1), p(); h !== -1 && o.value.splice(h, 1), p();
}, f = (l) => { }, w = (l) => {
const v = (s.parent.form || s.parent.grid).model.appEntity.deName, C = `${l.id}|${v}|${e.data.srfkey}|${s.context.srfpersonid || s.context.srfuserid}`, M = l.url || r.value.replace("%fileId%", l.id); const b = (s.parent.form || s.parent.grid).model.appEntity.deName, C = `${l.id}|${b}|${e.data.srfkey}|${s.context.srfpersonid || s.context.srfuserid}`, M = l.url || r.value.replace("%fileId%", l.id);
s.fileDownload({ s.fileDownload({
url: `${M}?key=${window.btoa(C)}${Math.floor( url: `${M}?key=${window.btoa(C)}${Math.floor(
1e3 + Math.random() * 9e3 1e3 + Math.random() * 9e3
)}`, )}`,
name: l.name name: l.name
}); });
}, u = w(!1), b = w(""), P = w(""); }, u = g(!1), v = g(""), N = g("");
return { return {
uploadUrl: n, uploadUrl: n,
downloadUrl: r, downloadUrl: r,
headers: i, headers: i,
files: o, files: o,
onDownload: f, onDownload: w,
onError: y, onError: y,
onRemove: x, onRemove: x,
onSuccess: F, onSuccess: F,
beforeUpload: g, beforeUpload: f,
showModal: u, showModal: u,
modalTitle: b, modalTitle: v,
iframeUrl: P, iframeUrl: N,
onModalCancel: () => { onModalCancel: () => {
u.value = !1, b.value = "", P.value = ""; u.value = !1, v.value = "", N.value = "";
}, },
previewFile: (l) => { previewFile: (l) => {
u.value = !0, b.value = l.name; u.value = !0, v.value = l.name;
const h = window.Environment.previewFileUrl; const h = window.Environment.previewFileUrl;
if (h) { if (h) {
const v = encodeURIComponent( const b = encodeURIComponent(
oe( oe(
`${window.location.origin}${l.url}?fullfilename=${l.name}` `${window.location.origin}${l.url}?fullfilename=${l.name}`
) )
); );
P.value = `${h}/onlinePreview?url=${v}`; N.value = `${h}/onlinePreview?url=${b}`;
} }
} }
}; };
...@@ -324,7 +324,7 @@ const Xe = L({ ...@@ -324,7 +324,7 @@ const Xe = L({
setup(e, { setup(e, {
emit: t emit: t
}) { }) {
const s = U("sy-file-upload"), o = e.controller, { const s = E("sy-file-upload"), o = e.controller, {
uploadUrl: i, uploadUrl: i,
headers: n, headers: n,
files: r, files: r,
...@@ -332,15 +332,15 @@ const Xe = L({ ...@@ -332,15 +332,15 @@ const Xe = L({
onError: d, onError: d,
onRemove: m, onRemove: m,
onSuccess: p, onSuccess: p,
beforeUpload: g, beforeUpload: f,
showModal: F, showModal: F,
modalTitle: y, modalTitle: y,
iframeUrl: x, iframeUrl: x,
onModalCancel: f, onModalCancel: w,
previewFile: u previewFile: u
} = Ze(e, (b) => { } = Ze(e, (I) => {
t("change", b); t("change", I);
}, o); }, o), v = D(() => o.editorParams.showPreview ? o.editorParams.showPreview === "true" : window.Environment.kkviewon);
return { return {
ns: s, ns: s,
c: o, c: o,
...@@ -351,12 +351,15 @@ const Xe = L({ ...@@ -351,12 +351,15 @@ const Xe = L({
onError: d, onError: d,
onRemove: m, onRemove: m,
onSuccess: p, onSuccess: p,
beforeUpload: g, beforeUpload: f,
showModal: F, showModal: F,
modalTitle: y, modalTitle: y,
iframeUrl: x, iframeUrl: x,
onModalCancel: f, onModalCancel: w,
previewFile: u onPreview: (I) => {
v.value && u(I);
},
showPreview: v
}; };
}, },
render(e) { render(e) {
...@@ -446,13 +449,13 @@ const Xe = L({ ...@@ -446,13 +449,13 @@ const Xe = L({
attrs: { attrs: {
d: "M8,6.25590375 C9.72432306,6.25590375 11.1277921,7.62964308 11.175675,9.34238963 L11.1769379,9.43284162 L11.1769379,12.7456325 C11.1769379,14.5002069 9.75457434,15.9225704 8,15.9225704 C6.27567694,15.9225704 4.8722079,14.5488311 4.824325,12.8360845 L4.82306213,12.7456325 L4.82306213,10.7559037 C4.82306213,10.4797614 5.04691975,10.2559037 5.32306213,10.2559037 C5.58296083,10.2559037 5.79654502,10.4541998 5.82077327,10.7077504 L5.82306213,10.7559037 L5.82306213,12.7456325 C5.82306213,13.9479221 6.79771041,14.9225704 8,14.9225704 C9.17615286,14.9225704 10.1344543,13.9898375 10.1755637,12.8237123 L10.1769379,12.7456325 L10.1769379,9.43284162 C10.1769379,8.23055203 9.20228959,7.25590375 8,7.25590375 C7.72385763,7.25590375 7.5,7.03204612 7.5,6.75590375 C7.5,6.47976137 7.72385763,6.25590375 8,6.25590375 Z M8,0.0774295852 C9.72432306,0.0774295852 11.1277921,1.45116892 11.175675,3.16391546 L11.1769379,3.25436746 L11.1769379,5.24409625 C11.1769379,5.52023863 10.9530802,5.74409625 10.6769379,5.74409625 C10.4170392,5.74409625 10.203455,5.54580022 10.1792267,5.29224959 L10.1769379,5.24409625 L10.1769379,3.25436746 C10.1769379,2.05207787 9.20228959,1.07742959 8,1.07742959 C6.82384714,1.07742959 5.86554572,2.01016247 5.82443628,3.17628769 L5.82306213,3.25436746 L5.82306213,6.56715838 C5.82306213,7.76944797 6.79771041,8.74409625 8,8.74409625 C8.27614237,8.74409625 8.5,8.96795388 8.5,9.24409625 C8.5,9.52023863 8.27614237,9.74409625 8,9.74409625 C6.27567694,9.74409625 4.8722079,8.37035692 4.824325,6.65761037 L4.82306213,6.56715838 L4.82306213,3.25436746 C4.82306213,1.49979312 6.24542566,0.0774295852 8,0.0774295852 Z", d: "M8,6.25590375 C9.72432306,6.25590375 11.1277921,7.62964308 11.175675,9.34238963 L11.1769379,9.43284162 L11.1769379,12.7456325 C11.1769379,14.5002069 9.75457434,15.9225704 8,15.9225704 C6.27567694,15.9225704 4.8722079,14.5488311 4.824325,12.8360845 L4.82306213,12.7456325 L4.82306213,10.7559037 C4.82306213,10.4797614 5.04691975,10.2559037 5.32306213,10.2559037 C5.58296083,10.2559037 5.79654502,10.4541998 5.82077327,10.7077504 L5.82306213,10.7559037 L5.82306213,12.7456325 C5.82306213,13.9479221 6.79771041,14.9225704 8,14.9225704 C9.17615286,14.9225704 10.1344543,13.9898375 10.1755637,12.8237123 L10.1769379,12.7456325 L10.1769379,9.43284162 C10.1769379,8.23055203 9.20228959,7.25590375 8,7.25590375 C7.72385763,7.25590375 7.5,7.03204612 7.5,6.75590375 C7.5,6.47976137 7.72385763,6.25590375 8,6.25590375 Z M8,0.0774295852 C9.72432306,0.0774295852 11.1277921,1.45116892 11.175675,3.16391546 L11.1769379,3.25436746 L11.1769379,5.24409625 C11.1769379,5.52023863 10.9530802,5.74409625 10.6769379,5.74409625 C10.4170392,5.74409625 10.203455,5.54580022 10.1792267,5.29224959 L10.1769379,5.24409625 L10.1769379,3.25436746 C10.1769379,2.05207787 9.20228959,1.07742959 8,1.07742959 C6.82384714,1.07742959 5.86554572,2.01016247 5.82443628,3.17628769 L5.82306213,3.25436746 L5.82306213,6.56715838 C5.82306213,7.76944797 6.79771041,8.74409625 8,8.74409625 C8.27614237,8.74409625 8.5,8.96795388 8.5,9.24409625 C8.5,9.52023863 8.27614237,9.74409625 8,9.74409625 C6.27567694,9.74409625 4.8722079,8.37035692 4.824325,6.65761037 L4.82306213,6.56715838 L4.82306213,3.25436746 C4.82306213,1.49979312 6.24542566,0.0774295852 8,0.0774295852 Z",
id: "形状结合", id: "形状结合",
fill: "#000000", fill: "currentColor",
transform: "translate(8.000000, 8.000000) rotate(-315.000000) translate(-8.000000, -8.000000) " transform: "translate(8.000000, 8.000000) rotate(-315.000000) translate(-8.000000, -8.000000) "
} }
})])])])])]), e("div", { })])])])])]), e("div", {
class: this.ns.b("file-item-right-title"), class: this.ns.b("file-item-right-title"),
on: { on: {
click: () => this.previewFile(t) click: () => this.onPreview(t)
} }
}, [t.name]), e("div", { }, [t.name]), e("div", {
class: this.ns.b("file-item-right-action") class: this.ns.b("file-item-right-action")
...@@ -498,10 +501,10 @@ const Xe = L({ ...@@ -498,10 +501,10 @@ const Xe = L({
width: "16", width: "16",
height: "16" height: "16"
} }
})])])])]), e("span", { })])])])]), this.showPreview ? e("span", {
class: this.ns.e("icon-preview"), class: this.ns.e("icon-preview"),
on: { on: {
click: () => this.previewFile(t) click: () => this.onPreview(t)
} }
}, [e("svg", { }, [e("svg", {
attrs: { attrs: {
...@@ -547,7 +550,7 @@ const Xe = L({ ...@@ -547,7 +550,7 @@ const Xe = L({
width: "16", width: "16",
height: "16" height: "16"
} }
})])])])])]), this.disabled || this.readonly ? null : e("span", { })])])])])]) : null, this.disabled || this.readonly ? null : e("span", {
class: this.ns.e("icon-remove"), class: this.ns.e("icon-remove"),
on: { on: {
click: () => this.onRemove(t) click: () => this.onRemove(t)
...@@ -616,13 +619,13 @@ const Xe = L({ ...@@ -616,13 +619,13 @@ const Xe = L({
function O(e, t) { function O(e, t) {
if (e.url = t.replace("%fileId%", e.id), e.status || (e.status = "finished"), !e.fileName) { if (e.url = t.replace("%fileId%", e.id), e.status || (e.status = "finished"), !e.fileName) {
const s = e.name.lastIndexOf("."); const s = e.name.lastIndexOf(".");
e.fileName = e.name.substring(0, s), e.fileExt = e.name.substring(s), e.isImage = Pe(e.name); e.fileName = e.name.substring(0, s), e.fileExt = e.name.substring(s), e.isImage = Ne(e.name);
} }
return e; return e;
} }
function ie(e) { function ie(e) {
const t = w(""), s = w(""), o = w([]); const t = g(""), s = g(""), o = g([]);
return N( return P(
e.data, e.data,
(i) => { (i) => {
if (i) { if (i) {
...@@ -631,7 +634,7 @@ function ie(e) { ...@@ -631,7 +634,7 @@ function ie(e) {
} }
}, },
{ immediate: !0, deep: !0 } { immediate: !0, deep: !0 }
), N( ), P(
e.value, e.value,
(i) => { (i) => {
o.value = i ? JSON.parse(i) : [], o.value.length && s.value && o.value.forEach((n) => { o.value = i ? JSON.parse(i) : [], o.value.length && s.value && o.value.forEach((n) => {
...@@ -639,7 +642,7 @@ function ie(e) { ...@@ -639,7 +642,7 @@ function ie(e) {
}); });
}, },
{ immediate: !0 } { immediate: !0 }
), N( ), P(
s, s,
(i) => { (i) => {
i && o.value.length && o.value.forEach((n) => { i && o.value.length && o.value.forEach((n) => {
...@@ -654,10 +657,10 @@ function ie(e) { ...@@ -654,10 +657,10 @@ function ie(e) {
}; };
} }
function ne(e) { function ne(e) {
var k, S; var S, k;
const t = w("undo"), s = w([]), { downloadUrl: o, value: i, uploadUrl: n, controller: r } = e, a = (S = (k = r == null ? void 0 : r.value) == null ? void 0 : k.editorParams) == null ? void 0 : S.blackList; const t = g("undo"), s = g([]), { downloadUrl: o, value: i, uploadUrl: n, controller: r } = e, a = (k = (S = r == null ? void 0 : r.value) == null ? void 0 : S.editorParams) == null ? void 0 : k.blackList;
let d = []; let d = [];
a && typeof a == "string" && (d = a.split(",")), N( a && typeof a == "string" && (d = a.split(",")), P(
i, i,
(l) => { (l) => {
l.length > 0 && (s.value = [], l.forEach((h) => { l.length > 0 && (s.value = [], l.forEach((h) => {
...@@ -670,11 +673,11 @@ function ne(e) { ...@@ -670,11 +673,11 @@ function ne(e) {
} }
); );
const m = (l, h) => { const m = (l, h) => {
const v = []; const b = [];
return h.forEach((C, M) => { return h.forEach((C, M) => {
const G = C.name.trim().toLowerCase(); const G = C.name.trim().toLowerCase();
if (d.some((le) => G.endsWith(`.${le}`))) { if (d.some((le) => G.endsWith(`.${le}`))) {
v.push(M); b.push(M);
return; return;
} }
s.value.push({ s.value.push({
...@@ -684,26 +687,26 @@ function ne(e) { ...@@ -684,26 +687,26 @@ function ne(e) {
id: C.uid, id: C.uid,
url: "" url: ""
}); });
}), v.length === h.length ? (ibiz.message.error(`不可上传 ${d.join("、")}类型的文件!`), !1) : (v.length && (v.forEach((C) => { }), b.length === h.length ? (ibiz.message.error(`不可上传 ${d.join("、")}类型的文件!`), !1) : (b.length && (b.forEach((C) => {
l.splice(C, 1), h.splice(C, 1); l.splice(C, 1), h.splice(C, 1);
}), ibiz.message.error(`不可上传 ${d.join("、")}类型的文件!`)), !0); }), ibiz.message.error(`不可上传 ${d.join("、")}类型的文件!`)), !0);
}, p = (l) => { }, p = (l) => {
l.forEach((h) => { l.forEach((h) => {
s.value.find((v) => v.id === h.uid ? (v.percentage = h.percentage, !0) : !1); s.value.find((b) => b.id === h.uid ? (b.percentage = h.percentage, !0) : !1);
}); });
}, g = (l, h) => { }, f = (l, h) => {
l.forEach((v) => { l.forEach((b) => {
s.value.find((C) => C.id === v.uid ? (C.status = v.status, C.id = h.data.fileid, C.name = h.data.filename, O(C, o.value), !0) : !1); s.value.find((C) => C.id === b.uid ? (C.status = b.status, C.id = h.data.fileid, C.name = h.data.filename, O(C, o.value), !0) : !1);
}); });
}, F = (l, h) => { }, F = (l, h) => {
var C; var C;
l.forEach((M) => { l.forEach((M) => {
s.value.find((G) => G.id === M.uid ? (G.status = M.status, !0) : !1); s.value.find((G) => G.id === M.uid ? (G.status = M.status, !0) : !1);
}); });
const v = new Y(h); const b = new Y(h);
ibiz.notification.error({ ibiz.notification.error({
title: (C = v.status) == null ? void 0 : C.toString(), title: (C = b.status) == null ? void 0 : C.toString(),
desc: v.message, desc: b.message,
duration: 10 duration: 10
}); });
}, y = (l) => { }, y = (l) => {
...@@ -715,31 +718,31 @@ function ne(e) { ...@@ -715,31 +718,31 @@ function ne(e) {
uploadUrl: n.value, uploadUrl: n.value,
beforeUpload: m, beforeUpload: m,
progress: p, progress: p,
success: g, success: f,
error: F, error: F,
finish: y finish: y
}); });
}, f = w(!1), u = w(""), b = w(""); }, w = g(!1), u = g(""), v = g("");
return { return {
selectFile: x, selectFile: x,
fileList: s, fileList: s,
uploadState: t, uploadState: t,
showModal: f, showModal: w,
modalTitle: u, modalTitle: u,
iframeUrl: b, iframeUrl: v,
onModalCancel: () => { onModalCancel: () => {
f.value = !1, u.value = "", b.value = ""; w.value = !1, u.value = "", v.value = "";
}, },
previewFile: (l) => { previewFile: (l) => {
f.value = !0, u.value = l.name; w.value = !0, u.value = l.name;
const h = window.Environment.previewFileUrl; const h = window.Environment.previewFileUrl;
if (h) { if (h) {
const v = encodeURIComponent( const b = encodeURIComponent(
oe( oe(
`${window.location.origin}${l.url}?fullfilename=${l.name}` `${window.location.origin}${l.url}?fullfilename=${l.name}`
) )
); );
b.value = `${h}/onlinePreview?url=${v}`; v.value = `${h}/onlinePreview?url=${b}`;
} }
} }
}; };
...@@ -748,7 +751,7 @@ const Je = L({ ...@@ -748,7 +751,7 @@ const Je = L({
name: "SyGridFileUpload", name: "SyGridFileUpload",
props: z(), props: z(),
setup(e) { setup(e) {
const t = U("sy-grid-file-upload"), { const t = E("sy-grid-file-upload"), {
value: s, value: s,
data: o, data: o,
controller: i controller: i
...@@ -764,27 +767,29 @@ const Je = L({ ...@@ -764,27 +767,29 @@ const Je = L({
fileList: d, fileList: d,
showModal: m, showModal: m,
modalTitle: p, modalTitle: p,
iframeUrl: g, iframeUrl: f,
previewFile: F, previewFile: F,
onModalCancel: y onModalCancel: y
} = ne({ } = ne({
downloadUrl: n, downloadUrl: n,
uploadUrl: r, uploadUrl: r,
value: a value: a,
controller: i
}), x = (u) => {
const v = e.controller, I = v.parent.grid.model.appEntity.deName, S = `${u.id}|${I}|${o.value.srfkey}|${v.context.srfpersonid || v.context.srfuserid}`, k = u.url || n.value.replace("%fileId%", u.id);
v.fileDownload({
url: `${k}?key=${window.btoa(S)}${Math.floor(1e3 + Math.random() * 9e3)}`,
name: u.name
}); });
}, w = D(() => e.controller.editorParams.showPreview ? e.controller.editorParams.showPreview === "true" : window.Environment.kkviewon);
return { return {
ns: t, ns: t,
fileList: d, fileList: d,
showModal: m, showModal: m,
modalTitle: p, modalTitle: p,
iframeUrl: g, iframeUrl: f,
downloadFile: (f) => { showPreview: w,
const u = e.controller, P = u.parent.grid.model.appEntity.deName, T = `${f.id}|${P}|${o.value.srfkey}|${u.context.srfpersonid || u.context.srfuserid}`, k = f.url || n.value.replace("%fileId%", f.id); downloadFile: x,
u.fileDownload({
url: `${k}?key=${window.btoa(T)}${Math.floor(1e3 + Math.random() * 9e3)}`,
name: f.name
});
},
previewFile: F, previewFile: F,
onModalCancel: y onModalCancel: y
}; };
...@@ -815,14 +820,14 @@ const Je = L({ ...@@ -815,14 +820,14 @@ const Je = L({
on: { on: {
click: () => this.downloadFile(e) click: () => this.downloadFile(e)
} }
}), c("i-icon", { }), this.showPreview ? c("i-icon", {
attrs: { attrs: {
type: "md-eye" type: "md-eye"
}, },
on: { on: {
click: () => this.previewFile(e) click: () => this.previewFile(e)
} }
})])]))]), c("i-modal", { }) : null])]))]), c("i-modal", {
attrs: { attrs: {
value: this.showModal, value: this.showModal,
title: this.modalTitle, title: this.modalTitle,
...@@ -895,7 +900,7 @@ const Ke = L({ ...@@ -895,7 +900,7 @@ const Ke = L({
setup(e, { setup(e, {
emit: t emit: t
}) { }) {
const s = U("sy-edit-grid-file-upload-popover"), { const s = E("sy-edit-grid-file-upload-popover"), {
downloadUrl: o, downloadUrl: o,
value: i, value: i,
uploadUrl: n, uploadUrl: n,
...@@ -909,28 +914,28 @@ const Ke = L({ ...@@ -909,28 +914,28 @@ const Ke = L({
value: i, value: i,
uploadUrl: n, uploadUrl: n,
controller: r controller: r
}), p = w(), g = w(!1), F = Ce(p, async (f) => { }), p = g(), f = g(!1), F = Ce(p, async (w) => {
t("close", { t("close", {
isModified: g.value, isModified: f.value,
resultFiles: a.value resultFiles: a.value
}); });
}); });
return N(d, (f) => { return P(d, (w) => {
f === "done" ? (g.value = !0, F.proceed()) : f === "loading" && F.pause(); w === "done" ? (f.value = !0, F.proceed()) : w === "loading" && F.pause();
}), { }), {
ns: s, ns: s,
componentRef: p, componentRef: p,
fileList: a, fileList: a,
deleteFile: (f) => { deleteFile: (w) => {
const u = a.value.findIndex((b) => b.id === f.id); const u = a.value.findIndex((v) => v.id === w.id);
a.value.splice(u, 1), g.value = !0; a.value.splice(u, 1), f.value = !0;
}, },
selectFile: m, selectFile: m,
downloadFile: (f) => { downloadFile: (w) => {
const u = e.controller, P = u.parent.grid.model.appEntity.deName, T = `${f.id}|${P}|${e.data.srfkey}|${u.context.srfpersonid || u.context.srfuserid}`, k = f.url || o.value.replace("%fileId%", f.id); const u = e.controller, N = u.parent.grid.model.appEntity.deName, I = `${w.id}|${N}|${e.data.srfkey}|${u.context.srfpersonid || u.context.srfuserid}`, S = w.url || o.value.replace("%fileId%", w.id);
u.fileDownload({ u.fileDownload({
url: `${k}?key=${window.btoa(T)}${Math.floor(1e3 + Math.random() * 9e3)}`, url: `${S}?key=${window.btoa(I)}${Math.floor(1e3 + Math.random() * 9e3)}`,
name: f.name name: w.name
}); });
} }
}; };
...@@ -978,7 +983,7 @@ const Ye = L({ ...@@ -978,7 +983,7 @@ const Ye = L({
setup(e, { setup(e, {
emit: t emit: t
}) { }) {
const s = U("sy-edit-grid-file-upload"), { const s = E("sy-edit-grid-file-upload"), {
value: o, value: o,
data: i, data: i,
controller: n controller: n
...@@ -990,10 +995,10 @@ const Ye = L({ ...@@ -990,10 +995,10 @@ const Ye = L({
value: o, value: o,
data: i, data: i,
controller: n controller: n
}), m = w(), p = async () => { }), m = g(), p = async () => {
if (!m.value) if (!m.value)
throw new Te("容器元素不存在"); throw new Te("容器元素不存在");
const g = m.value.$el, F = g.offsetHeight, y = ibiz.overlay.createPopover((u) => u(Ke, { const f = m.value.$el, F = f.offsetHeight, y = ibiz.overlay.createPopover((u) => u(Ke, {
props: { props: {
value: d.value, value: d.value,
data: i.value, data: i.value,
...@@ -1002,8 +1007,8 @@ const Ye = L({ ...@@ -1002,8 +1007,8 @@ const Ye = L({
controller: n.value controller: n.value
}, },
on: { on: {
close: (b) => { close: (v) => {
y.dismiss(b); y.dismiss(v);
} }
} }
}), void 0, { }), void 0, {
...@@ -1014,20 +1019,20 @@ const Ye = L({ ...@@ -1014,20 +1019,20 @@ const Ye = L({
crossAxis: 0 crossAxis: 0
} }
}); });
await y.present(g); await y.present(f);
const { const {
isModified: x, isModified: x,
resultFiles: f resultFiles: w
} = await y.onWillDismiss(); } = await y.onWillDismiss();
if (x) { if (x) {
const u = f.length > 0 ? JSON.stringify(f.map((b) => ({ const u = w.length > 0 ? JSON.stringify(w.map((v) => ({
name: b.name, name: v.name,
id: b.id id: v.id
}))) : null; }))) : null;
t("change", u), t("rowSave"); t("change", u), t("rowSave");
} }
}; };
return Fe(m, "click", (g) => { return xe(m, "click", (f) => {
e.disabled || p(); e.disabled || p();
}), { }), {
ns: s, ns: s,
...@@ -1055,12 +1060,12 @@ const Ye = L({ ...@@ -1055,12 +1060,12 @@ const Ye = L({
}); });
L({ L({
name: "SyInput", name: "SyInput",
props: xe(), props: ke(),
emits: K(), emits: K(),
setup(e, { setup(e, {
emit: t emit: t
}) { }) {
const s = U("input"), i = e.controller.model, n = w(), r = w(2); const s = E("input"), i = e.controller.model, n = g(), r = g(2);
i.editorType === "TEXTAREA_10" && (r.value = 10); i.editorType === "TEXTAREA_10" && (r.value = 10);
const a = D(() => { const a = D(() => {
switch (i.editorType) { switch (i.editorType) {
...@@ -1074,15 +1079,15 @@ L({ ...@@ -1074,15 +1079,15 @@ L({
default: default:
return "string"; return "string";
} }
}), d = w(""); }), d = g("");
N(() => e.value, (u, b) => { P(() => e.value, (u, v) => {
u !== b && (u ? d.value = u : d.value = ""); u !== v && (u ? d.value = u : d.value = "");
}, { }, {
immediate: !0 immediate: !0
}); });
let m = !1, p, g; let m = !1, p, f;
const F = Me((u) => { const F = Me((u) => {
g !== u.target.value && t("change", u.target.value), g = void 0, m = !1, p && p(); f !== u.target.value && t("change", u.target.value), f = void 0, m = !1, p && p();
}, 300, { }, 300, {
leading: !0 leading: !0
}), y = (u) => { }), y = (u) => {
...@@ -1091,10 +1096,10 @@ L({ ...@@ -1091,10 +1096,10 @@ L({
u && u.code === "Enter" && m && (p = () => { u && u.code === "Enter" && m && (p = () => {
n.value.$el.dispatchEvent(u); n.value.$el.dispatchEvent(u);
}); });
}, f = () => { }, w = () => {
g = n.value.currentValue, t("change", g); f = n.value.currentValue, t("change", f);
}; };
return e.autoFocus && N(n, (u) => { return e.autoFocus && P(n, (u) => {
u && u.$el.getElementsByTagName("input")[0].focus(); u && u.$el.getElementsByTagName("input")[0].focus();
}), { }), {
ns: s, ns: s,
...@@ -1103,7 +1108,7 @@ L({ ...@@ -1103,7 +1108,7 @@ L({
currentVal: d, currentVal: d,
handleChange: y, handleChange: y,
handleKeyUp: x, handleKeyUp: x,
handleBlur: f, handleBlur: w,
inputRef: n inputRef: n
}; };
}, },
...@@ -1136,12 +1141,12 @@ L({ ...@@ -1136,12 +1141,12 @@ L({
}); });
L({ L({
name: "SyGridInput", name: "SyGridInput",
props: ke(), props: Fe(),
emits: _(), emits: _(),
setup(e, { setup(e, {
emit: t emit: t
}) { }) {
const s = U("grid-input"), { const s = E("grid-input"), {
isInfoMode: o, isInfoMode: o,
autoFocus: i, autoFocus: i,
componentRef: n, componentRef: n,
...@@ -1214,7 +1219,7 @@ const et = L({ ...@@ -1214,7 +1219,7 @@ const et = L({
setup(e, { setup(e, {
emit: t emit: t
}) { }) {
const s = U("layout"), o = w(!1), i = () => { const s = E("layout"), o = g(!1), i = () => {
o.value = !o.value, t("onCollapseChange", o.value); o.value = !o.value, t("onCollapseChange", o.value);
}, n = D(() => e.model.source.blankMode === !0), r = D(() => !!(window.Environment.manualdownloadurl || ibiz.env.manualdownloadurl)); }, n = D(() => e.model.source.blankMode === !0), r = D(() => !!(window.Environment.manualdownloadurl || ibiz.env.manualdownloadurl));
return { return {
...@@ -1311,7 +1316,7 @@ function tt(e) { ...@@ -1311,7 +1316,7 @@ function tt(e) {
}), e.singleSelect || s.splice(0, 0, { type: "selection", width: 60 }), s; }), e.singleSelect || s.splice(0, 0, { type: "selection", width: 60 }), s;
} }
function st(e) { function st(e) {
const t = w([]); const t = g([]);
return e.nerve.self.evt.on("created", () => { return e.nerve.self.evt.on("created", () => {
t.value = tt(e); t.value = tt(e);
}), [D(() => { }), [D(() => {
...@@ -1372,7 +1377,7 @@ class nt extends ge { ...@@ -1372,7 +1377,7 @@ class nt extends ge {
* @author: zhujiamin * @author: zhujiamin
* @Date: 2023-10-09 14:00:38 * @Date: 2023-10-09 14:00:38
*/ */
E(this, "groups", []); U(this, "groups", []);
/** /**
* 分组名称属性 * 分组名称属性
* *
...@@ -1380,7 +1385,7 @@ class nt extends ge { ...@@ -1380,7 +1385,7 @@ class nt extends ge {
* @date 2024-12-19 10:12:56 * @date 2024-12-19 10:12:56
* @type {string} * @type {string}
*/ */
E(this, "groupField", ""); U(this, "groupField", "");
/** /**
* 第一列名称 * 第一列名称
* *
...@@ -1388,7 +1393,7 @@ class nt extends ge { ...@@ -1388,7 +1393,7 @@ class nt extends ge {
* @date 2024-12-19 10:12:30 * @date 2024-12-19 10:12:30
* @type {string} * @type {string}
*/ */
E(this, "firstColName", ""); U(this, "firstColName", "");
} }
async onInit() { async onInit() {
const s = this.model.columns.find( const s = this.model.columns.find(
...@@ -1474,7 +1479,7 @@ const at = L({ ...@@ -1474,7 +1479,7 @@ const at = L({
setup(e) { setup(e) {
const { const {
proxy: t proxy: t
} = A(), s = U("grid"), o = rt(t, e.modelData, e.context, e.params), [i] = st(o), { } = A(), s = E("grid"), o = rt(t, e.modelData, e.context, e.params), [i] = st(o), {
onRowClick: n, onRowClick: n,
onDbRowClick: r, onDbRowClick: r,
onSelectionChange: a, onSelectionChange: a,
...@@ -1482,60 +1487,60 @@ const at = L({ ...@@ -1482,60 +1487,60 @@ const at = L({
} = ot(o), { } = ot(o), {
onPageChange: m, onPageChange: m,
onPageReset: p, onPageReset: p,
onPageSizeChange: g onPageSizeChange: f
} = it(o), F = (k, S) => { } = it(o), F = (S, k) => {
const l = t.$refs.grid; const l = t.$refs.grid;
l && (l.toggleSelect && l.toggleSelect(S), l.highlightCurrentRow && l.highlightCurrentRow(S)), n(k); l && (l.toggleSelect && l.toggleSelect(k), l.highlightCurrentRow && l.highlightCurrentRow(k)), n(S);
}, y = w(0), x = w(null), f = w(null); }, y = g(0), x = g(null), w = g(null);
let u = null, b = 0; let u = null, v = 0;
const P = () => { const N = () => {
var k; var S;
if (x.value && ((k = e.modal) == null ? void 0 : k.mode) !== "EMBED") if (x.value && ((S = e.modal) == null ? void 0 : S.mode) !== "EMBED")
if (o.model.source.enablePagingBar && f.value) { if (o.model.source.enablePagingBar && w.value) {
const S = f.value.$el, l = S.offsetHeight + parseFloat(window.getComputedStyle(S).paddingTop); const k = w.value.$el, l = k.offsetHeight + parseFloat(window.getComputedStyle(k).paddingTop);
y.value = x.value.offsetHeight - l; y.value = x.value.offsetHeight - l;
} else } else
y.value = x.value.offsetHeight; y.value = x.value.offsetHeight;
o.model.source.height > 0 && (y.value = o.model.source.height); o.model.source.height > 0 && (y.value = o.model.source.height);
}; };
N(x, (k, S) => { P(x, (S, k) => {
k && k !== S && (P(), window.ResizeObserver && x.value && (u = new ResizeObserver((l) => { S && S !== k && (N(), window.ResizeObserver && x.value && (u = new ResizeObserver((l) => {
const h = l[0].contentRect.height; const h = l[0].contentRect.height;
h !== b && (P(), b = h); h !== v && (N(), v = h);
}), u.observe(x.value))); }), u.observe(x.value)));
}), be(() => { }), be(() => {
u && u.disconnect(); u && u.disconnect();
}); });
const T = D(() => { const I = D(() => {
const k = []; const S = [];
return o.groups.forEach((S) => { return o.groups.forEach((k) => {
if (!S.children.length) if (!k.children.length)
return; return;
const h = [...S.children].shift(); const h = [...k.children].shift();
k.push({ S.push({
srfkey: S.caption, srfkey: k.caption,
isGroupData: !0, isGroupData: !0,
first: h, first: h,
children: S.children, children: k.children,
_showChildren: !0 _showChildren: !0
}); });
}), k; }), S;
}); });
return { return {
c: o, c: o,
ns: s, ns: s,
columns: i, columns: i,
tableData: T, tableData: I,
onDbRowClick: r, onDbRowClick: r,
onUIRowClick: F, onUIRowClick: F,
onSelectionChange: a, onSelectionChange: a,
onSortChange: d, onSortChange: d,
onPageChange: m, onPageChange: m,
onPageSizeChange: g, onPageSizeChange: f,
onPageReset: p, onPageReset: p,
tableHeight: y, tableHeight: y,
gridRef: x, gridRef: x,
girdPaginationRef: f girdPaginationRef: w
}; };
}, },
render() { render() {
...@@ -1610,12 +1615,12 @@ const at = L({ ...@@ -1610,12 +1615,12 @@ const at = L({
}); });
class lt { class lt {
constructor() { constructor() {
E(this, "component", Oe); U(this, "component", Oe);
} }
} }
class ct { class ct {
constructor() { constructor() {
E(this, "component", Ae); U(this, "component", Ae);
} }
async createController(t, s) { async createController(t, s) {
const o = new Z(t, s); const o = new Z(t, s);
...@@ -1624,7 +1629,7 @@ class ct { ...@@ -1624,7 +1629,7 @@ class ct {
} }
class dt { class dt {
constructor() { constructor() {
E(this, "component", "IndexView"); U(this, "component", "IndexView");
} }
} }
const ae = L({ const ae = L({
...@@ -1649,15 +1654,15 @@ const ae = L({ ...@@ -1649,15 +1654,15 @@ const ae = L({
setup(e) { setup(e) {
const { const {
proxy: t proxy: t
} = A(), s = Ue(t, e.modelPath); } = A(), s = Ee(t, e.modelPath);
B(t, "deName", s.setDeName.bind(s)); B(t, "deName", s.setDeName.bind(s));
const o = U("wf-step-trace-grid"), i = w([]), n = (a, d, m = !1) => { const o = E("wf-step-trace-grid"), i = g([]), n = (a, d, m = !1) => {
a.identitylinks.length > 0 || a.comments.length > 0 && a.comments.forEach((p) => { a.identitylinks.length > 0 || a.comments.length > 0 && a.comments.forEach((p) => {
var g, F, y; var f, F, y;
m && p.type === "启动流程" || d.push({ m && p.type === "启动流程" || d.push({
id: W(), id: W(),
nodeName: a.userTaskName, nodeName: a.userTaskName,
personName: (g = p.authorName) == null ? void 0 : g.replace(/\([^)]*\)[^(]*$/, ""), personName: (f = p.authorName) == null ? void 0 : f.replace(/\([^)]*\)[^(]*$/, ""),
deptName: ((y = (F = p.authorName) == null ? void 0 : F.match(/.*\(([^)]*)\)[^(]*$/)) == null ? void 0 : y[1]) || "", deptName: ((y = (F = p.authorName) == null ? void 0 : F.match(/.*\(([^)]*)\)[^(]*$/)) == null ? void 0 : y[1]) || "",
time: p.time, time: p.time,
content: p.type, content: p.type,
...@@ -1687,7 +1692,7 @@ const ae = L({ ...@@ -1687,7 +1692,7 @@ const ae = L({
n(d, i.value); n(d, i.value);
}), i.value.sort((d, m) => Date.parse(d.time) - Date.parse(m.time))); }), i.value.sort((d, m) => Date.parse(d.time) - Date.parse(m.time)));
}); });
const r = w([{ const r = g([{
title: "序号", title: "序号",
key: "index", key: "index",
width: 60, width: 60,
...@@ -1780,7 +1785,7 @@ L({ ...@@ -1780,7 +1785,7 @@ L({
setup(e) { setup(e) {
const { const {
proxy: t proxy: t
} = A(), s = Q(t, (r, a) => new ut(e.modelPath, r, a)), o = U(`view-${me.DE_WF_DYNA_EDIT_VIEW3}`.toLowerCase()), i = w(["mainForm"]); } = A(), s = Q(t, (r, a) => new ut(e.modelPath, r, a)), o = E(`view-${me.DE_WF_DYNA_EDIT_VIEW3}`.toLowerCase()), i = g(["mainForm"]);
return { return {
c: s, c: s,
ns: o, ns: o,
...@@ -1900,7 +1905,7 @@ L({ ...@@ -1900,7 +1905,7 @@ L({
setup(e) { setup(e) {
const { const {
proxy: t proxy: t
} = A(), s = Ee(t, e.modelPath), o = U("view-deeditview3"), i = w(["mainForm"]); } = A(), s = Ue(t, e.modelPath), o = E("view-deeditview3"), i = g(["mainForm"]);
return { return {
c: s, c: s,
ns: o, ns: o,
...@@ -1982,8 +1987,8 @@ L({ ...@@ -1982,8 +1987,8 @@ L({
}); });
class ht { class ht {
constructor() { constructor() {
E(this, "formEditor", "SyFileUpload"); U(this, "formEditor", "SyFileUpload");
E(this, "gridEditor", "SyGridFileUploadContainer"); U(this, "gridEditor", "SyGridFileUploadContainer");
} }
async createController(t, s) { async createController(t, s) {
const o = new J(t, s); const o = new J(t, s);
...@@ -2007,7 +2012,7 @@ class mt extends te { ...@@ -2007,7 +2012,7 @@ class mt extends te {
} }
class pt { class pt {
constructor() { constructor() {
E(this, "handler"); U(this, "handler");
} }
async getHandler() { async getHandler() {
return this.handler || (this.handler = new mt()), this.handler; return this.handler || (this.handler = new mt()), this.handler;
...@@ -2030,7 +2035,7 @@ class ft extends te { ...@@ -2030,7 +2035,7 @@ class ft extends te {
} }
class gt { class gt {
constructor() { constructor() {
E(this, "handler"); U(this, "handler");
} }
async getHandler() { async getHandler() {
return this.handler || (this.handler = new ft()), this.handler; return this.handler || (this.handler = new ft()), this.handler;
...@@ -2038,10 +2043,10 @@ class gt { ...@@ -2038,10 +2043,10 @@ class gt {
} }
class wt { class wt {
constructor() { constructor() {
E(this, "component", "GroupGrid"); U(this, "component", "GroupGrid");
} }
} }
const vt = new Re(import.meta.url), Nt = { const vt = new Re(import.meta.url), Pt = {
mateUrl: import.meta.url, mateUrl: import.meta.url,
install(e) { install(e) {
pe.getModelService().then((t) => { pe.getModelService().then((t) => {
...@@ -2072,5 +2077,5 @@ const vt = new Re(import.meta.url), Nt = { ...@@ -2072,5 +2077,5 @@ const vt = new Re(import.meta.url), Nt = {
} }
}; };
export { export {
Nt as default Pt as default
}; };
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册