|
@@ -149,6 +149,22 @@ const cacheManager = (function() {
|
|
|
set('contentInfo', obj);
|
|
set('contentInfo', obj);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ function updateDanciWanchengStatus(curDanyuanId) {
|
|
|
|
|
+ let obj = get('contentInfo') || {};
|
|
|
|
|
+ if (obj && obj.danyuanList) {
|
|
|
|
|
+ obj.danyuanList.forEach(danyuan => {
|
|
|
|
|
+ if (danyuan.danyuanList) {
|
|
|
|
|
+ const item = danyuan.danyuanList.find(j => j.danyuanId == curDanyuanId);
|
|
|
|
|
+ if (item) {
|
|
|
|
|
+ item.wanchengFlag = 1;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ set('contentInfo', obj);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
return {
|
|
return {
|
|
|
set,
|
|
set,
|
|
|
get,
|
|
get,
|
|
@@ -160,7 +176,8 @@ const cacheManager = (function() {
|
|
|
findArrayInObject,
|
|
findArrayInObject,
|
|
|
clearAll,
|
|
clearAll,
|
|
|
updateJisuanWanchengStatus,
|
|
updateJisuanWanchengStatus,
|
|
|
- updatePinduWanchengStatus
|
|
|
|
|
|
|
+ updatePinduWanchengStatus,
|
|
|
|
|
+ updateDanciWanchengStatus
|
|
|
};
|
|
};
|
|
|
})();
|
|
})();
|
|
|
|
|
|