Commit 45bcc799 by liwk

commit

1 parent 14f21381
...@@ -359,10 +359,10 @@ export default { ...@@ -359,10 +359,10 @@ export default {
} }
}, },
mounted () { mounted () {
let { id } = this.getParams() let { id, edit } = this.getParams()
if (id) { if (id) {
this.getEquityGoodsById(id) this.getEquityGoodsById(id)
this.isEdit = true this.isEdit = !edit
} else { } else {
this.getListWithPageOutGoods() this.getListWithPageOutGoods()
} }
...@@ -458,7 +458,6 @@ export default { ...@@ -458,7 +458,6 @@ export default {
this.createGoods('updateGoods') this.createGoods('updateGoods')
return return
} }
this.brandNameList.map(e => { this.brandNameList.map(e => {
if (e.brandId == this.ruleForm.brandId) this.ruleForm.brandName = e.brandName if (e.brandId == this.ruleForm.brandId) this.ruleForm.brandName = e.brandName
}) })
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
> >
<el-button <el-button
type="text" type="text"
@click="jump(scope.scope)" @click="jump(scope.scope,true)"
>编辑</el-button> >编辑</el-button>
<el-button <el-button
type="text" type="text"
...@@ -237,8 +237,11 @@ export default { ...@@ -237,8 +237,11 @@ export default {
} }
}) })
}, },
jump ({ id }) { jump ({ id }, edit) {
window.location.href = id ? `./addGoods.html?id=${id}` : './addGoods.html' let url = './addGoods.html'
if (id) url = `${url}?id=${id}`
if (edit) url = `${url}&edit=true`
window.location.href = url
}, },
toggleAll () { toggleAll () {
let { goodsIndexMutiTable } = this.$refs.table.$refs let { goodsIndexMutiTable } = this.$refs.table.$refs
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!