|
@@ -162,6 +162,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
filter: {
|
|
|
+ schoolId: "",
|
|
|
status: "STAGE",
|
|
|
paperNumber: "",
|
|
|
userId: "",
|
|
@@ -171,7 +172,8 @@ export default {
|
|
|
finishEndTime: null
|
|
|
},
|
|
|
current: 1,
|
|
|
- size: this.GLOBAL.pageSize,
|
|
|
+ size: 1,
|
|
|
+ // size: this.GLOBAL.pageSize,
|
|
|
total: 0,
|
|
|
multipleSelection: [],
|
|
|
AUDITING_STATUS: {
|
|
@@ -193,9 +195,29 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.toPage(1);
|
|
|
+ this.initData();
|
|
|
},
|
|
|
methods: {
|
|
|
+ initData() {
|
|
|
+ const cachePageInfo = this.$ls.get("cachePageInfo");
|
|
|
+ if (cachePageInfo) {
|
|
|
+ this.filter = this.$objAssign(this.filter, cachePageInfo.filter);
|
|
|
+ if (this.filter.applyStartTime && this.filter.applyEndTime)
|
|
|
+ this.createTime = [
|
|
|
+ this.filter.applyStartTime,
|
|
|
+ this.filter.applyEndTime
|
|
|
+ ];
|
|
|
+ if (this.filter.finishStartTime && this.filter.finishEndTime)
|
|
|
+ this.finishTime = [
|
|
|
+ this.filter.finishStartTime,
|
|
|
+ this.filter.finishEndTime
|
|
|
+ ];
|
|
|
+ this.toPage(cachePageInfo.page);
|
|
|
+ } else {
|
|
|
+ this.toPage(1);
|
|
|
+ }
|
|
|
+ this.$ls.remove("cachePageInfo");
|
|
|
+ },
|
|
|
async getList() {
|
|
|
const datas = {
|
|
|
...this.filter,
|
|
@@ -288,6 +310,17 @@ export default {
|
|
|
})
|
|
|
);
|
|
|
}
|
|
|
+ },
|
|
|
+ beforeRouteLeave(to, from, next) {
|
|
|
+ if (to.name === "CardDesign") {
|
|
|
+ this.$ls.set("cachePageInfo", {
|
|
|
+ page: this.current,
|
|
|
+ filter: this.filter
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$ls.remove("cachePageInfo");
|
|
|
+ }
|
|
|
+ next();
|
|
|
}
|
|
|
};
|
|
|
</script>
|