{this.state.selectiondata.length>0?(
{
handelResponse(res,(req,msg)=>{
@@ -107,6 +98,9 @@ export default class add extends React.Component{
},500)
}
+ else{
+ this.addNewkey()
+ }
},(err)=>{
Notify.error(err)
diff --git a/src/pages/plan/key/list.js b/src/pages/plan/key/list.js
index 0975cd4a..dae991fc 100644
--- a/src/pages/plan/key/list.js
+++ b/src/pages/plan/key/list.js
@@ -55,6 +55,13 @@ const Column = [
prop:'status',
width:'110px',
},
+ {
+ title: '创建人',
+ name: 'creator_name',
+ prop:'creator_name',
+ type: "normal",
+ width:'50px'
+ },
{
title: '发放key总数',
name: 'grant',
@@ -664,7 +671,7 @@ onChangeCombinedDate(e){
>再次发送key
-
+
diff --git a/src/pages/plan/list/list.js b/src/pages/plan/list/list.js
index f918cbdb..7f31a16e 100644
--- a/src/pages/plan/list/list.js
+++ b/src/pages/plan/list/list.js
@@ -473,7 +473,9 @@ export default class acclist extends React.Component{
delete data[prop];
}
else{
- this.setState({prop:e})
+ let params ={}
+ params[prop] = null
+ this.setState(params)
}
this.getPlanList(data)
console.log(data)
@@ -560,7 +562,13 @@ export default class acclist extends React.Component{
console.log(data)
this.setState(data)
-
+ let params = {
+ page:1,
+ limit:10,
+ status:this.state.status,
+ key_word: this.state.search
+ }
+ this.getPlanList(params)
}
@@ -594,8 +602,8 @@ export default class acclist extends React.Component{
},
{
title: '创建人',
- name: 'status',
- prop:'status',
+ name: 'creator_name',
+ prop:'creator_name',
type: "normal",
width:'50px'
},