zuozhengqing
2023-12-14 a347d29b64884f244a9bbaa2d75a1edb35195fdb
路由拦截放行出入库明细跳转
2个文件已修改
11 ■■■■■ 已修改文件
src/router/index.js 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/outEnterLibrary/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/index.js
@@ -151,7 +151,12 @@
    console.log(result,"result")
    next();
    if (!isSkip) {
      next('/noData')
      console.log(to,"看看to")
      if(to.path==="/overview/overviewList"){
        next();
      }else{
        next('/noData')
      }
    }
  } catch (error) {
    console.error('Error in navigation guard:', error);
src/views/operate/outEnterLibrary/index.vue
@@ -42,6 +42,7 @@
      v-if="editConfig.visible" 
      :edit-common-config="editConfig" 
      :add-name="addName"
      :workType="workType"
    />
  </div>
</template>
@@ -77,6 +78,7 @@
      },
      params: {},
      baseOperationTypeList:getDataByType("baseOperationTypeTwo"),
      workType:-1
    }
  },
  created() {
@@ -268,6 +270,8 @@
      this.getData()
    },
    tableRowClick(row,val) {
      console.log(row,"看看")
      this.workType=row.baseOperationType
      this.editConfig.title = val
      getOperationInfo(row.operationId).then((res)=>{
        this.editConfig.infomation = { ...res.data }