Browse Source

增加按项目状态筛选功能

master
Jinyuanyuan 6 months ago
parent
commit
fabb322d59
  1. 12
      src/views/projectLib/projectArchive/index.vue
  2. 3
      src/views/projectLib/projectInfo/index.vue
  3. 1
      src/views/projectLib/projectInfo/projectInfo.data.ts
  4. 11
      src/views/projectLib/projectPlan/index.vue

12
src/views/projectLib/projectArchive/index.vue

@ -48,7 +48,17 @@ const [registerTable] = useTable({
//
formConfig: {
schemas: searchFormSchema,
}
},
beforeFetch: (param) => {
if(param.stage == undefined||param.stage == null){
param.stage = "2"
}else{
param.newStage=param.stage
param.stage = "2"
}
},
});

3
src/views/projectLib/projectInfo/index.vue

@ -119,6 +119,9 @@ const [registerTable, { reload, getForm, getSelectRows, clearSelectedRowKeys }]
clearSelectedRowKeys()
if(param.stage == undefined||param.stage == null){
param.stage = "0"
}else{
param.newStage=param.stage
param.stage = "0"
}
},

1
src/views/projectLib/projectInfo/projectInfo.data.ts

@ -60,6 +60,7 @@ export const columns: BasicColumn[] = [
dataIndex: 'stage',
format: 'dict|projectStage',
resizable: true,
filters: 'dict|projectStage',
},
];

11
src/views/projectLib/projectPlan/index.vue

@ -61,10 +61,15 @@ const [registerTable, { reload }] = useTable({
formConfig: {
schemas: searchFormSchema,
},
beforeFetch: (params) => {
if (params.stage == undefined || params.stage == null) {
params.stage = "2"
beforeFetch: (param) => {
if(param.stage == undefined||param.stage == null){
param.stage = "2"
}else{
param.newStage=param.stage
param.stage = "2"
}
},
});

Loading…
Cancel
Save