提交 c64890f7 authored 作者: xuyanwei's avatar xuyanwei

商品信息管理中 返回

上级 643c0287
......@@ -239,7 +239,7 @@
<div slot="footer" class="dialog-footer">
<el-button @click="dataSubmit" :loading="sending">保存</el-button>
<el-button @click="$router.go(-1)">取消</el-button>
<el-button @click="$router.push('/bookinfomanage/goods_info')">取消</el-button>
</div>
<el-dialog :title="dialogImage.name" :visible.sync="dialogPvVisible" custom-class="image-preview">
......@@ -671,7 +671,7 @@
this.sending = false
if (res.data.status) {
this.$message.success(`${this.textMap[this.dialogStatus]}成功`)
this.$router.go(-1)
this.$router.push('/bookinfomanage/goods_info');
} else {
errorMsg.apply(this, [res.data, this.textMap[this.dialogStatus]])
// res.data.code === -2 ? this.$message.error(`${this.textMap[this.dialogStatus]}失败:${res.data.msg}`) : this.$message.error(`${this.textMap[this.dialogStatus]}失败`)
......
......@@ -237,7 +237,7 @@
<div slot="footer" class="dialog-footer">
<el-button @click="dataSubmit" :loading="sending">保存</el-button>
<el-button @click="$router.go(-1)">取消</el-button>
<el-button @click="$router.push('/bookinfomanage/goods_info')">取消</el-button>
</div>
<el-dialog :title="dialogImage.name" :visible.sync="dialogPvVisible" custom-class="image-preview">
......@@ -752,7 +752,7 @@ export default {
this.sending = false
if(res.data.status){
this.$message.success(`${this.textMap[this.dialogStatus]}成功`)
this.$router.go(-1)
this.$router.push('/bookinfomanage/goods_info');
} else{
errorMsg.apply(this, [ res.data, this.textMap[this.dialogStatus] ])
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论