@since2006/pages 2025.8.6 → 2025.11.0

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.
Files changed (135) hide show
  1. package/dist/es/src/app/attachment/AttachmentEdit.vue.js +43 -40
  2. package/dist/es/src/app/attachment/{AttachmentList.vue.js → AttachmentIndex.vue.js} +21 -21
  3. package/dist/es/src/app/attachment/AttachmentIndex.vue2.js +4 -0
  4. package/dist/es/src/app/attachment/api.js +6 -6
  5. package/dist/es/src/app/attachment/index.js +1 -1
  6. package/dist/es/src/app/dict/DictEdit.vue.js +46 -46
  7. package/dist/es/src/app/dict/DictIndex.vue.js +2 -2
  8. package/dist/es/src/app/dict/DictItemEdit.vue.js +1 -1
  9. package/dist/es/src/app/dict/DictItemEdit.vue2.js +39 -38
  10. package/dist/es/src/app/dict/DictPanel.vue.js +2 -2
  11. package/dist/es/src/app/dict/DictPanel.vue2.js +80 -80
  12. package/dist/es/src/app/dict/api.js +22 -20
  13. package/dist/es/src/app/log/LogIndex.vue.js +5 -236
  14. package/dist/es/src/app/log/LogIndex.vue2.js +174 -2
  15. package/dist/es/src/app/log/api.js +39 -7
  16. package/dist/es/src/app/log/components/AccessLogDetail.vue.js +7 -0
  17. package/dist/es/src/app/log/components/AccessLogDetail.vue2.js +240 -0
  18. package/dist/es/src/app/log/components/AccessLogList.vue.js +7 -0
  19. package/dist/es/src/app/log/components/AccessLogList.vue2.js +452 -0
  20. package/dist/es/src/app/log/components/AuditLogDetail.vue.js +7 -0
  21. package/dist/es/src/app/log/components/AuditLogDetail.vue2.js +163 -0
  22. package/dist/es/src/app/log/components/AuditLogList.vue.js +7 -0
  23. package/dist/es/src/app/log/components/AuditLogList.vue2.js +325 -0
  24. package/dist/es/src/app/log/components/ErrorLogDetail.vue.js +7 -0
  25. package/dist/es/src/app/log/components/ErrorLogDetail.vue2.js +187 -0
  26. package/dist/es/src/app/log/components/ErrorLogList.vue.js +7 -0
  27. package/dist/es/src/app/log/components/ErrorLogList.vue2.js +310 -0
  28. package/dist/es/src/app/log/components/LoginLogDetail.vue.js +7 -0
  29. package/dist/es/src/app/log/components/LoginLogDetail.vue2.js +182 -0
  30. package/dist/es/src/app/log/components/LoginLogList.vue.js +7 -0
  31. package/dist/es/src/app/log/components/LoginLogList.vue2.js +303 -0
  32. package/dist/es/src/app/log/components/OperationLogDetail.vue.js +7 -0
  33. package/dist/es/src/app/log/components/OperationLogDetail.vue2.js +229 -0
  34. package/dist/es/src/app/log/components/OperationLogList.vue.js +7 -0
  35. package/dist/es/src/app/log/components/OperationLogList.vue2.js +333 -0
  36. package/dist/es/src/app/log/index.js +3 -3
  37. package/dist/es/src/app/log/ua-icons.vue.js +2 -2
  38. package/dist/es/src/app/log/ua-icons.vue2.js +58 -26
  39. package/dist/es/src/app/metadata/MetadataIndex.vue.js +1 -1
  40. package/dist/es/src/app/metadata/MetadataUpdate.vue.js +1 -1
  41. package/dist/es/src/app/metadata/api.js +5 -5
  42. package/dist/es/src/app/module/ModuleAdd.vue.js +1 -1
  43. package/dist/es/src/app/module/ModuleAdd.vue2.js +70 -66
  44. package/dist/es/src/app/module/ModuleDetail.vue.js +10 -10
  45. package/dist/es/src/app/module/ModuleEdit.vue.js +2 -2
  46. package/dist/es/src/app/module/ModuleEdit.vue2.js +74 -70
  47. package/dist/es/src/app/module/ModuleIndex.vue.js +2 -2
  48. package/dist/es/src/app/module/ModuleIndex.vue2.js +35 -35
  49. package/dist/es/src/app/module/api.js +10 -6
  50. package/dist/es/src/app/module/icon/IconSelectorModal.vue.js +2 -2
  51. package/dist/es/src/app/schedule/CronTypeSelect.vue.js +32 -32
  52. package/dist/es/src/app/schedule/ScheduleAdd.vue.js +3 -3
  53. package/dist/es/src/app/schedule/ScheduleAdd.vue2.js +38 -38
  54. package/dist/es/src/app/schedule/ScheduleEdit.vue.js +1 -1
  55. package/dist/es/src/app/schedule/ScheduleEdit.vue2.js +56 -56
  56. package/dist/es/src/app/schedule/ScheduleIndex.vue.js +18 -18
  57. package/dist/es/src/app/schedule/ScheduleLogList.vue.js +26 -26
  58. package/dist/es/src/app/schedule/ScheduleLogView.vue.js +3 -3
  59. package/dist/es/src/app/schedule/ScheduleLogView.vue2.js +7 -7
  60. package/dist/es/src/app/schedule/api.js +14 -14
  61. package/dist/es/src/app/system/StatusIndex.vue.js +1 -1
  62. package/dist/es/src/app/system/StatusIndex.vue2.js +109 -111
  63. package/dist/es/src/app/system/api.js +2 -3
  64. package/dist/es/style.css +1 -1
  65. package/dist/lib/src/app/attachment/AttachmentEdit.vue.js +1 -1
  66. package/dist/lib/src/app/attachment/AttachmentIndex.vue.js +1 -0
  67. package/dist/lib/src/app/attachment/{AttachmentList.vue2.js → AttachmentIndex.vue2.js} +1 -1
  68. package/dist/lib/src/app/attachment/api.js +1 -1
  69. package/dist/lib/src/app/attachment/index.js +1 -1
  70. package/dist/lib/src/app/dict/DictEdit.vue.js +1 -1
  71. package/dist/lib/src/app/dict/DictIndex.vue.js +1 -1
  72. package/dist/lib/src/app/dict/DictItemEdit.vue.js +1 -1
  73. package/dist/lib/src/app/dict/DictItemEdit.vue2.js +1 -1
  74. package/dist/lib/src/app/dict/DictPanel.vue.js +1 -1
  75. package/dist/lib/src/app/dict/DictPanel.vue2.js +1 -1
  76. package/dist/lib/src/app/dict/api.js +1 -1
  77. package/dist/lib/src/app/log/LogIndex.vue.js +1 -1
  78. package/dist/lib/src/app/log/LogIndex.vue2.js +1 -1
  79. package/dist/lib/src/app/log/api.js +1 -1
  80. package/dist/lib/src/app/log/components/AccessLogDetail.vue.js +1 -0
  81. package/dist/lib/src/app/log/components/AccessLogDetail.vue2.js +1 -0
  82. package/dist/lib/src/app/log/components/AccessLogList.vue.js +1 -0
  83. package/dist/lib/src/app/log/components/AccessLogList.vue2.js +1 -0
  84. package/dist/lib/src/app/log/components/AuditLogDetail.vue.js +1 -0
  85. package/dist/lib/src/app/log/components/AuditLogDetail.vue2.js +1 -0
  86. package/dist/lib/src/app/log/components/AuditLogList.vue.js +1 -0
  87. package/dist/lib/src/app/log/components/AuditLogList.vue2.js +1 -0
  88. package/dist/lib/src/app/log/components/ErrorLogDetail.vue.js +1 -0
  89. package/dist/lib/src/app/log/components/ErrorLogDetail.vue2.js +1 -0
  90. package/dist/lib/src/app/log/components/ErrorLogList.vue.js +1 -0
  91. package/dist/lib/src/app/log/components/ErrorLogList.vue2.js +1 -0
  92. package/dist/lib/src/app/log/components/LoginLogDetail.vue.js +1 -0
  93. package/dist/lib/src/app/log/components/LoginLogDetail.vue2.js +1 -0
  94. package/dist/lib/src/app/log/components/LoginLogList.vue.js +1 -0
  95. package/dist/lib/src/app/log/components/LoginLogList.vue2.js +1 -0
  96. package/dist/lib/src/app/log/components/OperationLogDetail.vue.js +1 -0
  97. package/dist/lib/src/app/log/components/OperationLogDetail.vue2.js +1 -0
  98. package/dist/lib/src/app/log/components/OperationLogList.vue.js +1 -0
  99. package/dist/lib/src/app/log/components/OperationLogList.vue2.js +1 -0
  100. package/dist/lib/src/app/log/index.js +1 -1
  101. package/dist/lib/src/app/log/ua-icons.vue.js +1 -1
  102. package/dist/lib/src/app/log/ua-icons.vue2.js +1 -1
  103. package/dist/lib/src/app/metadata/MetadataIndex.vue.js +1 -1
  104. package/dist/lib/src/app/metadata/MetadataUpdate.vue.js +1 -1
  105. package/dist/lib/src/app/metadata/api.js +1 -1
  106. package/dist/lib/src/app/module/ModuleAdd.vue.js +1 -1
  107. package/dist/lib/src/app/module/ModuleAdd.vue2.js +1 -1
  108. package/dist/lib/src/app/module/ModuleDetail.vue.js +1 -1
  109. package/dist/lib/src/app/module/ModuleEdit.vue.js +1 -1
  110. package/dist/lib/src/app/module/ModuleEdit.vue2.js +1 -1
  111. package/dist/lib/src/app/module/ModuleIndex.vue.js +1 -1
  112. package/dist/lib/src/app/module/ModuleIndex.vue2.js +1 -1
  113. package/dist/lib/src/app/module/api.js +1 -1
  114. package/dist/lib/src/app/module/icon/IconSelectorModal.vue.js +1 -1
  115. package/dist/lib/src/app/schedule/CronTypeSelect.vue.js +1 -1
  116. package/dist/lib/src/app/schedule/ScheduleAdd.vue.js +1 -1
  117. package/dist/lib/src/app/schedule/ScheduleAdd.vue2.js +1 -1
  118. package/dist/lib/src/app/schedule/ScheduleEdit.vue.js +1 -1
  119. package/dist/lib/src/app/schedule/ScheduleEdit.vue2.js +1 -1
  120. package/dist/lib/src/app/schedule/ScheduleIndex.vue.js +1 -1
  121. package/dist/lib/src/app/schedule/ScheduleLogList.vue.js +1 -1
  122. package/dist/lib/src/app/schedule/ScheduleLogView.vue.js +1 -1
  123. package/dist/lib/src/app/schedule/ScheduleLogView.vue2.js +1 -1
  124. package/dist/lib/src/app/schedule/api.js +1 -1
  125. package/dist/lib/src/app/system/StatusIndex.vue.js +1 -1
  126. package/dist/lib/src/app/system/StatusIndex.vue2.js +1 -1
  127. package/dist/lib/src/app/system/api.js +1 -1
  128. package/dist/lib/style.css +1 -1
  129. package/package.json +4 -1
  130. package/dist/es/src/app/attachment/AttachmentList.vue2.js +0 -4
  131. package/dist/es/src/app/log/LogView.vue.js +0 -7
  132. package/dist/es/src/app/log/LogView.vue2.js +0 -164
  133. package/dist/lib/src/app/attachment/AttachmentList.vue.js +0 -1
  134. package/dist/lib/src/app/log/LogView.vue.js +0 -1
  135. package/dist/lib/src/app/log/LogView.vue2.js +0 -1
