瀏覽代碼

补充修复设备档案卡校准记录不显示的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
         },
         // 按钮事件处理