Skip to content

Commit a6deb69

Browse files
committed
🐛 修复 social 在 IDEA 报错的问题
1 parent 3407cc6 commit a6deb69

File tree

4 files changed

+12
-15
lines changed

4 files changed

+12
-15
lines changed

src/views/system/social/client/SocialClientForm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<el-radio-group v-model="formData.socialType">
1515
<el-radio
1616
v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE)"
17-
:key="dict.value"
17+
:key="dict.value as number"
1818
:label="dict.value"
1919
>
2020
{{ dict.label }}
@@ -48,7 +48,7 @@
4848
<el-radio-group v-model="formData.status">
4949
<el-radio
5050
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
51-
:key="dict.value"
51+
:key="dict.value as number"
5252
:label="dict.value"
5353
>
5454
{{ dict.label }}

src/views/system/social/client/index.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
>
2929
<el-option
3030
v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE)"
31-
:key="dict.value"
31+
:key="dict.value as number"
3232
:label="dict.label"
3333
:value="dict.value"
3434
/>
@@ -43,7 +43,7 @@
4343
>
4444
<el-option
4545
v-for="dict in getIntDictOptions(DICT_TYPE.USER_TYPE)"
46-
:key="dict.value"
46+
:key="dict.value as number"
4747
:label="dict.label"
4848
:value="dict.value"
4949
/>
@@ -62,7 +62,7 @@
6262
<el-select v-model="queryParams.status" class="!w-240px" clearable placeholder="请选择状态">
6363
<el-option
6464
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
65-
:key="dict.value"
65+
:key="dict.value as number"
6666
:label="dict.label"
6767
:value="dict.value"
6868
/>
@@ -169,11 +169,11 @@ const list = ref([]) // 列表的数据
169169
const queryParams = reactive({
170170
pageNo: 1,
171171
pageSize: 10,
172-
name: null,
173-
socialType: null,
174-
userType: null,
175-
clientId: null,
176-
status: null
172+
name: undefined,
173+
socialType: undefined,
174+
userType: undefined,
175+
clientId: undefined,
176+
status: undefined
177177
})
178178
const queryFormRef = ref() // 搜索的表单
179179

src/views/system/social/user/SocialUserDetail.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import * as SocialUserApi from '@/api/system/social/user'
4444
4545
const dialogVisible = ref(false) // 弹窗的是否展示
4646
const detailLoading = ref(false) // 表单的加载中
47-
const detailData = ref({}) // 详情数据
47+
const detailData = ref({} as SocialUserApi.SocialUserVO) // 详情数据
4848
4949
/** 打开弹窗 */
5050
const open = async (id: number) => {

src/views/system/social/user/index.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
>
2020
<el-option
2121
v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE)"
22-
:key="dict.value"
22+
:key="dict.value as number"
2323
:label="dict.label"
2424
:value="dict.value"
2525
/>
@@ -131,9 +131,6 @@ import { createImageViewer } from '@/components/ImageViewer'
131131
132132
defineOptions({ name: 'SocialUser' })
133133
134-
const message = useMessage() // 消息弹窗
135-
const { t } = useI18n() // 国际化
136-
137134
const loading = ref(true) // 列表的加载中
138135
const total = ref(0) // 列表的总页数
139136
const list = ref([]) // 列表的数据

0 commit comments

Comments
 (0)