From c09f3e1fc46d66546816dd9b1f9fcb10aa451139 Mon Sep 17 00:00:00 2001 From: red-deng-deng <1924913374@qq.com> Date: Mon, 22 Nov 2021 14:41:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=86=E9=94=80=E5=95=86?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/distributor/list/list.js | 2 +- src/pages/system/menu/leftnav/leftnav.js | 4 ++-- src/pages/system/menu/menuright/menuright.js | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/pages/distributor/list/list.js b/src/pages/distributor/list/list.js index c9c50338..e0c3ee3a 100644 --- a/src/pages/distributor/list/list.js +++ b/src/pages/distributor/list/list.js @@ -279,7 +279,7 @@ componentDidUpdate(prevProps,prevState){

{/* */} - {this.setState({key_word:''})}} wordSearch={this.sureFn.bind(this)} onChange={(e)=>this.setState({key_word:e})} value={this.state.key_word} icon="search" placeholder={"请输入充值账号、key、分销商等关键字进行搜索"} countShow={false} height={'36px'} width={'260px'} alignment={'left'}/> + {this.setState({key_word:''})}} wordSearch={this.sureFn.bind(this)} onChange={(e)=>this.setState({key_word:e})} value={this.state.key_word} icon="search" placeholder={"请输入登录账号、分销商名称等关键字进行搜索"} countShow={false} height={'36px'} width={'260px'} alignment={'left'}/>

diff --git a/src/pages/system/menu/leftnav/leftnav.js b/src/pages/system/menu/leftnav/leftnav.js index 838a6f1e..ac3622f0 100644 --- a/src/pages/system/menu/leftnav/leftnav.js +++ b/src/pages/system/menu/leftnav/leftnav.js @@ -3,6 +3,7 @@ import React, { Component } from 'react'; import "./leftnav.less" import "../../../../assets/comm.css" import { Card,Button,Notify,Tree } from 'zent'; +import _ from "lodash" import {getMenuList,handelResponse} from "../../../../assets/api.js" const treeData =[] export default class leftnav extends React.Component{ @@ -20,7 +21,6 @@ export default class leftnav extends React.Component{ selectdom: data }); this.props.menuInfo(data) - } onCheck = (checked, helpInfo) => { @@ -35,7 +35,7 @@ export default class leftnav extends React.Component{ let _self=this; getMenuList().then(res=>{ handelResponse(res,(response,msg)=>{ - const menu_data=response; + const menu_data=_.cloneDeep(response); _self.setState({menu_data}); }) }) diff --git a/src/pages/system/menu/menuright/menuright.js b/src/pages/system/menu/menuright/menuright.js index a1ea2a70..81e91aba 100644 --- a/src/pages/system/menu/menuright/menuright.js +++ b/src/pages/system/menu/menuright/menuright.js @@ -63,12 +63,14 @@ methodsonChange = e => { resetInfo(){ console.log(888,this.state.cancelInfo); this.setState({model:this.state.cancelInfo}); + console.log('充值',this.state.cancelInfo); } cancel(){ let model2 = { //数据模型不可少 menuname:"", - } + } + this.setState({model:model2}); this.refs.form1.cancel(); }