Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
甘
甘肃陇南
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinzhedeai
甘肃陇南
Commits
d4a54379
Commit
d4a54379
authored
Aug 10, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备报警模块
parent
a0fcaf06
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
701 additions
and
176 deletions
+701
-176
drybeachequipinfor.js
src/api/business/drybeachequipinfor.js
+5
-2
index.vue
src/views/environmentMonitor/historyData/index.vue
+176
-2
index.vue
src/views/environmentMonitor/machine/index.vue
+9
-172
index.vue
src/views/environmentMonitor/warnData/index.vue
+511
-0
No files found.
src/api/business/drybeachequipinfor.js
View file @
d4a54379
...
@@ -47,7 +47,10 @@ export function updateDrybeachequipinfor(data) {
...
@@ -47,7 +47,10 @@ export function updateDrybeachequipinfor(data) {
// 删除设备信息
// 删除设备信息
export
function
delDrybeachequipinfor
(
id
)
{
export
function
delDrybeachequipinfor
(
id
)
{
return
request
({
return
request
({
url
:
'
/business/drybeachequipinfor/remove/
'
+
id
,
url
:
'
/business/drybeachequipinfor
'
,
method
:
'
get
'
method
:
'
delete
'
,
data
:{
id
}
})
})
}
}
\ No newline at end of file
src/views/environmentMonitor/historyData/index.vue
View file @
d4a54379
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<div
class=
"box-card"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"设备编号"
prop=
"sensorid"
>
<el-form-item
label=
"设备编号"
prop=
"sensorid"
>
<el-input
<el-input
...
@@ -125,7 +126,10 @@
...
@@ -125,7 +126,10 @@
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
</el-row>
<el-table
v-loading=
"loading"
:data=
"szDataList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"szDataList"
@
selection-change=
"handleSelectionChange"
height=
"535"
border
header-cell-style=
"background-color: #08267d; color: #96dcdf;border:1px solid #409EFF;"
>
>
<!--
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<!--
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"主键,自增"
align=
"center"
prop=
"id"
/>
-->
<el-table-column
label=
"主键,自增"
align=
"center"
prop=
"id"
/>
-->
<el-table-column
label=
"设备编号"
align=
"center"
prop=
"sensorid"
/>
<el-table-column
label=
"设备编号"
align=
"center"
prop=
"sensorid"
/>
...
@@ -213,6 +217,7 @@
...
@@ -213,6 +217,7 @@
</div>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
...
@@ -398,3 +403,172 @@
...
@@ -398,3 +403,172 @@
}
}
};
};
</
script
>
</
script
>
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scope
>
::v-deep
.el-dialog__footer
{
padding-bottom
:
50px
;
// padding-right: 50px;
}
.app-container
{
display
:
flex
;
flex
:
1
;
flex-direction
:
column
;
width
:
100%
;
height
:
100%
;
}
.box-card
{
width
:
100%
;
height
:
100%
;
background-color
:
#041c58
;
.top-title
{
width
:
100%
;
height
:
50px
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
padding-left
:
20px
;
.title-text
{
font-size
:
22px
;
font-weight
:
bold
;
line-height
:
30px
;
padding-left
:
10px
;
letter-spacing
:
0
.1rem
;
background-image
:
linear-gradient
(
to
right
,
#03f2cf
,
#03bef1
);
color
:
transparent
;
-webkit-background-clip
:
text
;
}
}
}
.searchform
{
width
:
100%
;
height
:
75px
;
background-color
:
#041c58
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
padding-left
:
30px
;
.el-form-item
{
margin-bottom
:
0px
!
important
;
}
}
.el-menu.el-menu--horizontal
{
border-bottom
:
none
!
important
;
}
// input框自定义样式
.
el-input__inner
:
:
placeholder
{
color
:
#00dff1
;
}
/* 谷歌 */
.
el-input__inner
:
:-
webkit-input-placeholder
{
color
:
#00dff1
;
}
/* 火狐 */
.
el-input__inner
:
-
moz-placeholder
{
color
:
#00dff1
;
}
/*ie*/
.
el-input__inner
:
-
ms-input-placeholder
{
color
:
#00dff1
;
}
.el-input__prefix
{
color
:
#00dff1
!
important
;
}
.el-input--small
.el-input__inner
{
background-color
:
#04316a
!
important
;
border
:
1px
solid
#00dff1
!
important
;
}
//按钮自定义样式
.el-button--goon
{
color
:
#00dff1
;
background-color
:
#044c82
;
border-color
:
#00dff1
;
}
//表格自定义样式
.el-table
{
background-color
:
#08267c
;
//border: 2px solid #00bcfc;
}
.has-gutter
{
background-color
:
#092672
!
important
;
color
:
#95dcdf
!
important
;
font-weight
:
500
;
}
.el-table
tr
{
background-color
:
#08267c
!
important
;
color
:
#06fff1
;
border
:
1px
solid
#00bcfc
!
important
;
}
.el-table
td
.el-table__cell
{
border
:
1px
solid
#00bcfc
!
important
;
}
.el-table--scrollable-y
.el-table__body-wrappe
{
overflow-y
:
scroll
!
important
;
}
.el-message-box
{
display
:
inline-block
;
width
:
420px
;
padding-bottom
:
10px
;
vertical-align
:
middle
;
background-color
:
#031534
;
border-radius
:
4px
;
border
:
1px
solid
#00dff1
;
font-size
:
18px
;
text-align
:
left
;
overflow
:
hidden
;
}
.tableline
{
width
:
50%
;
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
color
:
#00feff
;
}
.el-form-item__label
{
color
:
#00feff
;
}
.el-input__inner
{
background-color
:
#152344
!
important
;
border
:
1px
solid
#04f0f2
;
}
.el-scrollbar
{
background-color
:
#152344
!
important
;
border
:
1px
solid
#04f0f2
;
}
.btn-prev
{
background-color
:
#152344
!
important
;
}
.el-pager
li
{
background-color
:
#152344
!
important
;
}
.btn-next
{
background-color
:
#152344
!
important
;
}
.savebtn
{
width
:
100px
;
height
:
40px
;
background-color
:
transparent
!
important
;
background-image
:
url("~@/assets/images/savebtn.png")
;
background-size
:
100%
100%
;
border
:
none
!
important
;
color
:
#fff
!
important
;
margin-right
:
30px
;
}
.el-picker-panel
{
background-color
:
#152344
!
important
;
}
.el-picker-panel__footer
{
background-color
:
#152344
!
important
;
}
.el-button.is-plain
{
background-color
:
#044c82
!
important
;
border
:
1px
solid
#00dff1
!
important
;
color
:
#04eaf8
!
important
;
}
.el-table--group
,
.el-table--border
{
border
:
1px
solid
#00dff1
!
important
;
}
</
style
>
\ No newline at end of file
src/views/environmentMonitor/machine/index.vue
View file @
d4a54379
...
@@ -420,18 +420,18 @@
...
@@ -420,18 +420,18 @@
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"监测类型"
prop=
"device
T
ype"
>
<el-form-item
label=
"监测类型"
prop=
"device
t
ype"
>
<el-select
<el-select
v-model=
"form.device
T
ype"
v-model=
"form.device
t
ype"
clearable
clearable
placeholder=
"请输入监测类型"
placeholder=
"请输入监测类型"
style=
"margin-left: 5px; width:200px;"
style=
"margin-left: 5px; width:200px;"
>
>
<el-option
<el-option
v-for=
"
dict in dict.type.microseismequipment
"
v-for=
"
(dict, key) in dict.type.jcjd
"
:key=
"
dict.label
"
:key=
"
key
"
:value=
"dict.label"
:value=
"dict.label"
:label=
"dict.
label
"
:label=
"dict.
value
"
>
>
</el-option>
</el-option>
</el-select>
</el-select>
...
@@ -880,7 +880,7 @@ import {
...
@@ -880,7 +880,7 @@ import {
export
default
{
export
default
{
name
:
"
Drybeachequipinfor
"
,
name
:
"
Drybeachequipinfor
"
,
dicts
:
[
'
microseismequipment
'
],
dicts
:
[
'
jcjd
'
],
data
()
{
data
()
{
return
{
return
{
// 根路径
// 根路径
...
@@ -1381,6 +1381,8 @@ export default {
...
@@ -1381,6 +1381,8 @@ export default {
this
.
getList
();
this
.
getList
();
});
});
}
}
}
else
{
this
.
$modal
.
msgError
(
'
表单数据有必填项尚未填写,请确认
'
);
}
}
});
});
},
},
...
@@ -1388,7 +1390,7 @@ export default {
...
@@ -1388,7 +1390,7 @@ export default {
handleDelete
(
row
)
{
handleDelete
(
row
)
{
const
ids
=
row
.
id
||
this
.
ids
;
const
ids
=
row
.
id
||
this
.
ids
;
this
.
$modal
this
.
$modal
.
confirm
(
'
是否确认删除
设备信息编号为"
'
+
ids
+
'
"的数据项
?
'
)
.
confirm
(
'
是否确认删除
该设备信息
?
'
)
.
then
(
function
()
{
.
then
(
function
()
{
return
delDrybeachequipinfor
(
ids
);
return
delDrybeachequipinfor
(
ids
);
})
})
...
@@ -1411,172 +1413,7 @@ export default {
...
@@ -1411,172 +1413,7 @@ export default {
},
},
};
};
</
script
>
</
script
>
<!-- <style rel="stylesheet/scss" lang="scss" scope>
// ::v-deep .el-dialog__footer{
// padding-bottom: 50px;
// padding-right: 50px;
// }
.app-container {
display: flex;
flex: 1;
flex-direction: column;
width: 100%;
height: 100%;
.box-card {
width: 100%;
background-color: #041c58;
.top-title {
width: 100%;
height: 50px;
display: flex;
justify-content: flex-start;
align-items: center;
padding-left: 20px;
.title-text {
font-size: 22px;
font-weight: bold;
line-height: 30px;
padding-left: 10px;
letter-spacing: 0.1rem;
background-image: linear-gradient(to right, #03f2cf, #03bef1);
color: transparent;
-webkit-background-clip: text;
}
}
}
//按钮自定义样式
.el-button--goon {
color: #00dff1;
background-color: #044c82;
border-color: #00dff1;
}
//弹窗自定义样式
.el-dialog {
height: 37.5rem !important;
background-image: url("~@/assets/images/pop.png");
background-size: 100% 100%;
background-color: transparent !important;
}
.el-dialog__title {
color: #04eaf8 !important;
font-weight: bolder;
}
.el-dialog__headerbtn .el-dialog__close {
color: #4da3fe !important;
font-size: 22px;
font-weight: bolder;
}
.el-dialog__body {
padding: 10px 30px !important;
}
.el-table--scrollable-y .el-table__body-wrappe {
overflow-y: scroll !important;
}
.tableline {
width: 50%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: #00feff;
}
.el-form-item__label {
color: #00feff;
}
.el-input__inner {
background-color: #152344 !important;
border: 1px solid #04f0f2;
}
.el-textarea__inner {
background-color: #152344 !important;
border: 1px solid #04f0f2;
}
.savebtn {
background-color: transparent !important;
background-image: url("~@/assets/images/savebtn.png");
background-size: 100% 100%;
border: none !important;
color: #fff !important;
}
.wrapper {
width: 100%;
height: 300px;
background-image: url("~@/assets/images/borderbg.png");
background-size: 100% 100%;
margin: 20px;
}
.roseChart {
width: 95%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
//表格自定义样式
.el-table {
background-color: #08267c;
//border: 2px solid #00bcfc;
}
.has-gutter {
background-color: #092672 !important;
color: #95dcdf !important;
font-weight: 500;
}
.el-table tr {
background-color: #08267c !important;
color: #06fff1;
border: 1px solid #00bcfc !important;
}
.el-table td.el-table__cell {
border: 1px solid #00bcfc !important;
}
.el-table--scrollable-y .el-table__body-wrappe {
overflow-y: scroll !important;
}
//自定义弹窗切换按钮样式
.el-tabs--card > .el-tabs__header {
border-bottom: none !important;
}
.el-tabs--card > .el-tabs__header .el-tabs__nav {
border: none !important;
width: 100%;
display: flex;
}
.el-tabs--card > .el-tabs__header .el-tabs__item.is-active {
border: none !important;
}
.el-tabs--card > .el-tabs__header .el-tabs__item {
border: none !important;
}
#tab-first {
width: 120px !important;
height: 45px !important;
background-image: url("~@/assets/images/savebtn.png");
background-size: 100% 100%;
display: flex;
justify-content: center;
align-items: center;
color: #05e9f9;
font-size: 18px;
font-weight: bolder;
}
#tab-second {
width: 120px !important;
height: 45px !important;
background-image: url("~@/assets/images/savebtn.png");
background-size: 100% 100%;
display: flex;
justify-content: center;
align-items: center;
color: #05e9f9;
font-size: 18px;
font-weight: bolder;
margin-left: 30px;
}
}
</style> -->
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scope
>
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scope
>
::v-deep
.el-dialog__footer
{
::v-deep
.el-dialog__footer
{
padding-bottom
:
50px
;
padding-bottom
:
50px
;
...
...
src/views/environmentMonitor/warnData/index.vue
View file @
d4a54379
<
template
>
<div
class=
"app-container"
>
<div
class=
"box-card"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"设备编号"
prop=
"equipno"
>
<el-input
v-model=
"queryParams.equipno"
placeholder=
"请输入设备编号"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<!--
<el-form-item
label=
"报警级别"
prop=
"bjjb"
>
<el-input
v-model=
"queryParams.bjjb"
placeholder=
"请输入报警级别"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"报警时间"
prop=
"time"
>
<el-date-picker
clearable
v-model=
"queryParams.time"
type=
"date"
value-format=
"yyyy-MM-dd HH:mm:ss"
placeholder=
"请选择报警时间"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"创建时间"
prop=
"createtime"
>
<el-date-picker
clearable
v-model=
"queryParams.createtime"
type=
"date"
value-format=
"yyyy-MM-dd HH:mm:ss"
placeholder=
"请选择创建时间"
>
</el-date-picker>
</el-form-item>
-->
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<!--
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['business:equipBj:add']"
>
新增
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"success"
plain
icon=
"el-icon-edit"
size=
"mini"
:disabled=
"single"
@
click=
"handleUpdate"
v-hasPermi=
"['business:equipBj:edit']"
>
修改
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"danger"
plain
icon=
"el-icon-delete"
size=
"mini"
:disabled=
"multiple"
@
click=
"handleDelete"
v-hasPermi=
"['business:equipBj:remove']"
>
删除
</el-button>
</el-col>
-->
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
v-hasPermi=
"['business:equipBj:export']"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-loading=
"loading"
:data=
"equipBjList"
@
selection-change=
"handleSelectionChange"
height=
"535"
border
header-cell-style=
"background-color: #08267d; color: #96dcdf;border:1px solid #409EFF;"
>
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<!--
<el-table-column
label=
"主键,自增"
align=
"center"
prop=
"id"
/>
-->
<el-table-column
label=
"设备编号"
align=
"center"
prop=
"equipno"
/>
<el-table-column
label=
"类型"
align=
"center"
prop=
"devicetype"
/>
<el-table-column
label=
"报警级别"
align=
"center"
prop=
"bjjb"
/>
<el-table-column
label=
"报警时间"
align=
"center"
prop=
"time"
width=
"180"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
time
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createtime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createtime
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"修改时间"
align=
"center"
prop=
"updatetime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
updatetime
)
}}
</span>
</
template
>
</el-table-column>
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['business:equipBj:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['business:equipBj:remove']"
>删除</el-button>
</template>
</el-table-column> -->
</el-table>
<pagination
v-show=
"total>0"
:total=
"total"
:page.sync=
"queryParams.pageNum"
:limit.sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<!-- 添加或修改设备报警-风险计算对话框 -->
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"设备编号"
prop=
"equipno"
>
<el-input
v-model=
"form.equipno"
placeholder=
"请输入设备编号"
/>
</el-form-item>
<el-form-item
label=
"报警级别"
prop=
"bjjb"
>
<el-input
v-model=
"form.bjjb"
placeholder=
"请输入报警级别"
/>
</el-form-item>
<el-form-item
label=
"报警时间"
prop=
"time"
>
<el-date-picker
clearable
v-model=
"form.time"
type=
"date"
value-format=
"yyyy-MM-dd HH:mm:ss"
placeholder=
"请选择报警时间"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"${comment}"
prop=
"delFlag"
>
<el-input
v-model=
"form.delFlag"
placeholder=
"请输入${comment}"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</el-dialog>
</div>
</div>
</template>
<
script
>
import
{
listEquipBj
,
getEquipBj
,
delEquipBj
,
addEquipBj
,
updateEquipBj
}
from
"
@/api/business/equipBj
"
;
export
default
{
name
:
"
EquipBj
"
,
data
()
{
return
{
// 根路径
baseURL
:
process
.
env
.
VUE_APP_BASE_API
,
// 遮罩层
loading
:
true
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 设备报警-风险计算表格数据
equipBjList
:
[],
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
equipno
:
null
,
devicetype
:
null
,
bjjb
:
null
,
time
:
null
,
createtime
:
null
,
updatetime
:
null
,
},
// 表单参数
form
:
{},
// 表单校验
rules
:
{
id
:
[
{
required
:
true
,
message
:
"
主键,自增不能为空
"
,
trigger
:
"
blur
"
}
],
equipno
:
[
{
required
:
true
,
message
:
"
设备编号不能为空
"
,
trigger
:
"
blur
"
}
],
devicetype
:
[
{
required
:
true
,
message
:
"
系统编号,系统包括降雨量、表面位移,内部位移等不能为空
"
,
trigger
:
"
change
"
}
],
bjjb
:
[
{
required
:
true
,
message
:
"
报警级别不能为空
"
,
trigger
:
"
blur
"
}
],
time
:
[
{
required
:
true
,
message
:
"
报警时间不能为空
"
,
trigger
:
"
blur
"
}
],
createtime
:
[
{
required
:
true
,
message
:
"
创建时间不能为空
"
,
trigger
:
"
blur
"
}
],
updatetime
:
[
{
required
:
true
,
message
:
"
修改时间不能为空
"
,
trigger
:
"
blur
"
}
],
delFlag
:
[
{
required
:
true
,
message
:
"
$comment不能为空
"
,
trigger
:
"
blur
"
}
],
}
};
},
created
()
{
this
.
getList
();
},
methods
:
{
/** 查询设备报警-风险计算列表 */
getList
()
{
this
.
loading
=
true
;
listEquipBj
(
this
.
queryParams
).
then
(
response
=>
{
this
.
equipBjList
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
});
},
// 取消按钮
cancel
()
{
this
.
open
=
false
;
this
.
reset
();
},
// 表单重置
reset
()
{
this
.
form
=
{
id
:
null
,
equipno
:
null
,
devicetype
:
null
,
bjjb
:
null
,
time
:
null
,
createtime
:
null
,
updatetime
:
null
,
delFlag
:
null
,
};
this
.
resetForm
(
"
form
"
);
},
/** 搜索按钮操作 */
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
getList
();
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"
queryForm
"
);
this
.
handleQuery
();
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
id
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
},
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"
添加设备报警-风险计算
"
;
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
();
const
id
=
row
.
id
||
this
.
ids
getEquipBj
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"
修改设备报警-风险计算
"
;
});
},
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"
form
"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
id
!=
null
)
{
updateEquipBj
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
else
{
addEquipBj
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
新增成功
"
);
this
.
open
=
false
;
this
.
getList
();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
ids
=
row
.
id
||
this
.
ids
;
this
.
$modal
.
confirm
(
'
是否确认删除设备报警-风险计算编号为"
'
+
ids
+
'
"的数据项?
'
).
then
(
function
()
{
return
delEquipBj
(
ids
);
}).
then
(()
=>
{
this
.
getList
();
this
.
$modal
.
msgSuccess
(
"
删除成功
"
);
}).
catch
(()
=>
{});
},
/** 导出按钮操作 */
handleExport
()
{
this
.
download
(
'
business/equipBj/export
'
,
{
...
this
.
queryParams
},
`equipBj_
${
new
Date
().
getTime
()}
.xlsx`
)
}
}
};
</
script
>
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scope
>
::v-deep
.el-dialog__footer
{
padding-bottom
:
50px
;
// padding-right: 50px;
}
.app-container
{
display
:
flex
;
flex
:
1
;
flex-direction
:
column
;
width
:
100%
;
height
:
100%
;
}
.box-card
{
width
:
100%
;
height
:
100%
;
background-color
:
#041c58
;
.top-title
{
width
:
100%
;
height
:
50px
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
padding-left
:
20px
;
.title-text
{
font-size
:
22px
;
font-weight
:
bold
;
line-height
:
30px
;
padding-left
:
10px
;
letter-spacing
:
0
.1rem
;
background-image
:
linear-gradient
(
to
right
,
#03f2cf
,
#03bef1
);
color
:
transparent
;
-webkit-background-clip
:
text
;
}
}
}
.searchform
{
width
:
100%
;
height
:
75px
;
background-color
:
#041c58
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
padding-left
:
30px
;
.el-form-item
{
margin-bottom
:
0px
!
important
;
}
}
.el-menu.el-menu--horizontal
{
border-bottom
:
none
!
important
;
}
// input框自定义样式
.
el-input__inner
:
:
placeholder
{
color
:
#00dff1
;
}
/* 谷歌 */
.
el-input__inner
:
:-
webkit-input-placeholder
{
color
:
#00dff1
;
}
/* 火狐 */
.
el-input__inner
:
-
moz-placeholder
{
color
:
#00dff1
;
}
/*ie*/
.
el-input__inner
:
-
ms-input-placeholder
{
color
:
#00dff1
;
}
.el-input__prefix
{
color
:
#00dff1
!
important
;
}
.el-input--small
.el-input__inner
{
background-color
:
#04316a
!
important
;
border
:
1px
solid
#00dff1
!
important
;
}
//按钮自定义样式
.el-button--goon
{
color
:
#00dff1
;
background-color
:
#044c82
;
border-color
:
#00dff1
;
}
//表格自定义样式
.el-table
{
background-color
:
#08267c
;
//border: 2px solid #00bcfc;
}
.has-gutter
{
background-color
:
#092672
!
important
;
color
:
#95dcdf
!
important
;
font-weight
:
500
;
}
.el-table
tr
{
background-color
:
#08267c
!
important
;
color
:
#06fff1
;
border
:
1px
solid
#00bcfc
!
important
;
}
.el-table
td
.el-table__cell
{
border
:
1px
solid
#00bcfc
!
important
;
}
.el-table--scrollable-y
.el-table__body-wrappe
{
overflow-y
:
scroll
!
important
;
}
.el-message-box
{
display
:
inline-block
;
width
:
420px
;
padding-bottom
:
10px
;
vertical-align
:
middle
;
background-color
:
#031534
;
border-radius
:
4px
;
border
:
1px
solid
#00dff1
;
font-size
:
18px
;
text-align
:
left
;
overflow
:
hidden
;
}
.tableline
{
width
:
50%
;
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-items
:
center
;
color
:
#00feff
;
}
.el-form-item__label
{
color
:
#00feff
;
}
.el-input__inner
{
background-color
:
#152344
!
important
;
border
:
1px
solid
#04f0f2
;
}
.el-scrollbar
{
background-color
:
#152344
!
important
;
border
:
1px
solid
#04f0f2
;
}
.btn-prev
{
background-color
:
#152344
!
important
;
}
.el-pager
li
{
background-color
:
#152344
!
important
;
}
.btn-next
{
background-color
:
#152344
!
important
;
}
.savebtn
{
width
:
100px
;
height
:
40px
;
background-color
:
transparent
!
important
;
background-image
:
url("~@/assets/images/savebtn.png")
;
background-size
:
100%
100%
;
border
:
none
!
important
;
color
:
#fff
!
important
;
margin-right
:
30px
;
}
.el-picker-panel
{
background-color
:
#152344
!
important
;
}
.el-picker-panel__footer
{
background-color
:
#152344
!
important
;
}
.el-button.is-plain
{
background-color
:
#044c82
!
important
;
border
:
1px
solid
#00dff1
!
important
;
color
:
#04eaf8
!
important
;
}
.el-table--group
,
.el-table--border
{
border
:
1px
solid
#00dff1
!
important
;
}
</
style
>
\ No newline at end of file
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