新旧拆分单对比--发起比对--新旧条款目录,展示不完整
This commit is contained in:
@@ -213,6 +213,7 @@ export default {
|
||||
* @param index
|
||||
*/
|
||||
handleAddClauseContent (index) {
|
||||
console.log(index)
|
||||
if (index === -1) {
|
||||
this.isTopList = false
|
||||
this.addIndex = this.contentList.length - 1
|
||||
@@ -233,8 +234,8 @@ export default {
|
||||
headerArr = this.contentList
|
||||
footerArr = []
|
||||
} else {
|
||||
headerArr = this.contentList.splice(0, this.addIndex + 1)
|
||||
footerArr = this.contentList.splice(-this.addIndex)
|
||||
headerArr = this.contentList.slice(0, this.addIndex + 1)
|
||||
footerArr = this.contentList.slice(this.addIndex + 1, this.addIndex.length)
|
||||
}
|
||||
const insertArr = []
|
||||
switch (type) {
|
||||
@@ -263,7 +264,6 @@ export default {
|
||||
}
|
||||
}
|
||||
this.contentList = [...headerArr, ...insertArr, ...footerArr]
|
||||
console.log(this.contentList)
|
||||
},
|
||||
/**
|
||||
* 表格编辑
|
||||
|
||||
Reference in New Issue
Block a user