@@ -1,7 +1,7 @@
1
- import { defineComponent as B, ref as m, watch as R, resolveComponent as r, openBlock as g, createBlock as h, withCtx as d, createVNode as a, createTextVNode as V, toDisplayString as F, createCommentVNode as L } from "vue";
2
- import { getDictItem as p, addDictItem as A, updateDictItem as M } from "./api.js";
1
+ import { defineComponent as R, ref as m, watch as V, resolveComponent as r, openBlock as g, createBlock as h, withCtx as d, createVNode as l, createTextVNode as E, toDisplayString as F, createCommentVNode as L } from "vue";
2
+ import { getDictItem as p, createDictItem as A, updateDictItem as M } from "./api.js";
3
3
  import { message as O } from "ant-design-vue";
4
- const G = /* @__PURE__ */ B({
4
+ const G = /* @__PURE__ */ R({
5
5
  __name: "DictItemEdit",
6
6
  props: {
7
7
  open: {
@@ -25,20 +25,21 @@ const G = /* @__PURE__ */ B({
25
25
  setup(f, { emit: b }) {
26
26
  const i = m(""), c = m(!1), o = m(null), _ = m(), n = f, I = b, k = {
27
27
  id: null,
28
+ parentId: null,
28
29
  name: null,
29
30
  value: null,
30
31
  seqNo: null,
31
- state: !0,
32
+ status: !0,
32
33
  remark: null
33
34
  }, e = m({ ...k }), q = {
34
35
  name: [{ required: !0, message: "请填写字典项名称" }],
35
36
  value: [{ required: !0, message: "请填写字典项取值" }],
36
37
  seqNo: [{ required: !0, message: "请填写数字类型顺序号" }],
37
- state: [{ required: !0, message: "请选择字典项状态" }]
38
+ status: [{ required: !0, message: "请选择字典项状态" }]
38
39
  }, y = () => {
39
40
  e.value = { ...k };
40
41
  };
41
- R(
42
+ V(
42
43
  () => n.open,
43
44
  (t) => {
44
45
  t && (y(), n.mode === "add" ? N() : S());
@@ -46,45 +47,45 @@ const G = /* @__PURE__ */ B({
46
47
  );
47
48
  const N = () => {
48
49
  i.value = "添加字典项", n.itemId !== null ? p(n.itemId).then((t) => {
49
- o.value = t.result;
50
+ o.value = t.data;
50
51
  }) : o.value = null;
51
52
  }, S = () => {
52
53
  i.value = "修改字典项", e.value.id = n.itemId, p(n.itemId).then((t) => {
53
- e.value = t.result, e.value.state = t.result.state === "E", e.value.parentId != null ? p(e.value.parentId).then((l) => {
54
- o.value = l.result;
54
+ e.value = t.data, e.value.status = t.data.status === 1, e.value.parentId != null ? p(e.value.parentId).then((a) => {
55
+ o.value = a.data;
55
56
  }) : o.value = null;
56
57
  });
57
58
  }, w = () => {
58
59
  _.value.validateFields().then(() => {
59
60
  const t = { ...e.value, dictId: n.dictId };
60
- o.value !== null && (t.parentId = o.value.id), t.state = t.state ? "E" : "D";
61
- let l = null;
61
+ o.value !== null && (t.parentId = o.value.id), t.status = t.status ? 1 : 0;
62
+ let a = null;
62
63
  if (n.mode === "add")
63
- l = A;
64
+ a = A;
64
65
  else if (n.mode === "edit")
65
- l = M;
66
+ a = M;
66
67
  else
67
68
  return !1;
68
- c.value = !0, l(t).then((s) => {
69
- O.success("操作成功"), I("success", s.result.parentId);
69
+ c.value = !0, a(t).then((s) => {
70
+ O.success("操作成功"), I("success", s.data.parentId);
70
71
  }).finally(() => c.value = !1);
71
72
  });
72
- }, D = () => {
73
+ }, C = () => {
73
74
  I("cancel");
74
75
  };
75
- return (t, l) => {
76
- const s = r("a-form-item"), v = r("a-input"), C = r("a-input-number"), U = r("a-switch"), x = r("a-form"), E = r("a-modal");
77
- return g(), h(E, {
76
+ return (t, a) => {
77
+ const s = r("a-form-item"), v = r("a-input"), D = r("a-input-number"), U = r("a-switch"), x = r("a-form"), B = r("a-modal");
78
+ return g(), h(B, {
78
79
  open: f.open,
79
80
  title: i.value,
80
81
  width: 800,
81
82
  confirmLoading: c.value,
82
83
  "mask-closable": !1,
83
84
  onOk: w,
84
- onCancel: D
85
+ onCancel: C
85
86
  }, {
86
87
  default: d(() => [
87
- a(x, {
88
+ l(x, {
88
89
  ref_key: "formRef",
89
90
  ref: _,
90
91
  model: e.value,
@@ -99,68 +100,68 @@ const G = /* @__PURE__ */ B({
99
100
  class: "notice"
100
101
  }, {
101
102
  default: d(() => [
102
- V(F(o.value.name), 1)
103
+ E(F(o.value.name), 1)
103
104
  ]),
104
105
  _: 1
105
106
  })) : L("", !0),
106
- a(s, {
107
+ l(s, {
107
108
  label: "字典项名称",
108
109
  name: "name"
109
110
  }, {
110
111
  default: d(() => [
111
- a(v, {
112
+ l(v, {
112
113
  value: e.value.name,
113
- "onUpdate:value": l[0] || (l[0] = (u) => e.value.name = u),
114
+ "onUpdate:value": a[0] || (a[0] = (u) => e.value.name = u),
114
115
  placeholder: "字典项名称"
115
116
  }, null, 8, ["value"])
116
117
  ]),
117
118
  _: 1
118
119
  }),
119
- a(s, {
120
+ l(s, {
120
121
  label: "字典项取值",
121
122
  name: "value"
122
123
  }, {
123
124
  default: d(() => [
124
- a(v, {
125
+ l(v, {
125
126
  value: e.value.value,
126
- "onUpdate:value": l[1] || (l[1] = (u) => e.value.value = u),
127
+ "onUpdate:value": a[1] || (a[1] = (u) => e.value.value = u),
127
128
  placeholder: "字典项取值"
128
129
  }, null, 8, ["value"])
129
130
  ]),
130
131
  _: 1
131
132
  }),
132
- a(s, {
133
+ l(s, {
133
134
  label: "顺序号",
134
135
  name: "seqNo"
135
136
  }, {
136
137
  default: d(() => [
137
- a(C, {
138
+ l(D, {
138
139
  value: e.value.seqNo,
139
- "onUpdate:value": l[2] || (l[2] = (u) => e.value.seqNo = u),
140
+ "onUpdate:value": a[2] || (a[2] = (u) => e.value.seqNo = u),
140
141
  placeholder: "顺序号"
141
142
  }, null, 8, ["value"])
142
143
  ]),
143
144
  _: 1
144
145
  }),
145
- a(s, {
146
+ l(s, {
146
147
  label: "状态",
147
148
  name: "state"
148
149
  }, {
149
150
  default: d(() => [
150
- a(U, {
151
- checked: e.value.state,
152
- "onUpdate:checked": l[3] || (l[3] = (u) => e.value.state = u),
151
+ l(U, {
152
+ checked: e.value.status,
153
+ "onUpdate:checked": a[3] || (a[3] = (u) => e.value.status = u),
153
154
  "checked-children": "启用",
154
155
  "un-checked-children": "禁用"
155
156
  }, null, 8, ["checked"])
156
157
  ]),
157
158
  _: 1
158
159
  }),
159
- a(s, { label: "描述" }, {
160
+ l(s, { label: "描述" }, {
160
161
  default: d(() => [
161
- a(v, {
162
+ l(v, {
162
163
  value: e.value.remark,
163
- "onUpdate:value": l[4] || (l[4] = (u) => e.value.remark = u),
164
+ "onUpdate:value": a[4] || (a[4] = (u) => e.value.remark = u),
164
165
  placeholder: "字典描述"
165
166
  }, null, 8, ["value"])
166
167
  ]),
@@ -1,7 +1,7 @@
1
1
  import o from "./DictPanel.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-47d8452e"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1cbc3d31"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };
@@ -1,53 +1,53 @@
1
- import { defineComponent as W, ref as c, onBeforeMount as X, resolveComponent as d, openBlock as D, createBlock as g, withCtx as a, createVNode as o, createTextVNode as s, toDisplayString as m, createElementVNode as b, h as C, unref as x, createCommentVNode as E } from "vue";
1
+ import { defineComponent as W, ref as r, onBeforeMount as X, resolveComponent as s, openBlock as D, createBlock as g, withCtx as l, createVNode as o, createTextVNode as u, toDisplayString as m, createElementVNode as b, h as C, unref as x, createCommentVNode as E } from "vue";
2
2
  import Y from "./DictItemEdit.vue.js";
3
3
  import { getDictionary as Z, getAdminDictItems as V, getDictItem as ee, deleteDictItem as te } from "./api.js";
4
- import { useRoute as le } from "vue-router";
5
- import { message as ae } from "ant-design-vue";
6
- import { PlusCircleOutlined as oe, EditOutlined as ne, DeleteOutlined as ue } from "@ant-design/icons-vue";
7
- const se = { class: "table-operator" }, de = { class: "dict-content" }, re = { class: "tree-container" }, ke = /* @__PURE__ */ W({
4
+ import { useRoute as ae } from "vue-router";
5
+ import { message as le } from "ant-design-vue";
6
+ import { PlusCircleOutlined as oe, EditOutlined as ne, DeleteOutlined as de } from "@ant-design/icons-vue";
7
+ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { class: "tree-container" }, ke = /* @__PURE__ */ W({
8
8
  __name: "DictPanel",
9
- setup(ce) {
10
- const B = le(), p = c(), y = c({}), M = c(!1), r = c(null), u = c({}), i = c([]), h = c([]), _ = c([]), v = c({
9
+ setup(re) {
10
+ const B = ae(), p = r(), y = r({}), M = r(!1), c = r(null), d = r({}), i = r([]), h = r([]), _ = r([]), v = r({
11
11
  open: !1,
12
12
  mode: "add",
13
13
  dictId: "",
14
14
  itemId: ""
15
15
  }), O = (e) => {
16
16
  i.value = e;
17
- }, P = (e) => (r.value = e, e.dataRef.children ? new Promise((t) => {
17
+ }, P = (e) => (c.value = e, e.dataRef.children ? new Promise((t) => {
18
18
  t("");
19
19
  }) : T(e.dataRef.key)), z = () => {
20
20
  Z(p.value).then((e) => {
21
- y.value = e.result;
21
+ y.value = e.data;
22
22
  });
23
23
  }, T = async (e) => V(p.value, e).then((t) => {
24
- r.value == null ? _.value = I(t.result) : (r.value.dataRef.children = I(t.result), _.value = [..._.value]);
24
+ c.value == null ? _.value = I(t.data) : (c.value.dataRef.children = I(t.data), _.value = [..._.value]);
25
25
  }), A = (e, t) => {
26
- const l = t.node.dataRef, n = i.value.includes(l.key);
27
- l.isLeaf || (t.selected ? n || i.value.push(l.key) : n && (i.value = i.value.filter((f) => f !== l.key))), e.length === 0 ? (console.log("清空选中"), r.value = null) : r.value = t.node, w(l.key);
26
+ const a = t.node.dataRef, n = i.value.includes(a.key);
27
+ a.isLeaf || (t.selected ? n || i.value.push(a.key) : n && (i.value = i.value.filter((f) => f !== a.key))), e.length === 0 ? (console.log("清空选中"), c.value = null) : c.value = t.node, w(a.key);
28
28
  }, w = (e) => {
29
29
  M.value = !0, ee(e).then((t) => {
30
- u.value = K(t.result);
30
+ d.value = K(t.data);
31
31
  });
32
32
  }, $ = () => {
33
33
  v.value = {
34
34
  open: !0,
35
35
  mode: "add",
36
36
  dictId: p.value,
37
- itemId: r.value !== null ? u.value.key : null
37
+ itemId: c.value !== null ? d.value.key : null
38
38
  };
39
39
  }, j = () => {
40
40
  v.value = {
41
41
  open: !0,
42
42
  mode: "edit",
43
43
  dictId: p.value,
44
- itemId: u.value.key
44
+ itemId: d.value.key
45
45
  };
46
46
  }, F = (e) => {
47
- v.value.open = !1, L(e), u.value.key ? w(u.value.key) : u.value = {};
47
+ v.value.open = !1, L(e), d.value.key ? w(d.value.key) : d.value = {};
48
48
  }, G = () => {
49
- te(u.value.key).then((e) => {
50
- ae.success("删除字典项成功"), L(e.result.parentId), r.value = null, u.value = {};
49
+ te(d.value.key).then((e) => {
50
+ le.success("删除字典项成功"), L(e.data.parentId), c.value = null, d.value = {};
51
51
  });
52
52
  }, I = (e) => e.map((t) => K(t)), K = (e) => ({
53
53
  key: e.id,
@@ -55,85 +55,85 @@ const se = { class: "table-operator" }, de = { class: "dict-content" }, re = { c
55
55
  isLeaf: !e.hasChildren,
56
56
  value: e.value,
57
57
  seqNo: e.seqNo,
58
- state: e.state,
58
+ status: e.status,
59
59
  remark: e.remark
60
60
  }), L = (e) => {
61
61
  V(p.value, e).then((t) => {
62
- e ? N(_.value, e, I(t.result)) : _.value = I(t.result);
62
+ e ? N(_.value, e, I(t.data)) : _.value = I(t.data);
63
63
  });
64
- }, N = (e, t, l) => {
64
+ }, N = (e, t, a) => {
65
65
  e.forEach((n) => {
66
66
  if (n.key === t) {
67
- n.isLeaf = l.length === 0;
67
+ n.isLeaf = a.length === 0;
68
68
  const f = R([n], 0);
69
- h.value = h.value.filter((k) => !f.includes(k)), i.value = i.value.filter((k) => !f.includes(k)), n.children = l;
69
+ h.value = h.value.filter((k) => !f.includes(k)), i.value = i.value.filter((k) => !f.includes(k)), n.children = a;
70
70
  } else
71
- n.children && N(n.children, t, l);
71
+ n.children && N(n.children, t, a);
72
72
  });
73
73
  }, R = (e, t) => {
74
- let l = [];
74
+ let a = [];
75
75
  return e.forEach((n) => {
76
- t > 0 && l.push(n.key), n.children && (l = l.concat(R(n.children, ++t)));
77
- }), l;
76
+ t > 0 && a.push(n.key), n.children && (a = a.concat(R(n.children, ++t)));
77
+ }), a;
78
78
  };
79
79
  return X(() => {
80
80
  p.value = B.query.id, z(), T("");
81
81
  }), (e, t) => {
82
- const l = d("a-descriptions-item"), n = d("a-descriptions"), f = d("a-button"), k = d("a-popconfirm"), H = d("a-space"), J = d("a-tree"), S = d("a-col"), q = d("a-tag"), Q = d("a-row"), U = d("a-card");
82
+ const a = s("a-descriptions-item"), n = s("a-descriptions"), f = s("a-button"), k = s("a-popconfirm"), H = s("a-space"), J = s("a-tree"), S = s("a-col"), q = s("a-tag"), Q = s("a-row"), U = s("a-card");
83
83
  return D(), g(U, { class: "dict-card" }, {
84
- default: a(() => [
84
+ default: l(() => [
85
85
  o(n, {
86
86
  column: 2,
87
87
  size: "small"
88
88
  }, {
89
- default: a(() => [
90
- o(l, { label: "字典名称" }, {
91
- default: a(() => [
92
- s(m(y.value.name), 1)
89
+ default: l(() => [
90
+ o(a, { label: "字典名称" }, {
91
+ default: l(() => [
92
+ u(m(y.value.name), 1)
93
93
  ]),
94
94
  _: 1
95
95
  }),
96
- o(l, { label: "字典标识" }, {
97
- default: a(() => [
98
- s(m(y.value.keyword), 1)
96
+ o(a, { label: "字典标识" }, {
97
+ default: l(() => [
98
+ u(m(y.value.keyword), 1)
99
99
  ]),
100
100
  _: 1
101
101
  }),
102
- o(l, { label: "是否缓存" }, {
103
- default: a(() => [
104
- s(m(y.value.enableCache === 1 ? "是" : "否"), 1)
102
+ o(a, { label: "是否缓存" }, {
103
+ default: l(() => [
104
+ u(m(y.value.cacheEnabled === 1 ? "是" : "否"), 1)
105
105
  ]),
106
106
  _: 1
107
107
  }),
108
- o(l, { label: "描述" }, {
109
- default: a(() => [
110
- s(m(y.value.remark), 1)
108
+ o(a, { label: "描述" }, {
109
+ default: l(() => [
110
+ u(m(y.value.remark), 1)
111
111
  ]),
112
112
  _: 1
113
113
  })
114
114
  ]),
115
115
  _: 1
116
116
  }),
117
- b("div", se, [
117
+ b("div", ue, [
118
118
  o(H, { wrap: "" }, {
119
- default: a(() => [
119
+ default: l(() => [
120
120
  o(f, {
121
121
  type: "primary",
122
122
  icon: C(x(oe)),
123
123
  onClick: $
124
124
  }, {
125
- default: a(() => t[1] || (t[1] = [
126
- s("添加字典项")
125
+ default: l(() => t[1] || (t[1] = [
126
+ u(" 添加字典项 ")
127
127
  ])),
128
128
  _: 1
129
129
  }, 8, ["icon"]),
130
- r.value ? (D(), g(f, {
130
+ c.value ? (D(), g(f, {
131
131
  key: 0,
132
132
  icon: C(x(ne)),
133
133
  onClick: j
134
134
  }, {
135
- default: a(() => t[2] || (t[2] = [
136
- s(" 修改字典项 ")
135
+ default: l(() => t[2] || (t[2] = [
136
+ u(" 修改字典项 ")
137
137
  ])),
138
138
  _: 1
139
139
  }, 8, ["icon"])) : E("", !0),
@@ -141,14 +141,14 @@ const se = { class: "table-operator" }, de = { class: "dict-content" }, re = { c
141
141
  title: "是否确认删除?",
142
142
  onConfirm: G
143
143
  }, {
144
- default: a(() => [
145
- r.value ? (D(), g(f, {
144
+ default: l(() => [
145
+ c.value ? (D(), g(f, {
146
146
  key: 0,
147
147
  danger: "",
148
- icon: C(x(ue))
148
+ icon: C(x(de))
149
149
  }, {
150
- default: a(() => t[3] || (t[3] = [
151
- s(" 删除字典项 ")
150
+ default: l(() => t[3] || (t[3] = [
151
+ u("删除字典项")
152
152
  ])),
153
153
  _: 1
154
154
  }, 8, ["icon"])) : E("", !0)
@@ -159,19 +159,19 @@ const se = { class: "table-operator" }, de = { class: "dict-content" }, re = { c
159
159
  _: 1
160
160
  })
161
161
  ]),
162
- b("div", de, [
162
+ b("div", se, [
163
163
  o(Q, {
164
164
  gutter: 24,
165
165
  class: "dict-row"
166
166
  }, {
167
- default: a(() => [
167
+ default: l(() => [
168
168
  o(S, {
169
169
  span: 7,
170
170
  class: "dict-left"
171
171
  }, {
172
- default: a(() => [
172
+ default: l(() => [
173
173
  t[4] || (t[4] = b("div", null, "字典项:", -1)),
174
- b("div", re, [
174
+ b("div", ce, [
175
175
  o(J, {
176
176
  showLine: "",
177
177
  expandedKeys: i.value,
@@ -189,56 +189,56 @@ const se = { class: "table-operator" }, de = { class: "dict-content" }, re = { c
189
189
  span: 17,
190
190
  class: "dict-right"
191
191
  }, {
192
- default: a(() => [
192
+ default: l(() => [
193
193
  o(n, {
194
194
  column: 1,
195
195
  bordered: "",
196
196
  size: "small"
197
197
  }, {
198
- default: a(() => [
199
- o(l, { label: "字典名称" }, {
200
- default: a(() => [
201
- s(m(u.value.title), 1)
198
+ default: l(() => [
199
+ o(a, { label: "字典名称" }, {
200
+ default: l(() => [
201
+ u(m(d.value.title), 1)
202
202
  ]),
203
203
  _: 1
204
204
  }),
205
- o(l, { label: "字典取值" }, {
206
- default: a(() => [
207
- s(m(u.value.value), 1)
205
+ o(a, { label: "字典取值" }, {
206
+ default: l(() => [
207
+ u(m(d.value.value), 1)
208
208
  ]),
209
209
  _: 1
210
210
  }),
211
- o(l, { label: "排序号" }, {
212
- default: a(() => [
213
- s(m(u.value.seqNo), 1)
211
+ o(a, { label: "排序号" }, {
212
+ default: l(() => [
213
+ u(m(d.value.seqNo), 1)
214
214
  ]),
215
215
  _: 1
216
216
  }),
217
- o(l, { label: "状态" }, {
218
- default: a(() => [
219
- u.value.state === "E" ? (D(), g(q, {
217
+ o(a, { label: "状态" }, {
218
+ default: l(() => [
219
+ d.value.status === 1 ? (D(), g(q, {
220
220
  key: 0,
221
221
  color: "green"
222
222
  }, {
223
- default: a(() => t[5] || (t[5] = [
224
- s("启用")
223
+ default: l(() => t[5] || (t[5] = [
224
+ u("启用")
225
225
  ])),
226
226
  _: 1
227
- })) : u.value.state === "D" ? (D(), g(q, {
227
+ })) : d.value.status === 0 ? (D(), g(q, {
228
228
  key: 1,
229
229
  color: "red"
230
230
  }, {
231
- default: a(() => t[6] || (t[6] = [
232
- s("禁用")
231
+ default: l(() => t[6] || (t[6] = [
232
+ u("禁用")
233
233
  ])),
234
234
  _: 1
235
235
  })) : E("", !0)
236
236
  ]),
237
237
  _: 1
238
238
  }),
239
- o(l, { label: "描述" }, {
240
- default: a(() => [
241
- s(m(u.value.remark), 1)
239
+ o(a, { label: "描述" }, {
240
+ default: l(() => [
241
+ u(m(d.value.remark), 1)
242
242
  ]),
243
243
  _: 1
244
244
  })
@@ -1,47 +1,49 @@
1
1
  import { http as i } from "@since2006/utils";
2
- function n(t) {
3
- return i.get("/api/1/dict/query_dictionaries", { params: t });
2
+ function c(t) {
3
+ return i.get("/api/v1/dict/query_dictionaries", { params: t });
4
4
  }
5
- function c() {
6
- return i.postForm("/api/1/dict/refresh_dictionaries");
7
- }
8
- function o(t) {
9
- return i.postForm("/api/1/dict/remove_dictionary", { id: t });
5
+ function n() {
6
+ return i.postForm("/api/v1/dict/refresh_dictionaries");
10
7
  }
11
8
  function a(t) {
12
- return i.postForm("/api/1/dict/add_dictionary", t);
9
+ return i.post("/api/v1/dict/remove_dictionary", { id: t });
10
+ }
11
+ function o(t) {
12
+ return i.post("/api/v1/dict/create_dictionary", t);
13
13
  }
14
14
  function d(t) {
15
- return i.get("/api/1/dict/get_dictionary", { params: { id: t } });
15
+ return i.get("/api/v1/dict/get_dictionary", { params: { id: t } });
16
16
  }
17
17
  function p(t) {
18
- return i.postForm("/api/1/dict/update_dictionary", t);
18
+ return i.post("/api/v1/dict/update_dictionary", t);
19
19
  }
20
20
  function u(t, e) {
21
- return i.get("/api/1/dict/admin/get_dict_items", { params: { dictId: t, id: e } });
21
+ return i.get("/api/v1/dict/admin/get_dict_items", {
22
+ params: { dictId: t, parentId: e }
23
+ });
22
24
  }
23
25
  function m(t) {
24
- return i.get("/api/1/dict/get_dict_item", { params: { id: t } });
26
+ return i.get("/api/v1/dict/get_dict_item", { params: { id: t } });
25
27
  }
26
28
  function s(t) {
27
- return i.postForm("/api/1/dict/add_dict_item", t);
29
+ return i.post("/api/v1/dict/create_dict_item", t);
28
30
  }
29
31
  function _(t) {
30
- return i.postForm("/api/1/dict/update_dict_item", t);
32
+ return i.post("/api/v1/dict/update_dict_item", t);
31
33
  }
32
34
  function f(t) {
33
- return i.postForm("/api/1/dict/admin/delete_dict_item", { id: t });
35
+ return i.post("/api/v1/dict/admin/delete_dict_item", { id: t });
34
36
  }
35
37
  export {
36
- s as addDictItem,
37
- a as addDictionary,
38
+ s as createDictItem,
39
+ o as createDictionary,
38
40
  f as deleteDictItem,
39
41
  u as getAdminDictItems,
40
42
  m as getDictItem,
41
43
  d as getDictionary,
42
- n as queryDictionaries,
43
- c as refreshDictionaries,
44
- o as removeDictionary,
44
+ c as queryDictionaries,
45
+ n as refreshDictionaries,
46
+ a as removeDictionary,
45
47
  _ as updateDictItem,
46
48
  p as updateDictionary
47
49
  };