commit
This commit is contained in:
@@ -179,7 +179,7 @@
|
||||
class="common-button-primary"
|
||||
size="mini"
|
||||
type="primary"
|
||||
@click="itemEdit(scope.row)">处理</el-button>
|
||||
@click="itemEdit(scope.row, scope.$index)">处理</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -447,14 +447,13 @@
|
||||
},
|
||||
saveUserInfo2 () {
|
||||
for( let a = 0; a < this.data.length; a++) {
|
||||
if (this.data[a].id === this.itemId) {
|
||||
if (a === this.itemId) {
|
||||
this.data[a].chapterNumber = this.editForm.chapterNumber
|
||||
this.data[a].chapterName = this.editForm.chapterName
|
||||
this.data[a].oldText = this.editForm.oldText
|
||||
this.data[a].newText = this.editForm.newText
|
||||
this.data[a].reason = this.editForm.reason
|
||||
this.data[a].cause = this.editForm.cause
|
||||
this.$set(this.data, a,this.editForm)
|
||||
}
|
||||
}
|
||||
this.modalshowflag2 = false
|
||||
@@ -462,8 +461,8 @@
|
||||
cancleUserInfo2 () {
|
||||
this.modalshowflag2 = false
|
||||
},
|
||||
itemEdit (row) {
|
||||
this.itemId = row.id
|
||||
itemEdit (row, index) {
|
||||
this.itemId = index
|
||||
this.modalshowflag2 = true
|
||||
this.editForm = {
|
||||
chapterNumber: row.chapterNumber,
|
||||
|
||||
Reference in New Issue
Block a user