新增白名单下载

This commit is contained in:
姜棚 2022-01-21 14:24:39 +08:00
parent b73df8bd44
commit 9cebd8c368
3 changed files with 12 additions and 4 deletions

View File

@ -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">

View File

@ -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">