|
@@ -1,14 +1,30 @@
|
|
import React from 'react';
|
|
import React from 'react';
|
|
|
|
+import $ from "jquery/src/ajax";
|
|
import './top.less';
|
|
import './top.less';
|
|
import logo from '../../../image/kede.png';
|
|
import logo from '../../../image/kede.png';
|
|
|
|
|
|
const Bottom = React.createClass({
|
|
const Bottom = React.createClass({
|
|
|
|
+
|
|
|
|
+ logOut() {
|
|
|
|
+ $.ajax({
|
|
|
|
+ method: "get",
|
|
|
|
+ dataType: "json",
|
|
|
|
+ url: globalConfig.context + "/login",
|
|
|
|
+ }).done(function (data) {
|
|
|
|
+ window.location.href = globalConfig.context + "/RD/admin/login";
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+
|
|
render() {
|
|
render() {
|
|
return (
|
|
return (
|
|
<div className="top">
|
|
<div className="top">
|
|
<img className="top-logo" src={logo} alt="" />
|
|
<img className="top-logo" src={logo} alt="" />
|
|
科研中心RD库
|
|
科研中心RD库
|
|
- <a href={globalConfig.context + "/admin/login"}>前往科德系统</a>
|
|
|
|
|
|
+ <div className='top-rignt'>
|
|
|
|
+ <span>{adminData.name || adminData.mobile}</span>
|
|
|
|
+ <a onClick={this.logOut} style={{ color: "#fff", marginRight: "30px" }}>[ 退出 ]</a>
|
|
|
|
+ <a href={globalConfig.context + "/admin/login"}>前往科德系统</a>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
);
|
|
);
|
|
}
|
|
}
|