xyvcard-itsm-flow 0.0.16 → 0.0.17

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,21 +1,21 @@
1
- import { defineComponent as E, ref as _, reactive as H, resolveComponent as s, resolveDirective as W, createElementBlock as F, openBlock as w, createElementVNode as b, createVNode as l, createBlock as A, createCommentVNode as $, withCtx as a, withKeys as y, unref as n, createTextVNode as V, toDisplayString as c, withDirectives as G, isRef as S } from "vue";
1
+ import { defineComponent as E, ref as V, reactive as H, resolveComponent as u, resolveDirective as W, createElementBlock as F, openBlock as y, createElementVNode as N, createVNode as t, createBlock as A, createCommentVNode as h, withCtx as a, withKeys as c, unref as n, createTextVNode as k, toDisplayString as d, withDirectives as G, isRef as S } from "vue";
2
2
  import { useTableHooks as J } from "jmash-core";
3
3
  import { useI18n as M } from "vue-i18n";
4
- import { D as v, i as X } from "./index-DVDOqO_3.mjs";
4
+ import { D as f, i as X } from "./index-DVDOqO_3.mjs";
5
5
  import { _ as Y } from "./info.vue_vue_type_script_setup_true_lang-CYmFW8We.mjs";
6
- const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["onClick"], ie = /* @__PURE__ */ E({
6
+ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["onClick"], ue = /* @__PURE__ */ E({
7
7
  __name: "index",
8
- setup(te) {
9
- v.orgIdBizDict.useValues();
10
- const { t: N } = M(), r = _({}), {
11
- tableHooks: i,
12
- multipleTableRef: D,
13
- queryFormRef: R,
14
- listLoading: j,
15
- tableData: U,
16
- total: f
17
- } = J(N, X, r);
18
- let m = _([
8
+ setup(le) {
9
+ f.orgIdBizDict.useValues();
10
+ const { t: g } = M(), r = V({}), {
11
+ tableHooks: s,
12
+ multipleTableRef: U,
13
+ queryFormRef: D,
14
+ listLoading: R,
15
+ tableData: O,
16
+ total: b
17
+ } = J(g, X, r);
18
+ let v = V([
19
19
  {
20
20
  label: "itsmFlowAcceptance.contractName",
21
21
  prop: "contractName",
@@ -85,45 +85,45 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
85
85
  isColumn: !0
86
86
  }
87
87
  ]);
88
- const p = _({
89
- title: N("common.view"),
88
+ const m = V({
89
+ title: g("common.view"),
90
90
  visible: !1
91
91
  });
92
92
  let C = H({});
93
- function P(o) {
94
- C = { ...o }, p.value.title = N("common.view"), p.value.visible = !0;
95
- }
96
- function T(o) {
97
- i.selectionRows.value = o;
93
+ function j(o) {
94
+ C = { ...o }, m.value.title = g("common.view"), m.value.visible = !0;
98
95
  }
99
96
  function q(o) {
100
- i.handleSort(o.prop, o.order);
97
+ s.selectionRows.value = o;
98
+ }
99
+ function K(o) {
100
+ s.handleSort(o.prop, o.order);
101
101
  }
102
- return i.getList(), (o, t) => {
103
- const g = s("el-input"), d = s("el-form-item"), u = s("el-col"), z = s("jmash-select"), h = s("el-button"), k = s("el-row"), K = s("el-form"), Q = s("jmash-column-select"), B = s("jmash-table"), O = s("jmash-pagination"), I = s("el-card"), L = W("hasPerm");
104
- return w(), F("div", Z, [
105
- b("div", x, [
106
- l(K, {
102
+ return s.getList(), (o, e) => {
103
+ const w = u("el-input"), p = u("el-form-item"), i = u("el-col"), P = u("jmash-select"), _ = u("el-button"), $ = u("el-row"), Q = u("el-form"), T = u("jmash-column-select"), z = u("jmash-table"), B = u("jmash-pagination"), I = u("el-card"), L = W("hasPerm");
104
+ return y(), F("div", Z, [
105
+ N("div", x, [
106
+ t(Q, {
107
107
  ref_key: "queryFormRef",
108
- ref: R,
108
+ ref: D,
109
109
  model: r.value,
110
110
  inline: !0
111
111
  }, {
112
112
  default: a(() => [
113
- l(k, null, {
113
+ t($, null, {
114
114
  default: a(() => [
115
- l(u, { span: 6 }, {
115
+ t(i, { span: 6 }, {
116
116
  default: a(() => [
117
- l(d, {
117
+ t(p, {
118
118
  label: o.$t("itsmFlowAcceptance.contractName"),
119
119
  prop: "likeContractName"
120
120
  }, {
121
121
  default: a(() => [
122
- l(g, {
122
+ t(w, {
123
123
  modelValue: r.value.likeContractName,
124
- "onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.likeContractName = e),
124
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => r.value.likeContractName = l),
125
125
  placeholder: o.$t("itsmFlowAcceptance.contractNameRequired"),
126
- onKeyup: t[1] || (t[1] = y((e) => n(i).handleQuery(), ["enter"])),
126
+ onKeyup: e[1] || (e[1] = c((l) => n(s).handleQuery(), ["enter"])),
127
127
  class: "!w-[203px]"
128
128
  }, null, 8, ["modelValue", "placeholder"])
129
129
  ]),
@@ -132,18 +132,18 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
132
132
  ]),
133
133
  _: 1
134
134
  }),
135
- l(u, { span: 6 }, {
135
+ t(i, { span: 6 }, {
136
136
  default: a(() => [
137
- l(d, {
137
+ t(p, {
138
138
  label: o.$t("itsmFlowAcceptance.contractNo"),
139
139
  prop: "likeContractNo"
140
140
  }, {
141
141
  default: a(() => [
142
- l(g, {
142
+ t(w, {
143
143
  modelValue: r.value.likeContractNo,
144
- "onUpdate:modelValue": t[2] || (t[2] = (e) => r.value.likeContractNo = e),
144
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => r.value.likeContractNo = l),
145
145
  placeholder: o.$t("itsmFlowAcceptance.contractNoRequired"),
146
- onKeyup: t[3] || (t[3] = y((e) => n(i).handleQuery(), ["enter"])),
146
+ onKeyup: e[3] || (e[3] = c((l) => n(s).handleQuery(), ["enter"])),
147
147
  class: "!w-[203px]"
148
148
  }, null, 8, ["modelValue", "placeholder"])
149
149
  ]),
@@ -152,18 +152,58 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
152
152
  ]),
153
153
  _: 1
154
154
  }),
155
- l(u, { span: 6 }, {
155
+ t(i, { span: 6 }, {
156
156
  default: a(() => [
157
- l(d, {
157
+ t(p, {
158
158
  label: o.$t("itsmFlowAcceptance.acceptanceNo"),
159
159
  prop: "acceptanceNo"
160
160
  }, {
161
161
  default: a(() => [
162
- l(g, {
162
+ t(w, {
163
163
  modelValue: r.value.acceptanceNo,
164
- "onUpdate:modelValue": t[4] || (t[4] = (e) => r.value.acceptanceNo = e),
164
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => r.value.acceptanceNo = l),
165
165
  placeholder: o.$t("itsmFlowAcceptance.acceptanceNoRequired"),
166
- onKeyup: t[5] || (t[5] = y((e) => n(i).handleQuery(), ["enter"])),
166
+ onKeyup: e[5] || (e[5] = c((l) => n(s).handleQuery(), ["enter"])),
167
+ class: "!w-[203px]"
168
+ }, null, 8, ["modelValue", "placeholder"])
169
+ ]),
170
+ _: 1
171
+ }, 8, ["label"])
172
+ ]),
173
+ _: 1
174
+ }),
175
+ t(i, { span: 6 }, {
176
+ default: a(() => [
177
+ t(p, {
178
+ label: o.$t("itsmFlowAcceptance.userName"),
179
+ prop: "likeUserName"
180
+ }, {
181
+ default: a(() => [
182
+ t(w, {
183
+ modelValue: r.value.likeUserName,
184
+ "onUpdate:modelValue": e[6] || (e[6] = (l) => r.value.likeUserName = l),
185
+ placeholder: o.$t("itsmFlowAcceptance.userNameRequired"),
186
+ onKeyup: e[7] || (e[7] = c((l) => n(s).handleQuery(), ["enter"])),
187
+ class: "!w-[203px]"
188
+ }, null, 8, ["modelValue", "placeholder"])
189
+ ]),
190
+ _: 1
191
+ }, 8, ["label"])
192
+ ]),
193
+ _: 1
194
+ }),
195
+ t(i, { span: 6 }, {
196
+ default: a(() => [
197
+ t(p, {
198
+ label: o.$t("itsmFlowAcceptance.serviceOrg"),
199
+ prop: "likeServiceOrg"
200
+ }, {
201
+ default: a(() => [
202
+ t(w, {
203
+ modelValue: r.value.likeServiceOrg,
204
+ "onUpdate:modelValue": e[8] || (e[8] = (l) => r.value.likeServiceOrg = l),
205
+ placeholder: o.$t("itsmFlowAcceptance.serviceOrgRequired"),
206
+ onKeyup: e[9] || (e[9] = c((l) => n(s).handleQuery(), ["enter"])),
167
207
  class: "!w-[203px]"
168
208
  }, null, 8, ["modelValue", "placeholder"])
169
209
  ]),
@@ -172,19 +212,19 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
172
212
  ]),
173
213
  _: 1
174
214
  }),
175
- l(u, { span: 6 }, {
215
+ t(i, { span: 6 }, {
176
216
  default: a(() => [
177
- l(d, {
217
+ t(p, {
178
218
  label: o.$t("itsmFlowAcceptance.applyStatus"),
179
219
  prop: "applyStatus"
180
220
  }, {
181
221
  default: a(() => [
182
- l(z, {
222
+ t(P, {
183
223
  modelValue: r.value.applyStatus,
184
- "onUpdate:modelValue": t[6] || (t[6] = (e) => r.value.applyStatus = e),
224
+ "onUpdate:modelValue": e[10] || (e[10] = (l) => r.value.applyStatus = l),
185
225
  placeholder: o.$t("itsmFlowAcceptance.applyStatusRequired"),
186
- data: n(v).applyStatusEnum.values,
187
- onKeyup: t[7] || (t[7] = y((e) => n(i).handleQuery(), ["enter"]))
226
+ data: n(f).applyStatusEnum.values,
227
+ onKeyup: e[11] || (e[11] = c((l) => n(s).handleQuery(), ["enter"]))
188
228
  }, null, 8, ["modelValue", "placeholder", "data"])
189
229
  ]),
190
230
  _: 1
@@ -192,24 +232,24 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
192
232
  ]),
193
233
  _: 1
194
234
  }),
195
- l(u, { span: 24 }, {
235
+ t(i, { span: 12 }, {
196
236
  default: a(() => [
197
- l(d, { class: "search-btn" }, {
237
+ t(p, { class: "search-btn" }, {
198
238
  default: a(() => [
199
- l(h, {
239
+ t(_, {
200
240
  type: "primary",
201
- onClick: t[8] || (t[8] = (e) => n(i).handleQuery())
241
+ onClick: e[12] || (e[12] = (l) => n(s).handleQuery())
202
242
  }, {
203
243
  default: a(() => [
204
- V(c(o.$t("common.search")), 1)
244
+ k(d(o.$t("common.search")), 1)
205
245
  ]),
206
246
  _: 1
207
247
  }),
208
- l(h, {
209
- onClick: t[9] || (t[9] = (e) => n(i).resetQuery())
248
+ t(_, {
249
+ onClick: e[13] || (e[13] = (l) => n(s).resetQuery())
210
250
  }, {
211
251
  default: a(() => [
212
- V(c(o.$t("common.reset")), 1)
252
+ k(d(o.$t("common.reset")), 1)
213
253
  ]),
214
254
  _: 1
215
255
  })
@@ -226,22 +266,22 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
226
266
  _: 1
227
267
  }, 8, ["model"])
228
268
  ]),
229
- l(I, {
269
+ t(I, {
230
270
  shadow: "never",
231
271
  class: "table-container"
232
272
  }, {
233
273
  header: a(() => [
234
- l(k, null, {
274
+ t($, null, {
235
275
  default: a(() => [
236
- l(u, { span: 17 }),
237
- l(u, {
276
+ t(i, { span: 17 }),
277
+ t(i, {
238
278
  span: 7,
239
279
  class: "container-float"
240
280
  }, {
241
281
  default: a(() => [
242
- l(Q, {
243
- modelValue: n(m),
244
- "onUpdate:modelValue": t[10] || (t[10] = (e) => S(m) ? m.value = e : m = e),
282
+ t(T, {
283
+ modelValue: n(v),
284
+ "onUpdate:modelValue": e[14] || (e[14] = (l) => S(v) ? v.value = l : v = l),
245
285
  "label-name": "itsm-flow-acceptance"
246
286
  }, null, 8, ["modelValue"])
247
287
  ]),
@@ -252,43 +292,43 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
252
292
  })
253
293
  ]),
254
294
  footer: a(() => [
255
- n(f) > 0 ? (w(), A(O, {
295
+ n(b) > 0 ? (y(), A(B, {
256
296
  key: 0,
257
- total: n(f),
258
- "onUpdate:total": t[11] || (t[11] = (e) => S(f) ? f.value = e : null),
297
+ total: n(b),
298
+ "onUpdate:total": e[15] || (e[15] = (l) => S(b) ? b.value = l : null),
259
299
  "current-page": r.value.curPage,
260
- "onUpdate:currentPage": t[12] || (t[12] = (e) => r.value.curPage = e),
300
+ "onUpdate:currentPage": e[16] || (e[16] = (l) => r.value.curPage = l),
261
301
  "page-size": r.value.pageSize,
262
- "onUpdate:pageSize": t[13] || (t[13] = (e) => r.value.pageSize = e),
263
- onPagination: t[14] || (t[14] = (e) => n(i).getList())
264
- }, null, 8, ["total", "current-page", "page-size"])) : $("", !0)
302
+ "onUpdate:pageSize": e[17] || (e[17] = (l) => r.value.pageSize = l),
303
+ onPagination: e[18] || (e[18] = (l) => n(s).getList())
304
+ }, null, 8, ["total", "current-page", "page-size"])) : h("", !0)
265
305
  ]),
266
306
  default: a(() => [
267
- l(B, {
307
+ t(z, {
268
308
  ref_key: "multipleTableRef",
269
- ref: D,
309
+ ref: U,
270
310
  "row-key": "acceptanceId",
271
- "list-loading": n(j),
272
- data: n(U),
273
- "table-label": n(m),
274
- onSelectionChange: T,
275
- onSortChange: q
311
+ "list-loading": n(R),
312
+ data: n(O),
313
+ "table-label": n(v),
314
+ onSelectionChange: q,
315
+ onSortChange: K
276
316
  }, {
277
- entrustName: a((e) => [
278
- b("span", null, c(n(v).projectNameDict.getDictValue(e.data.row.entrustName)), 1)
317
+ entrustName: a((l) => [
318
+ N("span", null, d(n(f).projectNameDict.getDictValue(l.data.row.entrustName)), 1)
279
319
  ]),
280
- serviceOrg: a((e) => [
281
- b("span", null, c(n(v).orgIdBizDict.getValue(e.data.row.serviceOrg)), 1)
320
+ serviceOrg: a((l) => [
321
+ N("span", null, d(n(f).orgIdBizDict.getValue(l.data.row.serviceOrg)), 1)
282
322
  ]),
283
- result: a((e) => [
284
- b("span", null, c(n(v).isValuesDict.getValue(e.data.row.result)), 1)
323
+ result: a((l) => [
324
+ N("span", null, d(n(f).isValuesDict.getValue(l.data.row.result)), 1)
285
325
  ]),
286
- operation: a((e) => [
287
- G((w(), F("span", {
326
+ operation: a((l) => [
327
+ G((y(), F("span", {
288
328
  class: "el-button-color",
289
- onClick: (le) => P(e.data.row)
329
+ onClick: (te) => j(l.data.row)
290
330
  }, [
291
- V(c(o.$t("common.view")), 1)
331
+ k(d(o.$t("common.view")), 1)
292
332
  ], 8, ee)), [
293
333
  [L, ["itsmflow:itsm_flow_acceptance:view"]]
294
334
  ])
@@ -298,18 +338,18 @@ const Z = { class: "app-container" }, x = { class: "search-container" }, ee = ["
298
338
  ]),
299
339
  _: 1
300
340
  }),
301
- p.value.visible ? (w(), A(Y, {
341
+ m.value.visible ? (y(), A(Y, {
302
342
  key: 0,
303
- modelValue: p.value.visible,
304
- "onUpdate:modelValue": t[15] || (t[15] = (e) => p.value.visible = e),
305
- title: p.value.title,
343
+ modelValue: m.value.visible,
344
+ "onUpdate:modelValue": e[19] || (e[19] = (l) => m.value.visible = l),
345
+ title: m.value.title,
306
346
  "entity-key": n(C),
307
347
  width: "900px"
308
- }, null, 8, ["modelValue", "title", "entity-key"])) : $("", !0)
348
+ }, null, 8, ["modelValue", "title", "entity-key"])) : h("", !0)
309
349
  ]);
310
350
  };
311
351
  }
312
352
  });
313
353
  export {
314
- ie as default
354
+ ue as default
315
355
  };