Commit b709fdf4 by danmo

员工活码下载

1 parent e4556811
...@@ -104,11 +104,10 @@ export default { ...@@ -104,11 +104,10 @@ export default {
return year + '-' + month + '-' + date return year + '-' + month + '-' + date
}, },
download() { download() {
let userName =""; let userName = this.form.weEmpleCodeUseScops.map((item) =>{
this.form.weEmpleCodeUseScops.forEach((item) =>{ return item.businessName
userName+=item.businessName+","; }).join(",");
}) let name = userName +"-"+this.form.activityScene+".png"
let name = userName.substr(0,userName.length-1) +"-"+this.form.activityScene+".png"
download(this.form.id).then((res) =>{ download(this.form.id).then((res) =>{
if (res!=null) { if (res!=null) {
let blob = new Blob([res], {type: 'application/zip'}); let blob = new Blob([res], {type: 'application/zip'});
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!