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
f9c02489
Commit
f9c02489
authored
Sep 13, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了语音指令以及语音指令部署位置bug
parent
3fa2b0a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
19 deletions
+39
-19
VoiceCommandLocationPage.vue
src/views/AIStation/VoiceCommandLocationPage.vue
+38
-18
VoiceCommandPage.vue
src/views/AIStation/VoiceCommandPage.vue
+1
-1
No files found.
src/views/AIStation/VoiceCommandLocationPage.vue
View file @
f9c02489
...
@@ -4,8 +4,7 @@ import zhCn from "element-plus/dist/locale/zh-cn.mjs"
...
@@ -4,8 +4,7 @@ import zhCn from "element-plus/dist/locale/zh-cn.mjs"
import
axios
from
"axios"
;
import
axios
from
"axios"
;
import
store
from
"../../store"
;
import
store
from
"../../store"
;
import
{
getVoiceCommandsLocationData
,
deleteVoiceCommandsLocation
,
addVoiceCommandsLocation
,
updateVoiceCommandsLocation
,
getVoiceCommandsLocationDetail
}
from
"../../api/AIStation/VoiceCommandLocation"
;
import
{
getVoiceCommandsLocationData
,
deleteVoiceCommandsLocation
,
addVoiceCommandsLocation
,
updateVoiceCommandsLocation
,
getVoiceCommandsLocationDetail
}
from
"../../api/AIStation/VoiceCommandLocation"
;
import
{
ElMessage
}
from
'element-plus'
;
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
;
// 查询条件
// 查询条件
const
queryParams
=
ref
({
const
queryParams
=
ref
({
stationId
:
''
,
//换热站id
stationId
:
''
,
//换热站id
...
@@ -52,7 +51,7 @@ const Page = reactive({total: 0, rows: 20, page: 1});
...
@@ -52,7 +51,7 @@ const Page = reactive({total: 0, rows: 20, page: 1});
// 详情弹窗
// 详情弹窗
const
detailOpen
=
ref
(
false
)
const
detailOpen
=
ref
(
false
)
//新增 修改弹窗
//新增 修改弹窗
cons
t
dialogFormVisible
=
ref
(
false
)
le
t
dialogFormVisible
=
ref
(
false
)
//新增或修改表单的title
//新增或修改表单的title
const
formTitle
=
ref
(
''
)
const
formTitle
=
ref
(
''
)
...
@@ -67,7 +66,9 @@ function loadData(){
...
@@ -67,7 +66,9 @@ function loadData(){
ipAddress
:
queryParams
.
value
.
ipAddress
,
ipAddress
:
queryParams
.
value
.
ipAddress
,
macAddress
:
queryParams
.
value
.
macAddress
,
macAddress
:
queryParams
.
value
.
macAddress
,
}
}
console
.
log
(
'item:'
,
item
)
if
(
item
.
stationId
===
undefined
){
item
.
stationId
=
''
}
//查询数据
//查询数据
getVoiceCommandsLocationData
(
item
).
then
(
res
=>
{
getVoiceCommandsLocationData
(
item
).
then
(
res
=>
{
voiceCommandLocationData
.
value
=
res
.
rows
voiceCommandLocationData
.
value
=
res
.
rows
...
@@ -120,7 +121,11 @@ const handleFormData = async () => {
...
@@ -120,7 +121,11 @@ const handleFormData = async () => {
message
:
'当前mac和ip地址已重复,请重新输入'
,
message
:
'当前mac和ip地址已重复,请重新输入'
,
type
:
'warning'
type
:
'warning'
});
});
}
else
{
}
else
if
(
res
.
code
===
200
){
ElMessage
({
message
:
'修改成功'
,
type
:
'success'
});
dialogFormVisible
.
value
=
false
dialogFormVisible
.
value
=
false
}
}
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
...
@@ -196,14 +201,29 @@ function handleUpdateButton(row) {
...
@@ -196,14 +201,29 @@ function handleUpdateButton(row) {
//删除按钮
//删除按钮
function
deleteButton
(
row
)
{
function
deleteButton
(
row
)
{
console
.
log
(
'row.businessId:'
,
row
.
businessId
)
console
.
log
(
'row.businessId:'
,
row
.
businessId
)
deleteVoiceCommandsLocation
(
row
.
businessId
).
then
(
res
=>
{
ElMessageBox
.
confirm
(
'此操作将永久删除该文件, 是否继续?'
,
'提示'
,
{
loadData
()
confirmButtonText
:
'确定'
,
console
.
log
(
'删除:'
)
cancelButtonText
:
'取消'
,
}).
catch
((
err
)
=>
{
type
:
'warning'
console
.
log
(
err
)
}).
then
(()
=>
{
}).
finally
(()
=>
{
deleteVoiceCommandsLocation
(
row
.
businessId
).
then
(
res
=>
{
loadData
()
if
(
res
.
code
===
200
){
})
ElMessage
.
success
({
message
:
'删除成功!'
});
loadData
()
}
else
{
ElMessage
.
error
({
message
:
'删除失败!'
});
loadData
()
}
})
}).
catch
(()
=>
{
ElMessage
.
info
({
message
:
'已取消删除'
});
});
}
}
// //获取换热机组列表
// //获取换热机组列表
// function getSupplys(){
// function getSupplys(){
...
@@ -301,7 +321,7 @@ getSupplys()
...
@@ -301,7 +321,7 @@ getSupplys()
<el-form-item
label=
"换热站:"
>
<el-form-item
label=
"换热站:"
>
<!--
<el-cascader
:options=
"options"
v-model=
"queryParams.stationId"
:props=
"props"
collapse-tags
clearable
:show-all-levels=
"false"
--
>
<!--
<el-cascader
:options=
"options"
v-model=
"queryParams.stationId"
:props=
"props"
collapse-tags
clearable
:show-all-levels=
"false"
--
>
<!-- placeholder="请选择" style="min-width: 210px;" />-->
<!-- placeholder="请选择" style="min-width: 210px;" />-->
<el-select
v-model=
"queryParams.stationId"
placeholder=
"请选择"
style=
"min-width: 210px"
filterable
clearable
>
<el-select
v-model=
"queryParams.stationId"
placeholder=
"请选择"
style=
"min-width: 210px"
filterable
clearable
>
<el-option
<el-option
v-for=
"item in options"
v-for=
"item in options"
:key=
"item.value"
:key=
"item.value"
...
@@ -407,17 +427,17 @@ getSupplys()
...
@@ -407,17 +427,17 @@ getSupplys()
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"编号:"
>
<el-form-item
label=
"编号:"
>
<el-input
v-model=
"addOrUpdateForm.code"
placeholder=
"请选择编号"
></el-input>
<el-input
v-model=
"addOrUpdateForm.code"
placeholder=
"请选择编号"
:maxlength=
"100"
show-word-limit
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"MAC地址:"
>
<el-form-item
label=
"MAC地址:"
>
<el-input
v-model=
"addOrUpdateForm.macAddress"
placeholder=
"请输入MAC地址"
></el-input>
<el-input
v-model=
"addOrUpdateForm.macAddress"
placeholder=
"请输入MAC地址"
:maxlength=
"50"
show-word-limit
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"IP地址:"
>
<el-form-item
label=
"IP地址:"
>
<el-input
v-model=
"addOrUpdateForm.ipAddress"
placeholder=
"请输入IP地址"
></el-input>
<el-input
v-model=
"addOrUpdateForm.ipAddress"
placeholder=
"请输入IP地址"
:maxlength=
"50"
show-word-limit
></el-input>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"addDialog-footer"
>
<div
slot=
"footer"
class=
"addDialog-footer"
>
<el-button
@
click=
"dialogFormVisible
.value
= false"
>
取 消
</el-button>
<el-button
@
click=
"dialogFormVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"handleFormData()"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"handleFormData()"
>
确 定
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
...
...
src/views/AIStation/VoiceCommandPage.vue
View file @
f9c02489
...
@@ -294,7 +294,7 @@ function handleDetail(row) {
...
@@ -294,7 +294,7 @@ function handleDetail(row) {
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"指令结果:"
prop=
"result"
>
<el-form-item
label=
"指令结果:"
prop=
"result"
>
<span>
{{ singleDetails.result
||
'-' }}
</span>
<span>
{{ singleDetails.result
=== '0' ? '无' : singleDetails.result === '1' ? '成功' : singleDetails.result === '2' ? '失败' :
'-' }}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
...
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