Commit 9089ff0e by 匡雅琴

fixed

1 parent 63162b64
......@@ -161,6 +161,8 @@ export default {
})
console.log(this.labelTreeRets)
} else {
const labelTreeRets = utils.deepClone(this.labelTreeRets)
console.log(labelTreeRets)
this.labelTreeRets = res.labelTreeRets.map(item => {
return {
labelType: item.labelType,
......@@ -172,6 +174,16 @@ export default {
checkAll: false
}
})
console.log(labelTreeRets)
labelTreeRets.forEach(item => {
this.labelTreeRets.forEach(tag => {
if (item.labelGroup.id == tag.labelGroup.id) {
let labelId = item.tagChecked ? item.tagChecked.id : ''
let index = tag.labelList.findIndex(iem => iem.id == labelId)
tag.tagChecked = tag.labelList[index]
}
})
})
}
})
},
......@@ -205,7 +217,7 @@ export default {
this.heightBox = clientHeight - 0.15 * clientHeight - 350
}
}
</script>
</script>
<style lang="scss" scoped>
// ::v-deep .el-tag{
......@@ -297,7 +309,7 @@ export default {
margin: 8px 0;
display: inline-flex;
align-items: center;
/deep/.el-radio__inner{
/deep/.el-radio__inner {
box-shadow: none !important;
}
/deep/.el-radio__label {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!