如果提交了当前报表则不显示报表列表

This commit is contained in:
falcon 2020-05-27 15:53:17 +08:00
parent 855cc6b36e
commit f4d0117c6a

View File

@ -5,7 +5,7 @@
</style> </style>
<div id="reportMain"> <div id="reportMain">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs" v-if="showReportList">
<li class="nav-item" v-for="m in reportList"> <li class="nav-item" v-for="m in reportList">
<a class="nav-link" href="#" v-on:click="cli(m)">{{m}}</a> <a class="nav-link" href="#" v-on:click="cli(m)">{{m}}</a>
</li> </li>
@ -19,6 +19,7 @@
reportList: [], reportList: [],
url: myjs.urls.files, url: myjs.urls.files,
fileContentUrl: myjs.urls.fileContentUrl, fileContentUrl: myjs.urls.fileContentUrl,
showReportList: true,
}, },
created() { created() {
$.get(this.url, function (d) { $.get(this.url, function (d) {
@ -26,6 +27,7 @@
var initReport = $.cookie("_initReport"); var initReport = $.cookie("_initReport");
if (vm.reportList.indexOf(initReport) >= 0) { if (vm.reportList.indexOf(initReport) >= 0) {
vm.cli(initReport); vm.cli(initReport);
vm.showReportList = false;
} }
}); });
}, },