|
@@ -265,13 +265,14 @@ export default {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
updateAd(this.dataForm)
|
|
updateAd(this.dataForm)
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
- for (const v of this.list) {
|
|
|
|
|
- if (v.id === this.dataForm.id) {
|
|
|
|
|
- const index = this.list.indexOf(v)
|
|
|
|
|
- this.list.splice(index, 1, this.dataForm)
|
|
|
|
|
- break
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // for (const v of this.list) {
|
|
|
|
|
+ // if (v.id === this.dataForm.id) {
|
|
|
|
|
+ // const index = this.list.indexOf(v)
|
|
|
|
|
+ // this.list.splice(index, 1, this.dataForm)
|
|
|
|
|
+ // break
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
|
|
+ this.getList()
|
|
|
this.dialogFormVisible = false
|
|
this.dialogFormVisible = false
|
|
|
this.$notify.success({
|
|
this.$notify.success({
|
|
|
title: '成功',
|
|
title: '成功',
|