ui-process-h5 0.1.26 → 0.1.27

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/lib/design.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as N, ref as _, watch as D, onMounted as O, openBlock as n, createElementBlock as r, createElementVNode as t, Fragment as g, renderList as S, normalizeClass as H, toDisplayString as v, createCommentVNode as m, withDirectives as R, renderSlot as k, vShow as Y, pushScopeId as W, popScopeId as z, normalizeStyle as A, computed as U, resolveComponent as F, createVNode as M, withCtx as P, createBlock as G, createTextVNode as q } from "vue";
2
- const K = N({
1
+ import { ref as v, watch as P, onMounted as M, openBlock as l, createElementBlock as r, createElementVNode as s, Fragment as g, renderList as L, normalizeClass as W, toDisplayString as h, createCommentVNode as _, withDirectives as z, renderSlot as k, vShow as H, pushScopeId as q, popScopeId as O, normalizeStyle as A, computed as E, resolveComponent as U, createVNode as j, withCtx as F, createBlock as R, createTextVNode as V } from "vue";
2
+ const Y = {
3
3
  name: "TopTab",
4
4
  props: {
5
5
  /**
@@ -21,9 +21,9 @@ const K = N({
21
21
  }
22
22
  },
23
23
  setup(e) {
24
- const s = _(
24
+ const a = v(
25
25
  "http://59.53.91.231:8088/portal/r/w?sid=6f714ec1-7570-4525-ac51-b092402d8295&cmd=CLIENT_BPM_FORM_TRACK_OPEN&processInstId=1f6e7196-e1ea-428e-b295-aa23a54a2402&supportCanvas=true&formInfo="
26
- ), f = _([
26
+ ), i = v([
27
27
  {
28
28
  actionName: "提交",
29
29
  activityName: "部门负责人",
@@ -39,7 +39,7 @@ const K = N({
39
39
  processInstId: "1f6e7196-e1ea-428e-b295-aa23a54a2402",
40
40
  taskInstId: "38bbef1c-efbb-456d-bd79-08ed9d96b4b3"
41
41
  }
42
- ]), i = _(""), c = _([
42
+ ]), t = v(""), f = v([
43
43
  {
44
44
  label: "基本信息",
45
45
  key: "a",
@@ -58,7 +58,7 @@ const K = N({
58
58
  type: "default",
59
59
  slot: "tab3"
60
60
  }
61
- ]), d = _([
61
+ ]), d = v([
62
62
  {
63
63
  label: "基本信息",
64
64
  key: "a",
@@ -77,26 +77,26 @@ const K = N({
77
77
  type: "default",
78
78
  slot: "tab3"
79
79
  }
80
- ]), a = _(), y = (l, b) => {
81
- l !== i.value && (i.value = l, p(b));
82
- }, p = (l) => {
83
- if (a.value.length) {
84
- let b = document.getElementsByClassName("bottom-line")[0], u;
85
- if (b.offsetWidth < a.value[l].offsetWidth - 10) {
86
- let h = (a.value[l].offsetWidth - b.offsetWidth - 10) / 2;
87
- u = `${a.value[l].offsetLeft + h}px`;
88
- } else if (b.offsetWidth > a.value[l].offsetWidth - 10) {
89
- let h = (b.offsetWidth - a.value[l].offsetWidth + 10) / 2;
90
- u = `${a.value[l].offsetLeft - h}px`;
80
+ ]), o = v(), y = (c, m) => {
81
+ c !== t.value && (t.value = c, p(m));
82
+ }, p = (c) => {
83
+ if (o.value.length) {
84
+ let m = document.getElementsByClassName("bottom-line")[0], u;
85
+ if (m.offsetWidth < o.value[c].offsetWidth - 10) {
86
+ let b = (o.value[c].offsetWidth - m.offsetWidth - 10) / 2;
87
+ u = `${o.value[c].offsetLeft + b}px`;
88
+ } else if (m.offsetWidth > o.value[c].offsetWidth - 10) {
89
+ let b = (m.offsetWidth - o.value[c].offsetWidth + 10) / 2;
90
+ u = `${o.value[c].offsetLeft - b}px`;
91
91
  } else
92
- u = `${a.value[l].offsetLeft}px`;
93
- b.style.transition = ".3s", b.style.transform = `translateX(${u})`;
92
+ u = `${o.value[c].offsetLeft}px`;
93
+ m.style.transition = ".3s", m.style.transform = `translateX(${u})`;
94
94
  }
95
95
  };
96
- return D(
96
+ return P(
97
97
  () => e.selfTapList,
98
- (l, b) => {
99
- l.length && (d.value = [].concat(l), i.value = d.value[0].key);
98
+ (c, m) => {
99
+ c.length && (d.value = [].concat(c), t.value = d.value[0].key);
100
100
  },
101
101
  {
102
102
  //如果加了这个参数,值为true的话,就消除了惰性,watch会在创建后立即执行一次
@@ -105,12 +105,12 @@ const K = N({
105
105
  //这个参数代表监听对象时,可以监听深度嵌套的对象属性
106
106
  deep: !0
107
107
  }
108
- ), D(
108
+ ), P(
109
109
  () => e.tapList,
110
- (l, b) => {
111
- e.selfTapList.length || (d.value = [].concat(c.value), l.length > 0 && l.forEach((u, h) => {
110
+ (c, m) => {
111
+ e.selfTapList.length || (d.value = [].concat(f.value), c.length > 0 && c.forEach((u, b) => {
112
112
  u.sort && u.sort > 1 ? d.value.splice(u.sort - 1, 0, u) : u.sort == 1 ? d.value.unshift(u) : d.value.push(u);
113
- }), i.value = d.value[0].key);
113
+ }), t.value = d.value[0].key);
114
114
  },
115
115
  {
116
116
  //如果加了这个参数,值为true的话,就消除了惰性,watch会在创建后立即执行一次
@@ -119,111 +119,111 @@ const K = N({
119
119
  //这个参数代表监听对象时,可以监听深度嵌套的对象属性
120
120
  deep: !0
121
121
  }
122
- ), O(() => {
122
+ ), M(() => {
123
123
  p(0);
124
124
  }), {
125
125
  isTapList: d,
126
- active: i,
126
+ active: t,
127
127
  handleActive: y,
128
- label: a,
129
- taskCommentList: f,
130
- trackUrl: s
128
+ label: o,
129
+ taskCommentList: i,
130
+ trackUrl: a
131
131
  };
132
132
  }
133
- });
134
- const w = (e, s) => {
135
- const f = e.__vccOpts || e;
136
- for (const [i, c] of s)
137
- f[i] = c;
138
- return f;
139
- }, $ = (e) => (W("data-v-baad7ff1"), e = e(), z(), e), X = { class: "tops-tab" }, J = { class: "tops-tab-header" }, Q = ["onClick"], Z = {
133
+ };
134
+ const N = (e, a) => {
135
+ const i = e.__vccOpts || e;
136
+ for (const [t, f] of a)
137
+ i[t] = f;
138
+ return i;
139
+ }, C = (e) => (q("data-v-dfe642fd"), e = e(), O(), e), G = { class: "tops-tab" }, K = { class: "tops-tab-header" }, X = ["onClick"], J = {
140
140
  key: 0,
141
141
  class: "bottom-line"
142
- }, x = { class: "tops-tab-body" }, ee = ["src"], te = {
142
+ }, Q = { class: "tops-tab-body" }, Z = ["src"], ee = {
143
143
  key: 1,
144
144
  class: "textnone"
145
- }, se = { class: "seal-list__item--option" }, ae = /* @__PURE__ */ $(() => /* @__PURE__ */ t("span", null, "节点名称", -1)), oe = { class: "seal-list__item--option" }, ne = /* @__PURE__ */ $(() => /* @__PURE__ */ t("span", null, "审批人", -1)), le = { class: "seal-list__item--option" }, ue = /* @__PURE__ */ $(() => /* @__PURE__ */ t("span", null, "审批操作", -1)), re = { class: "seal-list__item--option" }, ie = /* @__PURE__ */ $(() => /* @__PURE__ */ t("span", null, "审批意见", -1)), ce = ["innerHTML"], de = { class: "seal-list__item--option" }, pe = /* @__PURE__ */ $(() => /* @__PURE__ */ t("span", null, "审批时间", -1)), fe = {
145
+ }, te = { class: "seal-list__item--option" }, se = /* @__PURE__ */ C(() => /* @__PURE__ */ s("span", null, "节点名称", -1)), ae = { class: "seal-list__item--option" }, oe = /* @__PURE__ */ C(() => /* @__PURE__ */ s("span", null, "审批人", -1)), ne = { class: "seal-list__item--option" }, le = /* @__PURE__ */ C(() => /* @__PURE__ */ s("span", null, "审批操作", -1)), ce = { class: "seal-list__item--option" }, ue = /* @__PURE__ */ C(() => /* @__PURE__ */ s("span", null, "审批意见", -1)), re = ["innerHTML"], ie = { class: "seal-list__item--option" }, de = /* @__PURE__ */ C(() => /* @__PURE__ */ s("span", null, "审批时间", -1)), fe = {
146
146
  key: 0,
147
147
  class: "seal-list__item--attch"
148
- }, me = /* @__PURE__ */ $(() => /* @__PURE__ */ t("span", null, "查看附件", -1)), be = [
149
- me
150
- ], _e = {
148
+ }, pe = /* @__PURE__ */ C(() => /* @__PURE__ */ s("span", null, "查看附件", -1)), _e = [
149
+ pe
150
+ ], me = {
151
151
  key: 1,
152
152
  class: "textnone"
153
153
  };
154
- function ve(e, s, f, i, c, d) {
155
- return n(), r("div", X, [
156
- t("div", J, [
157
- (n(!0), r(g, null, S(e.isTapList, (a, y) => (n(), r("div", {
158
- class: H(["tops-tab-header-items", [a.key === e.active ? "active" : ""]]),
159
- onClick: (p) => e.handleActive(a.key, y),
154
+ function ve(e, a, i, t, f, d) {
155
+ return l(), r("div", G, [
156
+ s("div", K, [
157
+ (l(!0), r(g, null, L(t.isTapList, (o, y) => (l(), r("div", {
158
+ class: W(["tops-tab-header-items", [o.key === t.active ? "active" : ""]]),
159
+ onClick: (p) => t.handleActive(o.key, y),
160
160
  ref_for: !0,
161
161
  ref: "label"
162
- }, v(a.label), 11, Q))), 256)),
163
- e.isTapList.length ? (n(), r("div", Z)) : m("", !0)
162
+ }, h(o.label), 11, X))), 256)),
163
+ t.isTapList.length ? (l(), r("div", J)) : _("", !0)
164
164
  ]),
165
- t("div", x, [
166
- (n(!0), r(g, null, S(e.isTapList, (a) => R((n(), r("div", {
167
- key: a.key,
165
+ s("div", Q, [
166
+ (l(!0), r(g, null, L(t.isTapList, (o) => z((l(), r("div", {
167
+ key: o.key,
168
168
  style: { height: "calc(100% - 45px)" }
169
169
  }, [
170
- a.key === "a" && a.type === "default" ? k(e.$slots, "default", { key: 0 }, void 0, !0) : m("", !0),
171
- a.key === "b" && a.type === "default" ? k(e.$slots, a.slot, { key: 1 }, () => [
172
- e.trackUrl ? (n(), r("iframe", {
170
+ o.key === "a" && o.type === "default" ? k(e.$slots, "default", { key: 0 }, void 0, !0) : _("", !0),
171
+ o.key === "b" && o.type === "default" ? k(e.$slots, o.slot, { key: 1 }, () => [
172
+ t.trackUrl ? (l(), r("iframe", {
173
173
  key: 0,
174
- src: e.trackUrl,
174
+ src: t.trackUrl,
175
175
  style: { width: "100%", "min-height": "500px", border: "none" },
176
176
  scrolling: "no",
177
177
  frameborder: "0"
178
- }, null, 8, ee)) : (n(), r("div", te, " 暂无流程图 "))
179
- ], !0) : m("", !0),
180
- a.key === "c" && a.type === "default" ? k(e.$slots, a.slot, { key: 2 }, () => {
178
+ }, null, 8, Z)) : (l(), r("div", ee, " 暂无流程图 "))
179
+ ], !0) : _("", !0),
180
+ o.key === "c" && o.type === "default" ? k(e.$slots, o.slot, { key: 2 }, () => {
181
181
  var y;
182
182
  return [
183
- ((y = e.taskCommentList) == null ? void 0 : y.length) > 0 ? (n(!0), r(g, { key: 0 }, S(e.taskCommentList, (p, l) => (n(), r("div", {
183
+ ((y = t.taskCommentList) == null ? void 0 : y.length) > 0 ? (l(!0), r(g, { key: 0 }, L(t.taskCommentList, (p, c) => (l(), r("div", {
184
184
  key: p.id,
185
185
  class: "seal-list__item"
186
186
  }, [
187
- t("div", null, [
188
- t("div", se, [
189
- ae,
190
- t("span", null, v(p.activityName), 1)
187
+ s("div", null, [
188
+ s("div", te, [
189
+ se,
190
+ s("span", null, h(p.activityName), 1)
191
191
  ]),
192
- t("div", oe, [
193
- ne,
194
- t("span", null, v(p.createUserName), 1)
192
+ s("div", ae, [
193
+ oe,
194
+ s("span", null, h(p.createUserName), 1)
195
195
  ]),
196
- t("div", le, [
197
- ue,
198
- t("span", null, v(p.actionName), 1)
196
+ s("div", ne, [
197
+ le,
198
+ s("span", null, h(p.actionName), 1)
199
199
  ]),
200
- t("div", re, [
201
- ie,
202
- t("span", {
200
+ s("div", ce, [
201
+ ue,
202
+ s("span", {
203
203
  innerHTML: p.msg
204
- }, null, 8, ce)
204
+ }, null, 8, re)
205
205
  ]),
206
- t("div", de, [
207
- pe,
208
- t("span", null, v(p.createDate), 1)
206
+ s("div", ie, [
207
+ de,
208
+ s("span", null, h(p.createDate), 1)
209
209
  ]),
210
- p.metaAnnexList && p.metaAnnexList.length ? (n(), r("div", fe, be)) : m("", !0)
210
+ p.metaAnnexList && p.metaAnnexList.length ? (l(), r("div", fe, _e)) : _("", !0)
211
211
  ])
212
- ]))), 128)) : (n(), r("div", _e, "暂无数据"))
212
+ ]))), 128)) : (l(), r("div", me, "暂无数据"))
213
213
  ];
214
- }, !0) : m("", !0),
215
- a.type == "slot" ? k(e.$slots, a.slot, { key: 3 }, void 0, !0) : m("", !0)
214
+ }, !0) : _("", !0),
215
+ o.type == "slot" ? k(e.$slots, o.slot, { key: 3 }, void 0, !0) : _("", !0)
216
216
  ])), [
217
- [Y, e.active === a.key]
217
+ [H, t.active === o.key]
218
218
  ])), 128))
219
219
  ])
220
220
  ]);
221
221
  }
222
- const B = /* @__PURE__ */ w(K, [["render", ve], ["__scopeId", "data-v-baad7ff1"]]);
223
- B.install = function(e) {
224
- return e.component(B.name, B), e;
222
+ const S = /* @__PURE__ */ N(Y, [["render", ve], ["__scopeId", "data-v-dfe642fd"]]);
223
+ S.install = function(e) {
224
+ return e.component(S.name, S), e;
225
225
  };
226
- const he = N({
226
+ const he = {
227
227
  name: "TopPopup",
228
228
  props: {
229
229
  titleText: { default: "top-popup", type: String },
@@ -235,105 +235,105 @@ const he = N({
235
235
  isMaskClose: { require: !1, default: !0, type: Boolean }
236
236
  },
237
237
  setup(e) {
238
- const s = _(!1), f = () => {
239
- s.value = !0;
240
- }, i = () => {
238
+ const a = v(!1), i = () => {
239
+ a.value = !0;
240
+ }, t = () => {
241
241
  typeof e.cancel == "function" && e.cancel(), d();
242
- }, c = () => {
242
+ }, f = () => {
243
243
  typeof e.comfig == "function" && e.comfig();
244
244
  }, d = () => {
245
- s.value = !1;
245
+ a.value = !1;
246
246
  };
247
- return O(() => {
247
+ return M(() => {
248
248
  document.querySelector("body");
249
249
  }), {
250
- handleOpen: f,
251
- handleCancel: i,
252
- handleComfig: c,
250
+ handleOpen: i,
251
+ handleCancel: t,
252
+ handleComfig: f,
253
253
  handleClose: d,
254
- show: s
254
+ show: a
255
255
  };
256
256
  }
257
- });
258
- const ye = { class: "top-popup-header" }, ke = { class: "header-title" }, ge = { class: "top-popup-body" };
259
- function $e(e, s, f, i, c, d) {
260
- return n(), r(g, null, [
261
- t("div", {
257
+ };
258
+ const be = { class: "top-popup-header" }, ye = { class: "header-title" }, ke = { class: "top-popup-body" };
259
+ function ge(e, a, i, t, f, d) {
260
+ return l(), r(g, null, [
261
+ s("div", {
262
262
  class: "top-popup",
263
263
  style: A(
264
- e.show ? "transform: translateY(0)" : "transform: translateY(100%)"
264
+ t.show ? "transform: translateY(0)" : "transform: translateY(100%)"
265
265
  )
266
266
  }, [
267
- t("div", ye, [
268
- t("div", {
267
+ s("div", be, [
268
+ s("div", {
269
269
  class: "header-cancel",
270
- onClick: s[0] || (s[0] = (...a) => e.handleCancel && e.handleCancel(...a))
271
- }, v(e.cancelText), 1),
272
- t("div", ke, v(e.titleText), 1),
273
- t("div", {
270
+ onClick: a[0] || (a[0] = (...o) => t.handleCancel && t.handleCancel(...o))
271
+ }, h(i.cancelText), 1),
272
+ s("div", ye, h(i.titleText), 1),
273
+ s("div", {
274
274
  class: "header-comfig",
275
- onClick: s[1] || (s[1] = (...a) => e.handleComfig && e.handleComfig(...a))
276
- }, v(e.comfigText), 1)
275
+ onClick: a[1] || (a[1] = (...o) => t.handleComfig && t.handleComfig(...o))
276
+ }, h(i.comfigText), 1)
277
277
  ]),
278
- t("div", ge, [
278
+ s("div", ke, [
279
279
  k(e.$slots, "default", {}, void 0, !0)
280
280
  ])
281
281
  ], 4),
282
- e.show && e.isMask ? (n(), r("div", {
282
+ t.show && i.isMask ? (l(), r("div", {
283
283
  key: 0,
284
284
  class: "top-popup-mask",
285
- onClick: s[2] || (s[2] = (a) => e.isMaskClose && e.handleClose())
286
- })) : m("", !0)
285
+ onClick: a[2] || (a[2] = (o) => i.isMaskClose && t.handleClose())
286
+ })) : _("", !0)
287
287
  ], 64);
288
288
  }
289
- const T = /* @__PURE__ */ w(he, [["render", $e], ["__scopeId", "data-v-474e328a"]]);
290
- T.install = function(e) {
291
- return console.log("TopPopup.install", e), e.mount(T), e.component(T.name, T), e;
289
+ const B = /* @__PURE__ */ N(he, [["render", ge], ["__scopeId", "data-v-5fc20816"]]);
290
+ B.install = function(e) {
291
+ return console.log("TopPopup.install", e), e.mount(B), e.component(B.name, B), e;
292
292
  };
293
- const Ce = N({
293
+ const Ce = {
294
294
  name: "TopButton",
295
295
  props: {
296
296
  type: { default: "default", type: String }
297
297
  },
298
298
  setup(e) {
299
- const s = _({
299
+ const a = v({
300
300
  textColor: "#fff",
301
301
  bckColor: "3c9cff"
302
302
  });
303
303
  switch (e.type) {
304
304
  case "primary":
305
- s.value.textColor = "#fff", s.value.bckColor = "#3c9cff";
305
+ a.value.textColor = "#fff", a.value.bckColor = "#3c9cff";
306
306
  break;
307
307
  case "danger":
308
- s.value.textColor = "rgb(255, 96, 96)", s.value.bckColor = "rgb(255, 230, 230)";
308
+ a.value.textColor = "rgb(255, 96, 96)", a.value.bckColor = "rgb(255, 230, 230)";
309
309
  break;
310
310
  case "default":
311
- s.value.textColor = "rgb(51, 51, 51)", s.value.bckColor = "rgb(241, 241, 241)";
311
+ a.value.textColor = "rgb(51, 51, 51)", a.value.bckColor = "rgb(241, 241, 241)";
312
312
  break;
313
313
  }
314
314
  return {
315
- style: s
315
+ style: a
316
316
  };
317
317
  }
318
- });
319
- function Te(e, s, f, i, c, d) {
320
- return n(), r("div", {
318
+ };
319
+ function Te(e, a, i, t, f, d) {
320
+ return l(), r("div", {
321
321
  class: "top-button",
322
- style: A(`background-color:${e.style.bckColor};color:${e.style.textColor}`)
322
+ style: A(`background-color:${t.style.bckColor};color:${t.style.textColor}`)
323
323
  }, [
324
324
  k(e.$slots, "default", {}, void 0, !0)
325
325
  ], 4);
326
326
  }
327
- const L = /* @__PURE__ */ w(Ce, [["render", Te], ["__scopeId", "data-v-156a54e6"]]);
328
- L.install = function(e) {
329
- return e.component(L.name, L), e;
327
+ const x = /* @__PURE__ */ N(Ce, [["render", Te], ["__scopeId", "data-v-3d3c6354"]]);
328
+ x.install = function(e) {
329
+ return e.component(x.name, x), e;
330
330
  };
331
- const Be = N({
331
+ const Be = {
332
332
  name: "TopProcess",
333
333
  components: {
334
- TopTab: B,
335
- TopPopup: T,
336
- TopButton: L
334
+ TopTab: S,
335
+ TopPopup: B,
336
+ TopButton: x
337
337
  },
338
338
  props: {
339
339
  tapList: { require: !1, default: () => [], type: Array },
@@ -344,7 +344,7 @@ const Be = N({
344
344
  isView: { default: !1, type: Boolean }
345
345
  },
346
346
  setup(e) {
347
- const s = _({}), f = _(), i = _([
347
+ const a = v({}), i = v(), t = v([
348
348
  {
349
349
  taskId: "ecd82a93-4a62-42a7-b7bd-df38d2f1609a",
350
350
  taskState: 1,
@@ -352,7 +352,7 @@ const Be = N({
352
352
  customUniqueId: "",
353
353
  nodeName: "部门负责人"
354
354
  }
355
- ]), c = _({
355
+ ]), f = v({
356
356
  id: "obj_026aac284c1a4303854f978b674be4b9",
357
357
  name: "部门负责人",
358
358
  no: "1",
@@ -402,10 +402,10 @@ const Be = N({
402
402
  participantList: null,
403
403
  historyRoute: !1
404
404
  });
405
- D(
405
+ P(
406
406
  () => e.processId,
407
- (u, h) => {
408
- u && (s.value = {
407
+ (u, b) => {
408
+ u && (a.value = {
409
409
  status: "审批中",
410
410
  createUid: "18ccbf63229f0c79f39940ae284c111e",
411
411
  createTopUserId: "128ec9c9b7f26135272596fe01c57690",
@@ -429,56 +429,56 @@ const Be = N({
429
429
  //这个参数代表监听对象时,可以监听深度嵌套的对象属性
430
430
  deep: !0
431
431
  }
432
- ), console.log("asd", i.value[0].taskState);
433
- const d = U(() => {
434
- var j, V;
435
- let u = [], h = i.value && i.value[0] && i.value[0].taskState != 4;
436
- if (h && !e.isView && c.value.completeButtonLabel) {
437
- let o = {};
438
- o.name = c.value.completeButtonLabel, o.btnProps = { type: "primary" }, u.push(o);
432
+ ), console.log("asd", t.value[0].taskState);
433
+ const d = E(() => {
434
+ var D, $;
435
+ let u = [], b = t.value && t.value[0] && t.value[0].taskState != 4;
436
+ if (b && !e.isView && f.value.completeButtonLabel) {
437
+ let n = {};
438
+ n.name = f.value.completeButtonLabel, n.btnProps = { type: "primary" }, u.push(n);
439
439
  }
440
- if (h && !e.isView && s.value.currUserName) {
441
- let o = {};
442
- o.name = "拒绝", o.btnProps = { type: "danger" }, u.push(o);
440
+ if (b && !e.isView && a.value.currUserName) {
441
+ let n = {};
442
+ n.name = "拒绝", n.btnProps = { type: "danger" }, u.push(n);
443
443
  }
444
- if (h && !e.isView && c.value.buttons && c.value.buttons.length && c.value.buttons.forEach((o) => {
445
- if (o.label === "退回") {
446
- let E = {};
447
- E.name = o.label, E.btnProps = { type: "danger" }, u.push(E);
444
+ if (b && !e.isView && f.value.buttons && f.value.buttons.length && f.value.buttons.forEach((n) => {
445
+ if (n.label === "退回") {
446
+ let w = {};
447
+ w.name = n.label, w.btnProps = { type: "danger" }, u.push(w);
448
448
  }
449
- }), h && !e.isView && c.value.delegateTaskButtonLabel) {
450
- let o = {};
451
- o.name = c.value.delegateTaskButtonLabel, o.btnProps = { type: "default" }, u.push(o);
449
+ }), b && !e.isView && f.value.delegateTaskButtonLabel) {
450
+ let n = {};
451
+ n.name = f.value.delegateTaskButtonLabel, n.btnProps = { type: "default" }, u.push(n);
452
452
  }
453
- if (e.processId && s.value.createTopUserId == e.userId && ((j = i.value[0]) == null ? void 0 : j.taskState) != 2 && s.value.status !== "已驳回" && s.value.status !== "已撤销") {
454
- let o = {};
455
- o.name = "催办", o.btnProps = { type: "default" }, u.push(o);
453
+ if (e.processId && a.value.createTopUserId == e.userId && ((D = t.value[0]) == null ? void 0 : D.taskState) != 2 && a.value.status !== "已驳回" && a.value.status !== "已撤销") {
454
+ let n = {};
455
+ n.name = "催办", n.btnProps = { type: "default" }, u.push(n);
456
456
  }
457
- if (e.processId && s.value.createTopUserId == e.userId && ((V = i.value[0]) == null ? void 0 : V.taskState) != 2 && s.value.status !== "已驳回" && s.value.status !== "已撤销") {
458
- let o = {};
459
- o.name = "撤销", o.btnProps = { type: "default" }, u.push(o);
457
+ if (e.processId && a.value.createTopUserId == e.userId && (($ = t.value[0]) == null ? void 0 : $.taskState) != 2 && a.value.status !== "已驳回" && a.value.status !== "已撤销") {
458
+ let n = {};
459
+ n.name = "撤销", n.btnProps = { type: "default" }, u.push(n);
460
460
  }
461
- if (h && !e.isView && c.value.counterSignLabel) {
462
- let o = {};
463
- o.name = c.value.counterSignLabel, o.btnProps = { type: "primary" }, u.push(o);
461
+ if (b && !e.isView && f.value.counterSignLabel) {
462
+ let n = {};
463
+ n.name = f.value.counterSignLabel, n.btnProps = { type: "primary" }, u.push(n);
464
464
  }
465
465
  return u;
466
- }), a = U(() => d.value.length > 3 ? d.value.slice(3) : []), y = () => {
466
+ }), o = E(() => d.value.length > 3 ? d.value.slice(3) : []), y = () => {
467
467
  console.log("handleCancel");
468
468
  }, p = () => {
469
- console.log("handleComfig", "确定按钮"), f.value.handleClose();
470
- }, l = U(() => "calc(100vh - 205px)");
469
+ console.log("handleComfig", "确定按钮"), i.value.handleClose();
470
+ }, c = E(() => "calc(100vh - 205px)");
471
471
  return {
472
- processStatus: s,
473
- processCardHeight: l,
472
+ processStatus: a,
473
+ processCardHeight: c,
474
474
  handleTest: () => {
475
- f.value.handleOpen();
475
+ i.value.handleOpen();
476
476
  },
477
- TopPopup1: f,
477
+ TopPopup1: i,
478
478
  handleCancel: y,
479
479
  handleComfig: p,
480
480
  operBtn: d,
481
- actionBtn: a
481
+ actionBtn: o
482
482
  };
483
483
  },
484
484
  methods: {
@@ -486,111 +486,111 @@ const Be = N({
486
486
  return e == "审核中" ? "#FFA52D" : e == "已驳回" ? "#F14B4C" : e == "已撤销" ? "#CECECE" : e == "已完成" ? "#6DC743" : "#1389FF";
487
487
  }
488
488
  }
489
- });
490
- const C = (e) => (W("data-v-b82b096a"), e = e(), z(), e), Se = { class: "process-warp" }, Le = {
489
+ };
490
+ const T = (e) => (q("data-v-710eca2f"), e = e(), O(), e), Se = { class: "process-warp" }, Le = {
491
491
  key: 0,
492
492
  class: "process-main"
493
- }, Ie = { class: "process-ml-item border" }, Ae = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "process-mli-name" }, "流程状态", -1)), Ne = { class: "process-mli-value" }, we = { class: "process-ml-item border" }, Ee = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "process-mli-name" }, "流程发起时间", -1)), Ue = { class: "process-mli-value" }, Fe = {
493
+ }, xe = { class: "process-ml-item border" }, Ie = /* @__PURE__ */ T(() => /* @__PURE__ */ s("div", { class: "process-mli-name" }, "流程状态", -1)), Ae = { class: "process-mli-value" }, Ne = { class: "process-ml-item border" }, we = /* @__PURE__ */ T(() => /* @__PURE__ */ s("div", { class: "process-mli-name" }, "流程发起时间", -1)), Ee = { class: "process-mli-value" }, Ue = {
494
494
  key: 0,
495
495
  class: "process-ml-item"
496
- }, Pe = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "process-mli-name" }, "审批节点", -1)), De = { class: "process-mli-value" }, je = { class: "process-mliv-jd" }, Ve = {
496
+ }, Fe = /* @__PURE__ */ T(() => /* @__PURE__ */ s("div", { class: "process-mli-name" }, "审批节点", -1)), Pe = { class: "process-mli-value" }, De = { class: "process-mliv-jd" }, $e = {
497
497
  key: 1,
498
498
  class: "process-foot"
499
- }, Me = { class: "footBtnRow" }, qe = { class: "process-btn" }, Oe = {
499
+ }, je = { class: "footBtnRow" }, Ve = { class: "process-btn" }, Me = {
500
500
  key: 1,
501
501
  class: "elips"
502
- }, We = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "circle" }, null, -1)), ze = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "circle" }, null, -1)), He = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "circle" }, null, -1)), Re = [
503
- We,
504
- ze,
505
- He
502
+ }, qe = /* @__PURE__ */ T(() => /* @__PURE__ */ s("div", { class: "circle" }, null, -1)), Oe = /* @__PURE__ */ T(() => /* @__PURE__ */ s("div", { class: "circle" }, null, -1)), We = /* @__PURE__ */ T(() => /* @__PURE__ */ s("div", { class: "circle" }, null, -1)), ze = [
503
+ qe,
504
+ Oe,
505
+ We
506
506
  ];
507
- function Ye(e, s, f, i, c, d) {
508
- const a = F("TopTab"), y = F("TopButton"), p = F("TopPopup");
509
- return n(), r(g, null, [
510
- t("div", Se, [
511
- e.processStatus.status ? (n(), r("div", Le, [
512
- t("div", Ie, [
513
- Ae,
514
- t("div", Ne, [
515
- e.processStatus.status || e.processStatus.bizStatusName ? (n(), r("div", {
507
+ function He(e, a, i, t, f, d) {
508
+ const o = U("TopTab"), y = U("TopButton"), p = U("TopPopup");
509
+ return l(), r(g, null, [
510
+ s("div", Se, [
511
+ t.processStatus.status ? (l(), r("div", Le, [
512
+ s("div", xe, [
513
+ Ie,
514
+ s("div", Ae, [
515
+ t.processStatus.status || t.processStatus.bizStatusName ? (l(), r("div", {
516
516
  key: 0,
517
517
  class: "process-mliv-dd",
518
- style: A({ background: e.getColor(e.processStatus.status) })
519
- }, v(e.processStatus.bizStatusName ? e.processStatus.bizStatusName : e.processStatus.status), 5)) : m("", !0)
518
+ style: A({ background: d.getColor(t.processStatus.status) })
519
+ }, h(t.processStatus.bizStatusName ? t.processStatus.bizStatusName : t.processStatus.status), 5)) : _("", !0)
520
520
  ])
521
521
  ]),
522
- t("div", we, [
523
- Ee,
524
- t("div", Ue, [
525
- t("span", null, v(e.processStatus.createTime), 1)
522
+ s("div", Ne, [
523
+ we,
524
+ s("div", Ee, [
525
+ s("span", null, h(t.processStatus.createTime), 1)
526
526
  ])
527
527
  ]),
528
- e.processStatus.allUserNames && e.processStatus.allUserNames.length ? (n(), r("div", Fe, [
529
- Pe,
530
- t("div", De, [
531
- t("span", je, v(`${e.processStatus.taskState == 4 ? e.processStatus.currUserName : e.processStatus.allUserNames.toString()}审批中`), 1)
528
+ t.processStatus.allUserNames && t.processStatus.allUserNames.length ? (l(), r("div", Ue, [
529
+ Fe,
530
+ s("div", Pe, [
531
+ s("span", De, h(`${t.processStatus.taskState == 4 ? t.processStatus.currUserName : t.processStatus.allUserNames.toString()}审批中`), 1)
532
532
  ])
533
- ])) : m("", !0)
534
- ])) : m("", !0),
535
- t("div", {
533
+ ])) : _("", !0)
534
+ ])) : _("", !0),
535
+ s("div", {
536
536
  class: "process-card",
537
- style: A({ height: e.processCardHeight })
537
+ style: A({ height: t.processCardHeight })
538
538
  }, [
539
- M(a, { tapList: e.tapList }, {
540
- default: P(() => [
539
+ j(o, { tapList: i.tapList }, {
540
+ default: F(() => [
541
541
  k(e.$slots, "default", {}, void 0, !0)
542
542
  ]),
543
543
  _: 3
544
544
  }, 8, ["tapList"])
545
545
  ], 4),
546
- e.isAdditional ? (n(), r("div", Ve, [
547
- t("div", Me, [
546
+ i.isAdditional ? (l(), r("div", $e, [
547
+ s("div", je, [
548
548
  k(e.$slots, "btn", {}, void 0, !0)
549
549
  ])
550
- ])) : m("", !0),
551
- t("div", qe, [
552
- e.processStatus.status != "已完成" ? (n(!0), r(g, { key: 0 }, S(e.operBtn, (l, b) => (n(), r(g, {
553
- key: l.name
550
+ ])) : _("", !0),
551
+ s("div", Ve, [
552
+ t.processStatus.status != "已完成" ? (l(!0), r(g, { key: 0 }, L(t.operBtn, (c, m) => (l(), r(g, {
553
+ key: c.name
554
554
  }, [
555
- b < 3 ? (n(), G(y, {
555
+ m < 3 ? (l(), R(y, {
556
556
  key: 0,
557
- onClick: e.handleTest,
558
- type: l.btnProps.type.toString()
557
+ onClick: t.handleTest,
558
+ type: c.btnProps.type.toString()
559
559
  }, {
560
- default: P(() => [
561
- q(v(l.name), 1)
560
+ default: F(() => [
561
+ V(h(c.name), 1)
562
562
  ]),
563
563
  _: 2
564
- }, 1032, ["onClick", "type"])) : m("", !0)
565
- ], 64))), 128)) : m("", !0),
566
- e.operBtn.length > 3 ? (n(), r("div", Oe, Re)) : m("", !0)
564
+ }, 1032, ["onClick", "type"])) : _("", !0)
565
+ ], 64))), 128)) : _("", !0),
566
+ t.operBtn.length > 3 ? (l(), r("div", Me, ze)) : _("", !0)
567
567
  ])
568
568
  ]),
569
- M(p, {
569
+ j(p, {
570
570
  ref: "TopPopup1",
571
- cancel: e.handleCancel,
572
- comfig: e.handleComfig
571
+ cancel: t.handleCancel,
572
+ comfig: t.handleComfig
573
573
  }, {
574
- default: P(() => [
575
- q(" csaasd1 ")
574
+ default: F(() => [
575
+ V(" csaasd1 ")
576
576
  ]),
577
577
  _: 1
578
578
  }, 8, ["cancel", "comfig"])
579
579
  ], 64);
580
580
  }
581
- const I = /* @__PURE__ */ w(Be, [["render", Ye], ["__scopeId", "data-v-b82b096a"]]);
581
+ const I = /* @__PURE__ */ N(Be, [["render", He], ["__scopeId", "data-v-710eca2f"]]);
582
582
  I.install = function(e) {
583
583
  return e.component(I.name, I), e;
584
584
  };
585
- const Ge = [B, I], Ke = function(e) {
586
- Ge.forEach((s) => {
587
- e.use(s);
585
+ const Re = [S, I], Ye = function(e) {
586
+ Re.forEach((a) => {
587
+ e.use(a);
588
588
  });
589
- }, Je = {
590
- install: Ke
589
+ }, Ke = {
590
+ install: Ye
591
591
  };
592
592
  export {
593
593
  I as TopProcess,
594
- B as TopTab,
595
- Je as default
594
+ S as TopTab,
595
+ Ke as default
596
596
  };
@@ -1 +1 @@
1
- (function(_,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(_=typeof globalThis<"u"?globalThis:_||self,e(_.Design={},_.Vue))})(this,function(_,e){"use strict";const V=e.defineComponent({name:"TopTab",props:{tapList:{type:Array,default:()=>[]},selfTapList:{type:Array,default:()=>[]}},setup(t){const o=e.ref("http://59.53.91.231:8088/portal/r/w?sid=6f714ec1-7570-4525-ac51-b092402d8295&cmd=CLIENT_BPM_FORM_TRACK_OPEN&processInstId=1f6e7196-e1ea-428e-b295-aa23a54a2402&supportCanvas=true&formInfo="),p=e.ref([{actionName:"提交",activityName:"部门负责人",createDate:"2023-04-20 14:47:35",createUser:"18ccbf63229f0c79f39940ae284c111e",createUserName:"朱鸿飞",customUniqueId:"",departmentName:"测试部",id:"88df38c8-9756-4b4a-a9b0-dcb0ec1b57d5",metaAnnexList:null,msg:"同意",positionName:"测试部119147",processInstId:"1f6e7196-e1ea-428e-b295-aa23a54a2402",taskInstId:"38bbef1c-efbb-456d-bd79-08ed9d96b4b3"}]),r=e.ref(""),c=e.ref([{label:"基本信息",key:"a",type:"default",slot:"default"},{label:"流程图",key:"b",type:"default",slot:"tab2"},{label:"审批记录",key:"c",type:"default",slot:"tab3"}]),i=e.ref([{label:"基本信息",key:"a",type:"default",slot:"default"},{label:"流程图",key:"b",type:"default",slot:"tab2"},{label:"审批记录",key:"c",type:"default",slot:"tab3"}]),s=e.ref(),f=(n,m)=>{n!==r.value&&(r.value=n,d(m))},d=n=>{if(s.value.length){let m=document.getElementsByClassName("bottom-line")[0],l;if(m.offsetWidth<s.value[n].offsetWidth-10){let u=(s.value[n].offsetWidth-m.offsetWidth-10)/2;l=`${s.value[n].offsetLeft+u}px`}else if(m.offsetWidth>s.value[n].offsetWidth-10){let u=(m.offsetWidth-s.value[n].offsetWidth+10)/2;l=`${s.value[n].offsetLeft-u}px`}else l=`${s.value[n].offsetLeft}px`;m.style.transition=".3s",m.style.transform=`translateX(${l})`}};return e.watch(()=>t.selfTapList,(n,m)=>{n.length&&(i.value=[].concat(n),r.value=i.value[0].key)},{immediate:!0,deep:!0}),e.watch(()=>t.tapList,(n,m)=>{t.selfTapList.length||(i.value=[].concat(c.value),n.length>0&&n.forEach((l,u)=>{l.sort&&l.sort>1?i.value.splice(l.sort-1,0,l):l.sort==1?i.value.unshift(l):i.value.push(l)}),r.value=i.value[0].key)},{immediate:!0,deep:!0}),e.onMounted(()=>{d(0)}),{isTapList:i,active:r,handleActive:f,label:s,taskCommentList:p,trackUrl:o}}}),Ee="",B=(t,o)=>{const p=t.__vccOpts||t;for(const[r,c]of o)p[r]=c;return p},h=t=>(e.pushScopeId("data-v-baad7ff1"),t=t(),e.popScopeId(),t),$={class:"tops-tab"},T={class:"tops-tab-header"},L=["onClick"],I={key:0,class:"bottom-line"},A={class:"tops-tab-body"},D=["src"],F={key:1,class:"textnone"},w={class:"seal-list__item--option"},P=h(()=>e.createElementVNode("span",null,"节点名称",-1)),U={class:"seal-list__item--option"},j=h(()=>e.createElementVNode("span",null,"审批人",-1)),M={class:"seal-list__item--option"},q=h(()=>e.createElementVNode("span",null,"审批操作",-1)),z={class:"seal-list__item--option"},O=h(()=>e.createElementVNode("span",null,"审批意见",-1)),W=["innerHTML"],H={class:"seal-list__item--option"},R=h(()=>e.createElementVNode("span",null,"审批时间",-1)),Y={key:0,class:"seal-list__item--attch"},G=[h(()=>e.createElementVNode("span",null,"查看附件",-1))],K={key:1,class:"textnone"};function X(t,o,p,r,c,i){return e.openBlock(),e.createElementBlock("div",$,[e.createElementVNode("div",T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.isTapList,(s,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tops-tab-header-items",[s.key===t.active?"active":""]]),onClick:d=>t.handleActive(s.key,f),ref_for:!0,ref:"label"},e.toDisplayString(s.label),11,L))),256)),t.isTapList.length?(e.openBlock(),e.createElementBlock("div",I)):e.createCommentVNode("",!0)]),e.createElementVNode("div",A,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.isTapList,s=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:s.key,style:{height:"calc(100% - 45px)"}},[s.key==="a"&&s.type==="default"?e.renderSlot(t.$slots,"default",{key:0},void 0,!0):e.createCommentVNode("",!0),s.key==="b"&&s.type==="default"?e.renderSlot(t.$slots,s.slot,{key:1},()=>[t.trackUrl?(e.openBlock(),e.createElementBlock("iframe",{key:0,src:t.trackUrl,style:{width:"100%","min-height":"500px",border:"none"},scrolling:"no",frameborder:"0"},null,8,D)):(e.openBlock(),e.createElementBlock("div",F," 暂无流程图 "))],!0):e.createCommentVNode("",!0),s.key==="c"&&s.type==="default"?e.renderSlot(t.$slots,s.slot,{key:2},()=>{var f;return[((f=t.taskCommentList)==null?void 0:f.length)>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.taskCommentList,(d,n)=>(e.openBlock(),e.createElementBlock("div",{key:d.id,class:"seal-list__item"},[e.createElementVNode("div",null,[e.createElementVNode("div",w,[P,e.createElementVNode("span",null,e.toDisplayString(d.activityName),1)]),e.createElementVNode("div",U,[j,e.createElementVNode("span",null,e.toDisplayString(d.createUserName),1)]),e.createElementVNode("div",M,[q,e.createElementVNode("span",null,e.toDisplayString(d.actionName),1)]),e.createElementVNode("div",z,[O,e.createElementVNode("span",{innerHTML:d.msg},null,8,W)]),e.createElementVNode("div",H,[R,e.createElementVNode("span",null,e.toDisplayString(d.createDate),1)]),d.metaAnnexList&&d.metaAnnexList.length?(e.openBlock(),e.createElementBlock("div",Y,G)):e.createCommentVNode("",!0)])]))),128)):(e.openBlock(),e.createElementBlock("div",K,"暂无数据"))]},!0):e.createCommentVNode("",!0),s.type=="slot"?e.renderSlot(t.$slots,s.slot,{key:3},void 0,!0):e.createCommentVNode("",!0)])),[[e.vShow,t.active===s.key]])),128))])])}const y=B(V,[["render",X],["__scopeId","data-v-baad7ff1"]]);y.install=function(t){return t.component(y.name,y),t};const J=e.defineComponent({name:"TopPopup",props:{titleText:{default:"top-popup",type:String},cancelText:{default:"取消",type:String},comfigText:{default:"确定",type:String},comfig:{default:null,type:Function},cancel:{default:null,type:Function},isMask:{require:!1,default:!0,type:Boolean},isMaskClose:{require:!1,default:!0,type:Boolean}},setup(t){const o=e.ref(!1),p=()=>{o.value=!0},r=()=>{typeof t.cancel=="function"&&t.cancel(),i()},c=()=>{typeof t.comfig=="function"&&t.comfig()},i=()=>{o.value=!1};return e.onMounted(()=>{document.querySelector("body")}),{handleOpen:p,handleCancel:r,handleComfig:c,handleClose:i,show:o}}}),Se="",Q={class:"top-popup-header"},Z={class:"header-title"},x={class:"top-popup-body"};function v(t,o,p,r,c,i){return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"top-popup",style:e.normalizeStyle(t.show?"transform: translateY(0)":"transform: translateY(100%)")},[e.createElementVNode("div",Q,[e.createElementVNode("div",{class:"header-cancel",onClick:o[0]||(o[0]=(...s)=>t.handleCancel&&t.handleCancel(...s))},e.toDisplayString(t.cancelText),1),e.createElementVNode("div",Z,e.toDisplayString(t.titleText),1),e.createElementVNode("div",{class:"header-comfig",onClick:o[1]||(o[1]=(...s)=>t.handleComfig&&t.handleComfig(...s))},e.toDisplayString(t.comfigText),1)]),e.createElementVNode("div",x,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],4),t.show&&t.isMask?(e.openBlock(),e.createElementBlock("div",{key:0,class:"top-popup-mask",onClick:o[2]||(o[2]=s=>t.isMaskClose&&t.handleClose())})):e.createCommentVNode("",!0)],64)}const k=B(J,[["render",v],["__scopeId","data-v-474e328a"]]);k.install=function(t){return console.log("TopPopup.install",t),t.mount(k),t.component(k.name,k),t};const Ve="",ee=e.defineComponent({name:"TopButton",props:{type:{default:"default",type:String}},setup(t){const o=e.ref({textColor:"#fff",bckColor:"3c9cff"});switch(t.type){case"primary":o.value.textColor="#fff",o.value.bckColor="#3c9cff";break;case"danger":o.value.textColor="rgb(255, 96, 96)",o.value.bckColor="rgb(255, 230, 230)";break;case"default":o.value.textColor="rgb(51, 51, 51)",o.value.bckColor="rgb(241, 241, 241)";break}return{style:o}}});function te(t,o,p,r,c,i){return e.openBlock(),e.createElementBlock("div",{class:"top-button",style:e.normalizeStyle(`background-color:${t.style.bckColor};color:${t.style.textColor}`)},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4)}const N=B(ee,[["render",te],["__scopeId","data-v-156a54e6"]]);N.install=function(t){return t.component(N.name,N),t};const oe=e.defineComponent({name:"TopProcess",components:{TopTab:y,TopPopup:k,TopButton:N},props:{tapList:{require:!1,default:()=>[],type:Array},processId:{require:!0,default:"",type:String},processDefId:{require:!0,default:"",type:String},taskId:{require:!0,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean}},setup(t){const o=e.ref({}),p=e.ref(),r=e.ref([{taskId:"ecd82a93-4a62-42a7-b7bd-df38d2f1609a",taskState:1,nodeId:"obj_026aac284c1a4303854f978b674be4b9",customUniqueId:"",nodeName:"部门负责人"}]),c=e.ref({id:"obj_026aac284c1a4303854f978b674be4b9",name:"部门负责人",no:"1",buttons:[],ccTaskButtonLabel:"",ccTaskButtonAnnex:null,completeButtonLabel:"同意",completeButtonAnnex:null,delegateTaskButtonLabel:"转办",delegateTaskButtonAnnex:null,printFormButtonLabel:"",supplyUnusualTransferButtonLabel:"",readingOfficeLabel:"",readingOfficeButtonAnnex:null,jointlySignLabel:"",jointlySignButtonAnnex:null,counterSignLabel:"加签",counterSignButtonAnnex:null,coordinationLabel:"",coordinationButtonAnnex:null,otherButtonAnnexList:null,humanPerformer:{id:"obj_2bd3494ae5c54309b7f2ea452921790b",name:"任意指定",resourceAssignmentExpressionModel:{formalExpression:""}},commentModels:[{actionName:"提交",isDefault:!0},{actionName:"作废",isDefault:!1}],routeTxt:{departmentIds:null,companyIds:null,teamList:null,routeType:"DynamicUsers"},loopCardinality:1,isHistoryRoute:!1,participantList:null,historyRoute:!1});e.watch(()=>t.processId,(l,u)=>{l&&(o.value={status:"审批中",createUid:"18ccbf63229f0c79f39940ae284c111e",createTopUserId:"128ec9c9b7f26135272596fe01c57690",createTime:"2023-04-20 15:01:48",currUserName:"朱鸿飞",allUserNames:["朱鸿飞"],userNodeGroup:{分管领导:["朱鸿飞"]},appId:"com.awspaas.user.apps.top.study.project",statusCode:"1",statusName:"审批中",bizStatusName:"审批中",taskState:1})},{immediate:!0,deep:!0}),console.log("asd",r.value[0].taskState);const i=e.computed(()=>{var C,S;let l=[],u=r.value&&r.value[0]&&r.value[0].taskState!=4;if(u&&!t.isView&&c.value.completeButtonLabel){let a={};a.name=c.value.completeButtonLabel,a.btnProps={type:"primary"},l.push(a)}if(u&&!t.isView&&o.value.currUserName){let a={};a.name="拒绝",a.btnProps={type:"danger"},l.push(a)}if(u&&!t.isView&&c.value.buttons&&c.value.buttons.length&&c.value.buttons.forEach(a=>{if(a.label==="退回"){let E={};E.name=a.label,E.btnProps={type:"danger"},l.push(E)}}),u&&!t.isView&&c.value.delegateTaskButtonLabel){let a={};a.name=c.value.delegateTaskButtonLabel,a.btnProps={type:"default"},l.push(a)}if(t.processId&&o.value.createTopUserId==t.userId&&((C=r.value[0])==null?void 0:C.taskState)!=2&&o.value.status!=="已驳回"&&o.value.status!=="已撤销"){let a={};a.name="催办",a.btnProps={type:"default"},l.push(a)}if(t.processId&&o.value.createTopUserId==t.userId&&((S=r.value[0])==null?void 0:S.taskState)!=2&&o.value.status!=="已驳回"&&o.value.status!=="已撤销"){let a={};a.name="撤销",a.btnProps={type:"default"},l.push(a)}if(u&&!t.isView&&c.value.counterSignLabel){let a={};a.name=c.value.counterSignLabel,a.btnProps={type:"primary"},l.push(a)}return l}),s=e.computed(()=>i.value.length>3?i.value.slice(3):[]),f=()=>{console.log("handleCancel")},d=()=>{console.log("handleComfig","确定按钮"),p.value.handleClose()},n=e.computed(()=>"calc(100vh - 205px)");return{processStatus:o,processCardHeight:n,handleTest:()=>{p.value.handleOpen()},TopPopup1:p,handleCancel:f,handleComfig:d,operBtn:i,actionBtn:s}},methods:{getColor(t){return t=="审核中"?"#FFA52D":t=="已驳回"?"#F14B4C":t=="已撤销"?"#CECECE":t=="已完成"?"#6DC743":"#1389FF"}}}),$e="",b=t=>(e.pushScopeId("data-v-b82b096a"),t=t(),e.popScopeId(),t),se={class:"process-warp"},ae={key:0,class:"process-main"},ne={class:"process-ml-item border"},le=b(()=>e.createElementVNode("div",{class:"process-mli-name"},"流程状态",-1)),re={class:"process-mli-value"},ce={class:"process-ml-item border"},ie=b(()=>e.createElementVNode("div",{class:"process-mli-name"},"流程发起时间",-1)),de={class:"process-mli-value"},pe={key:0,class:"process-ml-item"},me=b(()=>e.createElementVNode("div",{class:"process-mli-name"},"审批节点",-1)),ue={class:"process-mli-value"},fe={class:"process-mliv-jd"},_e={key:1,class:"process-foot"},he={class:"footBtnRow"},ye={class:"process-btn"},be={key:1,class:"elips"},ke=[b(()=>e.createElementVNode("div",{class:"circle"},null,-1)),b(()=>e.createElementVNode("div",{class:"circle"},null,-1)),b(()=>e.createElementVNode("div",{class:"circle"},null,-1))];function ge(t,o,p,r,c,i){const s=e.resolveComponent("TopTab"),f=e.resolveComponent("TopButton"),d=e.resolveComponent("TopPopup");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",se,[t.processStatus.status?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",ne,[le,e.createElementVNode("div",re,[t.processStatus.status||t.processStatus.bizStatusName?(e.openBlock(),e.createElementBlock("div",{key:0,class:"process-mliv-dd",style:e.normalizeStyle({background:t.getColor(t.processStatus.status)})},e.toDisplayString(t.processStatus.bizStatusName?t.processStatus.bizStatusName:t.processStatus.status),5)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",ce,[ie,e.createElementVNode("div",de,[e.createElementVNode("span",null,e.toDisplayString(t.processStatus.createTime),1)])]),t.processStatus.allUserNames&&t.processStatus.allUserNames.length?(e.openBlock(),e.createElementBlock("div",pe,[me,e.createElementVNode("div",ue,[e.createElementVNode("span",fe,e.toDisplayString(`${t.processStatus.taskState==4?t.processStatus.currUserName:t.processStatus.allUserNames.toString()}审批中`),1)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"process-card",style:e.normalizeStyle({height:t.processCardHeight})},[e.createVNode(s,{tapList:t.tapList},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["tapList"])],4),t.isAdditional?(e.openBlock(),e.createElementBlock("div",_e,[e.createElementVNode("div",he,[e.renderSlot(t.$slots,"btn",{},void 0,!0)])])):e.createCommentVNode("",!0),e.createElementVNode("div",ye,[t.processStatus.status!="已完成"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.operBtn,(n,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:n.name},[m<3?(e.openBlock(),e.createBlock(f,{key:0,onClick:t.handleTest,type:n.btnProps.type.toString()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.name),1)]),_:2},1032,["onClick","type"])):e.createCommentVNode("",!0)],64))),128)):e.createCommentVNode("",!0),t.operBtn.length>3?(e.openBlock(),e.createElementBlock("div",be,ke)):e.createCommentVNode("",!0)])]),e.createVNode(d,{ref:"TopPopup1",cancel:t.handleCancel,comfig:t.handleComfig},{default:e.withCtx(()=>[e.createTextVNode(" csaasd1 ")]),_:1},8,["cancel","comfig"])],64)}const g=B(oe,[["render",ge],["__scopeId","data-v-b82b096a"]]);g.install=function(t){return t.component(g.name,g),t};const Be=[y,g],Ne={install:function(t){Be.forEach(o=>{t.use(o)})}};_.TopProcess=g,_.TopTab=y,_.default=Ne,Object.defineProperties(_,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(_,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(_=typeof globalThis<"u"?globalThis:_||self,e(_.Design={},_.Vue))})(this,function(_,e){"use strict";const V={name:"TopTab",props:{tapList:{type:Array,default:()=>[]},selfTapList:{type:Array,default:()=>[]}},setup(t){const a=e.ref("http://59.53.91.231:8088/portal/r/w?sid=6f714ec1-7570-4525-ac51-b092402d8295&cmd=CLIENT_BPM_FORM_TRACK_OPEN&processInstId=1f6e7196-e1ea-428e-b295-aa23a54a2402&supportCanvas=true&formInfo="),r=e.ref([{actionName:"提交",activityName:"部门负责人",createDate:"2023-04-20 14:47:35",createUser:"18ccbf63229f0c79f39940ae284c111e",createUserName:"朱鸿飞",customUniqueId:"",departmentName:"测试部",id:"88df38c8-9756-4b4a-a9b0-dcb0ec1b57d5",metaAnnexList:null,msg:"同意",positionName:"测试部119147",processInstId:"1f6e7196-e1ea-428e-b295-aa23a54a2402",taskInstId:"38bbef1c-efbb-456d-bd79-08ed9d96b4b3"}]),o=e.ref(""),d=e.ref([{label:"基本信息",key:"a",type:"default",slot:"default"},{label:"流程图",key:"b",type:"default",slot:"tab2"},{label:"审批记录",key:"c",type:"default",slot:"tab3"}]),i=e.ref([{label:"基本信息",key:"a",type:"default",slot:"default"},{label:"流程图",key:"b",type:"default",slot:"tab2"},{label:"审批记录",key:"c",type:"default",slot:"tab3"}]),n=e.ref(),u=(l,m)=>{l!==o.value&&(o.value=l,p(m))},p=l=>{if(n.value.length){let m=document.getElementsByClassName("bottom-line")[0],c;if(m.offsetWidth<n.value[l].offsetWidth-10){let f=(n.value[l].offsetWidth-m.offsetWidth-10)/2;c=`${n.value[l].offsetLeft+f}px`}else if(m.offsetWidth>n.value[l].offsetWidth-10){let f=(m.offsetWidth-n.value[l].offsetWidth+10)/2;c=`${n.value[l].offsetLeft-f}px`}else c=`${n.value[l].offsetLeft}px`;m.style.transition=".3s",m.style.transform=`translateX(${c})`}};return e.watch(()=>t.selfTapList,(l,m)=>{l.length&&(i.value=[].concat(l),o.value=i.value[0].key)},{immediate:!0,deep:!0}),e.watch(()=>t.tapList,(l,m)=>{t.selfTapList.length||(i.value=[].concat(d.value),l.length>0&&l.forEach((c,f)=>{c.sort&&c.sort>1?i.value.splice(c.sort-1,0,c):c.sort==1?i.value.unshift(c):i.value.push(c)}),o.value=i.value[0].key)},{immediate:!0,deep:!0}),e.onMounted(()=>{p(0)}),{isTapList:i,active:o,handleActive:u,label:n,taskCommentList:r,trackUrl:a}}},Ee="",B=(t,a)=>{const r=t.__vccOpts||t;for(const[o,d]of a)r[o]=d;return r},h=t=>(e.pushScopeId("data-v-dfe642fd"),t=t(),e.popScopeId(),t),T={class:"tops-tab"},L={class:"tops-tab-header"},x=["onClick"],I={key:0,class:"bottom-line"},A={class:"tops-tab-body"},D=["src"],F={key:1,class:"textnone"},w={class:"seal-list__item--option"},P=h(()=>e.createElementVNode("span",null,"节点名称",-1)),U={class:"seal-list__item--option"},$=h(()=>e.createElementVNode("span",null,"审批人",-1)),j={class:"seal-list__item--option"},M=h(()=>e.createElementVNode("span",null,"审批操作",-1)),q={class:"seal-list__item--option"},z=h(()=>e.createElementVNode("span",null,"审批意见",-1)),O=["innerHTML"],W={class:"seal-list__item--option"},H=h(()=>e.createElementVNode("span",null,"审批时间",-1)),R={key:0,class:"seal-list__item--attch"},Y=[h(()=>e.createElementVNode("span",null,"查看附件",-1))],G={key:1,class:"textnone"};function K(t,a,r,o,d,i){return e.openBlock(),e.createElementBlock("div",T,[e.createElementVNode("div",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.isTapList,(n,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tops-tab-header-items",[n.key===o.active?"active":""]]),onClick:p=>o.handleActive(n.key,u),ref_for:!0,ref:"label"},e.toDisplayString(n.label),11,x))),256)),o.isTapList.length?(e.openBlock(),e.createElementBlock("div",I)):e.createCommentVNode("",!0)]),e.createElementVNode("div",A,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.isTapList,n=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:n.key,style:{height:"calc(100% - 45px)"}},[n.key==="a"&&n.type==="default"?e.renderSlot(t.$slots,"default",{key:0},void 0,!0):e.createCommentVNode("",!0),n.key==="b"&&n.type==="default"?e.renderSlot(t.$slots,n.slot,{key:1},()=>[o.trackUrl?(e.openBlock(),e.createElementBlock("iframe",{key:0,src:o.trackUrl,style:{width:"100%","min-height":"500px",border:"none"},scrolling:"no",frameborder:"0"},null,8,D)):(e.openBlock(),e.createElementBlock("div",F," 暂无流程图 "))],!0):e.createCommentVNode("",!0),n.key==="c"&&n.type==="default"?e.renderSlot(t.$slots,n.slot,{key:2},()=>{var u;return[((u=o.taskCommentList)==null?void 0:u.length)>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.taskCommentList,(p,l)=>(e.openBlock(),e.createElementBlock("div",{key:p.id,class:"seal-list__item"},[e.createElementVNode("div",null,[e.createElementVNode("div",w,[P,e.createElementVNode("span",null,e.toDisplayString(p.activityName),1)]),e.createElementVNode("div",U,[$,e.createElementVNode("span",null,e.toDisplayString(p.createUserName),1)]),e.createElementVNode("div",j,[M,e.createElementVNode("span",null,e.toDisplayString(p.actionName),1)]),e.createElementVNode("div",q,[z,e.createElementVNode("span",{innerHTML:p.msg},null,8,O)]),e.createElementVNode("div",W,[H,e.createElementVNode("span",null,e.toDisplayString(p.createDate),1)]),p.metaAnnexList&&p.metaAnnexList.length?(e.openBlock(),e.createElementBlock("div",R,Y)):e.createCommentVNode("",!0)])]))),128)):(e.openBlock(),e.createElementBlock("div",G,"暂无数据"))]},!0):e.createCommentVNode("",!0),n.type=="slot"?e.renderSlot(t.$slots,n.slot,{key:3},void 0,!0):e.createCommentVNode("",!0)])),[[e.vShow,o.active===n.key]])),128))])])}const y=B(V,[["render",K],["__scopeId","data-v-dfe642fd"]]);y.install=function(t){return t.component(y.name,y),t};const X={name:"TopPopup",props:{titleText:{default:"top-popup",type:String},cancelText:{default:"取消",type:String},comfigText:{default:"确定",type:String},comfig:{default:null,type:Function},cancel:{default:null,type:Function},isMask:{require:!1,default:!0,type:Boolean},isMaskClose:{require:!1,default:!0,type:Boolean}},setup(t){const a=e.ref(!1),r=()=>{a.value=!0},o=()=>{typeof t.cancel=="function"&&t.cancel(),i()},d=()=>{typeof t.comfig=="function"&&t.comfig()},i=()=>{a.value=!1};return e.onMounted(()=>{document.querySelector("body")}),{handleOpen:r,handleCancel:o,handleComfig:d,handleClose:i,show:a}}},Se="",J={class:"top-popup-header"},Q={class:"header-title"},Z={class:"top-popup-body"};function v(t,a,r,o,d,i){return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:"top-popup",style:e.normalizeStyle(o.show?"transform: translateY(0)":"transform: translateY(100%)")},[e.createElementVNode("div",J,[e.createElementVNode("div",{class:"header-cancel",onClick:a[0]||(a[0]=(...n)=>o.handleCancel&&o.handleCancel(...n))},e.toDisplayString(r.cancelText),1),e.createElementVNode("div",Q,e.toDisplayString(r.titleText),1),e.createElementVNode("div",{class:"header-comfig",onClick:a[1]||(a[1]=(...n)=>o.handleComfig&&o.handleComfig(...n))},e.toDisplayString(r.comfigText),1)]),e.createElementVNode("div",Z,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],4),o.show&&r.isMask?(e.openBlock(),e.createElementBlock("div",{key:0,class:"top-popup-mask",onClick:a[2]||(a[2]=n=>r.isMaskClose&&o.handleClose())})):e.createCommentVNode("",!0)],64)}const b=B(X,[["render",v],["__scopeId","data-v-5fc20816"]]);b.install=function(t){return console.log("TopPopup.install",t),t.mount(b),t.component(b.name,b),t};const Ve="",ee={name:"TopButton",props:{type:{default:"default",type:String}},setup(t){const a=e.ref({textColor:"#fff",bckColor:"3c9cff"});switch(t.type){case"primary":a.value.textColor="#fff",a.value.bckColor="#3c9cff";break;case"danger":a.value.textColor="rgb(255, 96, 96)",a.value.bckColor="rgb(255, 230, 230)";break;case"default":a.value.textColor="rgb(51, 51, 51)",a.value.bckColor="rgb(241, 241, 241)";break}return{style:a}}};function te(t,a,r,o,d,i){return e.openBlock(),e.createElementBlock("div",{class:"top-button",style:e.normalizeStyle(`background-color:${o.style.bckColor};color:${o.style.textColor}`)},[e.renderSlot(t.$slots,"default",{},void 0,!0)],4)}const N=B(ee,[["render",te],["__scopeId","data-v-3d3c6354"]]);N.install=function(t){return t.component(N.name,N),t};const oe={name:"TopProcess",components:{TopTab:y,TopPopup:b,TopButton:N},props:{tapList:{require:!1,default:()=>[],type:Array},processId:{require:!0,default:"",type:String},processDefId:{require:!0,default:"",type:String},taskId:{require:!0,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean}},setup(t){const a=e.ref({}),r=e.ref(),o=e.ref([{taskId:"ecd82a93-4a62-42a7-b7bd-df38d2f1609a",taskState:1,nodeId:"obj_026aac284c1a4303854f978b674be4b9",customUniqueId:"",nodeName:"部门负责人"}]),d=e.ref({id:"obj_026aac284c1a4303854f978b674be4b9",name:"部门负责人",no:"1",buttons:[],ccTaskButtonLabel:"",ccTaskButtonAnnex:null,completeButtonLabel:"同意",completeButtonAnnex:null,delegateTaskButtonLabel:"转办",delegateTaskButtonAnnex:null,printFormButtonLabel:"",supplyUnusualTransferButtonLabel:"",readingOfficeLabel:"",readingOfficeButtonAnnex:null,jointlySignLabel:"",jointlySignButtonAnnex:null,counterSignLabel:"加签",counterSignButtonAnnex:null,coordinationLabel:"",coordinationButtonAnnex:null,otherButtonAnnexList:null,humanPerformer:{id:"obj_2bd3494ae5c54309b7f2ea452921790b",name:"任意指定",resourceAssignmentExpressionModel:{formalExpression:""}},commentModels:[{actionName:"提交",isDefault:!0},{actionName:"作废",isDefault:!1}],routeTxt:{departmentIds:null,companyIds:null,teamList:null,routeType:"DynamicUsers"},loopCardinality:1,isHistoryRoute:!1,participantList:null,historyRoute:!1});e.watch(()=>t.processId,(c,f)=>{c&&(a.value={status:"审批中",createUid:"18ccbf63229f0c79f39940ae284c111e",createTopUserId:"128ec9c9b7f26135272596fe01c57690",createTime:"2023-04-20 15:01:48",currUserName:"朱鸿飞",allUserNames:["朱鸿飞"],userNodeGroup:{分管领导:["朱鸿飞"]},appId:"com.awspaas.user.apps.top.study.project",statusCode:"1",statusName:"审批中",bizStatusName:"审批中",taskState:1})},{immediate:!0,deep:!0}),console.log("asd",o.value[0].taskState);const i=e.computed(()=>{var C,S;let c=[],f=o.value&&o.value[0]&&o.value[0].taskState!=4;if(f&&!t.isView&&d.value.completeButtonLabel){let s={};s.name=d.value.completeButtonLabel,s.btnProps={type:"primary"},c.push(s)}if(f&&!t.isView&&a.value.currUserName){let s={};s.name="拒绝",s.btnProps={type:"danger"},c.push(s)}if(f&&!t.isView&&d.value.buttons&&d.value.buttons.length&&d.value.buttons.forEach(s=>{if(s.label==="退回"){let E={};E.name=s.label,E.btnProps={type:"danger"},c.push(E)}}),f&&!t.isView&&d.value.delegateTaskButtonLabel){let s={};s.name=d.value.delegateTaskButtonLabel,s.btnProps={type:"default"},c.push(s)}if(t.processId&&a.value.createTopUserId==t.userId&&((C=o.value[0])==null?void 0:C.taskState)!=2&&a.value.status!=="已驳回"&&a.value.status!=="已撤销"){let s={};s.name="催办",s.btnProps={type:"default"},c.push(s)}if(t.processId&&a.value.createTopUserId==t.userId&&((S=o.value[0])==null?void 0:S.taskState)!=2&&a.value.status!=="已驳回"&&a.value.status!=="已撤销"){let s={};s.name="撤销",s.btnProps={type:"default"},c.push(s)}if(f&&!t.isView&&d.value.counterSignLabel){let s={};s.name=d.value.counterSignLabel,s.btnProps={type:"primary"},c.push(s)}return c}),n=e.computed(()=>i.value.length>3?i.value.slice(3):[]),u=()=>{console.log("handleCancel")},p=()=>{console.log("handleComfig","确定按钮"),r.value.handleClose()},l=e.computed(()=>"calc(100vh - 205px)");return{processStatus:a,processCardHeight:l,handleTest:()=>{r.value.handleOpen()},TopPopup1:r,handleCancel:u,handleComfig:p,operBtn:i,actionBtn:n}},methods:{getColor(t){return t=="审核中"?"#FFA52D":t=="已驳回"?"#F14B4C":t=="已撤销"?"#CECECE":t=="已完成"?"#6DC743":"#1389FF"}}},Te="",k=t=>(e.pushScopeId("data-v-710eca2f"),t=t(),e.popScopeId(),t),ae={class:"process-warp"},ne={key:0,class:"process-main"},se={class:"process-ml-item border"},le=k(()=>e.createElementVNode("div",{class:"process-mli-name"},"流程状态",-1)),ce={class:"process-mli-value"},re={class:"process-ml-item border"},ie=k(()=>e.createElementVNode("div",{class:"process-mli-name"},"流程发起时间",-1)),de={class:"process-mli-value"},pe={key:0,class:"process-ml-item"},me=k(()=>e.createElementVNode("div",{class:"process-mli-name"},"审批节点",-1)),fe={class:"process-mli-value"},ue={class:"process-mliv-jd"},_e={key:1,class:"process-foot"},he={class:"footBtnRow"},ye={class:"process-btn"},ke={key:1,class:"elips"},be=[k(()=>e.createElementVNode("div",{class:"circle"},null,-1)),k(()=>e.createElementVNode("div",{class:"circle"},null,-1)),k(()=>e.createElementVNode("div",{class:"circle"},null,-1))];function ge(t,a,r,o,d,i){const n=e.resolveComponent("TopTab"),u=e.resolveComponent("TopButton"),p=e.resolveComponent("TopPopup");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",ae,[o.processStatus.status?(e.openBlock(),e.createElementBlock("div",ne,[e.createElementVNode("div",se,[le,e.createElementVNode("div",ce,[o.processStatus.status||o.processStatus.bizStatusName?(e.openBlock(),e.createElementBlock("div",{key:0,class:"process-mliv-dd",style:e.normalizeStyle({background:i.getColor(o.processStatus.status)})},e.toDisplayString(o.processStatus.bizStatusName?o.processStatus.bizStatusName:o.processStatus.status),5)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",re,[ie,e.createElementVNode("div",de,[e.createElementVNode("span",null,e.toDisplayString(o.processStatus.createTime),1)])]),o.processStatus.allUserNames&&o.processStatus.allUserNames.length?(e.openBlock(),e.createElementBlock("div",pe,[me,e.createElementVNode("div",fe,[e.createElementVNode("span",ue,e.toDisplayString(`${o.processStatus.taskState==4?o.processStatus.currUserName:o.processStatus.allUserNames.toString()}审批中`),1)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"process-card",style:e.normalizeStyle({height:o.processCardHeight})},[e.createVNode(n,{tapList:r.tapList},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["tapList"])],4),r.isAdditional?(e.openBlock(),e.createElementBlock("div",_e,[e.createElementVNode("div",he,[e.renderSlot(t.$slots,"btn",{},void 0,!0)])])):e.createCommentVNode("",!0),e.createElementVNode("div",ye,[o.processStatus.status!="已完成"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.operBtn,(l,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.name},[m<3?(e.openBlock(),e.createBlock(u,{key:0,onClick:o.handleTest,type:l.btnProps.type.toString()},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.name),1)]),_:2},1032,["onClick","type"])):e.createCommentVNode("",!0)],64))),128)):e.createCommentVNode("",!0),o.operBtn.length>3?(e.openBlock(),e.createElementBlock("div",ke,be)):e.createCommentVNode("",!0)])]),e.createVNode(p,{ref:"TopPopup1",cancel:o.handleCancel,comfig:o.handleComfig},{default:e.withCtx(()=>[e.createTextVNode(" csaasd1 ")]),_:1},8,["cancel","comfig"])],64)}const g=B(oe,[["render",ge],["__scopeId","data-v-710eca2f"]]);g.install=function(t){return t.component(g.name,g),t};const Be=[y,g],Ne={install:function(t){Be.forEach(a=>{t.use(a)})}};_.TopProcess=g,_.TopTab=y,_.default=Ne,Object.defineProperties(_,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/lib/style.css CHANGED
@@ -1 +1 @@
1
- .tops-tab[data-v-baad7ff1]{height:100%}.tops-tab-header[data-v-baad7ff1]{display:flex;width:100%;height:45px;font-size:14px;color:#333;padding:10px 17px;font-weight:500;box-sizing:border-box;overflow-x:auto;white-space:nowrap;flex-wrap:nowrap;flex-shrink:0;-ms-overflow-style:none;position:relative;background-color:#fff}.tops-tab-header[data-v-baad7ff1]:after{content:"";position:absolute;width:100%;height:1px;background-color:#f2f2f2;left:0;bottom:0;z-index:10}.tops-tab-header[data-v-baad7ff1]::-webkit-scrollbar{display:none}.tops-tab-header-items[data-v-baad7ff1]{white-space:nowrap;padding-right:10px;box-sizing:border-box;display:inline-block;height:100%;text-align:center;margin-right:32px;font-weight:400;font-size:15px;text-align:left;color:#333;display:flex;align-items:center}.tops-tab-header-items[data-v-baad7ff1]:last-child{padding-right:0;margin-right:0}.tops-tab-header .active[data-v-baad7ff1]{position:relative;color:#1389ff;font-family:PingFang SC Bold;font-weight:700;font-size:15px;text-align:left}.tops-tab-header .bottom-line[data-v-baad7ff1]{width:30px;height:3px;border-radius:1.5px;background-color:#1389ff;position:absolute;bottom:1px;left:0;z-index:12}.tops-tab-body[data-v-baad7ff1]{height:100%}.seal-list__item[data-v-baad7ff1]{padding:6px 10px 0;margin:10px 10px 0;background-color:#fff;border-radius:10px;box-sizing:border-box}.seal-list__item[data-v-baad7ff1]:last-child{margin-bottom:70px}.seal-list__item .seal-list__item--header[data-v-baad7ff1]{margin-bottom:6px;display:flex;align-items:center}.seal-list__item .seal-list__item--header span[data-v-baad7ff1]:first-of-type{font-size:15px;margin-right:6px;font-weight:700}.seal-list__item .seal-list__item--option[data-v-baad7ff1]{display:flex;justify-content:space-between;align-items:center;font-size:14px;padding:10px 0;color:#333}.seal-list__item .seal-list__item--option span[data-v-baad7ff1]:last-child{max-width:144px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#888}.seal-list__item .seal-list__item--attch[data-v-baad7ff1]{font-size:14px;padding:10px 0;color:#333;text-align:right;color:#1389ff}.seal-list__item .seal-list__item--actions[data-v-baad7ff1]{margin-top:12px;position:relative;display:flex;justify-content:space-around;align-items:center}.seal-list__item .seal-list__item--actions[data-v-baad7ff1] :before{content:"";top:0;width:100%;transform:scaleY(.5);transform-origin:top;border-top:1px #e8e8e8 solid;position:absolute}.seal-list__item .seal-list__item--actions .van-button[data-v-baad7ff1]{width:50%}.seal-list__item .seal-list__item--actions .van-button[data-v-baad7ff1] :after{content:"";height:60%;border-left:1px #e8e8e8 solid;position:absolute;left:100%;top:50%;transform:translate(-50%,-50%) scaleX(.5);transform-origin:left}.seal-list__item .seal-list__item--actions .van-button[data-v-baad7ff1]:last-child :after{content:none}.top-popup[data-v-474e328a]{width:100%;height:80vh;position:fixed;left:0;background-color:#fff;z-index:199;border-radius:20px 20px 0 0;padding:0 10px;box-sizing:border-box;transition:all .5s ease;bottom:0}.top-popup-mask[data-v-474e328a]{position:fixed;width:100vw;height:100vh;background-color:#000;opacity:.7;top:0;left:0;z-index:99}.top-popup-header[data-v-474e328a]{display:flex;justify-content:space-between;align-items:center;padding:10px 0}.top-popup-header .header-cancel[data-v-474e328a],.top-popup-header .header-comfig[data-v-474e328a]{color:#1389ff}.fade-enter-active[data-v-474e328a],.fade-leave-active[data-v-474e328a]{transition:all .5s ease}.fade-enter[data-v-474e328a],.fade-leave-to[data-v-474e328a]{bottom:-100%}.fade-enter-to[data-v-474e328a],.fade-leave[data-v-474e328a]{bottom:0d}.top-button[data-v-156a54e6]{width:100%;border-radius:20px;height:36px;background-color:#3c9cff;color:#fff;font-size:14px;justify-content:center;display:flex;align-items:center}.process-warp[data-v-b82b096a]{overflow:hidden;height:100vh;width:100%;position:relative;background-color:#f3f3f7}.process-main[data-v-b82b096a]{display:flex;justify-content:space-between;flex-direction:column;align-items:center;padding:0 17px;background:#fff;margin:0 0 10px}.process-main .border[data-v-b82b096a]{border-bottom:#e8e8e8 1px solid}.process-main .process-ml-item[data-v-b82b096a]{display:flex;align-items:center;font-size:15px;font-weight:400;width:100%;justify-content:space-between;height:44px}.process-main .process-ml-item .process-mli-name[data-v-b82b096a]{color:#333}.process-main .process-ml-item .process-mli-value[data-v-b82b096a]{color:#888}.process-main .process-ml-item .process-mli-value .process-mliv-dd[data-v-b82b096a]{height:26px;min-width:30px;padding:0 12px;border-radius:20px;background:#1389ff;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px}.process-main .process-ml-item .process-mli-value .process-mliv-jd[data-v-b82b096a]{color:#1389ff}.process-btn[data-v-b82b096a]{display:flex;min-height:60px;padding-top:5px;background:#fff;border-top:1px solid #dddddf9e;box-sizing:border-box;justify-content:center;align-items:center;flex-direction:row-reverse}.process-btn .top-button[data-v-b82b096a],.process-btn .elips[data-v-b82b096a]{margin:0 5px}.elips[data-v-b82b096a]{min-width:60px;height:100%;background-color:#fff;display:flex;justify-content:center;align-items:center}.elips .circle[data-v-b82b096a]{width:6px;height:6px;margin:0 2px;background-color:#333;border-radius:50%}
1
+ .tops-tab[data-v-dfe642fd]{height:100%}.tops-tab-header[data-v-dfe642fd]{display:flex;width:100%;height:45px;font-size:14px;color:#333;padding:10px 17px;font-weight:500;box-sizing:border-box;overflow-x:auto;white-space:nowrap;flex-wrap:nowrap;flex-shrink:0;-ms-overflow-style:none;position:relative;background-color:#fff}.tops-tab-header[data-v-dfe642fd]:after{content:"";position:absolute;width:100%;height:1px;background-color:#f2f2f2;left:0;bottom:0;z-index:10}.tops-tab-header[data-v-dfe642fd]::-webkit-scrollbar{display:none}.tops-tab-header-items[data-v-dfe642fd]{white-space:nowrap;padding-right:10px;box-sizing:border-box;display:inline-block;height:100%;text-align:center;margin-right:32px;font-weight:400;font-size:15px;text-align:left;color:#333;display:flex;align-items:center}.tops-tab-header-items[data-v-dfe642fd]:last-child{padding-right:0;margin-right:0}.tops-tab-header .active[data-v-dfe642fd]{position:relative;color:#1389ff;font-family:PingFang SC Bold;font-weight:700;font-size:15px;text-align:left}.tops-tab-header .bottom-line[data-v-dfe642fd]{width:30px;height:3px;border-radius:1.5px;background-color:#1389ff;position:absolute;bottom:1px;left:0;z-index:12}.tops-tab-body[data-v-dfe642fd]{height:100%}.seal-list__item[data-v-dfe642fd]{padding:6px 10px 0;margin:10px 10px 0;background-color:#fff;border-radius:10px;box-sizing:border-box}.seal-list__item[data-v-dfe642fd]:last-child{margin-bottom:70px}.seal-list__item .seal-list__item--header[data-v-dfe642fd]{margin-bottom:6px;display:flex;align-items:center}.seal-list__item .seal-list__item--header span[data-v-dfe642fd]:first-of-type{font-size:15px;margin-right:6px;font-weight:700}.seal-list__item .seal-list__item--option[data-v-dfe642fd]{display:flex;justify-content:space-between;align-items:center;font-size:14px;padding:10px 0;color:#333}.seal-list__item .seal-list__item--option span[data-v-dfe642fd]:last-child{max-width:144px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#888}.seal-list__item .seal-list__item--attch[data-v-dfe642fd]{font-size:14px;padding:10px 0;color:#333;text-align:right;color:#1389ff}.seal-list__item .seal-list__item--actions[data-v-dfe642fd]{margin-top:12px;position:relative;display:flex;justify-content:space-around;align-items:center}.seal-list__item .seal-list__item--actions[data-v-dfe642fd] :before{content:"";top:0;width:100%;transform:scaleY(.5);transform-origin:top;border-top:1px #e8e8e8 solid;position:absolute}.seal-list__item .seal-list__item--actions .van-button[data-v-dfe642fd]{width:50%}.seal-list__item .seal-list__item--actions .van-button[data-v-dfe642fd] :after{content:"";height:60%;border-left:1px #e8e8e8 solid;position:absolute;left:100%;top:50%;transform:translate(-50%,-50%) scaleX(.5);transform-origin:left}.seal-list__item .seal-list__item--actions .van-button[data-v-dfe642fd]:last-child :after{content:none}.top-popup[data-v-5fc20816]{width:100%;height:80vh;position:fixed;left:0;background-color:#fff;z-index:199;border-radius:20px 20px 0 0;padding:0 10px;box-sizing:border-box;transition:all .5s ease;bottom:0}.top-popup-mask[data-v-5fc20816]{position:fixed;width:100vw;height:100vh;background-color:#000;opacity:.7;top:0;left:0;z-index:99}.top-popup-header[data-v-5fc20816]{display:flex;justify-content:space-between;align-items:center;padding:10px 0}.top-popup-header .header-cancel[data-v-5fc20816],.top-popup-header .header-comfig[data-v-5fc20816]{color:#1389ff}.fade-enter-active[data-v-5fc20816],.fade-leave-active[data-v-5fc20816]{transition:all .5s ease}.fade-enter[data-v-5fc20816],.fade-leave-to[data-v-5fc20816]{bottom:-100%}.fade-enter-to[data-v-5fc20816],.fade-leave[data-v-5fc20816]{bottom:0d}.top-button[data-v-3d3c6354]{width:100%;border-radius:20px;height:36px;background-color:#3c9cff;color:#fff;font-size:14px;justify-content:center;display:flex;align-items:center}.process-warp[data-v-710eca2f]{overflow:hidden;height:100vh;width:100%;position:relative;background-color:#f3f3f7}.process-main[data-v-710eca2f]{display:flex;justify-content:space-between;flex-direction:column;align-items:center;padding:0 17px;background:#fff;margin:0 0 10px}.process-main .border[data-v-710eca2f]{border-bottom:#e8e8e8 1px solid}.process-main .process-ml-item[data-v-710eca2f]{display:flex;align-items:center;font-size:15px;font-weight:400;width:100%;justify-content:space-between;height:44px}.process-main .process-ml-item .process-mli-name[data-v-710eca2f]{color:#333}.process-main .process-ml-item .process-mli-value[data-v-710eca2f]{color:#888}.process-main .process-ml-item .process-mli-value .process-mliv-dd[data-v-710eca2f]{height:26px;min-width:30px;padding:0 12px;border-radius:20px;background:#1389ff;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px}.process-main .process-ml-item .process-mli-value .process-mliv-jd[data-v-710eca2f]{color:#1389ff}.process-btn[data-v-710eca2f]{display:flex;min-height:60px;padding-top:5px;background:#fff;border-top:1px solid #dddddf9e;box-sizing:border-box;justify-content:center;align-items:center;flex-direction:row-reverse}.process-btn .top-button[data-v-710eca2f],.process-btn .elips[data-v-710eca2f]{margin:0 5px}.elips[data-v-710eca2f]{min-width:60px;height:100%;background-color:#fff;display:flex;justify-content:center;align-items:center}.elips .circle[data-v-710eca2f]{width:6px;height:6px;margin:0 2px;background-color:#333;border-radius:50%}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ui-process-h5",
3
3
  "private": false,
4
4
  "description": "流程组件",
5
- "version": "0.1.26",
5
+ "version": "0.1.27",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "dev": "vite",
@@ -8,7 +8,7 @@
8
8
  </template>
9
9
  <script>
10
10
  import { defineComponent, ref, watch, computed, onMounted } from "vue-demi";
11
- export default defineComponent({
11
+ export default {
12
12
  name: "TopButton",
13
13
  props: {
14
14
  type: { default: "default", type: String },
@@ -38,7 +38,7 @@ export default defineComponent({
38
38
  style,
39
39
  };
40
40
  },
41
- });
41
+ }
42
42
  </script>
43
43
  <style scoped>
44
44
  .top-button {
@@ -27,7 +27,7 @@
27
27
  <script lang="ts">
28
28
  import { defineComponent, ref, watch, computed, onMounted } from "vue-demi";
29
29
 
30
- export default defineComponent({
30
+ export default {
31
31
  name: "TopPopup",
32
32
  props: {
33
33
  titleText: { default: "top-popup", type: String },
@@ -70,7 +70,7 @@ export default defineComponent({
70
70
  show,
71
71
  };
72
72
  },
73
- });
73
+ }
74
74
  </script>
75
75
  <style scoped>
76
76
  .top-popup {
@@ -89,7 +89,7 @@ import TopPopup from "../../popup";
89
89
  import TopButton from "../../button";
90
90
  // import { getProcessStatus } from "../../utils/request/api";
91
91
 
92
- export default defineComponent({
92
+ export default {
93
93
  name: "TopProcess",
94
94
  components: {
95
95
  TopTab,
@@ -348,7 +348,7 @@ export default defineComponent({
348
348
  return "#1389FF";
349
349
  },
350
350
  },
351
- });
351
+ }
352
352
  </script>
353
353
 
354
354
  <style scoped>
@@ -96,7 +96,7 @@
96
96
  import { defineComponent, ref, watch, onMounted, computed } from "vue-demi";
97
97
  // import { getProcessStatus } from "../../utils/request/api";
98
98
 
99
- export default defineComponent({
99
+ export default {
100
100
  name: "TopTab",
101
101
  props: {
102
102
  /**
@@ -287,7 +287,7 @@ export default defineComponent({
287
287
  trackUrl,
288
288
  };
289
289
  },
290
- });
290
+ };
291
291
  </script>
292
292
 
293
293
  <style scoped>