loulijun2021
2023-01-31 13c58d78112a8bb63abd288a51165f122fc0965b
1.页面刷新功能优化
已修改2个文件
21 ■■■■ 文件已修改
src/layout/components/Navbar.vue 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scgl/gd.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/layout/components/Navbar.vue
@@ -5,14 +5,13 @@
      :class="{'display_btw':$store.state.settings.menuIsHorizontal}"
      :style="{background: $store.state.settings.headBackgroundColorValue? '#304156':'#fff'}"
    >
      <hamburger
        v-if="!$store.state.settings.menuIsHorizontal"
        :is-active="sidebar.opened"
        class="hamburger-container"
        @toggleClick="toggleSideBar"
      />
      <!--      :style="{marginLeft:$store.state.settings.menuIsHorizontal?'50px':'40px'}"-->
      <!--      :style="{marginLeft:$store.state.settings.menuIsHorizontal?'20px':''}"-->
      <breadcrumb
        class="breadcrumb-container"
@@ -240,8 +239,20 @@
  },
  methods: {
    pageRefreshClick() {
      console.log('点击了!')
      this.reload()
      const tabViews = this.$store.state.tagsView.visitedViews.map(item => {
        return {
          fullPath: item.fullPath,
          hash: item.hash,
          meta: { ...item.meta },
          name: item.name,
          params: { ...item.params },
          path: item.path,
          query: { ...item.query },
          title: item.title
        }
      })
      sessionStorage.setItem('tabViews', JSON.stringify(tabViews))
    },
    handleSelect(key, keyPath) {
      // console.log(key, keyPath)
src/views/scgl/gd.vue
@@ -340,7 +340,7 @@
                  <!--                  />-->
                  <i
                    :style="{color:$store.state.settings.theme}"
                    class="el-icon-tickets"
                    class="el-icon-printer"
                    style="cursor: pointer;margin-right: 15px"
                    @click="handlePrint(row.wo_code)"
                  />
@@ -442,7 +442,7 @@
              <div class="operationClass">
                <el-tooltip class="item" effect="dark" content="打印工序" placement="top">
                  <i
                    class="el-icon-tickets"
                    class="el-icon-printer"
                    :style="{color:$store.state.settings.theme}"
                    style="cursor: pointer;margin-right: 15px"
                    @click="supplementSmallClick(row)"