Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
海康威视
web-project
Commits
c53024e1
Commit
c53024e1
authored
Jan 13, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增了日志添加
parent
9f07cea9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
VoiceCommandLocation.js
src/api/AIStation/VoiceCommandLocation.js
+5
-0
VoiceCommandLocationPage.vue
src/views/AIStation/VoiceCommandLocationPage.vue
+31
-1
No files found.
src/api/AIStation/VoiceCommandLocation.js
View file @
c53024e1
import
httpTwo
from
'../httpTwo'
import
http
from
'../http'
import
axios
from
"axios"
;
...
...
@@ -21,3 +22,7 @@ export const updateVoiceCommandsLocation = (item) => {
export
const
getVoiceCommandsLocationDetail
=
(
id
)
=>
{
return
httpTwo
.
get
(
`/busVoiceCommandsLocation/detail/
${
id
}
`
)
}
export
const
insertVoiceCommandLocationRecord
=
(
query
)
=>
{
return
http
.
post
(
'/api/record/insertVoiceCommandLocationRecord'
,
query
)
}
src/views/AIStation/VoiceCommandLocationPage.vue
View file @
c53024e1
...
...
@@ -6,11 +6,13 @@ import {
deleteVoiceCommandsLocation
,
addVoiceCommandsLocation
,
updateVoiceCommandsLocation
,
getVoiceCommandsLocationDetail
getVoiceCommandsLocationDetail
,
insertVoiceCommandLocationRecord
}
from
"../../api/AIStation/VoiceCommandLocation"
;
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
;
import
{
handleGetAIToken
}
from
"./AItoken"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
formatTime
}
from
'../../utils/utils'
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
{
ElForm
,
ElFormItem
,
ElInput
}
from
'element-plus'
;
...
...
@@ -187,6 +189,16 @@ const handleFormData = async () => {
type
:
'success'
});
dialogFormVisible
.
value
=
false
const
userInfo
=
store
.
getters
.
getUserInfo
();
const
params
=
{
title
:
'语音指令部署位置'
,
userId
:
userInfo
.
userId
,
operateTime
:
formatTime
(
new
Date
()),
msg
:
'用户'
+
'【'
+
userInfo
.
realName
+
'】'
+
'在【语音指令部署位置页面】进行了【新增】操作,数据为【编号:'
+
item
.
code
+
',换热站id:'
+
item
.
stationId
+
',换热站名称:'
+
item
.
stationName
+
',ip地址:'
+
item
.
ipAddress
+
',mac地址:'
+
item
.
macAddress
+
'】'
}
insertVoiceCommandLocationRecord
(
params
).
then
(
res
=>
{})
}
}).
catch
((
err
)
=>
{
console
.
log
(
'err:'
,
err
)
...
...
@@ -279,6 +291,16 @@ const handleFormData = async () => {
type
:
'success'
});
dialogFormVisible
.
value
=
false
const
userInfo
=
store
.
getters
.
getUserInfo
();
const
params
=
{
title
:
'语音指令部署位置'
,
userId
:
userInfo
.
userId
,
operateTime
:
formatTime
(
new
Date
()),
msg
:
'用户'
+
'【'
+
userInfo
.
realName
+
'】'
+
'在【语音指令部署位置页面】进行了【修改】操作,修改后的数据为【'
+
'id:'
+
item
.
businessId
+
',编号:'
+
item
.
code
+
',换热站id:'
+
item
.
stationId
+
',换热站名称:'
+
item
.
stationName
+
',ip地址:'
+
item
.
ipAddress
+
',mac地址:'
+
item
.
macAddress
+
'】'
}
insertVoiceCommandLocationRecord
(
params
).
then
(
res
=>
{})
}
}).
catch
((
err
)
=>
{
console
.
log
(
'err:'
,
err
)
...
...
@@ -363,6 +385,14 @@ function deleteButton(row) {
ElMessage
.
success
({
message
:
'删除成功!'
});
const
userInfo
=
store
.
getters
.
getUserInfo
();
const
params
=
{
title
:
'语音指令部署位置'
,
userId
:
userInfo
.
userId
,
operateTime
:
formatTime
(
new
Date
()),
msg
:
'用户'
+
'【'
+
userInfo
.
realName
+
'】'
+
'在【语音指令部署位置模块】进行了【删除】操作,删除的数据id【'
+
row
.
businessId
+
'】'
}
insertVoiceCommandLocationRecord
(
params
).
then
(
res
=>
{})
loadData
()
}
else
{
ElMessage
.
error
({
...
...
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