|
@@ -19,7 +19,8 @@ function mapStateToProps(state){//console.log(state)
|
|
|
|
|
|
function mainSuitSearch(obj){
|
|
|
return (dispatch)=>{
|
|
|
- const text = obj.text.replace(/\,/,'');
|
|
|
+ // const text = obj.text.replace(/\,/,'');
|
|
|
+ const text = obj.text;
|
|
|
getSearch({boxMark:1,inpStr:text,mainIds:obj.mainIds,itemType:0}).then((res)=>{
|
|
|
if(res.data.code=='0'){
|
|
|
dispatch({
|
|
@@ -35,7 +36,8 @@ function mainSuitSearch(obj){
|
|
|
|
|
|
function currentSearch(obj){
|
|
|
return (dispatch)=>{
|
|
|
- const text = obj.text.replace(/\,/,'');
|
|
|
+ // const text = obj.text.replace(/\,/,'');
|
|
|
+ const text = obj.text;
|
|
|
getSearch({boxMark:1,inpStr:text,mainIds:obj.mainIds}).then((res)=>{
|
|
|
if(res.data.code=='0'){
|
|
|
dispatch({
|
|
@@ -51,7 +53,8 @@ function currentSearch(obj){
|
|
|
|
|
|
function checkBodySearch(obj){
|
|
|
return (dispatch)=>{
|
|
|
- const text = obj.text.replace(/\,/,'');
|
|
|
+ // const text = obj.text.replace(/\,/,'');
|
|
|
+ const text = obj.text;
|
|
|
getSearch({boxMark:4,inpStr:text}).then((res)=>{
|
|
|
if(res.data.code=='0'){
|
|
|
dispatch({
|
|
@@ -67,7 +70,8 @@ function checkBodySearch(obj){
|
|
|
|
|
|
function otherHisSearch(obj) {
|
|
|
return (dispatch)=>{
|
|
|
- const text = obj.text.replace(/\,/,'');
|
|
|
+ // const text = obj.text.replace(/\,/,'');
|
|
|
+ const text = obj.text;
|
|
|
getSearch({boxMark:3,inpStr:text}).then((res)=>{
|
|
|
if(res.data.code=='0'){
|
|
|
dispatch({
|