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