|
|
@ -96,11 +96,12 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import axios from "axios";
|
|
|
|
import axios from "axios";
|
|
|
|
import {filterLog, downloadLog, deleteLog} from "../../api/basic/udiInfoExport";
|
|
|
|
import {filterLog, downloadLog, deleteLog} from "../../api/basic/udiInfoExport";
|
|
|
|
import udiInfoSelect from "./UdIInfoSelect";
|
|
|
|
import udiInfoSelect from "./UdIInfoSelect";
|
|
|
|
|
|
|
|
import {formatDate} from "@/utils/date";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
filterQuery: {
|
|
|
|
filterQuery: {
|
|
|
@ -183,15 +184,13 @@
|
|
|
|
let baseUrl = res.data.BASE_URL;
|
|
|
|
let baseUrl = res.data.BASE_URL;
|
|
|
|
let href = baseUrl + "/udiwms/products/exportLog/download" + "?genKey=" + row.genKey;
|
|
|
|
let href = baseUrl + "/udiwms/products/exportLog/download" + "?genKey=" + row.genKey;
|
|
|
|
let a = document.createElement("a");
|
|
|
|
let a = document.createElement("a");
|
|
|
|
|
|
|
|
var timestamp = formatDate(new Date(), "yyyyMMddhhmmss")
|
|
|
|
fetch(href)
|
|
|
|
fetch(href)
|
|
|
|
.then((res) => res.blob())
|
|
|
|
.then((res) => res.blob())
|
|
|
|
.then((blob) => {
|
|
|
|
.then((blob) => {
|
|
|
|
a.href = URL.createObjectURL(blob);
|
|
|
|
a.href = URL.createObjectURL(blob);
|
|
|
|
console.log(a.href);
|
|
|
|
console.log(a.href);
|
|
|
|
a.download =
|
|
|
|
a.download = "BaseProduct_" + timestamp + ".UpperIn";
|
|
|
|
row.filePath.split("/")[
|
|
|
|
|
|
|
|
row.filePath.split("/").length - 1
|
|
|
|
|
|
|
|
]; // // 下载文件的名字
|
|
|
|
|
|
|
|
document.body.appendChild(a);
|
|
|
|
document.body.appendChild(a);
|
|
|
|
a.click();
|
|
|
|
a.click();
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
@ -267,29 +266,29 @@
|
|
|
|
// this.getBasicThirdSys();
|
|
|
|
// this.getBasicThirdSys();
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style>
|
|
|
|
<style>
|
|
|
|
.itemTag {
|
|
|
|
.itemTag {
|
|
|
|
float: left;
|
|
|
|
float: left;
|
|
|
|
text-align: left;
|
|
|
|
text-align: left;
|
|
|
|
margin-top: 10px;
|
|
|
|
margin-top: 10px;
|
|
|
|
width: 100px;
|
|
|
|
width: 100px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.text {
|
|
|
|
.text {
|
|
|
|
font-size: 13px;
|
|
|
|
font-size: 13px;
|
|
|
|
font-family: "Microsoft YaHei";
|
|
|
|
font-family: "Microsoft YaHei";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-row {
|
|
|
|
.el-row {
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-col {
|
|
|
|
.el-col {
|
|
|
|
border-radius: 4px;
|
|
|
|
border-radius: 4px;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|