Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhongtong-avi-web
Project
Project
Details
Activity
Releases
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
中通客车项目
zhongtong-avi-web
Commits
2e25f294
Commit
2e25f294
authored
Oct 18, 2019
by
车宾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(监控大屏):图标日期相关的一些判断
parent
d9e3685d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
82 additions
and
13 deletions
+82
-13
MachineFailureRate.vue
src/views/CenterControl/components/MachineFailureRate.vue
+15
-2
MachineFailureTrend.vue
src/views/CenterControl/components/MachineFailureTrend.vue
+15
-2
MachineOperatingStatus.vue
...views/CenterControl/components/MachineOperatingStatus.vue
+15
-2
MachineStateTrend.vue
src/views/CenterControl/components/MachineStateTrend.vue
+15
-2
MachineUtilizationRate.vue
...views/CenterControl/components/MachineUtilizationRate.vue
+3
-3
MachineUtilizationTrend.vue
...iews/CenterControl/components/MachineUtilizationTrend.vue
+19
-2
No files found.
src/views/CenterControl/components/MachineFailureRate.vue
View file @
2e25f294
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
placeholder=
"结束时间"
>
placeholder=
"结束时间"
>
</el-date-picker>
</el-date-picker>
<el-button
<el-button
@
click=
"doConfirmClick()"
type=
"primary"
type=
"primary"
size=
"small"
>
size=
"small"
>
确定
确定
...
@@ -31,9 +32,9 @@
...
@@ -31,9 +32,9 @@
data
()
{
data
()
{
return
{
return
{
// 开始时间
// 开始时间
startTime
:
''
,
startTime
:
null
,
// 结束时间
// 结束时间
endTime
:
''
endTime
:
null
}
}
},
},
methods
:
{
methods
:
{
...
@@ -69,6 +70,18 @@
...
@@ -69,6 +70,18 @@
}
}
]
]
})
})
},
// 点击确认按钮
doConfirmClick
()
{
if
(
this
.
startTime
!==
null
&&
this
.
endTime
!==
null
)
{
if
(
this
.
startTime
>
this
.
endTime
)
{
this
.
$message
.
warning
(
'设备故障率图标开始时间不能大于结束时间!'
)
}
else
{
console
.
log
(
'调取接口数据'
)
}
}
else
{
this
.
$message
.
warning
(
'设备故障率图标开始时间不能大于结束时间!'
)
}
}
}
},
},
mounted
()
{
mounted
()
{
...
...
src/views/CenterControl/components/MachineFailureTrend.vue
View file @
2e25f294
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
placeholder=
"结束时间"
>
placeholder=
"结束时间"
>
</el-date-picker>
</el-date-picker>
<el-button
<el-button
@
click=
"doConfirmClick()"
type=
"primary"
type=
"primary"
size=
"small"
>
size=
"small"
>
确定
确定
...
@@ -32,9 +33,9 @@
...
@@ -32,9 +33,9 @@
data
()
{
data
()
{
return
{
return
{
// 开始时间
// 开始时间
startTime
:
''
,
startTime
:
null
,
// 结束时间
// 结束时间
endTime
:
''
endTime
:
null
}
}
},
},
methods
:
{
methods
:
{
...
@@ -95,6 +96,18 @@
...
@@ -95,6 +96,18 @@
}
}
}]
}]
})
})
},
// 点击确认按钮
doConfirmClick
()
{
if
(
this
.
startTime
!==
null
&&
this
.
endTime
!==
null
)
{
if
(
this
.
startTime
>
this
.
endTime
)
{
this
.
$message
.
warning
(
'设备故障率趋势图开始时间不能大于结束时间!'
)
}
else
{
console
.
log
(
'调取接口数据'
)
}
}
else
{
this
.
$message
.
warning
(
'设备故障率趋势图开始时间和结束时间不能为空!'
)
}
}
}
},
},
mounted
()
{
mounted
()
{
...
...
src/views/CenterControl/components/MachineOperatingStatus.vue
View file @
2e25f294
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
placeholder=
"结束时间"
>
placeholder=
"结束时间"
>
</el-date-picker>
</el-date-picker>
<el-button
<el-button
@
click=
"doConfirmClick()"
type=
"primary"
type=
"primary"
size=
"small"
>
size=
"small"
>
确定
确定
...
@@ -31,9 +32,9 @@
...
@@ -31,9 +32,9 @@
data
()
{
data
()
{
return
{
return
{
// 开始时间
// 开始时间
startTime
:
''
,
startTime
:
null
,
// 结束时间
// 结束时间
endTime
:
''
endTime
:
null
}
}
},
},
methods
:
{
methods
:
{
...
@@ -76,6 +77,18 @@
...
@@ -76,6 +77,18 @@
}
}
]
]
})
})
},
// 点击确认按钮
doConfirmClick
()
{
if
(
this
.
startTime
!==
null
&&
this
.
endTime
!==
null
)
{
if
(
this
.
startTime
>
this
.
endTime
)
{
this
.
$message
.
warning
(
'设备运行状态表开始时间不能大于结束时间!'
)
}
else
{
console
.
log
(
'调取接口数据'
)
}
}
else
{
this
.
$message
.
warning
(
'设备运行状态表开始时间和结束时间不能为空!'
)
}
}
}
},
},
mounted
()
{
mounted
()
{
...
...
src/views/CenterControl/components/MachineStateTrend.vue
View file @
2e25f294
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
placeholder=
"结束时间"
>
placeholder=
"结束时间"
>
</el-date-picker>
</el-date-picker>
<el-button
<el-button
@
click=
"doConfirmClick()"
type=
"primary"
type=
"primary"
size=
"small"
>
size=
"small"
>
确定
确定
...
@@ -31,9 +32,9 @@
...
@@ -31,9 +32,9 @@
data
()
{
data
()
{
return
{
return
{
// 开始时间
// 开始时间
startTime
:
''
,
startTime
:
null
,
// 结束时间
// 结束时间
endTime
:
''
endTime
:
null
}
}
},
},
methods
:
{
methods
:
{
...
@@ -127,6 +128,18 @@
...
@@ -127,6 +128,18 @@
// }
// }
}]
}]
})
})
},
// 点击确认按钮
doConfirmClick
()
{
if
(
this
.
startTime
!==
null
&&
this
.
endTime
!==
null
)
{
if
(
this
.
startTime
>
this
.
endTime
)
{
this
.
$message
.
warning
(
'设备状态趋势图开始时间不能大于结束时间!'
)
}
else
{
console
.
log
(
'调取接口数据'
)
}
}
else
{
this
.
$message
.
warning
(
'设备状态趋势图开始时间和结束时间不能为空!'
)
}
}
}
},
},
mounted
()
{
mounted
()
{
...
...
src/views/CenterControl/components/MachineUtilizationRate.vue
View file @
2e25f294
...
@@ -32,9 +32,9 @@
...
@@ -32,9 +32,9 @@
data
()
{
data
()
{
return
{
return
{
// 开始时间
// 开始时间
startTime
:
''
,
startTime
:
null
,
// 结束时间
// 结束时间
endTime
:
''
endTime
:
null
}
}
},
},
methods
:
{
methods
:
{
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
},
},
// 点击确认按钮
// 点击确认按钮
doConfirmClick
()
{
doConfirmClick
()
{
if
(
this
.
startTime
!==
''
&&
this
.
endTime
!==
''
)
{
if
(
this
.
startTime
!==
null
&&
this
.
endTime
!==
null
)
{
if
(
this
.
startTime
>
this
.
endTime
)
{
if
(
this
.
startTime
>
this
.
endTime
)
{
this
.
$message
.
warning
(
'设备利用率图表开始时间不能大于结束时间!'
)
this
.
$message
.
warning
(
'设备利用率图表开始时间不能大于结束时间!'
)
}
else
{
}
else
{
...
...
src/views/CenterControl/components/MachineUtilizationTrend.vue
View file @
2e25f294
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
placeholder=
"结束时间"
>
placeholder=
"结束时间"
>
</el-date-picker>
</el-date-picker>
<el-button
<el-button
@
click=
"doConfirmClick()"
type=
"primary"
type=
"primary"
size=
"small"
>
size=
"small"
>
确定
确定
...
@@ -31,9 +32,9 @@
...
@@ -31,9 +32,9 @@
data
()
{
data
()
{
return
{
return
{
// 开始时间
// 开始时间
startTime
:
''
,
startTime
:
null
,
// 结束时间
// 结束时间
endTime
:
''
endTime
:
null
}
}
},
},
methods
:
{
methods
:
{
...
@@ -94,6 +95,22 @@
...
@@ -94,6 +95,22 @@
}
}
}]
}]
})
})
},
// 点击确认按钮
doConfirmClick
()
{
if
(
this
.
startTime
!==
null
&&
this
.
endTime
!==
null
)
{
if
(
this
.
startTime
>
this
.
endTime
)
{
this
.
$message
.
warning
(
'设备利用率趋势图开始时间不能大于结束时间!'
)
}
else
{
console
.
log
(
'调取接口数据'
)
console
.
log
(
this
.
startTime
)
console
.
log
(
this
.
endTime
)
}
}
else
{
this
.
$message
.
warning
(
'设备利用率趋势图开始时间和结束时间不能为空!'
)
console
.
log
(
this
.
startTime
)
console
.
log
(
this
.
endTime
)
}
}
}
},
},
mounted
()
{
mounted
()
{
...
...
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