Merge pull request #8824 from ulleo/dev

fix(X-Pack): 修复数据填报表单管理-删除文件夹后没有刷新列表的问题
This commit is contained in:
ulleo 2024-04-01 13:57:23 +08:00 committed by GitHub
commit 19eaf04fe6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View File

@ -262,9 +262,13 @@ public class DataFillService {
dataFillFormMapper.deleteByExample(example);
}
DeLogUtils.save(SysLogConstants.OPERATE_TYPE.DELETE, SysLogConstants.SOURCE_TYPE.DATA_FILL_FORM, dataFillForm.getId(), dataFillForm.getPid(), null, null);
if (dataFillForm != null) {
dataFillTaskService.deleteTaskByFormId(id);
DeLogUtils.save(SysLogConstants.OPERATE_TYPE.DELETE, SysLogConstants.SOURCE_TYPE.DATA_FILL_FORM, dataFillForm.getId(), dataFillForm.getPid(), null, null);
dataFillTaskService.deleteTaskByFormId(id);
}
}
public List<ExtTableField> listFields(String id) throws Exception {

View File

@ -127,7 +127,7 @@ export default {
}
).then(() => {
deleteForm(data.id).then((response) => {
if (this.displayFormData.id === data.id) {
if (this.displayFormData && this.displayFormData.id === data.id) {
this.displayFormData = undefined
}
listForm({}).then(res => {