This commit is contained in:
red-deng-deng 2021-11-23 20:47:40 +08:00
parent 162936553a
commit d50f0f282c
6 changed files with 19 additions and 46 deletions

View File

@ -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)

View File

@ -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;

View File

@ -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 = {

View File

@ -226,8 +226,7 @@ delFn(e,row){
a onClick={(e)=>{this.delFn(e,rowData)}}
className = "grid-link" > 删除 < /a>
<
/span>
</span>
}
}}
/>

View File

@ -15,6 +15,8 @@ import "../../assets/comm.css"
import Subnav from "../../components/subnav/main"
import {
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 {

View File

@ -218,6 +218,7 @@ export default class orderlist extends React.Component{
//作废
deleteFn(e,row){
let self=this;
Sweetalert.confirm({
type:'warning',
closeBtn:true,