清楚console

This commit is contained in:
liuye
2022-06-24 23:25:21 +08:00
parent 1e166a02e8
commit 71817af71f

View File

@@ -150,14 +150,12 @@ export default {
let result = {}, tags = {} let result = {}, tags = {}
this.deptUserTagList.map(e => { this.deptUserTagList.map(e => {
let {kind, id, tagIdList} = e let {kind, id, tagIdList} = e
console.log([result[e.corpId], {kind, id}].flat())
result[e.corpId] = [result[e.corpId], {kind, id}].flat() result[e.corpId] = [result[e.corpId], {kind, id}].flat()
tagIdList = tagIdList.filter(e => !!e) tagIdList = tagIdList.filter(e => !!e)
if (tagIdList) { if (tagIdList) {
tags[e.corpId] = [...new Set([tags[e.corpId], tagIdList].flat())] tags[e.corpId] = [...new Set([tags[e.corpId], tagIdList].flat())]
} }
}) })
console.log(result, tags)
var deptList = Object.keys(result).map(corpId => { var deptList = Object.keys(result).map(corpId => {
let res let res
if (result[corpId]) { if (result[corpId]) {
@@ -173,7 +171,6 @@ export default {
return res return res
}).filter(e => !!e) }).filter(e => !!e)
console.log(deptList)
this.formData.fileList = [] this.formData.fileList = []
var contentFile = { var contentFile = {