File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
src/views/system/errorCode Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,6 @@ defineExpose({ openModal }) // 提供 openModal 方法,用于打开弹窗
74
74
75
75
/** 提交表单 */
76
76
const emit = defineEmits ([' success' ]) // 定义 success 事件,用于操作成功后的回调
77
-
78
- /** 提交按钮 */
79
77
const submitForm = async () => {
80
78
// 校验表单
81
79
if (! formRef ) return
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<!-- 搜索工作栏 -->
3
3
<content-wrap >
4
- <el-form :model =" queryParams" ref =" queryFormRef" class =" -mb-15px" :inline =" true" >
4
+ <el-form
5
+ class =" -mb-15px"
6
+ :model =" queryParams"
7
+ ref =" queryFormRef"
8
+ :inline =" true"
9
+ label-width =" 90px"
10
+ >
5
11
<el-form-item label =" 错误码类型" prop =" type" >
6
12
<el-select v-model =" queryParams.type" placeholder =" 请选择错误码类型" clearable >
7
13
<el-option
8
14
v-for =" dict in getDictOptions(DICT_TYPE.SYSTEM_ERROR_CODE_TYPE)"
9
15
:key =" dict.value"
10
16
:label =" dict.label"
11
17
:value =" dict.value"
18
+ class =" !w-240px"
12
19
/>
13
20
</el-select >
14
21
</el-form-item >
18
25
placeholder =" 请输入应用名"
19
26
clearable
20
27
@keyup.enter =" handleQuery"
28
+ class =" !w-240px"
21
29
/>
22
30
</el-form-item >
23
31
<el-form-item label =" 错误码编码" prop =" code" >
34
42
placeholder =" 请输入错误码提示"
35
43
clearable
36
44
@keyup.enter =" handleQuery"
45
+ class =" !w-240px"
37
46
/>
38
47
</el-form-item >
39
48
<el-form-item label =" 创建时间" prop =" createTime" >
44
53
start-placeholder =" 开始日期"
45
54
end-placeholder =" 结束日期"
46
55
:default-time =" [new Date('1 00:00:00'), new Date('1 23:59:59')]"
56
+ class =" !w-240px"
47
57
/>
48
58
</el-form-item >
49
59
<el-form-item >
68
78
</el-form-item >
69
79
</el-form >
70
80
</content-wrap >
81
+
71
82
<!-- 列表 -->
72
83
<content-wrap >
73
84
<el-table v-loading =" loading" :data =" list" >
118
129
@pagination =" getList"
119
130
/>
120
131
</content-wrap >
132
+
121
133
<!-- 表单弹窗:添加/修改 -->
122
134
<error-code-form ref =" modalRef" @success =" getList" />
123
135
</template >
@@ -194,6 +206,7 @@ const handleDelete = async (id: number) => {
194
206
await getList ()
195
207
} catch {}
196
208
}
209
+
197
210
/** 导出按钮操作 */
198
211
const handleExport = async () => {
199
212
try {
@@ -202,7 +215,7 @@ const handleExport = async () => {
202
215
// 发起导出
203
216
exportLoading .value = true
204
217
const data = await ErrorCodeApi .excelErrorCodeApi (queryParams )
205
- download .excel (data , ' 参数配置 .xls' )
218
+ download .excel (data , ' 错误码 .xls' )
206
219
} catch {
207
220
} finally {
208
221
exportLoading .value = false
You can’t perform that action at this time.
0 commit comments