重命名组件名称,增加用户地址查看api和页面、统一组件的props userId 变量名。

This commit is contained in:
绮梦
2023-08-25 11:27:47 +08:00
parent f17bb9a7eb
commit 28951fb31d
11 changed files with 284 additions and 164 deletions

View File

@ -17,7 +17,7 @@
>
<el-option
v-for="dict in getIntDictOptions(DICT_TYPE.MEMBER_POINT_BIZ_TYPE)"
:key="dict.value"
:key="dict.value as number"
:label="dict.label"
:value="dict.value"
/>
@ -112,7 +112,7 @@ const queryParams = reactive({
bizType: undefined,
title: null,
createDate: [],
userId: null
userId: NaN
})
const queryFormRef = ref() // 搜索的表单
@ -140,9 +140,8 @@ const resetQuery = () => {
handleQuery()
}
// TODO @梦:改成 userId 哈
const { memberId } = defineProps({
memberId: {
const { userId } = defineProps({
userId: {
type: Number,
required: true
}
@ -150,7 +149,7 @@ const { memberId } = defineProps({
/** 初始化 **/
onMounted(() => {
queryParams.userId = memberId
queryParams.userId = userId
getList()
})
</script>