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
65a98394
Commit
65a98394
authored
Mar 27, 2024
by
yf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:新增字段类型
parent
8de9b187
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
src/views/algorithm/camera/index.vue
src/views/algorithm/camera/index.vue
+12
-3
No files found.
src/views/algorithm/camera/index.vue
View file @
65a98394
...
@@ -103,8 +103,8 @@
...
@@ -103,8 +103,8 @@
/>
/>
<!-- 添加或修改算法摄像头对话框 -->
<!-- 添加或修改算法摄像头对话框 -->
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"
5
00px"
append-to-body
>
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"
7
00px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"
8
0px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"
12
0px"
>
<el-form-item
label=
"摄像头名"
prop=
"cameraName"
>
<el-form-item
label=
"摄像头名"
prop=
"cameraName"
>
<el-input
v-model=
"form.cameraName"
placeholder=
"请输入摄像头名"
/>
<el-input
v-model=
"form.cameraName"
placeholder=
"请输入摄像头名"
/>
</el-form-item>
</el-form-item>
...
@@ -243,7 +243,8 @@
...
@@ -243,7 +243,8 @@
createTime
:
null
,
createTime
:
null
,
updateBy
:
null
,
updateBy
:
null
,
updateTime
:
null
,
updateTime
:
null
,
remark
:
null
remark
:
null
,
algorithmType
:
null
};
};
this
.
resetForm
(
"
form
"
);
this
.
resetForm
(
"
form
"
);
},
},
...
@@ -276,6 +277,10 @@
...
@@ -276,6 +277,10 @@
const
id
=
row
.
id
||
this
.
ids
const
id
=
row
.
id
||
this
.
ids
getBase
(
id
).
then
(
response
=>
{
getBase
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
if
(
this
.
form
.
algorithmType
){
const
algorithmType
=
this
.
form
.
algorithmType
;
this
.
form
.
algorithmType
=
algorithmType
.
split
(
'
,
'
);
}
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"
修改算法摄像头
"
;
this
.
title
=
"
修改算法摄像头
"
;
});
});
...
@@ -284,6 +289,10 @@
...
@@ -284,6 +289,10 @@
submitForm
()
{
submitForm
()
{
this
.
$refs
[
"
form
"
].
validate
(
valid
=>
{
this
.
$refs
[
"
form
"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
form
.
algorithmType
){
const
algorithmType
=
this
.
form
.
algorithmType
;
this
.
form
.
algorithmType
=
algorithmType
.
join
(
'
,
'
);
}
if
(
this
.
form
.
id
!=
null
)
{
if
(
this
.
form
.
id
!=
null
)
{
updateBase
(
this
.
form
).
then
(
response
=>
{
updateBase
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
...
...
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