修复 仓库 双击时,在非Iframe 页面打开时 错误寻找父IFrame页面暴露的回调函数的问题
1个文件已修改
4 ■■■■ 已修改文件
src/views/basic/gyWarehouse/gyWarehouse.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/gyWarehouse/gyWarehouse.vue
@@ -1033,7 +1033,7 @@
    handleRowClick(row, column, event) {
      this.lastSelectedRow = this.selectedRow; // 记录上一次选中的行
      this.selectedRow = row; // 记录当前选中的行
      if (this.checkIsIframe) {
      if (this.checkIsIframe()) {
        // 将当前选中的数据暴露到window中
        window.selectedRow = row;
      }
@@ -1057,7 +1057,7 @@
    },
    //双击行
    handleDblclick(row, column, cell, event) {
      if (this.checkIsIframe) {
      if (this.checkIsIframe()) {
        // IFrame 双击 返回当前双击的数据
        window.parent.iframeWareHouseCallBack(row);
        return;