-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdemo.js
140 lines (120 loc) · 3 KB
/
demo.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
function showTips1() {
layer.tips('展开所有节点', '#expand', {
tips: [1, '#3595CC'],
time: 3000
})
}
function showTips2() {
layer.tips('收起所有节点', '#collapse', {
tips: [1, '#3595CC'],
time: 3000
})
}
function showTips3() {
layer.tips('获取checkbox选中的节点信息', '#selected', {
tips: [1, '#3595CC'],
time: 3000
})
}
function showTips4() {
layer.tips('添加根节点-父节点4,父节点4中带有子节点', '#addNode2', {
tips: [1, '#3595CC'],
time: 3000
})
}
function showTips5() {
layer.tips('在父节点2下添加子节点22,子节点22中带有子节点', '#addNode', {
tips: [1, '#3595CC'],
time: 3000
})
}
function showTips6() {
layer.tips('修改父节点3的名字', '#editNode', {
tips: [1, '#3595CC'],
time: 3000
})
}
function showTips7() {
layer.tips('删除父节点2,所有子节点一起删除', '#removeNode', {
tips: [1, '#3595CC'],
time: 3000
})
}
function showTips8() {
layer.tips('获取所有节点的信息', '#all', {
tips: [1, '#3595CC'],
time: 3000
})
}
function showTips9() {
layer.tips('获取父节点2的信息', '#getNode', {
tips: [1, '#3595CC'],
time: 3000
})
}
function showTips10() {
layer.tips('销毁treetable', '#destory', {
tips: [1, '#3595CC'],
time: 3000
})
}
function showTips11() {
layer.tips('展开指定节点:父节点2', '#expandNode', {
tips: [1, '#3595CC'],
time: 3000
})
}
function showTips12() {
layer.tips('折叠指定节点:父节点2', '#collapseNode', {
tips: [1, '#3595CC'],
time: 3000
})
}
function showTips13() {
layer.tips('勾选 单个节点:父节点1。', '#checkNode', {
tips: [1, '#3595CC'],
time: 3000
})
}
function showTips14() {
layer.tips('取消勾选 单个节点:父节点1。', '#uncheckNode', {
tips: [2, '#3595CC'],
time: 3000
})
}
function showTips15() {
layer.tips('禁用父节点1的checkbox', '#disableNode', {
tips: [2, '#3595CC'],
time: 3000
})
}
function showTips16() {
layer.tips('解禁父节点1的checkbox', '#ableNode', {
tips: [2, '#3595CC'],
time: 3000
})
}
function showTips17() {
layer.tips('获取所有未选中节点的信息', '#unSelected', {
tips: [2, '#3595CC'],
time: 3000
})
}
function showTips18() {
layer.tips('勾选全部节点', '#checkAllNode', {
tips: [2, '#3595CC'],
time: 3000
})
}
function showTips19() {
layer.tips('取消勾选全部节点', '#unCheckAllNode', {
tips: [2, '#3595CC'],
time: 3000
})
}
function showTips20() {
layer.tips('根据节点数据的属性搜索,获取条件完全匹配的节点数据 JSON 对象,查找name=父节点1的节点', '#getNodeByParam', {
tips: [2, '#3595CC'],
time: 4000
})
}