xyvcard-itsmsys 0.0.4 → 0.0.5

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,12 +1,12 @@
1
- import { _ as S } from "./index-BRupqW34.mjs";
2
- import { defineComponent as B, ref as f, reactive as O, resolveComponent as i, openBlock as b, createElementBlock as E, createVNode as e, withCtx as l, unref as r, createTextVNode as K, toDisplayString as A, createBlock as q, createCommentVNode as v } from "vue";
1
+ import { _ as K } from "./index-BRupqW34.mjs";
2
+ import { defineComponent as S, ref as f, reactive as O, resolveComponent as i, openBlock as b, createElementBlock as B, createVNode as e, withCtx as l, unref as r, createTextVNode as E, toDisplayString as A, createBlock as q, createCommentVNode as v } from "vue";
3
3
  import { ElMessage as w } from "element-plus";
4
4
  import { useI18n as F } from "vue-i18n";
5
5
  import { useRoute as G } from "vue-router";
6
6
  import { C as j } from "./index-ChTssr8-.mjs";
7
7
  import { sysOrgApi as y } from "./index.mjs";
8
8
  import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-CNEAZibd.mjs";
9
- const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
9
+ const z = { class: "app-container" }, oe = /* @__PURE__ */ S({
10
10
  __name: "edit",
11
11
  setup(H) {
12
12
  const { t: m } = F(), p = G(), _ = f(), c = f("first"), g = f("");
@@ -87,13 +87,13 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
87
87
  u.status === 200 && (w({
88
88
  message: m("common.submitSuccess"),
89
89
  type: "success"
90
- }), g.value = u.data.orgId, c.value = "second");
90
+ }), g.value = u.data.orgId, p.query.entityKey = g.value, c.value = "second");
91
91
  }));
92
92
  }));
93
93
  };
