🐛 修复 dictType 和 dictData 在 IDEA 报错的问题

This commit is contained in:
YunaiV 2023-12-02 18:22:02 +08:00
parent a77173f2ae
commit 757fbddef2
6 changed files with 7 additions and 7 deletions

View File

@ -45,5 +45,5 @@ export const deleteDictData = (id: number) => {
// 导出字典类型数据 // 导出字典类型数据
export const exportDictData = (params) => { export const exportDictData = (params) => {
return request.get({ url: '/system/dict-data/export', params }) return request.download({ url: '/system/dict-data/export', params })
} }

View File

@ -40,5 +40,5 @@ export const deleteDictType = (id: number) => {
} }
// 导出字典类型 // 导出字典类型
export const exportDictType = (params) => { export const exportDictType = (params) => {
return request.get({ url: '/system/dict-type/export', params }) return request.download({ url: '/system/dict-type/export', params })
} }

View File

@ -21,7 +21,7 @@
<el-radio-group v-model="formData.status"> <el-radio-group v-model="formData.status">
<el-radio <el-radio
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)" v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
:key="dict.value" :key="dict.value as number"
:label="dict.value" :label="dict.value"
> >
{{ dict.label }} {{ dict.label }}

View File

@ -27,7 +27,7 @@
<el-radio-group v-model="formData.status"> <el-radio-group v-model="formData.status">
<el-radio <el-radio
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)" v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
:key="dict.value" :key="dict.value as number"
:label="dict.value" :label="dict.value"
> >
{{ dict.label }} {{ dict.label }}

View File

@ -30,7 +30,7 @@
<el-select v-model="queryParams.status" placeholder="数据状态" clearable class="!w-240px"> <el-select v-model="queryParams.status" placeholder="数据状态" clearable class="!w-240px">
<el-option <el-option
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)" v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
:key="dict.value" :key="dict.value as number"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
/> />

View File

@ -35,7 +35,7 @@
> >
<el-option <el-option
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)" v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
:key="dict.value" :key="dict.value as number"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
/> />
@ -161,7 +161,7 @@ const queryParams = reactive({
name: '', name: '',
type: '', type: '',
status: undefined, status: undefined,
createTime: [] createTime: [undefined, undefined]
}) })
const queryFormRef = ref() // const queryFormRef = ref() //
const exportLoading = ref(false) // const exportLoading = ref(false) //