From 9775d0c52e9c681bb9ab3b473e20aa4ce548d5e7 Mon Sep 17 00:00:00 2001 From: nisen Date: Sun, 8 Sep 2024 21:29:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E8=AF=BE=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/drawers/project/ProjectOnlineManage.vue | 9 ++++++--- src/components/drawers/router/RouterCommonManage.vue | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/components/drawers/project/ProjectOnlineManage.vue b/src/components/drawers/project/ProjectOnlineManage.vue index 88ba7427..e24bef5b 100644 --- a/src/components/drawers/project/ProjectOnlineManage.vue +++ b/src/components/drawers/project/ProjectOnlineManage.vue @@ -189,7 +189,7 @@ export default { pageSize: 10, currentPage: 1, tableDataTotal: 0, - projectName: undefined, + projectName: null, projectNameListNot: [ { id: 1, @@ -377,7 +377,7 @@ export default { ctx.emit("update:Tvisible", false); state.currentPage = 1; state.name = ""; - state.projectName = undefined; + state.projectName = null; state.tabledata = []; }; const afterVisibleChange = (bol) => { @@ -389,6 +389,9 @@ export default { }; const selectProjectName = (value) => { state.projectName = value; + if(value === undefined){ + state.projectName = null; + } }; //催促 const godie = () => { @@ -515,7 +518,7 @@ export default { state.tableDataTotalLoading = true; state.currentPage = 1; state.name = ""; - state.projectName = ""; + state.projectName = null; getData(); } diff --git a/src/components/drawers/router/RouterCommonManage.vue b/src/components/drawers/router/RouterCommonManage.vue index 4a4778c3..3cc3ec1c 100644 --- a/src/components/drawers/router/RouterCommonManage.vue +++ b/src/components/drawers/router/RouterCommonManage.vue @@ -192,7 +192,7 @@ export default { pageSize: 10, currentPage: 1, tableDataTotal: 0, - projectName: undefined, + projectName: null, projectNameListNot: [ { id: 1, @@ -384,7 +384,7 @@ export default { ctx.emit("update:CommonModelVisible", false); state.currentPage = 1; state.name = ""; - state.projectName = undefined; + state.projectName = null; state.tabledata = []; }; const afterVisibleChange = (bol) => { @@ -396,6 +396,9 @@ export default { }; const selectProjectName = (value) => { state.projectName = value; + if(value === undefined){ + state.projectName = null; + } }; //催促 const godie = () => { @@ -523,7 +526,7 @@ export default { state.tableDataTotalLoading = true; state.currentPage = 1; state.name = ""; - state.projectName = undefined; + state.projectName = null; getData(); }