xyvcard-itsm-flow 0.0.25 → 0.0.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/dist/{FileSaver.min-Dlb0564v.mjs → FileSaver.min-DDqwfEMu.mjs} +1 -1
- package/dist/{edit-b1Qpq27u.mjs → edit-BH_qEChy.mjs} +1 -1
- package/dist/{edit-X4DuZAeC.mjs → edit-BWaFYsWY.mjs} +2 -2
- package/dist/{edit-DGLeO86x.mjs → edit-BpAjiLxu.mjs} +36 -36
- package/dist/{edit-Bb1ZMrgr.mjs → edit-CkGTDSiH.mjs} +1 -1
- package/dist/{edit-DEz__zGH.mjs → edit-D0-xQV59.mjs} +1 -1
- package/dist/{edit-DYzjfcpe.mjs → edit-DIyC972n.mjs} +45 -43
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DDFusQ6S.mjs → edit.vue_vue_type_script_setup_true_lang-CEHUWh-t.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DK-kdI-u.mjs → edit.vue_vue_type_script_setup_true_lang-CxUe7kvR.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-COV7eZfh.mjs → edit.vue_vue_type_script_setup_true_lang-DcDT5675.mjs} +1 -1
- package/dist/{index-COlNrHOr.mjs → index-B20ya3NZ.mjs} +56 -56
- package/dist/{index-B3Od63yb.mjs → index-BKQGui3N.mjs} +3 -3
- package/dist/{index-ChiSO5mf.mjs → index-BKveaoi_.mjs} +18 -18
- package/dist/{index-Cc1yu7_y.mjs → index-Bjjyjlwd.mjs} +1 -1
- package/dist/{index-C6QayKyI.mjs → index-BkqkF7bW.mjs} +1 -1
- package/dist/{index-uhCfQAOU.mjs → index-C3zQQDPa.mjs} +3 -3
- package/dist/{index-BjIcvBcw.mjs → index-CGDEQO2p.mjs} +2 -2
- package/dist/{index-XQliRAX-.mjs → index-CI9FMMKr.mjs} +9 -9
- package/dist/{index-DReilvk8.mjs → index-CQ9elIv7.mjs} +2 -2
- package/dist/{index-D4hmXu0K.mjs → index-CV6uWLV9.mjs} +68 -68
- package/dist/{index-BzzIS37Q.mjs → index-CXOeg2so.mjs} +1426 -1444
- package/dist/{index-ZQIeIrUc.mjs → index-Cd9CTAUb.mjs} +27 -27
- package/dist/{index-Crv7Y3gz.mjs → index-Chh_9yED.mjs} +21 -21
- package/dist/{index-UIHGXuWX.mjs → index-CillImY_.mjs} +128 -128
- package/dist/{index-41pGjG4z.mjs → index-CjYlJigX.mjs} +13 -13
- package/dist/{index-CsRdrLdB.mjs → index-D6Poyzq3.mjs} +2 -2
- package/dist/{index-Dr2VSx72.mjs → index-DBRVK73O.mjs} +2 -2
- package/dist/{index-CTX-1ZJN.mjs → index-DTY8LR57.mjs} +1 -1
- package/dist/{index-BnbyM6r8.mjs → index-DY5EGkfi.mjs} +3 -3
- package/dist/{index-Ddn-uP9d.mjs → index-DcDzU5zK.mjs} +44 -44
- package/dist/{index-DB_7mB_B.mjs → index-DfptoNZ3.mjs} +93 -85
- package/dist/{index-DTmCekOe.mjs → index-DjZysfQB.mjs} +26 -26
- package/dist/index-DxoX_XqQ.mjs +384 -0
- package/dist/{index-CUdCuMce.mjs → index-QPdQNctc.mjs} +5 -5
- package/dist/{index-CK8x-scl.mjs → index-WpTFFCXY.mjs} +3 -3
- package/dist/{index-CJmsWz8H.mjs → index-YBHgdjIk.mjs} +25 -25
- package/dist/{index-Dx_iePKi.mjs → index-n6pwVFlo.mjs} +1 -1
- package/dist/{index-DsEA0PWP.mjs → index-qvWMlGg9.mjs} +2 -2
- package/dist/{index-BL1EL_Kk.mjs → index-rHARbj0G.mjs} +3 -3
- package/dist/index.mjs +1 -1
- package/dist/{info-ChOjJGUZ.mjs → info-0Dcd8VrX.mjs} +1 -1
- package/dist/{info-CqJnfPyk.mjs → info-BmfgBiif.mjs} +1 -1
- package/dist/{info-Cu1I8L0Q.mjs → info-C1J_4HDK.mjs} +1 -1
- package/dist/{info-C7BOFhdZ.mjs → info-DTZck-Y6.mjs} +1 -1
- package/dist/info-DjtHpeoT.mjs +4 -0
- package/dist/info-qIG0jebP.mjs +4 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-C9LpdXNC.mjs → info.vue_vue_type_script_setup_true_lang-0cRfUL0q.mjs} +10 -10
- package/dist/{info.vue_vue_type_script_setup_true_lang-BupLtTsI.mjs → info.vue_vue_type_script_setup_true_lang-BeDGwXfi.mjs} +8 -8
- package/dist/{info.vue_vue_type_script_setup_true_lang-CxZBVr6Z.mjs → info.vue_vue_type_script_setup_true_lang-CETcd2E0.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-CwpN4E5Y.mjs → info.vue_vue_type_script_setup_true_lang-CEoQybvz.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-D36lalXS.mjs → info.vue_vue_type_script_setup_true_lang-CdfnKI3-.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-_Rd1Paqi.mjs → info.vue_vue_type_script_setup_true_lang-CzLGZ50z.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/lang/itsm-flow/zh-cn.d.ts +2 -2
- package/package.json +1 -1
- package/dist/index-M_tEOKq6.mjs +0 -366
- package/dist/info-DDaeV1sJ.mjs +0 -4
- package/dist/info-DstAR0-a.mjs +0 -4
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as oe, mergeModels as ne, computed as ae, ref as f, useModel as se, resolveComponent as p, createElementBlock as k, openBlock as _, Fragment as P, createVNode as e, withCtx as l, createElementVNode as a, createTextVNode as r, toDisplayString as u, unref as b, createCommentVNode as I, withDirectives as A, vShow as B, createBlock as O, renderList as re } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { u as ue } from "./index-CvX2It1o.mjs";
|
|
4
|
-
import { a as ie } from "./index-
|
|
5
|
-
import { D as C, C as $, a as de } from "./index-
|
|
4
|
+
import { a as ie } from "./index-CXOeg2so.mjs";
|
|
5
|
+
import { D as C, C as $, a as de } from "./index-DTY8LR57.mjs";
|
|
6
6
|
import { i as S, t as ce, a as pe } from "./common-Cwl5jzlM.mjs";
|
|
7
7
|
import "jmash-core";
|
|
8
8
|
import { useI18n as me } from "vue-i18n";
|
|
9
|
-
import { F as fe } from "./FileSaver.min-
|
|
9
|
+
import { F as fe } from "./FileSaver.min-DDqwfEMu.mjs";
|
|
10
10
|
import { E as j } from "./el-message-BJAl6Gwu.mjs";
|
|
11
11
|
const _e = { key: 0 }, ve = { key: 1 }, be = {
|
|
12
12
|
key: 2,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as A, mergeModels as z, getCurrentInstance as R, ref as _, useModel as Y, nextTick as j, resolveComponent as b, createElementBlock as v, openBlock as c, Fragment as k, createVNode as l, withCtx as e, createElementVNode as C, createTextVNode as r, toDisplayString as u, renderList as T, unref as w, createBlock as M } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { i as H } from "./index-
|
|
4
|
-
import { D as m, i as K, C as W } from "./index-
|
|
3
|
+
import { i as H } from "./index-CXOeg2so.mjs";
|
|
4
|
+
import { D as m, i as K, C as W } from "./index-DTY8LR57.mjs";
|
|
5
5
|
import { useUserStoreHook as q, fileApi as G } from "jmash-core";
|
|
6
6
|
import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
7
|
const Q = /* @__PURE__ */ A({
|
|
@@ -18,17 +18,17 @@ const Q = /* @__PURE__ */ A({
|
|
|
18
18
|
}),
|
|
19
19
|
emits: ["update:modelValue"],
|
|
20
20
|
setup(F, { expose: V }) {
|
|
21
|
-
const { proxy: x } = R(),
|
|
21
|
+
const { proxy: x } = R(), B = q();
|
|
22
22
|
m.userExtBizDict.useValues();
|
|
23
|
-
const h = _(), p = Y(F, "modelValue"),
|
|
23
|
+
const h = _(), p = Y(F, "modelValue"), O = _({}), g = _([]), I = _([]), $ = _([]), n = _({}), L = F;
|
|
24
24
|
console.log(m.fileTypeDict.values.slice(2, 3)), console.log(m.fileTypeDict.values.slice(3, 4)), K.findFilesList({ actionId: L.task.businessKey }).then((t) => {
|
|
25
|
-
var
|
|
25
|
+
var a, f;
|
|
26
26
|
g.value = t.data.results, console.log(t.data.results, "=> files");
|
|
27
|
-
const s = ((
|
|
27
|
+
const s = ((a = m.fileTypeDict.values.slice(2, 3)[0]) == null ? void 0 : a.dictCode) || "", o = ((f = m.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : f.dictCode) || "";
|
|
28
28
|
I.value = g.value.filter(
|
|
29
29
|
(i) => i.fileSort === s
|
|
30
30
|
), $.value = g.value.filter(
|
|
31
|
-
(i) => i.fileSort ===
|
|
31
|
+
(i) => i.fileSort === o
|
|
32
32
|
);
|
|
33
33
|
}), H.findById({ temporaryId: L.task.businessKey }).then(({ data: t }) => {
|
|
34
34
|
n.value = t, n.value.outOrgId = t.outOrgId, j(() => {
|
|
@@ -37,48 +37,48 @@ const Q = /* @__PURE__ */ A({
|
|
|
37
37
|
});
|
|
38
38
|
async function N(t) {
|
|
39
39
|
try {
|
|
40
|
-
const s = G.fileUrl(t.filePath),
|
|
40
|
+
const s = G.fileUrl(t.filePath), a = await (await fetch(s)).blob(), f = window.URL.createObjectURL(a), i = document.createElement("a");
|
|
41
41
|
i.href = f, i.download = t.fileName || "download", document.body.appendChild(i), i.click();
|
|
42
42
|
} catch {
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
V({
|
|
46
|
-
changeModel: () =>
|
|
46
|
+
changeModel: () => E()
|
|
47
47
|
});
|
|
48
|
-
function
|
|
48
|
+
function E() {
|
|
49
49
|
return p.value && (p.value.selectActions = [
|
|
50
50
|
{ key: "true", value: "同意" },
|
|
51
51
|
{ key: "false", value: "不同意" }
|
|
52
52
|
], p.value.varName = "approved", p.value.module = "", p.value.module = W.MODULE_ITSMFLOW), new Promise((t, s) => {
|
|
53
|
-
var
|
|
54
|
-
(
|
|
55
|
-
|
|
53
|
+
var o;
|
|
54
|
+
(o = h.value) == null || o.validate((a) => {
|
|
55
|
+
a ? (p.value && (p.value.comment = ""), t(!0)) : s(!1);
|
|
56
56
|
});
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
return (t, s) => {
|
|
60
|
-
const
|
|
60
|
+
const o = b("el-col"), a = b("el-form-item"), f = b("el-button"), i = b("el-row"), P = b("el-form");
|
|
61
61
|
return c(), v(k, null, [
|
|
62
|
-
l(
|
|
62
|
+
l(o, { span: 24 }, {
|
|
63
63
|
default: e(() => s[0] || (s[0] = [
|
|
64
64
|
C("div", { class: "title" }, "内部临时工单", -1)
|
|
65
65
|
])),
|
|
66
66
|
_: 1,
|
|
67
67
|
__: [0]
|
|
68
68
|
}),
|
|
69
|
-
l(
|
|
69
|
+
l(P, {
|
|
70
70
|
ref_key: "taskFormRef",
|
|
71
71
|
ref: h,
|
|
72
|
-
model:
|
|
72
|
+
model: O.value,
|
|
73
73
|
"label-width": "150px",
|
|
74
74
|
class: "custom-table-form custom-form"
|
|
75
75
|
}, {
|
|
76
76
|
default: e(() => [
|
|
77
77
|
l(i, null, {
|
|
78
78
|
default: e(() => [
|
|
79
|
-
l(
|
|
79
|
+
l(o, { span: 24 }, {
|
|
80
80
|
default: e(() => [
|
|
81
|
-
l(
|
|
81
|
+
l(a, {
|
|
82
82
|
label: t.$t("itsmFlowTemporary.title"),
|
|
83
83
|
prop: "title"
|
|
84
84
|
}, {
|
|
@@ -90,9 +90,9 @@ const Q = /* @__PURE__ */ A({
|
|
|
90
90
|
]),
|
|
91
91
|
_: 1
|
|
92
92
|
}),
|
|
93
|
-
l(
|
|
93
|
+
l(o, { span: 24 }, {
|
|
94
94
|
default: e(() => [
|
|
95
|
-
l(
|
|
95
|
+
l(a, {
|
|
96
96
|
label: t.$t("itsmFlowTemporary.content"),
|
|
97
97
|
prop: "content"
|
|
98
98
|
}, {
|
|
@@ -104,9 +104,9 @@ const Q = /* @__PURE__ */ A({
|
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
106
106
|
}),
|
|
107
|
-
l(
|
|
107
|
+
l(o, { span: 24 }, {
|
|
108
108
|
default: e(() => [
|
|
109
|
-
(c(!0), v(k, null, T(w(m).fileTypeDict.values.slice(2, 3), (d,
|
|
109
|
+
(c(!0), v(k, null, T(w(m).fileTypeDict.values.slice(2, 3), (d, S) => (c(), M(a, {
|
|
110
110
|
key: d.dictCode,
|
|
111
111
|
label: d.dictName
|
|
112
112
|
}, {
|
|
@@ -121,7 +121,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
121
121
|
link: "",
|
|
122
122
|
size: "small",
|
|
123
123
|
class: "icon-right",
|
|
124
|
-
onClick: (
|
|
124
|
+
onClick: (U) => N(y)
|
|
125
125
|
}, {
|
|
126
126
|
default: e(() => s[1] || (s[1] = [
|
|
127
127
|
r(" 查看 ")
|
|
@@ -136,22 +136,22 @@ const Q = /* @__PURE__ */ A({
|
|
|
136
136
|
]),
|
|
137
137
|
_: 1
|
|
138
138
|
}),
|
|
139
|
-
l(
|
|
139
|
+
l(o, { span: 12 }, {
|
|
140
140
|
default: e(() => [
|
|
141
|
-
l(
|
|
142
|
-
label: t.$t("itsmFlowTemporary.
|
|
141
|
+
l(a, {
|
|
142
|
+
label: t.$t("itsmFlowTemporary.createBy")
|
|
143
143
|
}, {
|
|
144
144
|
default: e(() => [
|
|
145
|
-
r(u(w(
|
|
145
|
+
r(u(w(B).user.realName), 1)
|
|
146
146
|
]),
|
|
147
147
|
_: 1
|
|
148
148
|
}, 8, ["label"])
|
|
149
149
|
]),
|
|
150
150
|
_: 1
|
|
151
151
|
}),
|
|
152
|
-
l(
|
|
152
|
+
l(o, { span: 12 }, {
|
|
153
153
|
default: e(() => [
|
|
154
|
-
l(
|
|
154
|
+
l(a, {
|
|
155
155
|
label: t.$t("itsmFlowTemporary.createTime"),
|
|
156
156
|
prop: "createTime"
|
|
157
157
|
}, {
|
|
@@ -169,10 +169,10 @@ const Q = /* @__PURE__ */ A({
|
|
|
169
169
|
]),
|
|
170
170
|
_: 1
|
|
171
171
|
}),
|
|
172
|
-
l(
|
|
172
|
+
l(o, { span: 24 }, {
|
|
173
173
|
default: e(() => [
|
|
174
|
-
l(
|
|
175
|
-
label: t.$t("itsmFlowTemporary.
|
|
174
|
+
l(a, {
|
|
175
|
+
label: t.$t("itsmFlowTemporary.userIdTemporary"),
|
|
176
176
|
prop: "userId"
|
|
177
177
|
}, {
|
|
178
178
|
default: e(() => [
|
|
@@ -183,9 +183,9 @@ const Q = /* @__PURE__ */ A({
|
|
|
183
183
|
]),
|
|
184
184
|
_: 1
|
|
185
185
|
}),
|
|
186
|
-
l(
|
|
186
|
+
l(o, { span: 12 }, {
|
|
187
187
|
default: e(() => [
|
|
188
|
-
l(
|
|
188
|
+
l(a, {
|
|
189
189
|
label: t.$t("itsmFlowTemporary.handlingPeriod"),
|
|
190
190
|
prop: "handlingPeriod"
|
|
191
191
|
}, {
|
|
@@ -197,9 +197,9 @@ const Q = /* @__PURE__ */ A({
|
|
|
197
197
|
]),
|
|
198
198
|
_: 1
|
|
199
199
|
}),
|
|
200
|
-
l(
|
|
200
|
+
l(o, { span: 12 }, {
|
|
201
201
|
default: e(() => [
|
|
202
|
-
l(
|
|
202
|
+
l(a, {
|
|
203
203
|
label: t.$t("itsmFlowTemporary.finishDate"),
|
|
204
204
|
prop: "finishDate"
|
|
205
205
|
}, {
|
|
@@ -211,9 +211,9 @@ const Q = /* @__PURE__ */ A({
|
|
|
211
211
|
]),
|
|
212
212
|
_: 1
|
|
213
213
|
}),
|
|
214
|
-
l(
|
|
214
|
+
l(o, { span: 24 }, {
|
|
215
215
|
default: e(() => [
|
|
216
|
-
l(
|
|
216
|
+
l(a, {
|
|
217
217
|
label: t.$t("itsmFlowTemporary.completion"),
|
|
218
218
|
prop: "completion"
|
|
219
219
|
}, {
|
|
@@ -225,9 +225,9 @@ const Q = /* @__PURE__ */ A({
|
|
|
225
225
|
]),
|
|
226
226
|
_: 1
|
|
227
227
|
}),
|
|
228
|
-
l(
|
|
228
|
+
l(o, { span: 24 }, {
|
|
229
229
|
default: e(() => [
|
|
230
|
-
(c(!0), v(k, null, T(w(m).fileTypeDict.values.slice(3, 4), (d,
|
|
230
|
+
(c(!0), v(k, null, T(w(m).fileTypeDict.values.slice(3, 4), (d, S) => (c(), M(a, {
|
|
231
231
|
key: d.dictCode,
|
|
232
232
|
label: d.dictName
|
|
233
233
|
}, {
|
|
@@ -242,7 +242,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
242
242
|
link: "",
|
|
243
243
|
size: "small",
|
|
244
244
|
class: "icon-right",
|
|
245
|
-
onClick: (
|
|
245
|
+
onClick: (U) => N(y)
|
|
246
246
|
}, {
|
|
247
247
|
default: e(() => s[2] || (s[2] = [
|
|
248
248
|
r(" 查看 ")
|
|
@@ -266,7 +266,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
266
266
|
], 64);
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
-
}),
|
|
269
|
+
}), ae = /* @__PURE__ */ J(Q, [["__scopeId", "data-v-5f4e0191"]]);
|
|
270
270
|
export {
|
|
271
|
-
|
|
271
|
+
ae as default
|
|
272
272
|
};
|