|
@@ -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
|