modules/mainPart/src/main/java/com/zt/life/modules/taskReliability/model/ModelRbd.java
@@ -25,7 +25,7 @@ private Long pid; @ApiModelProperty(value = "") private Long modelId; private Long modelTag; @ApiModelProperty(value = "模型名称") private String modelName; modules/mainPart/src/main/java/com/zt/life/modules/taskReliability/service/ModelLineService.java
@@ -68,8 +68,8 @@ @Transactional(rollbackFor = Exception.class) public void insert(ModelRbd modelRbd) { if (modelRbd==null) return; if (modelRbd.getModelId()==null) return; Long modelId = modelRbd.getModelId(); if (modelRbd.getId()==null) return; Long modelId = modelRbd.getId(); // 删除既有数据 modelRbdDao.deleteByModelId(modelId); @@ -82,8 +82,8 @@ @Transactional(rollbackFor = Exception.class) public void update(ModelRbd modelRbd) { if (modelRbd==null) return; if (modelRbd.getModelId()==null) return; Long modelId = modelRbd.getModelId(); if (modelRbd.getId()==null) return; Long modelId = modelRbd.getId(); // 删除既有数据 modelRbdDao.deleteByModelId(modelId); modules/mainPart/src/main/resources/mapper/taskReliability/ModelRbdDao.xml
@@ -32,6 +32,6 @@ <update id="deleteByModelId"> delete from model_rbd where model_id = #{modelId} where id = #{modelId} </update> </mapper> web/src/views/modules/taskReliability/ModelRbd.vue
@@ -8,7 +8,8 @@ </el-col> <el-col :span="19"> <div class="mod-taskReliability-modelRbd}"> <zt-table-wraper ref="tableObj" defaultNotQuery="true" query-url="/taskReliability/ModelRbd/page" delete-url="/taskReliability/ModelRbd" <zt-table-wraper ref="tableObj" defaultNotQuery="true" query-url="/taskReliability/ModelRbd/page" delete-url="/taskReliability/ModelRbd" :paging='false' v-slot="{ table }"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()"> @@ -22,7 +23,7 @@ border @selection-change="table.selectionChangeHandle"> <el-table-column type="selection" width="40" align="center"/> <el-table-column prop="modelName" label="模型名称"/> <el-table-column prop="modelSign" label="模型标识"/> <el-table-column prop="modelTag" label="模型标识"/> <el-table-column prop="citedNum" label="被引用数"/> <el-table-column prop="modelState" label="模型状态"/> <el-table-column prop="modelDataState" label="模型数据状态"/> @@ -83,7 +84,6 @@ this.$nextTick(()=>{ this.$refs.rbdEditImg.init(row) }) } } }