Переглянути джерело

补充修复设备档案卡校准记录不显示的bug

zhonghuizhen 1 рік тому
батько
коміт
2fcdb7b1bb
1 змінених файлів з 3 додано та 2 видалено
  1. 3 2
      src/views/component/device/index.vue

+ 3 - 2
src/views/component/device/index.vue

@@ -845,8 +845,9 @@ export default {
         },
         // 查看表单
         goLookForm (row) {
-            const second = this.$store.getters.level.second
-            this.srcUrl = this.$reportPath.replace('show', 'pdf') + '设备/设备档案卡.rpx&id_=' + row.id + '&org_=' + '&second_=' + second
+            const { first, second } = this.$store.getters.level || {}
+            const didian = second || first
+            this.srcUrl = this.$reportPath.replace('show', 'pdf') + '设备/设备档案卡.rpx&id_=' + row.id + '&org_=' + '&second_=' + didian
             this.iframeVisible = true
         },
         // 按钮事件处理