独立子账号代码

This commit is contained in:
red-deng-deng 2021-12-10 18:02:28 +08:00
parent 2f1361bbc1
commit 6b4e5edff5
1 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,61 @@
import ReactDOM from 'react-dom';
import React, { Component } from 'react';
import { HashRouter as Router, Route, Link } from "react-router-dom";
import "./list.less"
import {Select,Radio } from 'zent';
import TabPage from "../../../../components/tabPage/main.js"
import "../../../../assets/comm.css"
import {getAccountList,handelResponse,getCompany,putAccountStatus,delAccount} from "../../../../assets/api.js"
import Grid from "../../../../components/gird/main.js"
import Ipt from "../../../../components/input/main"
import Modifypwd from "./modifypwd"
import delAuth from "./delAuth"
import _ from "lodash";
const options = [
{
key: '1',
text: '平级交接人',
},
{
key: '2',
text: '下级交接人',
}
];
const RadioGroup = Radio.Group;
const RadioButton = Radio.Button;
export default class acclistDom extends React.Component{
constructor(props){
super(props)
this.state={
classification:'',
personnel:'',
value: '1',
}
}
setVisible = visible => {
this.setState({ visible });
};
onChange = e => {
this.setState({ value: e.target.value });
};
render(){
return(
<div id="delAuth">
<p className="tips">是否删除<b>[{this.props.deldata.real_name}]</b>:</p>
<div className="delperson">
<RadioGroup onChange={this.onChange} value={this.state.value}>
<RadioButton value="1"></RadioButton>
<RadioButton value="2"></RadioButton>
</RadioGroup>
</div>
<p className="tips">请先将此账号的权限交接</p>
<div className="handover">
<Select options={options} placeholder='请选择' onChange={e=>this.setState({personnel:'',classification:e})} value={this.state.classification} />
<Select options={options} placeholder='请选择' onChange={e=>this.setState({personnel:e})} value={this.state.personnel} />
</div>
</div>
)
}
}