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 6578b62b
authored
Jul 23, 2025
by
陈岩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 调整抓拍聚类年龄选项
1 parent
a32b352b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
66 additions
and
29 deletions
src/views/DataRepair/DataRepairApi.js
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
src/views/SnapshotCluster/ClusterResult/components/AddEditSnapshotClusterDialog.vue
src/views/SnapshotCluster/SnapshotRecord/SnapshotRecord.vue
src/views/SnapshotCluster/SnapshotRecord/SnapshotRecordApi.js
src/views/SystemLog/index.vue
src/views/DataRepair/DataRepairApi.js
View file @
6578b62
...
@@ -47,11 +47,12 @@ class DataRepairApi {
...
@@ -47,11 +47,12 @@ class DataRepairApi {
{
{
method
:
'POST'
,
method
:
'POST'
,
url
:
`/simulation/reid`
,
url
:
`/simulation/reid`
,
timeout
:
5
*
60
*
1000
,
data
data
}
}
)
)
}
}
}
}
const
dataRepairApi
=
new
DataRepairApi
()
const
dataRepairApi
=
new
DataRepairApi
()
...
...
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
View file @
6578b62
...
@@ -117,11 +117,11 @@
...
@@ -117,11 +117,11 @@
mode=
"multiple"
mode=
"multiple"
:maxTagCount=
"1"
:maxTagCount=
"1"
style=
"width: 240px"
>
style=
"width: 240px"
>
<a-select-option
<a-select-option
v-for=
"item in childAdultAgeOptions"
v-for=
"item in childAdultAgeOptions"
:key=
"item.value
"
:key=
"item.ageStr
"
:value=
"item.value
"
:value=
"item.ageStr
"
>
{{
item
.
label
}}
</a-select-option>
>
{{
item
.
nameCn
}}
</a-select-option>
</a-select>
</a-select>
</a-form-item>
</a-form-item>
<a-form-item
label=
"性别:"
style=
"padding: 5px 0"
>
<a-form-item
label=
"性别:"
style=
"padding: 5px 0"
>
...
@@ -214,7 +214,7 @@
...
@@ -214,7 +214,7 @@
>
>
<el-button
type=
"text"
:disabled=
"!isMultipleOperation"
>
删除
</el-button>
<el-button
type=
"text"
:disabled=
"!isMultipleOperation"
>
删除
</el-button>
</a-popconfirm>
</a-popconfirm>
</a-form-item>
</a-form-item>
</a-form>
</a-form>
...
@@ -279,7 +279,7 @@
...
@@ -279,7 +279,7 @@
<div
class=
"direction"
:class=
"'direction'+item.direction"
>
方向:{{ formatDirection(item.direction) }}
</div>
<div
class=
"direction"
:class=
"'direction'+item.direction"
>
方向:{{ formatDirection(item.direction) }}
</div>
<div>
地点:{{ item.gate_name }}
</div>
<div>
地点:{{ item.gate_name }}
</div>
<div
style=
"width:100%;overflow:hidden;text-overflow:ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;"
>
商品类型:{{ formatProduct(item.productId)}}
</div>
<div
style=
"width:100%;overflow:hidden;text-overflow:ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;"
>
商品类型:{{ formatProduct(item.productId)}}
</div>
<div
style=
"width:100%;overflow:hidden;text-overflow:ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;"
>
机位号:{{ formatPosition(item.channelProductId)}}
</div>
<div
style=
"width:100%;overflow:hidden;text-overflow:ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;"
>
机位号:{{ formatPosition(item.channelProductId)}}
</div>
<div>
持续时间:{{ item.duration!==null
&&
item.duration!==undefined
&&
item.duration>=0?item.duration+'秒':'--' }}
</div>
<div>
持续时间:{{ item.duration!==null
&&
item.duration!==undefined
&&
item.duration>=0?item.duration+'秒':'--' }}
</div>
</div>
</div>
...
@@ -336,6 +336,7 @@ import PersonGroupDialog from "./PersonGroupDialog.vue";
...
@@ -336,6 +336,7 @@ import PersonGroupDialog from "./PersonGroupDialog.vue";
import
PersonGroupMover
from
"./PersonGroupMover.vue"
;
import
PersonGroupMover
from
"./PersonGroupMover.vue"
;
import
AddPersonnelPool
from
"./AddPersonnelPool.vue"
;
import
AddPersonnelPool
from
"./AddPersonnelPool.vue"
;
import
AddEditSnapshotClusterDialog
from
'./components/AddEditSnapshotClusterDialog.vue'
import
AddEditSnapshotClusterDialog
from
'./components/AddEditSnapshotClusterDialog.vue'
import
snapshotRecordApi
from
"@/views/SnapshotCluster/SnapshotRecord/SnapshotRecordApi"
;
export
default
{
export
default
{
components
:{
components
:{
...
@@ -490,6 +491,7 @@ export default {
...
@@ -490,6 +491,7 @@ export default {
const
onAccountChange
=
function
()
{
const
onAccountChange
=
function
()
{
getProductList
(
1
)
getProductList
(
1
)
getPlazaList
(
1
)
getPlazaList
(
1
)
getChildAdultAgeOptions
()
}
}
const
onPlazaChange
=
function
()
{
const
onPlazaChange
=
function
()
{
...
@@ -658,8 +660,8 @@ export default {
...
@@ -658,8 +660,8 @@ export default {
}
}
})
})
}
}
const
getAccountList
=
function
()
{
const
getAccountList
=
function
()
{
queryForm
.
account_id
=
''
queryForm
.
account_id
=
''
...
@@ -685,6 +687,7 @@ export default {
...
@@ -685,6 +687,7 @@ export default {
}
}
getPlazaList
()
getPlazaList
()
getProductList
()
getProductList
()
getChildAdultAgeOptions
()
}
}
}
}
}
}
...
@@ -727,7 +730,7 @@ export default {
...
@@ -727,7 +730,7 @@ export default {
maxPic
:
rawData
.
maxPic
,
maxPic
:
rawData
.
maxPic
,
page
:
pageNum
.
value
-
1
,
page
:
pageNum
.
value
-
1
,
pageSize
:
pageSize
.
value
,
pageSize
:
pageSize
.
value
,
age
:
rawData
.
childAdult
?
rawData
.
childAdult
.
toString
():
''
,
age
Dis
:
rawData
.
childAdult
?
rawData
.
childAdult
.
toString
():
''
,
gender
:
rawData
.
gender
?
rawData
.
gender
.
toString
():
''
,
gender
:
rawData
.
gender
?
rawData
.
gender
.
toString
():
''
,
receptionType
:
rawData
.
receptionType
?
rawData
.
receptionType
:
0
,
receptionType
:
rawData
.
receptionType
?
rawData
.
receptionType
:
0
,
sortType
:
rawData
.
sortType
?
rawData
.
sortType
:
0
,
sortType
:
rawData
.
sortType
?
rawData
.
sortType
:
0
,
...
@@ -796,14 +799,27 @@ export default {
...
@@ -796,14 +799,27 @@ export default {
return
(
personTypeList
.
value
.
filter
(
v
=>
v
.
value
==
val
)[
0
]
||
{
label
:
'--'
}).
label
return
(
personTypeList
.
value
.
filter
(
v
=>
v
.
value
==
val
)[
0
]
||
{
label
:
'--'
}).
label
}
}
const
childAdultAgeOptions
=
ref
([
const
childAdultAgeOptions
=
ref
([
{
value
:
0
,
label
:
'婴儿'
},
//
{ value: 0, label: '婴儿' },
{
value
:
1
,
label
:
'儿童'
},
//
{ value: 1, label: '儿童' },
{
value
:
2
,
label
:
'少年'
},
//
{ value: 2, label: '少年' },
{
value
:
3
,
label
:
'青年'
},
//
{ value: 3, label: '青年' },
{
value
:
4
,
label
:
'中年'
},
//
{ value: 4, label: '中年' },
{
value
:
5
,
label
:
'老年'
},
//
{ value: 5, label: '老年' },
{
value
:
-
1
,
label
:
'未知'
},
//
{ value: -1, label: '未知' },
])
])
const
getChildAdultAgeOptions
=
async
()
=>
{
try
{
queryForm
.
childAdult
=
[]
const
res
=
await
snapshotRecordApi
.
getAgeDistributionConfig
(
queryForm
.
account_id
)
childAdultAgeOptions
.
value
=
res
||
[]
}
catch
(
e
)
{
console
.
log
(
e
)
}
}
const
childAdultOptions
=
ref
([
const
childAdultOptions
=
ref
([
{
value
:
0
,
label
:
'儿童'
},
{
value
:
0
,
label
:
'儿童'
},
{
value
:
1
,
label
:
'成人'
},
{
value
:
1
,
label
:
'成人'
},
...
@@ -899,7 +915,7 @@ export default {
...
@@ -899,7 +915,7 @@ export default {
}
}
)
)
}
}
}
}
const
reqPersonType
=
(
val
)
=>
{
const
reqPersonType
=
(
val
)
=>
{
personTypeList
.
value
=
[]
personTypeList
.
value
=
[]
...
@@ -956,7 +972,7 @@ export default {
...
@@ -956,7 +972,7 @@ export default {
return
return
}
}
}
}
// 上传数据
// 上传数据
const
uploadGroupDataEditorRef
=
ref
();
const
uploadGroupDataEditorRef
=
ref
();
const
uploadGroupData
=
function
(
data
)
{
const
uploadGroupData
=
function
(
data
)
{
...
@@ -1072,7 +1088,7 @@ export default {
...
@@ -1072,7 +1088,7 @@ export default {
})
})
return
return
}
}
const
strIdList
=
selectedPersonList
.
value
.
map
(
item
=>
item
.
unid
)
const
strIdList
=
selectedPersonList
.
value
.
map
(
item
=>
item
.
unid
)
const
rawData
=
toRaw
(
queryForm
)
const
rawData
=
toRaw
(
queryForm
)
const
params
=
{
const
params
=
{
...
...
src/views/SnapshotCluster/ClusterResult/components/AddEditSnapshotClusterDialog.vue
View file @
6578b62
...
@@ -59,13 +59,23 @@
...
@@ -59,13 +59,23 @@
</a-col>
</a-col>
<a-col
:span=
"12"
>
<a-col
:span=
"12"
>
<a-form-item
label=
"年龄"
name=
"age"
>
<a-form-item
label=
"年龄"
name=
"age"
>
<a-select
<a-select
v-model:value=
"submitForm.age"
v-model:value=
"submitForm.age"
show-search
placeholder=
"请选择"
placeholder=
"请选择"
optionFilterProp=
"label"
style=
"width: 240px"
>
show-search
<a-select-option
:options=
"optionsMap['ageList']"
v-for=
"item in optionsMap['ageList']"
/>
:key=
"item.ageStr"
:value=
"item.minAge"
>
{{
item
.
nameCn
}}
</a-select-option>
</a-select>
<!--
<a-select-->
<!-- v-model:value="submitForm.age"-->
<!-- optionFilterProp="label"-->
<!-- -->
<!-- :options=""-->
<!-- />-->
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
:span=
"12"
>
<a-col
:span=
"12"
>
...
@@ -159,6 +169,7 @@ const handleSubmitData = async () => {
...
@@ -159,6 +169,7 @@ const handleSubmitData = async () => {
const
initDialog
=
(
form
,
selectOptionsMap
)
=>
{
const
initDialog
=
(
form
,
selectOptionsMap
)
=>
{
submitForm
.
value
=
cloneDeep
(
form
)
submitForm
.
value
=
cloneDeep
(
form
)
optionsMap
.
value
=
selectOptionsMap
optionsMap
.
value
=
selectOptionsMap
console
.
log
(
optionsMap
,
'-=s=s=s==s'
)
visible
.
value
=
true
visible
.
value
=
true
}
}
...
@@ -180,4 +191,4 @@ defineExpose({
...
@@ -180,4 +191,4 @@ defineExpose({
.ant-select
,
.ant-picker
{
.ant-select
,
.ant-picker
{
width
:
100%
;
width
:
100%
;
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
</
style
>
src/views/SnapshotCluster/SnapshotRecord/SnapshotRecord.vue
View file @
6578b62
This diff is collapsed.
Click to expand it.
src/views/SnapshotCluster/SnapshotRecord/SnapshotRecordApi.js
View file @
6578b62
...
@@ -135,6 +135,15 @@ class SnapshotRecordApi {
...
@@ -135,6 +135,15 @@ class SnapshotRecordApi {
}
}
)
)
}
}
// 获取集团配置下年龄分类
getAgeDistributionConfig
(
id
)
{
return
axiosInstance
.
request
(
{
method
:
'GET'
,
url
:
`/accounts/ageDistributionConfig?accountId=
${
id
}
`
,
}
)
}
}
}
const
snapshotRecordApi
=
new
SnapshotRecordApi
()
const
snapshotRecordApi
=
new
SnapshotRecordApi
()
...
...
src/views/SystemLog/index.vue
View file @
6578b62
This diff is collapsed.
Click to expand it.
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