|
@@ -60,6 +60,7 @@
|
|
} from '@/utils/emitEvents.js';
|
|
} from '@/utils/emitEvents.js';
|
|
import eggDialog from './eggDialog.vue'
|
|
import eggDialog from './eggDialog.vue'
|
|
import { toast } from "../../utils/common";
|
|
import { toast } from "../../utils/common";
|
|
|
|
+import cacheManager from "../../utils/cacheManager.js";
|
|
|
|
|
|
const eggDialogRef = ref(null);
|
|
const eggDialogRef = ref(null);
|
|
|
|
|
|
@@ -96,7 +97,8 @@ import { toast } from "../../utils/common";
|
|
|
|
|
|
// appContext.config.globalProperties.$state
|
|
// appContext.config.globalProperties.$state
|
|
// const state = appContext.config.globalProperties.$state;
|
|
// const state = appContext.config.globalProperties.$state;
|
|
- console.log(options)
|
|
|
|
|
|
+ console.log(options)
|
|
|
|
+ console.log(cacheManager);
|
|
// 获取路由参数
|
|
// 获取路由参数
|
|
routeParams.value = options;
|
|
routeParams.value = options;
|
|
|
|
|
|
@@ -143,7 +145,8 @@ import { toast } from "../../utils/common";
|
|
infoData.zhangId = res.data.zhangId
|
|
infoData.zhangId = res.data.zhangId
|
|
infoData.zhangName = res.data.zhangName
|
|
infoData.zhangName = res.data.zhangName
|
|
gradeTerm.value = translateData(res.data);
|
|
gradeTerm.value = translateData(res.data);
|
|
- useTabBarHistory().setTabBarStorage({nianji:res.data.nianji,zhangId:res.data.zhangId,xueqi:res.data.xueqi})
|
|
|
|
|
|
+ useTabBarHistory().setTabBarStorage({nianji:res.data.nianji,zhangId:res.data.zhangId,xueqi:res.data.xueqi})
|
|
|
|
+ cacheManager.set("zhangJieCacheInfo",res.data)
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -177,7 +180,8 @@ import { toast } from "../../utils/common";
|
|
infoData.zhangId = res.data.zhangId
|
|
infoData.zhangId = res.data.zhangId
|
|
infoData.zhangName = res.data.zhangName
|
|
infoData.zhangName = res.data.zhangName
|
|
gradeTerm.value = translateData(res.data);
|
|
gradeTerm.value = translateData(res.data);
|
|
- useTabBarHistory().setTabBarStorage({nianji:res.data.nianji,zhangId:res.data.zhangId,xueqi:res.data.xueqi})
|
|
|
|
|
|
+ useTabBarHistory().setTabBarStorage({nianji:res.data.nianji,zhangId:res.data.zhangId,xueqi:res.data.xueqi})
|
|
|
|
+ cacheManager.set("zhangJieCacheInfo",res.data)
|
|
})
|
|
})
|
|
}
|
|
}
|
|
function getZhangFirst() {
|
|
function getZhangFirst() {
|
|
@@ -197,7 +201,6 @@ import { toast } from "../../utils/common";
|
|
infoData.zhangName = res.data.zhangName
|
|
infoData.zhangName = res.data.zhangName
|
|
gradeTerm.value = translateData(res.data);
|
|
gradeTerm.value = translateData(res.data);
|
|
recordZhangJie()
|
|
recordZhangJie()
|
|
- console.log(useTabBarHistory());
|
|
|
|
useTabBarHistory().setTabBarStorage({nianji:res.data.nianji,zhangId:res.data.zhangId,xueqi:res.data.xueqi})
|
|
useTabBarHistory().setTabBarStorage({nianji:res.data.nianji,zhangId:res.data.zhangId,xueqi:res.data.xueqi})
|
|
})
|
|
})
|
|
}
|
|
}
|