|
@@ -161,17 +161,14 @@
|
|
handleDownload(row) {
|
|
handleDownload(row) {
|
|
const id = row.eventCode
|
|
const id = row.eventCode
|
|
eventhandleDownload(id).then(response => {
|
|
eventhandleDownload(id).then(response => {
|
|
- this.$modal.msgSuccess(response.msg)
|
|
|
|
- this.getList();
|
|
|
|
- /*if (response.code == 200) {
|
|
|
|
- this.$modal.msgSuccess("下载成功");
|
|
|
|
|
|
+ if(response.code === 200){
|
|
|
|
+ this.$modal.msgSuccess(response.msg)
|
|
this.getList();
|
|
this.getList();
|
|
- } else {
|
|
|
|
- if (response.msg == null) {
|
|
|
|
- response.data.msg = "下载失败";
|
|
|
|
- }
|
|
|
|
- this.$modal.msgError(response.msg);
|
|
|
|
- }*/
|
|
|
|
|
|
+ }else{
|
|
|
|
+ this.$modal.msgError(response.msg)
|
|
|
|
+ this.getList();
|
|
|
|
+ }
|
|
|
|
+
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 表单重置
|
|
// 表单重置
|