Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rongtong-pc
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
融通安全管理系统
rongtong-pc
Commits
6f66ea77
Commit
6f66ea77
authored
Mar 04, 2024
by
kaitly205422@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc列表字段与权限修改
parent
cfe6c6ee
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
219 additions
and
524 deletions
+219
-524
src/components/DictTag/index.vue
src/components/DictTag/index.vue
+8
-17
src/views/law/law/index.vue
src/views/law/law/index.vue
+35
-101
src/views/risk/currentProject/projectPost.vue
src/views/risk/currentProject/projectPost.vue
+26
-12
src/views/risk/existing/index.vue
src/views/risk/existing/index.vue
+85
-295
src/views/risk/inherent/index.vue
src/views/risk/inherent/index.vue
+34
-77
src/views/riskLedger/component/table.vue
src/views/riskLedger/component/table.vue
+31
-22
No files found.
src/components/DictTag/index.vue
View file @
6f66ea77
...
...
@@ -2,25 +2,15 @@
<div>
<template
v-for=
"(item, index) in options"
>
<template
v-if=
"values.includes(item.value)"
>
<span
v-if=
"item.raw.listClass == 'default' || item.raw.listClass == ''"
:key=
"item.value"
:index=
"index"
:class=
"item.raw.cssClass"
>
{{
item
.
label
+
"
"
}}
</span
>
<el-tag
v-else
:disable-transitions=
"true"
:key=
"item.value"
:index=
"index"
:type=
"item.raw.listClass == 'primary' ? '' : item.raw.listClass"
:class=
"item.raw.cssClass"
>
{{
item
.
label
+
"
"
}}
<span
v-if=
"item.raw.listClass == 'default' || item.raw.listClass == ''"
:key=
"item.value"
:index=
"index"
:class=
"item.raw.cssClass"
>
{{
item
.
label
+
"
"
||
item
.
dictLabel
}}
</span>
<el-tag
v-else
:disable-transitions=
"true"
:key=
"item.value"
:index=
"index"
:type=
"item.raw.listClass == 'primary' ? '' : item.raw.listClass"
:class=
"item.raw.cssClass"
>
{{
item
.
label
+
"
"
||
item
.
dictLabel
}}
</el-tag>
</
template
>
</template>
<
template
v-if=
"unmatch && showValue"
>
{{
unmatchArray
|
handleArray
}}
</
template
>
...
...
@@ -85,8 +75,9 @@ export default {
}
};
</
script
>
<
style
scoped
>
.el-tag
+
.el-tag
{
.el-tag
+
.el-tag
{
margin-left
:
10px
;
}
</
style
>
src/views/law/law/index.vue
View file @
6f66ea77
...
...
@@ -2,42 +2,21 @@
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"标题"
prop=
"name"
>
<el-input
v-model=
"queryParams.name"
placeholder=
"请输入标题"
clearable
@
keyup.enter.native=
"handleQuery"
/>
<el-input
v-model=
"queryParams.name"
placeholder=
"请输入标题"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"简述"
prop=
"sketch"
>
<el-input
v-model=
"queryParams.sketch"
placeholder=
"请输入简述"
clearable
@
keyup.enter.native=
"handleQuery"
/>
<el-input
v-model=
"queryParams.sketch"
placeholder=
"请输入简述"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"范围"
prop=
"range"
>
<el-input
v-model=
"queryParams.range"
placeholder=
"请输入范围"
clearable
@
keyup.enter.native=
"handleQuery"
/>
<el-input
v-model=
"queryParams.range"
placeholder=
"请输入范围"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"颁布日期"
prop=
"issueDate"
>
<el-date-picker
clearable
v-model=
"queryParams.issueDate"
type=
"date"
value-format=
"yyyy-MM-dd"
<el-date-picker
clearable
v-model=
"queryParams.issueDate"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"请选择颁布日期"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"实施日期"
prop=
"implementationDate"
>
<el-date-picker
clearable
v-model=
"queryParams.implementationDate"
type=
"date"
value-format=
"yyyy-MM-dd"
<el-date-picker
clearable
v-model=
"queryParams.implementationDate"
type=
"date"
value-format=
"yyyy-MM-dd"
placeholder=
"请选择实施日期"
>
</el-date-picker>
</el-form-item>
...
...
@@ -49,55 +28,29 @@
<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=
"['system:law:add']"
>
新增
</el-button>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['system:law: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=
"['system:law:edit']"
>
修改
</el-button>
<el-button
type=
"success"
plain
icon=
"el-icon-edit"
size=
"mini"
:disabled=
"single"
@
click=
"handleUpdate"
v-hasPermi=
"['system:law: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=
"['system:law:remove']"
>
删除
</el-button>
<el-button
type=
"danger"
plain
icon=
"el-icon-delete"
size=
"mini"
:disabled=
"multiple"
@
click=
"handleDelete"
v-hasPermi=
"['system:law: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=
"['system:law:export']"
>
导出
</el-button>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
v-hasPermi=
"['system:law:export']"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
<el-table
v-loading=
"loading"
:data=
"listList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"
$
{comment}
" align="center" prop="id" />
<el-table-column
label=
"标题"
align=
"center"
prop=
"name"
/>
<el-table-column
label=
"类型"
align=
"center"
prop=
"type"
/>
<el-table-column
label=
"
序号"
width=
"100px
"
align=
"center"
prop=
"id"
/>
<el-table-column
label=
"标题"
prop=
"name"
/>
<
!--
<
el-table-column
label=
"类型"
align=
"center"
prop=
"type"
/>
<el-table-column
label=
"简述"
align=
"center"
prop=
"sketch"
/>
<el-table-column
label=
"范围"
align=
"center"
prop=
"range"
/>
<el-table-column
label=
"规范性引用文件"
align=
"center"
prop=
"normativeReferences"
/>
...
...
@@ -105,39 +58,26 @@
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
issueDate
,
'
{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
实施日期
"
align
=
"
center
"
prop
=
"
implementationDate
"
width
=
"
180
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
实施日期
"
align
=
"
center
"
prop
=
"
implementationDate
"
width
=
"
180
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
span
>
{{
parseTime
(
scope
.
row
.
implementationDate
,
'
{y
}
-{m
}
-{d
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"
操作
"
align
=
"
center
"
class
-
name
=
"
small-padding fixed-width
"
>
<
/el-table-column> --
>
<
el
-
table
-
column
label
=
"
操作
"
width
=
"
200px
"
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
=
"
['system:law:edit']
"
>
修改
<
/el-button
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-delete
"
@
click
=
"
handleDelete(scope.row)
"
v
-
hasPermi
=
"
['system:law:remove']
"
>
删除
<
/el-button
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-edit
"
@
click
=
"
handleUpdate(scope.row)
"
v
-
hasPermi
=
"
['system:law:edit']
"
>
修改
<
/el-button
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-delete
"
@
click
=
"
handleDelete(scope.row)
"
v
-
hasPermi
=
"
['system:law: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
"
/>
<
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
>
...
...
@@ -155,18 +95,12 @@
<
el
-
input
v
-
model
=
"
form.normativeReferences
"
type
=
"
textarea
"
placeholder
=
"
请输入内容
"
/>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
颁布日期
"
prop
=
"
issueDate
"
>
<
el
-
date
-
picker
clearable
v
-
model
=
"
form.issueDate
"
type
=
"
date
"
value
-
format
=
"
yyyy-MM-dd
"
<
el
-
date
-
picker
clearable
v
-
model
=
"
form.issueDate
"
type
=
"
date
"
value
-
format
=
"
yyyy-MM-dd
"
placeholder
=
"
请选择颁布日期
"
>
<
/el-date-picker
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"
实施日期
"
prop
=
"
implementationDate
"
>
<
el
-
date
-
picker
clearable
v
-
model
=
"
form.implementationDate
"
type
=
"
date
"
value
-
format
=
"
yyyy-MM-dd
"
<
el
-
date
-
picker
clearable
v
-
model
=
"
form.implementationDate
"
type
=
"
date
"
value
-
format
=
"
yyyy-MM-dd
"
placeholder
=
"
请选择实施日期
"
>
<
/el-date-picker
>
<
/el-form-item
>
...
...
@@ -276,7 +210,7 @@ export default {
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
id
)
this
.
single
=
selection
.
length
!==
1
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
}
,
/** 新增按钮操作 */
...
...
@@ -318,12 +252,12 @@ export default {
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
ids
=
row
.
id
||
this
.
ids
;
this
.
$modal
.
confirm
(
'
是否确认删除法律法规库编号为"
'
+
ids
+
'
"的数据项?
'
).
then
(
function
()
{
this
.
$modal
.
confirm
(
'
是否确认删除法律法规库编号为"
'
+
ids
+
'
"的数据项?
'
).
then
(
function
()
{
return
delList
(
ids
);
}
).
then
(()
=>
{
this
.
getList
();
this
.
$modal
.
msgSuccess
(
"
删除成功
"
);
}
).
catch
(()
=>
{
}
);
}
).
catch
(()
=>
{
}
);
}
,
/** 导出按钮操作 */
handleExport
()
{
...
...
src/views/risk/currentProject/projectPost.vue
View file @
6f66ea77
...
...
@@ -2,7 +2,8 @@
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"岗位名称"
prop=
"riskPostName"
>
<el-input
v-model=
"queryParams.riskPostName"
placeholder=
"请输入岗位名称"
clearable
@
keyup.enter.native=
"handleQuery"
/>
<el-input
v-model=
"queryParams.riskPostName"
placeholder=
"请输入岗位名称"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
...
...
@@ -36,8 +37,9 @@
<div
class=
"row"
>
<!-- 职位和数据 -->
<el-col
:span=
"16"
>
<div
class=
"con-role"
><span
class=
"span-title"
:data-myTitle=
"item.riskPostName"
>
{{
item
.
riskPostName
?
(
item
.
riskPostName
.
length
>
15
?
item
.
riskPostName
.
substring
(
0
,
15
)
+
'
...
'
:
item
.
riskPostName
)
:
'
暂无数据
'
}}
</span>
<div
class=
"con-role"
><span
class=
"span-title"
:data-myTitle=
"item.riskPostName"
>
{{
item
.
riskPostName
?
(
item
.
riskPostName
.
length
>
15
?
item
.
riskPostName
.
substring
(
0
,
15
)
+
'
...
'
:
item
.
riskPostName
)
:
'
暂无数据
'
}}
</span>
</div>
</el-col>
<el-col
:span=
"8"
>
...
...
@@ -45,14 +47,16 @@
</el-col>
<!-- 说明 -->
<el-col
:span=
"24"
>
<div
class=
"con-explain"
><span
class=
"span-title"
:data-myTitle=
"item.riskPostDesc"
>
{{
item
.
riskPostDesc
?
(
item
.
riskPostDesc
.
length
>
15
?
item
.
riskPostDesc
.
substring
(
0
,
15
)
+
'
...
'
:
item
.
riskPostDesc
)
:
'
暂无数据
'
}}
</span>
<div
class=
"con-explain"
><span
class=
"span-title"
:data-myTitle=
"item.riskPostDesc"
>
{{
item
.
riskPostDesc
?
(
item
.
riskPostDesc
.
length
>
15
?
item
.
riskPostDesc
.
substring
(
0
,
15
)
+
'
...
'
:
item
.
riskPostDesc
)
:
'
暂无数据
'
}}
</span>
</div>
</el-col>
<!-- 姓名 -->
<el-col
:span=
"24"
>
<div
class=
"con-user"
><span
class=
"span-title"
:data-myTitle=
"item.nickName"
>
{{
item
.
nickName
?
(
item
.
nickName
.
length
>
15
?
item
.
nickName
.
substring
(
0
,
15
)
+
'
...
'
:
item
.
nickName
)
:
'
暂无数据
'
}}
</span>
<div
class=
"con-user"
><span
class=
"span-title"
:data-myTitle=
"item.nickName"
>
{{
item
.
nickName
?
(
item
.
nickName
.
length
>
15
?
item
.
nickName
.
substring
(
0
,
15
)
+
'
...
'
:
item
.
nickName
)
:
'
暂无数据
'
}}
</span>
</div>
</el-col>
<!-- 操作 -->
...
...
@@ -116,9 +120,9 @@
<span
style=
"display:inline-block;margin-right:10px;line-height:15px;background-color:#1890FF;padding:5px 10px;color:#fff;"
v-for=
"(item, index) in listForm.currentRiskTypeList"
:key=
"index"
>
{{
item
.
type
||
item
.
currentRiskType
}}
</span>
item
.
currentRiskType
}}
</span>
</div>
<el-button
type=
"primary"
@
click=
"getPatrolLibrary"
style=
"height:35px"
>
隐患清单库
</el-button>
<el-button
type=
"primary"
@
click=
"getPatrolLibrary"
style=
"height:35px"
>
风险台账
</el-button>
</el-form-item>
<el-form-item
label=
"岗位清单配置"
prop=
"hdType"
v-if=
"listForm.postState == '1'"
>
<el-table
:data=
"listUserTabel"
empty-text=
"暂无数据,请先在‘基础信息’中选择岗位成员!"
>
...
...
@@ -131,12 +135,14 @@
</
template
>
</el-table-column>
<el-table-column
label=
"巡查清单"
align=
"center"
prop=
"postNameShow"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
v-for=
"(item, index) in scope.row.postNameShow"
:key=
"index"
>
{{
item
.
type
||
item
.
currentRiskType
}}
</el-button>
<el-button
size=
"mini"
type=
"text"
v-for=
"(item, index) in scope.row.postNameShow"
:key=
"index"
>
{{
item
.
type
||
item
.
currentRiskType
}}
</el-button>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
width=
"140"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"selectList(scope.row, scope.$index)"
>
清单库选择
</el-button>
...
...
@@ -159,25 +165,32 @@
<el-table-column
type=
"selection"
width=
"55"
:reserve-selection=
"true"
>
</el-table-column>
<el-table-column
label=
"场所位置"
width=
"200"
show-overflow-tooltip
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
buildingName
}}{{
scope
.
row
.
floorName
}}{{
scope
.
row
.
roomName
}}
</
template
>
}}
</
template
>
</el-table-column>
<el-table-column
label=
"风险源"
width=
"120"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
name
}}
</
template
>
</el-table-column>
<el-table-column
label=
"辨识标准"
width=
"120"
show-overflow-tooltip
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
referenceBasis
}}
</
template
>
</el-table-column>
<el-table-column
label=
"存在部位"
width=
"120"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
presenceLocation
}}
</
template
>
</el-table-column>
<el-table-column
label=
"风险类型(GB6441)"
width=
"120"
show-overflow-tooltip
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
type
}}
</
template
>
</el-table-column>
<el-table-column
label=
"风险等级"
width=
"120"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
level
}}
</
template
>
</el-table-column>
<el-table-column
label=
"周期"
width=
"120"
align=
"center"
prop=
"cycle"
>
<
template
slot-scope=
"scope"
>
<el-select
v-model=
"scope.row.cycle"
placeholder=
"请选择"
@
change=
"cycleSelChange"
>
<el-option
v-for=
"(item, index) in cycleList"
:key=
"index"
:label=
"item.name"
:value=
"item.cycle"
>
...
...
@@ -609,6 +622,7 @@ export default {
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
#xrdcard
{
width
:
100%
;
...
...
src/views/risk/existing/index.vue
View file @
6f66ea77
This diff is collapsed.
Click to expand it.
src/views/risk/inherent/index.vue
View file @
6f66ea77
...
...
@@ -2,12 +2,8 @@
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"110px"
>
<el-form-item
label=
"危险源名称"
prop=
"hazardSourceName"
>
<el-input
v-model=
"queryParams.hazardSourceName"
placeholder=
"请输入危险源名称"
clearable
@
keyup.enter.native=
"handleQuery"
/>
<el-input
v-model=
"queryParams.hazardSourceName"
placeholder=
"请输入危险源名称"
clearable
@
keyup.enter.native=
"handleQuery"
/>
</el-form-item>
<el-form-item>
...
...
@@ -18,36 +14,16 @@
<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=
"['system:riskInherent:add']"
>
新增
</el-button>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['system:riskInherent: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=
"['system:riskInherent:edit']"
>
修改
</el-button>
<el-button
type=
"success"
plain
icon=
"el-icon-edit"
size=
"mini"
:disabled=
"single"
@
click=
"handleUpdate"
v-hasPermi=
"['system:riskInherent: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=
"['system:riskInherent:remove']"
>
删除
</el-button>
<el-button
type=
"danger"
plain
icon=
"el-icon-delete"
size=
"mini"
:disabled=
"multiple"
@
click=
"handleDelete"
v-hasPermi=
"['system:riskInherent:remove']"
>
删除
</el-button>
</el-col>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
...
...
@@ -62,52 +38,41 @@
<el-table-column
label=
"风险源名称"
align=
"center"
prop=
"name"
/>
<el-table-column
label=
"风险点类型"
align=
"center"
prop=
"pointType"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.risk_plan_pointtype"
:value=
"scope.row.pointType"
/>
<dict-tag
:options=
"dict.type.risk_plan_pointtype"
:value=
"scope.row.pointType"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"是否为特种设备"
align=
"center"
prop=
"specialEquipment"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.sys_yes_no"
:value=
"scope.row.specialEquipment
"
/>
<dict-tag
:options=
"dict.type.sys_yes_no"
:value=
"scope.row.specialEquipment
? 'Y' : 'N'"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"风险因素"
align=
"center"
prop=
"factor"
/>
<el-table-column
label=
"准事故类型 "
align=
"center"
prop=
"type"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.risk_plan_type"
:value=
"scope.row.type"
/>
<dict-tag
:options=
"dict.type.risk_plan_type"
:value=
"scope.row.type"
/>
</
template
>
</el-table-column>
<!-- <el-table-column label="工程技术措施" align="center" prop="measuresProject" /> -->
<!-- <el-table-column label="应采取的管理措施" align="center" prop="measuresAdministration" /> -->
<el-table-column
label=
"应急措施"
align=
"center"
prop=
"measuresEmergency"
/>
<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=
"['system:riskInherent:edit']"
>
修改
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['system:riskInherent:remove']"
>
删除
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['system:riskInherent:edit']"
>
修改
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['system:riskInherent: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"
/>
<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=
"700px"
append-to-body
>
...
...
@@ -117,21 +82,14 @@
</el-form-item>
<el-form-item
label=
"风险点类型"
prop=
"pointType"
>
<el-select
v-model=
"form.pointType"
placeholder=
"请选择风险点类型"
>
<el-option
v-for=
"dict in dict.type.risk_plan_pointtype"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
></el-option>
<el-option
v-for=
"dict in dict.type.risk_plan_pointtype"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"是否为特种设备"
prop=
"specialEquipment"
>
<el-radio-group
v-model=
"form.specialEquipment"
>
<el-radio
v-for=
"dict in dict.type.sys_yes_no"
:key=
"dict.value"
:label=
"parseInt(dict.value)"
>
{{dict.label}}
</el-radio>
<el-radio
v-for=
"dict in dict.type.sys_yes_no"
:key=
"dict.value"
:label=
"toBol(dict.value)"
>
{{ dict.label
}}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"安全警示标志"
prop=
"safetyWarningSigns"
>
...
...
@@ -142,12 +100,8 @@
</el-form-item>
<el-form-item
label=
"准事故类型 "
prop=
"type"
>
<el-select
v-model=
"form.type"
placeholder=
"请选择准事故类型 "
>
<el-option
v-for=
"dict in dict.type.risk_plan_type"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
></el-option>
<el-option
v-for=
"dict in dict.type.risk_plan_type"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"工程技术措施"
prop=
"measuresProject"
>
...
...
@@ -241,6 +195,9 @@ export default {
this
.
getList
();
},
methods
:
{
toBol
(
val
)
{
return
val
===
'
Y
'
?
true
:
false
},
/** 查询固有风险清单库列表 */
getList
()
{
this
.
loading
=
true
;
...
...
@@ -308,7 +265,7 @@ export default {
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
id
)
this
.
single
=
selection
.
length
!==
1
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
},
/** 新增按钮操作 */
...
...
@@ -350,12 +307,12 @@ export default {
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
ids
=
row
.
id
||
this
.
ids
;
this
.
$modal
.
confirm
(
'
是否确认删除固有风险清单库编号为"
'
+
ids
+
'
"的数据项?
'
).
then
(
function
()
{
this
.
$modal
.
confirm
(
'
是否确认删除固有风险清单库编号为"
'
+
ids
+
'
"的数据项?
'
).
then
(
function
()
{
return
delInherent
(
ids
);
}).
then
(()
=>
{
this
.
getList
();
this
.
$modal
.
msgSuccess
(
"
删除成功
"
);
}).
catch
(()
=>
{});
}).
catch
(()
=>
{
});
},
/** 导出按钮操作 */
handleExport
()
{
...
...
src/views/riskLedger/component/table.vue
View file @
6f66ea77
...
...
@@ -8,10 +8,10 @@
<el-popover
placement=
"top-start"
title=
"项目名称"
width=
"200"
trigger=
"hover"
:content=
"scope.row.projectName"
>
<span
slot=
"reference"
>
{{
scope
.
row
.
projectName
.
length
>
10
?
scope
.
row
.
projectName
.
substring
(
0
,
10
)
+
"
...
"
:
scope
.
row
.
projectName
}}
</span>
scope
.
row
.
projectName
.
length
>
10
?
scope
.
row
.
projectName
.
substring
(
0
,
10
)
+
"
...
"
:
scope
.
row
.
projectName
}}
</span>
</el-popover>
</
template
>
</el-table-column>
...
...
@@ -32,14 +32,15 @@
</el-table-column>
<el-table-column
label=
"风险点位置"
align=
"center"
prop=
"presenceLocation"
width=
"100"
/>
<el-table-column
label=
"可能导致的事故后果"
align=
"center"
prop=
"listType"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<el-popover
placement=
"top-start"
title=
"项目名称"
width=
"200"
trigger=
"hover"
:content=
"scope.row.listType"
>
<span
slot=
"reference"
>
{{
scope
.
row
.
listType
.
length
>
10
?
scope
.
row
.
listType
.
substring
(
0
,
10
)
+
"
...
"
:
scope
.
row
.
listType
}}
</span>
scope
.
row
.
listType
.
length
>
10
?
scope
.
row
.
listType
.
substring
(
0
,
10
)
+
"
...
"
:
scope
.
row
.
listType
}}
</span>
</el-popover>
</
template
>
</el-table-column>
...
...
@@ -52,30 +53,32 @@
<el-table-column
label=
"风险管控"
align=
"center"
>
<el-table-column
label=
"应采取的管控措施"
align=
"center"
prop=
"inherentMeasuresAdministration"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<el-popover
placement=
"top-start"
title=
"应采取的管控措施"
width=
"200"
trigger=
"hover"
:content=
"scope.row.inherentMeasuresAdministration"
>
<span
slot=
"reference"
>
{{
scope
.
row
.
inherentMeasuresAdministration
&&
scope
.
row
.
inherentMeasuresAdministration
.
length
>
10
?
scope
.
row
.
inherentMeasuresAdministration
.
substring
(
0
,
10
)
+
"
...
"
:
scope
.
row
.
inherentMeasuresAdministration
}}
</span>
scope
.
row
.
inherentMeasuresAdministration
&&
scope
.
row
.
inherentMeasuresAdministration
.
length
>
10
?
scope
.
row
.
inherentMeasuresAdministration
.
substring
(
0
,
10
)
+
"
...
"
:
scope
.
row
.
inherentMeasuresAdministration
}}
</span>
</el-popover>
</
template
>
</el-table-column>
<el-table-column
label=
"已采取的管控措施"
align=
"center"
prop=
"existingMeasuresAdministration"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<el-popover
placement=
"top-start"
title=
"已采取的管控措施"
width=
"200"
trigger=
"hover"
:content=
"scope.row.existingMeasuresAdministration"
>
<span
slot=
"reference"
>
{{
scope
.
row
.
existingMeasuresAdministration
&&
scope
.
row
.
existingMeasuresAdministration
.
length
>
10
?
scope
.
row
.
existingMeasuresAdministration
.
substring
(
0
,
10
)
+
"
...
"
scope
.
row
.
existingMeasuresAdministration
&&
scope
.
row
.
existingMeasuresAdministration
.
length
>
10
?
scope
.
row
.
existingMeasuresAdministration
.
substring
(
0
,
10
)
+
"
...
"
:
scope
.
row
.
existingMeasuresAdministration
}}
</span>
}}
</span>
</el-popover>
</
template
>
</el-table-column>
...
...
@@ -92,9 +95,15 @@
<el-table-column
label=
"重大危险源描述"
align=
"center"
prop=
"majorHazardDescription"
width=
"100"
/>
</el-table-column>
<el-table-column
label=
"判定依据"
align=
"center"
prop=
"referenceBasis"
width=
"100"
/>
<el-table-column
label=
"判定依据"
align=
"center"
prop=
"referenceBasis"
width=
"100"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
referenceBasis
===
'
null
'
?
''
:
scope
.
row
.
referenceBasis
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
prop=
"describe"
>
<
template
slot-scope=
"scope"
>
<div>
<router-link
:to=
"'/risk/plan/inherentdata/index/' + scope.row.id"
class=
"link-type"
>
...
...
@@ -105,8 +114,8 @@
</el-table-column>
</el-table>
<el-pagination
v-show=
"page.total > 0"
:total=
"page.total"
:current-page=
"page.pageNum"
:page-size=
"page.pageSize"
@
current-change=
"changePage"
/>
<el-pagination
v-show=
"page.total > 0"
:total=
"page.total"
:current-page=
"page.pageNum"
:page-size=
"page.pageSize"
@
current-change=
"changePage"
/>
</div>
</template>
...
...
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