Gitea 1 year ago
parent 4e1e1fe1cb
commit bf2d2cf700
  1. 14
      ant-design-vue-jeecg/src/views/requiremententity/RequirementEntityList.vue
  2. 19
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/controller/RequirementEntityController.java

@ -94,6 +94,8 @@
<a-divider type="vertical" />
<a @click="handleDetail(record)">详情</a>
<a-divider type="vertical" />
<a @click="fq(record.id)">废弃</a>
<a-divider type="vertical" />
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
</a-popconfirm>
@ -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(){

@ -144,6 +144,25 @@ public class RequirementEntityController extends JeecgController<RequirementEnti
}
return Result.OK(requirementEntity);
}
/**
* 废弃
*
* @param id
* @return
*/
@AutoLog(value = "废弃")
@ApiOperation(value="废弃", notes="废弃")
@GetMapping(value = "/fq")
public Result<?> 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

Loading…
Cancel
Save