更新key码列表的显示,更改登录显示字段

This commit is contained in:
red-deng-deng 2021-12-23 10:11:38 +08:00
parent b9998fa9dd
commit 04c5c10581
4 changed files with 8 additions and 9 deletions

View File

@ -66,11 +66,11 @@ export default class topNav extends React.Component{
let pathnameBreak=sessionStorage.getItem('pathname2') let pathnameBreak=sessionStorage.getItem('pathname2')
const pathname=window.location.href.lastIndexOf('\/'); const pathname=window.location.href.lastIndexOf('\/');
const pathnamestr=window.location.href.substr(pathname); const pathnamestr=window.location.href.substr(pathname);
let breakflag=pathnamestr.includes('add')||pathnamestr.includes('aid')||pathnamestr.includes('key-list')||pathnamestr.includes('key-edit')||pathnamestr.includes('exchangecode-edit')||pathnamestr.includes('plan-edit')||pathnamestr.includes('product-edit'); let breakflag=pathnamestr.includes('add')||pathnamestr.includes('aid')||pathnamestr.includes('key-list')||pathnamestr.includes('key-detail')||pathnamestr.includes('key-edit')||pathnamestr.includes('exchangecode-edit')||pathnamestr.includes('plan-edit')||pathnamestr.includes('product-edit');
let sedcbreakflag=pathnamestr.includes('plan-create'); let sedcbreakflag=pathnamestr.includes('plan-create');
let planbreakflag = pathnamestr.includes('mytempMould') let planbreakflag = pathnamestr.includes('mytempMould')
let editbreakflag = pathnamestr.includes('edittemplate') let editbreakflag = pathnamestr.includes('edittemplate')
let breakchange = pathnamestr.includes('exchangecode-add')|| pathnamestr.includes('key-edit')||pathnamestr.includes('product-edit')||pathnamestr.includes('plan-edit'); let breakchange = pathnamestr.includes('exchangecode-add')|| pathnamestr.includes('key-edit')||pathnamestr.includes('key-detail')||pathnamestr.includes('product-edit')||pathnamestr.includes('plan-edit');
if(breakchange){ if(breakchange){
breaknav=JSON.parse(sessionStorage.getItem('breakchangenav')) breaknav=JSON.parse(sessionStorage.getItem('breakchangenav'))
} }

View File

@ -299,7 +299,7 @@ export default class App extends Component {
item=activeMenuList.filter(item=>item.id==17); item=activeMenuList.filter(item=>item.id==17);
this.setState({setrender:4}); this.setState({setrender:4});
} }
if(pathnameNow.includes('exchangepage')||pathnameNow.includes('edittemplate')){ if(pathnameNow.includes('exchangepage')||pathnameNow.includes('edittemplate')||pathnameNow.includes('myexchangetemplate')){
item=activeMenuList.filter(item=>item.id==18); item=activeMenuList.filter(item=>item.id==18);
this.setState({setrender:5}); this.setState({setrender:5});
} }

View File

@ -38,7 +38,7 @@ import {
function FormDom(props) { function FormDom(props) {
const form = Form.useForm(FormStrategy.View); const form = Form.useForm(FormStrategy.View);
const [disabled, setDisabled] = React.useState(true); const [disabled, setDisabled] = React.useState(true);
const [yzmcode, setYzmcode] = React.useState(false); const [yzmcode, setYzmcode] = React.useState(false);//控制图形验证码
const [acc, setAcc] = React.useState(''); const [acc, setAcc] = React.useState('');
const [pwd, setPwd] = React.useState(''); const [pwd, setPwd] = React.useState('');
const [piccode, setPiccode] = React.useState(''); const [piccode, setPiccode] = React.useState('');
@ -174,7 +174,6 @@ const sendCode=()=>{
} }
const sendAcc=(e)=>{ const sendAcc=(e)=>{
if(e){ if(e){
setDisabled(false);
setAcc(e); setAcc(e);
if(pwd.length>=6&&e.length>=2){ if(pwd.length>=6&&e.length>=2){
setDisabled(false); setDisabled(false);
@ -336,13 +335,13 @@ const sendCodeApi=()=>{
name = "code" name = "code"
props = { props = {
{ {
placeholder: '请输入验证码',maxLength:5 placeholder: '请输入图形验证码',maxLength:5
} }
} }
onChange={sendPicCode} onChange={sendPicCode}
validators = { validators = {
[ [
Validators.required('请输入验证码'), Validators.required('请输入图形验证码'),
] ]
} }
/> < /> <
@ -361,7 +360,7 @@ const sendCodeApi=()=>{
<FormInputField <FormInputField
style={{width:'60%',marginRight:'2%'}} style={{width:'60%',marginRight:'2%'}}
name="notecode" name="notecode"
props={{placeholder: '请输入验证码',maxLength:6 }} props={{placeholder: '请输入短信验证码',maxLength:6 }}
validators={[ validators={[
Validators.required('请点击右边按钮获取验证码'), Validators.required('请点击右边按钮获取验证码'),

View File

@ -564,7 +564,7 @@ linkTo(row){
{path:'/home/key-detail',name:row.batch_name+'key码列表'} {path:'/home/key-detail',name:row.batch_name+'key码列表'}
]}] ]}]
sessionStorage.setItem("plan_item",JSON.stringify(row)) sessionStorage.setItem("plan_item",JSON.stringify(row))
sessionStorage.setItem('breaknav',JSON.stringify(arr)); sessionStorage.setItem('breakchangenav',JSON.stringify(arr));
sessionStorage.setItem('linkshowname',"营销计划管理"); sessionStorage.setItem('linkshowname',"营销计划管理");
sessionStorage.setItem("key_batch_id",row.id) sessionStorage.setItem("key_batch_id",row.id)
this.props.history.push('/home/key-detail'); this.props.history.push('/home/key-detail');