project-management.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <meta http-equiv="x-ua-compatible" content="ie=edge">
  7. <title>项目管理-Smartcost</title>
  8. <link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="/web/building_saas/css/main.css">
  10. <link rel="stylesheet" href="/lib/font-awesome/font-awesome.min.css">
  11. <!--zTree-->
  12. <link rel="stylesheet" href="/lib/ztree/css/zTreeStyle.css" type="text/css">
  13. <script>
  14. // 这里的变量供页面调用
  15. var userAccount = '<%- userAccount %>';
  16. var userID = '<%- userID %>';
  17. </script>
  18. </head>
  19. <body>
  20. <div class="header">
  21. <div class="top-msg clearfix">
  22. <div class="alert alert-warning mb-0 py-0" role="alert">
  23. <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  24. <span aria-hidden="true">&times;</span>
  25. </button>
  26. <strong>注意!</strong> 这是一条消息通知 <a href="#">链接</a>
  27. </div>
  28. </div>
  29. <nav class="navbar navbar-toggleable-lg navbar-light bg-faded p-0 justify-content-between">
  30. <span class="header-logo px-2">Smartcost</span>
  31. <div class="navbar-text pt-0">
  32. <div class="dropdown d-inline-block">
  33. <button class="btn btn-link btn-sm dropdown-toggle" type="button" data-toggle="dropdown"><%- userAccount %></button>
  34. <div class="dropdown-menu dropdown-menu-right">
  35. <a class="dropdown-item" href="/user/info" target="_blank">账号资料</a>
  36. <a class="dropdown-item" href="user-buy.html" target="_blank">产品购买</a>
  37. <a class="dropdown-item" href="/user/preferences" target="_blank">偏好设置</a>
  38. </div>
  39. </div>
  40. <span class="btn btn-link btn-sm new-msg">
  41. <i class="fa fa-envelope-o" aria-hidden="true"></i>&nbsp;2
  42. </span>
  43. <a href="/logout" class="btn btn-link btn-sm">注销</a>
  44. </div>
  45. </nav>
  46. <nav class="navbar navbar-toggleable-lg justify-content-between navbar-light p-0">
  47. <ul class="nav navbar-nav px-1">
  48. <li class="nav-item dropdown">
  49. <a class="nav-link dropdown-toggle" href="http://example.com" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">文件</a>
  50. <div class="dropdown-menu" aria-labelledby="supportedContentDropdown">
  51. <a class="dropdown-item" href="#">Action</a>
  52. <a class="dropdown-item" href="#">Another action</a>
  53. <a class="dropdown-item" href="#">Something else here</a>
  54. </div>
  55. </li>
  56. <li class="nav-item dropdown">
  57. <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">编辑</a>
  58. <div class="dropdown-menu">
  59. <a class="dropdown-item" href="#">Action</a>
  60. <a class="dropdown-item" href="#">Another action</a>
  61. <a class="dropdown-item" href="#">Something else here</a>
  62. </div>
  63. </li>
  64. <li class="nav-item dropdown">
  65. <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">工具</a>
  66. <div class="dropdown-menu">
  67. <a class="dropdown-item" href="#">Action</a>
  68. <a class="dropdown-item" href="#">Another action</a>
  69. <a class="dropdown-item" href="#">Something else here</a>
  70. </div>
  71. </li>
  72. <li class="nav-item">
  73. <a class="nav-link" href="#" aria-haspopup="true" aria-expanded="false">帮助</a>
  74. </li>
  75. </ul>
  76. <form class="form-inline">
  77. <input class="form-control form-control-sm mr-1" type="text" placeholder="告诉我你想做什么">
  78. </form>
  79. </nav>
  80. </div>
  81. <div class="main">
  82. <div class="poj-manage container-fluid">
  83. <div class="row">
  84. <div class="col-lg-2">
  85. <div class="poj-cate">
  86. <input type="text" class="my-2 form-control form-control-sm" placeholder="搜索所有工程">
  87. <ul class="nav nav-pills flex-column">
  88. <li class="nav-item">
  89. <a class="nav-link active" href="#">全部</a>
  90. </li>
  91. <li class="nav-item">
  92. <a class="nav-link" href="#">最近使用</a>
  93. </li>
  94. <li class="nav-item">
  95. <a class="nav-link" href="#">共享</a>
  96. </li>
  97. <li class="nav-item">
  98. <a class="nav-link" href="#">协同工作</a>
  99. </li>
  100. <li class="nav-item">
  101. <a class="nav-link" href="#">归档</a>
  102. </li>
  103. <li class="nav-item">
  104. <a class="nav-link" href="#">回收站</a>
  105. </li>
  106. </ul>
  107. </div>
  108. </div>
  109. <div class="col-lg-10">
  110. <div class="toolsbar">
  111. <div class="tools-btn btn-group align-top">
  112. <a href="javascript:void(0);" class="btn btn-sm" id="addProjBtn">新建工程</a>
  113. <a href="javascript:void(0);" class="btn btn-sm" id="addFolderBtn"><i class="fa fa-folder-o"></i>&nbsp;新建文件夹</a>
  114. <a href="javascript:void(0);" class="btn btn-sm" id="renameBtn">重命名</a>
  115. <a href="javascript:void(0);" class="btn btn-sm" id="delBtn">删除</a>
  116. <a href="javascript:void(0);" class="btn btn-sm" id="movetoBtn">移动到...</a>
  117. <a href="javascript:void(0);" class="btn btn-sm" id="copytoBtn">复制到...</a>
  118. <a href="" class="btn btn-sm" id="shareBtn">共享</a>
  119. <a href="" class="btn btn-sm" id="cooperateBtn">协同</a>
  120. </div>
  121. </div>
  122. <div class="poj-list">
  123. <legend>全部</legend>
  124. <table class="table table-hover table-sm" id="ProjTree">
  125. <thead>
  126. <tr>
  127. <th width="40"></th>
  128. <th width="78%">工程列表</th>
  129. <th width="10%">最近使用</th>
  130. <th width="10%">创建日期</th>
  131. </tr>
  132. </thead>
  133. <tbody>
  134. <tr>
  135. <td></td>
  136. <td class="in-1"><a href="#" class="tree-open" title="收起"><i class="fa fa-minus-square-o mr-1"></i></a><i class="fa fa-folder-open-o"></i>&nbsp;XX项目文件夹</td>
  137. <td></td>
  138. <td></td>
  139. </tr>
  140. <tr>
  141. <td></td>
  142. <td class="in-2"><a href="#" class="tree-open" title="收起"><i class="fa fa-minus-square-o mr-1"></i></a><i class="fa fa-folder-open-o"></i>&nbsp;XX项目文件夹</td>
  143. <td></td>
  144. <td></td>
  145. </tr>
  146. <tr>
  147. <td></td>
  148. <td class="in-3"><a href="#" class="tree-open" title="收起"><i class="fa fa-minus-square-o mr-1"></i></a><i class="fa fa-folder-open-o"></i>&nbsp;XX项目文件夹</td>
  149. <td></td>
  150. <td></td>
  151. </tr>
  152. <tr>
  153. <td></td>
  154. <td class="in-4"><a href="#" class="tree-open" title="收起"><i class="fa fa-minus-square-o mr-1"></i></a><i class="fa fa-folder-open-o"></i>&nbsp;<a href="#">某某某某工厂工厂某某工厂建设某某工厂建设</a></td>
  155. <td></td>
  156. <td></td>
  157. </tr>
  158. <tr>
  159. <td></td>
  160. <td class="in-5"><a href="#" class="tree-open" title="收起"><i class="fa fa-minus-square-o mr-1"></i></a><i class="fa fa-folder-open-o"></i>&nbsp;<a href="#" class="open-sidebar">左1号生产车间(click)</a></td>
  161. <td></td>
  162. <td></td>
  163. </tr>
  164. <tr>
  165. <td><i class="fa fa-sort" data-toggle="tooltip" data-placement="top" title="长安拖动"></i></td>
  166. <td class="in-6"><span class="in-3 poj-icon">└</span><a href="zaojiashu.html">建筑工程(click)</a></td>
  167. <td>2016-01-01</td>
  168. <td>2016-01-01</td>
  169. </tr>
  170. <tr>
  171. <td></td>
  172. <td class="in-6"><span class="in-3 poj-icon">└</span><a href="#">机械设备安装工程</a></td>
  173. <td>2016-01-01</td>
  174. <td>2016-01-01</td>
  175. </tr>
  176. <tr>
  177. <td></td>
  178. <td class="in-5"><a href="#" class="tree-close" title="展开"><i class="fa fa-plus-square-o mr-1"></i></a><i class="fa fa-folder-o"></i>&nbsp;<a href="#">2号生产车间</a></td>
  179. <td>......</td>
  180. <td>......</td>
  181. </tr>
  182. </tbody>
  183. </table>
  184. </div>
  185. </div>
  186. </div>
  187. </div>
  188. <div class="slide-sidebar">
  189. <div class="side-content">
  190. <div class="p-3">
  191. <legend>1号生产车间 汇总</legend>
  192. <table class="table table-bordered table-hover table-sm">
  193. <thead>
  194. <tr>
  195. <th rowspan="2"></th>
  196. <th rowspan="2">序号</th>
  197. <th rowspan="2">名称</th>
  198. <th rowspan="2">金额</th>
  199. <th colspan="6">其中</th>
  200. <th rowspan="2">占造价比例(%)</th>
  201. <th rowspan="2">建筑面积</th>
  202. <th rowspan="2">单方造价</th>
  203. </tr>
  204. <tr>
  205. <th>分部分项合计</th>
  206. <th>措施项目合计</th>
  207. <th>其他项目合计</th>
  208. <th>安全文明施工费</th>
  209. <th>规费</th>
  210. <th>税金</th>
  211. </tr>
  212. </thead>
  213. <tbody>
  214. <tr>
  215. <td>1</td>
  216. <td>一</td>
  217. <td>建筑工程</td>
  218. <td>0</td>
  219. <td>0</td>
  220. <td>0</td>
  221. <td>0</td>
  222. <td>0</td>
  223. <td>0</td>
  224. <td>0</td>
  225. <td>0</td>
  226. <td>0</td>
  227. <td>0</td>
  228. </tr>
  229. <tr>
  230. <td>2</td>
  231. <td>二</td>
  232. <td>建筑工程</td>
  233. <td>0</td>
  234. <td>0</td>
  235. <td>0</td>
  236. <td>0</td>
  237. <td>0</td>
  238. <td>0</td>
  239. <td>0</td>
  240. <td>0</td>
  241. <td>0</td>
  242. <td>0</td>
  243. </tr>
  244. <tr>
  245. <td>3</td>
  246. <td> </td>
  247. <td> </td>
  248. <td> </td>
  249. <td> </td>
  250. <td> </td>
  251. <td> </td>
  252. <td> </td>
  253. <td> </td>
  254. <td> </td>
  255. <td> </td>
  256. <td> </td>
  257. <td> </td>
  258. </tr>
  259. <tr>
  260. <td>4</td>
  261. <td>一</td>
  262. <td>合计</td>
  263. <td>0</td>
  264. <td>0</td>
  265. <td>0</td>
  266. <td>0</td>
  267. <td>0</td>
  268. <td>0</td>
  269. <td>0</td>
  270. <td> </td>
  271. <td> </td>
  272. <td> </td>
  273. </tr>
  274. </tbody>
  275. </table>
  276. </div>
  277. </div>
  278. </div>
  279. </div>
  280. <!--弹出新建工程-->
  281. <div class="modal fade" id="addProj" data-backdrop="static">
  282. <div class="modal-dialog" role="document">
  283. <div class="modal-content">
  284. <div class="modal-header">
  285. <h5 class="modal-title">新建工程</h5>
  286. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  287. <span aria-hidden="true">&times;</span>
  288. </button>
  289. </div>
  290. <div class="modal-body">
  291. <form>
  292. <div class="collapse" id="moreinfo">
  293. <div class="form-group">
  294. <label>建设项目</label>
  295. <input type="text" class="form-control" placeholder="输入建设项目名称" id='buildName'>
  296. </div>
  297. <div class="form-group">
  298. <label>单项工程</label>
  299. <input type="text" class="form-control" placeholder="输入单项工程名称" id="xiangName">
  300. </div>
  301. </div>
  302. <div class="form-group">
  303. <label>单位工程</label>
  304. <input type="text" class="form-control" placeholder="输入单位工程名称" id="tenderName">
  305. </div>
  306. <div class="form-group" >
  307. <label class="custom-control custom-checkbox" id="isAddFolder">
  308. <input type="checkbox" class="custom-control-input">
  309. <span class="custom-control-indicator" ></span>
  310. <span class="custom-control-description">建立 <b>建设项目</b> 和 <b>单项工程</b> 文件夹</span>
  311. </label>
  312. </div>
  313. <div class="form-group">
  314. <label>计价方式</label>
  315. <div>
  316. <% if(compilationData !== undefined && compilationData.bill_valuation.length > 0) { %>
  317. <% compilationData.bill_valuation.forEach(function(bill_valuation) { %>
  318. <label class="custom-control custom-radio">
  319. <input id="radio1" name="radio" type="radio" class="custom-control-input" value="<%= bill_valuation._id %>">
  320. <span class="custom-control-indicator"></span>
  321. <span class="custom-control-description"><%= bill_valuation.name %></span>
  322. </label>
  323. <% }) %>
  324. <% } %>
  325. <% if(compilationData !== undefined && compilationData.ration_valuation.length > 0) { %>
  326. <% compilationData.ration_valuation.forEach(function(ration_valuation) { %>
  327. <label class="custom-control custom-radio">
  328. <input id="radio1" name="radio" type="radio" class="custom-control-input" value="<%= ration_valuation._id %>">
  329. <span class="custom-control-indicator"></span>
  330. <span class="custom-control-description"><%= ration_valuation.name %></span>
  331. </label>
  332. <% }) %>
  333. <% } %>
  334. </div>
  335. </div>
  336. </form>
  337. </div>
  338. <div class="modal-footer">
  339. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  340. <a href="javacript:void(0);" class="btn btn-primary" id='addProjOk'>确定</a>
  341. </div>
  342. </div>
  343. </div>
  344. </div>
  345. <!--弹出新建文件夹-->
  346. <div class="modal fade" id="addFolder" data-backdrop="static">
  347. <div class="modal-dialog" role="document">
  348. <div class="modal-content">
  349. <div class="modal-header">
  350. <h5 class="modal-title">新建文件夹</h5>
  351. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  352. <span aria-hidden="true">&times;</span>
  353. </button>
  354. </div>
  355. <div class="modal-body">
  356. <form>
  357. <div class="form-group">
  358. <label>文件夹</label>
  359. <input type="text" class="form-control" placeholder="输入文件夹名称" id="folder-name-input">
  360. <span class="form-text text-muted">Smartcost为你提供了灵活的工程管理功能,如:</span>
  361. <span class="form-text text-muted">当你想汇总多个 <b>单位工程</b> 时,只需把它们都放在一个文件夹即可。</span>
  362. </div>
  363. </form>
  364. </div>
  365. <div class="modal-footer">
  366. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  367. <a href="javacript:void(0);" class="btn btn-primary" id="addFolderOk">确定</a>
  368. </div>
  369. </div>
  370. </div>
  371. </div>
  372. <!--弹出重命名-->
  373. <div class="modal fade" id="rename" data-backdrop="static">
  374. <div class="modal-dialog" role="document">
  375. <div class="modal-content">
  376. <div class="modal-header">
  377. <h5 class="modal-title">重命名</h5>
  378. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  379. <span aria-hidden="true">&times;</span>
  380. </button>
  381. </div>
  382. <div class="modal-body">
  383. <form>
  384. <div class="form-group">
  385. <input type="text" class="form-control" placeholder="输入名称" id="newName">
  386. </div>
  387. </form>
  388. </div>
  389. <div class="modal-footer">
  390. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  391. <a href="javascript:void(0);" class="btn btn-primary" id="renameOk">确定</a>
  392. </div>
  393. </div>
  394. </div>
  395. </div>
  396. <!--弹出删除-->
  397. <div class="modal fade" id="del" data-backdrop="static">
  398. <div class="modal-dialog" role="document">
  399. <div class="modal-content">
  400. <div class="modal-header">
  401. <h5 class="modal-title">删除确认</h5>
  402. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  403. <span aria-hidden="true">&times;</span>
  404. </button>
  405. </div>
  406. <div class="modal-body">
  407. <h5 class="text-danger" id="tenderHint">删除 "建筑工程" ?</h5>
  408. <h5 class="text-danger" id="folderHint">删除 "XX项目文件夹" 以及它包含的子项?</h5>
  409. <p class="" id = 'restoreHint'>删除后,你可以在回收站找到它。</p>
  410. </div>
  411. <div class="modal-footer">
  412. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  413. <a href="javacript:void(0);" class="btn btn-danger" id="deleteProjOk">删除</a>
  414. </div>
  415. </div>
  416. </div>
  417. </div>
  418. <!--弹出移动到-->
  419. <div class="modal fade" id="moveto" data-backdrop="static">
  420. <div class="modal-dialog" role="document">
  421. <div class="modal-content">
  422. <div class="modal-header">
  423. <h5 class="modal-title">移动到...</h5>
  424. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  425. <span aria-hidden="true">&times;</span>
  426. </button>
  427. </div>
  428. <div class="modal-body">
  429. <ul id="treeDemo" class="ztree"></ul>
  430. </div>
  431. <div class="modal-footer">
  432. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  433. <a href="javacript:void(0);" class="btn btn-primary" id="movetoOk">确定</a>
  434. </div>
  435. </div>
  436. </div>
  437. </div>
  438. <!--弹出复制到-->
  439. <div class="modal fade" id="copyto" data-backdrop="static">
  440. <div class="modal-dialog" role="document">
  441. <div class="modal-content">
  442. <div class="modal-header">
  443. <h5 class="modal-title">复制到...</h5>
  444. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  445. <span aria-hidden="true">&times;</span>
  446. </button>
  447. </div>
  448. <div class="modal-body">
  449. <ul id="treeDemo2" class="ztree"></ul>
  450. </div>
  451. <div class="modal-footer">
  452. <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
  453. <a href="javacript:void(0);" class="btn btn-primary" id="copytoOk">确定</a>
  454. </div>
  455. </div>
  456. </div>
  457. </div>
  458. <!-- JS. -->
  459. <script src="/lib/jquery/jquery.min.js"></script>
  460. <script src="/lib/tether/tether.min.js"></script>
  461. <script src="/lib/bootstrap/bootstrap.min.js"></script>
  462. <script src="/web/building_saas/js/global.js"></script>
  463. <script src="/public/web/date_util.js"></script>
  464. <script src="/public/web/tree_table/tree_table.js"></script>
  465. <script type="text/javascript" src="/public/web/common_ajax.js"></script>
  466. <script src="/web/building_saas/pm/js/pm_ajax.js"></script>
  467. <script src="/web/building_saas/pm/js/pm_main.js" charset="UTF-8"></script>
  468. <!-- zTree -->
  469. <script type="text/javascript" src="/lib/ztree/jquery.ztree.core.js"></script>
  470. <script type="text/javascript" src="/lib/ztree/jquery.ztree.excheck.js"></script>
  471. <SCRIPT type="text/javascript">
  472. <!--
  473. var setting = { };
  474. var zNodes =[
  475. { name:"父节点1 - 展开", open:true,
  476. children: [
  477. { name:"父节点11 - 折叠",
  478. children: [
  479. { name:"叶子节点111"},
  480. { name:"叶子节点112"},
  481. { name:"叶子节点113"},
  482. { name:"叶子节点114"}
  483. ]},
  484. { name:"父节点12 - 折叠",
  485. children: [
  486. { name:"叶子节点121"},
  487. { name:"叶子节点122"},
  488. { name:"叶子节点123"},
  489. { name:"叶子节点124"}
  490. ]},
  491. { name:"父节点13 - 没有子节点", isParent:true}
  492. ]},
  493. { name:"父节点2 - 折叠",
  494. children: [
  495. { name:"父节点21 - 展开", open:true,
  496. children: [
  497. { name:"叶子节点211"},
  498. { name:"叶子节点212"},
  499. { name:"叶子节点213"},
  500. { name:"叶子节点214"}
  501. ]},
  502. { name:"父节点22 - 折叠",
  503. children: [
  504. { name:"叶子节点221"},
  505. { name:"叶子节点222"},
  506. { name:"叶子节点223"},
  507. { name:"叶子节点224"}
  508. ]},
  509. { name:"父节点23 - 折叠",
  510. children: [
  511. { name:"叶子节点231"},
  512. { name:"叶子节点232"},
  513. { name:"叶子节点233"},
  514. { name:"叶子节点234"}
  515. ]}
  516. ]},
  517. { name:"父节点3 - 没有子节点", isParent:true}
  518. ];
  519. $(document).ready(function(){
  520. $.fn.zTree.init($("#treeDemo"), setting, zNodes);
  521. });
  522. //-->
  523. </SCRIPT>
  524. <SCRIPT type="text/javascript">
  525. <!--
  526. var setting = { };
  527. var zNodes =[
  528. { name:"父节点1 - 展开", open:true,
  529. children: [
  530. { name:"父节点11 - 折叠",
  531. children: [
  532. { name:"叶子节点111"},
  533. { name:"叶子节点112"},
  534. { name:"叶子节点113"},
  535. { name:"叶子节点114"}
  536. ]},
  537. { name:"父节点12 - 折叠",
  538. children: [
  539. { name:"叶子节点121"},
  540. { name:"叶子节点122"},
  541. { name:"叶子节点123"},
  542. { name:"叶子节点124"}
  543. ]},
  544. { name:"父节点13 - 没有子节点", isParent:true}
  545. ]},
  546. { name:"父节点2 - 折叠",
  547. children: [
  548. { name:"父节点21 - 展开", open:true,
  549. children: [
  550. { name:"叶子节点211"},
  551. { name:"叶子节点212"},
  552. { name:"叶子节点213"},
  553. { name:"叶子节点214"}
  554. ]},
  555. { name:"父节点22 - 折叠",
  556. children: [
  557. { name:"叶子节点221"},
  558. { name:"叶子节点222"},
  559. { name:"叶子节点223"},
  560. { name:"叶子节点224"}
  561. ]},
  562. { name:"父节点23 - 折叠",
  563. children: [
  564. { name:"叶子节点231"},
  565. { name:"叶子节点232"},
  566. { name:"叶子节点233"},
  567. { name:"叶子节点234"}
  568. ]}
  569. ]},
  570. { name:"父节点3 - 没有子节点", isParent:true}
  571. ];
  572. $(document).ready(function(){
  573. $.fn.zTree.init($("#treeDemo2"), setting, zNodes);
  574. });
  575. //-->
  576. </SCRIPT>
  577. </body>
  578. <script type="text/javascript">
  579. autoFlashHeight();
  580. </script>
  581. </html>