This commit is contained in:
蔡玲
2024-11-18 13:57:09 +08:00
parent 996864401a
commit 4defa75ef6
3 changed files with 39 additions and 75 deletions

View File

@@ -166,17 +166,17 @@
// 一级表格接口
async _stIvtCheckdtlCheckPage () {
let res = await stIvtCheckdtlCheckPage(this.val1, this.value1, this.queryParams1.pageNum + '', this.queryParams1.pageSize + '')
if (res.code === 1) {
res.result.map(el => {
if (res.code === 200) {
res.content.map(el => {
this.$set(el, 'checked', false)
this.$set(el, 'subData', [])
this.$set(el, 'subAllChecked', false)
this.$set(el, 'subOneChecked', false)
})
this.dataList = [...res.result]
this.dataList = [...res.content]
this.totalCount1 = Number(res.totalElements)
this.queryParams1.pageSize = Number(res.pageSize)
this.queryParams1.pageNum = Number(res.pageNum)
this.queryParams1.pageSize = Number(this.queryParams1.pageSize + '')
this.queryParams1.pageNum = Number(this.queryParams1.pageNum + '')
} else {
uni.showToast({
title: res.desc,
@@ -204,21 +204,14 @@
// 二级表格接口
async _checkDtlByCheckCode (e) {
let res = await checkDtlByCheckCode(e.id)
if (res.code === 1) {
res.result.map(el => {
this.$set(el, 'subChecked', false)
})
this.dataList.map(el => {
if (el.djid === e.djid) {
el.subData = [...res.result]
}
})
} else {
uni.showToast({
title: res.desc,
icon: 'none'
})
}
res.map(el => {
this.$set(el, 'subChecked', false)
})
this.dataList.map(el => {
if (el.djid === e.djid) {
el.subData = [...res]
}
})
},
// 二级表格全选
toSubAllCheckbox (e) {