[update 标准解读流程] 发起
This commit is contained in:
+13
-2
@@ -529,7 +529,14 @@ export default {
|
||||
methods: {
|
||||
// 设置组件内数据
|
||||
setData (data = []) {
|
||||
this.dataSource = data
|
||||
this.dataSource = data.map(item => {
|
||||
// 没有id就添加uuid,和标记,最后返回的时候去掉
|
||||
if (!item.id) {
|
||||
item.id = randomUUID()
|
||||
item[uuidFlag] = true
|
||||
}
|
||||
return item
|
||||
})
|
||||
},
|
||||
// 获取组件内数据
|
||||
getData () {
|
||||
@@ -765,9 +772,9 @@ export default {
|
||||
if (that.ipagination.current > 1 && ((that.ipagination.current - 1) * that.ipagination.pageSize) + 1 === that.ipagination.total) {
|
||||
that.ipagination.current -= 1
|
||||
}
|
||||
this.ipagination.total = this.dataSource.length
|
||||
}
|
||||
})
|
||||
this.ipagination.total = this.dataSource.length
|
||||
},
|
||||
/**
|
||||
* 批量删除
|
||||
@@ -806,6 +813,10 @@ export default {
|
||||
if (currentIndex < this.ipagination.current) {
|
||||
this.ipagination.current = currentIndex
|
||||
}
|
||||
// 当前页数小于1
|
||||
if (this.ipagination.current < 1) {
|
||||
this.ipagination.current = 1
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 显示条款内容、条文解读弹框
|
||||
|
||||
Reference in New Issue
Block a user