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
50d3a942
Commit
50d3a942
authored
Nov 24, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
风险关联隐患
parent
be1cea6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
144 additions
and
1 deletion
+144
-1
index.vue
src/views/riskPrecontrol/maintenanceRiskTask/index.vue
+9
-1
yhContent.vue
src/views/riskPrecontrol/maintenanceRiskTask/yhContent.vue
+135
-0
No files found.
src/views/riskPrecontrol/maintenanceRiskTask/index.vue
View file @
50d3a942
...
...
@@ -66,6 +66,9 @@
</el-tab-pane>
<el-tab-pane
label=
"检查项"
name=
"second"
>
<Content
:vMain=
'this'
ref=
"Content"
/>
</el-tab-pane>
<el-tab-pane
label=
"相关隐患"
name=
"third"
>
<yhContent
:vMain=
'this'
ref=
"yhContent"
/>
</el-tab-pane>
<!-- -->
</el-tabs>
...
...
@@ -91,6 +94,7 @@ import Zdzrr from './zdzrr'
import
Edit
from
'./edit'
import
Details
from
'./details.vue'
import
Content
from
'./content.vue'
import
yhContent
from
'./yhContent.vue'
import
{
tableMixin
}
from
'common'
...
...
@@ -168,9 +172,12 @@ import Zdzrr from './zdzrr'
this
.
rowItem
=
e
this
.
$refs
.
Details
.
queryParams
.
fxbzid
=
e
.
fxbzid
this
.
$refs
.
Content
.
queryParams
.
mid
=
e
.
id
/* 查询关联隐患*/
this
.
$refs
.
yhContent
.
queryParams
.
fxd
=
e
.
id
this
.
$nextTick
(()
=>
{
this
.
$refs
.
Details
.
query
()
this
.
$refs
.
Content
.
$refs
[
'TablePager'
].
pageQuery
()
this
.
$refs
.
yhContent
.
$refs
[
'TablePager'
].
pageQuery
()
})
},
/* 基础查询*/
...
...
@@ -193,7 +200,8 @@ import Zdzrr from './zdzrr'
Edit
,
Details
,
Content
,
Zdzrr
Zdzrr
,
yhContent
}
...
...
src/views/riskPrecontrol/maintenanceRiskTask/yhContent.vue
0 → 100644
View file @
50d3a942
<
template
>
<!-- v-show='queryParams.mid'-->
<div
class=
"min_full"
v-show=
'queryParams.fxd'
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
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
}
from
"@/api/dangerManagement/enterSafetyRecords.js"
/* edit页面*/
import
Edit
from
'./contentEdit.vue'
import
{
tableMixin
}
from
'common'
export
default
{
props
:[
'vMain'
],
mixins
:
[
tableMixin
],
/* 初始额外赋值*/
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
:
'aqgl/fxyk/fxpcmx'
,
/* 查询参数*/
queryParams
:
{
fxd
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"状态"
,
prop
:
"ztName"
,
fieldType
:
"ftString"
,
width
:
60
},
{
label
:
"公司"
,
prop
:
"gsid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'jcsj/common/bm/queryGs'
,
label
:
'bmmc'
,
value
:
'id'
}},
{
label
:
"班组"
,
prop
:
"bmid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'jcsj/common/bm/queryBz'
,
label
:
'bmmc'
,
value
:
'id'
}},
{
label
:
"发现日期"
,
prop
:
"fxrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"风险点"
,
prop
:
"fxdName"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"隐患地点"
,
prop
:
"yhdd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"隐患类型"
,
prop
:
"flid"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'aqgl/yhgl/yhfl/query'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"隐患等级"
,
prop
:
"dj"
,
fieldType
:
"ftString"
,
width
:
192
,
transform
:{
url
:
'aqgl/fxyk/fxpc/init/wxdj'
,
label
:
'name'
,
value
:
'id'
}},
// {label: "上报级别", prop: "sbjb", fieldType: "ftString",width:100},
{
label
:
"内容"
,
prop
:
"nr"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"整改方案"
,
prop
:
"zgfa"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"管控措施"
,
prop
:
"gkcs"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
{
label
:
"责任人"
,
prop
:
"zrrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"要求整改完成时间"
,
prop
:
"yqzgsj"
,
fieldType
:
"ftDateTime"
},
/* 要求整改完成时间 */
{
label
:
"处理人"
,
prop
:
"clrName"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
{
label
:
"复查人"
,
prop
:
"fcrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"上报人"
,
prop
:
"sbrName"
,
fieldType
:
"ftString"
,
width
:
192
},
/* 检查人 */
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
// {label: "处置人", prop: "czr", fieldType: "ftString",width:192},
// {label: "处置时间", prop: "czsj", fieldType: "ftDateTime"},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "附件数", prop: "attachcount", fieldType: "int"},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
},
// {label: "创建人", prop: "cjr", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
]
}
},
methods
:
{
/* 基础查询*/
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* 初始化赋值操作*/
},
/* 注册组件*/
components
:
{
Edit
}
}
</
script
>
<
style
scoped
>
</
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