Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f17bb9a7
authored
Aug 23, 2023
by
绮梦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重命名组件名称
parent
d1bb7369
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
11 deletions
+15
-11
src/views/member/user/components/AccountInfo.vue
+0
-0
src/views/member/user/components/CardTitle.vue
+0
-0
src/views/member/user/components/PointList.vue
+0
-0
src/views/member/user/components/SignList.vue
+0
-0
src/views/member/user/components/UserBasicInfo.vue
+7
-0
src/views/member/user/detail/index.vue
+8
-11
No files found.
src/views/member/user/components/
account-i
nfo.vue
→
src/views/member/user/components/
AccountI
nfo.vue
View file @
f17bb9a7
File moved
src/views/member/user/components/
card-t
itle.vue
→
src/views/member/user/components/
CardT
itle.vue
View file @
f17bb9a7
File moved
src/views/member/user/components/
point-l
ist.vue
→
src/views/member/user/components/
PointL
ist.vue
View file @
f17bb9a7
File moved
src/views/member/user/components/
sign-l
ist.vue
→
src/views/member/user/components/
SignL
ist.vue
View file @
f17bb9a7
File moved
src/views/member/user/components/UserBasicInfo.vue
0 → 100644
View file @
f17bb9a7
<
script
setup
lang=
"ts"
></
script
>
<
template
>
<span>
基础信息
</span>
</
template
>
<
style
scoped
lang=
"scss"
></
style
>
src/views/member/user/detail/index.vue
View file @
f17bb9a7
...
@@ -142,28 +142,25 @@
...
@@ -142,28 +142,25 @@
</el-card>
</el-card>
</el-row>
</el-row>
</div>
</div>
<!-- 表单弹窗:添加/修改 -->
<!-- 表单弹窗:添加/修改 -->
<UserForm
ref=
"formRef"
@
success=
"getUserData(user.id)"
/>
<UserForm
ref=
"formRef"
v-if=
"user.id"
@
success=
"getUserData(user.id)"
/>
</template>
</template>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
// TODO @梦:组件对应的 vue,都大写
import
PointList
from
'@/views/member/user/components/PointList.vue'
import
PointList
from
'@/views/member/user/components/point-list.vue'
import
SignList
from
'@/views/member/user/components/SignList.vue'
import
SignList
from
'@/views/member/user/components/sign-list.vue'
import
CardTitle
from
'@/views/member/user/components/CardTitle.vue'
import
CardTitle
from
'@/views/member/user/components/card-title.vue'
import
*
as
UserApi
from
'@/api/member/user'
// TODO @梦:参考别的模块,UserApi 这样去引用
import
{
getUser
,
UserBaseInfoVO
}
from
'@/api/member/user'
import
{
formatDate
}
from
'@/utils/formatTime'
import
{
formatDate
}
from
'@/utils/formatTime'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
UserForm
from
'@/views/member/user/UserForm.vue'
import
UserForm
from
'@/views/member/user/UserForm.vue'
// TODO @梦:把用户信息,也抽成一个组件,类似 AccountInfo
// TODO @梦:把用户信息,也抽成一个组件,类似 AccountInfo
import
AccountInfo
from
'@/views/member/user/components/
account-i
nfo.vue'
import
AccountInfo
from
'@/views/member/user/components/
AccountI
nfo.vue'
defineOptions
({
name
:
'MemberDetail'
})
defineOptions
({
name
:
'MemberDetail'
})
const
activeName
=
ref
(
'point'
)
// 账户明细 选中的 tabs
const
activeName
=
ref
(
'point'
)
// 账户明细 选中的 tabs
const
loading
=
ref
(
true
)
// 加载中
const
loading
=
ref
(
true
)
// 加载中
let
user
=
ref
<
UserBaseInfoVO
>
({
let
user
=
ref
<
User
Api
.
User
BaseInfoVO
>
({
areaId
:
undefined
,
areaId
:
undefined
,
avatar
:
undefined
,
avatar
:
undefined
,
birthday
:
undefined
,
birthday
:
undefined
,
...
@@ -185,7 +182,7 @@ let user = ref<UserBaseInfoVO>({
...
@@ -185,7 +182,7 @@ let user = ref<UserBaseInfoVO>({
const
getUserData
=
async
(
id
:
number
)
=>
{
const
getUserData
=
async
(
id
:
number
)
=>
{
loading
.
value
=
true
loading
.
value
=
true
try
{
try
{
user
.
value
=
await
getUser
(
id
)
user
.
value
=
await
UserApi
.
getUser
(
id
)
}
finally
{
}
finally
{
loading
.
value
=
false
loading
.
value
=
false
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment