法规清单-取消关联

This commit is contained in:
zhn
2023-09-22 10:19:55 +08:00
parent 1129d62d7d
commit 5d30fcc0e0
2 changed files with 25 additions and 7 deletions
@@ -515,7 +515,10 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl<ProjectLawsIn
public void editById(ProjectLawsInventoryEO projectLawsInventoryEO) {
this.editService.editById(projectLawsInventoryEO);
if(StringUtils.isNotBlank(projectLawsInventoryEO.getPlatformIds())){
lawsInventoryPlatformEOService.deleteByIds(Arrays.asList(projectLawsInventoryEO.getPlatformIds().split(",")));
LambdaQueryWrapper<LawsInventoryPlatformEO> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(LawsInventoryPlatformEO::getLawsInventoryId,projectLawsInventoryEO.getId());
wrapper.in(LawsInventoryPlatformEO::getPlatformLawsInventoryId,Arrays.asList(projectLawsInventoryEO.getPlatformIds().split(",")));
lawsInventoryPlatformEOService.remove(wrapper);
}
}
@@ -1088,12 +1088,27 @@
this.$refs.ruleForm.validate(valid => {
if (valid) {
let formInline = JSON.parse(JSON.stringify(this.formInline))
if(!formInline.projectLawsInventoryEOS){
Object.keys(formInline).forEach(res => {
if (formInline[res] && formInline[res] instanceof Array) {
formInline[res] = formInline[res].join(',')
}
})
// Object.keys(formInline).forEach(res => {
// if(!formInline.projectLawsInventoryEOS){
// if (formInline[res] && formInline[res] instanceof Array) {
// formInline[res] = formInline[res].join(',')
// }
// }
// })
if(formInline.designDeliverableType){
formInline.designDeliverableType = formInline.designDeliverableType.join(',')
}
if(formInline.dutyDepart){
formInline.dutyDepart = formInline.dutyDepart.join(',')
}
if(formInline.dutyTerritory){
formInline.dutyTerritory = formInline.dutyTerritory.join(',')
}
if(formInline.verifyDeliverableType){
formInline.verifyDeliverableType = formInline.verifyDeliverableType.join(',')
}
if(formInline.prehomoDeliverableType){
formInline.prehomoDeliverableType = formInline.prehomoDeliverableType.join(',')
}
if (!formInline.verifyDutyId) {
formInline.verifyDutyId = ''