ludc
2023-09-11 4cd479485aded3de0b52abe37097a04105bad3ed
Source/UBCS-WEB/src/components/refer/vciWebReferTree.vue
@@ -125,6 +125,19 @@
    },
    getTree(){
      getTree(this.params,this.treeUrl).then(res => {
        res.data.map(item => {
          if (!item.attribute) {
            item.attribute = {
              data: {}
            }
          } else {
            item.attribute.data = item.attribute.data || {}
          }
          return {
            ...item,
            leaf: !item.hasChildren
          }
        })
          this.treeData=res.data
        })
    },
@@ -142,6 +155,13 @@
      }
      getLazyTree(this.params,this.treeUrl).then(res => {
        resolve(res.data.data.map(item => {
          if(!item.attribute){
            item.attribute={
              data:{}
            }
          }else{
            item.attribute.data=item.attribute.data || {}
          }
          return {
            ...item,
            leaf: !item.hasChildren