|
|
@@ -3,14 +3,10 @@ import cacheManager from "@/utils/cacheManager.js";
|
|
|
export function updateChanpin2Process() {
|
|
|
const cacheData = cacheManager.get('contentInfo');
|
|
|
console.log('cacheData333333', cacheData)
|
|
|
- const list = cacheData.danyuanList;
|
|
|
+ const list = cacheData.jieList;
|
|
|
const defaultCurProcess = cacheData.curProcess;
|
|
|
- let mList = [];
|
|
|
- list.forEach(item => {
|
|
|
- mList = [...mList, ...item.jieList]
|
|
|
- })
|
|
|
|
|
|
- const process = mList.filter(item => item.wanchengFlag).length/mList.length * 100 || 0;
|
|
|
+ const process = list.filter(item => item.wanchengFlag).length/list.length * 100 || 0;
|
|
|
cacheData.curProcess = defaultCurProcess > process ? defaultCurProcess: process;
|
|
|
cacheManager.set('contentInfo', cacheData);
|
|
|
}
|