提交 bdc6e2fd 编写于 作者: zhentian.jia's avatar zhentian.jia

导出页问题

上级 6a3f18de
......@@ -87,6 +87,12 @@ export default {
created() {
vm = this;
this.projectId = vm.getUrlSearch(window.location.href, "projectId");
let listType = vm.getUrlSearch(window.location.href, "listType");
if(listType == null) {
vm.listType = '1';
} else {
vm.listType = listType;
}
this.search();
},
mounted: function() {
......@@ -95,6 +101,7 @@ export default {
methods: {
handleClick(tab, event) {
vm.listType = tab.name;
vm.search()
},
setButton() {
for (let i = 0; i < vm.tableData.length; i++) {
......@@ -112,20 +119,6 @@ export default {
}
},
search() {
// let req = {
// projectId: vm.projectId
// };
// if(req.projectId == null) {
// req.projectId = '';
// }
// vm.reportGET("report/downLoad/getDownloadList", req).then(res => {
// if (res.code == "000000") {
// vm.tableData = res.data.data;
// vm.totalRows = res.data.totalRows;
// vm.setButton();
// }
// });
let projectId = "";
if (vm.projectId != null) {
projectId = vm.projectId;
......@@ -146,16 +139,6 @@ export default {
});
},
downLoad(row) {
// vm.queryData = this.$route.query;
// let req = vm.queryData;
// openLoading(vm);
// vm.reportGET("report/downLoad/downLoad", req).then(res => {
// closeLoading(vm);
// // console
// if (res.code == "000000") {
// }
// });
setTimeout(() => {
window.open(row.fileUrl);
}, 500);
......@@ -177,21 +160,21 @@ export default {
};
vm.GET("stats/mission/missionlist", reqList).then(res => {
if (res.code == "000000") {
// vm.tableData[row.index].status = res.data.data;
// // console.log('res.data.data',res.data.data);
// if (res.data.data == 1) {
// vm.tableData[row.index].title = vm.tableData[row.index].title + " ";
// vm.tableData[row.index].buttonText = "下载";
// vm.tableData[row.index].fileUrl = res.data.url;
// } else if (res.data.data == 0) {
// console.log("res", res, vm.tableData[row.index]);
// vm.tableData[row.index].title = vm.tableData[row.index].title + " ";
// vm.tableData[row.index].buttonText = "刷新";
// } else if (res.data.data == 2) {
// vm.tableData[row.index].title = vm.tableData[row.index].title + " ";
// vm.tableData[row.index].buttonText = "刷新";
// vm.tableData[row.index].buttonStatus = true;
// }
vm.tableData[row.index].status = res.data.list[0].status;
let updateStatus = res.data.list[0].status;
// console.log('res.data.data',res.data.data);
if (updateStatus == 1) {
vm.tableData[row.index].title = vm.tableData[row.index].title + " ";
vm.tableData[row.index].buttonText = "下载";
vm.tableData[row.index].fileUrl = res.data.list[0].url;
} else if (updateStatus == 0) {
vm.tableData[row.index].title = vm.tableData[row.index].title + " ";
vm.tableData[row.index].buttonText = "刷新";
} else if (updateStatus == 2) {
vm.tableData[row.index].title = vm.tableData[row.index].title + " ";
vm.tableData[row.index].buttonText = "刷新";
vm.tableData[row.index].buttonStatus = true;
}
} else {
vm.$message(res.message);
vm.tableData[row.index].title = vm.tableData[row.index].title + " ";
......@@ -229,6 +212,7 @@ export default {
// 更改数据显示数量
handleSizeChange(val) {
vm.param.pageSize = val;
vm.param.pageNo = 1;
vm.search();
},
// 换页
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册