风机矩阵双击改成单击
This commit is contained in:
parent
b1389fab4e
commit
e367f06a87
@ -302,6 +302,7 @@ const StatusListData = () => {
|
||||
return {
|
||||
irn: item.irn,
|
||||
name: item.name ?? '-',
|
||||
deviceCode:item.deviceCode,
|
||||
model: item.model || '-',
|
||||
modelId: item.modelId,
|
||||
belongLine: item.belongLine || '-',
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div class="FanList-content">
|
||||
<el-row :gutter="10">
|
||||
<el-col :xs="12" :sm="8" :md="8" :lg="4" :xl="3" v-for="(item, index) in props.parentData" style="margin-bottom: 5px">
|
||||
<div class="grid-content ep-bg-purple" @dblclick="handleDoubleClick(item)">
|
||||
<div class="grid-content ep-bg-purple" @click="handleClick(item)">
|
||||
<div class="FanList-panel" :class="item.standard == true ? 'wind-mark' : 'wind-default'">
|
||||
<div class="fanlist-top">
|
||||
<span :class="item.standard == true ? 'wind-mark-icon' : 'fanlist-icon'">
|
||||
@ -95,17 +95,11 @@ const getAnimationStyle = (item) => {
|
||||
'animation-timing-function': 'linear',
|
||||
'animation-iteration-count': 'infinite',
|
||||
'animation-direction': 'normaL',
|
||||
//'animation-fill-mode': 'forwards'
|
||||
}
|
||||
/* const animationDuration = 60 / irotorspeed
|
||||
const iterationCount = Math.floor(10) // 迭代次数取整
|
||||
return {
|
||||
'animation': `leafRotate ${animationDuration}s ${iterationCount}`
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
const handleDoubleClick = (row) => {
|
||||
const handleClick = (row) => {
|
||||
if (!router.hasRoute('windTurbine')) {
|
||||
router.addRoute('admin', {
|
||||
path: adminBaseRoutePath + '/windTurbine',
|
||||
|
Loading…
Reference in New Issue
Block a user