新增白名单下载
This commit is contained in:
parent
b73df8bd44
commit
9cebd8c368
|
@ -802,7 +802,7 @@ export default class acclist extends React.Component{
|
||||||
if(my_file.name.indexOf(".xls")||my_file.name.indexOf(".xlsx")||my_file.name.indexOf(".csv"))
|
if(my_file.name.indexOf(".xls")||my_file.name.indexOf(".xlsx")||my_file.name.indexOf(".csv"))
|
||||||
{
|
{
|
||||||
|
|
||||||
if(my_file.size > 2048000)
|
if(my_file.size > 5120000)
|
||||||
{
|
{
|
||||||
Notify.error("文件大小不能大于2M")
|
Notify.error("文件大小不能大于2M")
|
||||||
return;
|
return;
|
||||||
|
@ -903,6 +903,11 @@ export default class acclist extends React.Component{
|
||||||
rowData.type= rowData.type == "success" ? "repeat" :"error"
|
rowData.type= rowData.type == "success" ? "repeat" :"error"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
downLoadTemplate(){
|
||||||
|
window.location.href = "https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/%E7%99%BD%E5%90%8D%E5%8D%95%E6%A8%A1%E6%9D%BF.xlsx"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
render(){
|
render(){
|
||||||
const Column = [
|
const Column = [
|
||||||
{
|
{
|
||||||
|
@ -1510,7 +1515,7 @@ export default class acclist extends React.Component{
|
||||||
<div>请先下载「数字世界营销管理系统_白名单_模板」并按照模板填写后再上传。</div>
|
<div>请先下载「数字世界营销管理系统_白名单_模板」并按照模板填写后再上传。</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Button type="default" className="btn-download">
|
<Button type="default" className="btn-download" onClick={(e)=>{this.downLoadTemplate()}}>
|
||||||
下载模板
|
下载模板
|
||||||
</Button>
|
</Button>
|
||||||
<div className="foot-bar">
|
<div className="foot-bar">
|
||||||
|
|
|
@ -294,7 +294,7 @@ export default class add extends React.Component{
|
||||||
this.setState({"email":e.target.value})
|
this.setState({"email":e.target.value})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
render(){
|
render(){
|
||||||
return(
|
return(
|
||||||
<div id="plan-add">
|
<div id="plan-add">
|
||||||
|
|
|
@ -728,6 +728,9 @@ export default class acclist extends React.Component{
|
||||||
rowData.type= rowData.type == "success" ? "repeat" :"error"
|
rowData.type= rowData.type == "success" ? "repeat" :"error"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
downLoadTemplate(){
|
||||||
|
window.location.href = "https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/%E7%99%BD%E5%90%8D%E5%8D%95%E6%A8%A1%E6%9D%BF.xlsx"
|
||||||
|
}
|
||||||
|
|
||||||
render(){
|
render(){
|
||||||
|
|
||||||
|
@ -1350,7 +1353,7 @@ export default class acclist extends React.Component{
|
||||||
<div>请先下载「数字世界营销管理系统_白名单_模板」并按照模板填写后再上传。</div>
|
<div>请先下载「数字世界营销管理系统_白名单_模板」并按照模板填写后再上传。</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Button type="default" className="btn-download">
|
<Button type="default" className="btn-download" onClick={(e)=>{this.downLoadTemplate(e)}}>
|
||||||
下载模板
|
下载模板
|
||||||
</Button>
|
</Button>
|
||||||
<div className="foot-bar">
|
<div className="foot-bar">
|
||||||
|
|
Loading…
Reference in New Issue