@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,20 +1,23 @@
1
- import { defineComponent as P, ref as d, reactive as B, resolveComponent as r, openBlock as R, createBlock as O, withCtx as n, createVNode as a, createTextVNode as y, toRaw as j } from "vue";
2
- import { getAvailableExtensions as A, getConfig as F, createConfig as N, updateConfig as V } from "./api.js";
3
- const I = /* @__PURE__ */ P({
1
+ import { defineComponent as B, ref as d, reactive as R, resolveComponent as u, openBlock as O, createBlock as j, withCtx as n, createVNode as a, createTextVNode as y, toRaw as A } from "vue";
2
+ import { getAvailableExtensions as C, getConfig as F, createConfig as N, updateConfig as V } from "./api.js";
3
+ const I = /* @__PURE__ */ B({
4
4
  __name: "AttachmentEdit",
5
5
  emits: ["success", "cancel"],
6
- setup(D, { expose: C, emit: S }) {
6
+ setup(D, { expose: w, emit: S }) {
7
7
  let m;
8
- const u = d(!1);
9
- C({ preCreate: () => {
10
- u.value = !0, m = "add", c.value = "新建上传配置", g(), A().then((o) => {
11
- const e = o.result;
8
+ const r = d(!1);
9
+ w({ preCreate: () => {
10
+ r.value = !0, m = "add", c.value = "新建上传配置", g(), C().then((s) => {
11
+ const e = s.data;
12
12
  v.value = b(e);
13
13
  });
14
- }, preUpdate: (o) => {
15
- m = "edit", u.value = !0, c.value = "编辑上传配置", g(), F(o).then((e) => {
16
- const s = e.result;
17
- v.value = b(s.extras.extensions), s.maxSize = s.maxSize / 1024, Object.assign(t, s);
14
+ }, preUpdate: (s) => {
15
+ m = "edit", r.value = !0, c.value = "编辑上传配置", g(), C().then((e) => {
16
+ const o = e.data;
17
+ v.value = b(o);
18
+ }), F(s).then((e) => {
19
+ const o = e.data;
20
+ o.extensions = o.extensions.split(","), Object.assign(t, o);
18
21
  });
19
22
  } });
20
23
  const p = S, c = d(""), x = d(), _ = {
@@ -22,54 +25,54 @@ const I = /* @__PURE__ */ P({
22
25
  name: null,
23
26
  keyword: null,
24
27
  storePath: null,
25
- extension: null,
28
+ extensions: null,
26
29
  maxSize: null,
27
30
  isExternal: 0
28
- }, t = B({ ..._ }), w = {
31
+ }, t = R({ ..._ }), U = {
29
32
  name: [{ required: !0, message: "请填写模块描述名称" }],
30
33
  keyword: [{ required: !0, message: "请填写附件标识Key" }],
31
34
  storePath: [{ required: !0, message: "请填写存放路径" }],
32
- extension: [{ required: !0, message: "请选择允许格式" }],
35
+ extensions: [{ required: !0, message: "请选择允许格式" }],
33
36
  maxSize: [{ required: !0, message: "请填写最大值 (数字类型)" }],
34
37
  isExternal: [{ required: !0, message: "请选择存储方式" }]
35
38
  }, g = () => {
36
39
  Object.assign(t, _);
37
- }, f = d(!1), v = d([]), b = (o) => o.map((e) => ({
40
+ }, f = d(!1), v = d([]), b = (s) => s.map((e) => ({
38
41
  value: e.ext,
39
42
  label: e.name
40
- })), U = () => {
43
+ })), E = () => {
41
44
  x.value.validateFields().then(() => {
42
45
  f.value = !0;
43
- const o = { ...j(t), extras: null };
44
- m === "add" ? N(o).then((e) => {
45
- e.code === 200 && (u.value = !1, p("success", m));
46
- }) : V(o).then((e) => {
47
- e.code === 200 && (u.value = !1, p("success", m));
46
+ const s = { ...A(t) };
47
+ m === "add" ? N(s).then((e) => {
48
+ e.code === 200 && (r.value = !1, p("success", m));
49
+ }) : V(s).then((e) => {
50
+ e.code === 200 && (r.value = !1, p("success", m));
48
51
  });
49
52
  }).finally(() => {
50
53
  f.value = !1;
51
54
  });
52
- }, z = () => {
53
- u.value = !1, p("cancel");
55
+ }, h = () => {
56
+ r.value = !1, p("cancel");
54
57
  };
55
- return (o, e) => {
56
- const s = r("a-input"), i = r("a-form-item"), E = r("a-checkbox-group"), k = r("a-select-option"), q = r("a-select"), h = r("a-form"), K = r("a-modal");
57
- return R(), O(K, {
58
+ return (s, e) => {
59
+ const o = u("a-input"), i = u("a-form-item"), q = u("a-checkbox-group"), k = u("a-select-option"), z = u("a-select"), K = u("a-form"), P = u("a-modal");
60
+ return O(), j(P, {
58
61
  title: c.value,
59
62
  width: 800,
60
- open: u.value,
63
+ open: r.value,
61
64
  "mask-closable": !1,
62
65
  "destroy-on-close": "",
63
66
  "confirm-loading": f.value,
64
- onOk: U,
65
- onCancel: z
67
+ onOk: E,
68
+ onCancel: h
66
69
  }, {
67
70
  default: n(() => [
68
- a(h, {
71
+ a(K, {
69
72
  ref_key: "formRef",
70
73
  ref: x,
71
74
  model: t,
72
- rules: w,
75
+ rules: U,
73
76
  "label-col": { span: 5 },
74
77
  "wrapper-col": { span: 12 }
75
78
  }, {
@@ -79,7 +82,7 @@ const I = /* @__PURE__ */ P({
79
82
  name: "name"
80
83
  }, {
81
84
  default: n(() => [
82
- a(s, {
85
+ a(o, {
83
86
  value: t.name,
84
87
  "onUpdate:value": e[0] || (e[0] = (l) => t.name = l),
85
88
  placeholder: "模块描述名称"
@@ -92,7 +95,7 @@ const I = /* @__PURE__ */ P({
92
95
  name: "keyword"
93
96
  }, {
94
97
  default: n(() => [
95
- a(s, {
98
+ a(o, {
96
99
  value: t.keyword,
97
100
  "onUpdate:value": e[1] || (e[1] = (l) => t.keyword = l),
98
101
  placeholder: "附件标识Key"
@@ -105,7 +108,7 @@ const I = /* @__PURE__ */ P({
105
108
  name: "storePath"
106
109
  }, {
107
110
  default: n(() => [
108
- a(s, {
111
+ a(o, {
109
112
  value: t.storePath,
110
113
  "onUpdate:value": e[2] || (e[2] = (l) => t.storePath = l),
111
114
  placeholder: "存储路径"
@@ -118,9 +121,9 @@ const I = /* @__PURE__ */ P({
118
121
  name: "extension"
119
122
  }, {
120
123
  default: n(() => [
121
- a(E, {
122
- value: t.extension,
123
- "onUpdate:value": e[3] || (e[3] = (l) => t.extension = l),
124
+ a(q, {
125
+ value: t.extensions,
126
+ "onUpdate:value": e[3] || (e[3] = (l) => t.extensions = l),
124
127
  options: v.value
125
128
  }, null, 8, ["value", "options"])
126
129
  ]),
@@ -131,7 +134,7 @@ const I = /* @__PURE__ */ P({
131
134
  name: "maxSize"
132
135
  }, {
133
136
  default: n(() => [
134
- a(s, {
137
+ a(o, {
135
138
  value: t.maxSize,
136
139
  "onUpdate:value": e[4] || (e[4] = (l) => t.maxSize = l),
137
140
  placeholder: "最大值 (KB)"
@@ -144,7 +147,7 @@ const I = /* @__PURE__ */ P({
144
147
  name: "isExternal"
145
148
  }, {
146
149
  default: n(() => [
147
- a(q, {
150
+ a(z, {
148
151
  value: t.isExternal,
149
152
  "onUpdate:value": e[5] || (e[5] = (l) => t.isExternal = l)
150
153
  }, {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as E, ref as k, reactive as F, resolveComponent as a, openBlock as m, createElementBlock as f, createElementVNode as p, createVNode as t, withCtx as o, createTextVNode as s, unref as c, toDisplayString as g, createCommentVNode as b, createBlock as P, Fragment as O } from "vue";
2
2
  import { CloudTwoTone as j, PlusOutlined as A } from "@ant-design/icons-vue";
3
- import { queryConfigs as K, deleteConfig as L } from "./api.js";
3
+ import { queryConfigs as K, deleteConfig as G } from "./api.js";
4
4
  import { message as h } from "ant-design-vue";
5
- import G from "./AttachmentEdit.vue.js";
6
- import { FxCardTable as H } from "@since2006/components";
7
- const J = { class: "ant-pro-table" }, M = { class: "ant-pro-table-search" }, Q = ["onClick"], W = ["onClick"], ne = /* @__PURE__ */ E({
8
- __name: "AttachmentList",
5
+ import H from "./AttachmentEdit.vue.js";
6
+ import { FxCardTable as J } from "@since2006/components";
7
+ const L = { class: "ant-pro-table" }, M = { class: "ant-pro-table-search" }, Q = ["onClick"], W = ["onClick"], ne = /* @__PURE__ */ E({
8
+ __name: "AttachmentIndex",
9
9
  setup(X) {
10
10
  const r = k(), I = [
11
11
  {
@@ -18,7 +18,7 @@ const J = { class: "ant-pro-table" }, M = { class: "ant-pro-table-search" }, Q =
18
18
  },
19
19
  {
20
20
  title: "允许类型",
21
- dataIndex: "extensionDesc"
21
+ dataIndex: "extensions"
22
22
  },
23
23
  {
24
24
  title: "大小",
@@ -39,21 +39,21 @@ const J = { class: "ant-pro-table" }, M = { class: "ant-pro-table-search" }, Q =
39
39
  }, w = () => {
40
40
  d.query = void 0, r.value.refresh();
41
41
  }, q = (n) => {
42
- L(n.id).then(() => {
42
+ G(n.id).then(() => {
43
43
  h.success("删除附件配置成功"), r.value.refresh();
44
44
  });
45
- }, u = k(), D = () => {
45
+ }, u = k(), R = () => {
46
46
  u.value.preCreate();
47
47
  }, v = (n) => {
48
48
  u.value.preUpdate(n.id);
49
- }, R = (n) => {
49
+ }, D = (n) => {
50
50
  let e;
51
51
  n === "add" ? e = "添加附件配置成功" : e = "编辑附件配置成功", h.success(e), r.value.refresh();
52
52
  };
53
53
  return (n, e) => {
54
- const N = a("a-input"), S = a("a-form-item"), C = a("a-col"), _ = a("a-button"), T = a("a-row"), U = a("a-form"), V = a("a-typography-paragraph"), $ = a("a-divider"), z = a("a-popconfirm");
54
+ const N = a("a-input"), S = a("a-form-item"), x = a("a-col"), _ = a("a-button"), T = a("a-row"), U = a("a-form"), V = a("a-typography-paragraph"), $ = a("a-divider"), z = a("a-popconfirm");
55
55
  return m(), f("div", null, [
56
- p("div", J, [
56
+ p("div", L, [
57
57
  p("div", M, [
58
58
  t(U, { layout: "horizontal" }, {
59
59
  default: o(() => [
@@ -63,7 +63,7 @@ const J = { class: "ant-pro-table" }, M = { class: "ant-pro-table-search" }, Q =
63
63
  justify: "start"
64
64
  }, {
65
65
  default: o(() => [
66
- t(C, {
66
+ t(x, {
67
67
  xs: 24,
68
68
  sm: 24,
69
69
  md: 12,
@@ -84,7 +84,7 @@ const J = { class: "ant-pro-table" }, M = { class: "ant-pro-table-search" }, Q =
84
84
  ]),
85
85
  _: 1
86
86
  }),
87
- t(C, null, {
87
+ t(x, null, {
88
88
  default: o(() => [
89
89
  t(_, {
90
90
  onClick: y,
@@ -114,7 +114,7 @@ const J = { class: "ant-pro-table" }, M = { class: "ant-pro-table-search" }, Q =
114
114
  _: 1
115
115
  })
116
116
  ]),
117
- t(c(H), {
117
+ t(c(J), {
118
118
  columns: I,
119
119
  "load-data": c(K),
120
120
  params: d,
@@ -123,12 +123,12 @@ const J = { class: "ant-pro-table" }, M = { class: "ant-pro-table-search" }, Q =
123
123
  }, {
124
124
  title: o(() => [
125
125
  t(c(j)),
126
- e[3] || (e[3] = s(" 附件上传"))
126
+ e[3] || (e[3] = s(" 附件上传 "))
127
127
  ]),
128
128
  toolbar: o(() => [
129
129
  t(_, {
130
130
  type: "primary",
131
- onClick: D
131
+ onClick: R
132
132
  }, {
133
133
  default: o(() => [
134
134
  t(c(A)),
@@ -140,7 +140,7 @@ const J = { class: "ant-pro-table" }, M = { class: "ant-pro-table-search" }, Q =
140
140
  bodyCell: o(({ column: l, record: i, text: B }) => [
141
141
  l.dataIndex === "name" ? (m(), f("a", {
142
142
  key: 0,
143
- onClick: (x) => v(i)
143
+ onClick: (C) => v(i)
144
144
  }, g(i.name), 9, Q)) : b("", !0),
145
145
  l.dataIndex === "keyword" ? (m(), P(V, {
146
146
  key: 1,
@@ -152,12 +152,12 @@ const J = { class: "ant-pro-table" }, M = { class: "ant-pro-table-search" }, Q =
152
152
  _: 2
153
153
  }, 1024)) : l.dataIndex === "action" ? (m(), f(O, { key: 2 }, [
154
154
  p("a", {
155
- onClick: (x) => v(i)
155
+ onClick: (C) => v(i)
156
156
  }, "编辑", 8, W),
157
157
  t($, { type: "vertical" }),
158
158
  t(z, {
159
159
  title: "确定要删除吗?",
160
- onConfirm: (x) => q(i)
160
+ onConfirm: (C) => q(i)
161
161
  }, {
162
162
  default: o(() => e[5] || (e[5] = [
163
163
  p("a", null, "删除", -1)
@@ -169,10 +169,10 @@ const J = { class: "ant-pro-table" }, M = { class: "ant-pro-table-search" }, Q =
169
169
  _: 1
170
170
  }, 8, ["load-data", "params"])
171
171
  ]),
172
- t(G, {
172
+ t(H, {
173
173
  ref_key: "modalRef",
174
174
  ref: u,
175
- onSuccess: R
175
+ onSuccess: D
176
176
  }, null, 512)
177
177
  ]);
178
178
  };
@@ -0,0 +1,4 @@
1
+ import f from "./AttachmentIndex.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,22 +1,22 @@
1
1
  import { http as e } from "@since2006/utils";
2
2
  function i(t) {
3
- return e.get("/api/v2/attachment/query_configs", { params: t });
3
+ return e.get("/api/v1/attachment/query_configs", { params: t });
4
4
  }
5
5
  function o(t) {
6
6
  const n = { id: t };
7
- return e.post("/api/v2/attachment/delete_config", n);
7
+ return e.post("/api/v1/attachment/delete_config", n);
8
8
  }
9
9
  function c() {
10
- return e.get("/api/v2/attachment/get_available_extensions");
10
+ return e.get("/api/v1/attachment/get_available_extensions");
11
11
  }
12
12
  function r(t) {
13
- return e.post("/api/v2/attachment/create_config", t);
13
+ return e.post("/api/v1/attachment/create_config", t);
14
14
  }
15
15
  function f(t) {
16
- return e.get("/api/v2/attachment/get_config?id=" + t);
16
+ return e.get("/api/v1/attachment/get_config?id=" + t);
17
17
  }
18
18
  function g(t) {
19
- return e.post("/api/v2/attachment/update_config", t);
19
+ return e.post("/api/v1/attachment/update_config", t);
20
20
  }
21
21
  export {
22
22
  r as createConfig,
@@ -1,4 +1,4 @@
1
- import t from "./AttachmentList.vue.js";
1
+ import t from "./AttachmentIndex.vue.js";
2
2
  import { withInstall as m } from "@since2006/utils";
3
3
  const n = m(t);
4
4
  export {
@@ -1,6 +1,6 @@
1
- import { defineComponent as B, ref as m, watch as I, resolveComponent as r, openBlock as R, createBlock as E, withCtx as t, createVNode as l, createTextVNode as b } from "vue";
2
- import { getDictionary as F, addDictionary as L, updateDictionary as N } from "./api.js";
3
- const O = /* @__PURE__ */ B({
1
+ import { defineComponent as q, ref as m, watch as B, resolveComponent as r, openBlock as I, createBlock as R, withCtx as t, createVNode as l, createTextVNode as k } from "vue";
2
+ import { getDictionary as F, createDictionary as L, updateDictionary as N } from "./api.js";
3
+ const O = /* @__PURE__ */ q({
4
4
  __name: "DictEdit",
5
5
  props: {
6
6
  open: {
@@ -17,64 +17,64 @@ const O = /* @__PURE__ */ B({
17
17
  }
18
18
  },
19
19
  emits: ["success", "cancel"],
20
- setup(p, { emit: k }) {
21
- const o = p, i = k, c = m(), u = m(!1), v = m(), _ = {
20
+ setup(p, { emit: b }) {
21
+ const o = p, c = b, i = m(), u = m(!1), v = m(), _ = {
22
22
  name: "",
23
23
  keyword: "",
24
- enableCache: !1,
24
+ cacheEnabled: 1,
25
25
  remark: ""
26
- }, e = m({ ..._ }), C = {
26
+ }, a = m({ ..._ }), w = {
27
27
  name: [{ required: !0, message: "请输入字典名称" }],
28
28
  keyword: [{ required: !0, message: "请填写字典标识" }],
29
- enableCache: [{ required: !0, message: "请选择是否缓存" }]
30
- }, w = () => {
31
- e.value = { ..._ };
29
+ cacheEnabled: [{ required: !0, message: "请选择是否缓存" }]
30
+ }, g = () => {
31
+ a.value = { ..._ };
32
32
  };
33
- I(
33
+ B(
34
34
  () => o.open,
35
35
  (d) => {
36
- d && (w(), o.mode === "add" ? g() : h(o.dictId));
36
+ d && (g(), o.mode === "add" ? E() : h(o.dictId));
37
37
  }
38
38
  );
39
- const g = () => {
40
- c.value = "添加字典";
39
+ const E = () => {
40
+ i.value = "添加字典";
41
41
  }, h = (d) => {
42
- c.value = "编辑字典", u.value = !0, F(d).then((a) => {
43
- e.value = a.result, e.value.enableCache = e.value.enableCache + "";
42
+ i.value = "编辑字典", u.value = !0, F(d).then((e) => {
43
+ a.value = e.data;
44
44
  }).finally(() => u.value = !1);
45
45
  }, x = () => {
46
46
  v.value.validateFields().then(() => {
47
47
  if (u.value = !0, o.mode === "add")
48
- L({ ...e.value }).then(() => {
49
- i("success", o.mode);
48
+ L({ ...a.value }).then(() => {
49
+ c("success", o.mode);
50
50
  }).finally(() => u.value = !1);
51
51
  else {
52
- const d = { ...e.value, id: o.dictId };
52
+ const d = { ...a.value, id: o.dictId };
53
53
  N(d).then(() => {
54
- i("success", o.mode);
54
+ c("success", o.mode);
55
55
  }).finally(() => u.value = !1);
56
56
  }
57
57
  });
58
- }, S = () => {
59
- i("cancel");
58
+ }, C = () => {
59
+ c("cancel");
60
60
  };
61
- return (d, a) => {
62
- const f = r("a-input"), s = r("a-form-item"), y = r("a-select-option"), D = r("a-select"), U = r("a-form"), q = r("a-modal");
63
- return R(), E(q, {
61
+ return (d, e) => {
62
+ const f = r("a-input"), s = r("a-form-item"), y = r("a-select-option"), S = r("a-select"), D = r("a-form"), U = r("a-modal");
63
+ return I(), R(U, {
64
64
  open: p.open,
65
- title: c.value,
65
+ title: i.value,
66
66
  width: 800,
67
67
  confirmLoading: u.value,
68
68
  "mask-closable": !1,
69
69
  onOk: x,
70
- onCancel: S
70
+ onCancel: C
71
71
  }, {
72
72
  default: t(() => [
73
- l(U, {
73
+ l(D, {
74
74
  ref_key: "formRef",
75
75
  ref: v,
76
- model: e.value,
77
- rules: C,
76
+ model: a.value,
77
+ rules: w,
78
78
  "label-col": { span: 5 },
79
79
  "wrapper-col": { span: 12 }
80
80
  }, {
@@ -85,8 +85,8 @@ const O = /* @__PURE__ */ B({
85
85
  }, {
86
86
  default: t(() => [
87
87
  l(f, {
88
- value: e.value.name,
89
- "onUpdate:value": a[0] || (a[0] = (n) => e.value.name = n),
88
+ value: a.value.name,
89
+ "onUpdate:value": e[0] || (e[0] = (n) => a.value.name = n),
90
90
  placeholder: "字典名称"
91
91
  }, null, 8, ["value"])
92
92
  ]),
@@ -98,8 +98,8 @@ const O = /* @__PURE__ */ B({
98
98
  }, {
99
99
  default: t(() => [
100
100
  l(f, {
101
- value: e.value.keyword,
102
- "onUpdate:value": a[1] || (a[1] = (n) => e.value.keyword = n),
101
+ value: a.value.keyword,
102
+ "onUpdate:value": e[1] || (e[1] = (n) => a.value.keyword = n),
103
103
  placeholder: "字典标识"
104
104
  }, null, 8, ["value"])
105
105
  ]),
@@ -107,25 +107,25 @@ const O = /* @__PURE__ */ B({
107
107
  }),
108
108
  l(s, {
109
109
  label: "是否缓存",
110
- name: "enableCache"
110
+ name: "cacheEnabled"
111
111
  }, {
112
112
  default: t(() => [
113
- l(D, {
114
- value: e.value.enableCache,
115
- "onUpdate:value": a[2] || (a[2] = (n) => e.value.enableCache = n),
113
+ l(S, {
114
+ value: a.value.cacheEnabled,
115
+ "onUpdate:value": e[2] || (e[2] = (n) => a.value.cacheEnabled = n),
116
116
  style: { width: "170px" },
117
117
  allowClear: ""
118
118
  }, {
119
119
  default: t(() => [
120
- l(y, { value: "1" }, {
121
- default: t(() => a[4] || (a[4] = [
122
- b("是")
120
+ l(y, { value: 1 }, {
121
+ default: t(() => e[4] || (e[4] = [
122
+ k("是")
123
123
  ])),
124
124
  _: 1
125
125
  }),
126
- l(y, { value: "0" }, {
127
- default: t(() => a[5] || (a[5] = [
128
- b("否")
126
+ l(y, { value: 0 }, {
127
+ default: t(() => e[5] || (e[5] = [
128
+ k("否")
129
129
  ])),
130
130
  _: 1
131
131
  })
@@ -138,8 +138,8 @@ const O = /* @__PURE__ */ B({
138
138
  l(s, { label: "描述" }, {
139
139
  default: t(() => [
140
140
  l(f, {
141
- value: e.value.remark,
142
- "onUpdate:value": a[3] || (a[3] = (n) => e.value.remark = n),
141
+ value: a.value.remark,
142
+ "onUpdate:value": e[3] || (e[3] = (n) => a.value.remark = n),
143
143
  placeholder: "字典描述"
144
144
  }, null, 8, ["value"])
145
145
  ]),
@@ -1,7 +1,7 @@
1
1
  import o from "./DictIndex.vue2.js";
2
2
  import "./DictIndex.vue3.js";
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dab314f5"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c36e3212"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./DictItemEdit.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const i = /* @__PURE__ */ o(t, [["__scopeId", "data-v-112d54e0"]]);
4
+ const i = /* @__PURE__ */ o(t, [["__scopeId", "data-v-864b567f"]]);
5
5
  export {
6
6
  i as default
7
7
  };