Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
DC-TOM
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
刘照晖
DC-TOM
Commits
cc98dce3
Commit
cc98dce3
authored
May 30, 2025
by
liuzhaoh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG修复0530—1
parent
d11833c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
87 additions
and
22 deletions
+87
-22
chart.js
src/utils/chart.js
+4
-2
index.vue
src/views/dustMonitoring/index.vue
+47
-7
index.vue
src/views/equipmentManagement/index.vue
+36
-13
No files found.
src/utils/chart.js
View file @
cc98dce3
...
...
@@ -284,7 +284,7 @@ export const getGaugeOption = (option) => {
},
pointer
:
{
itemStyle
:
{
color
:
'auto'
color
:
'auto'
,
}
},
axisTick
:
{
...
...
@@ -302,12 +302,14 @@ export const getGaugeOption = (option) => {
color
:
'#fff'
,
width
:
2
},
},
axisLabel
:
{
color
:
'inherit'
,
fontSize
:
10
,
distance
:
30
,
rotate
:
"tangential"
,
formatter
:
option
.
formatter
||
"{value}"
,
},
title
:
{
offsetCenter
:
[
0
,
"70%"
],
...
...
@@ -316,7 +318,7 @@ export const getGaugeOption = (option) => {
},
detail
:
{
fontSize
:
20
,
offsetCenter
:
[
0
,
0
],
offsetCenter
:
[
0
,
4
0
],
valueAnimation
:
true
,
formatter
:
function
(
value
)
{
return
Math
.
round
(
value
*
100
)
+
""
;
...
...
src/views/dustMonitoring/index.vue
View file @
cc98dce3
...
...
@@ -12,6 +12,7 @@
v-model=
"form.dusterNo"
placeholder=
"请选择除尘器"
style=
"width: 240px"
filterable
>
<el-option
v-for=
"item in dusterList"
...
...
@@ -30,6 +31,9 @@
format=
"YYYY-MM-DD HH:mm:ss"
date-format=
"YYYY/MM/DD ddd"
time-format=
"A hh:mm:ss"
@
calendar-change=
"calendarChange"
@
visible-change=
"visibleChange"
:disabled-date=
"disabledFn"
/>
</el-form-item>
</el-form>
...
...
@@ -72,7 +76,11 @@
<div
class=
"part"
>
<div
class=
"point"
:class=
"item.healthStatus == 1 ? 'health' : 'warn'"
:class=
"
{
'status-normal': item.healthStatus === 1,
'status-warning': item.healthStatus === 2,
'status-error': item.healthStatus === 3,
}"
v-for="item in detailObj.compartHealthList[0]"
:key="item"
>
</div>
...
...
@@ -80,7 +88,11 @@
<div
class=
"part"
>
<div
class=
"point"
:class=
"item.healthStatus == 1 ? 'health' : 'warn'"
:class=
"
{
'status-normal': item.healthStatus === 1,
'status-warning': item.healthStatus === 2,
'status-error': item.healthStatus === 3,
}"
v-for="item in detailObj.compartHealthList[1]"
:key="item"
>
</div>
...
...
@@ -130,10 +142,27 @@ const userStore = useUsersStore();
const
form
=
reactive
({
dusterNo
:
""
,
dateValue
:
[
new
Date
(
new
Date
().
getTime
()
-
24
*
60
*
60
*
1000
*
7
),
new
Date
(
new
Date
().
getTime
()
-
24
*
60
*
60
*
1000
*
10
),
new
Date
(),
],
});
const
startVal
=
ref
(
null
);
const
calendarChange
=
(
e
)
=>
{
if
(
e
[
0
]
&&
!
e
[
1
])
{
startVal
.
value
=
e
[
0
];
}
};
const
visibleChange
=
(
e
)
=>
{
if
(
e
)
{
startVal
.
value
=
null
;
}
};
const
disabledFn
=
(
current
)
=>
{
if
(
!
startVal
.
value
)
return
false
;
let
range
=
[
new
Date
(
startVal
.
value
).
getTime
()
-
24
*
60
*
60
*
1000
*
30
,
new
Date
(
startVal
.
value
).
getTime
()
+
24
*
60
*
60
*
1000
*
30
];
let
cur
=
new
Date
(
current
).
getTime
();
return
cur
<
range
[
0
]
||
cur
>
range
[
1
];
};
const
option
=
{
xAxis
:
{
type
:
"category"
,
...
...
@@ -466,6 +495,9 @@ const getDustDetail = () => {
chartName
:
"压差"
,
min
:
parseInt
(
res
.
data
.
pressureDiffLow
),
max
:
parseInt
(
res
.
data
.
pressureDiffHigh
),
formatter
:
parseInt
(
res
.
data
.
pressureDiffHigh
)
>
10
?
function
(
value
)
{
return
parseInt
(
value
)
}
:
''
})
);
indicatorFun
(
...
...
@@ -476,6 +508,9 @@ const getDustDetail = () => {
chartName
:
"粉尘浓度"
,
min
:
5
,
max
:
50
,
formatter
:
function
(
value
)
{
return
parseInt
(
value
)
}
})
);
})
...
...
@@ -692,11 +727,16 @@ $borderColor: #bbbdc391;
display
:
block
;
padding-bottom
:
100%
;
/* 9/16 * 100% = 56.25% */
}
.warn
{
background-color
:
rgb
(
217
,
10
,
10
);
.status-normal
{
background-color
:
#67c23a
;
// 绿色
}
.health
{
background-color
:
#67c23a
;
.status-warning
{
background-color
:
#e6a23c
;
// 橙色
}
.status-error
{
background-color
:
#f56c6c
;
// 红色
}
}
.other-info
{
...
...
src/views/equipmentManagement/index.vue
View file @
cc98dce3
...
...
@@ -8,7 +8,6 @@
v-model=
"formInline.productionLineId"
placeholder=
"请选择工序"
style=
"width: 120px"
clearable
>
<el-option
v-for=
"item in processOptions"
...
...
@@ -29,7 +28,7 @@
<el-form-item
label=
"设备名称"
>
<el-input
v-model=
"formInline.deviceName"
placeholder=
"请输入
除尘器
名称"
placeholder=
"请输入
设备
名称"
style=
"width: 240px"
clearable
/>
...
...
@@ -37,9 +36,8 @@
<el-form-item
label=
"设备类型"
>
<el-select
v-model=
"formInline.deviceTypeId"
placeholder=
"请选择
工序
"
placeholder=
"请选择
设备类型
"
style=
"width: 120px"
clearable
>
<el-option
v-for=
"item in deviceTypeEnum"
...
...
@@ -110,7 +108,7 @@
</
template
>
<
template
#
operation=
"{ row }"
>
<el-button
t
ype=
"text"
@
click=
"getParamsConfig(row)"
>
<el-button
t
ext
@
click=
"getParamsConfig(row)"
>
参数设置
</el-button>
</
template
>
...
...
@@ -132,6 +130,7 @@ import CommonTable from "@/components/commonTable/index.vue";
import
"@/css/elementUiSelf.css"
;
import
{
getDataFun
,
exportFile
}
from
"@/request/method.js"
;
import
{
getToken
}
from
"@/utils/auth"
;
import
axios
from
"axios"
;
const
ENV
=
import
.
meta
.
env
;
const
uploadUrl
=
ENV
.
VITE_APP_BASE_API5
+
"/importDeviceAndSignal"
;
const
currentPage
=
ref
(
1
);
...
...
@@ -141,7 +140,7 @@ const getIndex = (index) => {
return
(
currentPage
.
value
-
1
)
*
pageSize
.
value
+
index
+
1
;
};
le
t
formInline
=
reactive
({
cons
t
formInline
=
reactive
({
deviceName
:
""
,
dusterName
:
""
,
deviceTypeId
:
" "
,
...
...
@@ -273,12 +272,10 @@ const getDeviceContent = () => {
};
// 重置
const
onReset
=
()
=>
{
formInline
=
{
deviceName
:
""
,
dusterName
:
""
,
deviceTypeId
:
" "
,
productionLineId
:
" "
,
};
formInline
.
deviceName
=
""
;
formInline
.
dusterName
=
""
;
formInline
.
deviceTypeId
=
" "
;
formInline
.
productionLineId
=
" "
;
pageSize
.
value
=
10
;
currentPage
.
value
=
1
;
getDeviceContent
();
...
...
@@ -323,7 +320,33 @@ const onExportFile = () => {
};
// 模板下载
const
onDownloadTemplate
=
()
=>
{
window
.
open
(
'http://visimg.bmetech.com/stone/img/1748314002767/设备数据.xlsx'
)
// window.open('http://visimg.bmetech.com/stone/img/1748314002767/设备数据.xlsx')
axios
.
get
(
'http://visimg.bmetech.com/stone/img/1748314002767/设备数据.xlsx'
,
{
responseType
:
'blob'
}).
then
(
res
=>
{
console
.
log
(
res
)
const
blob
=
res
.
data
;
// 创建 URL 对象
const
url
=
URL
.
createObjectURL
(
blob
);
// 创建临时
<
a
>
元素
const
a
=
document
.
createElement
(
"a"
);
a
.
href
=
url
;
// 设置下载的文件名
if
(
res
.
data
.
type
===
'application/vnd.ms-excel'
)
{
a
.
download
=
`设备数据.xls`
;
// 设置下载的文件名
}
else
{
a
.
download
=
`设备数据.xlsx`
;
}
// 模拟点击下载
document
.
body
.
appendChild
(
a
);
a
.
click
();
// 清理资源
document
.
body
.
removeChild
(
a
);
URL
.
revokeObjectURL
(
url
);
})
};
// 页面参数改变
const
handlePaginationChange
=
(
pagination
)
=>
{
...
...
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