File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -45,5 +45,5 @@ export const deleteDictData = (id: number) => {
45
45
46
46
// 导出字典类型数据
47
47
export const exportDictData = ( params ) => {
48
- return request . get ( { url : '/system/dict-data/export' , params } )
48
+ return request . download ( { url : '/system/dict-data/export' , params } )
49
49
}
Original file line number Diff line number Diff line change @@ -40,5 +40,5 @@ export const deleteDictType = (id: number) => {
40
40
}
41
41
// 导出字典类型
42
42
export const exportDictType = ( params ) => {
43
- return request . get ( { url : '/system/dict-type/export' , params } )
43
+ return request . download ( { url : '/system/dict-type/export' , params } )
44
44
}
Original file line number Diff line number Diff line change 21
21
<el-radio-group v-model =" formData.status" >
22
22
<el-radio
23
23
v-for =" dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
24
- :key =" dict.value"
24
+ :key =" dict.value as number "
25
25
:label =" dict.value"
26
26
>
27
27
{{ dict.label }}
Original file line number Diff line number Diff line change 27
27
<el-radio-group v-model =" formData.status" >
28
28
<el-radio
29
29
v-for =" dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
30
- :key =" dict.value"
30
+ :key =" dict.value as number "
31
31
:label =" dict.value"
32
32
>
33
33
{{ dict.label }}
Original file line number Diff line number Diff line change 30
30
<el-select v-model =" queryParams.status" placeholder =" 数据状态" clearable class =" !w-240px" >
31
31
<el-option
32
32
v-for =" dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
33
- :key =" dict.value"
33
+ :key =" dict.value as number "
34
34
:label =" dict.label"
35
35
:value =" dict.value"
36
36
/>
Original file line number Diff line number Diff line change 35
35
>
36
36
<el-option
37
37
v-for =" dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
38
- :key =" dict.value"
38
+ :key =" dict.value as number "
39
39
:label =" dict.label"
40
40
:value =" dict.value"
41
41
/>
@@ -161,7 +161,7 @@ const queryParams = reactive({
161
161
name: ' ' ,
162
162
type: ' ' ,
163
163
status: undefined ,
164
- createTime: []
164
+ createTime: [undefined , undefined ]
165
165
})
166
166
const queryFormRef = ref () // 搜索的表单
167
167
const exportLoading = ref (false ) // 导出的加载中
You can’t perform that action at this time.
0 commit comments