File tree Expand file tree Collapse file tree 4 files changed +12
-15
lines changed Expand file tree Collapse file tree 4 files changed +12
-15
lines changed Original file line number Diff line number Diff line change 14
14
<el-radio-group v-model =" formData.socialType" >
15
15
<el-radio
16
16
v-for =" dict in getIntDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE)"
17
- :key =" dict.value"
17
+ :key =" dict.value as number "
18
18
:label =" dict.value"
19
19
>
20
20
{{ dict.label }}
48
48
<el-radio-group v-model =" formData.status" >
49
49
<el-radio
50
50
v-for =" dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
51
- :key =" dict.value"
51
+ :key =" dict.value as number "
52
52
:label =" dict.value"
53
53
>
54
54
{{ dict.label }}
Original file line number Diff line number Diff line change 28
28
>
29
29
<el-option
30
30
v-for =" dict in getIntDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE)"
31
- :key =" dict.value"
31
+ :key =" dict.value as number "
32
32
:label =" dict.label"
33
33
:value =" dict.value"
34
34
/>
43
43
>
44
44
<el-option
45
45
v-for =" dict in getIntDictOptions(DICT_TYPE.USER_TYPE)"
46
- :key =" dict.value"
46
+ :key =" dict.value as number "
47
47
:label =" dict.label"
48
48
:value =" dict.value"
49
49
/>
62
62
<el-select v-model =" queryParams.status" class =" !w-240px" clearable placeholder =" 请选择状态" >
63
63
<el-option
64
64
v-for =" dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
65
- :key =" dict.value"
65
+ :key =" dict.value as number "
66
66
:label =" dict.label"
67
67
:value =" dict.value"
68
68
/>
@@ -169,11 +169,11 @@ const list = ref([]) // 列表的数据
169
169
const queryParams = reactive ({
170
170
pageNo: 1 ,
171
171
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
177
177
})
178
178
const queryFormRef = ref () // 搜索的表单
179
179
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ import * as SocialUserApi from '@/api/system/social/user'
44
44
45
45
const dialogVisible = ref (false ) // 弹窗的是否展示
46
46
const detailLoading = ref (false ) // 表单的加载中
47
- const detailData = ref ({}) // 详情数据
47
+ const detailData = ref ({} as SocialUserApi . SocialUserVO ) // 详情数据
48
48
49
49
/** 打开弹窗 */
50
50
const open = async (id : number ) => {
Original file line number Diff line number Diff line change 19
19
>
20
20
<el-option
21
21
v-for =" dict in getIntDictOptions(DICT_TYPE.SYSTEM_SOCIAL_TYPE)"
22
- :key =" dict.value"
22
+ :key =" dict.value as number "
23
23
:label =" dict.label"
24
24
:value =" dict.value"
25
25
/>
@@ -131,9 +131,6 @@ import { createImageViewer } from '@/components/ImageViewer'
131
131
132
132
defineOptions ({ name: ' SocialUser' })
133
133
134
- const message = useMessage () // 消息弹窗
135
- const { t } = useI18n () // 国际化
136
-
137
134
const loading = ref (true ) // 列表的加载中
138
135
const total = ref (0 ) // 列表的总页数
139
136
const list = ref ([]) // 列表的数据
You can’t perform that action at this time.
0 commit comments