xyvcard-itsm-flow 0.0.5 → 0.0.6

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.
@@ -1,13 +1,13 @@
1
- import { defineComponent as z, mergeModels as M, ref as v, useModel as q, resolveComponent as d, openBlock as b, createBlock as A, withCtx as t, createVNode as e, createElementVNode as P, createTextVNode as u, toDisplayString as r, unref as w, createElementBlock as E, withDirectives as C, vShow as $, createCommentVNode as R } from "vue";
1
+ import { defineComponent as j, mergeModels as z, ref as v, useModel as S, resolveComponent as p, openBlock as b, createBlock as q, withCtx as t, createVNode as e, createElementVNode as A, createTextVNode as u, toDisplayString as r, unref as w, createElementBlock as E, withDirectives as C, vShow as $, createCommentVNode as L } from "vue";
2
2
  import "element-plus";
3
- import { useRoute as S } from "vue-router";
4
- import { D as c, i as K, b as T } from "./index-DKtAcP6b.mjs";
5
- const L = { key: 0 }, W = { key: 1 }, G = {
3
+ import { useRoute as P } from "vue-router";
4
+ import { D as c, i as R, b as T, C as K } from "./index-DKtAcP6b.mjs";
5
+ const W = { key: 0 }, G = { key: 1 }, H = {
6
6
  key: 2,
7
7
  class: "distance-left"
8
- }, Y = /* @__PURE__ */ z({
8
+ }, Z = /* @__PURE__ */ j({
9
9
  __name: "index",
10
- props: /* @__PURE__ */ M({
10
+ props: /* @__PURE__ */ z({
11
11
  task: {
12
12
  type: Object,
13
13
  default: () => {
@@ -18,21 +18,21 @@ const L = { key: 0 }, W = { key: 1 }, G = {
18
18
  modelModifiers: {}
19
19
  }),
20
20
  emits: ["update:modelValue"],
21
- setup(g, { expose: h }) {
21
+ setup(I, { expose: h }) {
22
22
  c.parentIdBizDict.useValues(), c.orgIdBizDict.useValues();
23
- const V = S(), I = g, f = v({
23
+ const V = P(), g = I, f = v({
24
24
  curPage: 1,
25
25
  pageSize: 10,
26
26
  applyId: V.query.applyId
27
- }), n = v({}), p = q(g, "modelValue"), k = v(), D = v({});
27
+ }), n = v({}), d = S(I, "modelValue"), k = v(), D = v({});
28
28
  function N(l) {
29
29
  l.mobileEncrypt = !l.mobileEncrypt;
30
30
  }
31
- I.task.businessKey && B(), h({
32
- changeModel: () => O()
31
+ g.task.businessKey && O(), h({
32
+ changeModel: () => U()
33
33
  });
34
- function B() {
35
- f.value.applyId = I.task.businessKey, K.findById({ entrustId: f.value.applyId }).then(({ data: l }) => {
34
+ function O() {
35
+ f.value.applyId = g.task.businessKey, R.findById({ entrustId: f.value.applyId }).then(({ data: l }) => {
36
36
  n.value = Object.assign(n.value, l), T.findList({ actionId: f.value.applyId }).then(({ data: m }) => {
37
37
  n.value.entrustUser = [], m.results.forEach((o) => {
38
38
  o.actionId == f.value.applyId && n.value.entrustUser.push({
@@ -42,20 +42,20 @@ const L = { key: 0 }, W = { key: 1 }, G = {
42
42
  });
43
43
  });
44
44
  }
45
- function O() {
46
- return p.value && (p.value.selectActions = [
45
+ function U() {
46
+ return d.value && (d.value.selectActions = [
47
47
  { key: "true", value: "同意" },
48
48
  { key: "false", value: "不同意" }
49
- ], p.value.varName = "approved", p.value.module = ""), new Promise((l, m) => {
49
+ ], d.value.varName = "approved", d.value.module = "", d.value.module = K.MODULE_ITSMFLOW), new Promise((l, m) => {
50
50
  var o;
51
51
  (o = k.value) == null || o.validate((s) => {
52
- s ? (p.value && (p.value.comment = ""), l(!0)) : m(!1);
52
+ s ? (d.value && (d.value.comment = ""), l(!0)) : m(!1);
53
53
  });
54
54
  });
55
55
  }
56
56
  return (l, m) => {
57
- const o = d("el-col"), s = d("el-row"), i = d("el-form-item"), _ = d("el-table-column"), F = d("svg-icon"), U = d("el-table"), j = d("el-form");
58
- return b(), A(j, {
57
+ const o = p("el-col"), s = p("el-row"), i = p("el-form-item"), _ = p("el-table-column"), F = p("svg-icon"), B = p("el-table"), M = p("el-form");
58
+ return b(), q(M, {
59
59
  ref_key: "taskFormRef",
60
60
  ref: k,
61
61
  model: D.value,
@@ -66,7 +66,7 @@ const L = { key: 0 }, W = { key: 1 }, G = {
66
66
  default: t(() => [
67
67
  e(o, { span: 12 }, {
68
68
  default: t(() => m[0] || (m[0] = [
69
- P("div", { class: "title" }, "委托服务订单", -1)
69
+ A("div", { class: "title" }, "委托服务订单", -1)
70
70
  ])),
71
71
  _: 1
72
72
  })
@@ -251,7 +251,7 @@ const L = { key: 0 }, W = { key: 1 }, G = {
251
251
  default: t(() => [
252
252
  e(o, { span: 14 }, {
253
253
  default: t(() => [
254
- e(U, {
254
+ e(B, {
255
255
  stripe: "",
256
256
  data: n.value.entrustUser,
257
257
  style: { width: "100%" }
@@ -271,8 +271,8 @@ const L = { key: 0 }, W = { key: 1 }, G = {
271
271
  label: l.$t("itsmFlowEntrustUser.idNo")
272
272
  }, {
273
273
  default: t((a) => [
274
- a.row.mobileEncrypt ? (b(), E("span", W, r(a.row.idNo), 1)) : (b(), E("span", L, r(a.row.idNoIns), 1)),
275
- a.row.idNoIns ? (b(), E("span", G, [
274
+ a.row.mobileEncrypt ? (b(), E("span", G, r(a.row.idNo), 1)) : (b(), E("span", W, r(a.row.idNoIns), 1)),
275
+ a.row.idNoIns ? (b(), E("span", H, [
276
276
  C(e(F, {
277
277
  "icon-class": "close-eye",
278
278
  onClick: (y) => N(a.row)
@@ -285,7 +285,7 @@ const L = { key: 0 }, W = { key: 1 }, G = {
285
285
  }, null, 8, ["onClick"]), [
286
286
  [$, a.row.mobileEncrypt]
287
287
  ])
288
- ])) : R("", !0)
288
+ ])) : L("", !0)
289
289
  ]),
290
290
  _: 1
291
291
  }, 8, ["label"]),
@@ -323,5 +323,5 @@ const L = { key: 0 }, W = { key: 1 }, G = {
323
323
  }
324
324
  });
325
325
  export {
326
- Y as default
326
+ Z as default
327
327
  };
package/dist/index.mjs CHANGED
@@ -2676,7 +2676,7 @@ const xi = {
2676
2676
  }
2677
2677
  };
2678
2678
  }
2679
- }, Ri = /* @__PURE__ */ Object.assign({ "./views/itsm-flow-entrust/edit.vue": () => import("./edit-CWxy8_xc.mjs"), "./views/itsm-flow-entrust/index.vue": () => import("./index-C_jhIPZS.mjs") }), Ni = () => import("./index-D2S33QtO.mjs"), Fi = {
2679
+ }, Ri = /* @__PURE__ */ Object.assign({ "./views/itsm-flow-entrust/edit.vue": () => import("./edit-CWxy8_xc.mjs"), "./views/itsm-flow-entrust/index.vue": () => import("./index-C_jhIPZS.mjs") }), Ni = () => import("./index-DdDM4ocv.mjs"), Fi = {
2680
2680
  install(e) {
2681
2681
  Ds(Ri, 7), Ts(vs), ps("TaskItsmFlowEntrust", Ni), e.use(xi);
2682
2682
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-itsm-flow",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",