From 41dc8bedbfee679decb94d2df35c10fc003e258a Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Wed, 24 Aug 2022 15:37:31 +0800
Subject: [PATCH] 二级菜单添加返回功能
---
src/views/soldrecord/soldrecord.vue | 11 +++++++++++
src/views/stockrecord/stockrecord.vue | 14 +++++++++++++-
src/views/stock/stockout.vue | 4 ++++
3 files changed, 28 insertions(+), 1 deletions(-)
diff --git a/src/views/soldrecord/soldrecord.vue b/src/views/soldrecord/soldrecord.vue
index f917d28..cf58fd3 100644
--- a/src/views/soldrecord/soldrecord.vue
+++ b/src/views/soldrecord/soldrecord.vue
@@ -20,6 +20,12 @@
@refresh-change="refreshChange"
@on-load="onLoad"
>
+ <template slot-scope="" slot="menuLeft">
+ <el-button type="primary"
+ icon="el-icon-back"
+ size="small"
+ @click="prev">返回</el-button>
+ </template>
<template slot="menuLeft">
<el-button
type="danger"
@@ -64,6 +70,8 @@
align: "center",
menu: false,
dialogClickModal: false,
+ refreshBtn:false,
+ columnBtn:false,
column: [
{
label: "农资",
@@ -157,6 +165,9 @@
this.farm.id = this.$farmId
},
methods: {
+ prev(){
+ this.$router.go(-1)
+ },
rowSave (row, done, loading) {
add(row).then(() => {
this.onLoad(this.page)
diff --git a/src/views/stock/stockout.vue b/src/views/stock/stockout.vue
index 8020db7..b87ed52 100644
--- a/src/views/stock/stockout.vue
+++ b/src/views/stock/stockout.vue
@@ -3,6 +3,7 @@
<div class="search">
<div style="float: left">
<div style="float: left">
+ <el-button style="margin-right:20px" type="primary" size="small" icon="el-icon-back" @click="prev">返回</el-button>
<el-select
v-model="formInline.stype"
placeholder="全部分类"
@@ -197,6 +198,9 @@
query: item
});
},
+ prev(){
+ this.$router.go(-1)
+ },
//退回提交
submitO(row, done, loading) {
//退回数量大于入库数量
diff --git a/src/views/stockrecord/stockrecord.vue b/src/views/stockrecord/stockrecord.vue
index 2c28de4..2b7c1c2 100644
--- a/src/views/stockrecord/stockrecord.vue
+++ b/src/views/stockrecord/stockrecord.vue
@@ -18,6 +18,12 @@
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad">
+ <template slot-scope="" slot="menuLeft">
+ <el-button type="primary"
+ icon="el-icon-back"
+ size="small"
+ @click="prev">返回</el-button>
+ </template>
<template slot="menuLeft">
<el-button type="danger"
size="small"
@@ -58,9 +64,12 @@
index: true,
viewBtn: true,
align: "center",
- excelBtn:true,
selection: true,
dialogClickModal: false,
+ refreshBtn:false,
+ columnBtn:false,
+ searchShowBtn:false,
+ excelBtn:true,
column: [
{
label: "农资",
@@ -165,6 +174,9 @@
// window.console.log(error);
// });
// },
+ prev(){
+ this.$router.go(-1)
+ },
rowUpdate(row, index, done, loading) {
update(row).then(() => {
this.onLoad(this.page);
--
Gitblit v1.9.3