Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
Details
Activity
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
hooloo
web
soss
Commits
36f44db5
Commit
36f44db5
authored
Aug 22, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改机型弹框bug
parent
efa01e1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
src/views/machine/model/modelCom.vue
+17
-7
No files found.
src/views/machine/model/modelCom.vue
View file @
36f44db5
...
...
@@ -56,8 +56,7 @@
</el-tab-pane>
</el-tabs>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"comDiaLogCancel"
>
确定
</el-button>
<el-button
@
click=
"comDiaLogCancel"
>
退出
</el-button>
<el-button
type=
"primary"
@
click=
"comDiaLogCancel"
>
退出
</el-button>
</div>
</el-dialog>
<el-dialog
title=
"编辑组件属性"
:visible
.
sync=
"editDiaLog"
width=
"900px"
append-to-body
>
...
...
@@ -141,7 +140,7 @@ export default {
componentList
:[],
componentName
:
''
,
com_ros_code
:
''
,
comShow
:
true
comShow
:
true
,
};
},
created
()
{
...
...
@@ -183,12 +182,22 @@ export default {
this
.
editDiaLog
=
true
;
this
.
getComponentPropertyList
(
row
.
model_id
,
row
.
ros_code
);
},
//关闭机型设置
comDiaLogCancel
(){
this
.
comDiaLog
=
false
let
hang
=
0
;
for
(
let
i
=
0
;
i
<
this
.
modelComponentList
.
length
;
i
++
){
if
(
this
.
modelComponentList
[
i
].
isShow
){
hang
=
i
+
1
;
this
.
$message
.
error
(
'第'
+
hang
+
'行,数据未点击确定!'
);
return
;
}
}
this
.
comDiaLog
=
false
;
},
//关闭组件属性
editDiaLogCancel
(){
this
.
editDiaLog
=
false
this
.
editDiaLog
=
false
},
//编辑组件属性
editDiaLogSubmit
(){
...
...
@@ -269,7 +278,7 @@ export default {
return
;
}
}
row
.
isShow
=
false
;
let
obj
=
{
"model_id"
:
this
.
modelId
,
"component_name"
:
row
.
component_name
,
...
...
@@ -281,9 +290,10 @@ export default {
addComponent
([
obj
]).
then
((
response
)
=>
{
if
(
response
.
code
==
0
){
this
.
$modal
.
msgSuccess
(
"添加组件成功!"
);
this
.
getModelComponentList
();
row
.
isShow
=
false
;
}
else
if
(
response
.
code
==
21001
){
this
.
$message
.
error
(
'该机型已有机器绑定,请重新填写!'
);
row
.
isShow
=
true
;
}
})
},
...
...
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