Commit 336faae8 authored by 单奇雲's avatar 单奇雲

检索bug

parent 44554099
import React, { Component } from 'react'; import React, { Component } from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import { deepCopy } from 'amos-tool';
import { SidePane, Tabs, message } from 'amos-framework'; import { SidePane, Tabs, message } from 'amos-framework';
import Icon from 'amos-icon'; import Icon from 'amos-icon';
import { AmosGridTable } from 'amos-pro'; import { AmosGridTable } from 'amos-pro';
...@@ -166,7 +167,7 @@ class SearchPane extends Component { ...@@ -166,7 +167,7 @@ class SearchPane extends Component {
let views = new Array(); let views = new Array();
if (record.position){ if (record.position){
record.id = record.id.replace( `${record.type}-` ,'' ); record.id = record.id.replace( `${record.type}-` ,'' );
views.push(record); views.push(deepCopy(record));
let args = { let args = {
target: views, target: views,
operateType: operateTypes.POINT_SEARCH operateType: operateTypes.POINT_SEARCH
...@@ -280,6 +281,7 @@ class SearchPane extends Component { ...@@ -280,6 +281,7 @@ class SearchPane extends Component {
paramsOnChange = (filter) => { paramsOnChange = (filter) => {
const { activeKey } = this.state; const { activeKey } = this.state;
this.setPageConfig({ pageSize: 10, current: 1 });
if (activeKey === 'search'){ if (activeKey === 'search'){
this.setState({ filter },this.fetchRetrieveData); this.setState({ filter },this.fetchRetrieveData);
} else if (activeKey === 'message'){ } else if (activeKey === 'message'){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment