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 d39ead22
authored
Sep 04, 2024
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/mall_master' into mall_master
2 parents
9dacf737
fb4b79bb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
1 deletions
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
src/views/SnapshotCluster/ClusterResult/ClusterResultApi.js
src/views/SnapshotCluster/ClusterResult/ClusterResult.vue
View file @
d39ead2
...
...
@@ -149,6 +149,14 @@
</a-popconfirm>
-->
<el-button
type=
"text"
:disabled=
"!isMultipleOperation"
@
click=
"deletePersonRecord(person)"
>
剔除
</el-button>
<a-popconfirm
title=
"是否添加至店员库"
ok-text=
"是"
cancel-text=
"否"
@
confirm=
"addShopkeeper(person)"
>
<el-button
type=
"text"
:disabled=
"!isMultipleOperation"
>
添加店员库
</el-button>
</a-popconfirm>
<a-popconfirm
title=
"将彻底删除,您确认吗?"
ok-text=
"是"
cancel-text=
"否"
...
...
@@ -813,6 +821,43 @@ export default {
}
)
}
// 添加店员库
const
addShopkeeper
=
()
=>
{
console
.
log
(
'addShopkeeper'
,
selectedPersonList
)
if
(
selectedPersonList
.
value
.
length
<
1
)
{
ElMessage
({
message
:
`至少选择一条数据`
,
type
:
'error'
})
return
}
const
strIdList
=
selectedPersonList
.
value
.
map
(
item
=>
item
.
unid
)
const
rawData
=
toRaw
(
queryForm
)
const
params
=
{
unids
:
strIdList
,
mallId
:
selectedPersonList
.
value
[
0
].
mall_id
,
countdate
:
formatDate
(
rawData
.
date
)
+
' 00:00:00'
,
}
clusterResultApi
.
addDataToShopkeeper
(
params
).
then
(
(
r
)
=>
{
if
(
r
.
msg_code
==
200
){
ElMessage
({
message
:
`添加成功`
,
type
:
'success'
})
selectedPersonList
.
value
=
[]
// 刷新列表
handleRefresh
()
}
else
{
ElMessage
({
message
:
`添加失败`
,
type
:
'error'
})
}
}
)
}
// 移动人员
const
personGroupMoverRef
=
ref
();
const
movePersonRecord
=
()
=>
{
...
...
@@ -1095,7 +1140,7 @@ export default {
handleMutipleOperation
,
mutipleOperationText
,
deleteRealPersonRecord
,
addShopkeeper
,
childAdultOptions
,
formatChildAdult
}
...
...
src/views/SnapshotCluster/ClusterResult/ClusterResultApi.js
View file @
d39ead2
...
...
@@ -123,6 +123,16 @@ class ClusterResultApi {
}
)
}
// 添加店员库
addDataToShopkeeper
(
data
)
{
return
axiosInstance
.
request
(
{
method
:
'POST'
,
url
:
`/faceRecognitions/addStaff`
,
data
:
data
}
)
}
// 剔除或移动
updateRecognition
(
data
)
{
return
axiosInstance
.
request
(
...
...
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