Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jijin
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
7a6d28ad
authored
2024-06-18 16:13:27 +0800
by
杨炀
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
ac0bbcaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
6 deletions
src/viewsPc/match/components/addCoach.vue
src/viewsPc/match/components/addCoach.vue
View file @
7a6d28a
...
...
@@ -80,9 +80,9 @@
<el-input
v-model=
"form.address"
type=
"textarea"
:rows=
"4"
/>
</el-form-item>
<el-form-item
v-if=
"language=='0'"
:label=
"language==0?'WDSF会员号':'WDSF code'"
prop=
"wdsfMin"
>
<span
v-if=
"form.wdsfMin"
>
{{
form
.
wdsfMin
}}
</span>
<el-input
v-else
v-model=
"
form.
wdsfMin"
type=
"text"
/>
<el-form-item
v-if=
"language=='0'"
:label=
"language==0?'WDSF会员号':'WDSF code'"
>
<span
v-if=
"
editgay&&
form.wdsfMin"
>
{{
form
.
wdsfMin
}}
</span>
<el-input
v-else
v-model=
"wdsfMin"
type=
"text"
/>
</el-form-item>
...
...
@@ -131,6 +131,7 @@ const data = reactive({
// countryId: 240
sex
:
'0'
},
wdsfMin
:
''
,
rules
:
{
realName
:
[{
required
:
true
,
message
:
'必填'
,
trigger
:
'blur'
}],
// countryId: [{required: true, message: '必填', trigger: 'change'}],
...
...
@@ -171,10 +172,9 @@ const data = reactive({
],
title
:
'添加选手信息'
,
groupId
:
'0'
,
showRequire
:
false
,
isMe
:
false
})
const
{
showRequire
,
form
,
rules
,
rules_cn
,
show
,
countryList
,
regionsList
,
title
,
groupId
,
labels
,
uType
,
isMe
}
=
toRefs
(
data
)
const
{
wdsfMin
,
form
,
rules
,
rules_cn
,
show
,
countryList
,
regionsList
,
title
,
groupId
,
labels
,
uType
,
isMe
}
=
toRefs
(
data
)
onMounted
(()
=>
{
getCountryList
()
getRegionsList
()
...
...
@@ -186,6 +186,7 @@ const open = (params) => {
title
.
value
=
params
.
title
groupId
.
value
=
params
.
groupId
||
'0'
isMe
.
value
=
params
.
isMe
wdsfMin
.
value
=
''
if
(
params
.
label
){
form
.
value
.
labelArr
=
[
params
.
label
]
}
else
{
...
...
@@ -237,7 +238,17 @@ watch(show, (value) => {
// proxy.$refs['dialogRef'].clearValidate()
})
})
function
reset
(){
if
(
editgay
.
value
){
match
.
getPersonInfoById
(
form
.
value
.
id
).
then
(
res
=>
{
form
.
value
=
res
.
data
if
(
form
.
value
.
label
)
{
// {0:0,1:1,2:3}
form
.
value
.
labelArr
=
form
.
value
.
label
.
split
(
','
)
}
})
}
}
function
getCountryList
()
{
match
.
countryList
().
then
(
res
=>
{
countryList
.
value
=
res
.
data
...
...
@@ -332,6 +343,9 @@ function submitForm() {
if
(
Array
.
isArray
(
form
.
value
.
passportUrl
)){
form
.
value
.
passportUrl
=
form
.
value
.
passportUrl
[
0
].
url
}
if
(
wdsfMin
.
value
){
form
.
value
.
wdsfMin
=
wdsfMin
.
value
}
if
(
groupId
.
value
!=
0
)
{
// 团队
form
.
value
.
groupId
=
groupId
.
value
...
...
@@ -381,10 +395,13 @@ function saveGroupMember() {
ElMessage
.
success
(
language
.
value
==
0
?
'保存成功'
:
'Save successful'
)
show
.
value
=
false
emit
(
'submitForm'
)
}).
catch
(
err
=>
{
reset
()
})
}
function
cancel
()
{
show
.
value
=
false
delete
wdsfMin
.
value
}
</
script
>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment