法规清单-取消关联
This commit is contained in:
+4
-1
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user