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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
src/views/machine/model/modelCom.vue
+16
-6
No files found.
src/views/machine/model/modelCom.vue
View file @
36f44db5
...
@@ -56,8 +56,7 @@
...
@@ -56,8 +56,7 @@
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"comDiaLogCancel"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"comDiaLogCancel"
>
退出
</el-button>
<el-button
@
click=
"comDiaLogCancel"
>
退出
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
<el-dialog
title=
"编辑组件属性"
:visible
.
sync=
"editDiaLog"
width=
"900px"
append-to-body
>
<el-dialog
title=
"编辑组件属性"
:visible
.
sync=
"editDiaLog"
width=
"900px"
append-to-body
>
...
@@ -141,7 +140,7 @@ export default {
...
@@ -141,7 +140,7 @@ export default {
componentList
:[],
componentList
:[],
componentName
:
''
,
componentName
:
''
,
com_ros_code
:
''
,
com_ros_code
:
''
,
comShow
:
true
comShow
:
true
,
};
};
},
},
created
()
{
created
()
{
...
@@ -183,8 +182,18 @@ export default {
...
@@ -183,8 +182,18 @@ export default {
this
.
editDiaLog
=
true
;
this
.
editDiaLog
=
true
;
this
.
getComponentPropertyList
(
row
.
model_id
,
row
.
ros_code
);
this
.
getComponentPropertyList
(
row
.
model_id
,
row
.
ros_code
);
},
},
//关闭机型设置
comDiaLogCancel
(){
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
(){
editDiaLogCancel
(){
...
@@ -269,7 +278,7 @@ export default {
...
@@ -269,7 +278,7 @@ export default {
return
;
return
;
}
}
}
}
row
.
isShow
=
false
;
let
obj
=
{
let
obj
=
{
"model_id"
:
this
.
modelId
,
"model_id"
:
this
.
modelId
,
"component_name"
:
row
.
component_name
,
"component_name"
:
row
.
component_name
,
...
@@ -281,9 +290,10 @@ export default {
...
@@ -281,9 +290,10 @@ export default {
addComponent
([
obj
]).
then
((
response
)
=>
{
addComponent
([
obj
]).
then
((
response
)
=>
{
if
(
response
.
code
==
0
){
if
(
response
.
code
==
0
){
this
.
$modal
.
msgSuccess
(
"添加组件成功!"
);
this
.
$modal
.
msgSuccess
(
"添加组件成功!"
);
this
.
getModelComponentList
();
row
.
isShow
=
false
;
}
else
if
(
response
.
code
==
21001
){
}
else
if
(
response
.
code
==
21001
){
this
.
$message
.
error
(
'该机型已有机器绑定,请重新填写!'
);
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