Commit d22771fd authored by xulihui's avatar xulihui

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

parent 8bfc63c8
......@@ -115,7 +115,7 @@ public class TInsRecInforServiceImpl implements ITInsRecInforService
@Transactional(rollbackFor = Exception.class)
public int updateTInsRecInfor(TInsRecInfor tInsRecInfor){
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());
for(TInsHazRef ref : tInsRecInfor.getRectificationList()){
ref.setfObjType(tInsRecInfor.getfObjectType());
......
......@@ -9,7 +9,7 @@
size="mini"
style="margin-bottom: 10px"
@click="handleAddHidden"
v-if="!readOnly"
v-if="!readOnly && this.$parent.$parent.$parent.form.fObjectType"
>新增隐患</el-button>
<el-table v-loading="loading" :data="refList">
......@@ -62,13 +62,13 @@
</el-table-column>
</el-table>
<pagination
<!-- <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="900px" append-to-body destroy-on-close :close-on-click-modal="false">
......@@ -351,8 +351,6 @@
loading: false,
// 查询参数
queryParams: {
pageNum: 1,
pageSize: 10,
fCheckCode: null
},
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