Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sgaqgl-vue
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
李苏
sgaqgl-vue
Commits
9fe4dea9
Commit
9fe4dea9
authored
Oct 14, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1014
parent
e246088c
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1179 additions
and
37 deletions
+1179
-37
favicon.ico
public/favicon.ico
+0
-0
logo.png
src/assets/logo/logo.png
+0
-0
SidebarItem.vue
src/layout/components/Sidebar/SidebarItem.vue
+3
-3
index.js
src/router/index.js
+28
-14
login.vue
src/views/login.vue
+1
-1
content.vue
src/views/riskPrecontrol/maintenanceRiskTask/content.vue
+130
-0
cycle.vue
src/views/riskPrecontrol/maintenanceRiskTask/cycle.vue
+130
-0
details.vue
src/views/riskPrecontrol/maintenanceRiskTask/details.vue
+173
-0
edit.vue
src/views/riskPrecontrol/maintenanceRiskTask/edit.vue
+94
-0
index.vue
src/views/riskPrecontrol/maintenanceRiskTask/index.vue
+252
-0
personLiable.vue
...views/riskPrecontrol/maintenanceRiskTask/personLiable.vue
+130
-0
details.vue
src/views/riskPrecontrol/screeningCriteria/details.vue
+166
-4
index.vue
src/views/riskPrecontrol/screeningCriteria/index.vue
+72
-15
No files found.
public/favicon.ico
View replaced file @
e246088c
View file @
9fe4dea9
177 KB
|
W:
|
H:
65.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/logo/logo.png
View replaced file @
e246088c
View file @
9fe4dea9
177 KB
|
W:
|
H:
65.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/layout/components/Sidebar/SidebarItem.vue
View file @
9fe4dea9
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
v-if=
"!item.hidden"
>
<div
v-if=
"!item.hidden"
>
<template
v-if=
"hasOneShowingChild(item.children,item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)&&!item.alwaysShow"
>
<template
v-if=
"hasOneShowingChild(item.children,item) && (!onlyOneChild.children||onlyOneChild.noShowingChildren)&&!item.alwaysShow"
>
<app-link
v-if=
"onlyOneChild.meta"
:to=
"resolvePath(onlyOneChild.path, onlyOneChild.query)"
>
<app-link
v-if=
"onlyOneChild.meta"
:to=
"resolvePath(onlyOneChild.path, onlyOneChild.query)"
>
<el-menu-item
:index=
"resolvePath(onlyOneChild.path)"
:class=
"
{'submenu-title-noDropdown':!isNest}">
<el-menu-item
style=
"padding-left: 25px;"
:index=
"resolvePath(onlyOneChild.path)"
:class=
"
{'submenu-title-noDropdown':!isNest}">
<!--
<item
:icon=
"onlyOneChild.meta.icon||(item.meta&&item.meta.icon)"
:title=
"onlyOneChild.meta.title"
/>
-->
<!--
<item
:icon=
"onlyOneChild.meta.icon||(item.meta&&item.meta.icon)"
:title=
"onlyOneChild.meta.title"
/>
-->
<div
style=
"display: inline-block;text-align: center;"
:class=
"
{'open':!sidebar.opened,'close':sidebar.opened}">
<div
style=
"display: inline-block;text-align: center;"
:class=
"
{'open':!sidebar.opened,'close':sidebar.opened}">
...
...
src/router/index.js
View file @
9fe4dea9
...
@@ -96,7 +96,7 @@ export const constantRoutes = [
...
@@ -96,7 +96,7 @@ export const constantRoutes = [
hidden
:
false
,
hidden
:
false
,
alwaysShow
:
true
,
alwaysShow
:
true
,
redirect
:
'noredirect'
,
redirect
:
'noredirect'
,
meta
:
{
title
:
"基础数据"
,
icon
:
"
system
"
,
noCache
:
false
,
link
:
null
,
mkid
:
105000000
},
meta
:
{
title
:
"基础数据"
,
icon
:
"
fa-cog
"
,
noCache
:
false
,
link
:
null
,
mkid
:
105000000
},
children
:
[
children
:
[
{
{
commonComponent
:
'organizationalManagement'
,
commonComponent
:
'organizationalManagement'
,
...
@@ -104,7 +104,7 @@ export const constantRoutes = [
...
@@ -104,7 +104,7 @@ export const constantRoutes = [
hidden
:
false
,
hidden
:
false
,
meta
:{
meta
:{
"title"
:
"组织管理"
,
"title"
:
"组织管理"
,
"icon"
:
"
user
"
,
"icon"
:
""
,
"noCache"
:
false
,
"noCache"
:
false
,
"link"
:
null
,
"link"
:
null
,
"mkid"
:
101001300
,
"mkid"
:
101001300
,
...
@@ -118,7 +118,7 @@ export const constantRoutes = [
...
@@ -118,7 +118,7 @@ export const constantRoutes = [
hidden
:
false
,
hidden
:
false
,
meta
:{
meta
:{
"title"
:
"公告管理"
,
"title"
:
"公告管理"
,
"icon"
:
"
user
"
,
"icon"
:
""
,
"noCache"
:
false
,
"noCache"
:
false
,
"link"
:
null
,
"link"
:
null
,
"mkid"
:
101001300
,
"mkid"
:
101001300
,
...
@@ -132,7 +132,7 @@ export const constantRoutes = [
...
@@ -132,7 +132,7 @@ export const constantRoutes = [
hidden
:
false
,
hidden
:
false
,
meta
:{
meta
:{
"title"
:
"安全文档管理"
,
"title"
:
"安全文档管理"
,
"icon"
:
"
user
"
,
"icon"
:
""
,
"noCache"
:
false
,
"noCache"
:
false
,
"link"
:
null
,
"link"
:
null
,
"mkid"
:
101001300
,
"mkid"
:
101001300
,
...
@@ -146,7 +146,7 @@ export const constantRoutes = [
...
@@ -146,7 +146,7 @@ export const constantRoutes = [
hidden
:
false
,
hidden
:
false
,
meta
:{
meta
:{
"title"
:
"标准作业文档管理"
,
"title"
:
"标准作业文档管理"
,
"icon"
:
"
user
"
,
"icon"
:
""
,
"noCache"
:
false
,
"noCache"
:
false
,
"link"
:
null
,
"link"
:
null
,
"mkid"
:
101001300
,
"mkid"
:
101001300
,
...
@@ -163,7 +163,7 @@ export const constantRoutes = [
...
@@ -163,7 +163,7 @@ export const constantRoutes = [
hidden
:
false
,
hidden
:
false
,
alwaysShow
:
true
,
alwaysShow
:
true
,
redirect
:
'noredirect'
,
redirect
:
'noredirect'
,
meta
:
{
title
:
"隐患管理"
,
icon
:
"
system
"
,
noCache
:
false
,
link
:
null
,
mkid
:
105000000
},
meta
:
{
title
:
"隐患管理"
,
icon
:
"
fa-cog
"
,
noCache
:
false
,
link
:
null
,
mkid
:
105000000
},
children
:
[
children
:
[
{
{
commonComponent
:
'maintenanceDg'
,
commonComponent
:
'maintenanceDg'
,
...
@@ -171,7 +171,7 @@ export const constantRoutes = [
...
@@ -171,7 +171,7 @@ export const constantRoutes = [
hidden
:
false
,
hidden
:
false
,
meta
:{
meta
:{
"title"
:
"维护隐患检查标准"
,
"title"
:
"维护隐患检查标准"
,
"icon"
:
"
user
"
,
"icon"
:
""
,
"noCache"
:
false
,
"noCache"
:
false
,
"link"
:
null
,
"link"
:
null
,
"mkid"
:
101001300
,
"mkid"
:
101001300
,
...
@@ -185,7 +185,7 @@ export const constantRoutes = [
...
@@ -185,7 +185,7 @@ export const constantRoutes = [
hidden
:
false
,
hidden
:
false
,
meta
:{
meta
:{
"title"
:
"录入安全隐患记录"
,
"title"
:
"录入安全隐患记录"
,
"icon"
:
"
user
"
,
"icon"
:
""
,
"noCache"
:
false
,
"noCache"
:
false
,
"link"
:
null
,
"link"
:
null
,
"mkid"
:
101001300
,
"mkid"
:
101001300
,
...
@@ -199,7 +199,7 @@ export const constantRoutes = [
...
@@ -199,7 +199,7 @@ export const constantRoutes = [
hidden
:
false
,
hidden
:
false
,
meta
:{
meta
:{
"title"
:
"安全隐患处理记录"
,
"title"
:
"安全隐患处理记录"
,
"icon"
:
"
user
"
,
"icon"
:
""
,
"noCache"
:
false
,
"noCache"
:
false
,
"link"
:
null
,
"link"
:
null
,
"mkid"
:
101001300
,
"mkid"
:
101001300
,
...
@@ -214,7 +214,7 @@ export const constantRoutes = [
...
@@ -214,7 +214,7 @@ export const constantRoutes = [
hidden
:
false
,
hidden
:
false
,
meta
:{
meta
:{
"title"
:
"录入隐患整改情况"
,
"title"
:
"录入隐患整改情况"
,
"icon"
:
"
user
"
,
"icon"
:
""
,
"noCache"
:
false
,
"noCache"
:
false
,
"link"
:
null
,
"link"
:
null
,
"mkid"
:
101001300
,
"mkid"
:
101001300
,
...
@@ -229,7 +229,7 @@ export const constantRoutes = [
...
@@ -229,7 +229,7 @@ export const constantRoutes = [
hidden
:
false
,
hidden
:
false
,
meta
:{
meta
:{
"title"
:
"录入隐患复查记录"
,
"title"
:
"录入隐患复查记录"
,
"icon"
:
"
user
"
,
"icon"
:
""
,
"noCache"
:
false
,
"noCache"
:
false
,
"link"
:
null
,
"link"
:
null
,
"mkid"
:
101001300
,
"mkid"
:
101001300
,
...
@@ -243,7 +243,7 @@ export const constantRoutes = [
...
@@ -243,7 +243,7 @@ export const constantRoutes = [
hidden
:
false
,
hidden
:
false
,
meta
:{
meta
:{
"title"
:
"查询安全隐患记录"
,
"title"
:
"查询安全隐患记录"
,
"icon"
:
"
user
"
,
"icon"
:
""
,
"noCache"
:
false
,
"noCache"
:
false
,
"link"
:
null
,
"link"
:
null
,
"mkid"
:
101001300
,
"mkid"
:
101001300
,
...
@@ -260,7 +260,7 @@ export const constantRoutes = [
...
@@ -260,7 +260,7 @@ export const constantRoutes = [
hidden
:
false
,
hidden
:
false
,
alwaysShow
:
true
,
alwaysShow
:
true
,
redirect
:
'screeningCriteria'
,
redirect
:
'screeningCriteria'
,
meta
:
{
title
:
"风险预控"
,
icon
:
"
system
"
,
noCache
:
false
,
link
:
null
,
mkid
:
105000000
},
meta
:
{
title
:
"风险预控"
,
icon
:
"
fa-cog
"
,
noCache
:
false
,
link
:
null
,
mkid
:
105000000
},
children
:
[
children
:
[
{
{
commonComponent
:
'screeningCriteria'
,
commonComponent
:
'screeningCriteria'
,
...
@@ -268,13 +268,27 @@ export const constantRoutes = [
...
@@ -268,13 +268,27 @@ export const constantRoutes = [
hidden
:
false
,
hidden
:
false
,
meta
:{
meta
:{
"title"
:
"维护风险排查标准"
,
"title"
:
"维护风险排查标准"
,
"icon"
:
"
user
"
,
"icon"
:
""
,
"noCache"
:
false
,
"noCache"
:
false
,
"link"
:
null
,
"link"
:
null
,
"mkid"
:
101001300
,
"mkid"
:
101001300
,
},
},
name
:
'screeningCriteria'
,
name
:
'screeningCriteria'
,
path
:
"screeningCriteria"
path
:
"screeningCriteria"
},
{
commonComponent
:
'maintenanceRiskTask'
,
component
:()
=>
import
(
"@/views/riskPrecontrol/maintenanceRiskTask/index"
),
hidden
:
false
,
meta
:{
"title"
:
"维护风险排查任务"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
101001300
,
},
name
:
'maintenanceRiskTask'
,
path
:
"maintenanceRiskTask"
}
}
]
]
},
},
...
...
src/views/login.vue
View file @
9fe4dea9
<
template
>
<
template
>
<div
class=
"login"
>
<div
class=
"login"
>
<el-form
ref=
"loginForm"
:model=
"loginForm"
:rules=
"loginRules"
class=
"login-form"
>
<el-form
ref=
"loginForm"
:model=
"loginForm"
:rules=
"loginRules"
class=
"login-form"
>
<h3
class=
"title"
>
格物后台
管理系统
</h3>
<h3
class=
"title"
>
陕钢安全
管理系统
</h3>
<el-form-item
prop=
"username"
>
<el-form-item
prop=
"username"
>
<el-input
<el-input
v-model=
"loginForm.username"
v-model=
"loginForm.username"
...
...
src/views/riskPrecontrol/maintenanceRiskTask/content.vue
0 → 100644
View file @
9fe4dea9
<
template
>
<div
class=
"min_full"
style=
"height: calc(84vh - 75px);"
>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
<!-- 自定义列 slot="tabCustom",格式参照elementUi,自定义事件用this.$refs['TablePager']调用/或者v-slot通信/-->
</TablePager>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
QueryAppversion
,
QueryApptype
,
AddAppversion
,
DelAppversion
,
UpdateAppversion
}
from
"common/src/api/system/dmgSystem.js"
;
/* edit页面*/
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
/* 初始额外赋值*/
async
mounted
()
{
await
this
.
$asRun
(
[
QueryApptype
(),
res
=>
{
var
data
=
res
[
'data'
][
'records'
];
let
typeMap
=
[]
for
(
var
i
in
data
)
{
typeMap
[
data
[
i
].
id
]
=
data
[
i
].
name
}
this
.
systemType
=
data
this
.
typeMap
=
typeMap
}
]
)
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
typeMap
:
[],
systemType
:
[],
baseUrl
:
'kzzx/appversion'
,
/* 查询参数*/
queryParams
:
{},
/* 表格标题对应参数*/
tableTitle
:
[{
prop
:
'appid'
,
label
:
'APPID'
,
width
:
'120'
},
{
prop
:
'name'
,
label
:
'APP名称'
,
width
:
'120'
},
{
prop
:
'type'
,
label
:
'系统类型'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
var
text
=
this
.
typeMap
[
cellValue
]
return
text
;
}
},
{
prop
:
'version'
,
label
:
'app版本'
,
width
:
'120'
},
{
prop
:
'url'
,
label
:
'下载路径'
,
width
:
'350'
},
{
prop
:
'bz'
,
label
:
'备注'
,
width
:
'140'
},
{
prop
:
'whr'
,
label
:
'维护人'
,
width
:
'100'
},
{
prop
:
'whsj'
,
label
:
'维护时间'
,
...
this
.
$common
(
'ftDateTime'
)
},
]
}
},
methods
:
{
/* 基础查询*/
query
:
QueryAppversion
,
/* 基础增*/
apiAdd
:
AddAppversion
,
/* 基础更新*/
apiUpdate
:
UpdateAppversion
,
/* 删除操作*/
apiDelete
:
DelAppversion
,
/* 初始化赋值操作*/
},
/* 注册组件*/
components
:
{
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/riskPrecontrol/maintenanceRiskTask/cycle.vue
0 → 100644
View file @
9fe4dea9
<
template
>
<div
class=
"min_full"
style=
"height: calc(84vh - 75px);"
>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
<!-- 自定义列 slot="tabCustom",格式参照elementUi,自定义事件用this.$refs['TablePager']调用/或者v-slot通信/-->
</TablePager>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
QueryAppversion
,
QueryApptype
,
AddAppversion
,
DelAppversion
,
UpdateAppversion
}
from
"common/src/api/system/dmgSystem.js"
;
/* edit页面*/
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
/* 初始额外赋值*/
async
mounted
()
{
await
this
.
$asRun
(
[
QueryApptype
(),
res
=>
{
var
data
=
res
[
'data'
][
'records'
];
let
typeMap
=
[]
for
(
var
i
in
data
)
{
typeMap
[
data
[
i
].
id
]
=
data
[
i
].
name
}
this
.
systemType
=
data
this
.
typeMap
=
typeMap
}
]
)
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
typeMap
:
[],
systemType
:
[],
baseUrl
:
'kzzx/appversion'
,
/* 查询参数*/
queryParams
:
{},
/* 表格标题对应参数*/
tableTitle
:
[{
prop
:
'appid'
,
label
:
'APPID'
,
width
:
'120'
},
{
prop
:
'name'
,
label
:
'APP名称'
,
width
:
'120'
},
{
prop
:
'type'
,
label
:
'系统类型'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
var
text
=
this
.
typeMap
[
cellValue
]
return
text
;
}
},
{
prop
:
'version'
,
label
:
'app版本'
,
width
:
'120'
},
{
prop
:
'url'
,
label
:
'下载路径'
,
width
:
'350'
},
{
prop
:
'bz'
,
label
:
'备注'
,
width
:
'140'
},
{
prop
:
'whr'
,
label
:
'维护人'
,
width
:
'100'
},
{
prop
:
'whsj'
,
label
:
'维护时间'
,
...
this
.
$common
(
'ftDateTime'
)
},
]
}
},
methods
:
{
/* 基础查询*/
query
:
QueryAppversion
,
/* 基础增*/
apiAdd
:
AddAppversion
,
/* 基础更新*/
apiUpdate
:
UpdateAppversion
,
/* 删除操作*/
apiDelete
:
DelAppversion
,
/* 初始化赋值操作*/
},
/* 注册组件*/
components
:
{
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/riskPrecontrol/maintenanceRiskTask/details.vue
0 → 100644
View file @
9fe4dea9
<
template
>
<div
class=
"form-detail"
>
<el-form
ref=
"form"
label-width=
'auto'
:model=
"form"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"部门或分厂"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"车间"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"岗位"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"地点"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"作业活动设施风险点"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"事故类型"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"危险等级"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"危险分值"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
" 风险类型"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"管控措施落实后等级"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"管理层级"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"拍照选项"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"检查要点"
>
<el-input
type=
"textarea"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"危害因素"
>
<el-input
type=
"textarea"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"事故后果"
>
<el-input
type=
"textarea"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"检查措施描述"
>
<el-input
type=
"textarea"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"备注"
>
<el-input
type=
"textarea"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"序号"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"图形编号"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"措施类型"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"基准精度"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"基准维度"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"责任人"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
methods
:
{
}
}
}
}
</
script
>
<
style
scoped
>
.form-detail
{
height
:
500px
;
width
:
100%
;
overflow-y
:
auto
;
overflow-x
:
hidden
;
}
</
style
>
src/views/riskPrecontrol/maintenanceRiskTask/edit.vue
0 → 100644
View file @
9fe4dea9
<
template
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<!-- 填写表单内容,slot=form必写-->
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"80px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"标题"
ref=
"roleid"
prop=
"roleid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"内容"
ref=
"roleid"
prop=
"roleid"
>
<el-input
:readonly=
"readonly"
type=
"textarea"
v-model=
"form.roleid"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"有效期至"
>
<el-date-picker
style=
"width: 100%;"
type=
"date"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"编制单位"
>
<el-select
placeholder=
"请选择"
style=
"width: 100%;"
>
<!--
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
-->
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
<!-- 按钮重写, -->
<!--
<div
slot=
"reFooter"
>
<span
slot=
"footer"
>
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div>
-->
</RelDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
'roleManagementEdit'
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
roleid
:
''
,
rolename
:
''
,
bz
:
""
,
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
roleid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
rolename
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
},
methods
:
{
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
src/views/riskPrecontrol/maintenanceRiskTask/index.vue
0 → 100644
View file @
9fe4dea9
<
template
>
<div
class=
"min_full"
style=
"height: 140vh;"
>
<div
class=
"min_full"
style=
"height: 40%;"
>
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
岗位:
</span>
<el-input
style=
"width:60% ;"
></el-input>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
设备设施风险点:
</span>
<el-input></el-input>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
</TablePager>
</div>
</div>
<div
class=
"min_full"
style=
"height: 60%;padding: 10px;"
>
<!-- tabs -->
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"详细"
name=
"first"
>
<Details
/>
</el-tab-pane>
<el-tab-pane
label=
"检查周期"
name=
"second"
>
<Cycle
/>
</el-tab-pane>
<el-tab-pane
label=
"检查内容"
name=
"third"
>
<Content
/>
</el-tab-pane>
<el-tab-pane
label=
"责任人"
name=
"fourth"
>
<PersonLiable
/>
</el-tab-pane>
</el-tabs>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
QueryKzzxRole
,
QueryApptype
,
AddKzzxRole
,
DeleteKzzxRole
,
UpdateKzzxRole
,
QtKzzxRole
}
from
"common/src/api/system/dmgSystem.js"
;
/* edit页面*/
import
Edit
from
'./edit'
import
Details
from
'./details.vue'
import
Cycle
from
'./cycle.vue'
import
Content
from
'./content.vue'
import
PersonLiable
from
'./personLiable.vue'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
activeName
:
'first'
,
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'kzzx/role'
,
/* 查询参数*/
queryParams
:
{
ksrq
:
''
,
jsrq
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
'whsj'
,
label
:
'时间'
,
show
:
false
,
fieldType
:
'ftDateTime'
,
width
:
'100'
,
align
:
'left'
},
{
prop
:
'whsj'
,
label
:
'车间'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'whr'
,
label
:
'岗位'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'地点'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'作业活动设施风险点'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'事故类型'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'危险等级'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'危险分值'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'风险类型'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'管控措施落实后等级'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'管理层级'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'拍照选项'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'序号'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'图形编号'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'措施类型'
,
width
:
'100'
}
]
}
},
methods
:
{
handleClick
(
val
){
console
.
log
(
val
,
'val'
)
},
/* 基础查询*/
query
:
QueryKzzxRole
,
/* 基础增*/
apiAdd
:
AddKzzxRole
,
/* 基础更新*/
apiUpdate
:
UpdateKzzxRole
,
/* 删除操作*/
apiDelete
:
DeleteKzzxRole
,
/* 初始化赋值操作*/
init
()
{
},
/* 启用停用*/
setEnable
(
id
)
{
this
.
$confirm
(
'是否启用/停用该角色, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
let
params
=
{
id
:
id
}
QtKzzxRole
(
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
this
.
app
.
$refs
[
'TablePager'
].
reLoad
()
}
else
{
this
.
$error
(
res
.
message
||
'操作失败'
)
}
})
})
}
},
components
:
{
Edit
,
Details
,
Cycle
,
PersonLiable
,
Content
}
}
</
script
>
<
style
scoped
>
/
deep
/
.el-tabs__item
{
font-size
:
13px
;
color
:
#666
;
}
</
style
>
src/views/riskPrecontrol/maintenanceRiskTask/personLiable.vue
0 → 100644
View file @
9fe4dea9
<
template
>
<div
class=
"min_full"
style=
"height: calc(84vh - 75px);"
>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
<!-- 自定义列 slot="tabCustom",格式参照elementUi,自定义事件用this.$refs['TablePager']调用/或者v-slot通信/-->
</TablePager>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
QueryAppversion
,
QueryApptype
,
AddAppversion
,
DelAppversion
,
UpdateAppversion
}
from
"common/src/api/system/dmgSystem.js"
;
/* edit页面*/
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
/* 初始额外赋值*/
async
mounted
()
{
await
this
.
$asRun
(
[
QueryApptype
(),
res
=>
{
var
data
=
res
[
'data'
][
'records'
];
let
typeMap
=
[]
for
(
var
i
in
data
)
{
typeMap
[
data
[
i
].
id
]
=
data
[
i
].
name
}
this
.
systemType
=
data
this
.
typeMap
=
typeMap
}
]
)
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
typeMap
:
[],
systemType
:
[],
baseUrl
:
'kzzx/appversion'
,
/* 查询参数*/
queryParams
:
{},
/* 表格标题对应参数*/
tableTitle
:
[{
prop
:
'appid'
,
label
:
'APPID'
,
width
:
'120'
},
{
prop
:
'name'
,
label
:
'APP名称'
,
width
:
'120'
},
{
prop
:
'type'
,
label
:
'系统类型'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
var
text
=
this
.
typeMap
[
cellValue
]
return
text
;
}
},
{
prop
:
'version'
,
label
:
'app版本'
,
width
:
'120'
},
{
prop
:
'url'
,
label
:
'下载路径'
,
width
:
'350'
},
{
prop
:
'bz'
,
label
:
'备注'
,
width
:
'140'
},
{
prop
:
'whr'
,
label
:
'维护人'
,
width
:
'100'
},
{
prop
:
'whsj'
,
label
:
'维护时间'
,
...
this
.
$common
(
'ftDateTime'
)
},
]
}
},
methods
:
{
/* 基础查询*/
query
:
QueryAppversion
,
/* 基础增*/
apiAdd
:
AddAppversion
,
/* 基础更新*/
apiUpdate
:
UpdateAppversion
,
/* 删除操作*/
apiDelete
:
DelAppversion
,
/* 初始化赋值操作*/
},
/* 注册组件*/
components
:
{
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/riskPrecontrol/screeningCriteria/details.vue
View file @
9fe4dea9
<
template
>
<
template
>
<div>
<div
class=
"form-detail"
>
details
<el-form
ref=
"form"
label-width=
'auto'
:model=
"form"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"部门或分厂"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"车间"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"岗位"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"地点"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"作业活动设施风险点"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"事故类型"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"危险等级"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"危险分值"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
" 风险类型"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"管控措施落实后等级"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"管理层级"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"拍照选项"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"检查要点"
>
<el-input
type=
"textarea"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"危害因素"
>
<el-input
type=
"textarea"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"事故后果"
>
<el-input
type=
"textarea"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"检查措施描述"
>
<el-input
type=
"textarea"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"备注"
>
<el-input
type=
"textarea"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"序号"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"图形编号"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"措施类型"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"基准精度"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"基准维度"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"责任人"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
data
()
{
return
{
methods
:
{
}
}
}
}
</
script
>
</
script
>
<
style
>
<
style
scoped
>
.form-detail
{
height
:
500px
;
width
:
100%
;
overflow-y
:
auto
;
overflow-x
:
hidden
;
}
</
style
>
</
style
>
src/views/riskPrecontrol/screeningCriteria/index.vue
View file @
9fe4dea9
...
@@ -9,16 +9,14 @@
...
@@ -9,16 +9,14 @@
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"6"
class=
"search-col"
>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
开始日期:
</span>
<span
class=
"search-span"
>
岗位:
</span>
<el-date-picker
v-model=
"queryParams.ksrq"
type=
"date"
placeholder=
"选择日期"
>
<el-input
style=
"width:60% ;"
></el-input>
</el-date-picker>
</div>
</div>
</el-col>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
结束日期:
</span>
<span
class=
"search-span"
>
设备设施风险点:
</span>
<el-date-picker
v-model=
"queryParams.jsrq"
type=
"date"
placeholder=
"选择日期"
>
<el-input></el-input>
</el-date-picker>
</div>
</div>
</el-col>
</el-col>
...
@@ -93,6 +91,7 @@
...
@@ -93,6 +91,7 @@
/* 初始额外赋值*/
/* 初始额外赋值*/
async
mounted
()
{
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
this
.
$refs
[
'TablePager'
].
pageQuery
()
console
.
log
(
_
)
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -110,36 +109,94 @@
...
@@ -110,36 +109,94 @@
jsrq
:
''
jsrq
:
''
},
},
/* 表格标题对应参数*/
/* 表格标题对应参数*/
tableTitle
:
[{
tableTitle
:
[
{
prop
:
'whsj'
,
prop
:
'whsj'
,
label
:
'公告日期'
,
label
:
'时间'
,
...
this
.
$common
(
'ftDateTime'
)
show
:
false
,
fieldType
:
'ftDateTime'
,
width
:
'100'
,
align
:
'left'
},
},
{
{
prop
:
'whsj'
,
prop
:
'whsj'
,
label
:
'
有效期至
'
,
label
:
'
车间
'
,
...
this
.
$common
(
'ftDateTime'
)
...
this
.
$common
(
'ftDateTime'
)
},
},
{
{
prop
:
'whr'
,
prop
:
'whr'
,
label
:
'标题'
,
label
:
'岗位'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'地点'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'作业活动设施风险点'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'事故类型'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'危险等级'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'危险分值'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'风险类型'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'管控措施落实后等级'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'管理层级'
,
width
:
'100'
width
:
'100'
},
},
{
{
prop
:
'whr'
,
prop
:
'whr'
,
label
:
'
编制单位'
,
label
:
'
拍照选项'
,
width
:
'100'
width
:
'100'
},
},
{
{
prop
:
'whr'
,
prop
:
'whr'
,
label
:
'内容'
,
label
:
'序号'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'图形编号'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'措施类型'
,
width
:
'100'
width
:
'100'
}
}
]
]
}
}
},
},
methods
:
{
methods
:
{
handleClick
(
val
){
console
.
log
(
val
,
'val'
)
},
/* 基础查询*/
/* 基础查询*/
query
:
QueryKzzxRole
,
query
:
QueryKzzxRole
,
/* 基础增*/
/* 基础增*/
...
...
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