Commit 21e6bc44 by 胡悦

bug修复

1 parent bc78911f
......@@ -103,7 +103,7 @@
</el-table-column>
<el-table-column fixed="right" label="操作" width="120" align="center">
<template slot-scope="scope">
<el-button type="text" size="mini" @click="editSeries(scope.row, scope.$index)">
<el-button type="text" size="mini" @click="editSeries(scope.row, scope.$index, item.id)">
编辑
</el-button>
<el-button type="text" size="mini" @click="delSeries(item.id, scope.$index)">
......@@ -414,6 +414,7 @@ export default {
},
// 选择车系
selectCarSeries(levelId) {
console.log(levelId, 'levelId')
if (this.brandData.length == 0) {
this.$message.error("请选择关联品牌")
return
......@@ -426,7 +427,7 @@ export default {
this.carSeriesVisible = false
},
dialogConfirm(val) {
console.log(val)
console.log(val, this.form)
if (val.index || val.index == 0) {
let _val = deepClone(val)
delete _val.index
......@@ -436,7 +437,9 @@ export default {
}
this.carSeriesVisible = false
},
editSeries(row, index) {
editSeries(row, index, id) {
console.log(row, row)
this.levelId = id
this.carSeriesVisible = true
this.formInfo = { ...row, index }
},
......@@ -594,6 +597,7 @@ export default {
.then(() => {
this.config.splice(index, 1)
delete this.form[`subForm${id}`]
this.entranceTypeChange(id)
})
.catch((err) => {
console.log(err)
......
......@@ -93,6 +93,7 @@ export default {
this.selectOptions = res
},
handleConfirm() {
console.log(this.levelId)
this.$refs.seriesForm.validate((valid) => {
if (valid) {
const {contentPicUrl, carSeries, index} = this.formData
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!