Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
罗鑫霖
/
vion-tools
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 10cbbf7e
authored
Jun 24, 2024
by
李乾广
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改bug
1 parent
80f9966d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
src/views/SnapshotCluster/ClusterResult/PersonGroupDialog.vue
src/views/SnapshotCluster/ClusterResult/PersonGroupEditor.vue
src/views/SnapshotCluster/ClusterResult/PersonGroupDialog.vue
View file @
10cbbf7
...
@@ -171,12 +171,12 @@ export default {
...
@@ -171,12 +171,12 @@ export default {
const
addGroupLoading
=
ref
(
false
)
const
addGroupLoading
=
ref
(
false
)
const
handleAddGroup
=
(
dataList
)
=>
{
const
handleAddGroup
=
(
dataList
)
=>
{
const
targetDataList
=
dataList
||
selectedImgList
.
value
const
targetDataList
=
dataList
||
selectedImgList
.
value
if
(
targetDataList
.
length
>
0
)
{
if
(
targetDataList
.
length
>
0
)
{
const
strUnidList
=
targetDataList
.
map
((
item
)
=>
item
.
unid
).
join
(
','
)
const
strUnidList
=
targetDataList
.
map
((
item
)
=>
item
.
unid
).
join
(
','
)
const
params
=
{
const
params
=
{
unid
:
strUnidList
,
unid
:
strUnidList
,
personUnid
:
personUnid
.
value
,
personUnid
:
personUnid
.
value
,
countdate
:
formData
.
value
.
date
,
}
}
addGroupLoading
.
value
=
true
addGroupLoading
.
value
=
true
...
...
src/views/SnapshotCluster/ClusterResult/PersonGroupEditor.vue
View file @
10cbbf7
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</a-select>
</a-select>
</a-form-item>
</a-form-item>
<a-form-item
label=
"类型"
>
<a-form-item
label=
"类型"
>
<a-select
v-model:value=
"formData.type"
:options=
"
formData.
personTypeList"
optionFilterProp=
"label"
:allowClear=
"true"
></a-select>
<a-select
v-model:value=
"formData.type"
:options=
"personTypeList"
optionFilterProp=
"label"
:allowClear=
"true"
></a-select>
</a-form-item>
</a-form-item>
</a-form>
</a-form>
...
@@ -58,16 +58,15 @@ export default {
...
@@ -58,16 +58,15 @@ export default {
gender
:
0
,
gender
:
0
,
type
:
0
,
type
:
0
,
countdate
:
''
,
countdate
:
''
,
personTypeList
:[]
}
}
}
}
const
formData
=
ref
(
getInitialFormData
())
const
formData
=
ref
(
getInitialFormData
())
const
personTypeList
=
ref
([])
const
initDialog
=
(
data
)
=>
{
const
initDialog
=
(
data
)
=>
{
console
.
log
(
'initDialog'
,
data
)
console
.
log
(
'initDialog'
,
data
)
formData
.
value
=
getInitialFormData
()
formData
.
value
=
getInitialFormData
()
formData
.
value
.
personUnid
=
data
.
person_unids
formData
.
value
.
personUnid
=
data
.
person_unids
formData
.
value
.
personTypeList
=
data
.
personTypeList
personTypeList
.
value
=
data
.
personTypeList
if
(
data
.
perrsonList
.
length
>
0
)
{
if
(
data
.
perrsonList
.
length
>
0
)
{
formData
.
value
.
age
=
data
.
perrsonList
[
0
].
age
formData
.
value
.
age
=
data
.
perrsonList
[
0
].
age
formData
.
value
.
gender
=
data
.
perrsonList
[
0
].
gender
formData
.
value
.
gender
=
data
.
perrsonList
[
0
].
gender
...
@@ -115,6 +114,7 @@ export default {
...
@@ -115,6 +114,7 @@ export default {
onSave
,
onSave
,
onCancel
,
onCancel
,
initDialog
,
initDialog
,
personTypeList
,
};
};
},
},
};
};
...
...
Write
Preview
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