diff --git a/src/App.css b/src/App.css index dddcfcb3..2cd7d051 100644 --- a/src/App.css +++ b/src/App.css @@ -188,6 +188,6 @@ resize: none; left: 0; top: 0; background-color: rgba(0,0,0,0.5); - z-index: 9999; + z-index: 2; } \ No newline at end of file diff --git a/src/pages/plan/add/add.js b/src/pages/plan/add/add.js index 75229b05..762e440e 100644 --- a/src/pages/plan/add/add.js +++ b/src/pages/plan/add/add.js @@ -1,7 +1,7 @@ import ReactDOM from 'react-dom'; import React, { Component } from 'react'; import { HashRouter as Router, Route, Link } from "react-router-dom"; -import { Button ,Card,Icon ,Notify,Radio,RadioGroup,smoothScroll,Sweetalert} from 'zent'; +import { Button ,Card,Icon ,Notify,Radio,RadioGroup,smoothScroll,Sweetalert,Input} from 'zent'; import "./add.less" import Step1 from "./step1.js" import Step2 from "./step2.js" @@ -25,8 +25,10 @@ export default class add extends React.Component{ ], phone_list:[], email_list:[], - phone:0, - email:0, + phone:"", + email:"", + email_radio:null, + phone_radio:null, audit_visible:false, card_visible:false } @@ -166,10 +168,10 @@ export default class add extends React.Component{ } onPhoneChange(e){ - this.setState({phone:e.target.value}) + this.setState({phone_radio:e.target.value}) } onEmailChange(e){ - this.setState({email:e.target.value}) + this.setState({email_radio:e.target.value}) } cancel(e){ this.setState({audit_visible:false}) @@ -192,8 +194,8 @@ export default class add extends React.Component{ { let plan_id = sessionStorage.getItem("plan_id") let data ={ - email: this.state.email_list[this.state.email] , - phone:this.state.phone_list[this.state.phone] , + phone: this.state.phone_radio ? this.state.phone_list[this.state.phone_radio] : this.state.phone , + email: this.state.email_radio ? this.state.email_list[this.state.email_radio] : this.state.email } @@ -209,6 +211,18 @@ export default class add extends React.Component{ } + phoneChange=(e)=> + { + + this.setState({"phone":e.target.value}) + + } + emailChange=(e)=> + { + + this.setState({"email":e.target.value}) + + } render(){ return( @@ -319,7 +333,7 @@ export default class add extends React.Component{
{this.onPhoneChange(e)}} > @@ -341,7 +355,7 @@ export default class add extends React.Component{
{this.onEmailChange(e)} } > @@ -355,6 +369,12 @@ export default class add extends React.Component{
+
+ +
+
+ +
diff --git a/src/pages/plan/add/add.less b/src/pages/plan/add/add.less index 225aa291..47a7dda2 100644 --- a/src/pages/plan/add/add.less +++ b/src/pages/plan/add/add.less @@ -162,7 +162,7 @@ left: 50%; margin-left: -200px; top: 30%; - z-index: 9999; + z-index: 5; .audit-close{ font-size: 20px; position: absolute; diff --git a/src/pages/plan/key/edit.js b/src/pages/plan/key/edit.js index e19e0377..0e356222 100644 --- a/src/pages/plan/key/edit.js +++ b/src/pages/plan/key/edit.js @@ -54,7 +54,7 @@ export default class acclist extends React.Component{ rankoptions:[], tempdata:[], distdata:[], - pagetitle:"新建key", + pagetitle:"编辑key", isEdit:false, begintime:"", endtime:"", @@ -143,6 +143,8 @@ export default class acclist extends React.Component{ valide = true; return },(err)=>{ + + Notify.error(err) }) })