Commit eeb3bed1 authored by 王向前's avatar 王向前

no message

parent 7c2eec35
......@@ -36,19 +36,15 @@
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
@getRow='getRow'>
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem' :isFontPage="true" :allData="allData"
:showOverflowTooltip="false"
@getRow='getRow' :cellStyle="cellStyle">
<template slot="tabCustom">
<el-table-column label="启用/停用" width="90" header-align="center" >
<template slot-scope="scope">
<el-switch @click.native="setEnable(scope.row.id)" :value='tybz(scope)' style="width: 80px;justify-content: center;"
active-color="#13ce66" inactive-color="#eee">
</el-switch>
</template>
</el-table-column>
</template>
</TablePager>
</div>
</div>
</template>
......@@ -78,7 +74,6 @@
},
data() {
return {
/*需要的额外参数 */
showDialog: false,
DialogName: '',
......@@ -91,55 +86,17 @@
ksrq: '',
jsrq: ''
},
allData:[{
"gkcs":"技术措施:安装声光报警器;管理措施:开口时,指挥人员站位于安全区域,无关人员禁止进入工作区域;操作设备前开启声光报警器,安全确认到位,专人指挥操作;教育措施:培训吊运风口套及直吹管SOP、危险因素辨识及预防控制措施、岗位禁令、岗位安全操作规程;个体防护措施:安全帽、工作服、劳保鞋、阻燃手套、防护面罩、防尘口罩;应急措施:发现有人受伤后,立即救治伤员,向上级上报,严重时送医院治疗;发现有人受伤后,创伤出血者迅速包扎止血,向上级上报,严重时送医院治疗"
}],
/* 表格标题对应参数*/
tableTitle: [
{
prop: 'whsj',
prop: 'gkcs',
label: '作业活动',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '事故后果',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '固有风险等级',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '地点',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '排查岗位',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '危害因素',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '管控措施',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '维护人',
...this.$common('ftDateTime')
},
{
prop: 'whsj',
label: '维护时间',
...this.$common('ftDateTime')
}
]
],
cellStyle:{},
}
},
methods: {
......
......@@ -36,7 +36,7 @@
</el-row>
<!-- 表格-->
<div class="tablePagers">
<TablePager @getData='getData' :ref="'TablePager'" :app='app' :query='query' @selectItem='selectItem'
<TablePager @getData='getData' :ref="'TablePager'" :app='app' @selectItem='selectItem'
@getRow='getRow'>
<template slot="tabCustom">
<el-table-column label="启用/停用" width="90" header-align="center" >
......@@ -91,6 +91,10 @@
ksrq: '',
jsrq: ''
},
allData:[
],
/* 表格标题对应参数*/
tableTitle: [
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment