Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ai-yunshou-vue
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云守
ai-yunshou-vue
Commits
31dd16d6
Commit
31dd16d6
authored
Sep 18, 2024
by
胡占生
🇨🇳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 左侧菜单页 背景修复,
算法管理 增加版本切换,算法详情修复算法边界展示问题,点位管理切换字段
parent
9041e125
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
15 deletions
+37
-15
src/layout/components/Sidebar/SidebarItem.vue
src/layout/components/Sidebar/SidebarItem.vue
+5
-0
src/views/algorithmControl/components/algorithmFile.vue
src/views/algorithmControl/components/algorithmFile.vue
+10
-1
src/views/algorithmList/components/details.vue
src/views/algorithmList/components/details.vue
+4
-2
src/views/algorithmList/components/form.vue
src/views/algorithmList/components/form.vue
+2
-2
src/views/videoControl/pointControl/components/drawPoint.vue
src/views/videoControl/pointControl/components/drawPoint.vue
+5
-5
src/views/videoControl/pointControl/index.vue
src/views/videoControl/pointControl/index.vue
+11
-5
No files found.
src/layout/components/Sidebar/SidebarItem.vue
View file @
31dd16d6
...
...
@@ -100,3 +100,8 @@ function hasTitle(title){
}
}
</
script
>
<
style
lang=
"scss"
>
.el-popper.is-light
{
background
:
#29d
;
}
</
style
>
\ No newline at end of file
src/views/algorithmControl/components/algorithmFile.vue
View file @
31dd16d6
...
...
@@ -38,6 +38,7 @@
<!--
<el-button
link
type=
"primary"
icon=
"Edit"
@
click=
"handleUpdate(scope.row)"
>
版本内容
</el-button>
-->
<el-button
link
type=
"primary"
icon=
"Delete"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
<el-button
link
type=
"primary"
icon=
"Sort"
@
click=
"useNewFile(scope.row.id)"
>
版本切换
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -87,7 +88,7 @@
</template>
<
script
setup
>
import
{
addFile
,
deleteFile
,
updateFile
,
listFile
}
from
"
@/api/algorithmList/algorithmFile.js
"
;
import
{
addFile
,
deleteFile
,
updateFile
,
listFile
,
useCurrentFil
}
from
"
@/api/algorithmList/algorithmFile.js
"
;
import
FileAlgUpload
from
'
@/components/FileAlgUpload
'
const
{
proxy
}
=
getCurrentInstance
();
const
emit
=
defineEmits
();
...
...
@@ -168,6 +169,14 @@ function handleDelete(row) {
}).
catch
(()
=>
{
});
}
/** 算法切换*/
function
useNewFile
(
id
)
{
useCurrentFil
(
id
).
then
(
response
=>
{
proxy
.
$modal
.
msgSuccess
(
"
变更成功
"
);
getList
()
});
}
/** 提交按钮 */
function
submitForm
()
{
proxy
.
$refs
[
"
algRef
"
].
validate
(
valid
=>
{
...
...
src/views/algorithmList/components/details.vue
View file @
31dd16d6
...
...
@@ -141,7 +141,7 @@
</div>
<el-divider
/>
<div
class=
"img-box gird-layout"
>
<div
class=
"img-item"
v-for=
"item in
invalid
ImgList"
:key=
"item.id"
>
<div
class=
"img-item"
v-for=
"item in
effective
ImgList"
:key=
"item.id"
>
<ImagePreview
style=
"height: 100%;"
:src=
"item.caseFile"
/>
</div>
</div>
...
...
@@ -235,9 +235,11 @@ function getDetials(){
})
listBoundary
({
algorithmId
:
roleId
}).
then
(
res
=>
{
effectiveList
.
value
=
res
.
rows
.
filter
(
item
=>
item
.
caseType
===
'
0
'
)
effectiveImgList
.
value
=
res
.
rows
.
filter
(
item
=>
item
.
caseType
===
'
0
'
&&
item
.
caseFile
)
console
.
log
(
"
🚀 ~ listBoundary ~ effectiveImgList.value:
"
,
effectiveImgList
.
value
)
invalidList
.
value
=
res
.
rows
.
filter
(
item
=>
item
.
caseType
===
'
1
'
)
invalidImgList
.
value
=
res
.
rows
.
filter
(
item
=>
item
.
caseType
===
'
1
'
&&
item
.
caseFile
)
effectiveImgList
.
value
=
res
.
rows
.
filter
(
item
=>
item
.
caseType
===
'
0
'
&&
item
.
caseFil
e
)
console
.
log
(
"
🚀 ~ listBoundary ~ invalidImgList.value:
"
,
invalidImgList
.
valu
e
)
})
}
/** 查询案例文件列表 */
...
...
src/views/algorithmList/components/form.vue
View file @
31dd16d6
...
...
@@ -59,7 +59,7 @@
<
template
#default
="
scope
"
>
<!--
<el-button
link
type=
"primary"
icon=
"Edit"
@
click=
"handleUpdate(scope.row)"
>
版本内容
</el-button>
-->
<el-button
link
type=
"primary"
icon=
"
Delete
"
@
click=
"useNewFile(scope.row.id)"
>
版本切换
</el-button>
<el-button
link
type=
"primary"
icon=
"
Sort
"
@
click=
"useNewFile(scope.row.id)"
>
版本切换
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -140,7 +140,7 @@ function getList(id) {
wrapList
.
value
=
response
.
rows
;
});
}
/**
获取文件列表
*/
/**
算法切换
*/
function
useNewFile
(
id
)
{
useCurrentFil
(
id
).
then
(
response
=>
{
proxy
.
$modal
.
msgSuccess
(
"
变更成功
"
);
...
...
src/views/videoControl/pointControl/components/drawPoint.vue
View file @
31dd16d6
...
...
@@ -32,7 +32,7 @@
:model=
"unref(algorithmManage.form)"
:rules=
"rules"
label-position=
"left"
label-width=
"1
1
0px"
label-width=
"1
2
0px"
class=
"demo-form-inline"
>
<el-form-item
...
...
@@ -95,7 +95,7 @@
><
template
#suffix
>
/秒
</
template
></el-input
>
</el-form-item>
<el-form-item
label=
"
拉流间隔时间
"
prop=
"inferenceInterval"
>
<el-form-item
label=
"
识别间隔(跳帧)
"
prop=
"inferenceInterval"
>
<el-input
v-model=
"unref(algorithmManage.form).inferenceInterval"
><
template
#suffix
>
/秒
</
template
></el-input
>
...
...
@@ -162,7 +162,7 @@
>
<el-button
@
click=
"getNewPhoto"
v-else
>
重新取图
</el-button>
<el-button
type=
"primary"
@
click=
"clearDraw"
>
重绘标记
</el-button>
<el-button
type=
"primary"
@
click=
"++drawIndex"
>
重绘
下一个
</el-button>
<el-button
type=
"primary"
@
click=
"++drawIndex"
>
绘制
下一个
</el-button>
</div>
<div
class=
"right-draw-content"
>
<
template
v-if=
"algorithmManage.form.value.liveMap"
>
...
...
@@ -258,9 +258,9 @@
v-model=
"unref(aiAlgorithm.form).continueWarnTime"
/>
</el-form-item>
<el-form-item
label=
"识别间隔(跳帧)"
prop=
"identifyIntervals"
>
<
!-- <
el-form-item label="识别间隔(跳帧)" prop="identifyIntervals">
<el-input v-model="unref(aiAlgorithm.form).identifyIntervals" />
</el-form-item>
</el-form-item>
-->
<el-form-item
label=
"标签阈值"
prop=
"labelThreshold"
>
<el-input
v-model=
"unref(aiAlgorithm.form).labelThreshold"
/>
</el-form-item>
...
...
src/views/videoControl/pointControl/index.vue
View file @
31dd16d6
...
...
@@ -154,17 +154,23 @@
<el-table-column
label=
"操作"
width=
"180"
align=
"
center
"
align=
"
left
"
class-name=
"small-padding fixed-width"
>
<
template
#default
="
scope
"
>
<el-button
<el-tooltip
content=
"修改"
placement=
"top"
v-if=
"scope.row.runningState=='1'"
>
<el-button
link
type=
"primary"
icon=
"Edit"
@
click=
"algorithmManage.toEdit(scope.row)"
></el-button>
</el-tooltip>
<el-tooltip
content=
"删除"
placement=
"top"
v-if=
"scope.row.runningState=='1'"
>
<el-button
link
type=
"primary"
icon=
"Delete"
@
click=
"algorithmManage.toDel(scope.row)"
></el-button>
</el-tooltip>
<!--
<el-button
link
type=
"primary"
icon=
"Edit"
@
click=
"algorithmManage.toEdit(scope.row)"
v-hasPermi=
"['system:post:edit']"
>
修改
</el-button
></el-button
>
<el-button
link
...
...
@@ -173,8 +179,8 @@
icon=
"Delete"
@
click=
"algorithmManage.toDel(scope.row)"
v-hasPermi=
"['system:post:remove']"
>
删除
</el-button
>
></el-button
>
-->
</
template
>
</el-table-column>
</el-table>
...
...
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