diff --git a/src/assets/api.js b/src/assets/api.js
index 460f6396..033a8f13 100644
--- a/src/assets/api.js
+++ b/src/assets/api.js
@@ -215,6 +215,10 @@ export const getReseller = (id) => {
export const putResellerInfo = (id,data) => {
return req('put', baseurl + "/reseller/"+id,data)
}
+//重置分销商密码
+export const putResellerPwd = (id,data) => {
+ return req('put', baseurl + "/reseller/password/"+id,data)
+}
// 账号管理
diff --git a/src/pages/distributor/list/list.js b/src/pages/distributor/list/list.js
index eb7bf86f..c9c50338 100644
--- a/src/pages/distributor/list/list.js
+++ b/src/pages/distributor/list/list.js
@@ -10,6 +10,7 @@ import Ipt from "../../../components/input/main"
import Grid from "../../../components/gird/main.js"
import TabPage from "../../../components/tabPage/main.js"
import Filterbar from "../../../components/filterbar/main.js"
+import Modifydispwd from "./modifydispwd.js"
const Column = [
{
title: '编号',
@@ -98,6 +99,8 @@ export default class acclist extends React.Component{
this.state={
tabList:[{title:"分销商列表"}],
logVisible:false,
+ pwdVisible:false,
+ resellid:null,
key_word:'',
limit:10,
page:1,
@@ -203,12 +206,21 @@ export default class acclist extends React.Component{
pageChange(){
}
- onMenuItemClick(e,row){
- this.setState({logVisible:true})
+ onMenuItemClick(e,key,row){
+ if(key==1){
+ //重置密码
+ this.setState({pwdVisible:true,resellid:row.id})
+ }else if(key==2){
+ this.setState({logVisible:true})
+ }
}
setLogVisible(e){
this.setState({logVisible:false})
}
+ //重置密码
+ setVisible(e){
+ this.setState({pwdVisible:false});
+ }
//page
pageChange(e){
this.setState({page:e});
@@ -306,9 +318,9 @@ componentDidUpdate(prevProps,prevState){
更多
-
@@ -316,7 +328,17 @@ componentDidUpdate(prevProps,prevState){
}
}}
/>
-
+
+