This commit is contained in:
parent
813023b998
commit
b8e70e5266
11
src/App.css
11
src/App.css
|
@ -180,3 +180,14 @@ resize: none;
|
||||||
{
|
{
|
||||||
background-color: #B8BCC2 !important;
|
background-color: #B8BCC2 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modal{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
background-color: rgba(0,0,0,0.5);
|
||||||
|
z-index: 9999;
|
||||||
|
|
||||||
|
}
|
|
@ -247,15 +247,14 @@ export default class add extends React.Component{
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
onEditInfo(){
|
async onEditInfo(){
|
||||||
let plan_id = sessionStorage.getItem("plan_id")
|
let plan_id = sessionStorage.getItem("plan_id")
|
||||||
if(this.refs.step1.submit(plan_id))
|
if( await this.refs.step1.submit(plan_id))
|
||||||
{
|
{
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
this.props.history.push('/home/plan-list/');
|
this.props.history.push('/home/plan-list/');
|
||||||
},1500)
|
},1500)
|
||||||
}
|
}
|
||||||
console.log("编辑和")
|
|
||||||
}
|
}
|
||||||
render(){
|
render(){
|
||||||
return(
|
return(
|
||||||
|
|
|
@ -49,7 +49,8 @@ export default class acclist extends React.Component{
|
||||||
rankoptions:[],
|
rankoptions:[],
|
||||||
tempdata:[],
|
tempdata:[],
|
||||||
distdata:[],
|
distdata:[],
|
||||||
oldData:null
|
oldData:null,
|
||||||
|
uploading:false,
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -228,6 +229,15 @@ export default class acclist extends React.Component{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(this.state.uploading )
|
||||||
|
{
|
||||||
|
|
||||||
|
Notify.error("还有图片上传中,不可提交")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.setState({drawerVisible:false})
|
this.setState({drawerVisible:false})
|
||||||
let rank = _.map(this.state.rank,(item)=>{
|
let rank = _.map(this.state.rank,(item)=>{
|
||||||
|
@ -328,8 +338,10 @@ export default class acclist extends React.Component{
|
||||||
|
|
||||||
|
|
||||||
onUpload = (file, report,rowdata) => {
|
onUpload = (file, report,rowdata) => {
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
let count = 0;
|
let count = 0;
|
||||||
|
this.setState({uploading:true})
|
||||||
const update = () => {
|
const update = () => {
|
||||||
if (count < 100) {
|
if (count < 100) {
|
||||||
count += 10;
|
count += 10;
|
||||||
|
@ -343,6 +355,7 @@ export default class acclist extends React.Component{
|
||||||
uploadImg(formdata).then((res)=>{
|
uploadImg(formdata).then((res)=>{
|
||||||
handelResponse(res,(req,msg)=>{
|
handelResponse(res,(req,msg)=>{
|
||||||
console.log("文件上传成功")
|
console.log("文件上传成功")
|
||||||
|
this.setState({uploading:false})
|
||||||
console.log(rowdata)
|
console.log(rowdata)
|
||||||
if (req.path) {
|
if (req.path) {
|
||||||
|
|
||||||
|
@ -393,11 +406,7 @@ export default class acclist extends React.Component{
|
||||||
|
|
||||||
if(file.length > 0 && file[0].status == "success")
|
if(file.length > 0 && file[0].status == "success")
|
||||||
{
|
{
|
||||||
|
|
||||||
let rowIndex =this.state.tempdata.findIndex((o)=>{return o.product_id == row.product_id})
|
let rowIndex =this.state.tempdata.findIndex((o)=>{return o.product_id == row.product_id})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.state.tempdata[rowIndex].describe_url =file[0].src;
|
this.state.tempdata[rowIndex].describe_url =file[0].src;
|
||||||
this.setState({tempdata:this.state.tempdata})
|
this.setState({tempdata:this.state.tempdata})
|
||||||
|
|
||||||
|
@ -406,13 +415,10 @@ export default class acclist extends React.Component{
|
||||||
onUploadChange2(file,row){
|
onUploadChange2(file,row){
|
||||||
if(file.length > 0 && file[0].status == "success")
|
if(file.length > 0 && file[0].status == "success")
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
let rowIndex =this.state.tempdata.findIndex((o)=>{return o.product_id == row.product_id})
|
let rowIndex =this.state.tempdata.findIndex((o)=>{return o.product_id == row.product_id})
|
||||||
|
|
||||||
this.state.tempdata[rowIndex].describe_url =file[0].src;
|
this.state.tempdata[rowIndex].describe_url =file[0].src;
|
||||||
this.setState({tempdata:this.state.tempdata})
|
this.setState({tempdata:this.state.tempdata})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -500,9 +506,6 @@ export default class acclist extends React.Component{
|
||||||
batch_name:[
|
batch_name:[
|
||||||
{ type: "required", message: "请输入key批次名称"},
|
{ type: "required", message: "请输入key批次名称"},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -617,6 +617,9 @@ export default class acclist extends React.Component{
|
||||||
];
|
];
|
||||||
return(
|
return(
|
||||||
<div id="dislist">
|
<div id="dislist">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<TabPage tabs={this.state.tabList}>
|
<TabPage tabs={this.state.tabList}>
|
||||||
<p className="distable dflexj">
|
<p className="distable dflexj">
|
||||||
<Button type="primary" icon="plus" onClick={this.clickFn.bind(this)}>新建营销计划</Button>
|
<Button type="primary" icon="plus" onClick={this.clickFn.bind(this)}>新建营销计划</Button>
|
||||||
|
@ -691,15 +694,23 @@ export default class acclist extends React.Component{
|
||||||
<a className="grid-link" onClick={(e)=>{this.onEdit(e,rowData)} } >编辑</a>
|
<a className="grid-link" onClick={(e)=>{this.onEdit(e,rowData)} } >编辑</a>
|
||||||
<Dropdown position={DropdownPosition.RightTop }>
|
<Dropdown position={DropdownPosition.RightTop }>
|
||||||
<DropdownClickTrigger>
|
<DropdownClickTrigger>
|
||||||
<div className="linkmore"> 更多 <Icon type={"down"} /> </div>
|
<div className="linkmore" onClick={(e)=>{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}}> 更多 <Icon type={"down"} /> </div>
|
||||||
</DropdownClickTrigger>
|
</DropdownClickTrigger>
|
||||||
<DropdownContent>
|
<DropdownContent>
|
||||||
|
|
||||||
<Menu onClick={(e,key)=>this.menuItemClick(e,key,rowData)} >
|
<Menu onClick={(e,key)=>this.menuItemClick(e,key,rowData)} >
|
||||||
<MenuItem key="1">再次发送密码</MenuItem>
|
<MenuItem key="1">再次发送密码</MenuItem>
|
||||||
<MenuItem key="2">再次发送key</MenuItem>
|
<MenuItem key="2">再次发送key</MenuItem>
|
||||||
<MenuItem key="3">修改接收邮箱发送</MenuItem>
|
<MenuItem key="3">修改接收邮箱发送</MenuItem>
|
||||||
<MenuItem key="4">修改接收手机发送</MenuItem>
|
<MenuItem key="4">修改接收手机发送</MenuItem>
|
||||||
</Menu>
|
</Menu>
|
||||||
|
|
||||||
|
|
||||||
</DropdownContent>
|
</DropdownContent>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
</span>
|
</span>
|
||||||
|
@ -707,7 +718,23 @@ export default class acclist extends React.Component{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if(rowData.status ==6 ||rowData.status == 0 )
|
||||||
|
{
|
||||||
|
str = <span>
|
||||||
|
<a className="grid-link" onClick={(e)=>{this.onEdit(e,rowData)} } >编辑</a>
|
||||||
|
<Dropdown position={DropdownPosition.RightTop }>
|
||||||
|
<DropdownClickTrigger>
|
||||||
|
<div className="linkmore" onClick={(e)=>{
|
||||||
|
Notify.error("该状态下的数据不允许编辑")
|
||||||
|
return
|
||||||
|
}}> 更多 <Icon type={"down"} /> </div>
|
||||||
|
</DropdownClickTrigger>
|
||||||
|
<DropdownContent>
|
||||||
|
|
||||||
|
</DropdownContent>
|
||||||
|
</Dropdown>
|
||||||
|
</span>
|
||||||
|
}
|
||||||
|
|
||||||
return str
|
return str
|
||||||
}
|
}
|
||||||
|
@ -718,7 +745,9 @@ export default class acclist extends React.Component{
|
||||||
{
|
{
|
||||||
|
|
||||||
this.state.audit_visible ? (
|
this.state.audit_visible ? (
|
||||||
|
|
||||||
<div className="audit-box" >
|
<div className="audit-box" >
|
||||||
|
|
||||||
<Icon type="close" className="audit-close" onClick={(e)=>{this.cancel(e)}} />
|
<Icon type="close" className="audit-close" onClick={(e)=>{this.cancel(e)}} />
|
||||||
<div className="audit-box-title">发送</div>
|
<div className="audit-box-title">发送</div>
|
||||||
<div className="audit-box-question">是否立即发送key以及解压密码?</div>
|
<div className="audit-box-question">是否立即发送key以及解压密码?</div>
|
||||||
|
|
Loading…
Reference in New Issue