From 5046d0d13dc6a8563b8e54e31913bc44cfa1072f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 26 四月 2022 19:23:18 +0800 Subject: [PATCH] 2022-04-26 --- src/tabviews/verupmanage/subtabtable/index.jsx | 38 +++----------------------------------- 1 files changed, 3 insertions(+), 35 deletions(-) diff --git a/src/tabviews/verupmanage/subtabtable/index.jsx b/src/tabviews/verupmanage/subtabtable/index.jsx index d33454c..a64b977 100644 --- a/src/tabviews/verupmanage/subtabtable/index.jsx +++ b/src/tabviews/verupmanage/subtabtable/index.jsx @@ -46,7 +46,7 @@ total: 0, // 鎬绘暟 loading: false, // 鍒楄〃鏁版嵁鍔犺浇涓� pageIndex: 1, // 椤电爜 - pageSize: 10, // 姣忛〉鏁版嵁鏉℃暟 + pageSize: 100, // 姣忛〉鏁版嵁鏉℃暟 orderBy: '', // 鎺掑簭 search: '', // 鎼滅储鏉′欢鏁扮粍锛屼娇鐢ㄦ椂闇�鍒嗗満鏅鐞� popAction: false, // 寮规椤甸潰锛屾寜閽俊鎭� @@ -350,29 +350,6 @@ } /** - * @description 椤甸潰鍒锋柊锛岄噸鏂拌幏鍙栭厤缃� - */ - reloadview = () => { - this.setState({ - config: null, - searchlist: null, - actions: null, - columns: null, - arr_field: '', - setting: null, - data: null, - total: 0, - loading: false, - pageIndex: 1, - pageSize: 10, - orderBy: '', - search: '' - }, () => { - this.loadconfig() - }) - } - - /** * @description 鎸夐挳鎿嶄綔瀹屾垚鍚庯紙鎴愬姛鎴栧け璐ワ級锛岄〉闈㈠埛鏂帮紝閲嶇疆椤电爜鍙婇�夋嫨椤� */ refreshbyaction = (btn, type) => { @@ -380,16 +357,6 @@ this.reloadtable() } else if (btn.execError === 'grid' && type === 'error') { this.reloadtable() - } else if (btn.execSuccess === 'view' && type === 'success') { - this.reloadview() - } else if (btn.execError === 'view' && type === 'error') { - this.reloadview() - } else if (btn.popClose === 'grid' && type === 'pop') { - this.reloadtable() - } else if (btn.popClose === 'view' && type === 'pop') { - this.reloadview() - } else if (btn.popClose === 'maingrid' && type === 'pop') { - this.props.handleMainTable('maingrid') } } @@ -446,7 +413,7 @@ } render() { - const { BID, BData, setting, searchlist, actions, columns, pickup, selectedData } = this.state + const { BID, BData, setting, searchlist, actions, columns, pickup, selectedData, pageSize } = this.state return ( <div className="verup-subtable" id={'subtable' + this.props.MenuID}> @@ -481,6 +448,7 @@ pickup={pickup} setting={setting} columns={columns} + pageSize={pageSize} dict={this.state.dict} data={this.state.data} total={this.state.total} -- Gitblit v1.8.0