94
94
  return (t, a) => {
95
- const s = i("el-input"), d = i("el-form-item"), u = i("el-col"), N = S, T = i("el-row"), C = i("el-button"), U = i("el-form"), V = i("el-tab-pane"), k = i("el-tabs"), I = i("el-card");
96
- return b(), E("div", z, [
95
+ const s = i("el-input"), d = i("el-form-item"), u = i("el-col"), N = K, T = i("el-row"), C = i("el-button"), U = i("el-form"), V = i("el-tab-pane"), k = i("el-tabs"), I = i("el-card");
96
+ return b(), B("div", z, [
97
97
  e(I, { shadow: "never" }, {
98
98
  default: l(() => [
99
99
  e(k, {
@@ -304,7 +304,7 @@ const z = { class: "app-container" }, oe = /* @__PURE__ */ B({
304
304
  onClick: M
305
305
  }, {
306
306
  default: l(() => [
307
- K(A(t.$t("common.save")), 1)
307
+ E(A(t.$t("common.save")), 1)
308
308
  ]),
309
309
  _: 1
310
310
  })
@@ -1,16 +1,15 @@
1
- import { defineComponent as W, ref as P, resolveComponent as s, resolveDirective as X, openBlock as p, createElementBlock as h, createElementVNode as V, createVNode as o, withCtx as l, withKeys as g, unref as a, createTextVNode as m, toDisplayString as u, withDirectives as _, createBlock as T, isRef as Y } from "vue";
2
- import { useTableHooks as Z } from "jmash-core";
3
- import { useI18n as x } from "vue-i18n";
4
- import { C as N, D as ee } from "./index-ChTssr8-.mjs";
1
+ import { defineComponent as J, ref as P, resolveComponent as s, resolveDirective as W, openBlock as p, createElementBlock as h, createElementVNode as V, createVNode as o, withCtx as l, withKeys as g, unref as a, createTextVNode as m, toDisplayString as u, withDirectives as _, createBlock as T, isRef as X } from "vue";
2
+ import { useTableHooks as Y } from "jmash-core";
3
+ import { useI18n as Z } from "vue-i18n";
4
+ import { C as x, D as ee } from "./index-ChTssr8-.mjs";
5
5
  import { sysOrgApi as oe } from "./index.mjs";
6
6
  import { useRouter as te } from "vue-router";
7
- const le = { class: "app-container" }, ne = { class: "search-container" }, se = ["onClick"], ae = ["onClick"], re = ["onClick"], be = /* @__PURE__ */ W({
7
+ const le = { class: "app-container" }, ne = { class: "search-container" }, se = ["onClick"], ae = ["onClick"], re = ["onClick"], be = /* @__PURE__ */ J({
8
8
  __name: "index",
9
9
  setup(de) {
10
- const { t: R } = x(), w = te(), d = P({
11
- depth: N.depth,
12
- orgType: N.orgType.hall
13
- }), { tableHooks: r, multipleTableRef: E, queryFormRef: G, listLoading: I, tableData: B } = Z(R, oe, d);
10
+ const { t: N } = Z(), w = te(), d = P({
11
+ orgType: x.orgType.hall
12
+ }), { tableHooks: r, multipleTableRef: R, queryFormRef: E, listLoading: G, tableData: I } = Y(N, oe, d);
14
13
  let y = P([
15
14
  {
16
15
  label: "sysGov.orgName",
@@ -69,37 +68,37 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, se =
69
68
  isColumn: !0
70
69
  }
71
70
  ]);
72
- function j(t) {
71
+ function B(t) {
73
72
  t.mobileEncrypt = !t.mobileEncrypt;
74
73
  }
75
- function q() {
74
+ function j() {
76
75
  w.push({ path: "/rawitsmsys/itsm-sys-gov/edit" });
77
76
  }
78
- function D(t) {
77
+ function q(t) {
79
78
  w.push({
80
79
  path: "/rawitsmsys/itsm-sys-gov/edit",
81
80
  query: { entityKey: t.orgId }
82
81
  });
83
82
  }
84
- function M(t) {
83
+ function D(t) {
85
84
  w.push({
86
85
  path: "/rawitsmsys/itsm-sys-gov/govInfo",
87
86
  query: { orgId: t.orgId }
88
87
  });
89
88
  }
90
- function S(t) {
89
+ function M(t) {
91
90
  r.selectionRows.value = t;
92
91
  }
93
- function U(t) {
92
+ function S(t) {
94
93
  r.handleSort(t.prop, t.order);
95
94
  }
96
95
  return r.findList(), (t, n) => {
97
- const C = s("el-input"), f = s("el-form-item"), c = s("el-col"), K = s("jmash-select"), v = s("el-button"), k = s("el-row"), O = s("el-form"), Q = s("jmash-column-select"), L = s("jmash-mobileIns-component"), z = s("Bottom"), $ = s("el-icon"), A = s("Top"), F = s("el-switch"), H = s("jmash-table"), J = s("el-card"), b = X("hasPerm");
96
+ const C = s("el-input"), f = s("el-form-item"), c = s("el-col"), U = s("jmash-select"), v = s("el-button"), k = s("el-row"), K = s("el-form"), O = s("jmash-column-select"), Q = s("jmash-mobileIns-component"), L = s("Bottom"), $ = s("el-icon"), z = s("Top"), A = s("el-switch"), F = s("jmash-table"), H = s("el-card"), b = W("hasPerm");
98
97
  return p(), h("div", le, [
99
98
  V("div", ne, [
100
- o(O, {
99
+ o(K, {
101
100
  ref_key: "queryFormRef",
102
- ref: G,
101
+ ref: E,
103
102
  model: d.value,
104
103
  inline: !0
105
104
  }, {
@@ -155,7 +154,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, se =
155
154
  prop: "status"
156
155
  }, {
157
156
  default: l(() => [
158
- o(K, {
157
+ o(U, {
159
158
  modelValue: d.value.status,
160
159
  "onUpdate:modelValue": n[4] || (n[4] = (e) => d.value.status = e),
161
160
  placeholder: t.$t("sysGov.statusRequired"),
@@ -204,7 +203,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, se =
204
203
  }, 8, ["model"]),
205
204
  n[10] || (n[10] = V("div", { class: "clear" }, null, -1))
206
205
  ]),
207
- o(J, {
206
+ o(H, {
208
207
  shadow: "never",
209
208
  class: "table-container"
210
209
  }, {
@@ -215,7 +214,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, se =
215
214
  default: l(() => [
216
215
  _((p(), T(v, {
217
216
  type: "primary",
218
- onClick: q
217
+ onClick: j
219
218
  }, {
220
219
  default: l(() => [
221
220
  m(u(t.$t("common.add")), 1)
@@ -243,9 +242,9 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, se =
243
242
  class: "container-float"
244
243
  }, {
245
244
  default: l(() => [
246
- o(Q, {
245
+ o(O, {
247
246
  modelValue: a(y),
248
- "onUpdate:modelValue": n[9] || (n[9] = (e) => Y(y) ? y.value = e : y = e),
247
+ "onUpdate:modelValue": n[9] || (n[9] = (e) => X(y) ? y.value = e : y = e),
249
248
  "label-name": "itsmsys/itsm-sys-gov"
250
249
  }, null, 8, ["modelValue"])
251
250
  ]),
@@ -256,22 +255,22 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, se =
256
255
  })
257
256
  ]),
258
257
  default: l(() => [
259
- o(H, {
258
+ o(F, {
260
259
  ref_key: "multipleTableRef",
261
- ref: E,
260
+ ref: R,
262
261
  "row-key": "orgId",
263
- "list-loading": a(I),
264
- data: a(B),
262
+ "list-loading": a(G),
263
+ data: a(I),
265
264
  "table-label": a(y),
266
- onSelectionChange: S,
267
- onSortChange: U
265
+ onSelectionChange: M,
266
+ onSortChange: S
268
267
  }, {
269
268
  contactPersonMobile: l((e) => [
270
- o(L, {
269
+ o(Q, {
271
270
  mobilePhoneIns: e.data.row.contactPersonMobileIns,
272
271
  mobilePhone: e.data.row.contactPersonMobile,
273
272
  mobileEncrypt: e.data.row.mobileEncrypt,
274
- onToggleEncrypt: (i) => j(e.data.row)
273
+ onToggleEncrypt: (i) => B(e.data.row)
275
274
  }, null, 8, ["mobilePhoneIns", "mobilePhone", "mobileEncrypt", "onToggleEncrypt"])
276
275
  ]),
277
276
  orderBy: l((e) => [
@@ -280,7 +279,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, se =
280
279
  onClick: (i) => a(r).handleMove(e.data.row, !1)
281
280
  }, {
282
281
  default: l(() => [
283
- o(z)
282
+ o(L)
284
283
  ]),
285
284
  _: 2
286
285
  }, 1032, ["onClick"]),
@@ -289,13 +288,13 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, se =
289
288
  onClick: (i) => a(r).handleMove(e.data.row, !0)
290
289
  }, {
291
290
  default: l(() => [
292
- o(A)
291
+ o(z)
293
292
  ]),
294
293
  _: 2
295
294
  }, 1032, ["onClick"])
296
295
  ]),
297
296
  status: l((e) => [
298
- o(F, {
297
+ o(A, {
299
298
  modelValue: e.data.row.status,
300
299
  "onUpdate:modelValue": (i) => e.data.row.status = i,
301
300
  onChange: (i) => a(r).enableRecord(e.data.row, e.data.row.status)
@@ -304,7 +303,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, se =
304
303
  operation: l((e) => [
305
304
  _((p(), h("span", {
306
305
  class: "el-button-color",
307
- onClick: (i) => D(e.data.row)
306
+ onClick: (i) => q(e.data.row)
308
307
  }, [
309
308
  m(u(t.$t("common.edit")), 1)
310
309
  ], 8, se)), [
@@ -320,7 +319,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, se =
320
319
  ]),
321
320
  _((p(), h("span", {
322
321
  class: "el-button-color dropdown-left",
323
- onClick: (i) => M(e.data.row)
322
+ onClick: (i) => D(e.data.row)
324
323
  }, [
325
324
  m(u(t.$t("common.view")), 1)
326
325
  ], 8, re)), [
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Layout as Ys, deepMerge as bt, useUserStore as Y, clearEmpty as O, request as b, addViteMenus as Os, addDynamicRoute as bs, i18n as Ts } from "jmash-core";
2
- const Ps = () => import("./edit-CkaU_6vk.mjs"), Rs = () => import("./info-Z5LuCRmr.mjs"), xs = () => import("./edit-CWVYUzgf.mjs"), Ns = () => import("./info-Kf11Ye-N.mjs"), Is = () => import("./edit-BhRXuYku.mjs"), Ws = () => import("./info-70H0sycC.mjs"), Fs = () => import("./info-BWgVN2mJ.mjs"), Ls = () => import("./info-MYJGcyMX.mjs"), Cs = () => import("./info-CE-ZnFj5.mjs"), Us = [
2
+ const Ps = () => import("./edit-DLAiwJjs.mjs"), Rs = () => import("./info-Z5LuCRmr.mjs"), xs = () => import("./edit-CWVYUzgf.mjs"), Ns = () => import("./info-Kf11Ye-N.mjs"), Is = () => import("./edit-BhRXuYku.mjs"), Ws = () => import("./info-70H0sycC.mjs"), Fs = () => import("./info-BWgVN2mJ.mjs"), Ls = () => import("./info-MYJGcyMX.mjs"), Cs = () => import("./info-CE-ZnFj5.mjs"), Us = [
3
3
  {
4
4
  path: "/rawitsmsys",
5
5
  component: Ys,
@@ -2934,17 +2934,17 @@ class ji {
2934
2934
  // 查询列表信息机构信息
2935
2935
  findList(t) {
2936
2936
  const s = Y().user.tenant;
2937
- return t && (t.hasStatus = t.status != null, t.hasOrgType = t.orgType != null, t.hasDepth = t.depth != null), O(t), b({
2938
- url: "/v1/itsmsys/sys_org/list/" + s,
2937
+ return t && (t.hasStatus = t.status != null, t.hasOrgType = t.orgType != null), O(t), b({
2938
+ url: "/v1/itsmsys/sys_org/tree_list/" + s,
2939
2939
  method: "get",
2940
2940
  params: t
2941
2941
  });
2942
2942
  }
2943
2943
  // 查询列表信息机构信息
2944
- findTreeList(t) {
2944
+ findOutSourceList(t) {
2945
2945
  const s = Y().user.tenant;
2946
2946
  return t && (t.hasOrgType = t.orgType != null), O(t), b({
2947
- url: "/v1/itsmsys/sys_org/tree_list/" + s,
2947
+ url: "/v1/itsmsys/sys_org/list/" + s,
2948
2948
  method: "get",
2949
2949
  params: t
2950
2950
  });
@@ -3082,7 +3082,7 @@ class zi {
3082
3082
  });
3083
3083
  }
3084
3084
  }
3085
- const Bi = new zi(), qi = /* @__PURE__ */ Object.assign({ "./views/itsmsys/itsm-sys-gov/edit.vue": () => import("./edit-CWVYUzgf.mjs"), "./views/itsmsys/itsm-sys-gov/index.vue": () => import("./index-i7X9N_rj.mjs"), "./views/itsmsys/itsm-sys-gov/info.vue": () => import("./info-Kf11Ye-N.mjs"), "./views/itsmsys/itsm-sys-org-invoice/edit.vue": () => import("./edit-CIm8Y0Be.mjs"), "./views/itsmsys/itsm-sys-org-invoice/index.vue": () => import("./index-C6KvLUoL.mjs"), "./views/itsmsys/itsm-sys-org/edit.vue": () => import("./edit-CkaU_6vk.mjs"), "./views/itsmsys/itsm-sys-org/index.vue": () => import("./index-ClU157bA.mjs"), "./views/itsmsys/itsm-sys-org/info.vue": () => import("./info-Z5LuCRmr.mjs"), "./views/itsmsys/itsm-sys-out/edit.vue": () => import("./edit-BhRXuYku.mjs"), "./views/itsmsys/itsm-sys-out/index.vue": () => import("./index-CogdeN09.mjs"), "./views/itsmsys/itsm-sys-out/info.vue": () => import("./info-70H0sycC.mjs"), "./views/itsmsys/itsm-sys-user-man/edit.vue": () => import("./edit-DPM0jGQT.mjs"), "./views/itsmsys/itsm-sys-user-man/index.vue": () => import("./index-BkHGzL0R.mjs"), "./views/itsmsys/itsm-sys-user-man/info.vue": () => import("./info-BWgVN2mJ.mjs"), "./views/itsmsys/itsm-sys-user-ops/edit.vue": () => import("./edit-DZJU5ZPt.mjs"), "./views/itsmsys/itsm-sys-user-ops/index.vue": () => import("./index-CEUyLrKg.mjs"), "./views/itsmsys/itsm-sys-user-ops/info.vue": () => import("./info-MYJGcyMX.mjs"), "./views/itsmsys/itsm-sys-user-out/edit.vue": () => import("./edit-D82hX9if.mjs"), "./views/itsmsys/itsm-sys-user-out/index.vue": () => import("./index-B_cot8iN.mjs"), "./views/itsmsys/itsm-sys-user-out/info.vue": () => import("./info-CE-ZnFj5.mjs") }), Ji = {
3085
+ const Bi = new zi(), qi = /* @__PURE__ */ Object.assign({ "./views/itsmsys/itsm-sys-gov/edit.vue": () => import("./edit-CWVYUzgf.mjs"), "./views/itsmsys/itsm-sys-gov/index.vue": () => import("./index-BQRtMgmZ.mjs"), "./views/itsmsys/itsm-sys-gov/info.vue": () => import("./info-Kf11Ye-N.mjs"), "./views/itsmsys/itsm-sys-org-invoice/edit.vue": () => import("./edit-CIm8Y0Be.mjs"), "./views/itsmsys/itsm-sys-org-invoice/index.vue": () => import("./index-C6KvLUoL.mjs"), "./views/itsmsys/itsm-sys-org/edit.vue": () => import("./edit-DLAiwJjs.mjs"), "./views/itsmsys/itsm-sys-org/index.vue": () => import("./index-ClU157bA.mjs"), "./views/itsmsys/itsm-sys-org/info.vue": () => import("./info-Z5LuCRmr.mjs"), "./views/itsmsys/itsm-sys-out/edit.vue": () => import("./edit-BhRXuYku.mjs"), "./views/itsmsys/itsm-sys-out/index.vue": () => import("./index-CogdeN09.mjs"), "./views/itsmsys/itsm-sys-out/info.vue": () => import("./info-70H0sycC.mjs"), "./views/itsmsys/itsm-sys-user-man/edit.vue": () => import("./edit-DPM0jGQT.mjs"), "./views/itsmsys/itsm-sys-user-man/index.vue": () => import("./index-BkHGzL0R.mjs"), "./views/itsmsys/itsm-sys-user-man/info.vue": () => import("./info-BWgVN2mJ.mjs"), "./views/itsmsys/itsm-sys-user-ops/edit.vue": () => import("./edit-DZJU5ZPt.mjs"), "./views/itsmsys/itsm-sys-user-ops/index.vue": () => import("./index-CEUyLrKg.mjs"), "./views/itsmsys/itsm-sys-user-ops/info.vue": () => import("./info-MYJGcyMX.mjs"), "./views/itsmsys/itsm-sys-user-out/edit.vue": () => import("./edit-D82hX9if.mjs"), "./views/itsmsys/itsm-sys-user-out/index.vue": () => import("./index-B_cot8iN.mjs"), "./views/itsmsys/itsm-sys-user-out/info.vue": () => import("./info-CE-ZnFj5.mjs") }), Ji = {
3086
3086
  install(e) {
3087
3087
  Os(qi, 7), bs(Us), Gi(Ts), e.use(Ai);
3088
3088
  }
@@ -4,7 +4,7 @@ declare class SysOrgApiImpl implements SysOrgApi {
4
4
  getKey(model: SysOrgModel): SysOrgKey;
5
5
  findPage(query?: SysOrgReq): AxiosPromise<SysOrgPage>;
6
6
  findList(query?: SysOrgReq): AxiosPromise<SysOrgList>;
7
- findTreeList(query?: SysOrgReq): AxiosPromise<SysOrgList>;
7
+ findOutSourceList(query?: SysOrgReq): AxiosPromise<SysOrgList>;
8
8
  findById(query: SysOrgKey): AxiosPromise<SysOrgModel>;
9
9
  create(data: SysOrgCreateReq): AxiosPromise<SysOrgModel>;
10
10
  update(data: SysOrgUpdateReq): AxiosPromise<SysOrgModel>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-itsmsys",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",