Browse Source

切换项目更新

ZaiZai 11 months ago
parent
commit
692e13c9b6
1 changed files with 1 additions and 22 deletions
  1. 1 22
      src/views/schedule/data.vue

+ 1 - 22
src/views/schedule/data.vue

@@ -149,28 +149,7 @@ const queryMaterialProgress = async () => {
     //处理数据
     isProcessLoading.value = false
     if (!error && code === 200) {
-        const arr = getArrValue(data?.processMaterialList)
-        let newArr = []
-        for (let i = 0; i < arr.length; i++) {
-            if (arr[i].title === '开工报告') {
-                console.log(btnAuth('schedule-data-chart-1'))
-                if (btnAuth('schedule-data-chart-1')) {
-                    newArr.push(arr[i])
-                }
-            } else if (arr[i].title === '工序资料') {
-                if (btnAuth('schedule-data-chart-2')) {
-                    newArr.push(arr[i])
-                }
-            } else if (arr[i].title === '评定资料') {
-                if (btnAuth('schedule-data-chart-3')) {
-                    newArr.push(arr[i])
-                }
-            } else if (arr[i].title === '中间交工') {
-                if (btnAuth('schedule-data-chart-3')) {
-                    newArr.push(arr[i])
-                }
-            }
-        }
+        const newArr = getArrValue(data?.processMaterialList)
         processMaterialList.value = newArr
         if (newArr.length === 4) {
             isProcessSpan.value = 6