JayChou 1 week ago
commit d0107504a4
  1. 2
      jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysDepartController.java
  2. 7
      jeecgboot-vue3/src/views/projectApplication/kejigongguan/data.ts
  3. 1
      jeecgboot-vue3/src/views/projectApplication/kejigongguan/projectApplicationList.vue
  4. 4
      jeecgboot-vue3/src/views/projectApplication/project/ProjectList.vue

@ -204,7 +204,7 @@ public class SysDepartController {
@GetMapping(value = "/getDepartList4Quxian") @GetMapping(value = "/getDepartList4Quxian")
public Result<List<QuXianDepartVo>> getDepartList4Quxian() { public Result<List<QuXianDepartVo>> getDepartList4Quxian() {
SysDepart sysDepart = sysDepartService.getOne(new LambdaQueryWrapper<SysDepart>().eq(SysDepart::getDelFlag, "0").eq(SysDepart::getParentId, "")); SysDepart sysDepart = sysDepartService.getOne(new LambdaQueryWrapper<SysDepart>().eq(SysDepart::getDelFlag, "0").eq(SysDepart::getParentId, ""));
List<SysDepart> departList4Quxian = sysDepartService.list(new LambdaQueryWrapper<SysDepart>().eq(SysDepart::getParentId, sysDepart.getId())); List<SysDepart> departList4Quxian = sysDepartService.list(new LambdaQueryWrapper<SysDepart>().eq(SysDepart::getParentId, sysDepart.getId()).eq(SysDepart::getDelFlag, "0"));
List<QuXianDepartVo> quXianDepartVos = new ArrayList<>(); List<QuXianDepartVo> quXianDepartVos = new ArrayList<>();
Optional.ofNullable(departList4Quxian).orElse(new LinkedList<>()).stream().forEach(depart -> { Optional.ofNullable(departList4Quxian).orElse(new LinkedList<>()).stream().forEach(depart -> {
QuXianDepartVo vo = new QuXianDepartVo(); QuXianDepartVo vo = new QuXianDepartVo();

@ -18,10 +18,13 @@ export const projectBaseInfoSchemas: FormSchema[] = [
}, },
{ {
field: 'annualId', field: 'annualId',
component: 'Input', component: 'JDictSelectTag',
componentProps: {
dictCode: 'project_type,annual_name,id',
},
label: '计划年度', label: '计划年度',
dynamicDisabled: true, dynamicDisabled: true,
defaultValue: '2025', // defaultValue: '2025',
}, },
{ {
field: 'batchNo', field: 'batchNo',

@ -44,6 +44,7 @@
const setformValue1 = async () => { const setformValue1 = async () => {
// console.log(route,'route') // console.log(route,'route')
await setFieldsValue({projectTypeid: route.query.projectTypeId}) await setFieldsValue({projectTypeid: route.query.projectTypeId})
await setFieldsValue({annualId: route.query.projectTypeId})
}; };
nextTick(() => { nextTick(() => {
setformValue1(); setformValue1();

@ -175,9 +175,9 @@ async function getProjectType(){
await getProjectTypeList(params).then(res=>{ await getProjectTypeList(params).then(res=>{
console.log("getProjectType is invoke-----------",JSON.stringify(res.records)) console.log("getProjectType is invoke-----------",JSON.stringify(res.records))
projectTypeList.value = res.records.map(item => { projectTypeList.value = res.records.map(item => {
return {label:item.typeName,key:item.id} return {label:item.typeName, key:item.id, annualId:item.annualName}
}) })
console.log(JSON.stringify(projectTypeList)); console.log("the projectTypeList :",JSON.stringify(projectTypeList));
}) })
} }

Loading…
Cancel
Save