{
  "codeName" : "Usr04099581TreeView_TreeView",
  "controlType" : "TREEVIEW",
  "getCreatePSControlAction" : {
    "modelref" : true,
    "id" : "create",
    "actionName" : "Create",
    "actionType" : "DEACTION",
    "dataAccessAction" : "CREATE",
    "name" : "create",
    "getPSAppDEMethod" : {
      "modelref" : true,
      "id" : "Create"
    },
    "getPSAppDataEntity" : {
      "modelref" : true,
      "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book.json"
    }
  },
  "dynaModelFilePath" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book/PSTREEVIEWS/Usr04099581TreeView_TreeView.json",
  "getFetchPSControlAction" : {
    "modelref" : true,
    "id" : "fetch",
    "actionType" : "DEDATASET",
    "name" : "fetch",
    "getPSAppDataEntity" : {
      "modelref" : true,
      "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book.json"
    }
  },
  "getGetPSControlAction" : {
    "modelref" : true,
    "id" : "load",
    "actionName" : "Get",
    "actionType" : "DEACTION",
    "dataAccessAction" : "READ",
    "name" : "load",
    "getPSAppDEMethod" : {
      "modelref" : true,
      "id" : "Get"
    },
    "getPSAppDataEntity" : {
      "modelref" : true,
      "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book.json"
    }
  },
  "hookEventNames" : [ "ONLOADSUCCESS" ],
  "logicName" : "树部件脚本_树视图",
  "getPSAppDataEntity" : {
    "modelref" : true,
    "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book.json"
  },
  "getPSControlAttributes" : [ {
    "attrValue" : "accordion=true",
    "name" : "LOGIC2"
  } ],
  "getPSControlLogics" : [ {
    "eventNames" : "onLoadSuccess",
    "logicTag" : "tree",
    "logicType" : "SCRIPT",
    "name" : "logic1",
    "scriptCode" : "console.log('树加载成功');\r\nview.evt.emit('onViewInfoChange',{caption:ctrl.state.items[1].srfmajorfield,dataInfo:ctrl.state.items[1].srfmajortext})"
  } ],
  "getPSControlRenders" : [ {
    "layoutPanelModel" : "console.log('这是树绘制器');\r\nreturn `<div>12345</div>`",
    "name" : "logic3",
    "renderType" : "LAYOUTPANEL_MODEL"
  } ],
  "getPSDETreeColumns" : [ {
    "caption" : "111",
    "codeName" : "treecol",
    "columnType" : "DEFGRIDCOLUMN",
    "dataItemName" : "treecol",
    "name" : "treecol",
    "width" : 50,
    "widthUnit" : "px",
    "enableExpand" : false,
    "enableSort" : false
  }, {
    "caption" : "222",
    "codeName" : "treecol2",
    "columnType" : "DEFGRIDCOLUMN",
    "dataItemName" : "treecol2",
    "name" : "treecol2",
    "width" : 50,
    "widthUnit" : "px",
    "enableExpand" : false,
    "enableSort" : false
  } ],
  "getPSDETreeNodeRSs" : [ {
    "getChildPSDETreeNode" : {
      "modelref" : true,
      "id" : "node_1"
    },
    "name" : "默认根节点 - 测试1",
    "getParentPSDETreeNode" : {
      "modelref" : true,
      "id" : "ROOT"
    },
    "parentValueLevel" : 1,
    "searchMode" : 3
  }, {
    "getChildPSDETreeNode" : {
      "modelref" : true,
      "id" : "node"
    },
    "name" : "测试1 - 节点名称",
    "getParentPSDETreeNode" : {
      "modelref" : true,
      "id" : "node_1"
    },
    "parentValueLevel" : 1,
    "searchMode" : 3
  }, {
    "getChildPSDETreeNode" : {
      "modelref" : true,
      "id" : "node_3"
    },
    "name" : "测试2 - 测试3",
    "getParentPSDETreeNode" : {
      "modelref" : true,
      "id" : "node_2"
    },
    "parentValueLevel" : 1,
    "searchMode" : 3
  }, {
    "getChildPSDETreeNode" : {
      "modelref" : true,
      "id" : "node_2"
    },
    "name" : "默认根节点 - 测试2",
    "getParentPSDETreeNode" : {
      "modelref" : true,
      "id" : "ROOT"
    },
    "parentValueLevel" : 1,
    "searchMode" : 3
  } ],
  "getPSDETreeNodes" : [ {
    "counterMode" : 0,
    "name" : "默认根节点",
    "nodeType" : "ROOT",
    "nodeValue" : "root",
    "text" : "默认根节点",
    "treeNodeType" : "STATIC",
    "hasPSDETreeNodeRSs" : true,
    "appendPNodeId" : false,
    "disableSelect" : false,
    "enableCheck" : false,
    "enableEditData" : false,
    "enableNewData" : false,
    "enableQuickCreate" : false,
    "enableQuickSearch" : false,
    "enableRemoveData" : false,
    "enableViewData" : false,
    "expandFirstOnly" : false,
    "expanded" : false,
    "rootNode" : true,
    "selectFirstOnly" : false,
    "selected" : false,
    "id" : "ROOT"
  }, {
    "counterMode" : 0,
    "dataSourceType" : "DEDATASET",
    "getIdPSAppDEField" : {
      "name" : "BOOKID",
      "codeName" : "BookId"
    },
    "maxSize" : -1,
    "name" : "节点名称",
    "nodeType" : "node",
    "getPSAppDEDataSet" : {
      "modelref" : true,
      "id" : "FetchDefault"
    },
    "getPSAppDataEntity" : {
      "modelref" : true,
      "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book.json"
    },
    "getPSDETreeNodeDataItems" : [ {
      "cLConvertMode" : "NONE",
      "dataType" : 25,
      "name" : "text",
      "getPSAppDEField" : {
        "name" : "BOOKNAME",
        "codeName" : "BookName"
      },
      "scriptCode" : "return `<div>这是节点项文本：${data.bookname}</div>`",
      "customCode" : true
    } ],
    "getTextPSAppDEField" : {
      "name" : "BOOKNAME",
      "codeName" : "BookName"
    },
    "treeNodeType" : "DE",
    "hasPSDETreeNodeRSs" : false,
    "appendPNodeId" : false,
    "disableSelect" : false,
    "enableCheck" : false,
    "enableEditData" : false,
    "enableNewData" : false,
    "enableQuickCreate" : false,
    "enableQuickSearch" : false,
    "enableRemoveData" : false,
    "enableViewData" : false,
    "expandFirstOnly" : false,
    "expanded" : false,
    "rootNode" : false,
    "selectFirstOnly" : false,
    "selected" : false,
    "id" : "node"
  }, {
    "counterMode" : 0,
    "name" : "测试1",
    "nodeType" : "node_1",
    "text" : "测试1",
    "treeNodeType" : "STATIC",
    "hasPSDETreeNodeRSs" : true,
    "appendPNodeId" : false,
    "disableSelect" : false,
    "enableCheck" : false,
    "enableEditData" : false,
    "enableNewData" : false,
    "enableQuickCreate" : false,
    "enableQuickSearch" : false,
    "enableRemoveData" : false,
    "enableViewData" : false,
    "expandFirstOnly" : false,
    "expanded" : false,
    "rootNode" : false,
    "selectFirstOnly" : false,
    "selected" : false,
    "id" : "node_1"
  }, {
    "counterMode" : 0,
    "name" : "测试2",
    "nodeType" : "node_2",
    "text" : "测试2",
    "treeNodeType" : "STATIC",
    "hasPSDETreeNodeRSs" : true,
    "appendPNodeId" : false,
    "disableSelect" : false,
    "enableCheck" : false,
    "enableEditData" : false,
    "enableNewData" : false,
    "enableQuickCreate" : false,
    "enableQuickSearch" : false,
    "enableRemoveData" : false,
    "enableViewData" : false,
    "expandFirstOnly" : false,
    "expanded" : false,
    "rootNode" : false,
    "selectFirstOnly" : false,
    "selected" : false,
    "id" : "node_2"
  }, {
    "counterMode" : 0,
    "name" : "测试3",
    "nodeType" : "node_3",
    "getPSControlRenders" : [ {
      "layoutPanelModel" : "console.log('这是无数据');\r\nlet htmlStr = '';\r\nif(ctrl.state.items && ctrl.state.items.length === 0){\r\n        htmlStr += `<div class=\"tree-node-custom-render\">现在还没有数据</div>`;\r\n}\r\nreturn htmlStr;",
      "name" : "emptypanel",
      "renderType" : "LAYOUTPANEL_MODEL"
    } ],
    "text" : "测试3",
    "treeNodeType" : "STATIC",
    "hasPSDETreeNodeRSs" : false,
    "appendPNodeId" : false,
    "disableSelect" : false,
    "enableCheck" : false,
    "enableEditData" : false,
    "enableNewData" : false,
    "enableQuickCreate" : false,
    "enableQuickSearch" : false,
    "enableRemoveData" : false,
    "enableViewData" : false,
    "expandFirstOnly" : false,
    "expanded" : false,
    "rootNode" : false,
    "selectFirstOnly" : false,
    "selected" : false,
    "id" : "node_3"
  } ],
  "getRemovePSControlAction" : {
    "modelref" : true,
    "id" : "remove",
    "actionName" : "Remove",
    "actionType" : "DEACTION",
    "dataAccessAction" : "DELETE",
    "name" : "remove",
    "getPSAppDEMethod" : {
      "modelref" : true,
      "id" : "Remove"
    },
    "getPSAppDataEntity" : {
      "modelref" : true,
      "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book.json"
    }
  },
  "treeGridMode" : 1,
  "getUpdatePSControlAction" : {
    "modelref" : true,
    "id" : "update",
    "actionName" : "Update",
    "actionType" : "DEACTION",
    "dataAccessAction" : "UPDATE",
    "name" : "update",
    "getPSAppDEMethod" : {
      "modelref" : true,
      "id" : "Update"
    },
    "getPSAppDataEntity" : {
      "modelref" : true,
      "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book.json"
    }
  },
  "enableRootSelect" : false,
  "outputIconDefault" : true,
  "rootVisible" : false,
  "modelid" : "01EF7C72-7726-4F04-A84C-CBDE66C378B7",
  "modeltype" : "PSDETREEVIEW"
}