Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RuoYi-Vue-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
AI算法平台
RuoYi-Vue-ui
Commits
2f89847c
Commit
2f89847c
authored
May 16, 2023
by
胡占生
🇨🇳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 算法场景 表单内容字段调整,
parent
08ff6f53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
src/views/algorithm/scene/index.vue
src/views/algorithm/scene/index.vue
+12
-13
No files found.
src/views/algorithm/scene/index.vue
View file @
2f89847c
...
...
@@ -113,7 +113,7 @@
/>
<!-- 添加或修改算法场景对话框 -->
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"
8
00px"
append-to-body
>
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"
9
00px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"150px"
>
<el-form-item
label=
"场景名称"
prop=
"sceneName"
>
<el-input
v-model=
"form.sceneName"
placeholder=
"请输入场景名称"
/>
...
...
@@ -144,7 +144,6 @@
<el-form-item
label=
"摄像头配置"
prop=
"cameraIdList"
>
<el-select
multiple
v-model=
"form.cameraIdList"
placeholder=
"请选择摄像头"
>
<el-option
v-for=
"item in cameraOptions"
:key=
"item.id"
:label=
"item.cameraName"
...
...
@@ -154,10 +153,10 @@
</el-form-item>
<el-form-item
label=
"算法块"
prop=
"pieceDtos"
>
<el-table
v-loading=
"loading"
:data=
"form.pieceDtos"
>
<el-table-column
label=
"算法块名称"
align=
"center"
prop=
"
sceneName
"
>
<el-table-column
label=
"算法块名称"
align=
"center"
prop=
"
id
"
>
<
template
slot-scope=
"scope"
>
<div>
<el-select
:disabled=
"!scope.row.isEdit"
@
change=
"pieceChange(scope.row)"
v-model=
"scope.row.
sceneName
"
placeholder=
"请选择"
>
<el-select
:disabled=
"!scope.row.isEdit"
@
change=
"pieceChange(scope.row)"
v-model=
"scope.row.
id
"
placeholder=
"请选择"
>
<el-option
v-for=
"item in pieceOptions"
:key=
"item.id"
...
...
@@ -168,10 +167,10 @@
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"算法块配置"
align=
"center"
prop=
"
algConfig
"
>
<el-table-column
label=
"算法块配置"
align=
"center"
prop=
"
variables
"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"!scope.row.isEdit"
>
<span
v-for=
"item in scope.row.
algConfig
"
>
{{
item
.
variableName
+
'
:
'
+
item
.
variableValue
}}
</span>
<span
v-for=
"item in scope.row.
variables
"
>
{{
item
.
variableName
+
'
:
'
+
item
.
variableValue
}}
</span>
</div>
<div
v-else
>
<el-popover
...
...
@@ -179,7 +178,7 @@
width=
"300"
v-model=
"visible"
>
<div>
<el-table
:show-header=
"false"
:data=
"scope.row.
algConfig
"
>
<el-table
:show-header=
"false"
:data=
"scope.row.
variables
"
>
<el-table-column
label=
"算法块名称"
align=
"center"
prop=
"variableKey"
witdh=
"200"
>
<template
slot-scope=
"scopes"
>
<div
style=
"display: flex;"
>
...
...
@@ -198,11 +197,11 @@
</div>
</template>
</el-table-column>
<el-table-column
label=
"排序"
align=
"center"
prop=
"sort"
>
<el-table-column
label=
"排序"
align=
"center"
prop=
"sort"
width=
"220"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"!scope.row.isEdit"
>
{{
scope
.
row
.
sort
}}
</div>
<div
v-else
>
<el-input
v-model=
"scope.row.sort"
></el-input
>
<el-input
-number
v-model=
"scope.row.sort"
:min=
"0"
:max=
"100"
></el-input-number
>
</div>
</
template
>
</el-table-column>
...
...
@@ -374,8 +373,8 @@
},
algAdd
(){
this
.
form
.
pieceDtos
.
push
({
sceneName
:
''
,
algConfig
:[
id
:
''
,
variables
:[
{
algorithmPieceBaseId
:
1
,
variableKey
:
"
frame
"
,
...
...
@@ -407,9 +406,9 @@
})
},
pieceChange
(
e
){
variableList
(
e
.
sceneName
).
then
(
res
=>
{
variableList
(
e
.
id
).
then
(
res
=>
{
console
.
log
(
'
%c [ res ]-411
'
,
'
font-size:13px; background:pink; color:#bf2c9f;
'
,
res
)
e
.
algConfig
=
res
.
data
e
.
variables
=
res
.
data
// this.typeOptions=res.data
})
},
...
...
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