Commit 45bcc799 by liwk

commit

1 parent 14f21381
......@@ -359,10 +359,10 @@ export default {
}
},
mounted () {
let { id } = this.getParams()
let { id, edit } = this.getParams()
if (id) {
this.getEquityGoodsById(id)
this.isEdit = true
this.isEdit = !edit
} else {
this.getListWithPageOutGoods()
}
......@@ -458,7 +458,6 @@ export default {
this.createGoods('updateGoods')
return
}
this.brandNameList.map(e => {
if (e.brandId == this.ruleForm.brandId) this.ruleForm.brandName = e.brandName
})
......
......@@ -106,7 +106,7 @@
>
<el-button
type="text"
@click="jump(scope.scope)"
@click="jump(scope.scope,true)"
>编辑</el-button>
<el-button
type="text"
......@@ -237,8 +237,11 @@ export default {
}
})
},
jump ({ id }) {
window.location.href = id ? `./addGoods.html?id=${id}` : './addGoods.html'
jump ({ id }, edit) {
let url = './addGoods.html'
if (id) url = `${url}?id=${id}`
if (edit) url = `${url}&edit=true`
window.location.href = url
},
toggleAll () {
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!