Commit d22771fd authored by xulihui's avatar xulihui

修改检查记录隐患新增修改删除分页

parent 8bfc63c8
...@@ -115,7 +115,7 @@ public class TInsRecInforServiceImpl implements ITInsRecInforService ...@@ -115,7 +115,7 @@ public class TInsRecInforServiceImpl implements ITInsRecInforService
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public int updateTInsRecInfor(TInsRecInfor tInsRecInfor){ public int updateTInsRecInfor(TInsRecInfor tInsRecInfor){
tInsRecInfor.setfLastUpdateTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())); tInsRecInfor.setfLastUpdateTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
if(!CollectionUtils.isEmpty(tInsRecInfor.getRectificationList())){ if(tInsRecInfor.getRectificationList()!=null){
tInsHazRefMapper.deleteTInsHazRefByCheckCode(tInsRecInfor.getfCheckCode()); tInsHazRefMapper.deleteTInsHazRefByCheckCode(tInsRecInfor.getfCheckCode());
for(TInsHazRef ref : tInsRecInfor.getRectificationList()){ for(TInsHazRef ref : tInsRecInfor.getRectificationList()){
ref.setfObjType(tInsRecInfor.getfObjectType()); ref.setfObjType(tInsRecInfor.getfObjectType());
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
size="mini" size="mini"
style="margin-bottom: 10px" style="margin-bottom: 10px"
@click="handleAddHidden" @click="handleAddHidden"
v-if="!readOnly" v-if="!readOnly && this.$parent.$parent.$parent.form.fObjectType"
>新增隐患</el-button> >新增隐患</el-button>
<el-table v-loading="loading" :data="refList"> <el-table v-loading="loading" :data="refList">
...@@ -62,13 +62,13 @@ ...@@ -62,13 +62,13 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <!-- <pagination
v-show="total>0" v-show="total>0"
:total="total" :total="total"
:page.sync="queryParams.pageNum" :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize" :limit.sync="queryParams.pageSize"
@pagination="getList" @pagination="getList"
/> />-->
<!-- 隐患新增 --> <!-- 隐患新增 -->
<el-dialog :title="title" :visible.sync="open" width="900px" append-to-body destroy-on-close :close-on-click-modal="false"> <el-dialog :title="title" :visible.sync="open" width="900px" append-to-body destroy-on-close :close-on-click-modal="false">
...@@ -351,8 +351,6 @@ ...@@ -351,8 +351,6 @@
loading: false, loading: false,
// 查询参数 // 查询参数
queryParams: { queryParams: {
pageNum: 1,
pageSize: 10,
fCheckCode: null fCheckCode: null
}, },
refList:[], refList:[],
......
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