@since2006/pages 2025.8.4 → 2025.8.6

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,13 +1,13 @@
1
- import { defineComponent as F, ref as b, reactive as P, resolveComponent as n, openBlock as u, createElementBlock as p, createElementVNode as c, createVNode as t, withCtx as o, createTextVNode as s, unref as d, toDisplayString as g, createCommentVNode as I, Fragment as h } from "vue";
2
- import { CloudTwoTone as B, PlusOutlined as O } from "@ant-design/icons-vue";
3
- import { queryConfigs as j, deleteConfig as A } from "./api.js";
4
- import { message as w } from "ant-design-vue";
5
- import K from "./AttachmentEdit.vue.js";
6
- import { FxCardTable as L, ClickCopy as G } from "@since2006/components";
7
- const H = { class: "ant-pro-table" }, J = { class: "ant-pro-table-search" }, M = ["onClick"], Q = ["onClick"], ne = /* @__PURE__ */ F({
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
+ import { CloudTwoTone as j, PlusOutlined as A } from "@ant-design/icons-vue";
3
+ import { queryConfigs as K, deleteConfig as L } from "./api.js";
4
+ import { message as h } from "ant-design-vue";
5
+ import G from "./AttachmentEdit.vue.js";
6
+ import { FxCardTable as H } from "@since2006/components";
7
+ const J = { class: "ant-pro-table" }, M = { class: "ant-pro-table-search" }, Q = ["onClick"], W = ["onClick"], ne = /* @__PURE__ */ E({
8
8
  __name: "AttachmentList",
9
- setup(W) {
10
- const l = b(), q = [
9
+ setup(X) {
10
+ const r = k(), I = [
11
11
  {
12
12
  title: "模块名称",
13
13
  dataIndex: "name"
@@ -32,32 +32,32 @@ const H = { class: "ant-pro-table" }, J = { class: "ant-pro-table-search" }, M =
32
32
  dataIndex: "action",
33
33
  width: "150px"
34
34
  }
35
- ], i = P({
35
+ ], d = F({
36
36
  query: void 0
37
37
  }), y = () => {
38
- l.value.refresh();
39
- }, D = () => {
40
- i.query = void 0, l.value.refresh();
41
- }, R = (a) => {
42
- A(a.id).then(() => {
43
- w.success("删除附件配置成功"), l.value.refresh();
38
+ r.value.refresh();
39
+ }, w = () => {
40
+ d.query = void 0, r.value.refresh();
41
+ }, q = (n) => {
42
+ L(n.id).then(() => {
43
+ h.success("删除附件配置成功"), r.value.refresh();
44
44
  });
45
- }, f = b(), N = () => {
46
- f.value.preCreate();
47
- }, v = (a) => {
48
- f.value.preUpdate(a.id);
49
- }, S = (a) => {
45
+ }, u = k(), D = () => {
46
+ u.value.preCreate();
47
+ }, v = (n) => {
48
+ u.value.preUpdate(n.id);
49
+ }, R = (n) => {
50
50
  let e;
51
- a === "add" ? e = "添加附件配置成功" : e = "编辑附件配置成功", w.success(e), l.value.refresh();
51
+ n === "add" ? e = "添加附件配置成功" : e = "编辑附件配置成功", h.success(e), r.value.refresh();
52
52
  };
53
- return (a, e) => {
54
- const T = n("a-input"), U = n("a-form-item"), C = n("a-col"), _ = n("a-button"), V = n("a-row"), $ = n("a-form"), z = n("a-divider"), E = n("a-popconfirm");
55
- return u(), p("div", null, [
56
- c("div", H, [
57
- c("div", J, [
58
- t($, { layout: "horizontal" }, {
53
+ return (n, e) => {
54
+ const N = a("a-input"), S = a("a-form-item"), C = a("a-col"), _ = a("a-button"), T = a("a-row"), U = a("a-form"), V = a("a-typography-paragraph"), $ = a("a-divider"), z = a("a-popconfirm");
55
+ return m(), f("div", null, [
56
+ p("div", J, [
57
+ p("div", M, [
58
+ t(U, { layout: "horizontal" }, {
59
59
  default: o(() => [
60
- t(V, {
60
+ t(T, {
61
61
  gutter: 16,
62
62
  type: "flex",
63
63
  justify: "start"
@@ -70,11 +70,11 @@ const H = { class: "ant-pro-table" }, J = { class: "ant-pro-table-search" }, M =
70
70
  lg: 7
71
71
  }, {
72
72
  default: o(() => [
73
- t(U, { label: "搜索" }, {
73
+ t(S, { label: "搜索" }, {
74
74
  default: o(() => [
75
- t(T, {
76
- value: i.query,
77
- "onUpdate:value": e[0] || (e[0] = (r) => i.query = r),
75
+ t(N, {
76
+ value: d.query,
77
+ "onUpdate:value": e[0] || (e[0] = (l) => d.query = l),
78
78
  placeholder: "模块名称、附件标识",
79
79
  onPressEnter: y
80
80
  }, null, 8, ["value"])
@@ -96,7 +96,7 @@ const H = { class: "ant-pro-table" }, J = { class: "ant-pro-table-search" }, M =
96
96
  _: 1
97
97
  }),
98
98
  t(_, {
99
- onClick: D,
99
+ onClick: w,
100
100
  style: { "margin-left": "16px" }
101
101
  }, {
102
102
  default: o(() => e[2] || (e[2] = [
@@ -114,60 +114,65 @@ const H = { class: "ant-pro-table" }, J = { class: "ant-pro-table-search" }, M =
114
114
  _: 1
115
115
  })
116
116
  ]),
117
- t(d(L), {
118
- columns: q,
119
- "load-data": d(j),
120
- params: i,
117
+ t(c(H), {
118
+ columns: I,
119
+ "load-data": c(K),
120
+ params: d,
121
121
  ref_key: "tableRef",
122
- ref: l
122
+ ref: r
123
123
  }, {
124
124
  title: o(() => [
125
- t(d(B)),
125
+ t(c(j)),
126
126
  e[3] || (e[3] = s(" 附件上传"))
127
127
  ]),
128
128
  toolbar: o(() => [
129
129
  t(_, {
130
130
  type: "primary",
131
- onClick: N
131
+ onClick: D
132
132
  }, {
133
133
  default: o(() => [
134
- t(d(O)),
134
+ t(c(A)),
135
135
  e[4] || (e[4] = s(" 新建 "))
136
136
  ]),
137
137
  _: 1
138
138
  })
139
139
  ]),
140
- bodyCell: o(({ column: r, record: m, text: x }) => [
141
- r.dataIndex === "name" ? (u(), p("a", {
140
+ bodyCell: o(({ column: l, record: i, text: B }) => [
141
+ l.dataIndex === "name" ? (m(), f("a", {
142
142
  key: 0,
143
- onClick: (k) => v(m)
144
- }, g(m.name), 9, M)) : I("", !0),
145
- r.dataIndex === "keyword" ? (u(), p(h, { key: 1 }, [
146
- s(g(x) + " ", 1),
147
- t(d(G), { value: x }, null, 8, ["value"])
148
- ], 64)) : r.dataIndex === "action" ? (u(), p(h, { key: 2 }, [
149
- c("a", {
150
- onClick: (k) => v(m)
151
- }, "编辑", 8, Q),
152
- t(z, { type: "vertical" }),
153
- t(E, {
143
+ onClick: (x) => v(i)
144
+ }, g(i.name), 9, Q)) : b("", !0),
145
+ l.dataIndex === "keyword" ? (m(), P(V, {
146
+ key: 1,
147
+ copyable: ""
148
+ }, {
149
+ default: o(() => [
150
+ s(g(B), 1)
151
+ ]),
152
+ _: 2
153
+ }, 1024)) : l.dataIndex === "action" ? (m(), f(O, { key: 2 }, [
154
+ p("a", {
155
+ onClick: (x) => v(i)
156
+ }, "编辑", 8, W),
157
+ t($, { type: "vertical" }),
158
+ t(z, {
154
159
  title: "确定要删除吗?",
155
- onConfirm: (k) => R(m)
160
+ onConfirm: (x) => q(i)
156
161
  }, {
157
162
  default: o(() => e[5] || (e[5] = [
158
- c("a", null, "删除", -1)
163
+ p("a", null, "删除", -1)
159
164
  ])),
160
165
  _: 2
161
166
  }, 1032, ["onConfirm"])
162
- ], 64)) : I("", !0)
167
+ ], 64)) : b("", !0)
163
168
  ]),
164
169
  _: 1
165
170
  }, 8, ["load-data", "params"])
166
171
  ]),
167
- t(K, {
172
+ t(G, {
168
173
  ref_key: "modalRef",
169
- ref: f,
170
- onSuccess: S
174
+ ref: u,
175
+ onSuccess: R
171
176
  }, null, 512)
172
177
  ]);
173
178
  };
@@ -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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d4a2e224"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dab314f5"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as H, ref as I, reactive as h, resolveComponent as a, openBlock as p, createElementBlock as f, createElementVNode as _, createVNode as t, withCtx as o, createTextVNode as l, unref as i, toDisplayString as w, createCommentVNode as y, Fragment as U } from "vue";
2
- import G from "./DictEdit.vue.js";
3
- import { queryDictionaries as J, refreshDictionaries as K, removeDictionary as L } from "./api.js";
4
- import { HddTwoTone as M, PlusOutlined as Q, SyncOutlined as W } from "@ant-design/icons-vue";
5
- import { message as C } from "ant-design-vue";
6
- import { useRouter as X } from "vue-router";
7
- import { FxCardTable as Y, ClickCopy as Z } from "@since2006/components";
8
- const ee = { class: "ant-pro-table" }, te = { class: "ant-pro-table-search" }, oe = ["onClick"], ne = { key: 2 }, ae = ["onClick"], pe = /* @__PURE__ */ H({
1
+ import { defineComponent as U, ref as h, reactive as b, resolveComponent as a, openBlock as c, createElementBlock as y, createElementVNode as f, createVNode as t, withCtx as o, createTextVNode as l, unref as i, toDisplayString as I, createCommentVNode as v, createBlock as G } from "vue";
2
+ import J from "./DictEdit.vue.js";
3
+ import { queryDictionaries as K, refreshDictionaries as L, removeDictionary as M } from "./api.js";
4
+ import { HddTwoTone as Q, PlusOutlined as W, SyncOutlined as X } from "@ant-design/icons-vue";
5
+ import { message as k } from "ant-design-vue";
6
+ import { useRouter as Y } from "vue-router";
7
+ import { FxCardTable as Z } from "@since2006/components";
8
+ const ee = { class: "ant-pro-table" }, te = { class: "ant-pro-table-search" }, oe = ["onClick"], ne = { key: 2 }, ae = ["onClick"], ce = /* @__PURE__ */ U({
9
9
  __name: "DictIndex",
10
10
  setup(re) {
11
- const s = I(), q = [
11
+ const s = h(), w = [
12
12
  {
13
13
  title: "字典名称",
14
14
  dataIndex: "name",
@@ -27,48 +27,48 @@ const ee = { class: "ant-pro-table" }, te = { class: "ant-pro-table-search" }, o
27
27
  width: "150px",
28
28
  dataIndex: "action"
29
29
  }
30
- ], u = h({
30
+ ], p = b({
31
31
  query: void 0
32
- }), k = () => {
32
+ }), x = () => {
33
33
  s.value.refresh();
34
- }, D = () => {
35
- u.query = void 0, s.value.refresh();
36
- }, R = X(), v = I(!1), n = h({
34
+ }, q = () => {
35
+ p.query = void 0, s.value.refresh();
36
+ }, D = Y(), _ = h(!1), n = b({
37
37
  open: !1,
38
38
  mode: "add",
39
39
  dictId: ""
40
- }), S = () => {
40
+ }), R = () => {
41
41
  n.open = !0, n.mode = "add", n.dictId = "";
42
- }, E = () => {
43
- v.value = !0, K().then(() => {
44
- v.value = !1, C.success("刷新字典成功");
42
+ }, S = () => {
43
+ _.value = !0, L().then(() => {
44
+ _.value = !1, k.success("刷新字典成功");
45
45
  });
46
+ }, E = (r) => {
47
+ D.push({ path: "/dict/panel", query: { id: r.id } });
46
48
  }, V = (r) => {
47
- R.push({ path: "/dict/panel", query: { id: r.id } });
48
- }, $ = (r) => {
49
49
  n.open = !0, n.mode = "edit", n.dictId = r.id;
50
- }, N = (r) => {
51
- L(r.id).then(() => {
52
- C.success("删除字典成功"), s.value.refresh();
50
+ }, $ = (r) => {
51
+ M(r.id).then(() => {
52
+ k.success("删除字典成功"), s.value.refresh();
53
53
  });
54
- }, T = (r) => {
54
+ }, N = (r) => {
55
55
  let e;
56
- r === "add" ? e = "添加字典成功" : e = "编辑字典成功", n.open = !1, C.success(e), s.value.refresh();
56
+ r === "add" ? e = "添加字典成功" : e = "编辑字典成功", n.open = !1, k.success(e), s.value.refresh();
57
57
  };
58
58
  return (r, e) => {
59
- const P = a("a-input"), B = a("a-form-item"), x = a("a-col"), m = a("a-button"), F = a("a-row"), O = a("a-form"), j = a("a-button-group"), z = a("a-divider"), A = a("a-popconfirm");
60
- return p(), f("div", null, [
61
- _("div", ee, [
62
- _("div", te, [
59
+ const T = a("a-input"), B = a("a-form-item"), C = a("a-col"), u = a("a-button"), P = a("a-row"), O = a("a-form"), j = a("a-button-group"), z = a("a-typography-paragraph"), A = a("a-divider"), F = a("a-popconfirm");
60
+ return c(), y("div", null, [
61
+ f("div", ee, [
62
+ f("div", te, [
63
63
  t(O, { layout: "horizontal" }, {
64
64
  default: o(() => [
65
- t(F, {
65
+ t(P, {
66
66
  gutter: 16,
67
67
  type: "flex",
68
68
  justify: "start"
69
69
  }, {
70
70
  default: o(() => [
71
- t(x, {
71
+ t(C, {
72
72
  xs: 24,
73
73
  sm: 24,
74
74
  md: 12,
@@ -77,11 +77,11 @@ const ee = { class: "ant-pro-table" }, te = { class: "ant-pro-table-search" }, o
77
77
  default: o(() => [
78
78
  t(B, { label: "搜索" }, {
79
79
  default: o(() => [
80
- t(P, {
81
- value: u.query,
82
- "onUpdate:value": e[0] || (e[0] = (d) => u.query = d),
80
+ t(T, {
81
+ value: p.query,
82
+ "onUpdate:value": e[0] || (e[0] = (d) => p.query = d),
83
83
  placeholder: "字典名称、字典标识",
84
- onPressEnter: k
84
+ onPressEnter: x
85
85
  }, null, 8, ["value"])
86
86
  ]),
87
87
  _: 1
@@ -89,10 +89,10 @@ const ee = { class: "ant-pro-table" }, te = { class: "ant-pro-table-search" }, o
89
89
  ]),
90
90
  _: 1
91
91
  }),
92
- t(x, null, {
92
+ t(C, null, {
93
93
  default: o(() => [
94
- t(m, {
95
- onClick: k,
94
+ t(u, {
95
+ onClick: x,
96
96
  type: "primary"
97
97
  }, {
98
98
  default: o(() => e[2] || (e[2] = [
@@ -100,8 +100,8 @@ const ee = { class: "ant-pro-table" }, te = { class: "ant-pro-table-search" }, o
100
100
  ])),
101
101
  _: 1
102
102
  }),
103
- t(m, {
104
- onClick: D,
103
+ t(u, {
104
+ onClick: q,
105
105
  style: { "margin-left": "16px" }
106
106
  }, {
107
107
  default: o(() => e[3] || (e[3] = [
@@ -119,36 +119,36 @@ const ee = { class: "ant-pro-table" }, te = { class: "ant-pro-table-search" }, o
119
119
  _: 1
120
120
  })
121
121
  ]),
122
- t(i(Y), {
123
- columns: q,
124
- "load-data": i(J),
125
- params: u,
122
+ t(i(Z), {
123
+ columns: w,
124
+ "load-data": i(K),
125
+ params: p,
126
126
  ref_key: "tableRef",
127
127
  ref: s
128
128
  }, {
129
129
  title: o(() => [
130
- t(i(M)),
130
+ t(i(Q)),
131
131
  e[4] || (e[4] = l(" 数据字典 "))
132
132
  ]),
133
133
  toolbar: o(() => [
134
134
  t(j, null, {
135
135
  default: o(() => [
136
- t(m, {
136
+ t(u, {
137
137
  type: "primary",
138
- onClick: S
138
+ onClick: R
139
139
  }, {
140
140
  default: o(() => [
141
- t(i(Q)),
141
+ t(i(W)),
142
142
  e[5] || (e[5] = l(" 添加字典 "))
143
143
  ]),
144
144
  _: 1
145
145
  }),
146
- t(m, {
147
- onClick: E,
148
- loading: v.value
146
+ t(u, {
147
+ onClick: S,
148
+ loading: _.value
149
149
  }, {
150
150
  default: o(() => [
151
- t(i(W)),
151
+ t(i(X)),
152
152
  e[6] || (e[6] = l(" 刷新字典 "))
153
153
  ]),
154
154
  _: 1
@@ -157,46 +157,51 @@ const ee = { class: "ant-pro-table" }, te = { class: "ant-pro-table-search" }, o
157
157
  _: 1
158
158
  })
159
159
  ]),
160
- bodyCell: o(({ column: d, record: c, text: b }) => [
161
- d.dataIndex === "name" ? (p(), f("a", {
160
+ bodyCell: o(({ column: d, record: m, text: H }) => [
161
+ d.dataIndex === "name" ? (c(), y("a", {
162
162
  key: 0,
163
- onClick: (g) => V(c)
164
- }, w(c.name), 9, oe)) : y("", !0),
165
- d.dataIndex === "keyword" ? (p(), f(U, { key: 1 }, [
166
- l(w(b) + " ", 1),
167
- t(i(Z), { value: b }, null, 8, ["value"])
168
- ], 64)) : y("", !0),
169
- d.dataIndex === "action" ? (p(), f("span", ne, [
170
- _("a", {
171
- onClick: (g) => $(c)
163
+ onClick: (g) => E(m)
164
+ }, I(m.name), 9, oe)) : v("", !0),
165
+ d.dataIndex === "keyword" ? (c(), G(z, {
166
+ key: 1,
167
+ copyable: ""
168
+ }, {
169
+ default: o(() => [
170
+ l(I(H), 1)
171
+ ]),
172
+ _: 2
173
+ }, 1024)) : v("", !0),
174
+ d.dataIndex === "action" ? (c(), y("span", ne, [
175
+ f("a", {
176
+ onClick: (g) => V(m)
172
177
  }, "编辑", 8, ae),
173
- t(z, { type: "vertical" }),
174
- t(A, {
178
+ t(A, { type: "vertical" }),
179
+ t(F, {
175
180
  title: "是否确认删除?",
176
- onConfirm: (g) => N(c)
181
+ onConfirm: (g) => $(m)
177
182
  }, {
178
183
  default: o(() => e[7] || (e[7] = [
179
- _("a", { href: "#" }, "删除", -1)
184
+ f("a", { href: "#" }, "删除", -1)
180
185
  ])),
181
186
  _: 2
182
187
  }, 1032, ["onConfirm"])
183
- ])) : y("", !0)
188
+ ])) : v("", !0)
184
189
  ]),
185
190
  _: 1
186
191
  }, 8, ["load-data", "params"])
187
192
  ]),
188
- t(G, {
193
+ t(J, {
189
194
  ref: "dictEdit",
190
195
  open: n.open,
191
196
  mode: n.mode,
192
197
  "dict-id": n.dictId,
193
198
  onCancel: e[1] || (e[1] = (d) => n.open = !1),
194
- onSuccess: T
199
+ onSuccess: N
195
200
  }, null, 8, ["open", "mode", "dict-id"])
196
201
  ]);
197
202
  };
198
203
  }
199
204
  });
200
205
  export {
201
- pe as default
206
+ ce as default
202
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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fa4d106d"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-47d8452e"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };