tree load dataType json

This commit is contained in:
Crystal.Sea 2021-10-18 12:28:11 +08:00
parent 76594a4f0b
commit 44cf9ae7da
12 changed files with 12 additions and 0 deletions

View File

@ -109,6 +109,7 @@ $(function () {
enable : true,
url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null;

View File

@ -122,6 +122,7 @@ $(function () {
enable : true,
url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null;

View File

@ -109,6 +109,7 @@ $(function () {
enable : true,
url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null;

View File

@ -122,6 +122,7 @@ $(function () {
enable : true,
url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null;

View File

@ -100,6 +100,7 @@ $(function () {
enable : true,
url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null;

View File

@ -105,6 +105,7 @@ $(function () {
enable : true,
url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null;

View File

@ -170,6 +170,7 @@ $('#datagrid').on('click-row.bs.table', function (row, element, field) {
async : {
enable : true,
url : treeSettings.url,
dataType : "json",
autoParam : ["id", "name=n", "level=lv"],
otherParam : {
"otherParam":"zTreeAsyncTest",

View File

@ -101,6 +101,7 @@ $(function () {
async : {
enable : true,
url : treeSettings.url,
dataType : "json",
autoParam : ["id", "name=n", "level=lv"],
otherParam : {
"otherParam":"zTreeAsyncTest",

View File

@ -109,6 +109,7 @@ $(function () {
enable : true,
url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null;

View File

@ -122,6 +122,7 @@ $(function () {
enable : true,
url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null;

View File

@ -114,6 +114,7 @@
enable : true,
url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null;

View File

@ -119,6 +119,7 @@ $(function () {
enable : true,
url : treeSettings.url,
autoParam : ["id", "name=n", "level=lv"],
dataType : "json",
otherParam : {"otherParam":"zTreeAsyncTest",id:treeSettings.rootId},
dataFilter : function (treeId, parentNode, childNodes) {
if (!childNodes) return null;