Commit f753d41b by swl

feat: gx

parent 0bdfab8e
...@@ -805,6 +805,8 @@ export default { ...@@ -805,6 +805,8 @@ export default {
], ],
}, },
refundForm: {}, refundForm: {},
fileDownload: false,
row: null,
}; };
}, },
watch: { watch: {
...@@ -866,6 +868,14 @@ export default { ...@@ -866,6 +868,14 @@ export default {
} else { } else {
this.tableData = []; this.tableData = [];
} }
if (this.fileDownload && this.row) {
const url = this.tableData.filter((item) => {
return item.code === this.row.code;
})[0]?.fileUrl;
window.location.href = url;
this.fileDownload = false;
this.row = null;
}
} }
}); });
}, },
...@@ -900,6 +910,14 @@ export default { ...@@ -900,6 +910,14 @@ export default {
} else { } else {
this.tableData = []; this.tableData = [];
} }
if (this.fileDownload && this.row) {
const url = this.tableData.filter((item) => {
return item.code === this.row.code;
})[0]?.fileUrl;
window.location.href = url;
this.fileDownload = false;
this.row = null;
}
} }
}); });
}); });
...@@ -1276,8 +1294,10 @@ export default { ...@@ -1276,8 +1294,10 @@ export default {
break; break;
default: default:
this.row = row;
this.fileDownload = true;
await this.resetHandle(row);
// await this.resetHandle(row); // await this.resetHandle(row);
window.location.href = row.fileUrl;
break; break;
} }
}, },
......
...@@ -790,6 +790,8 @@ export default { ...@@ -790,6 +790,8 @@ export default {
], ],
}, },
refundForm: {}, refundForm: {},
fileDownload: false,
row: null,
}; };
}, },
watch: { watch: {
...@@ -851,6 +853,14 @@ export default { ...@@ -851,6 +853,14 @@ export default {
} else { } else {
this.tableData = []; this.tableData = [];
} }
if (this.fileDownload && this.row) {
const url = this.tableData.filter((item) => {
return item.code === this.row.code;
})[0]?.fileUrl;
window.location.href = url;
this.fileDownload = false;
this.row = null;
}
} }
}); });
}, },
...@@ -885,6 +895,14 @@ export default { ...@@ -885,6 +895,14 @@ export default {
} else { } else {
this.tableData = []; this.tableData = [];
} }
if (this.fileDownload && this.row) {
const url = this.tableData.filter((item) => {
return item.code === this.row.code;
})[0]?.fileUrl;
window.location.href = url;
this.fileDownload = false;
this.row = null;
}
} }
}); });
}); });
...@@ -1262,8 +1280,10 @@ export default { ...@@ -1262,8 +1280,10 @@ export default {
default: default:
// await this.resetHandle(row); // await this.resetHandle(row);
this.row = row;
this.fileDownload = true;
await this.resetHandle(row);
window.location.href = row.fileUrl;
break; break;
} }
}, },
......
...@@ -806,6 +806,8 @@ export default { ...@@ -806,6 +806,8 @@ export default {
], ],
}, },
refundForm: {}, refundForm: {},
fileDownload: false,
row: null,
}; };
}, },
watch: { watch: {
...@@ -867,6 +869,14 @@ export default { ...@@ -867,6 +869,14 @@ export default {
} else { } else {
this.tableData = []; this.tableData = [];
} }
if (this.fileDownload && this.row) {
const url = this.tableData.filter((item) => {
return item.code === this.row.code;
})[0]?.fileUrl;
window.location.href = url;
this.fileDownload = false;
this.row = null;
}
} }
}); });
}, },
...@@ -901,6 +911,14 @@ export default { ...@@ -901,6 +911,14 @@ export default {
} else { } else {
this.tableData = []; this.tableData = [];
} }
if (this.fileDownload && this.row) {
const url = this.tableData.filter((item) => {
return item.code === this.row.code;
})[0]?.fileUrl;
window.location.href = url;
this.fileDownload = false;
this.row = null;
}
} }
}); });
}); });
...@@ -1275,8 +1293,10 @@ export default { ...@@ -1275,8 +1293,10 @@ export default {
break; break;
default: default:
this.row = row;
this.fileDownload = true;
await this.resetHandle(row);
// await this.resetHandle(row); // await this.resetHandle(row);
window.location.href = row.fileUrl;
break; break;
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment