|
|
@@ -501,7 +501,8 @@ export default {
|
|
|
this.externalData = JSON.parse(JSON.stringify(value))
|
|
|
this.isFirst = false
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ immediate: true //首次加载有值
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -555,7 +556,7 @@ export default {
|
|
|
handleEdit(row, index) {
|
|
|
this.isEdit = true
|
|
|
this.dialogVisible = true
|
|
|
- this.rowIndex = index
|
|
|
+ this.rowIndex = (this.requestPage.pageNo - 1) * this.requestPage.limit + index
|
|
|
this.form = cloneDeep(row)
|
|
|
console.log(cloneDeep(this.form))
|
|
|
},
|
|
|
@@ -600,7 +601,7 @@ export default {
|
|
|
jianYanXiangMu
|
|
|
})
|
|
|
}
|
|
|
- this.$message.success(`表单提交成功!`)
|
|
|
+ this.$message.success(`编辑成功!`)
|
|
|
this.dialogVisible = false
|
|
|
this.$emit('change-data', 'sjzphdjhylxqb', this.externalData)
|
|
|
} else {
|