hanbaoshan
2020-10-09 7e0c6fa4bf15a40bf1c824ad0e2f7ced6438c766
cardWindow组件切换分页保留历史宽高
1个文件已修改
7 ■■■■ 已修改文件
src/components/cardWindow.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/cardWindow.vue
@@ -6,7 +6,7 @@
        :closeButton="true"
        @closebuttonclick="closeWindow(index)"
        :key="index"
        style="background:white; height:475px"
        style="background:white; "
        :left="center.x + index * 10"
        :top="center.y + index * 10"
        :resizable="true"
@@ -18,7 +18,7 @@
        :maxHeight="7000"
        :height="defaultHeight"
        :width="defaultWidth"
        ref="hscw"
      >
        <div v-if="item.list.length == 1" style="height: calc(100% - 50px)">
          <model-card :data="item.list[0]"></model-card>
@@ -107,6 +107,8 @@
      }
    },
    async nextPage(dataInfo, index) {
      console.log(this)
      debugger
      let id = dataInfo[0].id
      let res = this.CardList.getBehindEle(id)
      if (res) {
@@ -157,6 +159,7 @@
      // driver.execute_script("arguments[0].scrollIntoView();", target)
    },
    async upPage(dataInfo, index) {
      console.log('上一页')
      let id = dataInfo[0].id
      let res = this.CardList.getFrontEle(id)
      if (res) {