iking-web-ui-pro 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IKDetailPreviewFiles/ik.index.es.js +24 -24
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKDetailPreviewFiles/style.css +1 -1
- package/dist/IKExpandCollapse/ik.index.es.js +6 -6
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +3 -3
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +15 -15
- package/dist/IKVerticalStepBar/ik.index.umd.js +1 -1
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +3 -3
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +12 -12
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +3 -3
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +14 -14
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +14 -14
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +3 -3
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +3 -3
- package/dist/IkMonacoEditor/ik.index.umd.js +1 -1
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +3 -3
- package/dist/IkPageFull/ik.index.umd.js +1 -1
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +3 -3
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +3 -3
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +18 -18
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +7 -7
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +3 -3
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +22 -22
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +25 -25
- package/dist/src/components/IkSvgIcon/index.d.ts +0 -3
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +0 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as V, inject as q, computed as _, resolveComponent as S, openBlock as s, createElementBlock as u, normalizeClass as d, normalizeStyle as f, createCommentVNode as k, createElementVNode as h, createBlock as w, withCtx as j, createTextVNode as E, toDisplayString as b, Fragment as F, renderList as N, unref as O } from "vue";
|
|
2
2
|
import { ikColor as W } from "iking-utils-pro";
|
|
3
3
|
const K = (o, p) => {
|
|
4
4
|
if (o.install = (n) => {
|
|
@@ -24,7 +24,7 @@ const K = (o, p) => {
|
|
|
24
24
|
key: 1,
|
|
25
25
|
class: "h-[1em] w-[1em]",
|
|
26
26
|
"aria-hidden": "true"
|
|
27
|
-
}, H = ["xlink:href"], J = ["src"], M = /* @__PURE__ */
|
|
27
|
+
}, H = ["xlink:href"], J = ["src"], M = /* @__PURE__ */ V({
|
|
28
28
|
name: "IkSvgIcon",
|
|
29
29
|
__name: "index",
|
|
30
30
|
props: {
|
|
@@ -48,7 +48,7 @@ const K = (o, p) => {
|
|
|
48
48
|
type: {},
|
|
49
49
|
active: { type: Boolean, default: !1 },
|
|
50
50
|
disabled: { type: Boolean, default: !1 },
|
|
51
|
-
tableIconType: {
|
|
51
|
+
tableIconType: {}
|
|
52
52
|
},
|
|
53
53
|
setup(o) {
|
|
54
54
|
const p = o, n = q("iconConfig"), e = _(() => ({
|
|
@@ -72,7 +72,7 @@ const K = (o, p) => {
|
|
|
72
72
|
break;
|
|
73
73
|
}
|
|
74
74
|
e.value.rotate && l.push(`rotate(${e.value.rotate % 360}deg)`);
|
|
75
|
-
const
|
|
75
|
+
const y = {
|
|
76
76
|
...e.value.color && { color: e.value.color },
|
|
77
77
|
...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
|
|
78
78
|
...l.length && { transform: l.join(" ") },
|
|
@@ -82,11 +82,11 @@ const K = (o, p) => {
|
|
|
82
82
|
"--ik-color-icon-light": e.value.colorLight || W.setOpacity(e.value.color, e.value.opacity)
|
|
83
83
|
} : {}
|
|
84
84
|
};
|
|
85
|
-
return e.value.width && (
|
|
85
|
+
return e.value.width && (y.width = y.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), y;
|
|
86
86
|
});
|
|
87
|
-
return (l,
|
|
87
|
+
return (l, y) => {
|
|
88
88
|
const x = S("el-tooltip"), C = S("el-button");
|
|
89
|
-
return e.value.tableIconType === "icon" ? (s(), u("span", X, [
|
|
89
|
+
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (s(), u("span", X, [
|
|
90
90
|
e.value.notip || !e.value.title ? (s(), u(
|
|
91
91
|
"i",
|
|
92
92
|
{
|
|
@@ -218,7 +218,7 @@ const K = (o, p) => {
|
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
220
|
});
|
|
221
|
-
const P = /* @__PURE__ */ L(M, [["__scopeId", "data-v-
|
|
221
|
+
const P = /* @__PURE__ */ L(M, [["__scopeId", "data-v-7729b79a"]]), T = K(P), Q = { class: "content" }, R = { class: "top" }, U = ["onClick"], Z = ["id"], ee = ["onClick"], te = /* @__PURE__ */ V({
|
|
222
222
|
__name: "IKVerticalStepBar",
|
|
223
223
|
props: {
|
|
224
224
|
// 当前激活的下标
|
|
@@ -252,15 +252,15 @@ const P = /* @__PURE__ */ L(M, [["__scopeId", "data-v-1be337e4"]]), V = K(P), Q
|
|
|
252
252
|
)), v = _(() => n.active.indexOf("-") > 0 ? Number(n.active.split("-")[1]) : 0), l = (r) => {
|
|
253
253
|
let i = "", t = r + 1;
|
|
254
254
|
return t < a.value ? i = "before-bg" : t === a.value ? i = "active-bg" : t > a.value && (i = "after-bg"), `${i} index`;
|
|
255
|
-
},
|
|
255
|
+
}, y = (r) => {
|
|
256
256
|
let i = "", t = r + 1;
|
|
257
257
|
return t < a.value ? i = "before-text" : t === a.value ? i = "active-text" : t > a.value && (i = "after-text"), `${i} text`;
|
|
258
258
|
}, x = (r) => {
|
|
259
259
|
let i = "", t = r + 1;
|
|
260
260
|
return t < a.value ? i = "before-style" : t < n.list.length && (i = "after-style"), `${i} bottom`;
|
|
261
261
|
}, C = (r, i) => {
|
|
262
|
-
let t = "", c = r + 1,
|
|
263
|
-
return c < a.value ? t = "before-text" : c === a.value ?
|
|
262
|
+
let t = "", c = r + 1, g = i + 1;
|
|
263
|
+
return c < a.value ? t = "before-text" : c === a.value ? g < v.value ? t = "before-text" : g === v.value ? t = "active-text" : g > v.value && (t = "after-text") : c > a.value && (t = "after-text"), `${t} child-text`;
|
|
264
264
|
}, B = (r, i) => {
|
|
265
265
|
n.needClick && (r[n.propsField.children] || (e("update:active", i + ""), e("click", r)));
|
|
266
266
|
}, I = (r, i) => {
|
|
@@ -273,7 +273,7 @@ const P = /* @__PURE__ */ L(M, [["__scopeId", "data-v-1be337e4"]]), V = K(P), Q
|
|
|
273
273
|
F,
|
|
274
274
|
null,
|
|
275
275
|
N(o.list, (t, c) => {
|
|
276
|
-
var
|
|
276
|
+
var g, z;
|
|
277
277
|
return s(), u("div", {
|
|
278
278
|
class: "line-block",
|
|
279
279
|
key: c
|
|
@@ -289,7 +289,7 @@ const P = /* @__PURE__ */ L(M, [["__scopeId", "data-v-1be337e4"]]), V = K(P), Q
|
|
|
289
289
|
/* TEXT, CLASS */
|
|
290
290
|
),
|
|
291
291
|
h("div", {
|
|
292
|
-
class: d(
|
|
292
|
+
class: d(y(c)),
|
|
293
293
|
style: f(o.needClick ? "cursor: pointer;" : ""),
|
|
294
294
|
onClick: (m) => B(t, c + 1)
|
|
295
295
|
}, [
|
|
@@ -303,7 +303,7 @@ const P = /* @__PURE__ */ L(M, [["__scopeId", "data-v-1be337e4"]]), V = K(P), Q
|
|
|
303
303
|
class="ikapprove icon-a-putongjiantouzhankai"\r
|
|
304
304
|
@click="changeShow(item, index)"\r
|
|
305
305
|
></i> `),
|
|
306
|
-
(
|
|
306
|
+
(g = t[o.propsField.children]) != null && g.length && !t.show ? (s(), w(O(T), {
|
|
307
307
|
key: 0,
|
|
308
308
|
class: "ikapprove",
|
|
309
309
|
onClick: (m) => I(t, c),
|
|
@@ -314,7 +314,7 @@ const P = /* @__PURE__ */ L(M, [["__scopeId", "data-v-1be337e4"]]), V = K(P), Q
|
|
|
314
314
|
@click="changeShow(item, index)"\r
|
|
315
315
|
class="ikapprove icon-a-putongjiantoushouqi"\r
|
|
316
316
|
></i> `),
|
|
317
|
-
(z = t[o.propsField.children]) != null && z.length && t.show ? (s(), w(O(
|
|
317
|
+
(z = t[o.propsField.children]) != null && z.length && t.show ? (s(), w(O(T), {
|
|
318
318
|
key: 1,
|
|
319
319
|
class: "ikapprove",
|
|
320
320
|
onClick: (m) => I(t, c),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(d,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(d=typeof globalThis<"u"?globalThis:d||self,e(d.index={},d.vue,d["iking-utils-pro"]))})(this,function(d,e,x){"use strict";const v=(s,u)=>{if(s.install=i=>{for(const t of[s,...Object.values(u??{})])i.component(t.name,t)},u)for(const[i,t]of Object.entries(u))s[i]=t;return s},B=(s,u)=>{const i=s.__vccOpts||s;for(const[t,o]of u)i[t]=o;return i},S={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},E={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},$=["xlink:href"],
|
|
1
|
+
(function(d,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(d=typeof globalThis<"u"?globalThis:d||self,e(d.index={},d.vue,d["iking-utils-pro"]))})(this,function(d,e,x){"use strict";const v=(s,u)=>{if(s.install=i=>{for(const t of[s,...Object.values(u??{})])i.component(t.name,t)},u)for(const[i,t]of Object.entries(u))s[i]=t;return s},B=(s,u)=>{const i=s.__vccOpts||s;for(const[t,o]of u)i[t]=o;return i},S={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},E={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},$=["xlink:href"],I=["src"],N={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},V=["xlink:href"],j=["src"],T=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{}},setup(s){const u=s,i=e.inject("iconConfig"),t=e.computed(()=>({...(i==null?void 0:i.value)||{},...u})),o=e.computed(()=>{const{name:n}=t.value;return/^http?:\/\//.test(n)?"img":/i-[^:]+:[^:]+/.test(n)?"unocss":n!=null&&n.startsWith("iksig")?"iksig":n!=null&&n.includes(":")?"iconify":n!=null&&n.startsWith("iksvg")?"svg":"i"}),p=e.computed(()=>{const n=[];if(t.value.flip)switch(t.value.flip){case"horizontal":n.push("rotateY(180deg)");break;case"vertical":n.push("rotateX(180deg)");break;case"both":n.push("rotateX(180deg)"),n.push("rotateY(180deg)");break}t.value.rotate&&n.push(`rotate(${t.value.rotate%360}deg)`);const m={...t.value.color&&{color:t.value.color},...t.value.size&&{fontSize:typeof t.value.size=="number"?`${t.value.size}px`:t.value.size},...n.length&&{transform:n.join(" ")},padding:t.value.showBg||t.value.bg?t.value.padding:0,...t.value.color&&o.value!=="iksig"?{"--ik-color-icon-dark":t.value.color,"--ik-color-icon-light":t.value.colorLight||x.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(m.width=m.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),m});return(n,m)=>{const y=e.resolveComponent("el-tooltip"),h=e.resolveComponent("el-button");return t.value.tableIconType==="icon"||!t.value.tableIconType?(e.openBlock(),e.createElementBlock("span",S,[t.value.notip||!t.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[n.name]:o.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:t.value.primary||t.value.type==="primary",success:n.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active,disabled:t.value.disabled}]),style:e.normalizeStyle(p.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),o.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(p.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",E,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,$)])):o.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,I)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(p.value)},null,6))],6)):(e.openBlock(),e.createBlock(y,{key:1,content:t.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[n.name]:o.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:n.primary||t.value.type==="primary",success:n.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active}]),style:e.normalizeStyle(p.value)},[o.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.value.name}`),style:e.normalizeStyle(p.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",N,[e.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,V)])):o.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,j)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(t.value.name),style:e.normalizeStyle(p.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(h,{key:1,type:["warning","error"].includes(t.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),M="",_=v(B(T,[["__scopeId","data-v-7729b79a"]])),F={class:"content"},O={class:"top"},q=["onClick"],D=["id"],K=["onClick"],L=e.defineComponent({__name:"IKVerticalStepBar",props:{active:{type:String,default:""},list:{type:Array,default:()=>[]},needClick:{type:Boolean,default:!1},propsField:{type:Object,default:()=>({name:"name",children:"children"})}},emits:["click","update:active"],setup(s,{emit:u}){const i=s,t=u,o=e.computed(()=>Number(i.active.indexOf("-")>0?i.active.split("-")[0]:i.active)),p=e.computed(()=>i.active.indexOf("-")>0?Number(i.active.split("-")[1]):0),n=c=>{let a="",l=c+1;return l<o.value?a="before-bg":l===o.value?a="active-bg":l>o.value&&(a="after-bg"),`${a} index`},m=c=>{let a="",l=c+1;return l<o.value?a="before-text":l===o.value?a="active-text":l>o.value&&(a="after-text"),`${a} text`},y=c=>{let a="",l=c+1;return l<o.value?a="before-style":l<i.list.length&&(a="after-style"),`${a} bottom`},h=(c,a)=>{let l="",r=c+1,f=a+1;return r<o.value?l="before-text":r===o.value?f<p.value?l="before-text":f===p.value?l="active-text":f>p.value&&(l="after-text"):r>o.value&&(l="after-text"),`${l} child-text`},C=(c,a)=>{i.needClick&&(c[i.propsField.children]||(t("update:active",a+""),t("click",c)))},w=(c,a)=>{c.show=!c.show;let l=document.getElementById(`children${a}`);c.show?l.style.display="none":l.style.display="block"};return(c,a)=>(e.openBlock(),e.createElementBlock("div",F,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.list,(l,r)=>{var f,z;return e.openBlock(),e.createElementBlock("div",{class:"line-block",key:r},[e.createElementVNode("div",O,[e.createElementVNode("div",{class:e.normalizeClass(n(r))},e.toDisplayString(r+1),3),e.createElementVNode("div",{class:e.normalizeClass(m(r)),style:e.normalizeStyle(s.needClick?"cursor: pointer;":""),onClick:k=>C(l,r+1)},[e.createTextVNode(e.toDisplayString(l[s.propsField.name])+" ",1),e.createCommentVNode(` <i\r
|
|
2
2
|
v-if="item[propsField.children]?.length && !item.show"\r
|
|
3
3
|
class="ikapprove icon-a-putongjiantouzhankai"\r
|
|
4
4
|
@click="changeShow(item, index)"\r
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.row-title[data-v-
|
|
1
|
+
.row-title[data-v-7729b79a]{display:flex}[data-v-240cff4f]{margin:0;padding:0}.content[data-v-240cff4f]{width:100%;height:100%;border-top-left-radius:20px;border-bottom-left-radius:20px;padding:32px 28px}.content .line-block .top[data-v-240cff4f]{display:flex}.content .line-block .top .index[data-v-240cff4f]{width:32px;height:32px;display:flex;justify-content:center;align-items:center;border-radius:4px;font-size:18px;font-weight:550}.content .line-block .top .text[data-v-240cff4f]{line-height:32px;margin-left:20px;font-size:18px;font-weight:700}.content .line-block .active-text[data-v-240cff4f]{color:var(--ik-step-item-active-color, "#039ef7")}.content .line-block .before-text[data-v-240cff4f]{color:var(--ik-color-font-title)}.content .line-block .after-text[data-v-240cff4f]{color:var(--el-color-info, "#181c3266")}.content .line-block .before-bg[data-v-240cff4f]{color:var(--ik-step-item-active-color, #333)!important;background-color:var(--ik-step-item-num-greater-bg)}.content .line-block .active-bg[data-v-240cff4f]{background-color:var(--ik-step-item-active-color, #039ef7);color:var(--el-color-white, #fff)}.content .line-block .after-bg[data-v-240cff4f]{background-color:var(--ik-step-item-num-bg, #f3f6f9);color:var(--ik-step-item-text-color, #a2a6b8)}.content .line-block .bottom[data-v-240cff4f]{margin-left:16px;border-width:0 0 0 1px;padding:10px 0 20px 52px;margin-top:4px;margin-bottom:4px}.content .line-block .before-style[data-v-240cff4f]{border-color:var(--ik-step-item-active-color, #029ef7);border-style:solid}.content .line-block .after-style[data-v-240cff4f]{border-color:var(--el-color-info, #ccc);border-style:dashed}.content .line-block li[data-v-240cff4f]{line-height:30px}.content .line-block .child-text[data-v-240cff4f]{padding:5px 0}
|
|
@@ -1120,7 +1120,7 @@ const M3 = L(V3), P3 = {
|
|
|
1120
1120
|
type: {},
|
|
1121
1121
|
active: { type: Boolean, default: !1 },
|
|
1122
1122
|
disabled: { type: Boolean, default: !1 },
|
|
1123
|
-
tableIconType: {
|
|
1123
|
+
tableIconType: {}
|
|
1124
1124
|
},
|
|
1125
1125
|
setup(o) {
|
|
1126
1126
|
const n = o, s = V("iconConfig"), t = S(() => ({
|
|
@@ -1158,7 +1158,7 @@ const M3 = L(V3), P3 = {
|
|
|
1158
1158
|
});
|
|
1159
1159
|
return (c, h) => {
|
|
1160
1160
|
const _ = N("el-tooltip"), d = N("el-button");
|
|
1161
|
-
return t.value.tableIconType === "icon" ? (l(), r("span", P3, [
|
|
1161
|
+
return t.value.tableIconType === "icon" || !t.value.tableIconType ? (l(), r("span", P3, [
|
|
1162
1162
|
t.value.notip || !t.value.title ? (l(), r(
|
|
1163
1163
|
"i",
|
|
1164
1164
|
{
|
|
@@ -1290,7 +1290,7 @@ const M3 = L(V3), P3 = {
|
|
|
1290
1290
|
};
|
|
1291
1291
|
}
|
|
1292
1292
|
});
|
|
1293
|
-
const K3 = /* @__PURE__ */ W(W3, [["__scopeId", "data-v-
|
|
1293
|
+
const K3 = /* @__PURE__ */ W(W3, [["__scopeId", "data-v-7729b79a"]]), j = L(K3), G3 = {
|
|
1294
1294
|
key: 0,
|
|
1295
1295
|
class: "exit-main-page-maximize"
|
|
1296
1296
|
}, Y3 = /* @__PURE__ */ B({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(E,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(E=typeof globalThis<"u"?globalThis:E||self,e(E.index={},E.vue,E["iking-utils-pro"]))})(this,function(E,e,F){"use strict";const v=(n,l)=>{if(n.install=a=>{for(const o of[n,...Object.values(l??{})])a.component(o.name,o)},l)for(const[a,o]of Object.entries(l))n[a]=o;return n},N=(n,l)=>{const a=n.__vccOpts||n;for(const[o,t]of l)a[o]=t;return a},j=n=>({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",并行分支:"PARALLEL",子流程:"SUB_PROCESS",...n.defaultNodeType},defaultFile:{id:"id",parallelInstances:"parallelInstances",nodeId:"sortOrder",nodeType:"type",nodeTypeName:"name",approveType:"approveType",multiExecutorType:"multiExecutorType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approvalCategory:"approvalCategory",isShowAdd:"initiatorSpecify",isShowAddCopy:"initiatorSpecifyCarbonCopy",executorEmpty:"executorEmpty",executorEmptyStrategy:"executorEmptyStrategy",reserveExecutorUsers:"reserveExecutorUsers",approvePersonList:"executorUsers",initiatorSpecifiedScope:"initiatorSpecifiedScope",initiatorSpecifiedScopeType:"initiatorSpecifiedScopeType",singleApproval:"singleApproval",originator:"username",...n.defaultFieldMap},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...n.statusWithoutApprover},multiple:!1,chooseType:[],statusOption:{发起:"1",等待:"2",同意:"3",拒绝:"4",转交:"5",加签:"6",退回:"7",撤销:"8",评论:"9",...n.defaultStatus},listData:[]}),U=(n,l,a)=>{let o="";switch(l){case n.nodeType.审批节点:a&&a.length==1?o="ikapprove-ziyuan":o="ikapprove-shenpi";break;case n.nodeType.办理节点:o="ikapprove-bianji";break;case n.nodeType.抄送节点:o="ikapprove-chaosong";break;case n.nodeType.并行分支:o="ikapprove-fenzhi";break;case n.nodeType.子流程:o="ikapprove-ziliucheng1";break;default:o="ikapprove-ziyuan"}return`ikapprove ${o}`},W=(n,l=2)=>{if(n===void 0)return"";if(n===0)return"0 B";const a=["B","KB","MB","GB","TB"],o=Math.floor(Math.log(n)/Math.log(1024));let t=n/Math.pow(1024,o);return(t%1===0?t.toFixed(l||0):t.toFixed(l))+" "+a[o]},x=(n,l)=>l?l.startsWith("http")?l:`${n||location.origin}${l}`:"",I=(n,l)=>{var s,c,f,u;const a=(s=n==null?void 0:n.response)!=null&&s.data?D((f=(c=n==null?void 0:n.response)==null?void 0:c.data)==null?void 0:f.suffix):((u=n.raw)==null?void 0:u.type)||D(n[l.suffix]),o=a==null?void 0:a.toLowerCase(),t={sheet:"excel",excel:"excel",zip:"zip","application/x-compressed":"zip",image:"image",video:"video",audio:"audio",pdf:"pdf",text:"txt",txt:"txt",word:"word",ppt:"ppt",exe:"exe",json:"json"};for(let r in t)if(typeof o=="string"&&(o.includes(r)||o===r))return t[r];return"unknown"},K={".doc":"word",".docx":"word",".docxf":"word",".docm":"word",".dot":"word",".dotm":"word",".dotx":"word",".epub":"word",".fodt":"word",".htm":"word",".html":"word",".mht":"word",".odt":"word",".ott":"word",".rtf":"word",".djvu":"word",".oxps":"word",".oform":"word",".fb2":"word",".xml":"word",".xps":"word",".csv":"excel",".xls":"excel",".xlsx":"excel",".fods":"excel",".ods":"excel",".ots":"excel",".xlsb":"excel",".xlsm":"excel",".xlt":"excel",".xltm":"excel",".xltx":"excel",".fodp":"ppt",".odp":"ppt",".otp":"ppt",".pot":"ppt",".potm":"ppt",".potx":"ppt",".pps":"ppt",".ppsm":"ppt",".ppsx":"ppt",".ppt":"ppt",".pptm":"ppt",".pptx":"ppt",".zip":"zip",".rar":"zip",".7z":"zip",".apz":"zip",".ar":"zip",".bz":"zip",".car":"zip",".dar":"zip",".cpgz":"zip",".f":"zip",".ha":"zip",".hbc":"zip",".hbc2":"zip",".hbe":"zip",".hpk":"zip",".hyp":"zip",".png":"image",".jpg":"image",".jpeg":"image",".bmp":"image",".gif":"image",".webp":"image",".psd":"image",".svg":"image",".tiff":"image",".avi":"video",".wmv":"video",".mpeg":"video",".mp4":"video",".mpm4v":"video",".mov":"video",".asf":"video",".flv":"video",".f4v":"video",".rmvb":"video",".rm":"video",".3gp":"video",".vob":"video",".txt":"txt",".pdf":"pdf"},D=n=>{const l=n==null?void 0:n.toLocaleLowerCase(),a=l!=null&&l.startsWith(".")?l:`.${l}`;return a&&K[a]||"unknow"},G=n=>{let l="",a=["doc","docx"],o=["xls","xlsx"],t=["ppt","pptx"],s=["pdf"];return a.includes(n)&&(l="word"),o.includes(n)&&(l="cell"),t.includes(n)&&(l="slide"),s.includes(n)&&(l="text-pdf"),l},Y={key:0,t:"1686300059786",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7671",width:"200",height:"200"},X=[e.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#50CD89","p-id":"7672"},null,-1),e.createElementVNode("path",{d:"M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",fill:"#FFF7F7","p-id":"7673"},null,-1),e.createElementVNode("path",{d:"M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",fill:"#FFFFFF","p-id":"7674"},null,-1),e.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)],J={key:1,t:"1686301531714",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9067",width:"200",height:"200"},Z=[e.createElementVNode("path",{d:"M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",fill:"#FFA621","p-id":"9068"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"9069"},null,-1)],Q={key:2,t:"1686300141125",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8137",width:"200",height:"200"},ee=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",fill:"#F1416C","p-id":"8138"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8139"},null,-1)],te={key:3,t:"1686300157181",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8292",width:"200",height:"200"},oe=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",fill:"#029EF7","p-id":"8293"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8294"},null,-1)],ne={key:4,t:"1686300180947",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8447",width:"200",height:"200"},le=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",fill:"#F1416C","p-id":"8448"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8449"},null,-1)],ae={key:5,t:"1686300195363",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8602",width:"200",height:"200"},ie=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",fill:"#029EF7","p-id":"8603"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8604"},null,-1)],se={key:6,t:"1686300209288",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8757",width:"200",height:"200"},ce=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",fill:"#FFA621","p-id":"8758"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8759"},null,-1)],re={key:7,t:"1686300225262",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8912",width:"200",height:"200"},de=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",fill:"#FFA621","p-id":"8913"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8914"},null,-1)],pe={key:8,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},fe=[e.createElementVNode("path",{d:"M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",fill:"#00BD76","p-id":"4337"},null,-1),e.createElementVNode("path",{d:"M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",fill:"#FFFFFF",opacity:".9","p-id":"4338"},null,-1),e.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)],he={key:9,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},me=[e.createElementVNode("path",{d:"M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z",fill:"#8199AF","p-id":"8002"},null,-1),e.createElementVNode("path",{d:"M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",fill:"#617F9B","p-id":"8003"},null,-1),e.createElementVNode("path",{d:"M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",fill:"#FFFFFF",opacity:".5","p-id":"8004"},null,-1),e.createElementVNode("path",{d:"M344 862.4h-100.8c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h100.8c4.8 0 9.6 4.8 9.6 11.2 0 6.4-4.8 9.6-9.6 9.6h-94.4v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h94.4c4.8 0 9.6 4.8 9.6 9.6 0 6.4-4.8 11.2-9.6 11.2z m193.6 1.6c-4.8 0-8 0-9.6-3.2l-59.2-80-60.8 80c-1.6 3.2-4.8 3.2-8 3.2-6.4 0-11.2-4.8-11.2-11.2 0-1.6 0-4.8 1.6-6.4l62.4-81.6-57.6-78.4c-1.6-1.6-3.2-3.2-3.2-6.4 0-4.8 4.8-11.2 12.8-11.2 3.2 0 6.4 1.6 8 4.8l56 73.6 54.4-73.6c1.6-3.2 4.8-4.8 9.6-4.8s11.2 4.8 11.2 11.2c0 3.2 0 4.8-1.6 6.4l-57.6 76.8 60.8 83.2c1.6 1.6 3.2 4.8 3.2 6.4 0 6.4-6.4 11.2-11.2 11.2z m171.2-1.6h-99.2c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h99.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-92.8v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h92.8c6.4 0 11.2 4.8 11.2 9.6 0 6.4-4.8 11.2-11.2 11.2z",fill:"#FFFFFF","p-id":"8005"},null,-1)],ue={key:10,t:"1714099890925",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2271",width:"200",height:"200"},_e=[e.createElementVNode("path",{d:"M227.555556 28.444444h389.404444a19.911111 19.911111 0 0 1 14.734222 6.542223l271.132445 298.211555a28.444444 28.444444 0 0 1 7.395555 19.143111V938.666667a56.888889 56.888889 0 0 1-56.888889 56.888889H227.555556a56.888889 56.888889 0 0 1-56.888889-56.888889V85.333333a56.888889 56.888889 0 0 1 56.888889-56.888889z",fill:"#0DD59D","p-id":"2272"},null,-1),e.createElementVNode("path",{d:"M625.777778 30.492444a19.911111 19.911111 0 0 1 5.916444 4.465778l271.132445 298.24a28.444444 28.444444 0 0 1 5.176889 8.135111H682.666667a56.888889 56.888889 0 0 1-56.888889-56.888889V30.492444z",fill:"#FFFFFF","fill-opacity":".65","p-id":"2273"},null,-1),e.createElementVNode("path",{d:"M396.288 645.176889c0 5.461333-0.796444 10.865778-2.389333 16.156444-1.592889 5.319111-4.266667 10.069333-7.964445 14.222223-3.697778 4.181333-8.647111 7.509333-14.791111 10.012444a60.871111 60.871111 0 0 1-22.869333 3.754667c-15.160889 0-26.851556-3.982222-35.043556-11.946667-8.192-7.964444-12.288-19.683556-12.288-35.157333v-10.012445h21.617778v6.826667c0 4.721778 0.369778 9.045333 1.137778 12.970667a28.074667 28.074667 0 0 0 3.982222 10.24 18.773333 18.773333 0 0 0 7.964444 6.712888c3.413333 1.592889 7.765333 2.389333 13.084445 2.389334 9.870222 0 16.64-2.645333 20.366222-7.964445 3.697778-5.290667 5.575111-12.430222 5.575111-21.390222v-118.784h21.617778v121.969778z m44.145778 3.413333c0.142222 4.266667 1.137778 7.850667 2.958222 10.808889a20.593778 20.593778 0 0 0 7.168 7.054222c2.958222 1.763556 6.286222 3.015111 10.012444 3.754667 3.697778 0.768 7.537778 1.137778 11.491556 1.137778 3.043556 0 6.229333-0.227556 9.557333-0.682667 3.328-0.455111 6.4-1.28 9.216-2.503111a17.294222 17.294222 0 0 0 6.940445-5.347556 14.250667 14.250667 0 0 0 2.730666-8.988444 12.885333 12.885333 0 0 0-5.688888-11.377778c-3.783111-2.56-8.533333-4.664889-14.222223-6.257778a232.561778 232.561778 0 0 0-18.545777-4.323555 96.227556 96.227556 0 0 1-18.545778-5.461333 38.4 38.4 0 0 1-14.222222-9.898667c-3.783111-4.266667-5.688889-10.154667-5.688889-17.749333a28.16 28.16 0 0 1 3.982222-15.246223c2.645333-4.266667 6.058667-7.68 10.24-10.353777 4.181333-2.645333 8.874667-4.608 14.108444-5.916445 5.233778-1.28 10.439111-1.934222 15.587556-1.934222 6.684444 0 12.8 0.568889 18.432 1.706667 5.603556 1.137778 10.581333 3.128889 14.904889 5.916444 4.323556 2.816 7.765333 6.599111 10.353778 11.377778 2.56 4.778667 4.096 10.752 4.551111 17.863111h-19.342223a19.569778 19.569778 0 0 0-2.958222-9.443556 19.370667 19.370667 0 0 0-6.371555-6.030222 28.956444 28.956444 0 0 0-8.533334-3.299555 43.918222 43.918222 0 0 0-9.443555-1.024c-2.872889 0-5.802667 0.227556-8.760889 0.682666a29.496889 29.496889 0 0 0-8.078222 2.389334 16.270222 16.270222 0 0 0-5.916445 4.551111 11.463111 11.463111 0 0 0-2.275555 7.395555c0 3.356444 1.166222 6.115556 3.527111 8.305778a28.16 28.16 0 0 0 8.988444 5.461333c3.640889 1.422222 7.736889 2.673778 12.288 3.640889 4.551111 0.995556 9.102222 1.991111 13.653334 3.072 4.835556 1.080889 9.585778 2.360889 14.222222 3.868445 4.636444 1.536 8.732444 3.527111 12.288 6.030222s6.456889 5.660444 8.647111 9.443555a27.733333 27.733333 0 0 1 3.299555 14.108445c0 7.111111-1.479111 13.056-4.437333 17.749333a34.702222 34.702222 0 0 1-11.605333 11.377778 48.497778 48.497778 0 0 1-16.156445 6.030222c-5.973333 1.137778-11.946667 1.706667-17.863111 1.706667a82.773333 82.773333 0 0 1-18.659555-2.048 45.795556 45.795556 0 0 1-15.701334-6.712889 34.218667 34.218667 0 0 1-10.922666-12.288 42.581333 42.581333 0 0 1-4.551111-18.545778h19.342222z m116.053333-21.617778c0 7.111111 0.938667 13.482667 2.844445 19.000889 1.905778 5.546667 4.522667 10.183111 7.850666 13.880889a34.076444 34.076444 0 0 0 25.941334 11.491556 34.076444 34.076444 0 0 0 25.941333-11.491556c3.328-3.697778 5.973333-8.334222 7.850667-13.880889 1.905778-5.518222 2.844444-11.861333 2.844444-19.000889 0-7.111111-0.938667-13.454222-2.844444-19.000888a41.016889 41.016889 0 0 0-7.850667-13.994667 33.422222 33.422222 0 0 0-11.719111-8.647111 34.872889 34.872889 0 0 0-14.222222-2.958222c-5.006222 0-9.756444 0.995556-14.222223 2.958222-4.465778 1.991111-8.391111 4.835556-11.719111 8.647111-3.328 3.811556-5.973333 8.476444-7.850666 13.994667-1.905778 5.546667-2.844444 11.889778-2.844445 19.000888z m-20.48 0c0-8.647111 1.223111-16.725333 3.640889-24.234666a54.897778 54.897778 0 0 1 10.922667-19.569778c4.835556-5.518222 10.837333-9.898667 17.976889-13.084444 7.111111-3.185778 15.331556-4.778667 24.576-4.778667 9.386667 0 17.635556 1.592889 24.689777 4.778667 7.054222 3.185778 12.999111 7.566222 17.863111 13.084444 4.835556 5.546667 8.504889 12.060444 10.922667 19.569778 2.417778 7.509333 3.640889 15.587556 3.640889 24.234666 0 8.647111-1.223111 16.696889-3.640889 24.120889-2.417778 7.452444-6.058667 13.937778-10.922667 19.456-4.835556 5.546667-10.808889 9.870222-17.863111 12.970667-7.054222 3.128889-15.274667 4.664889-24.689777 4.664889-9.244444 0-17.436444-1.536-24.576-4.664889a50.261333 50.261333 0 0 1-17.976889-12.970667 55.068444 55.068444 0 0 1-10.922667-19.456 77.283556 77.283556 0 0 1-3.640889-24.120889z m136.988445-58.936888h18.204444v18.659555h0.455111c8.049778-14.250667 20.764444-21.390222 38.229333-21.390222 7.736889 0 14.193778 1.080889 19.342223 3.185778 5.148444 2.133333 9.329778 5.091556 12.515555 8.874666 3.185778 3.811556 5.404444 8.305778 6.712889 13.539556 1.28 5.233778 1.934222 11.036444 1.934222 17.408v77.368889h-19.342222v-79.644445c0-7.281778-2.133333-13.027556-6.371555-17.294222-4.266667-4.266667-10.097778-6.371556-17.521778-6.371555-5.916444 0-11.036444 0.910222-15.36 2.730666a28.814222 28.814222 0 0 0-10.808889 7.736889 33.336889 33.336889 0 0 0-6.485333 11.719111c-1.422222 4.494222-2.161778 9.386667-2.161778 14.677334v66.446222h-19.342222V568.035556z",fill:"#FFFFFF","p-id":"2274"},null,-1)],ge={key:11,t:"1686300037564",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7515",width:"200",height:"200"},ye=[e.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#029EF7","p-id":"7516"},null,-1),e.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),e.createElementVNode("path",{d:"M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",fill:"#FFFFFF","p-id":"7518"},null,-1)],ke=e.defineComponent({__name:"FileIcon",props:{type:{type:String,default:"unknow"},file:{type:Object,default:()=>null},fields:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})}},setup(n){const l=n,a=e.computed(()=>l.file?I(l.file,l.fields):l.type);return(o,t)=>a.value==="image"?(e.openBlock(),e.createElementBlock("svg",Y,X)):a.value==="zip"?(e.openBlock(),e.createElementBlock("svg",J,Z)):a.value==="ppt"?(e.openBlock(),e.createElementBlock("svg",Q,ee)):a.value==="word"?(e.openBlock(),e.createElementBlock("svg",te,oe)):a.value==="pdf"?(e.openBlock(),e.createElementBlock("svg",ne,le)):a.value==="txt"?(e.openBlock(),e.createElementBlock("svg",ae,ie)):a.value==="audio"?(e.openBlock(),e.createElementBlock("svg",se,ce)):a.value==="video"?(e.openBlock(),e.createElementBlock("svg",re,de)):a.value==="excel"?(e.openBlock(),e.createElementBlock("svg",pe,fe)):a.value==="exe"?(e.openBlock(),e.createElementBlock("svg",he,me)):a.value==="json"?(e.openBlock(),e.createElementBlock("svg",ue,_e)):(e.openBlock(),e.createElementBlock("svg",ge,ye))}}),T=n=>{const l=e.inject("loadUrl"),a=e.computed(()=>n.loadUrl||(l==null?void 0:l.value)),o=e.inject("uploadUrl"),t=e.computed(()=>n.action||n.uploadUrl||(o==null?void 0:o.value)),s=e.inject("token"),c=e.computed(()=>n.token||(s==null?void 0:s.value)),f=e.inject("onlyofficeConfig"),u=e.computed(()=>n.onlyofficeConfig||(f==null?void 0:f.value)),r=e.inject("userInfo"),p=e.computed(()=>n.userInfo||(r==null?void 0:r.value));return{cLoadUrl:a,cUploadUrl:t,cToken:c,cOnlyofficeConfig:u,cUserInfo:p}},we=["onClick"],Be={class:"text"},Ee={class:"fileName"},ve={class:"size"},Ve=e.defineComponent({__name:"IkPreviewFile",props:{list:{type:Array,default:()=>[]},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},field:{required:!0,type:Object,default:()=>({})},iconSize:{type:Number,default:40},showBg:{type:Boolean,default:!0},width:{type:Number||String,default:"100%"},iconHoverShow:{type:Boolean,default:!1},isOnlyOfficePreview:{type:Boolean,default:!0},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},jwtToken:{type:String,default:""}},setup(n){const l=n,{cLoadUrl:a,cOnlyofficeConfig:o}=T(l),t=e.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...l.field})),s=e.ref({}),c=e.ref(!1),f=d=>{var _,h;s.value={...d,name:d.name,url:x(a.value,d.url||((h=(_=d==null?void 0:d.response)==null?void 0:_.data)==null?void 0:h.id)||(d==null?void 0:d.id))},c.value=!0},u=d=>{F.ikFile.downloadFile(x(a.value,d[t.value.url]||d.attachmentId||d.id),d[t.value.name]||d.attachmentName)},r=e.computed(()=>F.paramType.isNumber(l.width)?`${l.width}px`:l.width),p=e.computed(()=>l.list.map(d=>({...d,name:d[t.value.name]||d.attachmentName,size:d[t.value.size]||d.fileSize||d.attachmentSize,suffix:d[t.value.suffix]||d.attachmentSuffix})));return(d,_)=>{var h,i,k;return e.openBlock(),e.createElementBlock(e.Fragment,null,[(h=n.list)!=null&&h.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(p.value,(y,m)=>{var w;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["iking-privew-annex",{"is-bg":n.showBg}]),key:m,style:e.normalizeStyle({marginBottom:m==((w=n.list)==null?void 0:w.length)-1?"0":"10px",width:r.value})},[e.createElementVNode("div",{class:"file-card",onClick:B=>f(y)},[e.createVNode(ke,{file:y,style:e.normalizeStyle({height:`${n.iconSize}px`}),class:"ikui-w-auto",fields:t.value},null,8,["file","style","fields"]),e.createElementVNode("div",Be,[e.createElementVNode("div",Ee,e.toDisplayString(y.name),1),e.createElementVNode("div",ve,e.toDisplayString(e.unref(W)(y.size)),1)]),e.createElementVNode("div",{class:e.normalizeClass(["flex flex-center",{"hover-show":n.iconHoverShow}])},[e.createVNode(e.unref(S),{name:"iksvg_daochu",onClick:e.withModifiers(B=>u(y),["stop"]),bg:n.showBg,size:n.showBg?"default":20},null,8,["onClick","bg","size"]),e.createVNode(e.unref(S),{name:"iksvg_yulan",bg:n.showBg,size:n.showBg?"default":20},null,8,["bg","size"]),e.renderSlot(d.$slots,"operation",{data:{...y,findex:m}})],2)],8,we)],6)}),128)):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(Se),{show:c.value,"onUpdate:show":_[0]||(_[0]=y=>c.value=y),loadUrl:e.unref(a),file:s.value,onlyofficeServer:((i=e.unref(o))==null?void 0:i.serverUrl)||n.onlyofficeServer,onlyOfficeConfig:e.unref(o),onlyOfficeAccept:((k=e.unref(o))==null?void 0:k.accept)||n.onlyOfficeAccept},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig","onlyOfficeAccept"])],64)}}}),V3="",Fe=v(Ve),xe=e.defineComponent({__name:"IkPreviewFileDialog",props:e.mergeModels({file:{type:Object,default:()=>[]},loadUrl:{type:String,default:""},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},field:{type:Object,default:()=>({})}},{show:{default:!1},showModifiers:{}}),emits:["update:show"],setup(n){const l=n,a=e.useModel(n,"show"),o=e.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize",...l.field})),t=e.ref(null),s=e.ref(null),c=e.reactive({image:!1,office:!1,video:!1}),f=r=>{var p,d,_,h,i,k,y;try{const m=((p=r==null?void 0:r.response)==null?void 0:p.data)||r,w=m[o.value.url]||(m==null?void 0:m.id)||m.attachmentId,B=(d=m[o.value.suffix]||m.attachmentSuffix)==null?void 0:d.toLowerCase(),V=m[o.value.name]||(m==null?void 0:m.attachmentName)||(m==null?void 0:m.originName);if(s.value={...r,name:r[o.value.name],url:x(l.loadUrl,w)},r&&I(r,o.value)==="image"){c.image=!0;return}else if((((_=l.onlyOfficeConfig)==null?void 0:_.accept)||l.onlyOfficeAccept).includes(B)){c.office=!0,t.value={...l.onlyOfficeConfig,editorConfig:{...((h=l.onlyOfficeConfig)==null?void 0:h.editorConfig)||{},customization:{...((k=(i=l.onlyOfficeConfig)==null?void 0:i.editorConfig)==null?void 0:k.customization)||{},review:{reviewDisplay:"final"}}},document:{key:F.buildUUID(),title:V,url:x(l.loadUrl,w),fileType:B,...((y=l.onlyOfficeConfig)==null?void 0:y.document)||{}},documentType:G(B)};return}}catch(m){console.info("预览错误: ",m)}};e.watch([a,l.file],([r,p])=>{r&&e.nextTick(()=>{f(l.file)})});const u=()=>{a.value=!1,c.office=!1,c.image=!1,c.video=!1};return(r,p)=>{var _,h;const d=e.resolveComponent("el-image-viewer");return a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(_=s.value)!=null&&_.url&&c.image?(e.openBlock(),e.createBlock(d,{key:0,onClose:p[0]||(p[0]=i=>{s.value=null,c.image=!1}),ref:"previewImgRef","url-list":[(h=s.value)==null?void 0:h.url]},null,8,["url-list"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 文档类 "),e.createVNode(e.unref(Le),{modelValue:c.office,"onUpdate:modelValue":p[1]||(p[1]=i=>c.office=i),draggable:"","no-footer":"","no-header":"",fullscreen:"","show-close-bg":"","destroy-on-close":"","close-on-click-modal":"","close-on-press-escape":!1,"append-to-body":"",onClose:u,"modal-class":"ik-only-preview-dialog"},{default:e.withCtx(()=>{var i;return[e.createVNode(e.unref(Ge),{"config-options":t.value,"document-server-url":((i=n.onlyOfficeConfig)==null?void 0:i.serverUrl)||n.onlyofficeServer},null,8,["config-options","document-server-url"])]}),_:1},8,["modelValue"])],64)):e.createCommentVNode("v-if",!0)}}}),F3="",Se=v(xe),Ce={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},Ne={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},ze=["xlink:href"],$e=["src"],be={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},Ie=["xlink:href"],De=["src"],Te=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{default:"icon"}},setup(n){const l=n,a=e.inject("iconConfig"),o=e.computed(()=>({...(a==null?void 0:a.value)||{},...l})),t=e.computed(()=>{const{name:c}=o.value;return/^http?:\/\//.test(c)?"img":/i-[^:]+:[^:]+/.test(c)?"unocss":c!=null&&c.startsWith("iksig")?"iksig":c!=null&&c.includes(":")?"iconify":c!=null&&c.startsWith("iksvg")?"svg":"i"}),s=e.computed(()=>{const c=[];if(o.value.flip)switch(o.value.flip){case"horizontal":c.push("rotateY(180deg)");break;case"vertical":c.push("rotateX(180deg)");break;case"both":c.push("rotateX(180deg)"),c.push("rotateY(180deg)");break}o.value.rotate&&c.push(`rotate(${o.value.rotate%360}deg)`);const f={...o.value.color&&{color:o.value.color},...o.value.size&&{fontSize:typeof o.value.size=="number"?`${o.value.size}px`:o.value.size},...c.length&&{transform:c.join(" ")},padding:o.value.showBg||o.value.bg?o.value.padding:0,...o.value.color&&t.value!=="iksig"?{"--ik-color-icon-dark":o.value.color,"--ik-color-icon-light":o.value.colorLight||F.ikColor.setOpacity(o.value.color,o.value.opacity)}:{}};return o.value.width&&(f.width=f.height=typeof o.value.width=="number"?`${o.value.width}px`:o.value.width),f});return(c,f)=>{const u=e.resolveComponent("el-tooltip"),r=e.resolveComponent("el-button");return o.value.tableIconType==="icon"?(e.openBlock(),e.createElementBlock("span",Ce,[o.value.notip||!o.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[c.name]:t.value==="unocss","show-bg":o.value.showBg||o.value.bg,default:o.value.size==="default",small:o.value.size==="small",big:o.value.size==="big",warning:o.value.warning||o.value.type==="warning",primary:o.value.primary||o.value.type==="primary",success:c.success||o.value.type==="success",error:o.value.error||o.value.type==="error",active:o.value.active,disabled:o.value.disabled}]),style:e.normalizeStyle(s.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),t.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${o.value.name}`),style:e.normalizeStyle(s.value)},null,6)):t.value==="svg"?(e.openBlock(),e.createElementBlock("svg",Ne,[e.createElementVNode("use",{"xlink:href":`#${o.value.name}`},null,8,ze)])):t.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:o.value.name,class:"h-[1em] w-[1em]"},null,8,$e)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(o.value.name),style:e.normalizeStyle(s.value)},null,6))],6)):(e.openBlock(),e.createBlock(u,{key:1,content:o.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[c.name]:t.value==="unocss","show-bg":o.value.showBg||o.value.bg,default:o.value.size==="default",small:o.value.size==="small",big:o.value.size==="big",warning:o.value.warning||o.value.type==="warning",primary:c.primary||o.value.type==="primary",success:c.success||o.value.type==="success",error:o.value.error||o.value.type==="error",active:o.value.active}]),style:e.normalizeStyle(s.value)},[t.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${o.value.name}`),style:e.normalizeStyle(s.value)},null,6)):t.value==="svg"?(e.openBlock(),e.createElementBlock("svg",be,[e.createElementVNode("use",{"xlink:href":`#${o.value.name}`},null,8,Ie)])):t.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:o.value.name,class:"h-[1em] w-[1em]"},null,8,De)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(o.value.name),style:e.normalizeStyle(s.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(r,{key:1,type:["warning","error"].includes(o.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.value.title),1)]),_:1},8,["type"]))}}}),x3="",S=v(N(Te,[["__scopeId","data-v-1be337e4"]])),Oe={key:0,class:"exit-main-page-maximize"},Re=e.defineComponent({__name:"CloseIcon",props:{showBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},setup(n){return(l,a)=>(e.openBlock(),e.createElementBlock("div",null,[n.showBg&&n.fullscreen?(e.openBlock(),e.createElementBlock("div",Oe,[e.createVNode(e.unref(S),{name:"iksvg_guanbidanchuang",title:"关闭",size:20,error:""})])):(e.openBlock(),e.createBlock(e.unref(S),{key:1,error:"",name:"iksvg_guanbidanchuang",title:"关闭",size:20}))]))}}),C3="",Ae=N(Re,[["__scopeId","data-v-79f49df8"]]),Me={class:"base-header"},Pe=e.defineComponent({__name:"IkBaseDialog",props:e.mergeModels({title:{default:""},cancelText:{default:"取消"},confirmText:{default:"确认"},noHeader:{type:Boolean},noFooter:{type:Boolean},showCloseBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1,noHeader:!1,noFooter:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const l=n,a=e.useModel(n,"modelValue"),o=e.ref(l.fullscreen),t=()=>{o.value=!o.value},s=e.defineComponent({setup(){return()=>e.h(Ae,{showBg:l.showCloseBg,fullscreen:l.fullscreen})}});return(c,f)=>{const u=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(u,e.mergeProps({modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=r=>a.value=r)},c.$attrs,{"close-icon":e.unref(s),class:`ik-base-dialog ${c.noHeader?"no-header":""} ${c.noFooter?"no-footer":""}`,fullscreen:o.value,"modal-class":"baseDialog"}),e.createSlots({icon:e.withCtx(()=>[e.renderSlot(c.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(c.title),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",Me,[e.renderSlot(c.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(c.title),1)])]),c.$attrs.showClose?(e.openBlock(),e.createBlock(e.unref(S),{key:0,onClick:t,name:o.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:o.value?"退出全屏":"全屏"},null,8,["name","title"])):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:2},[c.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(c.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}),N3="",Le=v(Pe),z3="";function He(n,l,a,o){function t(s){return s instanceof a?s:new a(function(c){c(s)})}return new(a||(a=Promise))(function(s,c){function f(p){try{r(o.next(p))}catch(d){c(d)}}function u(p){try{r(o.throw(p))}catch(d){c(d)}}function r(p){p.done?s(p.value):t(p.value).then(f,u)}r((o=o.apply(n,l||[])).next())})}function qe(n,l){var a={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,t,s,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(r){return function(p){return u([r,p])}}function u(r){if(o)throw new TypeError("Generator is already executing.");for(;c&&(c=0,r[0]&&(a=0)),a;)try{if(o=1,t&&(s=r[0]&2?t.return:r[0]?t.throw||((s=t.return)&&s.call(t),0):t.next)&&!(s=s.call(t,r[1])).done)return s;switch(t=0,s&&(r=[r[0]&2,s.value]),r[0]){case 0:case 1:s=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,t=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(s=a.trys,!(s=s.length>0&&s[s.length-1])&&(r[0]===6||r[0]===2)){a=0;continue}if(r[0]===3&&(!s||r[1]>s[0]&&r[1]<s[3])){a.label=r[1];break}if(r[0]===6&&a.label<s[1]){a.label=s[1],s=r;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(r);break}s[2]&&a.ops.pop(),a.trys.pop();continue}r=l.call(n,a)}catch(p){r=[6,p],t=0}finally{o=s=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var je=function(n,l){return He(void 0,void 0,void 0,function(){return qe(this,function(a){return[2,new Promise(function(o,t){try{if(window.DocsAPI)return o(null);var s=document.getElementById(l);if(s)var c=setInterval(function(){var u=s.getAttribute("loading");if(!u){if(clearInterval(c),window.DocsAPI)return o(null);var r=O(l,n,o,t);s.remove(),document.body.appendChild(r)}},500);else{var f=O(l,n,o,t);document.body.appendChild(f)}}catch(u){console.error(u)}})]})})},O=function(n,l,a,o){var t=document.createElement("script");return t.id=n,t.type="text/javascript",t.src=l,t.async=!0,t.onload=function(){t.removeAttribute("loading"),a(null)},t.onerror=function(s){t.removeAttribute("loading"),o(s)},t.setAttribute("loading",""),t},z=e.defineComponent({name:"DocumentEditor",props:{id:{type:String,required:!0},documentServerUrl:{type:String,required:!0},config:{type:Object,required:!0},document_fileType:String,document_title:String,documentType:String,editorConfig_lang:String,height:String,type:String,width:String,onLoadComponentError:Function,events_onAppReady:Function,events_onDocumentStateChange:Function,events_onMetaChange:Function,events_onDocumentReady:Function,events_onInfo:Function,events_onWarning:Function,events_onError:Function,events_onRequestSharingSettings:Function,events_onRequestRename:Function,events_onMakeActionLink:Function,events_onRequestInsertImage:Function,events_onRequestSaveAs:Function,events_onRequestMailMergeRecipients:Function,events_onRequestCompareFile:Function,events_onRequestEditRights:Function,events_onRequestHistory:Function,events_onRequestHistoryClose:Function,events_onRequestHistoryData:Function,events_onRequestRestore:Function,events_onRequestSelectSpreadsheet:Function,events_onRequestSelectDocument:Function},mounted:function(){var n=this,l=this.documentServerUrl;l.endsWith("/")||(l+="/");var a="".concat(l,"web-apps/apps/api/documents/api.js");je(a,"onlyoffice-api-script").then(function(){return n.onLoad()}).catch(function(){n.onError(-2)})},unmounted:function(){var n,l=this.id||"";!((n=window==null?void 0:window.DocEditor)===null||n===void 0)&&n.instances[l]&&(window.DocEditor.instances[l].destroyEditor(),window.DocEditor.instances[l]=void 0)},watch:{config:{handler:function(n,l){this.onChangeProps()},deep:!0},document_fileType:function(n,l){this.onChangeProps()},document_title:function(n,l){this.onChangeProps()},documentType:function(n,l){this.onChangeProps()},editorConfig_lang:function(n,l){this.onChangeProps()},height:function(n,l){this.onChangeProps()},type:function(n,l){this.onChangeProps()},width:function(n,l){this.onChangeProps()}},methods:{onLoad:function(){var n,l;try{var a=this.id||"";if(window.DocsAPI||this.onError(-3),!((n=window==null?void 0:window.DocEditor)===null||n===void 0)&&n.instances[a]){console.log("Skip loading. Instance already exists",a);return}!((l=window==null?void 0:window.DocEditor)===null||l===void 0)&&l.instances||(window.DocEditor={instances:{}});var o=Object.assign({document:{fileType:this.document_fileType,title:this.document_title},documentType:this.documentType,editorConfig:{lang:this.editorConfig_lang},events:{onAppReady:this.onAppReady,onDocumentStateChange:this.events_onDocumentStateChange,onMetaChange:this.events_onMetaChange,onDocumentReady:this.events_onDocumentReady,onInfo:this.events_onInfo,onWarning:this.events_onWarning,onError:this.events_onError,onRequestSharingSettings:this.events_onRequestSharingSettings,onRequestRename:this.events_onRequestRename,onMakeActionLink:this.events_onMakeActionLink,onRequestInsertImage:this.events_onRequestInsertImage,onRequestSaveAs:this.events_onRequestSaveAs,onRequestMailMergeRecipients:this.events_onRequestMailMergeRecipients,onRequestCompareFile:this.events_onRequestCompareFile,onRequestEditRights:this.events_onRequestEditRights,onRequestHistory:this.events_onRequestHistory,onRequestHistoryClose:this.events_onRequestHistoryClose,onRequestHistoryData:this.events_onRequestHistoryData,onRequestRestore:this.events_onRequestRestore,onRequestSelectSpreadsheet:this.events_onRequestSelectSpreadsheet,onRequestSelectDocument:this.events_onRequestSelectDocument},height:this.height,type:this.type,width:this.width},this.config||{}),t=window.DocsAPI.DocEditor(a,o);window.DocEditor.instances[a]=t}catch(s){console.error(s),this.onError(-1)}},onError:function(n){var l;switch(n){case-2:l="Error load DocsAPI from "+this.documentServerUrl;break;case-3:l="DocsAPI is not defined";break;default:l="Unknown error loading component",n=-1}typeof this.onLoadComponentError>"u"?console.error(l):this.onLoadComponentError(n,l)},onAppReady:function(){var n=this.id||"";this.events_onAppReady(window.DocEditor.instances[n])},onChangeProps:function(){var n,l=this.id||"";!((n=window==null?void 0:window.DocEditor)===null||n===void 0)&&n.instances[l]&&(window.DocEditor.instances[l].destroyEditor(),window.DocEditor.instances[l]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const Ue=["id"];function We(n,l,a,o,t,s){return e.openBlock(),e.createElementBlock("div",{id:n.id},null,8,Ue)}z.render=We,z.__file="src/components/DocumentEditor.vue";const Ke=e.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"}},setup(n){const l=n,a=e.ref({width:"100%",height:"100%",...l.configOptions||{},...l.configOptions}),o=()=>{console.info("文档加载完成",l.configOptions)};return(t,s)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:l.officeHeight})},[e.createVNode(e.unref(z),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":n.documentServerUrl,config:a.value,events_onDocumentReady:o},null,8,["id","document-server-url","config"])],4))}}),$3="",Ge=v(N(Ke,[["__scopeId","data-v-98d51ef9"]])),$=n=>(e.pushScopeId("data-v-f00f4785"),n=n(),e.popScopeId(),n),Ye={class:"approveProcess",id:"approveProcess"},Xe=["id"],Je={class:"topBlock"},Ze={class:"left"},Qe={class:"nodeBg"},et=["src"],tt={class:"right"},ot={class:"topInfo"},nt={key:0},lt={key:0,class:"main-text"},at={class:"name"},it={key:0},st={key:0},ct={key:1},rt=$(()=>e.createElementVNode("span",{class:"red",style:{margin:"0px 5px"}},"退回至",-1)),dt={key:0},pt={key:0},ft={key:1},ht={key:1},mt=$(()=>e.createElementVNode("div",{class:"main-text"},"抄送人员",-1)),ut={class:"name"},_t={key:0},gt={style:{color:"#000"}},yt={class:"blue",style:{"margin-left":"5px","font-size":"12px"}},kt={key:1},wt={key:0,class:"blue",style:{"font-size":"12px"}},Bt={key:1},Et={key:0,class:"blue",style:{"font-size":"12px"}},vt={key:1,class:"blue",style:{"font-size":"12px"}},Vt={class:"time"},Ft={key:0},xt={key:1},St=["onClick"],Ct=["onClick"],Nt={key:0,class:"opinion"},zt={key:0},$t={key:1},bt=$(()=>e.createElementVNode("span",{class:"ik-text-primary"},"添加审批人",-1)),It={style:{color:"var(--el-text-color-primary)","margin-left":"8px"}},Dt={key:2,class:"annexImage"},Tt={key:3,class:"approveList"},Ot={class:"nodeBg-list"},Rt=["src"],At={key:1},Mt={key:2,class:"ikapprove ikapprove-duihao2 green read"},Pt=["title"],Lt={key:0,class:"branch"},Ht={class:"branch-card"},qt={class:"branch-name"},jt={name:"IkingApprovalProcessDetail"},Ut=e.defineComponent({...jt,props:{local:{type:Boolean,default:!1},defaultStatus:{type:Object,default:()=>({})},defaultNodeType:{type:Object,default:()=>({})},dataList:{type:Array,default:()=>[]},defaultFieldMap:{type:Object,default:()=>({})},returnNode:{type:Array,default:()=>[]},fileUrl:{type:String,default:""},kkUrl:{type:String,default:""},isOnlyOfficePreview:{type:Boolean,default:!1},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""}},emits:["preview"],setup(n,{emit:l}){const a=n,{cOnlyofficeConfig:o}=T(a),t=e.reactive(j(a));e.watch(()=>a.dataList,p=>{p&&(e.nextTick(()=>{t.listData=p}),setTimeout(()=>{a.returnNode.length&&s()},500))},{deep:!0}),e.onMounted(()=>{a.dataList.length&&(t.listData=a.dataList,setTimeout(()=>{a.returnNode.length&&s()},500))});const s=()=>{let p=null;if(a!=null&&a.returnNode)for(p of a==null?void 0:a.returnNode){if(isNaN(p[1]))return;let d=Array.from(new Array(p[1]+1).keys()).slice(p[0]);e.nextTick(()=>{c(d)})}},c=p=>{var m,w,B;let d=document.createElement("div"),_=document.getElementById("approveProcess"),h=0,i=(m=document.getElementById(`${p[0]}`))==null?void 0:m.offsetWidth,k=(w=document.getElementById(`${p[0]}`))==null?void 0:w.offsetLeft,y=(B=document.getElementById(`${p[0]}`))==null?void 0:B.offsetTop;p.forEach(V=>{let C=document.getElementById(`${V}`);h+=C.offsetHeight}),setTimeout(()=>{d.style.width=i+32+"px",d.style.height=h+"px",d.style.background="#f9f9f9",d.style.position="absolute",d.style.top=y-16+"px",d.style.left=k-16+"px",d.style.zIndex=-1,_==null||_.appendChild(d)})},f=(p,d)=>{var i;let _=(i=t.listData)==null?void 0:i.findIndex(k=>k.lineType=="dashed"),h="";switch(p){case t.statusOption.发起:h="ikapprove-duihao2 green";break;case t.statusOption.等待:h=_==d?"ikapprove-dengdai orange":"";break;case t.statusOption.同意:h="ikapprove-duihao2 green";break;case t.statusOption.拒绝:h="ikapprove-jujue red";break;case t.statusOption.转交:h="ikapprove-zhuanjiao blue";break;case t.statusOption.加签:h="ikapprove-tianjia blue";break;case t.statusOption.退回:h="ikapprove-s_fanhui2 red";break;case t.statusOption.评论:h="ikapprove-pinglun1 blue";break}return`ikapprove ${h}`},u=(p,d)=>{p.show=!p.show;let _=document.getElementById(`${p[t.defaultFile.nodeId]}`),h=Array.from(_==null?void 0:_.getElementsByClassName("approveList"));for(let i of h)i.style.display=d},r=p=>x(a.fileUrl,p);return(p,d)=>{const _=e.resolveComponent("el-image"),h=e.resolveComponent("IkingApprovalProcessDetail");return e.openBlock(),e.createElementBlock("div",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.listData,(i,k)=>{var y,m,w,B,V,C,A,M,P,L,H,q;return e.openBlock(),e.createElementBlock("div",{class:"approveBlock",id:i[t.defaultFile.nodeId],key:i[t.defaultFile.nodeId]},[e.createElementVNode("div",Je,[e.createElementVNode("div",Ze,[e.createElementVNode("span",Qe,[e.createCommentVNode(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),((y=i[t.defaultFile.approvePersonList])==null?void 0:y.length)==1&&i[t.defaultFile.approvePersonList][0].userAvatar?(e.openBlock(),e.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:r(i[t.defaultFile.approvePersonList][0].userAvatar),alt:""},null,8,et)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 否则显示对应节点 "),e.createElementVNode("i",{class:e.normalizeClass(e.unref(U)(t,i[t.defaultFile.nodeType],i[t.defaultFile.approvePersonList]))},null,2)],2112)),e.createCommentVNode(" 审批状态图标 "),e.createElementVNode("i",{class:e.normalizeClass(f(i[t.defaultFile.approveStatus],k))},null,2)])]),e.createElementVNode("div",tt,[e.createElementVNode("div",ot,[e.createElementVNode("div",null,[e.createCommentVNode(" 不是抄送节点 "),i[t.defaultFile.nodeType]!=t.nodeType.抄送节点?(e.openBlock(),e.createElementBlock("div",nt,[e.createCommentVNode(" 撤销,评论不显示节点名称 "),i[t.defaultFile.approveStatus]!=t.statusOption.撤销&&i[t.defaultFile.approveStatus]!=t.statusOption.评论?(e.openBlock(),e.createElementBlock("div",lt,e.toDisplayString(i[t.defaultFile.nodeTypeName]),1)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 名字+审批状态 "),e.createElementVNode("div",at,[e.createCommentVNode(" 已审批节点文本 "),i[t.defaultFile.lineType]=="solid"?(e.openBlock(),e.createElementBlock("div",it,[e.createElementVNode("span",{style:e.normalizeStyle({color:i[t.defaultFile.approveStatus]==t.statusOption.评论?"#000":""})},e.toDisplayString(i[t.defaultFile.originator]),5),e.createCommentVNode(" 发起,退回不显示状态 "),i[t.defaultFile.approveStatusName]&&i[t.defaultFile.approveStatus]!=t.statusOption.发起&&i[t.defaultFile.approveStatus]!=t.statusOption.退回?(e.openBlock(),e.createElementBlock("span",st,e.toDisplayString(i[t.defaultFile.approveStatus]==t.statusOption.评论?" 添加了评论":"("+i[t.defaultFile.approveStatusName]+")"),1)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 退回状态显示 "),i[t.defaultFile.approveStatus]==t.statusOption.退回?(e.openBlock(),e.createElementBlock("span",ct,[rt,e.createTextVNode(e.toDisplayString(i[t.defaultFile.backToRecordNodeName]),1)])):e.createCommentVNode("v-if",!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 待审批节点 "),e.createElementVNode("div",null,[((m=i[t.defaultFile.approvePersonList])==null?void 0:m.length)==1?(e.openBlock(),e.createElementBlock("span",dt,[e.createTextVNode(e.toDisplayString(i[t.defaultFile.originator])+" ",1),i[t.defaultFile.approveStatus]==t.statusOption.等待?(e.openBlock(),e.createElementBlock("span",pt,e.toDisplayString(`(${i[t.defaultFile.approveStatusName]})`),1)):e.createCommentVNode("v-if",!0)])):i[t.defaultFile.approvePersonList]?(e.openBlock(),e.createElementBlock("span",ft,e.toDisplayString(`${(w=i[t.defaultFile.approvePersonList])==null?void 0:w.length}人${i[t.defaultFile.approveTypeName]}`),1)):e.createCommentVNode("v-if",!0)])],2112))])])):(e.openBlock(),e.createElementBlock("div",ht,[mt,e.createElementVNode("div",ut,[e.createCommentVNode(" 抄送一人时 "),((B=i[t.defaultFile.approvePersonList])==null?void 0:B.length)==1?(e.openBlock(),e.createElementBlock("span",_t,[e.createElementVNode("span",null,[e.createTextVNode("已抄送给 "),e.createElementVNode("span",gt,e.toDisplayString(i[t.defaultFile.approvePersonList][0].userName),1)]),e.createElementVNode("span",yt,e.toDisplayString(i[t.defaultFile.approvePersonList][0].status==="END"?"已读":"未读"),1)])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 抄送多人时 "),((V=i[t.defaultFile.approvePersonList])==null?void 0:V.length)>1?(e.openBlock(),e.createElementBlock("span",kt,[e.createTextVNode(e.toDisplayString(`已抄送${(C=i[t.defaultFile.approvePersonList])==null?void 0:C.length}人`)+" ",1),i[t.defaultFile.allRead]?(e.openBlock(),e.createElementBlock("span",wt," 全部已读 ")):(e.openBlock(),e.createElementBlock("span",Bt,[i[t.defaultFile.read]?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",Et," 全部未读 ")),i[t.defaultFile.read]?(e.openBlock(),e.createElementBlock("span",vt,e.toDisplayString(i[t.defaultFile.read])+"人已读 ",1)):e.createCommentVNode("v-if",!0)]))])):e.createCommentVNode("v-if",!0)])]))]),e.createElementVNode("div",Vt,[e.createCommentVNode(" 不是抄送节点,展示时间 "),i[t.defaultFile.nodeType]!=t.nodeType.抄送节点&&i[t.defaultFile.approveStatus]!==t.statusOption.等待?(e.openBlock(),e.createElementBlock("span",Ft,e.toDisplayString(e.unref(F.ikDate).toDateTime(i[t.defaultFile.operationTime],"MM/DD HH:mm")),1)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 是抄送节点,并且抄送人员大于1时,展示图标 "),i[t.defaultFile.nodeType]==t.nodeType.抄送节点&&((A=i[t.defaultFile.approvePersonList])==null?void 0:A.length)>1?(e.openBlock(),e.createElementBlock("span",xt,[i!=null&&i.show?(e.openBlock(),e.createElementBlock("i",{key:0,class:"ikapprove ikapprove-a-putongjiantouzhankai",onClick:g=>u(i,"grid")},null,8,St)):(e.openBlock(),e.createElementBlock("i",{key:1,onClick:g=>u(i,"none"),class:"ikapprove ikapprove-a-putongjiantoushouqi"},null,8,Ct))])):e.createCommentVNode("v-if",!0)])])])]),e.createElementVNode("div",{class:"bottomBlock",style:e.normalizeStyle({borderLeft:k==t.listData.length-1?"":`2px ${i[t.defaultFile.lineType]||"dashed"} var(--el-border-color)`})},[e.createCommentVNode(" 审批意见 "),i[t.defaultFile.approveOpinion]||i[t.defaultFile.approveStatus]==t.statusOption.加签?(e.openBlock(),e.createElementBlock("div",Nt,[i[t.defaultFile.approveOpinion]?(e.openBlock(),e.createElementBlock("span",zt,e.toDisplayString(i[t.defaultFile.approveOpinion]),1)):e.createCommentVNode("v-if",!0),i[t.defaultFile.approveStatus]==t.statusOption.加签?(e.openBlock(),e.createElementBlock("span",$t,[bt,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i[t.defaultFile.countersignPer],(g,b)=>(e.openBlock(),e.createElementBlock("span",It,e.toDisplayString(g==null?void 0:g.userName)+e.toDisplayString(b<i[t.defaultFile.countersignPer].length-1?"、":""),1))),256))])):e.createCommentVNode("v-if",!0)])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 附件 "),(M=i[t.defaultFile.attachment])!=null&&M.length?(e.openBlock(),e.createBlock(e.unref(Fe),{key:1,"kk-url":n.kkUrl,"load-url":n.fileUrl,list:i[t.defaultFile.attachment],"is-only-office-preview":n.isOnlyOfficePreview,"only-office-accept":((P=e.unref(o))==null?void 0:P.accept)||n.onlyOfficeAccept,"onlyoffice-server":((L=e.unref(o))==null?void 0:L.serverUrl)||n.onlyofficeServer},null,8,["kk-url","load-url","list","is-only-office-preview","only-office-accept","onlyoffice-server"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 附件图片 "),(H=i[t.defaultFile.attachmentImg])!=null&&H.length?(e.openBlock(),e.createElementBlock("div",Dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i[t.defaultFile.attachmentImg],(g,b)=>(e.openBlock(),e.createElementBlock("div",{class:"image",key:b},[e.createVNode(_,{src:r(g),"preview-src-list":i[t.defaultFile.attachmentImg].map(Wt=>r(Wt)),fit:"cover","z-index":"9999","zoom-rate":1.2,alt:r(g)},null,8,["src","preview-src-list","alt"])]))),128))])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 抄送节点或是等待审批状态并且列表长度大于1 "),(i[t.defaultFile.nodeType]==t.nodeType.抄送节点||i[t.defaultFile.approveStatus]==t.statusOption.等待)&&((q=i[t.defaultFile.approvePersonList])==null?void 0:q.length)>1?(e.openBlock(),e.createElementBlock("div",Tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i[t.defaultFile.approvePersonList],g=>(e.openBlock(),e.createElementBlock("div",{class:"perBlock",key:g.userName},[e.createElementVNode("span",Ot,[g.userAvatar?(e.openBlock(),e.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:r(g.userAvatar),alt:""},null,8,Rt)):(e.openBlock(),e.createElementBlock("span",At,e.toDisplayString(g.userName.slice(-2)),1)),g.status==="END"?(e.openBlock(),e.createElementBlock("i",Mt)):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",{class:"main-text",title:g.userName},e.toDisplayString(g.userName),9,Pt)]))),128))])):e.createCommentVNode("v-if",!0)],4),i[t.defaultFile.nodeType]===t.nodeType.并行分支?(e.openBlock(),e.createElementBlock("div",Lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i[t.defaultFile.parallelInstances],g=>(e.openBlock(),e.createElementBlock("div",Ht,[e.createElementVNode("div",qt,e.toDisplayString(g.name),1),e.createVNode(h,e.mergeProps({ref_for:!0},a,{"data-list":(g==null?void 0:g.processInstanceNodes)||[]}),null,16,["data-list"])]))),256))])):e.createCommentVNode("v-if",!0)],8,Xe)}),128))])}}}),I3="",R=v(N(Ut,[["__scopeId","data-v-f00f4785"]]));E.IKApprovalProcessDetail=R,E.default=R,Object.defineProperties(E,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(E,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils-pro")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro"],e):(E=typeof globalThis<"u"?globalThis:E||self,e(E.index={},E.vue,E["iking-utils-pro"]))})(this,function(E,e,F){"use strict";const v=(n,l)=>{if(n.install=a=>{for(const o of[n,...Object.values(l??{})])a.component(o.name,o)},l)for(const[a,o]of Object.entries(l))n[a]=o;return n},N=(n,l)=>{const a=n.__vccOpts||n;for(const[o,t]of l)a[o]=t;return a},j=n=>({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",并行分支:"PARALLEL",子流程:"SUB_PROCESS",...n.defaultNodeType},defaultFile:{id:"id",parallelInstances:"parallelInstances",nodeId:"sortOrder",nodeType:"type",nodeTypeName:"name",approveType:"approveType",multiExecutorType:"multiExecutorType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approvalCategory:"approvalCategory",isShowAdd:"initiatorSpecify",isShowAddCopy:"initiatorSpecifyCarbonCopy",executorEmpty:"executorEmpty",executorEmptyStrategy:"executorEmptyStrategy",reserveExecutorUsers:"reserveExecutorUsers",approvePersonList:"executorUsers",initiatorSpecifiedScope:"initiatorSpecifiedScope",initiatorSpecifiedScopeType:"initiatorSpecifiedScopeType",singleApproval:"singleApproval",originator:"username",...n.defaultFieldMap},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...n.statusWithoutApprover},multiple:!1,chooseType:[],statusOption:{发起:"1",等待:"2",同意:"3",拒绝:"4",转交:"5",加签:"6",退回:"7",撤销:"8",评论:"9",...n.defaultStatus},listData:[]}),U=(n,l,a)=>{let o="";switch(l){case n.nodeType.审批节点:a&&a.length==1?o="ikapprove-ziyuan":o="ikapprove-shenpi";break;case n.nodeType.办理节点:o="ikapprove-bianji";break;case n.nodeType.抄送节点:o="ikapprove-chaosong";break;case n.nodeType.并行分支:o="ikapprove-fenzhi";break;case n.nodeType.子流程:o="ikapprove-ziliucheng1";break;default:o="ikapprove-ziyuan"}return`ikapprove ${o}`},W=(n,l=2)=>{if(n===void 0)return"";if(n===0)return"0 B";const a=["B","KB","MB","GB","TB"],o=Math.floor(Math.log(n)/Math.log(1024));let t=n/Math.pow(1024,o);return(t%1===0?t.toFixed(l||0):t.toFixed(l))+" "+a[o]},x=(n,l)=>l?l.startsWith("http")?l:`${n||location.origin}${l}`:"",I=(n,l)=>{var s,c,f,u;const a=(s=n==null?void 0:n.response)!=null&&s.data?D((f=(c=n==null?void 0:n.response)==null?void 0:c.data)==null?void 0:f.suffix):((u=n.raw)==null?void 0:u.type)||D(n[l.suffix]),o=a==null?void 0:a.toLowerCase(),t={sheet:"excel",excel:"excel",zip:"zip","application/x-compressed":"zip",image:"image",video:"video",audio:"audio",pdf:"pdf",text:"txt",txt:"txt",word:"word",ppt:"ppt",exe:"exe",json:"json"};for(let r in t)if(typeof o=="string"&&(o.includes(r)||o===r))return t[r];return"unknown"},K={".doc":"word",".docx":"word",".docxf":"word",".docm":"word",".dot":"word",".dotm":"word",".dotx":"word",".epub":"word",".fodt":"word",".htm":"word",".html":"word",".mht":"word",".odt":"word",".ott":"word",".rtf":"word",".djvu":"word",".oxps":"word",".oform":"word",".fb2":"word",".xml":"word",".xps":"word",".csv":"excel",".xls":"excel",".xlsx":"excel",".fods":"excel",".ods":"excel",".ots":"excel",".xlsb":"excel",".xlsm":"excel",".xlt":"excel",".xltm":"excel",".xltx":"excel",".fodp":"ppt",".odp":"ppt",".otp":"ppt",".pot":"ppt",".potm":"ppt",".potx":"ppt",".pps":"ppt",".ppsm":"ppt",".ppsx":"ppt",".ppt":"ppt",".pptm":"ppt",".pptx":"ppt",".zip":"zip",".rar":"zip",".7z":"zip",".apz":"zip",".ar":"zip",".bz":"zip",".car":"zip",".dar":"zip",".cpgz":"zip",".f":"zip",".ha":"zip",".hbc":"zip",".hbc2":"zip",".hbe":"zip",".hpk":"zip",".hyp":"zip",".png":"image",".jpg":"image",".jpeg":"image",".bmp":"image",".gif":"image",".webp":"image",".psd":"image",".svg":"image",".tiff":"image",".avi":"video",".wmv":"video",".mpeg":"video",".mp4":"video",".mpm4v":"video",".mov":"video",".asf":"video",".flv":"video",".f4v":"video",".rmvb":"video",".rm":"video",".3gp":"video",".vob":"video",".txt":"txt",".pdf":"pdf"},D=n=>{const l=n==null?void 0:n.toLocaleLowerCase(),a=l!=null&&l.startsWith(".")?l:`.${l}`;return a&&K[a]||"unknow"},G=n=>{let l="",a=["doc","docx"],o=["xls","xlsx"],t=["ppt","pptx"],s=["pdf"];return a.includes(n)&&(l="word"),o.includes(n)&&(l="cell"),t.includes(n)&&(l="slide"),s.includes(n)&&(l="text-pdf"),l},Y={key:0,t:"1686300059786",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7671",width:"200",height:"200"},X=[e.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#50CD89","p-id":"7672"},null,-1),e.createElementVNode("path",{d:"M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",fill:"#FFF7F7","p-id":"7673"},null,-1),e.createElementVNode("path",{d:"M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",fill:"#FFFFFF","p-id":"7674"},null,-1),e.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)],J={key:1,t:"1686301531714",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9067",width:"200",height:"200"},Z=[e.createElementVNode("path",{d:"M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",fill:"#FFA621","p-id":"9068"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"9069"},null,-1)],Q={key:2,t:"1686300141125",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8137",width:"200",height:"200"},ee=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",fill:"#F1416C","p-id":"8138"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8139"},null,-1)],te={key:3,t:"1686300157181",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8292",width:"200",height:"200"},oe=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",fill:"#029EF7","p-id":"8293"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8294"},null,-1)],ne={key:4,t:"1686300180947",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8447",width:"200",height:"200"},le=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",fill:"#F1416C","p-id":"8448"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8449"},null,-1)],ae={key:5,t:"1686300195363",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8602",width:"200",height:"200"},ie=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",fill:"#029EF7","p-id":"8603"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8604"},null,-1)],se={key:6,t:"1686300209288",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8757",width:"200",height:"200"},ce=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",fill:"#FFA621","p-id":"8758"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8759"},null,-1)],re={key:7,t:"1686300225262",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8912",width:"200",height:"200"},de=[e.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",fill:"#FFA621","p-id":"8913"},null,-1),e.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8914"},null,-1)],pe={key:8,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},fe=[e.createElementVNode("path",{d:"M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",fill:"#00BD76","p-id":"4337"},null,-1),e.createElementVNode("path",{d:"M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",fill:"#FFFFFF",opacity:".9","p-id":"4338"},null,-1),e.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)],he={key:9,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},me=[e.createElementVNode("path",{d:"M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z",fill:"#8199AF","p-id":"8002"},null,-1),e.createElementVNode("path",{d:"M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",fill:"#617F9B","p-id":"8003"},null,-1),e.createElementVNode("path",{d:"M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",fill:"#FFFFFF",opacity:".5","p-id":"8004"},null,-1),e.createElementVNode("path",{d:"M344 862.4h-100.8c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h100.8c4.8 0 9.6 4.8 9.6 11.2 0 6.4-4.8 9.6-9.6 9.6h-94.4v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h94.4c4.8 0 9.6 4.8 9.6 9.6 0 6.4-4.8 11.2-9.6 11.2z m193.6 1.6c-4.8 0-8 0-9.6-3.2l-59.2-80-60.8 80c-1.6 3.2-4.8 3.2-8 3.2-6.4 0-11.2-4.8-11.2-11.2 0-1.6 0-4.8 1.6-6.4l62.4-81.6-57.6-78.4c-1.6-1.6-3.2-3.2-3.2-6.4 0-4.8 4.8-11.2 12.8-11.2 3.2 0 6.4 1.6 8 4.8l56 73.6 54.4-73.6c1.6-3.2 4.8-4.8 9.6-4.8s11.2 4.8 11.2 11.2c0 3.2 0 4.8-1.6 6.4l-57.6 76.8 60.8 83.2c1.6 1.6 3.2 4.8 3.2 6.4 0 6.4-6.4 11.2-11.2 11.2z m171.2-1.6h-99.2c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h99.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-92.8v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h92.8c6.4 0 11.2 4.8 11.2 9.6 0 6.4-4.8 11.2-11.2 11.2z",fill:"#FFFFFF","p-id":"8005"},null,-1)],ue={key:10,t:"1714099890925",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2271",width:"200",height:"200"},_e=[e.createElementVNode("path",{d:"M227.555556 28.444444h389.404444a19.911111 19.911111 0 0 1 14.734222 6.542223l271.132445 298.211555a28.444444 28.444444 0 0 1 7.395555 19.143111V938.666667a56.888889 56.888889 0 0 1-56.888889 56.888889H227.555556a56.888889 56.888889 0 0 1-56.888889-56.888889V85.333333a56.888889 56.888889 0 0 1 56.888889-56.888889z",fill:"#0DD59D","p-id":"2272"},null,-1),e.createElementVNode("path",{d:"M625.777778 30.492444a19.911111 19.911111 0 0 1 5.916444 4.465778l271.132445 298.24a28.444444 28.444444 0 0 1 5.176889 8.135111H682.666667a56.888889 56.888889 0 0 1-56.888889-56.888889V30.492444z",fill:"#FFFFFF","fill-opacity":".65","p-id":"2273"},null,-1),e.createElementVNode("path",{d:"M396.288 645.176889c0 5.461333-0.796444 10.865778-2.389333 16.156444-1.592889 5.319111-4.266667 10.069333-7.964445 14.222223-3.697778 4.181333-8.647111 7.509333-14.791111 10.012444a60.871111 60.871111 0 0 1-22.869333 3.754667c-15.160889 0-26.851556-3.982222-35.043556-11.946667-8.192-7.964444-12.288-19.683556-12.288-35.157333v-10.012445h21.617778v6.826667c0 4.721778 0.369778 9.045333 1.137778 12.970667a28.074667 28.074667 0 0 0 3.982222 10.24 18.773333 18.773333 0 0 0 7.964444 6.712888c3.413333 1.592889 7.765333 2.389333 13.084445 2.389334 9.870222 0 16.64-2.645333 20.366222-7.964445 3.697778-5.290667 5.575111-12.430222 5.575111-21.390222v-118.784h21.617778v121.969778z m44.145778 3.413333c0.142222 4.266667 1.137778 7.850667 2.958222 10.808889a20.593778 20.593778 0 0 0 7.168 7.054222c2.958222 1.763556 6.286222 3.015111 10.012444 3.754667 3.697778 0.768 7.537778 1.137778 11.491556 1.137778 3.043556 0 6.229333-0.227556 9.557333-0.682667 3.328-0.455111 6.4-1.28 9.216-2.503111a17.294222 17.294222 0 0 0 6.940445-5.347556 14.250667 14.250667 0 0 0 2.730666-8.988444 12.885333 12.885333 0 0 0-5.688888-11.377778c-3.783111-2.56-8.533333-4.664889-14.222223-6.257778a232.561778 232.561778 0 0 0-18.545777-4.323555 96.227556 96.227556 0 0 1-18.545778-5.461333 38.4 38.4 0 0 1-14.222222-9.898667c-3.783111-4.266667-5.688889-10.154667-5.688889-17.749333a28.16 28.16 0 0 1 3.982222-15.246223c2.645333-4.266667 6.058667-7.68 10.24-10.353777 4.181333-2.645333 8.874667-4.608 14.108444-5.916445 5.233778-1.28 10.439111-1.934222 15.587556-1.934222 6.684444 0 12.8 0.568889 18.432 1.706667 5.603556 1.137778 10.581333 3.128889 14.904889 5.916444 4.323556 2.816 7.765333 6.599111 10.353778 11.377778 2.56 4.778667 4.096 10.752 4.551111 17.863111h-19.342223a19.569778 19.569778 0 0 0-2.958222-9.443556 19.370667 19.370667 0 0 0-6.371555-6.030222 28.956444 28.956444 0 0 0-8.533334-3.299555 43.918222 43.918222 0 0 0-9.443555-1.024c-2.872889 0-5.802667 0.227556-8.760889 0.682666a29.496889 29.496889 0 0 0-8.078222 2.389334 16.270222 16.270222 0 0 0-5.916445 4.551111 11.463111 11.463111 0 0 0-2.275555 7.395555c0 3.356444 1.166222 6.115556 3.527111 8.305778a28.16 28.16 0 0 0 8.988444 5.461333c3.640889 1.422222 7.736889 2.673778 12.288 3.640889 4.551111 0.995556 9.102222 1.991111 13.653334 3.072 4.835556 1.080889 9.585778 2.360889 14.222222 3.868445 4.636444 1.536 8.732444 3.527111 12.288 6.030222s6.456889 5.660444 8.647111 9.443555a27.733333 27.733333 0 0 1 3.299555 14.108445c0 7.111111-1.479111 13.056-4.437333 17.749333a34.702222 34.702222 0 0 1-11.605333 11.377778 48.497778 48.497778 0 0 1-16.156445 6.030222c-5.973333 1.137778-11.946667 1.706667-17.863111 1.706667a82.773333 82.773333 0 0 1-18.659555-2.048 45.795556 45.795556 0 0 1-15.701334-6.712889 34.218667 34.218667 0 0 1-10.922666-12.288 42.581333 42.581333 0 0 1-4.551111-18.545778h19.342222z m116.053333-21.617778c0 7.111111 0.938667 13.482667 2.844445 19.000889 1.905778 5.546667 4.522667 10.183111 7.850666 13.880889a34.076444 34.076444 0 0 0 25.941334 11.491556 34.076444 34.076444 0 0 0 25.941333-11.491556c3.328-3.697778 5.973333-8.334222 7.850667-13.880889 1.905778-5.518222 2.844444-11.861333 2.844444-19.000889 0-7.111111-0.938667-13.454222-2.844444-19.000888a41.016889 41.016889 0 0 0-7.850667-13.994667 33.422222 33.422222 0 0 0-11.719111-8.647111 34.872889 34.872889 0 0 0-14.222222-2.958222c-5.006222 0-9.756444 0.995556-14.222223 2.958222-4.465778 1.991111-8.391111 4.835556-11.719111 8.647111-3.328 3.811556-5.973333 8.476444-7.850666 13.994667-1.905778 5.546667-2.844444 11.889778-2.844445 19.000888z m-20.48 0c0-8.647111 1.223111-16.725333 3.640889-24.234666a54.897778 54.897778 0 0 1 10.922667-19.569778c4.835556-5.518222 10.837333-9.898667 17.976889-13.084444 7.111111-3.185778 15.331556-4.778667 24.576-4.778667 9.386667 0 17.635556 1.592889 24.689777 4.778667 7.054222 3.185778 12.999111 7.566222 17.863111 13.084444 4.835556 5.546667 8.504889 12.060444 10.922667 19.569778 2.417778 7.509333 3.640889 15.587556 3.640889 24.234666 0 8.647111-1.223111 16.696889-3.640889 24.120889-2.417778 7.452444-6.058667 13.937778-10.922667 19.456-4.835556 5.546667-10.808889 9.870222-17.863111 12.970667-7.054222 3.128889-15.274667 4.664889-24.689777 4.664889-9.244444 0-17.436444-1.536-24.576-4.664889a50.261333 50.261333 0 0 1-17.976889-12.970667 55.068444 55.068444 0 0 1-10.922667-19.456 77.283556 77.283556 0 0 1-3.640889-24.120889z m136.988445-58.936888h18.204444v18.659555h0.455111c8.049778-14.250667 20.764444-21.390222 38.229333-21.390222 7.736889 0 14.193778 1.080889 19.342223 3.185778 5.148444 2.133333 9.329778 5.091556 12.515555 8.874666 3.185778 3.811556 5.404444 8.305778 6.712889 13.539556 1.28 5.233778 1.934222 11.036444 1.934222 17.408v77.368889h-19.342222v-79.644445c0-7.281778-2.133333-13.027556-6.371555-17.294222-4.266667-4.266667-10.097778-6.371556-17.521778-6.371555-5.916444 0-11.036444 0.910222-15.36 2.730666a28.814222 28.814222 0 0 0-10.808889 7.736889 33.336889 33.336889 0 0 0-6.485333 11.719111c-1.422222 4.494222-2.161778 9.386667-2.161778 14.677334v66.446222h-19.342222V568.035556z",fill:"#FFFFFF","p-id":"2274"},null,-1)],ge={key:11,t:"1686300037564",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7515",width:"200",height:"200"},ye=[e.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#029EF7","p-id":"7516"},null,-1),e.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),e.createElementVNode("path",{d:"M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",fill:"#FFFFFF","p-id":"7518"},null,-1)],ke=e.defineComponent({__name:"FileIcon",props:{type:{type:String,default:"unknow"},file:{type:Object,default:()=>null},fields:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})}},setup(n){const l=n,a=e.computed(()=>l.file?I(l.file,l.fields):l.type);return(o,t)=>a.value==="image"?(e.openBlock(),e.createElementBlock("svg",Y,X)):a.value==="zip"?(e.openBlock(),e.createElementBlock("svg",J,Z)):a.value==="ppt"?(e.openBlock(),e.createElementBlock("svg",Q,ee)):a.value==="word"?(e.openBlock(),e.createElementBlock("svg",te,oe)):a.value==="pdf"?(e.openBlock(),e.createElementBlock("svg",ne,le)):a.value==="txt"?(e.openBlock(),e.createElementBlock("svg",ae,ie)):a.value==="audio"?(e.openBlock(),e.createElementBlock("svg",se,ce)):a.value==="video"?(e.openBlock(),e.createElementBlock("svg",re,de)):a.value==="excel"?(e.openBlock(),e.createElementBlock("svg",pe,fe)):a.value==="exe"?(e.openBlock(),e.createElementBlock("svg",he,me)):a.value==="json"?(e.openBlock(),e.createElementBlock("svg",ue,_e)):(e.openBlock(),e.createElementBlock("svg",ge,ye))}}),T=n=>{const l=e.inject("loadUrl"),a=e.computed(()=>n.loadUrl||(l==null?void 0:l.value)),o=e.inject("uploadUrl"),t=e.computed(()=>n.action||n.uploadUrl||(o==null?void 0:o.value)),s=e.inject("token"),c=e.computed(()=>n.token||(s==null?void 0:s.value)),f=e.inject("onlyofficeConfig"),u=e.computed(()=>n.onlyofficeConfig||(f==null?void 0:f.value)),r=e.inject("userInfo"),p=e.computed(()=>n.userInfo||(r==null?void 0:r.value));return{cLoadUrl:a,cUploadUrl:t,cToken:c,cOnlyofficeConfig:u,cUserInfo:p}},we=["onClick"],Be={class:"text"},Ee={class:"fileName"},ve={class:"size"},Ve=e.defineComponent({__name:"IkPreviewFile",props:{list:{type:Array,default:()=>[]},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},field:{required:!0,type:Object,default:()=>({})},iconSize:{type:Number,default:40},showBg:{type:Boolean,default:!0},width:{type:Number||String,default:"100%"},iconHoverShow:{type:Boolean,default:!1},isOnlyOfficePreview:{type:Boolean,default:!0},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},jwtToken:{type:String,default:""}},setup(n){const l=n,{cLoadUrl:a,cOnlyofficeConfig:o}=T(l),t=e.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...l.field})),s=e.ref({}),c=e.ref(!1),f=d=>{var _,h;s.value={...d,name:d.name,url:x(a.value,d.url||((h=(_=d==null?void 0:d.response)==null?void 0:_.data)==null?void 0:h.id)||(d==null?void 0:d.id))},c.value=!0},u=d=>{F.ikFile.downloadFile(x(a.value,d[t.value.url]||d.attachmentId||d.id),d[t.value.name]||d.attachmentName)},r=e.computed(()=>F.paramType.isNumber(l.width)?`${l.width}px`:l.width),p=e.computed(()=>l.list.map(d=>({...d,name:d[t.value.name]||d.attachmentName,size:d[t.value.size]||d.fileSize||d.attachmentSize,suffix:d[t.value.suffix]||d.attachmentSuffix})));return(d,_)=>{var h,i,k;return e.openBlock(),e.createElementBlock(e.Fragment,null,[(h=n.list)!=null&&h.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(p.value,(y,m)=>{var w;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["iking-privew-annex",{"is-bg":n.showBg}]),key:m,style:e.normalizeStyle({marginBottom:m==((w=n.list)==null?void 0:w.length)-1?"0":"10px",width:r.value})},[e.createElementVNode("div",{class:"file-card",onClick:B=>f(y)},[e.createVNode(ke,{file:y,style:e.normalizeStyle({height:`${n.iconSize}px`}),class:"ikui-w-auto",fields:t.value},null,8,["file","style","fields"]),e.createElementVNode("div",Be,[e.createElementVNode("div",Ee,e.toDisplayString(y.name),1),e.createElementVNode("div",ve,e.toDisplayString(e.unref(W)(y.size)),1)]),e.createElementVNode("div",{class:e.normalizeClass(["flex flex-center",{"hover-show":n.iconHoverShow}])},[e.createVNode(e.unref(S),{name:"iksvg_daochu",onClick:e.withModifiers(B=>u(y),["stop"]),bg:n.showBg,size:n.showBg?"default":20},null,8,["onClick","bg","size"]),e.createVNode(e.unref(S),{name:"iksvg_yulan",bg:n.showBg,size:n.showBg?"default":20},null,8,["bg","size"]),e.renderSlot(d.$slots,"operation",{data:{...y,findex:m}})],2)],8,we)],6)}),128)):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(Se),{show:c.value,"onUpdate:show":_[0]||(_[0]=y=>c.value=y),loadUrl:e.unref(a),file:s.value,onlyofficeServer:((i=e.unref(o))==null?void 0:i.serverUrl)||n.onlyofficeServer,onlyOfficeConfig:e.unref(o),onlyOfficeAccept:((k=e.unref(o))==null?void 0:k.accept)||n.onlyOfficeAccept},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig","onlyOfficeAccept"])],64)}}}),V3="",Fe=v(Ve),xe=e.defineComponent({__name:"IkPreviewFileDialog",props:e.mergeModels({file:{type:Object,default:()=>[]},loadUrl:{type:String,default:""},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},field:{type:Object,default:()=>({})}},{show:{default:!1},showModifiers:{}}),emits:["update:show"],setup(n){const l=n,a=e.useModel(n,"show"),o=e.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize",...l.field})),t=e.ref(null),s=e.ref(null),c=e.reactive({image:!1,office:!1,video:!1}),f=r=>{var p,d,_,h,i,k,y;try{const m=((p=r==null?void 0:r.response)==null?void 0:p.data)||r,w=m[o.value.url]||(m==null?void 0:m.id)||m.attachmentId,B=(d=m[o.value.suffix]||m.attachmentSuffix)==null?void 0:d.toLowerCase(),V=m[o.value.name]||(m==null?void 0:m.attachmentName)||(m==null?void 0:m.originName);if(s.value={...r,name:r[o.value.name],url:x(l.loadUrl,w)},r&&I(r,o.value)==="image"){c.image=!0;return}else if((((_=l.onlyOfficeConfig)==null?void 0:_.accept)||l.onlyOfficeAccept).includes(B)){c.office=!0,t.value={...l.onlyOfficeConfig,editorConfig:{...((h=l.onlyOfficeConfig)==null?void 0:h.editorConfig)||{},customization:{...((k=(i=l.onlyOfficeConfig)==null?void 0:i.editorConfig)==null?void 0:k.customization)||{},review:{reviewDisplay:"final"}}},document:{key:F.buildUUID(),title:V,url:x(l.loadUrl,w),fileType:B,...((y=l.onlyOfficeConfig)==null?void 0:y.document)||{}},documentType:G(B)};return}}catch(m){console.info("预览错误: ",m)}};e.watch([a,l.file],([r,p])=>{r&&e.nextTick(()=>{f(l.file)})});const u=()=>{a.value=!1,c.office=!1,c.image=!1,c.video=!1};return(r,p)=>{var _,h;const d=e.resolveComponent("el-image-viewer");return a.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(_=s.value)!=null&&_.url&&c.image?(e.openBlock(),e.createBlock(d,{key:0,onClose:p[0]||(p[0]=i=>{s.value=null,c.image=!1}),ref:"previewImgRef","url-list":[(h=s.value)==null?void 0:h.url]},null,8,["url-list"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 文档类 "),e.createVNode(e.unref(Le),{modelValue:c.office,"onUpdate:modelValue":p[1]||(p[1]=i=>c.office=i),draggable:"","no-footer":"","no-header":"",fullscreen:"","show-close-bg":"","destroy-on-close":"","close-on-click-modal":"","close-on-press-escape":!1,"append-to-body":"",onClose:u,"modal-class":"ik-only-preview-dialog"},{default:e.withCtx(()=>{var i;return[e.createVNode(e.unref(Ge),{"config-options":t.value,"document-server-url":((i=n.onlyOfficeConfig)==null?void 0:i.serverUrl)||n.onlyofficeServer},null,8,["config-options","document-server-url"])]}),_:1},8,["modelValue"])],64)):e.createCommentVNode("v-if",!0)}}}),F3="",Se=v(xe),Ce={key:0,class:"ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"},Ne={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},ze=["xlink:href"],$e=["src"],be={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},Ie=["xlink:href"],De=["src"],Te=e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},colorLight:{},opacity:{default:.5},size:{default:""},width:{},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"6px"},primary:{type:Boolean},warning:{type:Boolean},success:{type:Boolean},error:{type:Boolean},notip:{type:Boolean,default:!1},title:{},type:{},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tableIconType:{}},setup(n){const l=n,a=e.inject("iconConfig"),o=e.computed(()=>({...(a==null?void 0:a.value)||{},...l})),t=e.computed(()=>{const{name:c}=o.value;return/^http?:\/\//.test(c)?"img":/i-[^:]+:[^:]+/.test(c)?"unocss":c!=null&&c.startsWith("iksig")?"iksig":c!=null&&c.includes(":")?"iconify":c!=null&&c.startsWith("iksvg")?"svg":"i"}),s=e.computed(()=>{const c=[];if(o.value.flip)switch(o.value.flip){case"horizontal":c.push("rotateY(180deg)");break;case"vertical":c.push("rotateX(180deg)");break;case"both":c.push("rotateX(180deg)"),c.push("rotateY(180deg)");break}o.value.rotate&&c.push(`rotate(${o.value.rotate%360}deg)`);const f={...o.value.color&&{color:o.value.color},...o.value.size&&{fontSize:typeof o.value.size=="number"?`${o.value.size}px`:o.value.size},...c.length&&{transform:c.join(" ")},padding:o.value.showBg||o.value.bg?o.value.padding:0,...o.value.color&&t.value!=="iksig"?{"--ik-color-icon-dark":o.value.color,"--ik-color-icon-light":o.value.colorLight||F.ikColor.setOpacity(o.value.color,o.value.opacity)}:{}};return o.value.width&&(f.width=f.height=typeof o.value.width=="number"?`${o.value.width}px`:o.value.width),f});return(c,f)=>{const u=e.resolveComponent("el-tooltip"),r=e.resolveComponent("el-button");return o.value.tableIconType==="icon"||!o.value.tableIconType?(e.openBlock(),e.createElementBlock("span",Ce,[o.value.notip||!o.value.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[c.name]:t.value==="unocss","show-bg":o.value.showBg||o.value.bg,default:o.value.size==="default",small:o.value.size==="small",big:o.value.size==="big",warning:o.value.warning||o.value.type==="warning",primary:o.value.primary||o.value.type==="primary",success:c.success||o.value.type==="success",error:o.value.error||o.value.type==="error",active:o.value.active,disabled:o.value.disabled}]),style:e.normalizeStyle(s.value)},[e.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),t.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${o.value.name}`),style:e.normalizeStyle(s.value)},null,6)):t.value==="svg"?(e.openBlock(),e.createElementBlock("svg",Ne,[e.createElementVNode("use",{"xlink:href":`#${o.value.name}`},null,8,ze)])):t.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:o.value.name,class:"h-[1em] w-[1em]"},null,8,$e)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(o.value.name),style:e.normalizeStyle(s.value)},null,6))],6)):(e.openBlock(),e.createBlock(u,{key:1,content:o.value.title,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[c.name]:t.value==="unocss","show-bg":o.value.showBg||o.value.bg,default:o.value.size==="default",small:o.value.size==="small",big:o.value.size==="big",warning:o.value.warning||o.value.type==="warning",primary:c.primary||o.value.type==="primary",success:c.success||o.value.type==="success",error:o.value.error||o.value.type==="error",active:o.value.active}]),style:e.normalizeStyle(s.value)},[t.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${o.value.name}`),style:e.normalizeStyle(s.value)},null,6)):t.value==="svg"?(e.openBlock(),e.createElementBlock("svg",be,[e.createElementVNode("use",{"xlink:href":`#${o.value.name}`},null,8,Ie)])):t.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:o.value.name,class:"h-[1em] w-[1em]"},null,8,De)):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(o.value.name),style:e.normalizeStyle(s.value)},null,6))],6)]),_:1},8,["content"]))])):(e.openBlock(),e.createBlock(r,{key:1,type:["warning","error"].includes(o.value.type)?"danger":""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.value.title),1)]),_:1},8,["type"]))}}}),x3="",S=v(N(Te,[["__scopeId","data-v-7729b79a"]])),Oe={key:0,class:"exit-main-page-maximize"},Re=e.defineComponent({__name:"CloseIcon",props:{showBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},setup(n){return(l,a)=>(e.openBlock(),e.createElementBlock("div",null,[n.showBg&&n.fullscreen?(e.openBlock(),e.createElementBlock("div",Oe,[e.createVNode(e.unref(S),{name:"iksvg_guanbidanchuang",title:"关闭",size:20,error:""})])):(e.openBlock(),e.createBlock(e.unref(S),{key:1,error:"",name:"iksvg_guanbidanchuang",title:"关闭",size:20}))]))}}),C3="",Ae=N(Re,[["__scopeId","data-v-79f49df8"]]),Me={class:"base-header"},Pe=e.defineComponent({__name:"IkBaseDialog",props:e.mergeModels({title:{default:""},cancelText:{default:"取消"},confirmText:{default:"确认"},noHeader:{type:Boolean},noFooter:{type:Boolean},showCloseBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1,noHeader:!1,noFooter:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const l=n,a=e.useModel(n,"modelValue"),o=e.ref(l.fullscreen),t=()=>{o.value=!o.value},s=e.defineComponent({setup(){return()=>e.h(Ae,{showBg:l.showCloseBg,fullscreen:l.fullscreen})}});return(c,f)=>{const u=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(u,e.mergeProps({modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=r=>a.value=r)},c.$attrs,{"close-icon":e.unref(s),class:`ik-base-dialog ${c.noHeader?"no-header":""} ${c.noFooter?"no-footer":""}`,fullscreen:o.value,"modal-class":"baseDialog"}),e.createSlots({icon:e.withCtx(()=>[e.renderSlot(c.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(c.title),1)])]),header:e.withCtx(()=>[e.createElementVNode("div",Me,[e.renderSlot(c.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(c.title),1)])]),c.$attrs.showClose?(e.openBlock(),e.createBlock(e.unref(S),{key:0,onClick:t,name:o.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:o.value?"退出全屏":"全屏"},null,8,["name","title"])):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:2},[c.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(c.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}),N3="",Le=v(Pe),z3="";function He(n,l,a,o){function t(s){return s instanceof a?s:new a(function(c){c(s)})}return new(a||(a=Promise))(function(s,c){function f(p){try{r(o.next(p))}catch(d){c(d)}}function u(p){try{r(o.throw(p))}catch(d){c(d)}}function r(p){p.done?s(p.value):t(p.value).then(f,u)}r((o=o.apply(n,l||[])).next())})}function qe(n,l){var a={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,t,s,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(r){return function(p){return u([r,p])}}function u(r){if(o)throw new TypeError("Generator is already executing.");for(;c&&(c=0,r[0]&&(a=0)),a;)try{if(o=1,t&&(s=r[0]&2?t.return:r[0]?t.throw||((s=t.return)&&s.call(t),0):t.next)&&!(s=s.call(t,r[1])).done)return s;switch(t=0,s&&(r=[r[0]&2,s.value]),r[0]){case 0:case 1:s=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,t=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(s=a.trys,!(s=s.length>0&&s[s.length-1])&&(r[0]===6||r[0]===2)){a=0;continue}if(r[0]===3&&(!s||r[1]>s[0]&&r[1]<s[3])){a.label=r[1];break}if(r[0]===6&&a.label<s[1]){a.label=s[1],s=r;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(r);break}s[2]&&a.ops.pop(),a.trys.pop();continue}r=l.call(n,a)}catch(p){r=[6,p],t=0}finally{o=s=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var je=function(n,l){return He(void 0,void 0,void 0,function(){return qe(this,function(a){return[2,new Promise(function(o,t){try{if(window.DocsAPI)return o(null);var s=document.getElementById(l);if(s)var c=setInterval(function(){var u=s.getAttribute("loading");if(!u){if(clearInterval(c),window.DocsAPI)return o(null);var r=O(l,n,o,t);s.remove(),document.body.appendChild(r)}},500);else{var f=O(l,n,o,t);document.body.appendChild(f)}}catch(u){console.error(u)}})]})})},O=function(n,l,a,o){var t=document.createElement("script");return t.id=n,t.type="text/javascript",t.src=l,t.async=!0,t.onload=function(){t.removeAttribute("loading"),a(null)},t.onerror=function(s){t.removeAttribute("loading"),o(s)},t.setAttribute("loading",""),t},z=e.defineComponent({name:"DocumentEditor",props:{id:{type:String,required:!0},documentServerUrl:{type:String,required:!0},config:{type:Object,required:!0},document_fileType:String,document_title:String,documentType:String,editorConfig_lang:String,height:String,type:String,width:String,onLoadComponentError:Function,events_onAppReady:Function,events_onDocumentStateChange:Function,events_onMetaChange:Function,events_onDocumentReady:Function,events_onInfo:Function,events_onWarning:Function,events_onError:Function,events_onRequestSharingSettings:Function,events_onRequestRename:Function,events_onMakeActionLink:Function,events_onRequestInsertImage:Function,events_onRequestSaveAs:Function,events_onRequestMailMergeRecipients:Function,events_onRequestCompareFile:Function,events_onRequestEditRights:Function,events_onRequestHistory:Function,events_onRequestHistoryClose:Function,events_onRequestHistoryData:Function,events_onRequestRestore:Function,events_onRequestSelectSpreadsheet:Function,events_onRequestSelectDocument:Function},mounted:function(){var n=this,l=this.documentServerUrl;l.endsWith("/")||(l+="/");var a="".concat(l,"web-apps/apps/api/documents/api.js");je(a,"onlyoffice-api-script").then(function(){return n.onLoad()}).catch(function(){n.onError(-2)})},unmounted:function(){var n,l=this.id||"";!((n=window==null?void 0:window.DocEditor)===null||n===void 0)&&n.instances[l]&&(window.DocEditor.instances[l].destroyEditor(),window.DocEditor.instances[l]=void 0)},watch:{config:{handler:function(n,l){this.onChangeProps()},deep:!0},document_fileType:function(n,l){this.onChangeProps()},document_title:function(n,l){this.onChangeProps()},documentType:function(n,l){this.onChangeProps()},editorConfig_lang:function(n,l){this.onChangeProps()},height:function(n,l){this.onChangeProps()},type:function(n,l){this.onChangeProps()},width:function(n,l){this.onChangeProps()}},methods:{onLoad:function(){var n,l;try{var a=this.id||"";if(window.DocsAPI||this.onError(-3),!((n=window==null?void 0:window.DocEditor)===null||n===void 0)&&n.instances[a]){console.log("Skip loading. Instance already exists",a);return}!((l=window==null?void 0:window.DocEditor)===null||l===void 0)&&l.instances||(window.DocEditor={instances:{}});var o=Object.assign({document:{fileType:this.document_fileType,title:this.document_title},documentType:this.documentType,editorConfig:{lang:this.editorConfig_lang},events:{onAppReady:this.onAppReady,onDocumentStateChange:this.events_onDocumentStateChange,onMetaChange:this.events_onMetaChange,onDocumentReady:this.events_onDocumentReady,onInfo:this.events_onInfo,onWarning:this.events_onWarning,onError:this.events_onError,onRequestSharingSettings:this.events_onRequestSharingSettings,onRequestRename:this.events_onRequestRename,onMakeActionLink:this.events_onMakeActionLink,onRequestInsertImage:this.events_onRequestInsertImage,onRequestSaveAs:this.events_onRequestSaveAs,onRequestMailMergeRecipients:this.events_onRequestMailMergeRecipients,onRequestCompareFile:this.events_onRequestCompareFile,onRequestEditRights:this.events_onRequestEditRights,onRequestHistory:this.events_onRequestHistory,onRequestHistoryClose:this.events_onRequestHistoryClose,onRequestHistoryData:this.events_onRequestHistoryData,onRequestRestore:this.events_onRequestRestore,onRequestSelectSpreadsheet:this.events_onRequestSelectSpreadsheet,onRequestSelectDocument:this.events_onRequestSelectDocument},height:this.height,type:this.type,width:this.width},this.config||{}),t=window.DocsAPI.DocEditor(a,o);window.DocEditor.instances[a]=t}catch(s){console.error(s),this.onError(-1)}},onError:function(n){var l;switch(n){case-2:l="Error load DocsAPI from "+this.documentServerUrl;break;case-3:l="DocsAPI is not defined";break;default:l="Unknown error loading component",n=-1}typeof this.onLoadComponentError>"u"?console.error(l):this.onLoadComponentError(n,l)},onAppReady:function(){var n=this.id||"";this.events_onAppReady(window.DocEditor.instances[n])},onChangeProps:function(){var n,l=this.id||"";!((n=window==null?void 0:window.DocEditor)===null||n===void 0)&&n.instances[l]&&(window.DocEditor.instances[l].destroyEditor(),window.DocEditor.instances[l]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const Ue=["id"];function We(n,l,a,o,t,s){return e.openBlock(),e.createElementBlock("div",{id:n.id},null,8,Ue)}z.render=We,z.__file="src/components/DocumentEditor.vue";const Ke=e.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"}},setup(n){const l=n,a=e.ref({width:"100%",height:"100%",...l.configOptions||{},...l.configOptions}),o=()=>{console.info("文档加载完成",l.configOptions)};return(t,s)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:l.officeHeight})},[e.createVNode(e.unref(z),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":n.documentServerUrl,config:a.value,events_onDocumentReady:o},null,8,["id","document-server-url","config"])],4))}}),$3="",Ge=v(N(Ke,[["__scopeId","data-v-98d51ef9"]])),$=n=>(e.pushScopeId("data-v-f00f4785"),n=n(),e.popScopeId(),n),Ye={class:"approveProcess",id:"approveProcess"},Xe=["id"],Je={class:"topBlock"},Ze={class:"left"},Qe={class:"nodeBg"},et=["src"],tt={class:"right"},ot={class:"topInfo"},nt={key:0},lt={key:0,class:"main-text"},at={class:"name"},it={key:0},st={key:0},ct={key:1},rt=$(()=>e.createElementVNode("span",{class:"red",style:{margin:"0px 5px"}},"退回至",-1)),dt={key:0},pt={key:0},ft={key:1},ht={key:1},mt=$(()=>e.createElementVNode("div",{class:"main-text"},"抄送人员",-1)),ut={class:"name"},_t={key:0},gt={style:{color:"#000"}},yt={class:"blue",style:{"margin-left":"5px","font-size":"12px"}},kt={key:1},wt={key:0,class:"blue",style:{"font-size":"12px"}},Bt={key:1},Et={key:0,class:"blue",style:{"font-size":"12px"}},vt={key:1,class:"blue",style:{"font-size":"12px"}},Vt={class:"time"},Ft={key:0},xt={key:1},St=["onClick"],Ct=["onClick"],Nt={key:0,class:"opinion"},zt={key:0},$t={key:1},bt=$(()=>e.createElementVNode("span",{class:"ik-text-primary"},"添加审批人",-1)),It={style:{color:"var(--el-text-color-primary)","margin-left":"8px"}},Dt={key:2,class:"annexImage"},Tt={key:3,class:"approveList"},Ot={class:"nodeBg-list"},Rt=["src"],At={key:1},Mt={key:2,class:"ikapprove ikapprove-duihao2 green read"},Pt=["title"],Lt={key:0,class:"branch"},Ht={class:"branch-card"},qt={class:"branch-name"},jt={name:"IkingApprovalProcessDetail"},Ut=e.defineComponent({...jt,props:{local:{type:Boolean,default:!1},defaultStatus:{type:Object,default:()=>({})},defaultNodeType:{type:Object,default:()=>({})},dataList:{type:Array,default:()=>[]},defaultFieldMap:{type:Object,default:()=>({})},returnNode:{type:Array,default:()=>[]},fileUrl:{type:String,default:""},kkUrl:{type:String,default:""},isOnlyOfficePreview:{type:Boolean,default:!1},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""}},emits:["preview"],setup(n,{emit:l}){const a=n,{cOnlyofficeConfig:o}=T(a),t=e.reactive(j(a));e.watch(()=>a.dataList,p=>{p&&(e.nextTick(()=>{t.listData=p}),setTimeout(()=>{a.returnNode.length&&s()},500))},{deep:!0}),e.onMounted(()=>{a.dataList.length&&(t.listData=a.dataList,setTimeout(()=>{a.returnNode.length&&s()},500))});const s=()=>{let p=null;if(a!=null&&a.returnNode)for(p of a==null?void 0:a.returnNode){if(isNaN(p[1]))return;let d=Array.from(new Array(p[1]+1).keys()).slice(p[0]);e.nextTick(()=>{c(d)})}},c=p=>{var m,w,B;let d=document.createElement("div"),_=document.getElementById("approveProcess"),h=0,i=(m=document.getElementById(`${p[0]}`))==null?void 0:m.offsetWidth,k=(w=document.getElementById(`${p[0]}`))==null?void 0:w.offsetLeft,y=(B=document.getElementById(`${p[0]}`))==null?void 0:B.offsetTop;p.forEach(V=>{let C=document.getElementById(`${V}`);h+=C.offsetHeight}),setTimeout(()=>{d.style.width=i+32+"px",d.style.height=h+"px",d.style.background="#f9f9f9",d.style.position="absolute",d.style.top=y-16+"px",d.style.left=k-16+"px",d.style.zIndex=-1,_==null||_.appendChild(d)})},f=(p,d)=>{var i;let _=(i=t.listData)==null?void 0:i.findIndex(k=>k.lineType=="dashed"),h="";switch(p){case t.statusOption.发起:h="ikapprove-duihao2 green";break;case t.statusOption.等待:h=_==d?"ikapprove-dengdai orange":"";break;case t.statusOption.同意:h="ikapprove-duihao2 green";break;case t.statusOption.拒绝:h="ikapprove-jujue red";break;case t.statusOption.转交:h="ikapprove-zhuanjiao blue";break;case t.statusOption.加签:h="ikapprove-tianjia blue";break;case t.statusOption.退回:h="ikapprove-s_fanhui2 red";break;case t.statusOption.评论:h="ikapprove-pinglun1 blue";break}return`ikapprove ${h}`},u=(p,d)=>{p.show=!p.show;let _=document.getElementById(`${p[t.defaultFile.nodeId]}`),h=Array.from(_==null?void 0:_.getElementsByClassName("approveList"));for(let i of h)i.style.display=d},r=p=>x(a.fileUrl,p);return(p,d)=>{const _=e.resolveComponent("el-image"),h=e.resolveComponent("IkingApprovalProcessDetail");return e.openBlock(),e.createElementBlock("div",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.listData,(i,k)=>{var y,m,w,B,V,C,A,M,P,L,H,q;return e.openBlock(),e.createElementBlock("div",{class:"approveBlock",id:i[t.defaultFile.nodeId],key:i[t.defaultFile.nodeId]},[e.createElementVNode("div",Je,[e.createElementVNode("div",Ze,[e.createElementVNode("span",Qe,[e.createCommentVNode(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),((y=i[t.defaultFile.approvePersonList])==null?void 0:y.length)==1&&i[t.defaultFile.approvePersonList][0].userAvatar?(e.openBlock(),e.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:r(i[t.defaultFile.approvePersonList][0].userAvatar),alt:""},null,8,et)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 否则显示对应节点 "),e.createElementVNode("i",{class:e.normalizeClass(e.unref(U)(t,i[t.defaultFile.nodeType],i[t.defaultFile.approvePersonList]))},null,2)],2112)),e.createCommentVNode(" 审批状态图标 "),e.createElementVNode("i",{class:e.normalizeClass(f(i[t.defaultFile.approveStatus],k))},null,2)])]),e.createElementVNode("div",tt,[e.createElementVNode("div",ot,[e.createElementVNode("div",null,[e.createCommentVNode(" 不是抄送节点 "),i[t.defaultFile.nodeType]!=t.nodeType.抄送节点?(e.openBlock(),e.createElementBlock("div",nt,[e.createCommentVNode(" 撤销,评论不显示节点名称 "),i[t.defaultFile.approveStatus]!=t.statusOption.撤销&&i[t.defaultFile.approveStatus]!=t.statusOption.评论?(e.openBlock(),e.createElementBlock("div",lt,e.toDisplayString(i[t.defaultFile.nodeTypeName]),1)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 名字+审批状态 "),e.createElementVNode("div",at,[e.createCommentVNode(" 已审批节点文本 "),i[t.defaultFile.lineType]=="solid"?(e.openBlock(),e.createElementBlock("div",it,[e.createElementVNode("span",{style:e.normalizeStyle({color:i[t.defaultFile.approveStatus]==t.statusOption.评论?"#000":""})},e.toDisplayString(i[t.defaultFile.originator]),5),e.createCommentVNode(" 发起,退回不显示状态 "),i[t.defaultFile.approveStatusName]&&i[t.defaultFile.approveStatus]!=t.statusOption.发起&&i[t.defaultFile.approveStatus]!=t.statusOption.退回?(e.openBlock(),e.createElementBlock("span",st,e.toDisplayString(i[t.defaultFile.approveStatus]==t.statusOption.评论?" 添加了评论":"("+i[t.defaultFile.approveStatusName]+")"),1)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 退回状态显示 "),i[t.defaultFile.approveStatus]==t.statusOption.退回?(e.openBlock(),e.createElementBlock("span",ct,[rt,e.createTextVNode(e.toDisplayString(i[t.defaultFile.backToRecordNodeName]),1)])):e.createCommentVNode("v-if",!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 待审批节点 "),e.createElementVNode("div",null,[((m=i[t.defaultFile.approvePersonList])==null?void 0:m.length)==1?(e.openBlock(),e.createElementBlock("span",dt,[e.createTextVNode(e.toDisplayString(i[t.defaultFile.originator])+" ",1),i[t.defaultFile.approveStatus]==t.statusOption.等待?(e.openBlock(),e.createElementBlock("span",pt,e.toDisplayString(`(${i[t.defaultFile.approveStatusName]})`),1)):e.createCommentVNode("v-if",!0)])):i[t.defaultFile.approvePersonList]?(e.openBlock(),e.createElementBlock("span",ft,e.toDisplayString(`${(w=i[t.defaultFile.approvePersonList])==null?void 0:w.length}人${i[t.defaultFile.approveTypeName]}`),1)):e.createCommentVNode("v-if",!0)])],2112))])])):(e.openBlock(),e.createElementBlock("div",ht,[mt,e.createElementVNode("div",ut,[e.createCommentVNode(" 抄送一人时 "),((B=i[t.defaultFile.approvePersonList])==null?void 0:B.length)==1?(e.openBlock(),e.createElementBlock("span",_t,[e.createElementVNode("span",null,[e.createTextVNode("已抄送给 "),e.createElementVNode("span",gt,e.toDisplayString(i[t.defaultFile.approvePersonList][0].userName),1)]),e.createElementVNode("span",yt,e.toDisplayString(i[t.defaultFile.approvePersonList][0].status==="END"?"已读":"未读"),1)])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 抄送多人时 "),((V=i[t.defaultFile.approvePersonList])==null?void 0:V.length)>1?(e.openBlock(),e.createElementBlock("span",kt,[e.createTextVNode(e.toDisplayString(`已抄送${(C=i[t.defaultFile.approvePersonList])==null?void 0:C.length}人`)+" ",1),i[t.defaultFile.allRead]?(e.openBlock(),e.createElementBlock("span",wt," 全部已读 ")):(e.openBlock(),e.createElementBlock("span",Bt,[i[t.defaultFile.read]?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",Et," 全部未读 ")),i[t.defaultFile.read]?(e.openBlock(),e.createElementBlock("span",vt,e.toDisplayString(i[t.defaultFile.read])+"人已读 ",1)):e.createCommentVNode("v-if",!0)]))])):e.createCommentVNode("v-if",!0)])]))]),e.createElementVNode("div",Vt,[e.createCommentVNode(" 不是抄送节点,展示时间 "),i[t.defaultFile.nodeType]!=t.nodeType.抄送节点&&i[t.defaultFile.approveStatus]!==t.statusOption.等待?(e.openBlock(),e.createElementBlock("span",Ft,e.toDisplayString(e.unref(F.ikDate).toDateTime(i[t.defaultFile.operationTime],"MM/DD HH:mm")),1)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 是抄送节点,并且抄送人员大于1时,展示图标 "),i[t.defaultFile.nodeType]==t.nodeType.抄送节点&&((A=i[t.defaultFile.approvePersonList])==null?void 0:A.length)>1?(e.openBlock(),e.createElementBlock("span",xt,[i!=null&&i.show?(e.openBlock(),e.createElementBlock("i",{key:0,class:"ikapprove ikapprove-a-putongjiantouzhankai",onClick:g=>u(i,"grid")},null,8,St)):(e.openBlock(),e.createElementBlock("i",{key:1,onClick:g=>u(i,"none"),class:"ikapprove ikapprove-a-putongjiantoushouqi"},null,8,Ct))])):e.createCommentVNode("v-if",!0)])])])]),e.createElementVNode("div",{class:"bottomBlock",style:e.normalizeStyle({borderLeft:k==t.listData.length-1?"":`2px ${i[t.defaultFile.lineType]||"dashed"} var(--el-border-color)`})},[e.createCommentVNode(" 审批意见 "),i[t.defaultFile.approveOpinion]||i[t.defaultFile.approveStatus]==t.statusOption.加签?(e.openBlock(),e.createElementBlock("div",Nt,[i[t.defaultFile.approveOpinion]?(e.openBlock(),e.createElementBlock("span",zt,e.toDisplayString(i[t.defaultFile.approveOpinion]),1)):e.createCommentVNode("v-if",!0),i[t.defaultFile.approveStatus]==t.statusOption.加签?(e.openBlock(),e.createElementBlock("span",$t,[bt,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i[t.defaultFile.countersignPer],(g,b)=>(e.openBlock(),e.createElementBlock("span",It,e.toDisplayString(g==null?void 0:g.userName)+e.toDisplayString(b<i[t.defaultFile.countersignPer].length-1?"、":""),1))),256))])):e.createCommentVNode("v-if",!0)])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 附件 "),(M=i[t.defaultFile.attachment])!=null&&M.length?(e.openBlock(),e.createBlock(e.unref(Fe),{key:1,"kk-url":n.kkUrl,"load-url":n.fileUrl,list:i[t.defaultFile.attachment],"is-only-office-preview":n.isOnlyOfficePreview,"only-office-accept":((P=e.unref(o))==null?void 0:P.accept)||n.onlyOfficeAccept,"onlyoffice-server":((L=e.unref(o))==null?void 0:L.serverUrl)||n.onlyofficeServer},null,8,["kk-url","load-url","list","is-only-office-preview","only-office-accept","onlyoffice-server"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 附件图片 "),(H=i[t.defaultFile.attachmentImg])!=null&&H.length?(e.openBlock(),e.createElementBlock("div",Dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i[t.defaultFile.attachmentImg],(g,b)=>(e.openBlock(),e.createElementBlock("div",{class:"image",key:b},[e.createVNode(_,{src:r(g),"preview-src-list":i[t.defaultFile.attachmentImg].map(Wt=>r(Wt)),fit:"cover","z-index":"9999","zoom-rate":1.2,alt:r(g)},null,8,["src","preview-src-list","alt"])]))),128))])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 抄送节点或是等待审批状态并且列表长度大于1 "),(i[t.defaultFile.nodeType]==t.nodeType.抄送节点||i[t.defaultFile.approveStatus]==t.statusOption.等待)&&((q=i[t.defaultFile.approvePersonList])==null?void 0:q.length)>1?(e.openBlock(),e.createElementBlock("div",Tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i[t.defaultFile.approvePersonList],g=>(e.openBlock(),e.createElementBlock("div",{class:"perBlock",key:g.userName},[e.createElementVNode("span",Ot,[g.userAvatar?(e.openBlock(),e.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:r(g.userAvatar),alt:""},null,8,Rt)):(e.openBlock(),e.createElementBlock("span",At,e.toDisplayString(g.userName.slice(-2)),1)),g.status==="END"?(e.openBlock(),e.createElementBlock("i",Mt)):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",{class:"main-text",title:g.userName},e.toDisplayString(g.userName),9,Pt)]))),128))])):e.createCommentVNode("v-if",!0)],4),i[t.defaultFile.nodeType]===t.nodeType.并行分支?(e.openBlock(),e.createElementBlock("div",Lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i[t.defaultFile.parallelInstances],g=>(e.openBlock(),e.createElementBlock("div",Ht,[e.createElementVNode("div",qt,e.toDisplayString(g.name),1),e.createVNode(h,e.mergeProps({ref_for:!0},a,{"data-list":(g==null?void 0:g.processInstanceNodes)||[]}),null,16,["data-list"])]))),256))])):e.createCommentVNode("v-if",!0)],8,Xe)}),128))])}}}),I3="",R=v(N(Ut,[["__scopeId","data-v-f00f4785"]]));E.IKApprovalProcessDetail=R,E.default=R,Object.defineProperties(E,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|