提交 44cf9ae7 编写于 作者: MaxKey单点登录官方's avatar MaxKey单点登录官方

tree load dataType json

上级 76594a4f
...@@ -109,6 +109,7 @@ $(function () { ...@@ -109,6 +109,7 @@ $(function () {
enable : true, enable : true,
url : treeSettings.url, url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"], autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId}, otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) { dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null; if (!childNodes) return null;
......
...@@ -122,6 +122,7 @@ $(function () { ...@@ -122,6 +122,7 @@ $(function () {
enable : true, enable : true,
url : treeSettings.url, url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"], autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId}, otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) { dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null; if (!childNodes) return null;
......
...@@ -109,6 +109,7 @@ $(function () { ...@@ -109,6 +109,7 @@ $(function () {
enable : true, enable : true,
url : treeSettings.url, url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"], autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId}, otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) { dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null; if (!childNodes) return null;
......
...@@ -122,6 +122,7 @@ $(function () { ...@@ -122,6 +122,7 @@ $(function () {
enable : true, enable : true,
url : treeSettings.url, url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"], autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId}, otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) { dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null; if (!childNodes) return null;
......
...@@ -100,6 +100,7 @@ $(function () { ...@@ -100,6 +100,7 @@ $(function () {
enable : true, enable : true,
url : treeSettings.url, url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"], autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId}, otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) { dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null; if (!childNodes) return null;
......
...@@ -105,6 +105,7 @@ $(function () { ...@@ -105,6 +105,7 @@ $(function () {
enable : true, enable : true,
url : treeSettings.url, url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"], autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId}, otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) { dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null; if (!childNodes) return null;
......
...@@ -170,6 +170,7 @@ $('#datagrid').on('click-row.bs.table', function (row, element, field) { ...@@ -170,6 +170,7 @@ $('#datagrid').on('click-row.bs.table', function (row, element, field) {
async : { async : {
enable : true, enable : true,
url : treeSettings.url, url : treeSettings.url,
dataType : "json",
autoParam : ["id", "name=n", "level=lv"], autoParam : ["id", "name=n", "level=lv"],
otherParam : { otherParam : {
"otherParam":"zTreeAsyncTest", "otherParam":"zTreeAsyncTest",
......
...@@ -101,6 +101,7 @@ $(function () { ...@@ -101,6 +101,7 @@ $(function () {
async : { async : {
enable : true, enable : true,
url : treeSettings.url, url : treeSettings.url,
dataType : "json",
autoParam : ["id", "name=n", "level=lv"], autoParam : ["id", "name=n", "level=lv"],
otherParam : { otherParam : {
"otherParam":"zTreeAsyncTest", "otherParam":"zTreeAsyncTest",
......
...@@ -109,6 +109,7 @@ $(function () { ...@@ -109,6 +109,7 @@ $(function () {
enable : true, enable : true,
url : treeSettings.url, url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"], autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId}, otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) { dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null; if (!childNodes) return null;
......
...@@ -122,6 +122,7 @@ $(function () { ...@@ -122,6 +122,7 @@ $(function () {
enable : true, enable : true,
url : treeSettings.url, url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"], autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId}, otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) { dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null; if (!childNodes) return null;
......
...@@ -114,6 +114,7 @@ ...@@ -114,6 +114,7 @@
enable : true, enable : true,
url : treeSettings.url, url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"], autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId}, otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) { dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null; if (!childNodes) return null;
......
...@@ -119,6 +119,7 @@ $(function () { ...@@ -119,6 +119,7 @@ $(function () {
enable : true, enable : true,
url : treeSettings.url, url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"], autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId}, otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) { dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null; if (!childNodes) return null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册