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

导出页问题

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