🐛 修复 social 在 IDEA 报错的问题

This commit is contained in:
YunaiV 2023-12-02 23:01:31 +08:00
parent 3407cc66a9
commit a6deb69ddc
4 changed files with 12 additions and 15 deletions

View File

@ -14,7 +14,7 @@
<el-radio-group v-model="formData.socialType"> <el-radio-group v-model="formData.socialType">
<el-radio <el-radio
v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE)" v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE)"
:key="dict.value" :key="dict.value as number"
:label="dict.value" :label="dict.value"
> >
{{ dict.label }} {{ dict.label }}
@ -48,7 +48,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

@ -28,7 +28,7 @@
> >
<el-option <el-option
v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE)" v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE)"
:key="dict.value" :key="dict.value as number"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
/> />
@ -43,7 +43,7 @@
> >
<el-option <el-option
v-for="dict in getIntDictOptions(DICT_TYPE.USER_TYPE)" v-for="dict in getIntDictOptions(DICT_TYPE.USER_TYPE)"
:key="dict.value" :key="dict.value as number"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
/> />
@ -62,7 +62,7 @@
<el-select v-model="queryParams.status" class="!w-240px" clearable placeholder="请选择状态"> <el-select v-model="queryParams.status" class="!w-240px" clearable placeholder="请选择状态">
<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"
/> />
@ -169,11 +169,11 @@ const list = ref([]) // 列表的数据
const queryParams = reactive({ const queryParams = reactive({
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
name: null, name: undefined,
socialType: null, socialType: undefined,
userType: null, userType: undefined,
clientId: null, clientId: undefined,
status: null status: undefined
}) })
const queryFormRef = ref() // const queryFormRef = ref() //

View File

@ -44,7 +44,7 @@ import * as SocialUserApi from '@/api/system/social/user'
const dialogVisible = ref(false) // const dialogVisible = ref(false) //
const detailLoading = ref(false) // const detailLoading = ref(false) //
const detailData = ref({}) // const detailData = ref({} as SocialUserApi.SocialUserVO) //
/** 打开弹窗 */ /** 打开弹窗 */
const open = async (id: number) => { const open = async (id: number) => {

View File

@ -19,7 +19,7 @@
> >
<el-option <el-option
v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE)" v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE)"
:key="dict.value" :key="dict.value as number"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
/> />
@ -131,9 +131,6 @@ import { createImageViewer } from '@/components/ImageViewer'
defineOptions({ name: 'SocialUser' }) defineOptions({ name: 'SocialUser' })
const message = useMessage() //
const { t } = useI18n() //
const loading = ref(true) // const loading = ref(true) //
const total = ref(0) // const total = ref(0) //
const list = ref([]) // const list = ref([]) //