This commit is contained in:
王创世 2025-02-06 10:34:16 +08:00
parent 67003c625d
commit 926d14bf6e
2 changed files with 13 additions and 3 deletions

View File

@ -240,9 +240,9 @@
var curDay = $this.text(); var curDay = $this.text();
//sessionStorage.setItem("year", year); sessionStorage.setItem("year", year);
//sessionStorage.setItem("month", fixNumer(month)); sessionStorage.setItem("month", fixNumer(month));
//sessionStorage.setItem("day", fixNumer(curDay)); sessionStorage.setItem("day", fixNumer(curDay));
//var dddd=sessionStorage.getItem("DateList"); //var dddd=sessionStorage.getItem("DateList");
options.onSelect && options.onSelect(year + '-' + fixNumer(month) + '-' + fixNumer(curDay), $this); options.onSelect && options.onSelect(year + '-' + fixNumer(month) + '-' + fixNumer(curDay), $this);

View File

@ -187,6 +187,16 @@ export default {
if(typeof (this.$route.query.id)!='undefined'){ if(typeof (this.$route.query.id)!='undefined'){
this.getInfo(this.$route.query.id); this.getInfo(this.$route.query.id);
} }
if (this.$route.query.date) {
//$('#activeDate').val(this.$route.query.date);
var time = new Date(this.$route.query.date);
var initYear = time.getFullYear();
var initMonth = String(time.getMonth() + 1).padStart(2, '0');
var initDay = String(time.getDate()).padStart(2, '0');
sessionStorage.setItem("year", initYear);
sessionStorage.setItem("month", initMonth);
sessionStorage.setItem("day", initDay);
}
//document.title =this.data.list[this.dataIndex].editionName; //document.title =this.data.list[this.dataIndex].editionName;
// var newInfo = sessionStorage.getItem("newInfo"); // var newInfo = sessionStorage.getItem("newInfo");
// if (newInfo) { // if (newInfo) {