@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.
- package/dist/es/src/app/attachment/AttachmentEdit.vue.js +43 -40
- package/dist/es/src/app/attachment/{AttachmentList.vue.js → AttachmentIndex.vue.js} +21 -21
- package/dist/es/src/app/attachment/AttachmentIndex.vue2.js +4 -0
- package/dist/es/src/app/attachment/api.js +6 -6
- package/dist/es/src/app/attachment/index.js +1 -1
- package/dist/es/src/app/dict/DictEdit.vue.js +46 -46
- package/dist/es/src/app/dict/DictIndex.vue.js +2 -2
- package/dist/es/src/app/dict/DictItemEdit.vue.js +1 -1
- package/dist/es/src/app/dict/DictItemEdit.vue2.js +39 -38
- package/dist/es/src/app/dict/DictPanel.vue.js +2 -2
- package/dist/es/src/app/dict/DictPanel.vue2.js +80 -80
- package/dist/es/src/app/dict/api.js +22 -20
- package/dist/es/src/app/log/LogIndex.vue.js +5 -236
- package/dist/es/src/app/log/LogIndex.vue2.js +174 -2
- package/dist/es/src/app/log/api.js +39 -7
- package/dist/es/src/app/log/components/AccessLogDetail.vue.js +7 -0
- package/dist/es/src/app/log/components/AccessLogDetail.vue2.js +240 -0
- package/dist/es/src/app/log/components/AccessLogList.vue.js +7 -0
- package/dist/es/src/app/log/components/AccessLogList.vue2.js +452 -0
- package/dist/es/src/app/log/components/AuditLogDetail.vue.js +7 -0
- package/dist/es/src/app/log/components/AuditLogDetail.vue2.js +163 -0
- package/dist/es/src/app/log/components/AuditLogList.vue.js +7 -0
- package/dist/es/src/app/log/components/AuditLogList.vue2.js +325 -0
- package/dist/es/src/app/log/components/ErrorLogDetail.vue.js +7 -0
- package/dist/es/src/app/log/components/ErrorLogDetail.vue2.js +187 -0
- package/dist/es/src/app/log/components/ErrorLogList.vue.js +7 -0
- package/dist/es/src/app/log/components/ErrorLogList.vue2.js +310 -0
- package/dist/es/src/app/log/components/LoginLogDetail.vue.js +7 -0
- package/dist/es/src/app/log/components/LoginLogDetail.vue2.js +182 -0
- package/dist/es/src/app/log/components/LoginLogList.vue.js +7 -0
- package/dist/es/src/app/log/components/LoginLogList.vue2.js +303 -0
- package/dist/es/src/app/log/components/OperationLogDetail.vue.js +7 -0
- package/dist/es/src/app/log/components/OperationLogDetail.vue2.js +229 -0
- package/dist/es/src/app/log/components/OperationLogList.vue.js +7 -0
- package/dist/es/src/app/log/components/OperationLogList.vue2.js +333 -0
- package/dist/es/src/app/log/index.js +3 -3
- package/dist/es/src/app/log/ua-icons.vue.js +2 -2
- package/dist/es/src/app/log/ua-icons.vue2.js +58 -26
- package/dist/es/src/app/metadata/MetadataIndex.vue.js +1 -1
- package/dist/es/src/app/metadata/MetadataUpdate.vue.js +1 -1
- package/dist/es/src/app/metadata/api.js +5 -5
- package/dist/es/src/app/module/ModuleAdd.vue.js +1 -1
- package/dist/es/src/app/module/ModuleAdd.vue2.js +70 -66
- package/dist/es/src/app/module/ModuleDetail.vue.js +10 -10
- package/dist/es/src/app/module/ModuleEdit.vue.js +2 -2
- package/dist/es/src/app/module/ModuleEdit.vue2.js +74 -70
- package/dist/es/src/app/module/ModuleIndex.vue.js +2 -2
- package/dist/es/src/app/module/ModuleIndex.vue2.js +35 -35
- package/dist/es/src/app/module/api.js +10 -6
- package/dist/es/src/app/module/icon/IconSelectorModal.vue.js +2 -2
- package/dist/es/src/app/schedule/CronTypeSelect.vue.js +32 -32
- package/dist/es/src/app/schedule/ScheduleAdd.vue.js +3 -3
- package/dist/es/src/app/schedule/ScheduleAdd.vue2.js +38 -38
- package/dist/es/src/app/schedule/ScheduleEdit.vue.js +1 -1
- package/dist/es/src/app/schedule/ScheduleEdit.vue2.js +56 -56
- package/dist/es/src/app/schedule/ScheduleIndex.vue.js +18 -18
- package/dist/es/src/app/schedule/ScheduleLogList.vue.js +26 -26
- package/dist/es/src/app/schedule/ScheduleLogView.vue.js +3 -3
- package/dist/es/src/app/schedule/ScheduleLogView.vue2.js +7 -7
- package/dist/es/src/app/schedule/api.js +14 -14
- package/dist/es/src/app/system/StatusIndex.vue.js +1 -1
- package/dist/es/src/app/system/StatusIndex.vue2.js +109 -111
- package/dist/es/src/app/system/api.js +2 -3
- package/dist/es/style.css +1 -1
- package/dist/lib/src/app/attachment/AttachmentEdit.vue.js +1 -1
- package/dist/lib/src/app/attachment/AttachmentIndex.vue.js +1 -0
- package/dist/lib/src/app/attachment/{AttachmentList.vue2.js → AttachmentIndex.vue2.js} +1 -1
- package/dist/lib/src/app/attachment/api.js +1 -1
- package/dist/lib/src/app/attachment/index.js +1 -1
- package/dist/lib/src/app/dict/DictEdit.vue.js +1 -1
- package/dist/lib/src/app/dict/DictIndex.vue.js +1 -1
- package/dist/lib/src/app/dict/DictItemEdit.vue.js +1 -1
- package/dist/lib/src/app/dict/DictItemEdit.vue2.js +1 -1
- package/dist/lib/src/app/dict/DictPanel.vue.js +1 -1
- package/dist/lib/src/app/dict/DictPanel.vue2.js +1 -1
- package/dist/lib/src/app/dict/api.js +1 -1
- package/dist/lib/src/app/log/LogIndex.vue.js +1 -1
- package/dist/lib/src/app/log/LogIndex.vue2.js +1 -1
- package/dist/lib/src/app/log/api.js +1 -1
- package/dist/lib/src/app/log/components/AccessLogDetail.vue.js +1 -0
- package/dist/lib/src/app/log/components/AccessLogDetail.vue2.js +1 -0
- package/dist/lib/src/app/log/components/AccessLogList.vue.js +1 -0
- package/dist/lib/src/app/log/components/AccessLogList.vue2.js +1 -0
- package/dist/lib/src/app/log/components/AuditLogDetail.vue.js +1 -0
- package/dist/lib/src/app/log/components/AuditLogDetail.vue2.js +1 -0
- package/dist/lib/src/app/log/components/AuditLogList.vue.js +1 -0
- package/dist/lib/src/app/log/components/AuditLogList.vue2.js +1 -0
- package/dist/lib/src/app/log/components/ErrorLogDetail.vue.js +1 -0
- package/dist/lib/src/app/log/components/ErrorLogDetail.vue2.js +1 -0
- package/dist/lib/src/app/log/components/ErrorLogList.vue.js +1 -0
- package/dist/lib/src/app/log/components/ErrorLogList.vue2.js +1 -0
- package/dist/lib/src/app/log/components/LoginLogDetail.vue.js +1 -0
- package/dist/lib/src/app/log/components/LoginLogDetail.vue2.js +1 -0
- package/dist/lib/src/app/log/components/LoginLogList.vue.js +1 -0
- package/dist/lib/src/app/log/components/LoginLogList.vue2.js +1 -0
- package/dist/lib/src/app/log/components/OperationLogDetail.vue.js +1 -0
- package/dist/lib/src/app/log/components/OperationLogDetail.vue2.js +1 -0
- package/dist/lib/src/app/log/components/OperationLogList.vue.js +1 -0
- package/dist/lib/src/app/log/components/OperationLogList.vue2.js +1 -0
- package/dist/lib/src/app/log/index.js +1 -1
- package/dist/lib/src/app/log/ua-icons.vue.js +1 -1
- package/dist/lib/src/app/log/ua-icons.vue2.js +1 -1
- package/dist/lib/src/app/metadata/MetadataIndex.vue.js +1 -1
- package/dist/lib/src/app/metadata/MetadataUpdate.vue.js +1 -1
- package/dist/lib/src/app/metadata/api.js +1 -1
- package/dist/lib/src/app/module/ModuleAdd.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleAdd.vue2.js +1 -1
- package/dist/lib/src/app/module/ModuleDetail.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleEdit.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleEdit.vue2.js +1 -1
- package/dist/lib/src/app/module/ModuleIndex.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleIndex.vue2.js +1 -1
- package/dist/lib/src/app/module/api.js +1 -1
- package/dist/lib/src/app/module/icon/IconSelectorModal.vue.js +1 -1
- package/dist/lib/src/app/schedule/CronTypeSelect.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleAdd.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleAdd.vue2.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleEdit.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleEdit.vue2.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleIndex.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleLogList.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleLogView.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleLogView.vue2.js +1 -1
- package/dist/lib/src/app/schedule/api.js +1 -1
- package/dist/lib/src/app/system/StatusIndex.vue.js +1 -1
- package/dist/lib/src/app/system/StatusIndex.vue2.js +1 -1
- package/dist/lib/src/app/system/api.js +1 -1
- package/dist/lib/style.css +1 -1
- package/package.json +4 -1
- package/dist/es/src/app/attachment/AttachmentList.vue2.js +0 -4
- package/dist/es/src/app/log/LogView.vue.js +0 -7
- package/dist/es/src/app/log/LogView.vue2.js +0 -164
- package/dist/lib/src/app/attachment/AttachmentList.vue.js +0 -1
- package/dist/lib/src/app/log/LogView.vue.js +0 -1
- package/dist/lib/src/app/log/LogView.vue2.js +0 -1
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getAvailableExtensions as
|
|
3
|
-
const I = /* @__PURE__ */
|
|
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:
|
|
6
|
+
setup(D, { expose: w, emit: S }) {
|
|
7
7
|
let m;
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const e =
|
|
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: (
|
|
15
|
-
m = "edit",
|
|
16
|
-
const
|
|
17
|
-
v.value = b(
|
|
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
|
-
|
|
28
|
+
extensions: null,
|
|
26
29
|
maxSize: null,
|
|
27
30
|
isExternal: 0
|
|
28
|
-
}, t =
|
|
31
|
+
}, t = R({ ..._ }), U = {
|
|
29
32
|
name: [{ required: !0, message: "请填写模块描述名称" }],
|
|
30
33
|
keyword: [{ required: !0, message: "请填写附件标识Key" }],
|
|
31
34
|
storePath: [{ required: !0, message: "请填写存放路径" }],
|
|
32
|
-
|
|
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 = (
|
|
40
|
+
}, f = d(!1), v = d([]), b = (s) => s.map((e) => ({
|
|
38
41
|
value: e.ext,
|
|
39
42
|
label: e.name
|
|
40
|
-
})),
|
|
43
|
+
})), E = () => {
|
|
41
44
|
x.value.validateFields().then(() => {
|
|
42
45
|
f.value = !0;
|
|
43
|
-
const
|
|
44
|
-
m === "add" ? N(
|
|
45
|
-
e.code === 200 && (
|
|
46
|
-
}) : V(
|
|
47
|
-
e.code === 200 && (
|
|
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
|
-
},
|
|
53
|
-
|
|
55
|
+
}, h = () => {
|
|
56
|
+
r.value = !1, p("cancel");
|
|
54
57
|
};
|
|
55
|
-
return (
|
|
56
|
-
const
|
|
57
|
-
return
|
|
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:
|
|
63
|
+
open: r.value,
|
|
61
64
|
"mask-closable": !1,
|
|
62
65
|
"destroy-on-close": "",
|
|
63
66
|
"confirm-loading": f.value,
|
|
64
|
-
onOk:
|
|
65
|
-
onCancel:
|
|
67
|
+
onOk: E,
|
|
68
|
+
onCancel: h
|
|
66
69
|
}, {
|
|
67
70
|
default: n(() => [
|
|
68
|
-
a(
|
|
71
|
+
a(K, {
|
|
69
72
|
ref_key: "formRef",
|
|
70
73
|
ref: x,
|
|
71
74
|
model: t,
|
|
72
|
-
rules:
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
122
|
-
value: t.
|
|
123
|
-
"onUpdate:value": e[3] || (e[3] = (l) => t.
|
|
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(
|
|
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(
|
|
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
|
|
3
|
+
import { queryConfigs as K, deleteConfig as G } from "./api.js";
|
|
4
4
|
import { message as h } from "ant-design-vue";
|
|
5
|
-
import
|
|
6
|
-
import { FxCardTable as
|
|
7
|
-
const
|
|
8
|
-
__name: "
|
|
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: "
|
|
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
|
-
|
|
42
|
+
G(n.id).then(() => {
|
|
43
43
|
h.success("删除附件配置成功"), r.value.refresh();
|
|
44
44
|
});
|
|
45
|
-
}, u = k(),
|
|
45
|
+
}, u = k(), R = () => {
|
|
46
46
|
u.value.preCreate();
|
|
47
47
|
}, v = (n) => {
|
|
48
48
|
u.value.preUpdate(n.id);
|
|
49
|
-
},
|
|
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"),
|
|
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",
|
|
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(
|
|
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(
|
|
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(
|
|
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:
|
|
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: (
|
|
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: (
|
|
155
|
+
onClick: (C) => v(i)
|
|
156
156
|
}, "编辑", 8, W),
|
|
157
157
|
t($, { type: "vertical" }),
|
|
158
158
|
t(z, {
|
|
159
159
|
title: "确定要删除吗?",
|
|
160
|
-
onConfirm: (
|
|
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(
|
|
172
|
+
t(H, {
|
|
173
173
|
ref_key: "modalRef",
|
|
174
174
|
ref: u,
|
|
175
|
-
onSuccess:
|
|
175
|
+
onSuccess: D
|
|
176
176
|
}, null, 512)
|
|
177
177
|
]);
|
|
178
178
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { http as e } from "@since2006/utils";
|
|
2
2
|
function i(t) {
|
|
3
|
-
return e.get("/api/
|
|
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/
|
|
7
|
+
return e.post("/api/v1/attachment/delete_config", n);
|
|
8
8
|
}
|
|
9
9
|
function c() {
|
|
10
|
-
return e.get("/api/
|
|
10
|
+
return e.get("/api/v1/attachment/get_available_extensions");
|
|
11
11
|
}
|
|
12
12
|
function r(t) {
|
|
13
|
-
return e.post("/api/
|
|
13
|
+
return e.post("/api/v1/attachment/create_config", t);
|
|
14
14
|
}
|
|
15
15
|
function f(t) {
|
|
16
|
-
return e.get("/api/
|
|
16
|
+
return e.get("/api/v1/attachment/get_config?id=" + t);
|
|
17
17
|
}
|
|
18
18
|
function g(t) {
|
|
19
|
-
return e.post("/api/
|
|
19
|
+
return e.post("/api/v1/attachment/update_config", t);
|
|
20
20
|
}
|
|
21
21
|
export {
|
|
22
22
|
r as createConfig,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getDictionary as F,
|
|
3
|
-
const O = /* @__PURE__ */
|
|
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:
|
|
21
|
-
const o = p,
|
|
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
|
-
|
|
24
|
+
cacheEnabled: 1,
|
|
25
25
|
remark: ""
|
|
26
|
-
},
|
|
26
|
+
}, a = m({ ..._ }), w = {
|
|
27
27
|
name: [{ required: !0, message: "请输入字典名称" }],
|
|
28
28
|
keyword: [{ required: !0, message: "请填写字典标识" }],
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
|
|
29
|
+
cacheEnabled: [{ required: !0, message: "请选择是否缓存" }]
|
|
30
|
+
}, g = () => {
|
|
31
|
+
a.value = { ..._ };
|
|
32
32
|
};
|
|
33
|
-
|
|
33
|
+
B(
|
|
34
34
|
() => o.open,
|
|
35
35
|
(d) => {
|
|
36
|
-
d && (
|
|
36
|
+
d && (g(), o.mode === "add" ? E() : h(o.dictId));
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
|
-
const
|
|
40
|
-
|
|
39
|
+
const E = () => {
|
|
40
|
+
i.value = "添加字典";
|
|
41
41
|
}, h = (d) => {
|
|
42
|
-
|
|
43
|
-
|
|
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({ ...
|
|
49
|
-
|
|
48
|
+
L({ ...a.value }).then(() => {
|
|
49
|
+
c("success", o.mode);
|
|
50
50
|
}).finally(() => u.value = !1);
|
|
51
51
|
else {
|
|
52
|
-
const d = { ...
|
|
52
|
+
const d = { ...a.value, id: o.dictId };
|
|
53
53
|
N(d).then(() => {
|
|
54
|
-
|
|
54
|
+
c("success", o.mode);
|
|
55
55
|
}).finally(() => u.value = !1);
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
-
},
|
|
59
|
-
|
|
58
|
+
}, C = () => {
|
|
59
|
+
c("cancel");
|
|
60
60
|
};
|
|
61
|
-
return (d,
|
|
62
|
-
const f = r("a-input"), s = r("a-form-item"), y = r("a-select-option"),
|
|
63
|
-
return
|
|
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:
|
|
65
|
+
title: i.value,
|
|
66
66
|
width: 800,
|
|
67
67
|
confirmLoading: u.value,
|
|
68
68
|
"mask-closable": !1,
|
|
69
69
|
onOk: x,
|
|
70
|
-
onCancel:
|
|
70
|
+
onCancel: C
|
|
71
71
|
}, {
|
|
72
72
|
default: t(() => [
|
|
73
|
-
l(
|
|
73
|
+
l(D, {
|
|
74
74
|
ref_key: "formRef",
|
|
75
75
|
ref: v,
|
|
76
|
-
model:
|
|
77
|
-
rules:
|
|
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:
|
|
89
|
-
"onUpdate:value":
|
|
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:
|
|
102
|
-
"onUpdate:value":
|
|
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: "
|
|
110
|
+
name: "cacheEnabled"
|
|
111
111
|
}, {
|
|
112
112
|
default: t(() => [
|
|
113
|
-
l(
|
|
114
|
-
value:
|
|
115
|
-
"onUpdate:value":
|
|
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:
|
|
121
|
-
default: t(() =>
|
|
122
|
-
|
|
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:
|
|
127
|
-
default: t(() =>
|
|
128
|
-
|
|
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:
|
|
142
|
-
"onUpdate:value":
|
|
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
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c36e3212"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
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-
|
|
4
|
+
const i = /* @__PURE__ */ o(t, [["__scopeId", "data-v-864b567f"]]);
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
|
7
7
|
};
|