前端完成

main
王宇航 2024-06-26 12:52:07 +08:00
parent 4123bbc5f6
commit 2de1ab46f3
2 changed files with 5 additions and 0 deletions

View File

@ -61,6 +61,9 @@ public class AppSkillServiceImpl implements IAppSkillService
public int insertAppSkill(AppSkill appSkill) public int insertAppSkill(AppSkill appSkill)
{ {
appSkill.setCreateTime(DateUtils.getNowDate()); appSkill.setCreateTime(DateUtils.getNowDate());
if("0".equals(appSkill.getType()) || null == appSkill.getType()) {
appSkill.setParentId(0L);
}
return appSkillMapper.insertAppSkill(appSkill); return appSkillMapper.insertAppSkill(appSkill);
} }

View File

@ -236,6 +236,7 @@ export default {
}, },
// //
cancel() { cancel() {
this.openUpdate = false;
this.open = false; this.open = false;
this.reset(); this.reset();
}, },
@ -318,6 +319,7 @@ export default {
this.$modal.confirm('是否确认删除标签信息编号为"' + ids + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除标签信息编号为"' + ids + '"的数据项?').then(function() {
return delSkill(ids); return delSkill(ids);
}).then(() => { }).then(() => {
this.reset();
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
}).catch(() => {}); }).catch(() => {});