From 72419e2f826031a158173f46d723a672064e37cd Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 31 八月 2021 22:42:51 +0800 Subject: [PATCH] 2021-08-31 --- src/tabviews/custom/components/card/data-card/index.jsx | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/tabviews/custom/components/card/data-card/index.jsx b/src/tabviews/custom/components/card/data-card/index.jsx index d2795df..943a158 100644 --- a/src/tabviews/custom/components/card/data-card/index.jsx +++ b/src/tabviews/custom/components/card/data-card/index.jsx @@ -307,7 +307,7 @@ async loadData () { const { mainSearch, menuType } = this.props - const { config, arr_field, pageIndex, search, BID } = this.state + const { config, arr_field, pageIndex, search, BID, BData } = this.state if (config.setting.supModule && !BID) { // BID 涓嶅瓨鍦ㄦ椂锛屼笉鍋氭煡璇� this.setState({ @@ -363,6 +363,7 @@ item.key = index item.$$uuid = item[config.setting.primaryKey] || '' item.$$BID = BID || '' + item.$$BData = BData || '' item.$Index = index + start + '' return item }), @@ -390,7 +391,7 @@ */ async loadLinedata (id) { const { mainSearch, menuType } = this.props - const { config, arr_field, pageIndex, search, BID } = this.state + const { config, arr_field, pageIndex, search, BID, BData } = this.state let searches = fromJS(search).toJS() if (config.setting.useMSearch && mainSearch && mainSearch.length > 0) { // 涓昏〃鎼滅储鏉′欢 @@ -421,6 +422,7 @@ _data.key = item.key _data.$$uuid = _data[config.setting.primaryKey] || '' _data.$$BID = BID || '' + item.$$BData = BData || '' _data.$Index = item.$Index return _data } else { @@ -658,7 +660,7 @@ <Row className="card-row-list"> {offset ? <Col span={offset} style={{height: '10px'}}> </Col> : null} {precards.map((item, index) => ( - <Col key={'pre' + index} className={item.setting.$click} span={item.setting.width || 6}> + <Col key={'pre' + index} className={'extend-card ' + item.setting.$click} span={item.setting.width || 6}> <CardItem card={item} cards={config} data={{$$BID: BID, $$type: 'extendCard'}}/> </Col> ))} @@ -668,7 +670,7 @@ </Col> ))} {nextcards.map((item, index) => ( - <Col key={'next' + index} className={item.setting.$click} span={item.setting.width || 6}> + <Col key={'next' + index} className={'extend-card ' + item.setting.$click} span={item.setting.width || 6}> <CardItem card={item} cards={config} data={{$$BID: BID, $$type: 'extendCard'}}/> </Col> ))} -- Gitblit v1.8.0