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
5206520d
Commit
5206520d
authored
Nov 18, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增风险设置
parent
1b5745ef
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
546 additions
and
5 deletions
+546
-5
riskSet.js
src/api/riskPrecontrol/riskSet.js
+39
-0
index.js
src/router/index.js
+14
-0
permission.js
src/store/modules/permission.js
+1
-1
login.vue
src/views/login.vue
+1
-4
edit.vue
src/views/riskPrecontrol/riskSet/edit.vue
+241
-0
index.vue
src/views/riskPrecontrol/riskSet/index.vue
+121
-0
selecter.vue
src/views/riskPrecontrol/riskSet/selecter.vue
+129
-0
No files found.
src/api/riskPrecontrol/riskSet.js
0 → 100644
View file @
5206520d
import
request
from
'common/src/utils/request'
export
function
doQuery
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/fxsz/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/* 更新 */
export
function
doUpdate
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/fxsz/update'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doAdd
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/fxsz/add'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doDelete
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/fxsz/delete'
,
method
:
'post'
,
data
:
query
||
{}
})
}
// 细节
export
function
doQueryDetail
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/fxsz/query/detail'
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/router/index.js
View file @
5206520d
...
...
@@ -306,7 +306,21 @@ export const powerRoutes=[
},
name
:
'queryRisk'
,
path
:
"queryRisk"
},
{
component
:
'riskPrecontrol/riskSet/index'
,
hidden
:
false
,
meta
:{
"title"
:
"风险设置"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
'903000300'
,
},
name
:
'riskSet'
,
path
:
"riskSet"
}
]
},
/* 三违管理*/
...
...
src/store/modules/permission.js
View file @
5206520d
...
...
@@ -87,7 +87,7 @@ const permission = {
(
item
)
=>
{
let
hasMkid
=
false
asymenus
.
forEach
(
e
=>
{
if
(
e
.
mkid
==
item
.
meta
.
mkid
){
if
(
(
e
.
mkid
==
item
.
meta
.
mkid
)
||
(
item
.
meta
.
mkid
==
'test'
)
){
item
.
meta
.
icon
=
e
.
icon
/* 额外参数*/
e
.
mkid
&&
(
item
.
mkid
=
e
.
mkid
)
...
...
src/views/login.vue
View file @
5206520d
<
template
>
<div
class=
"login"
>
<!--
<div
class=
"newTitle"
>
</div>
-->
<vue-particles
class=
"login-bg"
color=
"#34a4ea"
...
...
@@ -22,7 +19,7 @@
clickMode=
"push"
>
</vue-particles>
<el-form
ref=
"loginForm"
:model=
"loginForm"
:rules=
"loginRules"
class=
"login-form"
style=
"position:
relativ
e;background-color:rgba(0, 0, 0, 0.4) ;"
>
<el-form
ref=
"loginForm"
:model=
"loginForm"
:rules=
"loginRules"
class=
"login-form"
style=
"position:
absolut
e;background-color:rgba(0, 0, 0, 0.4) ;"
>
<ul
class=
"bg-bubbles"
>
<li
v-for=
"i in 10"
:key=
"i"
></li>
</ul>
...
...
src/views/riskPrecontrol/riskSet/edit.vue
0 → 100644
View file @
5206520d
This diff is collapsed.
Click to expand it.
src/views/riskPrecontrol/riskSet/index.vue
0 → 100644
View file @
5206520d
<
template
>
<div
class=
"min_full"
>
<!-- 查询条件-->
<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
v-model=
"queryParams.name"
></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>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
,
doQueryDetail
}
from
'@/api/riskPrecontrol/riskSet'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'maintenanceRisk'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'/aqgl/fxsj'
,
/* 查询参数*/
queryParams
:
{
name
:
''
,
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"名称"
,
prop
:
"name"
},
{
label
:
"岗位"
,
prop
:
"gwid"
,
transform
:{
url
:
'/aqgl/jcsj/scgw/query'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"描述"
,
prop
:
"desc"
,
width
:
230
},
{
label
:
"上次执行时间"
,
prop
:
"pretime"
,
width
:
200
},
{
label
:
"下次执行时间"
,
prop
:
"nexttime"
,
width
:
200
},
{
label
:
"状态"
,
prop
:
"status"
,
width
:
90
,
formatter
:
function
(
a
,
b
,
value
)
{
var
map
=
{
1
:
"正在运行"
,
0
:
"停止"
};
return
map
[
value
]
||
map
[
0
];
}},
{
label
:
"执行结果"
,
prop
:
"result"
,
width
:
390
}
]
}
},
methods
:
{
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* 初始化赋值操作*/
queryDetail
:
doQueryDetail
,
init
()
{
},
},
components
:
{
Edit
,
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/riskPrecontrol/riskSet/selecter.vue
0 → 100644
View file @
5206520d
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"height: 70vh;"
>
<!-- 按钮-->
<div
style=
'height:100%;width: 100%;'
>
<TablePager
:delButton=
'false'
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'this'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
</TablePager>
</div>
<!-- 表格-->
</div>
<div
slot=
"reFooter"
class=
"refooter"
>
<span
slot=
"footer"
class=
"dialog-footer"
style=
"position: absolute;right: 10px;top: 12px;"
>
<el-button
@
click=
"app.showDialog=false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"save()"
>
保 存
</el-button>
</span>
</div>
</DefaultDialog>
</
template
>
<
script
>
import
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
,
doQueryJcnr
,
doAddJcnr
,
doUpdateJcnr
,
doDeleteJcnr
,
doAutoGen
,
doQueryScgw
}
from
"@/api/riskPrecontrol/screeningCriteria.js"
;
import
{
tableMixin_noapp
}
from
'common'
export
default
{
mixins
:[
tableMixin_noapp
],
props
:
{
app
:
{
type
:
Object
,
default
:
{}
}
},
async
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
})
},
methods
:
{
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
save
(){
if
(
this
.
multipleSelection
.
length
==
0
){
this
.
$warning
(
'请勾选一条数据'
)
return
}
else
{
let
idList
=
[]
this
.
app
.
formDetail
.
forEach
(
e
=>
{
idList
.
push
(
e
.
id
)
})
this
.
multipleSelection
.
forEach
(
item
=>
{
item
.
fxbzid
=
item
.
id
item
.
id
=
''
})
let
addData
=
this
.
multipleSelection
.
filter
((
item
)
=>
{
if
(
idList
.
indexOf
(
item
.
fxbzid
)
==-
1
){
return
true
}
else
{
return
false
}
})
this
.
app
.
formDetail
=
[...
this
.
app
.
formDetail
,...
addData
]
console
.
log
(
this
.
app
.
formDetail
)
this
.
app
.
showDialog
=
false
}
}
},
data
()
{
return
{
queryParams
:{},
tableTitle
:
[
{
label
:
"部门"
,
prop
:
"bmName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"车间"
,
prop
:
"cjName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"岗位"
,
prop
:
"gwName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"风险地点"
,
prop
:
"fxpcdd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"风险点"
,
prop
:
"fxd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"事故类型"
,
prop
:
"sglx"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"危险等级"
,
prop
:
"wxdj"
,
fieldType
:
"ftString"
,
width
:
160
,
transform
:{
url
:
'/aqgl/fxyk/fxpc/init/wxdj'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"分值"
,
prop
:
"fz"
,
fieldType
:
"float"
},
{
label
:
"风险类型"
,
prop
:
"fxlx"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"管控落实后等级"
,
prop
:
"lsdj"
,
fieldType
:
"ftString"
,
width
:
160
},
{
label
:
"管理层级"
,
prop
:
"glcj"
,
width
:
160
,
transform
:{
url
:
'/aqgl/fxyk/fxpc/init/glcj'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"拍照选项"
,
prop
:
"pzxx"
,
fieldType
:
"ftString"
,
width
:
160
,
transform
:{
url
:
'/aqgl/fxyk/fxpc/init/pzxx'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"序号"
,
prop
:
"xh"
,
fieldType
:
"int"
},
{
label
:
"图形编号"
,
prop
:
"txcode"
,
fieldType
:
"ftString"
,
width
:
180
},
{
label
:
"措施类型"
,
prop
:
"cslx"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "基准精度", prop: "jzjd", fieldType: "ftString",width:160},
// {label: "基准维度", prop: "jzwd", fieldType: "ftString",width:160},
// {label: "检查要点", prop: "jcyd", fieldType: "ftString",width:300},
// {label: "危害因素", prop: "whys", fieldType: "ftString",width:300},
// {label: "事故后果", prop: "sghg", fieldType: "ftString",width:300},
// {label: "检查措施描述", prop: "jccsms", fieldType: "ftString",width:300},
// {label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "责任人", prop: "zrr", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
// {label: "创建人", prop: "cjr", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
],
baseUrl
:
'/aqgl/fxyk/fxbz'
,
}
}
}
</
script
>
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