Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
Project
Project
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
耿迪迪
gassafety
Commits
10b74a55
Commit
10b74a55
authored
Jul 22, 2021
by
yaqizhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工单
parent
9657199d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1097 additions
and
162 deletions
+1097
-162
fh.png
gassafety-web/src/assets/logo/fh.png
+0
-0
gassafety.scss
gassafety-web/src/assets/styles/gassafety.scss
+135
-106
gassafety1.scss
gassafety-web/src/assets/styles/gassafety1.scss
+239
-0
sidebar.scss
gassafety-web/src/assets/styles/sidebar.scss
+3
-3
SidebarItem.vue
gassafety-web/src/layout/components/Sidebar/SidebarItem.vue
+10
-3
index.js
gassafety-web/src/router/index.js
+27
-0
detail.vue
gassafety-web/src/views/workOrder/basicsInfo/detail.vue
+390
-0
index.vue
gassafety-web/src/views/workOrder/basicsInfo/index.vue
+137
-47
index.vue
gassafety-web/src/views/workOrder/feedback/index.vue
+3
-3
workorder.vue
gassafety-web/src/views/workOrder/workorder/workorder.vue
+153
-0
No files found.
gassafety-web/src/assets/logo/fh.png
0 → 100644
View file @
10b74a55
4.12 KB
gassafety-web/src/assets/styles/gassafety.scss
View file @
10b74a55
/**
/**
* 通用css样式布局处理
* Copyright (c) 2019 gassafety
*/
/** 基础通用 **/
/** 基础通用 **/
.pt5
{
padding-top
:
5px
;
}
...
...
@@ -53,20 +53,49 @@
margin-left
:
20px
;
}
.el-dialog
:not
(
.is-fullscreen
)
{
.el-dialog
:not
(
.is-fullscreen
)
{
margin-top
:
6vh
!
important
;
}
.el-table
{
.el-table__header-wrapper
,
.el-table__fixed-header-wrapper
{
.el-table__header-wrapper
,
.el-table__fixed-header-wrapper
{
th
{
word-break
:
break-word
;
background-color
:
#f8f8f9
;
color
:
#515a6e
;
background-color
:
#053b6a
;
color
:
#fff
;
height
:
40px
;
font-size
:
13px
;
}
}
.el-table__body-wrapper
{
.el-table__row
:nth-child
(
2n
+
1
)
{
background-color
:
#e6e6e6
;
// &:hover {
// td {
// background-color: #f4f4f4;
// }
// }
td
{
.cell
{
color
:
#525252
;
}
}
}
.el-table__row
:nth-child
(
2n
)
{
background-color
:
#f4f4f4
;
// &:hover {
// td {
// background-color: #e6e6e6;
// }
// }
td
{
.cell
{
color
:
#053b6a
;
}
}
}
}
.el-table__body-wrapper
{
.el-button
[
class
*=
"el-icon-"
]
+
span
{
margin-left
:
1px
;
...
...
@@ -76,11 +105,11 @@
/** 表单布局 **/
.form-header
{
font-size
:
15px
;
color
:
#6379bb
;
border-bottom
:
1px
solid
#ddd
;
margin
:
8px
10px
25px
10px
;
padding-bottom
:
5px
font-size
:
15px
;
color
:
#6379bb
;
border-bottom
:
1px
solid
#ddd
;
margin
:
8px
10px
25px
10px
;
padding-bottom
:
5px
;
}
/** 表格布局 **/
...
...
@@ -96,8 +125,8 @@
.tree-border
{
margin-top
:
5px
;
border
:
1px
solid
#e5e6e7
;
background
:
#FFFFFF
none
;
border-radius
:
4px
;
background
:
#ffffff
none
;
border-radius
:
4px
;
}
.pagination-container
.el-pagination
{
...
...
@@ -158,22 +187,22 @@
/* button color */
.el-button--cyan.is-active
,
.el-button--cyan
:active
{
background
:
#20
B2AA
;
border-color
:
#20
B2AA
;
color
:
#
FFFFFF
;
background
:
#20
b2aa
;
border-color
:
#20
b2aa
;
color
:
#
ffffff
;
}
.el-button--cyan
:focus
,
.el-button--cyan
:hover
{
background
:
#48
D1CC
;
border-color
:
#48
D1CC
;
color
:
#
FFFFFF
;
background
:
#48
d1cc
;
border-color
:
#48
d1cc
;
color
:
#
ffffff
;
}
.el-button--cyan
{
background-color
:
#20
B2AA
;
border-color
:
#20
B2AA
;
color
:
#
FFFFFF
;
background-color
:
#20
b2aa
;
border-color
:
#20
b2aa
;
color
:
#
ffffff
;
}
/* text color */
...
...
@@ -227,10 +256,10 @@
}
/* 拖拽列样式 */
.sortable-ghost
{
opacity
:
.8
;
color
:
#fff
!
important
;
background
:
#42b983
!
important
;
.sortable-ghost
{
opacity
:
0
.8
;
color
:
#fff
!
important
;
background
:
#42b983
!
important
;
}
.top-right-btn
{
...
...
gassafety-web/src/assets/styles/gassafety1.scss
0 → 100644
View file @
10b74a55
/**
* 通用css样式布局处理
* Copyright (c) 2019 gassafety
*/
/** 基础通用 **/
.pt5
{
padding-top
:
5px
;
}
.pr5
{
padding-right
:
5px
;
}
.pb5
{
padding-bottom
:
5px
;
}
.mt5
{
margin-top
:
5px
;
}
.mr5
{
margin-right
:
5px
;
}
.mb5
{
margin-bottom
:
5px
;
}
.mb8
{
margin-bottom
:
8px
;
}
.ml5
{
margin-left
:
5px
;
}
.mt10
{
margin-top
:
10px
;
}
.mr10
{
margin-right
:
10px
;
}
.mb10
{
margin-bottom
:
10px
;
}
.ml0
{
margin-left
:
10px
;
}
.mt20
{
margin-top
:
20px
;
}
.mr20
{
margin-right
:
20px
;
}
.mb20
{
margin-bottom
:
20px
;
}
.m20
{
margin-left
:
20px
;
}
.el-dialog
:not
(
.is-fullscreen
)
{
margin-top
:
6vh
!
important
;
}
.el-table
{
.el-table__header-wrapper
,
.el-table__fixed-header-wrapper
{
th
{
word-break
:
break-word
;
background-color
:
#f8f8f9
;
color
:
#515a6e
;
height
:
40px
;
font-size
:
13px
;
}
}
.el-table__body-wrapper
{
.el-button
[
class
*=
"el-icon-"
]
+
span
{
margin-left
:
1px
;
}
}
}
/** 表单布局 **/
.form-header
{
font-size
:
15px
;
color
:
#6379bb
;
border-bottom
:
1px
solid
#ddd
;
margin
:
8px
10px
25px
10px
;
padding-bottom
:
5px
}
/** 表格布局 **/
.pagination-container
{
position
:
relative
;
height
:
25px
;
margin-bottom
:
10px
;
margin-top
:
15px
;
padding
:
10px
20px
!
important
;
}
/* tree border */
.tree-border
{
margin-top
:
5px
;
border
:
1px
solid
#e5e6e7
;
background
:
#FFFFFF
none
;
border-radius
:
4px
;
}
.pagination-container
.el-pagination
{
right
:
0
;
position
:
absolute
;
}
.el-table
.fixed-width
.el-button--mini
{
padding-left
:
0
;
padding-right
:
0
;
width
:
inherit
;
}
.el-tree-node__content
>
.el-checkbox
{
margin-right
:
8px
;
}
.list-group-striped
>
.list-group-item
{
border-left
:
0
;
border-right
:
0
;
border-radius
:
0
;
padding-left
:
0
;
padding-right
:
0
;
}
.list-group
{
padding-left
:
0px
;
list-style
:
none
;
}
.list-group-item
{
border-bottom
:
1px
solid
#e7eaec
;
border-top
:
1px
solid
#e7eaec
;
margin-bottom
:
-1px
;
padding
:
11px
0px
;
font-size
:
13px
;
}
.pull-right
{
float
:
right
!
important
;
}
.el-card__header
{
padding
:
14px
15px
7px
;
min-height
:
40px
;
}
.el-card__body
{
padding
:
15px
20px
20px
20px
;
}
.card-box
{
padding-right
:
15px
;
padding-left
:
15px
;
margin-bottom
:
10px
;
}
/* button color */
.el-button--cyan.is-active
,
.el-button--cyan
:active
{
background
:
#20B2AA
;
border-color
:
#20B2AA
;
color
:
#FFFFFF
;
}
.el-button--cyan
:focus
,
.el-button--cyan
:hover
{
background
:
#48D1CC
;
border-color
:
#48D1CC
;
color
:
#FFFFFF
;
}
.el-button--cyan
{
background-color
:
#20B2AA
;
border-color
:
#20B2AA
;
color
:
#FFFFFF
;
}
/* text color */
.text-navy
{
color
:
#1ab394
;
}
.text-primary
{
color
:
inherit
;
}
.text-success
{
color
:
#1c84c6
;
}
.text-info
{
color
:
#23c6c8
;
}
.text-warning
{
color
:
#f8ac59
;
}
.text-danger
{
color
:
#ed5565
;
}
.text-muted
{
color
:
#888888
;
}
/* image */
.img-circle
{
border-radius
:
50%
;
}
.img-lg
{
width
:
120px
;
height
:
120px
;
}
.avatar-upload-preview
{
position
:
absolute
;
top
:
50%
;
transform
:
translate
(
50%
,
-50%
);
width
:
200px
;
height
:
200px
;
border-radius
:
50%
;
box-shadow
:
0
0
4px
#ccc
;
overflow
:
hidden
;
}
/* 拖拽列样式 */
.sortable-ghost
{
opacity
:
.8
;
color
:
#fff
!
important
;
background
:
#42b983
!
important
;
}
.top-right-btn
{
position
:
relative
;
float
:
right
;
}
gassafety-web/src/assets/styles/sidebar.scss
View file @
10b74a55
...
...
@@ -93,7 +93,7 @@
}
&
.theme-dark
.is-active
>
.el-submenu__title
{
color
:
#
5CD9D4
!
important
;
color
:
#
fff
!
important
;
}
&
.nest-menu
.el-submenu
>
.el-submenu__title
,
...
...
@@ -125,7 +125,7 @@
}
.submenu-title-noDropdown
{
padding
:
0
!
important
;
padding
:
0
0
!
important
;
position
:
relative
;
.el-tooltip
{
...
...
@@ -141,7 +141,7 @@
overflow
:
hidden
;
&
>
.el-submenu__title
{
padding
:
0
!
important
;
padding
:
0
0
!
important
;
.svg-icon
{
margin-left
:
20px
;
...
...
gassafety-web/src/layout/components/Sidebar/SidebarItem.vue
View file @
10b74a55
...
...
@@ -105,15 +105,22 @@ export default {
text-overflow
:
ellipsis
!
important
;
background
:
rgba
(
0
,
0
,
0
,
0
);
}
.el-menu-item
:hover
,
.el-menu-item
:focus
,
.is-active
{
.el-menu-item
:hover
{
outline
:
none
;
background-image
:
url("../../../assets/logo/item-background.png")
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
/* background: rgba(0, 0, 0, 0); */
color
:
#fff
!
important
;
color
:
#31EAEA
!
important
;
}
.el-menu-item
:focus
,
.is-active
{
outline
:
none
;
background-image
:
url("../../../assets/logo/item-background.png")
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
/* background: rgba(0, 0, 0, 0); */
color
:
#31EAEA
!
important
;
}
.el-menu--horizontal
>
.el-submenu
.el-submenu__title
:hover
{
background-color
:
rgba
(
0
,
0
,
0
,
0
);
color
:
#fff
;
...
...
gassafety-web/src/router/index.js
View file @
10b74a55
...
...
@@ -106,6 +106,33 @@ export const constantRoutes = [
}
]
},
{
path
:
'/basicsInfo'
,
component
:
Layout
,
hidden
:
true
,
children
:
[
{
path
:
'detail'
,
component
:
(
resolve
)
=>
require
([
'@/views/workOrder/basicsInfo/detail'
],
resolve
),
name
:
'basicsInfo-detail'
,
meta
:
{
title
:
'详情'
}
}
],
},
{
path
:
'/basicsInfo'
,
component
:
Layout
,
hidden
:
true
,
children
:
[
{
path
:
'index'
,
component
:
(
resolve
)
=>
require
([
'@/views/workOrder/basicsInfo/index'
],
resolve
),
name
:
'index'
,
meta
:
{
title
:
'返回'
}
}
]
},
{
path
:
'/gen'
,
component
:
Layout
,
...
...
gassafety-web/src/views/workOrder/basicsInfo/detail.vue
0 → 100644
View file @
10b74a55
This diff is collapsed.
Click to expand it.
gassafety-web/src/views/workOrder/basicsInfo/index.vue
View file @
10b74a55
This diff is collapsed.
Click to expand it.
gassafety-web/src/views/workOrder/feedback/index.vue
View file @
10b74a55
...
...
@@ -111,7 +111,7 @@
<el-table-column
label=
"反馈内容"
align=
"center"
prop=
"contents"
/>
<el-table-column
label=
"反馈时间"
align=
"center"
prop=
"feedbackTime"
width=
"180"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
feedbackTime
,
'{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<span>
{{
parseTime
(
scope
.
row
.
feedbackTime
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"是否存在隐患"
align=
"center"
prop=
"isHiddenDanger"
/>
...
...
@@ -151,10 +151,10 @@
<!-- 添加或修改工单反馈信息对话框 -->
<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
=
"工单
id
"
prop
=
"orderId"
>
<el-form-item
label=
"工单
号
"
prop=
"orderId"
>
<el-input
v-model=
"form.orderId"
placeholder=
"请输入工单id"
/>
</el-form-item>
<
el
-
form
-
item
label
=
"设备
id
"
prop
=
"deviceId"
>
<el-form-item
label=
"设备
编号
"
prop=
"deviceId"
>
<el-input
v-model=
"form.deviceId"
placeholder=
"请输入设备id"
/>
</el-form-item>
<el-form-item
label=
"反馈内容"
prop=
"contents"
>
...
...
gassafety-web/src/views/workOrder/workorder/workorder.vue
0 → 100644
View file @
10b74a55
<
template
>
<div
class=
"app-container workorder"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
label-width=
"68px"
>
<el-form-item
label=
"登录地址"
prop=
"ipaddr"
>
<el-input
v-model=
"queryParams.ipaddr"
placeholder=
"请输入登录地址"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"用户名称"
prop=
"userName"
>
<el-input
v-model=
"queryParams.userName"
placeholder=
"请输入用户名称"
clearable
size=
"small"
@
keyup
.
enter
.
native=
"handleQuery"
/>
</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>
<pagination
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"pageNum"
:limit
.
sync=
"pageSize"
/>
<el-table
v-loading=
"loading"
:data=
"list.slice((pageNum-1)*pageSize,pageNum*pageSize)"
style=
"width: 100%;"
>
<el-table-column
label=
"序号"
type=
"index"
align=
"center"
>
<template
slot-scope=
"scope"
>
<span>
{{
(
pageNum
-
1
)
*
pageSize
+
scope
.
$index
+
1
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"会话编号"
align=
"center"
prop=
"tokenId"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"登录名称"
align=
"center"
prop=
"userName"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"部门名称"
align=
"center"
prop=
"deptName"
/>
<el-table-column
label=
"主机"
align=
"center"
prop=
"ipaddr"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"登录地点"
align=
"center"
prop=
"loginLocation"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"浏览器"
align=
"center"
prop=
"browser"
/>
<el-table-column
label=
"操作系统"
align=
"center"
prop=
"os"
/>
<el-table-column
label=
"登录时间"
align=
"center"
prop=
"loginTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
loginTime
)
}}
</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-delete"
@
click=
"handleForceLogout(scope.row)"
v-hasPermi=
"['monitor:online:forceLogout']"
>
强退
</el-button>
</
template
>
</el-table-column>
</el-table>
<!-- <pagination v-show="total>0" :total="total" :page.sync="pageNum" :limit.sync="pageSize" /> -->
</div>
</template>
<
script
>
import
{
list
,
forceLogout
}
from
"@/api/monitor/online"
;
export
default
{
name
:
"Online"
,
data
()
{
return
{
// 遮罩层
loading
:
true
,
// 总条数
total
:
0
,
// 表格数据
list
:
[],
pageNum
:
1
,
pageSize
:
10
,
// 查询参数
queryParams
:
{
ipaddr
:
undefined
,
userName
:
undefined
}
};
},
created
()
{
this
.
getList
();
},
methods
:
{
/** 查询登录日志列表 */
getList
()
{
this
.
loading
=
true
;
list
(
this
.
queryParams
).
then
(
response
=>
{
this
.
list
=
response
.
rows
;
this
.
total
=
response
.
total
;
this
.
loading
=
false
;
});
},
/** 搜索按钮操作 */
handleQuery
()
{
this
.
pageNum
=
1
;
this
.
getList
();
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
"queryForm"
);
this
.
handleQuery
();
},
/** 强退按钮操作 */
handleForceLogout
(
row
)
{
this
.
$confirm
(
'是否确认强退名称为"'
+
row
.
userName
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
()
{
return
forceLogout
(
row
.
tokenId
);
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"强退成功"
);
}).
catch
(()
=>
{});
}
}
};
</
script
>
<
style
>
.workorder
.pagination-container
[
data-v-72233bcd
]
{
background
:
#fff
;
padding
:
0
;
}
.workorder
.pagination-container
{
position
:
relative
;
height
:
25px
;
margin-bottom
:
10px
;
margin-top
:
15px
;
padding
:
0
!important
;
}
.workorder
.pagination-container
.el-pagination
{
left
:
0
;
position
:
absolute
;
}
.workorder
.el-pagination
{
white-space
:
nowrap
;
padding
:
0
;
color
:
#303133
;
font-weight
:
bold
;
}
</
style
>
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