guoxiaohuan 4 lat temu
rodzic
commit
bef255c748
2 zmienionych plików z 753 dodań i 784 usunięć
  1. 2 20
      src/views/analysis/CoreDeviceReport.vue
  2. 751 764
      src/views/analysis/GanttChart.vue

+ 2 - 20
src/views/analysis/CoreDeviceReport.vue

@@ -468,7 +468,7 @@ export default {
             }
             this.showDetail = true
             this.detailTitle = '图片预览'
-            this.getDetailData(val)
+            this.getDetailData(val, type)
         },
         /**
          * 显示附件详情
@@ -492,25 +492,7 @@ export default {
             this.isClickAccessory = true
             this.showAccessory = true
             this.detailTitle = '附件预览'
-            this.getDetailData(val)
-        },
-        /**
-         * 显示附件详情
-         */
-        showReportDetail(val) {
-            console.log('val', val)
-            if (type === 'equip') {
-                if (!val.file_type || !val.file_type_id) {
-                    return
-                }
-            } else {
-                if (!val.attachments_num) {
-                    return
-                }
-            }
-            this.showDetail = true
-            this.detailTitle = '附件预览'
-            this.getDetailData(val)
+            this.getDetailData(val, type)
         },
         /**
          * 获取图片/报告详情

Plik diff jest za duży
+ 751 - 764
src/views/analysis/GanttChart.vue