diff --git a/src/views/projectLib/projectArchive/index.vue b/src/views/projectLib/projectArchive/index.vue index c041dbe..18a4b00 100644 --- a/src/views/projectLib/projectArchive/index.vue +++ b/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" +} + +}, }); diff --git a/src/views/projectLib/projectInfo/index.vue b/src/views/projectLib/projectInfo/index.vue index f0c81f7..a1a3cb0 100644 --- a/src/views/projectLib/projectInfo/index.vue +++ b/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" } }, diff --git a/src/views/projectLib/projectInfo/projectInfo.data.ts b/src/views/projectLib/projectInfo/projectInfo.data.ts index e4bf9ac..c7cc248 100644 --- a/src/views/projectLib/projectInfo/projectInfo.data.ts +++ b/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', }, ]; diff --git a/src/views/projectLib/projectPlan/index.vue b/src/views/projectLib/projectPlan/index.vue index 2ef8e3b..851740b 100644 --- a/src/views/projectLib/projectPlan/index.vue +++ b/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" } + }, });