@since2006/pages 2026.1.1 → 2026.1.3

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,26 +1,26 @@
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({
1
+ import { defineComponent as K, ref as m, reactive as P, resolveComponent as d, openBlock as B, createBlock as E, withCtx as s, createVNode as t, toRaw as R } from "vue";
2
+ import { getAvailableExtensions as k, getConfig as O, createConfig as j, updateConfig as A } from "./api.js";
3
+ const G = /* @__PURE__ */ K({
4
4
  __name: "AttachmentEdit",
5
5
  emits: ["success", "cancel"],
6
- setup(D, { expose: w, emit: S }) {
7
- let m;
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;
6
+ setup(F, { expose: h, emit: y }) {
7
+ let u;
8
+ const r = m(!1);
9
+ h({ preCreate: () => {
10
+ r.value = !0, u = "add", p.value = "新建上传配置", g(), k().then((n) => {
11
+ const e = n.data;
12
12
  v.value = b(e);
13
13
  });
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);
14
+ }, preUpdate: (n) => {
15
+ u = "edit", r.value = !0, p.value = "编辑上传配置", g(), k().then((e) => {
16
+ const l = e.data;
17
+ v.value = b(l);
18
+ }), O(n).then((e) => {
19
+ const l = e.data;
20
+ l.extensions = l.extensions.split(","), Object.assign(a, l);
21
21
  });
22
22
  } });
23
- const p = S, c = d(""), x = d(), _ = {
23
+ const c = y, p = m(""), x = m(), _ = {
24
24
  id: null,
25
25
  name: null,
26
26
  keyword: null,
@@ -28,7 +28,7 @@ const I = /* @__PURE__ */ B({
28
28
  extensions: null,
29
29
  maxSize: null,
30
30
  isExternal: 0
31
- }, t = R({ ..._ }), U = {
31
+ }, a = P({ ..._ }), C = {
32
32
  name: [{ required: !0, message: "请填写模块描述名称" }],
33
33
  keyword: [{ required: !0, message: "请填写附件标识Key" }],
34
34
  storePath: [{ required: !0, message: "请填写存放路径" }],
@@ -36,139 +36,111 @@ const I = /* @__PURE__ */ B({
36
36
  maxSize: [{ required: !0, message: "请填写最大值 (数字类型)" }],
37
37
  isExternal: [{ required: !0, message: "请选择存储方式" }]
38
38
  }, g = () => {
39
- Object.assign(t, _);
40
- }, f = d(!1), v = d([]), b = (s) => s.map((e) => ({
39
+ Object.assign(a, _);
40
+ }, f = m(!1), v = m([]), b = (n) => n.map((e) => ({
41
41
  value: e.ext,
42
42
  label: e.name
43
- })), E = () => {
43
+ })), w = () => {
44
44
  x.value.validateFields().then(() => {
45
45
  f.value = !0;
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));
46
+ const n = { ...R(a) };
47
+ u === "add" ? j(n).then((e) => {
48
+ e.code === 200 && (r.value = !1, c("success", u));
49
+ }) : A(n).then((e) => {
50
+ e.code === 200 && (r.value = !1, c("success", u));
51
51
  });
52
52
  }).finally(() => {
53
53
  f.value = !1;
54
54
  });
55
- }, h = () => {
56
- r.value = !1, p("cancel");
55
+ }, S = () => {
56
+ r.value = !1, c("cancel");
57
57
  };
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, {
61
- title: c.value,
58
+ return (n, e) => {
59
+ const l = d("a-input"), i = d("a-form-item"), U = d("a-checkbox-group"), q = d("a-form"), z = d("a-modal");
60
+ return B(), E(z, {
61
+ title: p.value,
62
62
  width: 800,
63
63
  open: r.value,
64
64
  "mask-closable": !1,
65
65
  "destroy-on-close": "",
66
66
  "confirm-loading": f.value,
67
- onOk: E,
68
- onCancel: h
67
+ onOk: w,
68
+ onCancel: S
69
69
  }, {
70
- default: n(() => [
71
- a(K, {
70
+ default: s(() => [
71
+ t(q, {
72
72
  ref_key: "formRef",
73
73
  ref: x,
74
- model: t,
75
- rules: U,
74
+ model: a,
75
+ rules: C,
76
76
  "label-col": { span: 5 },
77
77
  "wrapper-col": { span: 12 }
78
78
  }, {
79
- default: n(() => [
80
- a(i, {
79
+ default: s(() => [
80
+ t(i, {
81
81
  label: "模块描述名称",
82
82
  name: "name"
83
83
  }, {
84
- default: n(() => [
85
- a(o, {
86
- value: t.name,
87
- "onUpdate:value": e[0] || (e[0] = (l) => t.name = l),
84
+ default: s(() => [
85
+ t(l, {
86
+ value: a.name,
87
+ "onUpdate:value": e[0] || (e[0] = (o) => a.name = o),
88
88
  placeholder: "模块描述名称"
89
89
  }, null, 8, ["value"])
90
90
  ]),
91
91
  _: 1
92
92
  }),
93
- a(i, {
93
+ t(i, {
94
94
  label: "附件标识Key",
95
95
  name: "keyword"
96
96
  }, {
97
- default: n(() => [
98
- a(o, {
99
- value: t.keyword,
100
- "onUpdate:value": e[1] || (e[1] = (l) => t.keyword = l),
97
+ default: s(() => [
98
+ t(l, {
99
+ value: a.keyword,
100
+ "onUpdate:value": e[1] || (e[1] = (o) => a.keyword = o),
101
101
  placeholder: "附件标识Key"
102
102
  }, null, 8, ["value"])
103
103
  ]),
104
104
  _: 1
105
105
  }),
106
- a(i, {
106
+ t(i, {
107
107
  label: "存储路径",
108
108
  name: "storePath"
109
109
  }, {
110
- default: n(() => [
111
- a(o, {
112
- value: t.storePath,
113
- "onUpdate:value": e[2] || (e[2] = (l) => t.storePath = l),
110
+ default: s(() => [
111
+ t(l, {
112
+ value: a.storePath,
113
+ "onUpdate:value": e[2] || (e[2] = (o) => a.storePath = o),
114
114
  placeholder: "存储路径"
115
115
  }, null, 8, ["value"])
116
116
  ]),
117
117
  _: 1
118
118
  }),
119
- a(i, {
119
+ t(i, {
120
120
  label: "允许格式",
121
121
  name: "extension"
122
122
  }, {
123
- default: n(() => [
124
- a(q, {
125
- value: t.extensions,
126
- "onUpdate:value": e[3] || (e[3] = (l) => t.extensions = l),
123
+ default: s(() => [
124
+ t(U, {
125
+ value: a.extensions,
126
+ "onUpdate:value": e[3] || (e[3] = (o) => a.extensions = o),
127
127
  options: v.value
128
128
  }, null, 8, ["value", "options"])
129
129
  ]),
130
130
  _: 1
131
131
  }),
132
- a(i, {
132
+ t(i, {
133
133
  label: "最大值 (KB)",
134
134
  name: "maxSize"
135
135
  }, {
136
- default: n(() => [
137
- a(o, {
138
- value: t.maxSize,
139
- "onUpdate:value": e[4] || (e[4] = (l) => t.maxSize = l),
136
+ default: s(() => [
137
+ t(l, {
138
+ value: a.maxSize,
139
+ "onUpdate:value": e[4] || (e[4] = (o) => a.maxSize = o),
140
140
  placeholder: "最大值 (KB)"
141
141
  }, null, 8, ["value"])
142
142
  ]),
143
143
  _: 1
144
- }),
145
- a(i, {
146
- label: "存储方式",
147
- name: "isExternal"
148
- }, {
149
- default: n(() => [
150
- a(z, {
151
- value: t.isExternal,
152
- "onUpdate:value": e[5] || (e[5] = (l) => t.isExternal = l)
153
- }, {
154
- default: n(() => [
155
- a(k, { value: 0 }, {
156
- default: n(() => e[6] || (e[6] = [
157
- y("本地存储")
158
- ])),
159
- _: 1
160
- }),
161
- a(k, { value: 1 }, {
162
- default: n(() => e[7] || (e[7] = [
163
- y("云存储")
164
- ])),
165
- _: 1
166
- })
167
- ]),
168
- _: 1
169
- }, 8, ["value"])
170
- ]),
171
- _: 1
172
144
  })
173
145
  ]),
174
146
  _: 1
@@ -180,5 +152,5 @@ const I = /* @__PURE__ */ B({
180
152
  }
181
153
  });
182
154
  export {
183
- I as default
155
+ G as default
184
156
  };
@@ -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-864b567f"]]);
4
+ const i = /* @__PURE__ */ o(t, [["__scopeId", "data-v-1d93855a"]]);
5
5
  export {
6
6
  i as default
7
7
  };
@@ -1,7 +1,8 @@
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
- import { message as O } from "ant-design-vue";
4
- const G = /* @__PURE__ */ R({
1
+ import { defineComponent as V, ref as i, watch as E, resolveComponent as r, openBlock as g, createBlock as y, withCtx as u, createVNode as t, createTextVNode as F, toDisplayString as L, createCommentVNode as O, unref as A } from "vue";
2
+ import { getDictItem as v, createDictItem as M, updateDictItem as Q } from "./api.js";
3
+ import { message as T } from "ant-design-vue";
4
+ import { QuestionCircleOutlined as j } from "@ant-design/icons-vue";
5
+ const K = /* @__PURE__ */ V({
5
6
  __name: "DictItemEdit",
6
7
  props: {
7
8
  open: {
@@ -22,146 +23,171 @@ const G = /* @__PURE__ */ R({
22
23
  }
23
24
  },
24
25
  emits: ["success", "cancel"],
25
- setup(f, { emit: b }) {
26
- const i = m(""), c = m(!1), o = m(null), _ = m(), n = f, I = b, k = {
26
+ setup(f, { emit: h }) {
27
+ const c = i(""), p = i(!1), s = i(null), _ = i(), o = f, k = h, I = {
27
28
  id: null,
28
29
  parentId: null,
29
30
  name: null,
31
+ keyword: null,
30
32
  value: null,
31
33
  seqNo: null,
32
34
  status: !0,
33
35
  remark: null
34
- }, e = m({ ...k }), q = {
36
+ }, e = i({ ...I }), b = {
35
37
  name: [{ required: !0, message: "请填写字典项名称" }],
38
+ keyword: [{ required: !0, message: "请填写字典项编码" }],
36
39
  value: [{ required: !0, message: "请填写字典项取值" }],
37
40
  seqNo: [{ required: !0, message: "请填写数字类型顺序号" }],
38
41
  status: [{ required: !0, message: "请选择字典项状态" }]
39
- }, y = () => {
40
- e.value = { ...k };
42
+ }, q = () => {
43
+ e.value = { ...I };
41
44
  };
42
- V(
43
- () => n.open,
44
- (t) => {
45
- t && (y(), n.mode === "add" ? N() : S());
45
+ E(
46
+ () => o.open,
47
+ (a) => {
48
+ a && (q(), o.mode === "add" ? w() : N());
46
49
  }
47
50
  );
48
- const N = () => {
49
- i.value = "添加字典项", n.itemId !== null ? p(n.itemId).then((t) => {
50
- o.value = t.data;
51
- }) : o.value = null;
52
- }, S = () => {
53
- i.value = "修改字典项", e.value.id = n.itemId, p(n.itemId).then((t) => {
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;
56
- }) : o.value = null;
51
+ const w = () => {
52
+ c.value = "添加字典项", o.itemId !== null ? v(o.itemId).then((a) => {
53
+ s.value = a.data;
54
+ }) : s.value = null;
55
+ }, N = () => {
56
+ c.value = "修改字典项", e.value.id = o.itemId, v(o.itemId).then((a) => {
57
+ e.value = a.data, e.value.status = a.data.status === 1, e.value.parentId != null ? v(e.value.parentId).then((l) => {
58
+ s.value = l.data;
59
+ }) : s.value = null;
57
60
  });
58
- }, w = () => {
61
+ }, S = () => {
59
62
  _.value.validateFields().then(() => {
60
- const t = { ...e.value, dictId: n.dictId };
61
- o.value !== null && (t.parentId = o.value.id), t.status = t.status ? 1 : 0;
62
- let a = null;
63
- if (n.mode === "add")
64
- a = A;
65
- else if (n.mode === "edit")
66
- a = M;
63
+ const a = { ...e.value, dictId: o.dictId };
64
+ s.value !== null && (a.parentId = s.value.id), a.status = a.status ? 1 : 0;
65
+ let l = null;
66
+ if (o.mode === "add")
67
+ l = M;
68
+ else if (o.mode === "edit")
69
+ l = Q;
67
70
  else
68
71
  return !1;
69
- c.value = !0, a(t).then((s) => {
70
- O.success("操作成功"), I("success", s.data.parentId);
71
- }).finally(() => c.value = !1);
72
+ p.value = !0, l(a).then((d) => {
73
+ T.success("操作成功"), k("success", d.data.parentId);
74
+ }).finally(() => p.value = !1);
72
75
  });
73
76
  }, C = () => {
74
- I("cancel");
77
+ k("cancel");
75
78
  };
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, {
79
+ return (a, l) => {
80
+ const d = r("a-form-item"), m = r("a-input"), U = r("a-tooltip"), x = r("a-input-number"), D = r("a-switch"), B = r("a-form"), R = r("a-modal");
81
+ return g(), y(R, {
79
82
  open: f.open,
80
- title: i.value,
83
+ title: c.value,
81
84
  width: 800,
82
- confirmLoading: c.value,
85
+ confirmLoading: p.value,
83
86
  "mask-closable": !1,
84
- onOk: w,
87
+ onOk: S,
85
88
  onCancel: C
86
89
  }, {
87
- default: d(() => [
88
- l(x, {
90
+ default: u(() => [
91
+ t(B, {
89
92
  ref_key: "formRef",
90
93
  ref: _,
91
94
  model: e.value,
92
- rules: q,
95
+ rules: b,
93
96
  "label-col": { span: 5 },
94
97
  "wrapper-col": { span: 12 }
95
98
  }, {
96
- default: d(() => [
97
- o.value ? (g(), h(s, {
99
+ default: u(() => [
100
+ s.value ? (g(), y(d, {
98
101
  key: 0,
99
102
  label: "所属上级",
100
103
  class: "notice"
101
104
  }, {
102
- default: d(() => [
103
- E(F(o.value.name), 1)
105
+ default: u(() => [
106
+ F(L(s.value.name), 1)
104
107
  ]),
105
108
  _: 1
106
- })) : L("", !0),
107
- l(s, {
109
+ })) : O("", !0),
110
+ t(d, {
108
111
  label: "字典项名称",
109
112
  name: "name"
110
113
  }, {
111
- default: d(() => [
112
- l(v, {
114
+ default: u(() => [
115
+ t(m, {
113
116
  value: e.value.name,
114
- "onUpdate:value": a[0] || (a[0] = (u) => e.value.name = u),
117
+ "onUpdate:value": l[0] || (l[0] = (n) => e.value.name = n),
115
118
  placeholder: "字典项名称"
116
119
  }, null, 8, ["value"])
117
120
  ]),
118
121
  _: 1
119
122
  }),
120
- l(s, {
123
+ t(d, {
124
+ label: "字典项编码",
125
+ name: "keyword"
126
+ }, {
127
+ default: u(() => [
128
+ t(m, {
129
+ value: e.value.keyword,
130
+ "onUpdate:value": l[1] || (l[1] = (n) => e.value.keyword = n),
131
+ placeholder: "字典项编码"
132
+ }, {
133
+ suffix: u(() => [
134
+ t(U, { title: "用于实现国际化(i18n)时使用" }, {
135
+ default: u(() => [
136
+ t(A(j), { style: { color: "orange" } })
137
+ ]),
138
+ _: 1
139
+ })
140
+ ]),
141
+ _: 1
142
+ }, 8, ["value"])
143
+ ]),
144
+ _: 1
145
+ }),
146
+ t(d, {
121
147
  label: "字典项取值",
122
148
  name: "value"
123
149
  }, {
124
- default: d(() => [
125
- l(v, {
150
+ default: u(() => [
151
+ t(m, {
126
152
  value: e.value.value,
127
- "onUpdate:value": a[1] || (a[1] = (u) => e.value.value = u),
153
+ "onUpdate:value": l[2] || (l[2] = (n) => e.value.value = n),
128
154
  placeholder: "字典项取值"
129
155
  }, null, 8, ["value"])
130
156
  ]),
131
157
  _: 1
132
158
  }),
133
- l(s, {
159
+ t(d, {
134
160
  label: "顺序号",
135
161
  name: "seqNo"
136
162
  }, {
137
- default: d(() => [
138
- l(D, {
163
+ default: u(() => [
164
+ t(x, {
139
165
  value: e.value.seqNo,
140
- "onUpdate:value": a[2] || (a[2] = (u) => e.value.seqNo = u),
166
+ "onUpdate:value": l[3] || (l[3] = (n) => e.value.seqNo = n),
141
167
  placeholder: "顺序号"
142
168
  }, null, 8, ["value"])
143
169
  ]),
144
170
  _: 1
145
171
  }),
146
- l(s, {
172
+ t(d, {
147
173
  label: "状态",
148
174
  name: "state"
149
175
  }, {
150
- default: d(() => [
151
- l(U, {
176
+ default: u(() => [
177
+ t(D, {
152
178
  checked: e.value.status,
153
- "onUpdate:checked": a[3] || (a[3] = (u) => e.value.status = u),
179
+ "onUpdate:checked": l[4] || (l[4] = (n) => e.value.status = n),
154
180
  "checked-children": "启用",
155
181
  "un-checked-children": "禁用"
156
182
  }, null, 8, ["checked"])
157
183
  ]),
158
184
  _: 1
159
185
  }),
160
- l(s, { label: "描述" }, {
161
- default: d(() => [
162
- l(v, {
186
+ t(d, { label: "描述" }, {
187
+ default: u(() => [
188
+ t(m, {
163
189
  value: e.value.remark,
164
- "onUpdate:value": a[4] || (a[4] = (u) => e.value.remark = u),
190
+ "onUpdate:value": l[5] || (l[5] = (n) => e.value.remark = n),
165
191
  placeholder: "字典描述"
166
192
  }, null, 8, ["value"])
167
193
  ]),
@@ -177,5 +203,5 @@ const G = /* @__PURE__ */ R({
177
203
  }
178
204
  });
179
205
  export {
180
- G as default
206
+ K as default
181
207
  };
@@ -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 e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1cbc3d31"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d604435e"]]);
5
5
  export {
6
- e as default
6
+ m as default
7
7
  };
@@ -1,4 +1,4 @@
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";
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 i, createElementVNode as b, h as w, unref as C, createCommentVNode as x } 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
4
  import { useRoute as ae } from "vue-router";
@@ -7,44 +7,44 @@ import { PlusCircleOutlined as oe, EditOutlined as ne, DeleteOutlined as de } fr
7
7
  const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { class: "tree-container" }, ke = /* @__PURE__ */ W({
8
8
  __name: "DictPanel",
9
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({
10
+ const B = ae(), p = r(), y = r({}), M = r(!1), c = r(null), d = r({}), v = r([]), h = r([]), _ = r([]), f = r({
11
11
  open: !1,
12
12
  mode: "add",
13
13
  dictId: "",
14
14
  itemId: ""
15
15
  }), O = (e) => {
16
- i.value = e;
16
+ v.value = e;
17
17
  }, P = (e) => (c.value = e, e.dataRef.children ? new Promise((t) => {
18
18
  t("");
19
- }) : T(e.dataRef.key)), z = () => {
19
+ }) : E(e.dataRef.key)), z = () => {
20
20
  Z(p.value).then((e) => {
21
21
  y.value = e.data;
22
22
  });
23
- }, T = async (e) => V(p.value, e).then((t) => {
23
+ }, E = async (e) => V(p.value, e).then((t) => {
24
24
  c.value == null ? _.value = I(t.data) : (c.value.dataRef.children = I(t.data), _.value = [..._.value]);
25
25
  }), A = (e, t) => {
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
- }, w = (e) => {
26
+ const a = t.node.dataRef, n = v.value.includes(a.key);
27
+ a.isLeaf || (t.selected ? n || v.value.push(a.key) : n && (v.value = v.value.filter((m) => m !== a.key))), e.length === 0 ? (console.log("清空选中"), c.value = null) : c.value = t.node, T(a.key);
28
+ }, T = (e) => {
29
29
  M.value = !0, ee(e).then((t) => {
30
30
  d.value = K(t.data);
31
31
  });
32
32
  }, $ = () => {
33
- v.value = {
33
+ f.value = {
34
34
  open: !0,
35
35
  mode: "add",
36
36
  dictId: p.value,
37
37
  itemId: c.value !== null ? d.value.key : null
38
38
  };
39
39
  }, j = () => {
40
- v.value = {
40
+ f.value = {
41
41
  open: !0,
42
42
  mode: "edit",
43
43
  dictId: p.value,
44
44
  itemId: d.value.key
45
45
  };
46
46
  }, F = (e) => {
47
- v.value.open = !1, L(e), d.value.key ? w(d.value.key) : d.value = {};
47
+ f.value.open = !1, L(e), d.value.key ? T(d.value.key) : d.value = {};
48
48
  }, G = () => {
49
49
  te(d.value.key).then((e) => {
50
50
  le.success("删除字典项成功"), L(e.data.parentId), c.value = null, d.value = {};
@@ -52,6 +52,7 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
52
52
  }, I = (e) => e.map((t) => K(t)), K = (e) => ({
53
53
  key: e.id,
54
54
  title: e.name,
55
+ keyword: e.keyword,
55
56
  isLeaf: !e.hasChildren,
56
57
  value: e.value,
57
58
  seqNo: e.seqNo,
@@ -65,8 +66,8 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
65
66
  e.forEach((n) => {
66
67
  if (n.key === t) {
67
68
  n.isLeaf = a.length === 0;
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 = a;
69
+ const m = R([n], 0);
70
+ h.value = h.value.filter((k) => !m.includes(k)), v.value = v.value.filter((k) => !m.includes(k)), n.children = a;
70
71
  } else
71
72
  n.children && N(n.children, t, a);
72
73
  });
@@ -77,9 +78,9 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
77
78
  }), a;
78
79
  };
79
80
  return X(() => {
80
- p.value = B.query.id, z(), T("");
81
+ p.value = B.query.id, z(), E("");
81
82
  }), (e, t) => {
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
+ const a = s("a-descriptions-item"), n = s("a-descriptions"), m = 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
84
  return D(), g(U, { class: "dict-card" }, {
84
85
  default: l(() => [
85
86
  o(n, {
@@ -89,25 +90,25 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
89
90
  default: l(() => [
90
91
  o(a, { label: "字典名称" }, {
91
92
  default: l(() => [
92
- u(m(y.value.name), 1)
93
+ u(i(y.value.name), 1)
93
94
  ]),
94
95
  _: 1
95
96
  }),
96
97
  o(a, { label: "字典标识" }, {
97
98
  default: l(() => [
98
- u(m(y.value.keyword), 1)
99
+ u(i(y.value.keyword), 1)
99
100
  ]),
100
101
  _: 1
101
102
  }),
102
103
  o(a, { label: "是否缓存" }, {
103
104
  default: l(() => [
104
- u(m(y.value.cacheEnabled === 1 ? "是" : "否"), 1)
105
+ u(i(y.value.cacheEnabled === 1 ? "是" : "否"), 1)
105
106
  ]),
106
107
  _: 1
107
108
  }),
108
109
  o(a, { label: "描述" }, {
109
110
  default: l(() => [
110
- u(m(y.value.remark), 1)
111
+ u(i(y.value.remark), 1)
111
112
  ]),
112
113
  _: 1
113
114
  })
@@ -117,9 +118,9 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
117
118
  b("div", ue, [
118
119
  o(H, { wrap: "" }, {
119
120
  default: l(() => [
120
- o(f, {
121
+ o(m, {
121
122
  type: "primary",
122
- icon: C(x(oe)),
123
+ icon: w(C(oe)),
123
124
  onClick: $
124
125
  }, {
125
126
  default: l(() => t[1] || (t[1] = [
@@ -127,31 +128,31 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
127
128
  ])),
128
129
  _: 1
129
130
  }, 8, ["icon"]),
130
- c.value ? (D(), g(f, {
131
+ c.value ? (D(), g(m, {
131
132
  key: 0,
132
- icon: C(x(ne)),
133
+ icon: w(C(ne)),
133
134
  onClick: j
134
135
  }, {
135
136
  default: l(() => t[2] || (t[2] = [
136
137
  u(" 修改字典项 ")
137
138
  ])),
138
139
  _: 1
139
- }, 8, ["icon"])) : E("", !0),
140
+ }, 8, ["icon"])) : x("", !0),
140
141
  o(k, {
141
142
  title: "是否确认删除?",
142
143
  onConfirm: G
143
144
  }, {
144
145
  default: l(() => [
145
- c.value ? (D(), g(f, {
146
+ c.value ? (D(), g(m, {
146
147
  key: 0,
147
148
  danger: "",
148
- icon: C(x(de))
149
+ icon: w(C(de))
149
150
  }, {
150
151
  default: l(() => t[3] || (t[3] = [
151
152
  u("删除字典项")
152
153
  ])),
153
154
  _: 1
154
- }, 8, ["icon"])) : E("", !0)
155
+ }, 8, ["icon"])) : x("", !0)
155
156
  ]),
156
157
  _: 1
157
158
  })
@@ -174,7 +175,7 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
174
175
  b("div", ce, [
175
176
  o(J, {
176
177
  showLine: "",
177
- expandedKeys: i.value,
178
+ expandedKeys: v.value,
178
179
  loadedKeys: h.value,
179
180
  treeData: _.value,
180
181
  onExpand: O,
@@ -198,19 +199,25 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
198
199
  default: l(() => [
199
200
  o(a, { label: "字典名称" }, {
200
201
  default: l(() => [
201
- u(m(d.value.title), 1)
202
+ u(i(d.value.title), 1)
203
+ ]),
204
+ _: 1
205
+ }),
206
+ o(a, { label: "字典标识" }, {
207
+ default: l(() => [
208
+ u(i(d.value.keyword), 1)
202
209
  ]),
203
210
  _: 1
204
211
  }),
205
212
  o(a, { label: "字典取值" }, {
206
213
  default: l(() => [
207
- u(m(d.value.value), 1)
214
+ u(i(d.value.value), 1)
208
215
  ]),
209
216
  _: 1
210
217
  }),
211
218
  o(a, { label: "排序号" }, {
212
219
  default: l(() => [
213
- u(m(d.value.seqNo), 1)
220
+ u(i(d.value.seqNo), 1)
214
221
  ]),
215
222
  _: 1
216
223
  }),
@@ -232,13 +239,13 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
232
239
  u("禁用")
233
240
  ])),
234
241
  _: 1
235
- })) : E("", !0)
242
+ })) : x("", !0)
236
243
  ]),
237
244
  _: 1
238
245
  }),
239
246
  o(a, { label: "描述" }, {
240
247
  default: l(() => [
241
- u(m(d.value.remark), 1)
248
+ u(i(d.value.remark), 1)
242
249
  ]),
243
250
  _: 1
244
251
  })
@@ -253,12 +260,12 @@ const ue = { class: "table-operator" }, se = { class: "dict-content" }, ce = { c
253
260
  })
254
261
  ]),
255
262
  o(Y, {
256
- open: v.value.open,
257
- "dict-id": v.value.dictId,
258
- "item-id": v.value.itemId,
259
- mode: v.value.mode,
263
+ open: f.value.open,
264
+ "dict-id": f.value.dictId,
265
+ "item-id": f.value.itemId,
266
+ mode: f.value.mode,
260
267
  onSuccess: F,
261
- onCancel: t[0] || (t[0] = (ie) => v.value.open = !1)
268
+ onCancel: t[0] || (t[0] = (ie) => f.value.open = !1)
262
269
  }, null, 8, ["open", "dict-id", "item-id", "mode"])
263
270
  ]),
264
271
  _: 1
package/dist/es/style.css CHANGED
@@ -1 +1 @@
1
- .large-text[data-v-74bb63d3]{font-size:16px}.float-right[data-v-74bb63d3]{float:right}.margin-block[data-v-74bb63d3]{margin-top:14px}.icon-selector deep(ul) li.active[data-v-a47fcf40],.icon-selector deep(ul) li[data-v-a47fcf40]:hover{border-radius:2px;border-color:#4a4a48;background-color:#4a4a48;color:#fff;transition:all .3s;box-shadow:none}.icon-selector deep(ul) i[data-v-a47fcf40]{font-size:1.5rem;border:1px solid #f1f1f1;padding:.02rem;margin:.03rem;cursor:pointer}.ant-form[data-v-f8a348f6]{padding-top:20px}.permission-tree[data-v-f8a348f6],.permission-tree[data-v-50a6d9f1]{overflow-y:auto;overflow-x:hidden;margin-top:10px}[data-v-4dc423f0] .ant-pro-table-list-toolbar-container{padding-left:6px}.cron-detail[data-v-dd4b2211]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-dd4b2211]{width:70px}.cron-detail .ant-input[data-v-dd4b2211]{width:280px}.cron-detail[data-v-3b943880]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-3b943880]{width:70px}.cron-detail .ant-input[data-v-3b943880]{width:280px}[data-v-418f353d] .ant-descriptions-item-label{width:140px}.text-ellipsis[data-v-c407c636]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-c407c636] .ant-descriptions-item-label{width:120px}.ua-icon[data-v-f846ecbb]{width:1.2em;height:1.2em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.login-log-list .text-ellipsis[data-v-e0685b29]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.method-text[data-v-8d1c9637]{background:#f5f5f5;padding:2px 6px;border-radius:3px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px}.json-container[data-v-8d1c9637]{max-height:300px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-8d1c9637]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}[data-v-8d1c9637] .ant-descriptions-item-label{width:120px}.operation-log-list .text-ellipsis[data-v-d74ea79a]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-bdeeb034] .ant-descriptions-item-label{width:120px}.audit-log-list .text-ellipsis[data-v-2505b1db]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.text-ellipsis[data-v-7436a600]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.performance-analysis[data-v-7436a600]{padding:16px;background:#fafafa;border-radius:6px}.performance-analysis[data-v-7436a600] .ant-statistic{text-align:center}[data-v-7436a600] .ant-descriptions-item-label{width:120px}.access-log-list .text-ellipsis[data-v-f67f4d15]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.json-container[data-v-793d348e]{max-height:200px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}.stack-container[data-v-793d348e]{max-height:400px;overflow:auto;background:#fff2f0;border:1px solid #ffccc7;padding:12px;border-radius:4px}.stack-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:11px;line-height:1.4;color:#a8071a}[data-v-793d348e] .ant-descriptions-item-label{width:120px}.error-log-list .text-ellipsis[data-v-47610902]{display:inline-block;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.notice[data-v-864b567f]{color:#ff4d4f;font-size:18px}.table-operator[data-v-1cbc3d31]{margin:10px 14px 20px 0}[data-v-1cbc3d31] .ant-descriptions-item-label{width:140px}.tree-container[data-v-1cbc3d31] .ant-tree{max-height:520px;overflow:auto}
1
+ .large-text[data-v-74bb63d3]{font-size:16px}.float-right[data-v-74bb63d3]{float:right}.margin-block[data-v-74bb63d3]{margin-top:14px}.icon-selector deep(ul) li.active[data-v-a47fcf40],.icon-selector deep(ul) li[data-v-a47fcf40]:hover{border-radius:2px;border-color:#4a4a48;background-color:#4a4a48;color:#fff;transition:all .3s;box-shadow:none}.icon-selector deep(ul) i[data-v-a47fcf40]{font-size:1.5rem;border:1px solid #f1f1f1;padding:.02rem;margin:.03rem;cursor:pointer}.ant-form[data-v-f8a348f6]{padding-top:20px}.permission-tree[data-v-f8a348f6],.permission-tree[data-v-50a6d9f1]{overflow-y:auto;overflow-x:hidden;margin-top:10px}[data-v-4dc423f0] .ant-pro-table-list-toolbar-container{padding-left:6px}.cron-detail[data-v-dd4b2211]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-dd4b2211]{width:70px}.cron-detail .ant-input[data-v-dd4b2211]{width:280px}.cron-detail[data-v-3b943880]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-3b943880]{width:70px}.cron-detail .ant-input[data-v-3b943880]{width:280px}[data-v-418f353d] .ant-descriptions-item-label{width:140px}.text-ellipsis[data-v-c407c636]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-c407c636] .ant-descriptions-item-label{width:120px}.ua-icon[data-v-f846ecbb]{width:1.2em;height:1.2em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.login-log-list .text-ellipsis[data-v-e0685b29]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.method-text[data-v-8d1c9637]{background:#f5f5f5;padding:2px 6px;border-radius:3px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px}.json-container[data-v-8d1c9637]{max-height:300px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-8d1c9637]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}[data-v-8d1c9637] .ant-descriptions-item-label{width:120px}.operation-log-list .text-ellipsis[data-v-d74ea79a]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-bdeeb034] .ant-descriptions-item-label{width:120px}.audit-log-list .text-ellipsis[data-v-2505b1db]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.text-ellipsis[data-v-7436a600]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.performance-analysis[data-v-7436a600]{padding:16px;background:#fafafa;border-radius:6px}.performance-analysis[data-v-7436a600] .ant-statistic{text-align:center}[data-v-7436a600] .ant-descriptions-item-label{width:120px}.access-log-list .text-ellipsis[data-v-f67f4d15]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.json-container[data-v-793d348e]{max-height:200px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}.stack-container[data-v-793d348e]{max-height:400px;overflow:auto;background:#fff2f0;border:1px solid #ffccc7;padding:12px;border-radius:4px}.stack-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:11px;line-height:1.4;color:#a8071a}[data-v-793d348e] .ant-descriptions-item-label{width:120px}.error-log-list .text-ellipsis[data-v-47610902]{display:inline-block;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.notice[data-v-1d93855a]{color:#ff4d4f;font-size:18px}.table-operator[data-v-d604435e]{margin:10px 14px 20px 0}[data-v-d604435e] .ant-descriptions-item-label{width:140px}.tree-container[data-v-d604435e] .ant-tree{max-height:520px;overflow:auto}
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("./api.js"),q=e.defineComponent({__name:"AttachmentEdit",emits:["success","cancel"],setup(E,{expose:g,emit:b}){let u;const s=e.ref(!1);g({preCreate:()=>{s.value=!0,u="add",c.value="新建上传配置",x(),i.getAvailableExtensions().then(n=>{const t=n.data;p.value=_(t)})},preUpdate:n=>{u="edit",s.value=!0,c.value="编辑上传配置",x(),i.getAvailableExtensions().then(t=>{const l=t.data;p.value=_(l)}),i.getConfig(n).then(t=>{const l=t.data;l.extensions=l.extensions.split(","),Object.assign(a,l)})}});const d=b,c=e.ref(""),v=e.ref(),f={id:null,name:null,keyword:null,storePath:null,extensions:null,maxSize:null,isExternal:0},a=e.reactive({...f}),w={name:[{required:!0,message:"请填写模块描述名称"}],keyword:[{required:!0,message:"请填写附件标识Key"}],storePath:[{required:!0,message:"请填写存放路径"}],extensions:[{required:!0,message:"请选择允许格式"}],maxSize:[{required:!0,message:"请填写最大值 (数字类型)"}],isExternal:[{required:!0,message:"请选择存储方式"}]},x=()=>{Object.assign(a,f)},m=e.ref(!1),p=e.ref([]),_=n=>n.map(t=>({value:t.ext,label:t.name})),N=()=>{v.value.validateFields().then(()=>{m.value=!0;const n={...e.toRaw(a)};u==="add"?i.createConfig(n).then(t=>{t.code===200&&(s.value=!1,d("success",u))}):i.updateConfig(n).then(t=>{t.code===200&&(s.value=!1,d("success",u))})}).finally(()=>{m.value=!1})},V=()=>{s.value=!1,d("cancel")};return(n,t)=>{const l=e.resolveComponent("a-input"),r=e.resolveComponent("a-form-item"),h=e.resolveComponent("a-checkbox-group"),C=e.resolveComponent("a-select-option"),k=e.resolveComponent("a-select"),y=e.resolveComponent("a-form"),S=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(S,{title:c.value,width:800,open:s.value,"mask-closable":!1,"destroy-on-close":"","confirm-loading":m.value,onOk:N,onCancel:V},{default:e.withCtx(()=>[e.createVNode(y,{ref_key:"formRef",ref:v,model:a,rules:w,"label-col":{span:5},"wrapper-col":{span:12}},{default:e.withCtx(()=>[e.createVNode(r,{label:"模块描述名称",name:"name"},{default:e.withCtx(()=>[e.createVNode(l,{value:a.name,"onUpdate:value":t[0]||(t[0]=o=>a.name=o),placeholder:"模块描述名称"},null,8,["value"])]),_:1}),e.createVNode(r,{label:"附件标识Key",name:"keyword"},{default:e.withCtx(()=>[e.createVNode(l,{value:a.keyword,"onUpdate:value":t[1]||(t[1]=o=>a.keyword=o),placeholder:"附件标识Key"},null,8,["value"])]),_:1}),e.createVNode(r,{label:"存储路径",name:"storePath"},{default:e.withCtx(()=>[e.createVNode(l,{value:a.storePath,"onUpdate:value":t[2]||(t[2]=o=>a.storePath=o),placeholder:"存储路径"},null,8,["value"])]),_:1}),e.createVNode(r,{label:"允许格式",name:"extension"},{default:e.withCtx(()=>[e.createVNode(h,{value:a.extensions,"onUpdate:value":t[3]||(t[3]=o=>a.extensions=o),options:p.value},null,8,["value","options"])]),_:1}),e.createVNode(r,{label:"最大值 (KB)",name:"maxSize"},{default:e.withCtx(()=>[e.createVNode(l,{value:a.maxSize,"onUpdate:value":t[4]||(t[4]=o=>a.maxSize=o),placeholder:"最大值 (KB)"},null,8,["value"])]),_:1}),e.createVNode(r,{label:"存储方式",name:"isExternal"},{default:e.withCtx(()=>[e.createVNode(k,{value:a.isExternal,"onUpdate:value":t[5]||(t[5]=o=>a.isExternal=o)},{default:e.withCtx(()=>[e.createVNode(C,{value:0},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode("本地存储")])),_:1}),e.createVNode(C,{value:1},{default:e.withCtx(()=>t[7]||(t[7]=[e.createTextVNode("云存储")])),_:1})]),_:1},8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["title","open","confirm-loading"])}}});exports.default=q;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("./api.js"),V=e.defineComponent({__name:"AttachmentEdit",emits:["success","cancel"],setup(S,{expose:g,emit:C}){let r;const s=e.ref(!1);g({preCreate:()=>{s.value=!0,r="add",c.value="新建上传配置",x(),i.getAvailableExtensions().then(n=>{const t=n.data;p.value=_(t)})},preUpdate:n=>{r="edit",s.value=!0,c.value="编辑上传配置",x(),i.getAvailableExtensions().then(t=>{const o=t.data;p.value=_(o)}),i.getConfig(n).then(t=>{const o=t.data;o.extensions=o.extensions.split(","),Object.assign(a,o)})}});const d=C,c=e.ref(""),v=e.ref(),f={id:null,name:null,keyword:null,storePath:null,extensions:null,maxSize:null,isExternal:0},a=e.reactive({...f}),b={name:[{required:!0,message:"请填写模块描述名称"}],keyword:[{required:!0,message:"请填写附件标识Key"}],storePath:[{required:!0,message:"请填写存放路径"}],extensions:[{required:!0,message:"请选择允许格式"}],maxSize:[{required:!0,message:"请填写最大值 (数字类型)"}],isExternal:[{required:!0,message:"请选择存储方式"}]},x=()=>{Object.assign(a,f)},m=e.ref(!1),p=e.ref([]),_=n=>n.map(t=>({value:t.ext,label:t.name})),h=()=>{v.value.validateFields().then(()=>{m.value=!0;const n={...e.toRaw(a)};r==="add"?i.createConfig(n).then(t=>{t.code===200&&(s.value=!1,d("success",r))}):i.updateConfig(n).then(t=>{t.code===200&&(s.value=!1,d("success",r))})}).finally(()=>{m.value=!1})},w=()=>{s.value=!1,d("cancel")};return(n,t)=>{const o=e.resolveComponent("a-input"),u=e.resolveComponent("a-form-item"),k=e.resolveComponent("a-checkbox-group"),y=e.resolveComponent("a-form"),N=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(N,{title:c.value,width:800,open:s.value,"mask-closable":!1,"destroy-on-close":"","confirm-loading":m.value,onOk:h,onCancel:w},{default:e.withCtx(()=>[e.createVNode(y,{ref_key:"formRef",ref:v,model:a,rules:b,"label-col":{span:5},"wrapper-col":{span:12}},{default:e.withCtx(()=>[e.createVNode(u,{label:"模块描述名称",name:"name"},{default:e.withCtx(()=>[e.createVNode(o,{value:a.name,"onUpdate:value":t[0]||(t[0]=l=>a.name=l),placeholder:"模块描述名称"},null,8,["value"])]),_:1}),e.createVNode(u,{label:"附件标识Key",name:"keyword"},{default:e.withCtx(()=>[e.createVNode(o,{value:a.keyword,"onUpdate:value":t[1]||(t[1]=l=>a.keyword=l),placeholder:"附件标识Key"},null,8,["value"])]),_:1}),e.createVNode(u,{label:"存储路径",name:"storePath"},{default:e.withCtx(()=>[e.createVNode(o,{value:a.storePath,"onUpdate:value":t[2]||(t[2]=l=>a.storePath=l),placeholder:"存储路径"},null,8,["value"])]),_:1}),e.createVNode(u,{label:"允许格式",name:"extension"},{default:e.withCtx(()=>[e.createVNode(k,{value:a.extensions,"onUpdate:value":t[3]||(t[3]=l=>a.extensions=l),options:p.value},null,8,["value","options"])]),_:1}),e.createVNode(u,{label:"最大值 (KB)",name:"maxSize"},{default:e.withCtx(()=>[e.createVNode(o,{value:a.maxSize,"onUpdate:value":t[4]||(t[4]=l=>a.maxSize=l),placeholder:"最大值 (KB)"},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["title","open","confirm-loading"])}}});exports.default=V;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./DictItemEdit.vue2.js");;/* empty css */const t=require("../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-864b567f"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./DictItemEdit.vue2.js");;/* empty css */const t=require("../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-1d93855a"]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("./api.js"),x=require("ant-design-vue"),y=e.defineComponent({__name:"DictItemEdit",props:{open:{type:Boolean,default:!1},mode:{type:String,default:"add"},dictId:{type:String,default:null},itemId:{type:String,default:null}},emits:["success","cancel"],setup(m,{emit:_}){const d=e.ref(""),i=e.ref(!1),u=e.ref(null),v=e.ref(),n=m,p=_,f={id:null,parentId:null,name:null,value:null,seqNo:null,status:!0,remark:null},t=e.ref({...f}),h={name:[{required:!0,message:"请填写字典项名称"}],value:[{required:!0,message:"请填写字典项取值"}],seqNo:[{required:!0,message:"请填写数字类型顺序号"}],status:[{required:!0,message:"请选择字典项状态"}]},I=()=>{t.value={...f}};e.watch(()=>n.open,l=>{l&&(I(),n.mode==="add"?g():N())});const g=()=>{d.value="添加字典项",n.itemId!==null?r.getDictItem(n.itemId).then(l=>{u.value=l.data}):u.value=null},N=()=>{d.value="修改字典项",t.value.id=n.itemId,r.getDictItem(n.itemId).then(l=>{t.value=l.data,t.value.status=l.data.status===1,t.value.parentId!=null?r.getDictItem(t.value.parentId).then(a=>{u.value=a.data}):u.value=null})},C=()=>{v.value.validateFields().then(()=>{const l={...t.value,dictId:n.dictId};u.value!==null&&(l.parentId=u.value.id),l.status=l.status?1:0;let a=null;if(n.mode==="add")a=r.createDictItem;else if(n.mode==="edit")a=r.updateDictItem;else return!1;i.value=!0,a(l).then(s=>{x.message.success("操作成功"),p("success",s.data.parentId)}).finally(()=>i.value=!1)})},k=()=>{p("cancel")};return(l,a)=>{const s=e.resolveComponent("a-form-item"),c=e.resolveComponent("a-input"),V=e.resolveComponent("a-input-number"),q=e.resolveComponent("a-switch"),w=e.resolveComponent("a-form"),b=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(b,{open:m.open,title:d.value,width:800,confirmLoading:i.value,"mask-closable":!1,onOk:C,onCancel:k},{default:e.withCtx(()=>[e.createVNode(w,{ref_key:"formRef",ref:v,model:t.value,rules:h,"label-col":{span:5},"wrapper-col":{span:12}},{default:e.withCtx(()=>[u.value?(e.openBlock(),e.createBlock(s,{key:0,label:"所属上级",class:"notice"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value.name),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(s,{label:"字典项名称",name:"name"},{default:e.withCtx(()=>[e.createVNode(c,{value:t.value.name,"onUpdate:value":a[0]||(a[0]=o=>t.value.name=o),placeholder:"字典项名称"},null,8,["value"])]),_:1}),e.createVNode(s,{label:"字典项取值",name:"value"},{default:e.withCtx(()=>[e.createVNode(c,{value:t.value.value,"onUpdate:value":a[1]||(a[1]=o=>t.value.value=o),placeholder:"字典项取值"},null,8,["value"])]),_:1}),e.createVNode(s,{label:"顺序号",name:"seqNo"},{default:e.withCtx(()=>[e.createVNode(V,{value:t.value.seqNo,"onUpdate:value":a[2]||(a[2]=o=>t.value.seqNo=o),placeholder:"顺序号"},null,8,["value"])]),_:1}),e.createVNode(s,{label:"状态",name:"state"},{default:e.withCtx(()=>[e.createVNode(q,{checked:t.value.status,"onUpdate:checked":a[3]||(a[3]=o=>t.value.status=o),"checked-children":"启用","un-checked-children":"禁用"},null,8,["checked"])]),_:1}),e.createVNode(s,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(c,{value:t.value.remark,"onUpdate:value":a[4]||(a[4]=o=>t.value.remark=o),placeholder:"字典描述"},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["open","title","confirmLoading"])}}});exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("./api.js"),b=require("ant-design-vue"),S=require("@ant-design/icons-vue"),D=e.defineComponent({__name:"DictItemEdit",props:{open:{type:Boolean,default:!1},mode:{type:String,default:"add"},dictId:{type:String,default:null},itemId:{type:String,default:null}},emits:["success","cancel"],setup(m,{emit:_}){const i=e.ref(""),c=e.ref(!1),r=e.ref(null),v=e.ref(),n=m,p=_,f={id:null,parentId:null,name:null,keyword:null,value:null,seqNo:null,status:!0,remark:null},t=e.ref({...f}),h={name:[{required:!0,message:"请填写字典项名称"}],keyword:[{required:!0,message:"请填写字典项编码"}],value:[{required:!0,message:"请填写字典项取值"}],seqNo:[{required:!0,message:"请填写数字类型顺序号"}],status:[{required:!0,message:"请选择字典项状态"}]},C=()=>{t.value={...f}};e.watch(()=>n.open,l=>{l&&(C(),n.mode==="add"?N():k())});const N=()=>{i.value="添加字典项",n.itemId!==null?d.getDictItem(n.itemId).then(l=>{r.value=l.data}):r.value=null},k=()=>{i.value="修改字典项",t.value.id=n.itemId,d.getDictItem(n.itemId).then(l=>{t.value=l.data,t.value.status=l.data.status===1,t.value.parentId!=null?d.getDictItem(t.value.parentId).then(a=>{r.value=a.data}):r.value=null})},w=()=>{v.value.validateFields().then(()=>{const l={...t.value,dictId:n.dictId};r.value!==null&&(l.parentId=r.value.id),l.status=l.status?1:0;let a=null;if(n.mode==="add")a=d.createDictItem;else if(n.mode==="edit")a=d.updateDictItem;else return!1;c.value=!0,a(l).then(u=>{b.message.success("操作成功"),p("success",u.data.parentId)}).finally(()=>c.value=!1)})},g=()=>{p("cancel")};return(l,a)=>{const u=e.resolveComponent("a-form-item"),s=e.resolveComponent("a-input"),I=e.resolveComponent("a-tooltip"),V=e.resolveComponent("a-input-number"),q=e.resolveComponent("a-switch"),y=e.resolveComponent("a-form"),x=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(x,{open:m.open,title:i.value,width:800,confirmLoading:c.value,"mask-closable":!1,onOk:w,onCancel:g},{default:e.withCtx(()=>[e.createVNode(y,{ref_key:"formRef",ref:v,model:t.value,rules:h,"label-col":{span:5},"wrapper-col":{span:12}},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createBlock(u,{key:0,label:"所属上级",class:"notice"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value.name),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(u,{label:"字典项名称",name:"name"},{default:e.withCtx(()=>[e.createVNode(s,{value:t.value.name,"onUpdate:value":a[0]||(a[0]=o=>t.value.name=o),placeholder:"字典项名称"},null,8,["value"])]),_:1}),e.createVNode(u,{label:"字典项编码",name:"keyword"},{default:e.withCtx(()=>[e.createVNode(s,{value:t.value.keyword,"onUpdate:value":a[1]||(a[1]=o=>t.value.keyword=o),placeholder:"字典项编码"},{suffix:e.withCtx(()=>[e.createVNode(I,{title:"用于实现国际化(i18n)时使用"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.QuestionCircleOutlined),{style:{color:"orange"}})]),_:1})]),_:1},8,["value"])]),_:1}),e.createVNode(u,{label:"字典项取值",name:"value"},{default:e.withCtx(()=>[e.createVNode(s,{value:t.value.value,"onUpdate:value":a[2]||(a[2]=o=>t.value.value=o),placeholder:"字典项取值"},null,8,["value"])]),_:1}),e.createVNode(u,{label:"顺序号",name:"seqNo"},{default:e.withCtx(()=>[e.createVNode(V,{value:t.value.seqNo,"onUpdate:value":a[3]||(a[3]=o=>t.value.seqNo=o),placeholder:"顺序号"},null,8,["value"])]),_:1}),e.createVNode(u,{label:"状态",name:"state"},{default:e.withCtx(()=>[e.createVNode(q,{checked:t.value.status,"onUpdate:checked":a[4]||(a[4]=o=>t.value.status=o),"checked-children":"启用","un-checked-children":"禁用"},null,8,["checked"])]),_:1}),e.createVNode(u,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(s,{value:t.value.remark,"onUpdate:value":a[5]||(a[5]=o=>t.value.remark=o),placeholder:"字典描述"},null,8,["value"])]),_:1})]),_:1},8,["model"])]),_:1},8,["open","title","confirmLoading"])}}});exports.default=D;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./DictPanel.vue2.js");;/* empty css */const t=require("../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-1cbc3d31"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./DictPanel.vue2.js");;/* empty css */const t=require("../../../_virtual/_plugin-vue_export-helper.js"),u=t.default(e.default,[["__scopeId","data-v-d604435e"]]);exports.default=u;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),P=require("./DictItemEdit.vue.js"),f=require("./api.js"),z=require("vue-router"),j=require("ant-design-vue"),C=require("@ant-design/icons-vue"),$={class:"table-operator"},F={class:"dict-content"},G={class:"tree-container"},H=e.defineComponent({__name:"DictPanel",setup(J){const D=z.useRoute(),u=e.ref(),v=e.ref({}),T=e.ref(!1),d=e.ref(null),n=e.ref({}),r=e.ref([]),_=e.ref([]),i=e.ref([]),c=e.ref({open:!1,mode:"add",dictId:"",itemId:""}),I=t=>{r.value=t},b=t=>(d.value=t,t.dataRef.children?new Promise(a=>{a("")}):x(t.dataRef.key)),S=()=>{f.getDictionary(u.value).then(t=>{v.value=t.data})},x=async t=>f.getAdminDictItems(u.value,t).then(a=>{d.value==null?i.value=m(a.data):(d.value.dataRef.children=m(a.data),i.value=[...i.value])}),E=(t,a)=>{const o=a.node.dataRef,l=r.value.includes(o.key);o.isLeaf||(a.selected?l||r.value.push(o.key):l&&(r.value=r.value.filter(s=>s!==o.key))),t.length===0?(console.log("清空选中"),d.value=null):d.value=a.node,N(o.key)},N=t=>{T.value=!0,f.getDictItem(t).then(a=>{n.value=y(a.data)})},B=()=>{c.value={open:!0,mode:"add",dictId:u.value,itemId:d.value!==null?n.value.key:null}},q=()=>{c.value={open:!0,mode:"edit",dictId:u.value,itemId:n.value.key}},K=t=>{c.value.open=!1,V(t),n.value.key?N(n.value.key):n.value={}},L=()=>{f.deleteDictItem(n.value.key).then(t=>{j.message.success("删除字典项成功"),V(t.data.parentId),d.value=null,n.value={}})},m=t=>t.map(a=>y(a)),y=t=>({key:t.id,title:t.name,isLeaf:!t.hasChildren,value:t.value,seqNo:t.seqNo,status:t.status,remark:t.remark}),V=t=>{f.getAdminDictItems(u.value,t).then(a=>{t?h(i.value,t,m(a.data)):i.value=m(a.data)})},h=(t,a,o)=>{t.forEach(l=>{if(l.key===a){l.isLeaf=o.length===0;const s=k([l],0);_.value=_.value.filter(p=>!s.includes(p)),r.value=r.value.filter(p=>!s.includes(p)),l.children=o}else l.children&&h(l.children,a,o)})},k=(t,a)=>{let o=[];return t.forEach(l=>{a>0&&o.push(l.key),l.children&&(o=o.concat(k(l.children,++a)))}),o};return e.onBeforeMount(()=>{u.value=D.query.id,S(),x("")}),(t,a)=>{const o=e.resolveComponent("a-descriptions-item"),l=e.resolveComponent("a-descriptions"),s=e.resolveComponent("a-button"),p=e.resolveComponent("a-popconfirm"),R=e.resolveComponent("a-space"),M=e.resolveComponent("a-tree"),w=e.resolveComponent("a-col"),g=e.resolveComponent("a-tag"),A=e.resolveComponent("a-row"),O=e.resolveComponent("a-card");return e.openBlock(),e.createBlock(O,{class:"dict-card"},{default:e.withCtx(()=>[e.createVNode(l,{column:2,size:"small"},{default:e.withCtx(()=>[e.createVNode(o,{label:"字典名称"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.value.name),1)]),_:1}),e.createVNode(o,{label:"字典标识"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.value.keyword),1)]),_:1}),e.createVNode(o,{label:"是否缓存"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.value.cacheEnabled===1?"是":"否"),1)]),_:1}),e.createVNode(o,{label:"描述"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.value.remark),1)]),_:1})]),_:1}),e.createElementVNode("div",$,[e.createVNode(R,{wrap:""},{default:e.withCtx(()=>[e.createVNode(s,{type:"primary",icon:e.h(e.unref(C.PlusCircleOutlined)),onClick:B},{default:e.withCtx(()=>a[1]||(a[1]=[e.createTextVNode(" 添加字典项 ")])),_:1},8,["icon"]),d.value?(e.openBlock(),e.createBlock(s,{key:0,icon:e.h(e.unref(C.EditOutlined)),onClick:q},{default:e.withCtx(()=>a[2]||(a[2]=[e.createTextVNode(" 修改字典项 ")])),_:1},8,["icon"])):e.createCommentVNode("",!0),e.createVNode(p,{title:"是否确认删除?",onConfirm:L},{default:e.withCtx(()=>[d.value?(e.openBlock(),e.createBlock(s,{key:0,danger:"",icon:e.h(e.unref(C.DeleteOutlined))},{default:e.withCtx(()=>a[3]||(a[3]=[e.createTextVNode("删除字典项")])),_:1},8,["icon"])):e.createCommentVNode("",!0)]),_:1})]),_:1})]),e.createElementVNode("div",F,[e.createVNode(A,{gutter:24,class:"dict-row"},{default:e.withCtx(()=>[e.createVNode(w,{span:7,class:"dict-left"},{default:e.withCtx(()=>[a[4]||(a[4]=e.createElementVNode("div",null,"字典项:",-1)),e.createElementVNode("div",G,[e.createVNode(M,{showLine:"",expandedKeys:r.value,loadedKeys:_.value,treeData:i.value,onExpand:I,loadData:b,onSelect:E},null,8,["expandedKeys","loadedKeys","treeData"])])]),_:1}),e.createVNode(w,{span:17,class:"dict-right"},{default:e.withCtx(()=>[e.createVNode(l,{column:1,bordered:"",size:"small"},{default:e.withCtx(()=>[e.createVNode(o,{label:"字典名称"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.title),1)]),_:1}),e.createVNode(o,{label:"字典取值"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.value),1)]),_:1}),e.createVNode(o,{label:"排序号"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.seqNo),1)]),_:1}),e.createVNode(o,{label:"状态"},{default:e.withCtx(()=>[n.value.status===1?(e.openBlock(),e.createBlock(g,{key:0,color:"green"},{default:e.withCtx(()=>a[5]||(a[5]=[e.createTextVNode("启用")])),_:1})):n.value.status===0?(e.openBlock(),e.createBlock(g,{key:1,color:"red"},{default:e.withCtx(()=>a[6]||(a[6]=[e.createTextVNode("禁用")])),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(o,{label:"描述"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.remark),1)]),_:1})]),_:1})]),_:1})]),_:1})]),e.createVNode(P.default,{open:c.value.open,"dict-id":c.value.dictId,"item-id":c.value.itemId,mode:c.value.mode,onSuccess:K,onCancel:a[0]||(a[0]=Q=>c.value.open=!1)},null,8,["open","dict-id","item-id","mode"])]),_:1})}}});exports.default=H;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),P=require("./DictItemEdit.vue.js"),f=require("./api.js"),z=require("vue-router"),j=require("ant-design-vue"),y=require("@ant-design/icons-vue"),$={class:"table-operator"},F={class:"dict-content"},G={class:"tree-container"},H=e.defineComponent({__name:"DictPanel",setup(J){const D=z.useRoute(),u=e.ref(),v=e.ref({}),T=e.ref(!1),d=e.ref(null),n=e.ref({}),r=e.ref([]),_=e.ref([]),i=e.ref([]),c=e.ref({open:!1,mode:"add",dictId:"",itemId:""}),I=t=>{r.value=t},b=t=>(d.value=t,t.dataRef.children?new Promise(a=>{a("")}):x(t.dataRef.key)),S=()=>{f.getDictionary(u.value).then(t=>{v.value=t.data})},x=async t=>f.getAdminDictItems(u.value,t).then(a=>{d.value==null?i.value=m(a.data):(d.value.dataRef.children=m(a.data),i.value=[...i.value])}),E=(t,a)=>{const o=a.node.dataRef,l=r.value.includes(o.key);o.isLeaf||(a.selected?l||r.value.push(o.key):l&&(r.value=r.value.filter(s=>s!==o.key))),t.length===0?(console.log("清空选中"),d.value=null):d.value=a.node,C(o.key)},C=t=>{T.value=!0,f.getDictItem(t).then(a=>{n.value=N(a.data)})},B=()=>{c.value={open:!0,mode:"add",dictId:u.value,itemId:d.value!==null?n.value.key:null}},q=()=>{c.value={open:!0,mode:"edit",dictId:u.value,itemId:n.value.key}},K=t=>{c.value.open=!1,V(t),n.value.key?C(n.value.key):n.value={}},L=()=>{f.deleteDictItem(n.value.key).then(t=>{j.message.success("删除字典项成功"),V(t.data.parentId),d.value=null,n.value={}})},m=t=>t.map(a=>N(a)),N=t=>({key:t.id,title:t.name,keyword:t.keyword,isLeaf:!t.hasChildren,value:t.value,seqNo:t.seqNo,status:t.status,remark:t.remark}),V=t=>{f.getAdminDictItems(u.value,t).then(a=>{t?h(i.value,t,m(a.data)):i.value=m(a.data)})},h=(t,a,o)=>{t.forEach(l=>{if(l.key===a){l.isLeaf=o.length===0;const s=k([l],0);_.value=_.value.filter(p=>!s.includes(p)),r.value=r.value.filter(p=>!s.includes(p)),l.children=o}else l.children&&h(l.children,a,o)})},k=(t,a)=>{let o=[];return t.forEach(l=>{a>0&&o.push(l.key),l.children&&(o=o.concat(k(l.children,++a)))}),o};return e.onBeforeMount(()=>{u.value=D.query.id,S(),x("")}),(t,a)=>{const o=e.resolveComponent("a-descriptions-item"),l=e.resolveComponent("a-descriptions"),s=e.resolveComponent("a-button"),p=e.resolveComponent("a-popconfirm"),R=e.resolveComponent("a-space"),M=e.resolveComponent("a-tree"),w=e.resolveComponent("a-col"),g=e.resolveComponent("a-tag"),A=e.resolveComponent("a-row"),O=e.resolveComponent("a-card");return e.openBlock(),e.createBlock(O,{class:"dict-card"},{default:e.withCtx(()=>[e.createVNode(l,{column:2,size:"small"},{default:e.withCtx(()=>[e.createVNode(o,{label:"字典名称"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.value.name),1)]),_:1}),e.createVNode(o,{label:"字典标识"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.value.keyword),1)]),_:1}),e.createVNode(o,{label:"是否缓存"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.value.cacheEnabled===1?"是":"否"),1)]),_:1}),e.createVNode(o,{label:"描述"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.value.remark),1)]),_:1})]),_:1}),e.createElementVNode("div",$,[e.createVNode(R,{wrap:""},{default:e.withCtx(()=>[e.createVNode(s,{type:"primary",icon:e.h(e.unref(y.PlusCircleOutlined)),onClick:B},{default:e.withCtx(()=>a[1]||(a[1]=[e.createTextVNode(" 添加字典项 ")])),_:1},8,["icon"]),d.value?(e.openBlock(),e.createBlock(s,{key:0,icon:e.h(e.unref(y.EditOutlined)),onClick:q},{default:e.withCtx(()=>a[2]||(a[2]=[e.createTextVNode(" 修改字典项 ")])),_:1},8,["icon"])):e.createCommentVNode("",!0),e.createVNode(p,{title:"是否确认删除?",onConfirm:L},{default:e.withCtx(()=>[d.value?(e.openBlock(),e.createBlock(s,{key:0,danger:"",icon:e.h(e.unref(y.DeleteOutlined))},{default:e.withCtx(()=>a[3]||(a[3]=[e.createTextVNode("删除字典项")])),_:1},8,["icon"])):e.createCommentVNode("",!0)]),_:1})]),_:1})]),e.createElementVNode("div",F,[e.createVNode(A,{gutter:24,class:"dict-row"},{default:e.withCtx(()=>[e.createVNode(w,{span:7,class:"dict-left"},{default:e.withCtx(()=>[a[4]||(a[4]=e.createElementVNode("div",null,"字典项:",-1)),e.createElementVNode("div",G,[e.createVNode(M,{showLine:"",expandedKeys:r.value,loadedKeys:_.value,treeData:i.value,onExpand:I,loadData:b,onSelect:E},null,8,["expandedKeys","loadedKeys","treeData"])])]),_:1}),e.createVNode(w,{span:17,class:"dict-right"},{default:e.withCtx(()=>[e.createVNode(l,{column:1,bordered:"",size:"small"},{default:e.withCtx(()=>[e.createVNode(o,{label:"字典名称"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.title),1)]),_:1}),e.createVNode(o,{label:"字典标识"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.keyword),1)]),_:1}),e.createVNode(o,{label:"字典取值"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.value),1)]),_:1}),e.createVNode(o,{label:"排序号"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.seqNo),1)]),_:1}),e.createVNode(o,{label:"状态"},{default:e.withCtx(()=>[n.value.status===1?(e.openBlock(),e.createBlock(g,{key:0,color:"green"},{default:e.withCtx(()=>a[5]||(a[5]=[e.createTextVNode("启用")])),_:1})):n.value.status===0?(e.openBlock(),e.createBlock(g,{key:1,color:"red"},{default:e.withCtx(()=>a[6]||(a[6]=[e.createTextVNode("禁用")])),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(o,{label:"描述"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value.remark),1)]),_:1})]),_:1})]),_:1})]),_:1})]),e.createVNode(P.default,{open:c.value.open,"dict-id":c.value.dictId,"item-id":c.value.itemId,mode:c.value.mode,onSuccess:K,onCancel:a[0]||(a[0]=Q=>c.value.open=!1)},null,8,["open","dict-id","item-id","mode"])]),_:1})}}});exports.default=H;
@@ -1 +1 @@
1
- .large-text[data-v-74bb63d3]{font-size:16px}.float-right[data-v-74bb63d3]{float:right}.margin-block[data-v-74bb63d3]{margin-top:14px}.icon-selector deep(ul) li.active[data-v-a47fcf40],.icon-selector deep(ul) li[data-v-a47fcf40]:hover{border-radius:2px;border-color:#4a4a48;background-color:#4a4a48;color:#fff;transition:all .3s;box-shadow:none}.icon-selector deep(ul) i[data-v-a47fcf40]{font-size:1.5rem;border:1px solid #f1f1f1;padding:.02rem;margin:.03rem;cursor:pointer}.ant-form[data-v-f8a348f6]{padding-top:20px}.permission-tree[data-v-f8a348f6],.permission-tree[data-v-50a6d9f1]{overflow-y:auto;overflow-x:hidden;margin-top:10px}[data-v-4dc423f0] .ant-pro-table-list-toolbar-container{padding-left:6px}.cron-detail[data-v-dd4b2211]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-dd4b2211]{width:70px}.cron-detail .ant-input[data-v-dd4b2211]{width:280px}.cron-detail[data-v-3b943880]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-3b943880]{width:70px}.cron-detail .ant-input[data-v-3b943880]{width:280px}[data-v-418f353d] .ant-descriptions-item-label{width:140px}.text-ellipsis[data-v-c407c636]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-c407c636] .ant-descriptions-item-label{width:120px}.ua-icon[data-v-f846ecbb]{width:1.2em;height:1.2em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.login-log-list .text-ellipsis[data-v-e0685b29]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.method-text[data-v-8d1c9637]{background:#f5f5f5;padding:2px 6px;border-radius:3px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px}.json-container[data-v-8d1c9637]{max-height:300px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-8d1c9637]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}[data-v-8d1c9637] .ant-descriptions-item-label{width:120px}.operation-log-list .text-ellipsis[data-v-d74ea79a]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-bdeeb034] .ant-descriptions-item-label{width:120px}.audit-log-list .text-ellipsis[data-v-2505b1db]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.text-ellipsis[data-v-7436a600]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.performance-analysis[data-v-7436a600]{padding:16px;background:#fafafa;border-radius:6px}.performance-analysis[data-v-7436a600] .ant-statistic{text-align:center}[data-v-7436a600] .ant-descriptions-item-label{width:120px}.access-log-list .text-ellipsis[data-v-f67f4d15]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.json-container[data-v-793d348e]{max-height:200px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}.stack-container[data-v-793d348e]{max-height:400px;overflow:auto;background:#fff2f0;border:1px solid #ffccc7;padding:12px;border-radius:4px}.stack-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:11px;line-height:1.4;color:#a8071a}[data-v-793d348e] .ant-descriptions-item-label{width:120px}.error-log-list .text-ellipsis[data-v-47610902]{display:inline-block;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.notice[data-v-864b567f]{color:#ff4d4f;font-size:18px}.table-operator[data-v-1cbc3d31]{margin:10px 14px 20px 0}[data-v-1cbc3d31] .ant-descriptions-item-label{width:140px}.tree-container[data-v-1cbc3d31] .ant-tree{max-height:520px;overflow:auto}
1
+ .large-text[data-v-74bb63d3]{font-size:16px}.float-right[data-v-74bb63d3]{float:right}.margin-block[data-v-74bb63d3]{margin-top:14px}.icon-selector deep(ul) li.active[data-v-a47fcf40],.icon-selector deep(ul) li[data-v-a47fcf40]:hover{border-radius:2px;border-color:#4a4a48;background-color:#4a4a48;color:#fff;transition:all .3s;box-shadow:none}.icon-selector deep(ul) i[data-v-a47fcf40]{font-size:1.5rem;border:1px solid #f1f1f1;padding:.02rem;margin:.03rem;cursor:pointer}.ant-form[data-v-f8a348f6]{padding-top:20px}.permission-tree[data-v-f8a348f6],.permission-tree[data-v-50a6d9f1]{overflow-y:auto;overflow-x:hidden;margin-top:10px}[data-v-4dc423f0] .ant-pro-table-list-toolbar-container{padding-left:6px}.cron-detail[data-v-dd4b2211]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-dd4b2211]{width:70px}.cron-detail .ant-input[data-v-dd4b2211]{width:280px}.cron-detail[data-v-3b943880]{border:1px dashed #a6a6a6;padding:6px;line-height:1.5;margin:4px 0}.cron-detail .ant-input-number[data-v-3b943880]{width:70px}.cron-detail .ant-input[data-v-3b943880]{width:280px}[data-v-418f353d] .ant-descriptions-item-label{width:140px}.text-ellipsis[data-v-c407c636]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-c407c636] .ant-descriptions-item-label{width:120px}.ua-icon[data-v-f846ecbb]{width:1.2em;height:1.2em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.login-log-list .text-ellipsis[data-v-e0685b29]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.method-text[data-v-8d1c9637]{background:#f5f5f5;padding:2px 6px;border-radius:3px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px}.json-container[data-v-8d1c9637]{max-height:300px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-8d1c9637]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}[data-v-8d1c9637] .ant-descriptions-item-label{width:120px}.operation-log-list .text-ellipsis[data-v-d74ea79a]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-v-bdeeb034] .ant-descriptions-item-label{width:120px}.audit-log-list .text-ellipsis[data-v-2505b1db]{display:inline-block;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.text-ellipsis[data-v-7436a600]{display:inline-block;max-width:600px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.performance-analysis[data-v-7436a600]{padding:16px;background:#fafafa;border-radius:6px}.performance-analysis[data-v-7436a600] .ant-statistic{text-align:center}[data-v-7436a600] .ant-descriptions-item-label{width:120px}.access-log-list .text-ellipsis[data-v-f67f4d15]{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.json-container[data-v-793d348e]{max-height:200px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:4px}.json-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}.stack-container[data-v-793d348e]{max-height:400px;overflow:auto;background:#fff2f0;border:1px solid #ffccc7;padding:12px;border-radius:4px}.stack-container pre[data-v-793d348e]{margin:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:11px;line-height:1.4;color:#a8071a}[data-v-793d348e] .ant-descriptions-item-label{width:120px}.error-log-list .text-ellipsis[data-v-47610902]{display:inline-block;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.notice[data-v-1d93855a]{color:#ff4d4f;font-size:18px}.table-operator[data-v-d604435e]{margin:10px 14px 20px 0}[data-v-d604435e] .ant-descriptions-item-label{width:140px}.tree-container[data-v-d604435e] .ant-tree{max-height:520px;overflow:auto}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@since2006/pages",
3
3
  "private": false,
4
- "version": "2026.1.1",
4
+ "version": "2026.1.3",
5
5
  "description": "基于 Ant Design Vue 的页面库",
6
6
  "type": "module",
7
7
  "main": "dist/lib/index.js",