From 31df729bbc664b826536a344e2bf7dd81854c477 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 30 七月 2024 17:21:43 +0800 Subject: [PATCH] 2024-07-30 --- src/tabviews/custom/components/table/edit-table/index.jsx | 4 +--- src/tabviews/custom/components/table/base-table/index.jsx | 4 +--- src/tabviews/zshare/mutilform/mkInput/index.jsx | 4 +++- src/tabviews/custom/components/table/normal-table/index.jsx | 4 +--- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/tabviews/custom/components/table/base-table/index.jsx b/src/tabviews/custom/components/table/base-table/index.jsx index 045bf64..2dadeda 100644 --- a/src/tabviews/custom/components/table/base-table/index.jsx +++ b/src/tabviews/custom/components/table/base-table/index.jsx @@ -597,9 +597,7 @@ if (config.$searchId !== searchId) return - this.setState({pageIndex: 1}, () => { - this.reloadtable() - }) + this.reloadtable() } autoExec = (times) => { diff --git a/src/tabviews/custom/components/table/edit-table/index.jsx b/src/tabviews/custom/components/table/edit-table/index.jsx index dae82f3..30e10ab 100644 --- a/src/tabviews/custom/components/table/edit-table/index.jsx +++ b/src/tabviews/custom/components/table/edit-table/index.jsx @@ -805,9 +805,7 @@ if (config.$searchId !== searchId) return - this.setState({pageIndex: 1}, () => { - this.reloadtable() - }) + this.reloadtable() } shouldComponentUpdate (nextProps, nextState) { diff --git a/src/tabviews/custom/components/table/normal-table/index.jsx b/src/tabviews/custom/components/table/normal-table/index.jsx index be55ae8..1cde8b1 100644 --- a/src/tabviews/custom/components/table/normal-table/index.jsx +++ b/src/tabviews/custom/components/table/normal-table/index.jsx @@ -1027,9 +1027,7 @@ if (config.$searchId !== searchId) return - this.setState({pageIndex: 1}, () => { - this.reloadtable() - }) + this.reloadtable() } render() { diff --git a/src/tabviews/zshare/mutilform/mkInput/index.jsx b/src/tabviews/zshare/mutilform/mkInput/index.jsx index cad739c..9bdbbcf 100644 --- a/src/tabviews/zshare/mutilform/mkInput/index.jsx +++ b/src/tabviews/zshare/mutilform/mkInput/index.jsx @@ -85,7 +85,9 @@ let val = e.target.value let submit = /\n/g.test(val) - val = val.replace(/\n/g, '') + if (submit) { + val = val.replace(/\n|'/g, '') + } if (submit && /^\s+$/.test(val)) { submit = false -- Gitblit v1.8.0