租户参数类别

dev
张同海 2 years ago
parent 19027d33a1
commit 24893ff5e6

@ -137,24 +137,23 @@ export default {
DJYTenantParamGet({ pageNo: 1, pageSize: 999 }).then(res => { DJYTenantParamGet({ pageNo: 1, pageSize: 999 }).then(res => {
this.TypeData = res.data this.TypeData = res.data
let data = [] let data = []
let type = ''
let num = -1
res.data.forEach(item => { res.data.forEach(item => {
if (type != item.type) { if (data.length) {
num = num + 1 let type2 = false
type = item.type data.forEach((item2, index2) => {
} if (item.type == item2[0].type) {
// if (data.length == 0) { item2.push(item)
if (data[num]) { type2 = true
data[num].push(item) }
})
if (!type2) {
data[data.length] = [item]
}
} else { } else {
data[num] = [] data[0] = [item]
data[num].push(item)
} }
// }
}) })
this.WTypeData = data this.WTypeData = data
console.log(data)
}) })
sysDictDataPage({ pageNo: 1, pageSize: 999, typeId: '353559512399941' }).then(res => { sysDictDataPage({ pageNo: 1, pageSize: 999, typeId: '353559512399941' }).then(res => {
this.YWData = res.data.rows this.YWData = res.data.rows

@ -137,24 +137,23 @@ export default {
DJYTenantParamGet({ pageNo: 1, pageSize: 999 }).then(res => { DJYTenantParamGet({ pageNo: 1, pageSize: 999 }).then(res => {
this.TypeData = res.data this.TypeData = res.data
let data = [] let data = []
let type = ''
let num = -1
res.data.forEach(item => { res.data.forEach(item => {
if (type != item.type) { if (data.length) {
num = num + 1 let type2 = false
type = item.type data.forEach((item2, index2) => {
} if (item.type == item2[0].type) {
// if (data.length == 0) { item2.push(item)
if (data[num]) { type2 = true
data[num].push(item) }
})
if (!type2) {
data[data.length] = [item]
}
} else { } else {
data[num] = [] data[0] = [item]
data[num].push(item)
} }
// }
}) })
this.WTypeData = data this.WTypeData = data
console.log(data)
}) })
sysDictDataPage({ pageNo: 1, pageSize: 999, typeId: '353559512399941' }).then(res => { sysDictDataPage({ pageNo: 1, pageSize: 999, typeId: '353559512399941' }).then(res => {
this.YWData = res.data.rows this.YWData = res.data.rows

Loading…
Cancel
Save