Skip to content

Commit 757fbdd

Browse files
committed
🐛 修复 dictType 和 dictData 在 IDEA 报错的问题
1 parent a77173f commit 757fbdd

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/api/system/dict/dict.data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ export const deleteDictData = (id: number) => {
4545

4646
// 导出字典类型数据
4747
export const exportDictData = (params) => {
48-
return request.get({ url: '/system/dict-data/export', params })
48+
return request.download({ url: '/system/dict-data/export', params })
4949
}

src/api/system/dict/dict.type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ export const deleteDictType = (id: number) => {
4040
}
4141
// 导出字典类型
4242
export const exportDictType = (params) => {
43-
return request.get({ url: '/system/dict-type/export', params })
43+
return request.download({ url: '/system/dict-type/export', params })
4444
}

src/views/system/dict/DictTypeForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<el-radio-group v-model="formData.status">
2222
<el-radio
2323
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
24-
:key="dict.value"
24+
:key="dict.value as number"
2525
:label="dict.value"
2626
>
2727
{{ dict.label }}

src/views/system/dict/data/DictDataForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<el-radio-group v-model="formData.status">
2828
<el-radio
2929
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
30-
:key="dict.value"
30+
:key="dict.value as number"
3131
:label="dict.value"
3232
>
3333
{{ dict.label }}

src/views/system/dict/data/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<el-select v-model="queryParams.status" placeholder="数据状态" clearable class="!w-240px">
3131
<el-option
3232
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
33-
:key="dict.value"
33+
:key="dict.value as number"
3434
:label="dict.label"
3535
:value="dict.value"
3636
/>

src/views/system/dict/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
>
3636
<el-option
3737
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
38-
:key="dict.value"
38+
:key="dict.value as number"
3939
:label="dict.label"
4040
:value="dict.value"
4141
/>
@@ -161,7 +161,7 @@ const queryParams = reactive({
161161
name: '',
162162
type: '',
163163
status: undefined,
164-
createTime: []
164+
createTime: [undefined, undefined]
165165
})
166166
const queryFormRef = ref() // 搜索的表单
167167
const exportLoading = ref(false) // 导出的加载中

0 commit comments

Comments
 (0)