From 3ca91a731665962918a026f521c556f4745ebf35 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 16 十一月 2020 19:20:19 +0800 Subject: [PATCH] 2020-11-16 --- src/tabviews/commontable/secretKeyTable/index.jsx | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tabviews/commontable/secretKeyTable/index.jsx b/src/tabviews/commontable/secretKeyTable/index.jsx index 98ce131..982cd31 100644 --- a/src/tabviews/commontable/secretKeyTable/index.jsx +++ b/src/tabviews/commontable/secretKeyTable/index.jsx @@ -8,6 +8,7 @@ import enUS from '@/locales/en-US/main.js' import options from '@/store/options.js' import { buttonConfig, tabConfig, refCodes } from './config' +import MKEmitter from '@/utils/events.js' import asyncSpinComponent from '@/utils/asyncSpinComponent' import SubAction from './actionList' @@ -37,7 +38,6 @@ setting: null, // 椤甸潰鍏ㄥ眬璁剧疆锛氭暟鎹簮銆佹寜閽強鏄剧ず鍒楀浐瀹氥�佷富閿瓑 data: null, // 鍒楄〃鏁版嵁闆� selectedData: [], // 宸查�夎〃鏍兼暟鎹� - resetTable: false, // 琛ㄦ牸閲嶇疆锛屽�煎湪true涓巉alse涔嬮棿鍒囨崲锛屽垏鎹㈡椂琛ㄦ牸閲嶇疆 loading: false, // 鍒楄〃鏁版嵁鍔犺浇涓� visible: false, // 寮规鏄剧ず闅愯棌鎺у埗 pickup: false, // 瀛愯〃鏁版嵁闅愯棌鏄剧ず鍒囨崲 @@ -48,10 +48,10 @@ */ UNSAFE_componentWillReceiveProps(nextProps) { if (this.state.config && this.props.Tab.supMenu && !is(fromJS(this.props.BID), fromJS(nextProps.BID))) { + MKEmitter.emit('resetTable', this.props.MenuID + this.props.Tab.uuid) // 鍒楄〃閲嶇疆 this.setState({ pageIndex: 1, selectedData: [], - resetTable: !this.state.resetTable, }, () => { this.loadmaindata(nextProps.BID, 'refresh') }) @@ -253,10 +253,10 @@ * @description 琛ㄦ牸鍒锋柊 */ reloadtable = () => { + MKEmitter.emit('resetTable', this.props.MenuID + this.props.Tab.uuid) // 鍒楄〃閲嶇疆 this.setState({ loading: true, selectedData: [], - resetTable: !this.state.resetTable }, () => { this.loadmaindata() }) -- Gitblit v1.8.0