xyvcard-user 0.0.1
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/README.md +51 -0
- package/dist/edit-u6nn531T.mjs +1869 -0
- package/dist/index-Rmv7zo62.mjs +367 -0
- package/dist/index.mjs +33 -0
- package/dist/style.css +1 -0
- package/dts/App.vue.d.ts +2 -0
- package/dts/api/dict.d.ts +9 -0
- package/dts/api/index.d.ts +5 -0
- package/dts/api/user-student-info/index.d.ts +20 -0
- package/dts/api/user-student-info/types.d.ts +81 -0
- package/dts/constant.d.ts +3 -0
- package/dts/index.d.ts +5 -0
- package/dts/lang/index.d.ts +1 -0
- package/dts/lang/user/en.d.ts +2 -0
- package/dts/lang/user/zh-cn.d.ts +18 -0
- package/dts/main.d.ts +5 -0
- package/dts/permission.d.ts +1 -0
- package/dts/views/user-student-info/edit.vue.d.ts +28 -0
- package/dts/views/user-student-info/index.vue.d.ts +2 -0
- package/package.json +59 -0
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import { defineComponent as X, ref as V, reactive as U, resolveComponent as r, resolveDirective as Y, createElementBlock as N, openBlock as d, createElementVNode as Z, createVNode as n, createBlock as f, createCommentVNode as D, withCtx as o, withKeys as w, unref as a, createTextVNode as i, toDisplayString as p, withDirectives as c, isRef as h } from "vue";
|
|
2
|
+
import { useTableHooks as x } from "jmash-core";
|
|
3
|
+
import { useI18n as ee } from "vue-i18n";
|
|
4
|
+
import { s as te, a as le } from "./edit-u6nn531T.mjs";
|
|
5
|
+
const oe = { class: "app-container" }, ne = { class: "search-container" }, ae = ["onClick"], ue = ["onClick"], me = /* @__PURE__ */ X({
|
|
6
|
+
__name: "index",
|
|
7
|
+
setup(se) {
|
|
8
|
+
const { t: v } = ee(), s = V({}), {
|
|
9
|
+
tableHooks: u,
|
|
10
|
+
multipleTableRef: E,
|
|
11
|
+
queryFormRef: S,
|
|
12
|
+
listLoading: j,
|
|
13
|
+
tableData: q,
|
|
14
|
+
total: g
|
|
15
|
+
} = x(v, te, s);
|
|
16
|
+
let $ = V([
|
|
17
|
+
{
|
|
18
|
+
label: "studentInfo.realName",
|
|
19
|
+
prop: "realName",
|
|
20
|
+
isColumn: !0
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: "studentInfo.code",
|
|
24
|
+
prop: "code",
|
|
25
|
+
isColumn: !0
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
label: "studentInfo.department",
|
|
29
|
+
prop: "department",
|
|
30
|
+
isColumn: !0
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: "studentInfo.professional",
|
|
34
|
+
prop: "professional",
|
|
35
|
+
isColumn: !0
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: "studentInfo.studyDuration",
|
|
39
|
+
prop: "studyDuration",
|
|
40
|
+
isColumn: !0
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: "studentInfo.className",
|
|
44
|
+
prop: "className",
|
|
45
|
+
isColumn: !0
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
label: "common.operate",
|
|
49
|
+
width: "200",
|
|
50
|
+
slotName: "operation",
|
|
51
|
+
columnType: "slot",
|
|
52
|
+
fixed: "right",
|
|
53
|
+
isColumn: !0
|
|
54
|
+
}
|
|
55
|
+
]);
|
|
56
|
+
const m = V({
|
|
57
|
+
title: v("common.edit"),
|
|
58
|
+
visible: !1
|
|
59
|
+
}), C = V(!1);
|
|
60
|
+
let R = U({});
|
|
61
|
+
function T() {
|
|
62
|
+
R = U({}), m.value.title = v("common.add"), m.value.visible = !0;
|
|
63
|
+
}
|
|
64
|
+
function K(l) {
|
|
65
|
+
R.studentId = l.studentId, m.value.title = v("common.edit"), m.value.visible = !0;
|
|
66
|
+
}
|
|
67
|
+
function Q(l) {
|
|
68
|
+
u.selectionRows.value = l;
|
|
69
|
+
}
|
|
70
|
+
function z(l) {
|
|
71
|
+
u.handleSort(l.prop, l.order);
|
|
72
|
+
}
|
|
73
|
+
function L(l) {
|
|
74
|
+
l && u.getList();
|
|
75
|
+
}
|
|
76
|
+
function B() {
|
|
77
|
+
C.value = !1;
|
|
78
|
+
}
|
|
79
|
+
function A(l) {
|
|
80
|
+
l.updateMask = "", u.importExcel(l).then((e) => {
|
|
81
|
+
C.value = !1;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
return u.getList(), (l, e) => {
|
|
85
|
+
const I = r("el-input"), _ = r("el-form-item"), b = r("el-col"), y = r("el-button"), P = r("el-row"), F = r("el-form"), H = r("jmash-column-select"), M = r("jmash-table"), G = r("jmash-pagination"), J = r("el-card"), O = r("jmash-import-upload"), k = Y("hasPerm");
|
|
86
|
+
return d(), N("div", oe, [
|
|
87
|
+
Z("div", ne, [
|
|
88
|
+
n(F, {
|
|
89
|
+
ref_key: "queryFormRef",
|
|
90
|
+
ref: S,
|
|
91
|
+
model: s.value,
|
|
92
|
+
inline: !0
|
|
93
|
+
}, {
|
|
94
|
+
default: o(() => [
|
|
95
|
+
n(P, null, {
|
|
96
|
+
default: o(() => [
|
|
97
|
+
n(b, { span: 6 }, {
|
|
98
|
+
default: o(() => [
|
|
99
|
+
n(_, {
|
|
100
|
+
label: l.$t("studentInfo.realName"),
|
|
101
|
+
prop: "likeRealName"
|
|
102
|
+
}, {
|
|
103
|
+
default: o(() => [
|
|
104
|
+
n(I, {
|
|
105
|
+
modelValue: s.value.likeRealName,
|
|
106
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => s.value.likeRealName = t),
|
|
107
|
+
placeholder: l.$t("studentInfo.realNameRequired"),
|
|
108
|
+
onKeyup: e[1] || (e[1] = w((t) => a(u).handleQuery(), ["enter"])),
|
|
109
|
+
class: "!w-[203px]"
|
|
110
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
}, 8, ["label"])
|
|
114
|
+
]),
|
|
115
|
+
_: 1
|
|
116
|
+
}),
|
|
117
|
+
n(b, { span: 6 }, {
|
|
118
|
+
default: o(() => [
|
|
119
|
+
n(_, {
|
|
120
|
+
label: l.$t("studentInfo.code"),
|
|
121
|
+
prop: "likeCode"
|
|
122
|
+
}, {
|
|
123
|
+
default: o(() => [
|
|
124
|
+
n(I, {
|
|
125
|
+
modelValue: s.value.likeCode,
|
|
126
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => s.value.likeCode = t),
|
|
127
|
+
placeholder: l.$t("studentInfo.codeRequired"),
|
|
128
|
+
onKeyup: e[3] || (e[3] = w((t) => a(u).handleQuery(), ["enter"])),
|
|
129
|
+
class: "!w-[203px]"
|
|
130
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
}, 8, ["label"])
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
}),
|
|
137
|
+
n(b, { span: 6 }, {
|
|
138
|
+
default: o(() => [
|
|
139
|
+
n(_, {
|
|
140
|
+
label: l.$t("studentInfo.department"),
|
|
141
|
+
prop: "likeDepartment"
|
|
142
|
+
}, {
|
|
143
|
+
default: o(() => [
|
|
144
|
+
n(I, {
|
|
145
|
+
modelValue: s.value.likeDepartment,
|
|
146
|
+
"onUpdate:modelValue": e[4] || (e[4] = (t) => s.value.likeDepartment = t),
|
|
147
|
+
placeholder: l.$t("studentInfo.departmentRequired"),
|
|
148
|
+
onKeyup: e[5] || (e[5] = w((t) => a(u).handleQuery(), ["enter"])),
|
|
149
|
+
class: "!w-[203px]"
|
|
150
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
}, 8, ["label"])
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
}),
|
|
157
|
+
n(b, { span: 6 }, {
|
|
158
|
+
default: o(() => [
|
|
159
|
+
n(_, {
|
|
160
|
+
label: l.$t("studentInfo.professional"),
|
|
161
|
+
prop: "likeProfessional"
|
|
162
|
+
}, {
|
|
163
|
+
default: o(() => [
|
|
164
|
+
n(I, {
|
|
165
|
+
modelValue: s.value.likeProfessional,
|
|
166
|
+
"onUpdate:modelValue": e[6] || (e[6] = (t) => s.value.likeProfessional = t),
|
|
167
|
+
placeholder: l.$t("studentInfo.professionalRequired"),
|
|
168
|
+
onKeyup: e[7] || (e[7] = w((t) => a(u).handleQuery(), ["enter"])),
|
|
169
|
+
class: "!w-[203px]"
|
|
170
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
}, 8, ["label"])
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
}),
|
|
177
|
+
n(b, { span: 24 }, {
|
|
178
|
+
default: o(() => [
|
|
179
|
+
n(_, { class: "search-btn" }, {
|
|
180
|
+
default: o(() => [
|
|
181
|
+
n(y, {
|
|
182
|
+
type: "primary",
|
|
183
|
+
onClick: e[8] || (e[8] = (t) => a(u).handleQuery())
|
|
184
|
+
}, {
|
|
185
|
+
default: o(() => [
|
|
186
|
+
i(p(l.$t("common.search")), 1)
|
|
187
|
+
]),
|
|
188
|
+
_: 1
|
|
189
|
+
}),
|
|
190
|
+
n(y, {
|
|
191
|
+
onClick: e[9] || (e[9] = (t) => a(u).resetQuery())
|
|
192
|
+
}, {
|
|
193
|
+
default: o(() => [
|
|
194
|
+
i(p(l.$t("common.reset")), 1)
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
})
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
})
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
})
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
})
|
|
207
|
+
]),
|
|
208
|
+
_: 1
|
|
209
|
+
}, 8, ["model"])
|
|
210
|
+
]),
|
|
211
|
+
n(J, {
|
|
212
|
+
shadow: "never",
|
|
213
|
+
class: "table-container"
|
|
214
|
+
}, {
|
|
215
|
+
header: o(() => [
|
|
216
|
+
n(P, null, {
|
|
217
|
+
default: o(() => [
|
|
218
|
+
n(b, { span: 17 }, {
|
|
219
|
+
default: o(() => [
|
|
220
|
+
c((d(), f(y, {
|
|
221
|
+
type: "primary",
|
|
222
|
+
onClick: T
|
|
223
|
+
}, {
|
|
224
|
+
default: o(() => [
|
|
225
|
+
i(p(l.$t("common.add")), 1)
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
})), [
|
|
229
|
+
[k, ["user:student_info:add"]]
|
|
230
|
+
]),
|
|
231
|
+
c((d(), f(y, {
|
|
232
|
+
type: "primary",
|
|
233
|
+
onClick: e[10] || (e[10] = (t) => a(u).deleteRecords())
|
|
234
|
+
}, {
|
|
235
|
+
default: o(() => [
|
|
236
|
+
i(p(l.$t("common.batchDelete")), 1)
|
|
237
|
+
]),
|
|
238
|
+
_: 1
|
|
239
|
+
})), [
|
|
240
|
+
[k, ["user:student_info:delete"]]
|
|
241
|
+
])
|
|
242
|
+
]),
|
|
243
|
+
_: 1
|
|
244
|
+
}),
|
|
245
|
+
n(b, {
|
|
246
|
+
span: 7,
|
|
247
|
+
class: "container-float"
|
|
248
|
+
}, {
|
|
249
|
+
default: o(() => [
|
|
250
|
+
c((d(), f(y, {
|
|
251
|
+
plain: "",
|
|
252
|
+
type: "primary",
|
|
253
|
+
onClick: e[11] || (e[11] = (t) => C.value = !0)
|
|
254
|
+
}, {
|
|
255
|
+
default: o(() => [
|
|
256
|
+
i(p(l.$t("common.import")), 1)
|
|
257
|
+
]),
|
|
258
|
+
_: 1
|
|
259
|
+
})), [
|
|
260
|
+
[k, ["user:student_info:import"]]
|
|
261
|
+
]),
|
|
262
|
+
c((d(), f(y, {
|
|
263
|
+
plain: "",
|
|
264
|
+
type: "primary",
|
|
265
|
+
onClick: e[12] || (e[12] = (t) => a(u).handleExport(a(v)("user.studentInfo.name")))
|
|
266
|
+
}, {
|
|
267
|
+
default: o(() => [
|
|
268
|
+
i(p(l.$t("common.export")), 1)
|
|
269
|
+
]),
|
|
270
|
+
_: 1
|
|
271
|
+
})), [
|
|
272
|
+
[k, ["user:student_info:export"]]
|
|
273
|
+
]),
|
|
274
|
+
c((d(), f(y, {
|
|
275
|
+
plain: "",
|
|
276
|
+
type: "primary",
|
|
277
|
+
onClick: e[13] || (e[13] = (t) => a(u).handleExportPdf(a(v)("user.studentInfo.name")))
|
|
278
|
+
}, {
|
|
279
|
+
default: o(() => [
|
|
280
|
+
i(p(l.$t("common.print")), 1)
|
|
281
|
+
]),
|
|
282
|
+
_: 1
|
|
283
|
+
})), [
|
|
284
|
+
[k, ["user:student_info:print"]]
|
|
285
|
+
]),
|
|
286
|
+
n(H, {
|
|
287
|
+
modelValue: a($),
|
|
288
|
+
"onUpdate:modelValue": e[14] || (e[14] = (t) => h($) ? $.value = t : $ = t),
|
|
289
|
+
"label-name": "user-student-info"
|
|
290
|
+
}, null, 8, ["modelValue"])
|
|
291
|
+
]),
|
|
292
|
+
_: 1
|
|
293
|
+
})
|
|
294
|
+
]),
|
|
295
|
+
_: 1
|
|
296
|
+
})
|
|
297
|
+
]),
|
|
298
|
+
footer: o(() => [
|
|
299
|
+
a(g) > 0 ? (d(), f(G, {
|
|
300
|
+
key: 0,
|
|
301
|
+
total: a(g),
|
|
302
|
+
"onUpdate:total": e[15] || (e[15] = (t) => h(g) ? g.value = t : null),
|
|
303
|
+
"current-page": s.value.curPage,
|
|
304
|
+
"onUpdate:currentPage": e[16] || (e[16] = (t) => s.value.curPage = t),
|
|
305
|
+
"page-size": s.value.pageSize,
|
|
306
|
+
"onUpdate:pageSize": e[17] || (e[17] = (t) => s.value.pageSize = t),
|
|
307
|
+
onPagination: e[18] || (e[18] = (t) => a(u).getList())
|
|
308
|
+
}, null, 8, ["total", "current-page", "page-size"])) : D("", !0)
|
|
309
|
+
]),
|
|
310
|
+
default: o(() => [
|
|
311
|
+
n(M, {
|
|
312
|
+
ref_key: "multipleTableRef",
|
|
313
|
+
ref: E,
|
|
314
|
+
"row-key": "studentId",
|
|
315
|
+
"list-loading": a(j),
|
|
316
|
+
data: a(q),
|
|
317
|
+
"table-label": a($),
|
|
318
|
+
onSelectionChange: Q,
|
|
319
|
+
onSortChange: z
|
|
320
|
+
}, {
|
|
321
|
+
operation: o((t) => [
|
|
322
|
+
c((d(), N("span", {
|
|
323
|
+
class: "el-button-color",
|
|
324
|
+
onClick: (W) => K(t.data.row)
|
|
325
|
+
}, [
|
|
326
|
+
i(p(l.$t("common.edit")), 1)
|
|
327
|
+
], 8, ae)), [
|
|
328
|
+
[k, ["user:student_info:update"]]
|
|
329
|
+
]),
|
|
330
|
+
c((d(), N("span", {
|
|
331
|
+
class: "el-button-color dropdown-left",
|
|
332
|
+
onClick: (W) => a(u).deleteRecord(t.data.row)
|
|
333
|
+
}, [
|
|
334
|
+
i(p(l.$t("common.delete")), 1)
|
|
335
|
+
], 8, ue)), [
|
|
336
|
+
[k, ["user:student_info:delete"]]
|
|
337
|
+
])
|
|
338
|
+
]),
|
|
339
|
+
_: 1
|
|
340
|
+
}, 8, ["list-loading", "data", "table-label"])
|
|
341
|
+
]),
|
|
342
|
+
_: 1
|
|
343
|
+
}),
|
|
344
|
+
m.value.visible ? (d(), f(le, {
|
|
345
|
+
key: 0,
|
|
346
|
+
modelValue: m.value.visible,
|
|
347
|
+
"onUpdate:modelValue": e[19] || (e[19] = (t) => m.value.visible = t),
|
|
348
|
+
title: m.value.title,
|
|
349
|
+
"entity-key": a(R),
|
|
350
|
+
onRefresh: L,
|
|
351
|
+
width: "900px"
|
|
352
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : D("", !0),
|
|
353
|
+
C.value ? (d(), f(O, {
|
|
354
|
+
key: 1,
|
|
355
|
+
"upload-visible": C.value,
|
|
356
|
+
"template-title": l.$t("sysUser.templateDownload"),
|
|
357
|
+
onTemplateDown: e[20] || (e[20] = (t) => a(u).downloadTemplate(a(v)("studentInfo.name"))),
|
|
358
|
+
onImportEvents: A,
|
|
359
|
+
onUploadClosed: B
|
|
360
|
+
}, null, 8, ["upload-visible", "template-title"])) : D("", !0)
|
|
361
|
+
]);
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
export {
|
|
366
|
+
me as default
|
|
367
|
+
};
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { deepMerge as o, addViteMenus as t, i18n as l } from "jmash-core";
|
|
2
|
+
const n = {}, d = {
|
|
3
|
+
// 学生信息
|
|
4
|
+
studentInfo: {
|
|
5
|
+
name: "学生信息",
|
|
6
|
+
realName: "姓名",
|
|
7
|
+
realNameRequired: "请输入姓名",
|
|
8
|
+
code: "学号/准考证号",
|
|
9
|
+
codeRequired: "请输入学号/准考证号",
|
|
10
|
+
department: "院系",
|
|
11
|
+
departmentRequired: "请输入院系",
|
|
12
|
+
professional: "专业",
|
|
13
|
+
professionalRequired: "请输入专业",
|
|
14
|
+
studyDuration: "学制",
|
|
15
|
+
studyDurationRequired: "请输入学制",
|
|
16
|
+
className: "班级",
|
|
17
|
+
classNameRequired: "请输入班级"
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
function r(e) {
|
|
21
|
+
let a = e.global.getLocaleMessage("zh-cn");
|
|
22
|
+
a = o(a, d);
|
|
23
|
+
let s = e.global.getLocaleMessage("en");
|
|
24
|
+
s = o(s, n), e.global.setLocaleMessage("zh-cn", a), e.global.setLocaleMessage("en", s);
|
|
25
|
+
}
|
|
26
|
+
const u = /* @__PURE__ */ Object.assign({ "./views/user-student-info/edit.vue": () => import("./edit-u6nn531T.mjs").then((e) => e.e), "./views/user-student-info/index.vue": () => import("./index-Rmv7zo62.mjs") }), c = {
|
|
27
|
+
install(e) {
|
|
28
|
+
t(u, 7), r(l);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
c as default
|
|
33
|
+
};
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.position-center[data-v-bde3e0e9]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-bde3e0e9]{position:absolute;right:0;top:0;margin-top:8px}
|
package/dts/App.vue.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BizDict, BizLayDict, type Entry, type LayEntry } from "jmash-core";
|
|
2
|
+
import { type GoodsCategoryModel } from "xyvcard-goods";
|
|
3
|
+
export declare class LableListBizDict extends BizDict {
|
|
4
|
+
useValues(): Promise<Entry[]>;
|
|
5
|
+
}
|
|
6
|
+
export declare class GoodsCategoryListBizLayDict extends BizLayDict {
|
|
7
|
+
useValues(): Promise<LayEntry[]>;
|
|
8
|
+
convertToLayEntryArray(dictLayEntries: GoodsCategoryModel[]): LayEntry[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AxiosPromise } from "axios";
|
|
2
|
+
import type { StudentInfoApi, StudentInfoReq, StudentInfoModel, StudentInfoPage, StudentInfoList, StudentInfoKey, StudentInfoCreateReq, StudentInfoUpdateReq, StudentInfoExportReq, StudentInfoImportReq } from "./types";
|
|
3
|
+
declare class StudentInfoApiImpl implements StudentInfoApi {
|
|
4
|
+
getKey(model: StudentInfoModel): StudentInfoKey;
|
|
5
|
+
findPage(query?: StudentInfoReq): AxiosPromise<StudentInfoPage>;
|
|
6
|
+
findList(query?: StudentInfoReq): AxiosPromise<StudentInfoList>;
|
|
7
|
+
findById(query: StudentInfoKey): AxiosPromise<StudentInfoModel>;
|
|
8
|
+
create(data: StudentInfoCreateReq): AxiosPromise<StudentInfoModel>;
|
|
9
|
+
update(data: StudentInfoUpdateReq): AxiosPromise<StudentInfoModel>;
|
|
10
|
+
move(key: StudentInfoKey, up: boolean): AxiosPromise<boolean>;
|
|
11
|
+
enable(key: StudentInfoKey, enable: boolean): AxiosPromise<boolean>;
|
|
12
|
+
delete(query: StudentInfoKey): AxiosPromise<StudentInfoModel>;
|
|
13
|
+
batchDelete(keys: StudentInfoKey[]): AxiosPromise<number>;
|
|
14
|
+
downloadTemplate(): AxiosPromise;
|
|
15
|
+
importExcel(data: StudentInfoImportReq): AxiosPromise<string>;
|
|
16
|
+
exportExcel(queryParams: StudentInfoExportReq): AxiosPromise;
|
|
17
|
+
exportPdf(queryParams: StudentInfoExportReq): AxiosPromise;
|
|
18
|
+
}
|
|
19
|
+
declare const studentInfoApi: StudentInfoApiImpl;
|
|
20
|
+
export { studentInfoApi };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq, EntityExportReq, EntityImportReq } from "jmash-core";
|
|
2
|
+
export interface StudentInfoApi extends EntityApi {
|
|
3
|
+
}
|
|
4
|
+
export interface StudentInfoReq extends EntityReq {
|
|
5
|
+
likeRealName?: string;
|
|
6
|
+
likeCode?: string;
|
|
7
|
+
likeDepartment?: string;
|
|
8
|
+
likeProfessional?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface StudentInfoModel extends EntityModel {
|
|
11
|
+
tenantId?: string;
|
|
12
|
+
studentId?: string;
|
|
13
|
+
userId?: string;
|
|
14
|
+
realName?: string;
|
|
15
|
+
code?: string;
|
|
16
|
+
department?: string;
|
|
17
|
+
professional?: string;
|
|
18
|
+
studyDuration?: string;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface StudentInfoList extends EntityList {
|
|
22
|
+
results: Array<StudentInfoModel>;
|
|
23
|
+
}
|
|
24
|
+
export interface StudentInfoPage extends EntityPage {
|
|
25
|
+
results: Array<StudentInfoModel>;
|
|
26
|
+
subTotalDto: StudentInfoModelTotal;
|
|
27
|
+
totalDto: StudentInfoModelTotal;
|
|
28
|
+
}
|
|
29
|
+
export interface StudentInfoModelTotal extends EntityTotal {
|
|
30
|
+
totalSize: number;
|
|
31
|
+
}
|
|
32
|
+
export interface StudentInfoKey extends EntityKey {
|
|
33
|
+
tenant?: string;
|
|
34
|
+
studentId?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface StudentInfoKeyList extends EntityKeyList {
|
|
37
|
+
tenant?: string;
|
|
38
|
+
studentId?: Array<string>;
|
|
39
|
+
}
|
|
40
|
+
export interface StudentInfoCreateReq extends EntityCreateReq {
|
|
41
|
+
tenantId?: string;
|
|
42
|
+
studentId?: string;
|
|
43
|
+
userId?: string;
|
|
44
|
+
realName?: string;
|
|
45
|
+
code?: string;
|
|
46
|
+
mobilePhone?: string;
|
|
47
|
+
mobilePhoneIns?: string;
|
|
48
|
+
department?: string;
|
|
49
|
+
professional?: string;
|
|
50
|
+
studyDuration?: string;
|
|
51
|
+
className?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface StudentInfoUpdateReq extends EntityUpdateReq {
|
|
54
|
+
tenantId?: string;
|
|
55
|
+
studentId?: string;
|
|
56
|
+
userId?: string;
|
|
57
|
+
realName?: string;
|
|
58
|
+
code?: string;
|
|
59
|
+
mobilePhone?: string;
|
|
60
|
+
mobilePhoneIns?: string;
|
|
61
|
+
department?: string;
|
|
62
|
+
professional?: string;
|
|
63
|
+
studyDuration?: string;
|
|
64
|
+
className?: string;
|
|
65
|
+
}
|
|
66
|
+
export type StudentInfoFormReq = StudentInfoCreateReq | StudentInfoUpdateReq;
|
|
67
|
+
export interface StudentInfoExportReq extends EntityExportReq {
|
|
68
|
+
req: StudentInfoReq;
|
|
69
|
+
}
|
|
70
|
+
export interface StudentInfoImportReq extends EntityImportReq {
|
|
71
|
+
}
|
|
72
|
+
export interface StudentInfoMoveKey {
|
|
73
|
+
tenant?: string;
|
|
74
|
+
studentId?: string;
|
|
75
|
+
up?: boolean;
|
|
76
|
+
}
|
|
77
|
+
export interface StudentInfoEnableKey {
|
|
78
|
+
tenant?: string;
|
|
79
|
+
studentId?: string;
|
|
80
|
+
enable?: boolean;
|
|
81
|
+
}
|
package/dts/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function loadLang(i18n: any): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
studentInfo: {
|
|
3
|
+
name: string;
|
|
4
|
+
realName: string;
|
|
5
|
+
realNameRequired: string;
|
|
6
|
+
code: string;
|
|
7
|
+
codeRequired: string;
|
|
8
|
+
department: string;
|
|
9
|
+
departmentRequired: string;
|
|
10
|
+
professional: string;
|
|
11
|
+
professionalRequired: string;
|
|
12
|
+
studyDuration: string;
|
|
13
|
+
studyDurationRequired: string;
|
|
14
|
+
className: string;
|
|
15
|
+
classNameRequired: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
package/dts/main.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "nprogress/nprogress.css";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import type { StudentInfoKey } from "@/api/user-student-info/types";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
4
|
+
entityKey: {
|
|
5
|
+
type: PropType<StudentInfoKey>;
|
|
6
|
+
default: () => void;
|
|
7
|
+
};
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: PropType<boolean>;
|
|
10
|
+
};
|
|
11
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
refresh: (...args: any[]) => void;
|
|
13
|
+
"update:modelValue": (value: boolean | undefined) => void;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
15
|
+
entityKey: {
|
|
16
|
+
type: PropType<StudentInfoKey>;
|
|
17
|
+
default: () => void;
|
|
18
|
+
};
|
|
19
|
+
modelValue: {
|
|
20
|
+
type: PropType<boolean>;
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{
|
|
23
|
+
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
entityKey: StudentInfoKey;
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "xyvcard-user",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"module": "dist/index.mjs",
|
|
6
|
+
"types": "dts/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"dts"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"dev": "vite",
|
|
13
|
+
"build": "vite build && pnpm build:dts",
|
|
14
|
+
"build:dts": "vue-tsc --declaration --emitDeclarationOnly",
|
|
15
|
+
"preview": "vite preview",
|
|
16
|
+
"build-only": "vite build",
|
|
17
|
+
"type-check": "vue-tsc --build --force",
|
|
18
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
19
|
+
"format": "prettier --write src/"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"axios": "^1.9.0",
|
|
23
|
+
"element-plus": "^2.9.10",
|
|
24
|
+
"pinia": "^2.3.1",
|
|
25
|
+
"vue": "^3.5.13",
|
|
26
|
+
"vue-i18n": "^9.14.4",
|
|
27
|
+
"vue-router": "^4.5.1",
|
|
28
|
+
"jmash-core": "^0.1.7",
|
|
29
|
+
"jmash-dict": "^0.1.1",
|
|
30
|
+
"jmash-rbac": "^0.1.16",
|
|
31
|
+
"xyvcard-goods": "^0.0.24",
|
|
32
|
+
"xyvcard-shop": "^0.0.29"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@eslint/js": "^9.14.0",
|
|
36
|
+
"@tsconfig/node20": "^20.1.2",
|
|
37
|
+
"@types/node": "^20.11.10",
|
|
38
|
+
"@vitejs/plugin-vue": "^5.0.3",
|
|
39
|
+
"@vue/tsconfig": "^0.5.1",
|
|
40
|
+
"eslint": "^9.14.0",
|
|
41
|
+
"eslint-plugin-vue": "^9.30.0",
|
|
42
|
+
"globals": "^15.12.0",
|
|
43
|
+
"npm-run-all2": "^6.1.1",
|
|
44
|
+
"prettier": "^3.0.3",
|
|
45
|
+
"sass": "^1.72.0",
|
|
46
|
+
"typescript": "~5.3.0",
|
|
47
|
+
"typescript-eslint": "^8.13.0",
|
|
48
|
+
"unplugin-auto-import": "^0.17.5",
|
|
49
|
+
"unplugin-vue-components": "^0.26.0",
|
|
50
|
+
"vite": "^5.0.11",
|
|
51
|
+
"vue-tsc": "^2.1.10"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"file-saver": "^2.0.5",
|
|
55
|
+
"nprogress": "^0.2.0",
|
|
56
|
+
"@vueuse/core": "^10.9.0",
|
|
57
|
+
"qs": "^6.14.0"
|
|
58
|
+
}
|
|
59
|
+
}
|