gengxin
This commit is contained in:
parent
162936553a
commit
d50f0f282c
|
@ -348,8 +348,8 @@ export const postRole = (data) => {
|
|||
return req('post', baseurl + "/auth/adminRole",data)
|
||||
}
|
||||
//角色编辑
|
||||
export const postEditRole = (id,data) => {
|
||||
return req('post', baseurl + "/auth/adminRole/"+id,data)
|
||||
export const putEditRole = (id,data) => {
|
||||
return req('put', baseurl + "/auth/adminRole/"+id,data)
|
||||
}
|
||||
|
||||
|
||||
|
@ -428,16 +428,11 @@ export const postLogin = (data) => {
|
|||
//连续输入三次,需验证码校验
|
||||
export const getVerify = (params) => {
|
||||
return req('post', baseurl + "/auth/login/verify", params)
|
||||
return req('post', baseurl + "/auth/admin/status", data)
|
||||
}
|
||||
//获取用户信息接口
|
||||
export const getUserinfo= (params) => {
|
||||
return req('get', baseurl + "/auth/admin/userinfo",params)
|
||||
}
|
||||
//退出登录接口
|
||||
export const postLogOut = (data) => {
|
||||
return req('post', baseurl + "/auth/logout", data)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -483,19 +478,9 @@ export const getSystemTemplate= (data) => {
|
|||
|
||||
|
||||
|
||||
//登录
|
||||
export const postLogin = (data) => {
|
||||
return req('post', baseurl + "/auth/login", data)
|
||||
}
|
||||
|
||||
// logout退出登录
|
||||
//连续输入三次,需验证码校验
|
||||
export const getVerify = (params) => {
|
||||
return req('post', baseurl + "/auth/login/verify", params)
|
||||
}
|
||||
//获取用户信息接口
|
||||
export const getUserinfo= (params) => {
|
||||
return req('get', baseurl + "/auth/admin/userinfo",params)
|
||||
}
|
||||
|
||||
//退出登录接口
|
||||
export const postLogOut = (data) => {
|
||||
return req('post', baseurl + "/auth/logout", data)
|
||||
|
|
|
@ -103,7 +103,7 @@ html,body,h1,h2,h3,h4,h5,h6,p,ul,li,dl,dd,dt,ol,input{
|
|||
vertical-align: middle;
|
||||
/* border: 2px solid rgb(159, 222, 252); */
|
||||
margin-right: 5px;
|
||||
|
||||
}
|
||||
|
||||
.delfilebtn{
|
||||
color: #296bef;
|
||||
|
|
|
@ -269,24 +269,13 @@ export default class acclist extends React.Component {
|
|||
current,
|
||||
pageSize
|
||||
} = this.state;
|
||||
return ( <
|
||||
div id = "dislist" >
|
||||
<
|
||||
TabPage tabs = {
|
||||
this.state.tabList
|
||||
}
|
||||
tabChange = {
|
||||
return ( <div id = "dislist" >
|
||||
<TabPage tabs = {this.state.tabList} tabChange = {
|
||||
(e) => this.tabChange(e)
|
||||
} >
|
||||
<
|
||||
div className = "distable dflexj" >
|
||||
<
|
||||
Button type = "primary"
|
||||
icon = "plus"
|
||||
onClick = {
|
||||
this.clickFn.bind(this)
|
||||
} > 我的模板 < /Button> <
|
||||
Ipt icon = "search"
|
||||
<div className = "distable dflexj" >
|
||||
<Button type = "primary" icon = "plus"
|
||||
onClick = {this.clickFn.bind(this)} > 我的模板 </Button> <Ipt icon = "search"
|
||||
placeholder = {
|
||||
"请输入关键字进行搜索"
|
||||
}
|
||||
|
@ -302,12 +291,9 @@ export default class acclist extends React.Component {
|
|||
alignment = {
|
||||
'left'
|
||||
}
|
||||
/> <
|
||||
/div> <
|
||||
div >
|
||||
/> </div> <div >
|
||||
|
||||
<
|
||||
Grid isBorder = {
|
||||
<Grid isBorder = {
|
||||
true
|
||||
}
|
||||
spliteColor = {
|
||||
|
|
|
@ -226,8 +226,7 @@ delFn(e,row){
|
|||
a onClick={(e)=>{this.delFn(e,rowData)}}
|
||||
className = "grid-link" > 删除 < /a>
|
||||
|
||||
<
|
||||
/span>
|
||||
</span>
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
|
|
@ -6,7 +6,7 @@ import React, {
|
|||
import {
|
||||
HashRouter as Router,
|
||||
Route,
|
||||
Link,
|
||||
Link,
|
||||
Redirect
|
||||
} from "react-router-dom";
|
||||
import "./home.less"
|
||||
|
@ -14,7 +14,9 @@ import "../../assets/comm.css"
|
|||
// import Topnav from "../../components/topNav/main"
|
||||
import Subnav from "../../components/subnav/main"
|
||||
import {
|
||||
Avatar,
|
||||
Avatar,
|
||||
Pop,
|
||||
Sweetalert,
|
||||
Notify
|
||||
} from 'zent';
|
||||
import extension from '../extension/main/main';
|
||||
|
@ -60,7 +62,7 @@ import distributoradd from '../distributor/add/add';
|
|||
import mytempMouldadd from '../exchangepage/template/main.js'
|
||||
import edittemplate from '../exchangepage/edittemplate/main.js'
|
||||
import myexchangetemplate from '../exchangepage/mytemplate/main.js'
|
||||
|
||||
import {getUserinfo,handelResponse,postLogOut} from "../../assets/api.js"
|
||||
let timerstop = null;
|
||||
export default class App extends Component {
|
||||
|
||||
|
|
|
@ -218,6 +218,7 @@ export default class orderlist extends React.Component{
|
|||
|
||||
//作废
|
||||
deleteFn(e,row){
|
||||
let self=this;
|
||||
Sweetalert.confirm({
|
||||
type:'warning',
|
||||
closeBtn:true,
|
||||
|
|
Loading…
Reference in New Issue