|
@@ -210,6 +210,11 @@ export default {
|
|
|
computed: {
|
|
computed: {
|
|
|
treeData() {
|
|
treeData() {
|
|
|
if (!this.data || this.data.length === 0) return []
|
|
if (!this.data || this.data.length === 0) return []
|
|
|
|
|
+ this.data.map(item => {
|
|
|
|
|
+ if (item.name === '任务分类') {
|
|
|
|
|
+ item.name = '事务分类'
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
if (this.dataType === 'list') {
|
|
if (this.dataType === 'list') {
|
|
|
return TreeUtils.transformToTreeFormat(JSON.parse(JSON.stringify(this.data)), {
|
|
return TreeUtils.transformToTreeFormat(JSON.parse(JSON.stringify(this.data)), {
|
|
|
idKey: this.treeOptions['node-key'],
|
|
idKey: this.treeOptions['node-key'],
|