Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
Laisi_AutoMES2
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
jiawei.su
Laisi_AutoMES2
Commits
f5fa1526
Commit
f5fa1526
authored
Feb 22, 2021
by
yiyu.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一些优化
parent
ecf40129
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
6 deletions
+23
-6
feedingBlanking.vue
Html/src/view/fml/operation_manage/feedingBlanking.vue
+10
-4
lineMonitor.vue
Html/src/view/fml/statistical_analysis/lineMonitor.vue
+13
-2
No files found.
Html/src/view/fml/operation_manage/feedingBlanking.vue
View file @
f5fa1526
...
...
@@ -331,7 +331,7 @@ export default {
],
data2
:
[],
orderDetail
:
{},
orderDetail2
:
{},
orderDetail2
:
{},
detailobj
:
{},
sectionid
:
0
,
tabindex
:
"1"
,
...
...
@@ -374,22 +374,29 @@ export default {
).
then
((
res
)
=>
{
if
(
res
.
data
.
ret
==
1
)
{
this
.
stationList
=
res
.
data
.
data
;
}
else
{
this
.
$Message
.
error
(
this
.
$t
(
res
.
data
.
msg
));
this
.
stationList
=
[];
}
});
},
change
(
i
)
{
this
.
a
=
i
;
this
.
getStations
(
this
.
productionLine
[
i
].
id
);
this
.
orderDetail
=
{};
},
change2
(
index
)
{
this
.
b
=
index
;
let
status
=
this
.
stationList
[
index
].
status
;
this
.
sectionid
=
this
.
stationList
[
index
].
section
;
this
.
orderDetail
=
{};
// status = 2;
// if (status == 3) {
// this.attr1 = true;
// this.tabindex = "2";
this
.
getRunningDetail
(
index
);
this
.
getRunningDetail
(
index
);
// } else {
// this.attr2 = true;
// }
...
...
@@ -400,7 +407,7 @@ export default {
},
getIndex
(
name
)
{
this
.
tabindex
=
name
;
if
(
this
.
tabindex
==
'2'
)
{
if
(
this
.
tabindex
==
"2"
)
{
this
.
orderDetail2
=
{};
}
this
.
getStorages
();
...
...
@@ -588,7 +595,6 @@ export default {
if
(
res
.
data
.
ret
==
1
)
{
this
.
$Message
.
success
(
this
.
$t
(
res
.
data
.
msg
));
this
.
orderDetail2
=
{};
}
else
{
this
.
$Message
.
error
(
this
.
$t
(
res
.
data
.
msg
));
}
...
...
Html/src/view/fml/statistical_analysis/lineMonitor.vue
View file @
f5fa1526
...
...
@@ -339,6 +339,17 @@ export default {
this
.
initlevel
();
this
.
search
();
},
mounted
()
{
this
.
timer
=
setInterval
(()
=>
{
this
.
search
();
},
5000
);
},
beforeDestroy
()
{
if
(
this
.
timer
)
{
// 如果定时器还在运行 或者直接关闭,不用判断
clearInterval
(
this
.
timer
);
// 关闭
}
},
methods
:
{
search
()
{
// 初始化产线层级
...
...
@@ -408,8 +419,8 @@ export default {
},
exportExcel
()
{
let
data
=
{
toExcel
:
1
,
section
:
this
.
sectionid
toExcel
:
1
,
section
:
this
.
sectionid
,
};
this
.
axios
.
request
({
...
...
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