From bf2d2cf700ab3ae396f835b3b5f6910ed264b687 Mon Sep 17 00:00:00 2001 From: Gitea Date: Wed, 12 Jul 2023 11:43:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RequirementEntityList.vue | 14 ++++++++++++++ .../RequirementEntityController.java | 19 +++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/ant-design-vue-jeecg/src/views/requiremententity/RequirementEntityList.vue b/ant-design-vue-jeecg/src/views/requiremententity/RequirementEntityList.vue index c16119b..3baf893 100644 --- a/ant-design-vue-jeecg/src/views/requiremententity/RequirementEntityList.vue +++ b/ant-design-vue-jeecg/src/views/requiremententity/RequirementEntityList.vue @@ -94,6 +94,8 @@ 详情 + 废弃 + 删除 @@ -113,6 +115,7 @@ import { JeecgListMixin } from '@/mixins/JeecgListMixin' import RequirementEntityModal from './modules/RequirementEntityModal' import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' + import { httpAction, getAction } from '@/api/manage' export default { name: 'RequirementEntityList', @@ -176,6 +179,7 @@ deleteBatch: "/requiremententity/requirementEntity/deleteBatch", exportXlsUrl: "/requiremententity/requirementEntity/exportXls", importExcelUrl: "requiremententity/requirementEntity/importExcel", + fq:"/requiremententity/requirementEntity/fq", }, dictOptions:{}, @@ -191,6 +195,16 @@ }, }, methods: { + fq(id){ + getAction(this.url.fq,{id:id}).then((res)=>{ + if (res.success) { + this.$message.success(res.message); + this.loadData(); + }else{ + this.$message.warning(res.message); + } + }); + }, initDictConfig(){ }, getSuperFieldList(){ diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/controller/RequirementEntityController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/controller/RequirementEntityController.java index 264bcd4..bf291b1 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/controller/RequirementEntityController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/controller/RequirementEntityController.java @@ -144,6 +144,25 @@ public class RequirementEntityController extends JeecgController fq(@RequestParam(name="id",required=true) String id) { + RequirementEntity requirementEntity = requirementEntityService.getById(id); + if(requirementEntity==null) { + return Result.error("未找到对应数据"); + }else{ + requirementEntity.setEntityStatus(9); + requirementEntityService.updateById(requirementEntity); + } + return Result.OK("已废弃"); + } /** * 导出excel