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