Nessuna descrizione

inquireNews.html 28KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>工单查询</title>
  6. <script src="../Script/Common/huayi.load.js"></script>
  7. <link rel="stylesheet" href="../css/bootstrap-select.css">
  8. <script src="../Script/Common/huayi.config.js"></script>
  9. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  10. <link rel="stylesheet" href="../css/init.css" />
  11. <style>
  12. #sqzx th {
  13. padding: 5px 8px 5px 0;
  14. text-align: right;
  15. }
  16. .select {
  17. width: 150px;
  18. background-color: #FFF;
  19. background-image: none;
  20. border: 1px solid #ccc;
  21. border-radius: 1px;
  22. color: inherit;
  23. padding: 6px 12px;
  24. }
  25. #sex {
  26. background-color: #FFF;
  27. background-image: none;
  28. border: 1px solid #ccc;
  29. border-radius: 1px;
  30. color: inherit;
  31. padding: 6px 12px;
  32. }
  33. input {
  34. background-color: #FFF;
  35. background-image: none;
  36. border: 1px solid #ccc;
  37. border-radius: 1px;
  38. color: inherit;
  39. padding: 6px 12px;
  40. }
  41. #sqzx td {
  42. padding: 6px 0 5px 10px;
  43. }
  44. .lxr ul li {
  45. float: left;
  46. list-style: none;
  47. width: 30%;
  48. margin-bottom: 5px;
  49. padding-top: 10px;
  50. }
  51. .clearFix:after {
  52. content: "";
  53. display: block;
  54. clear: both;
  55. }
  56. .form-group {
  57. padding-left: 40px;
  58. margin-bottom: 0;
  59. }
  60. textarea {
  61. height: 70px;
  62. border: 1px solid #ccc;
  63. border-radius: 1px;
  64. width: 50%;
  65. resize: none;
  66. }
  67. .textarea_box {
  68. margin-top: 10px;
  69. }
  70. .box_content {
  71. border-bottom: 1px solid #ccc;
  72. }
  73. .tj_content {
  74. border: 1px solid #e6e6e6;
  75. border-radius: 5px;
  76. }
  77. .t-shade {
  78. position: fixed;
  79. top: 0;
  80. left: 0;
  81. width: 100%;
  82. background: rgba(0, 0, 0, 0.48);
  83. z-index: 10004;
  84. display: none;
  85. }
  86. .lyxz .shade_k {
  87. z-index: 10005;
  88. width: 40%;
  89. left: 30%;
  90. position: absolute;
  91. background-color: rgb(255, 255, 255);
  92. box-shadow: rgba(0, 0, 0, 0.298039) 1px 1px 50px;
  93. margin: 20% auto;
  94. border-radius: 5px;
  95. }
  96. .shade_title {
  97. padding: 0 80px 0 20px;
  98. height: 42px;
  99. line-height: 42px;
  100. border-bottom: 1px solid #eee;
  101. font-size: 16px;
  102. color: #FFFFFF;
  103. overflow: hidden;
  104. background-color: #00a1cb;
  105. border-radius: 2px 2px 0 0;
  106. position: relative;
  107. border-top-left-radius: 5px;
  108. border-top-right-radius: 5px;
  109. }
  110. .cx {
  111. display: block;
  112. }
  113. .setwin {
  114. position: absolute;
  115. right: 15px;
  116. top: 5px;
  117. font-size: 0;
  118. line-height: initial;
  119. }
  120. .setwin a {
  121. position: relative;
  122. width: 16px;
  123. height: 16px;
  124. font-size: 20px;
  125. color: #fff;
  126. }
  127. .xg i {
  128. font-size: 16px;
  129. }
  130. .hidens {
  131. display: none;
  132. }
  133. .inpBox {
  134. border: 1px solid #cccccc;
  135. height: 31px;
  136. width: 220px;
  137. display: inline-block;
  138. position: relative;
  139. vertical-align: middle;
  140. position: absolute;
  141. left: 0px;
  142. top: 0px;
  143. z-index: 111;
  144. }
  145. .selDpart1 {
  146. position: absolute;
  147. left: 0px;
  148. top: 30px;
  149. z-index: 11111;
  150. width: 220px;
  151. line-height: 30px;
  152. background: #FFFFFF;
  153. display: none;
  154. }
  155. #sponsor {
  156. width: 218px;
  157. border: 1px solid #00a1cb;
  158. margin: 0;
  159. padding: 0;
  160. list-style: none;
  161. max-height: 212px;
  162. overflow-x: hidden;
  163. overflow-y: scroll;
  164. }
  165. #sponsor li {
  166. margin: 0;
  167. padding-left: 10px;
  168. width: 220px;
  169. height: 30px;
  170. line-height: 30px;
  171. list-style: none;
  172. }
  173. #sponsor li:hover {
  174. background: #00a1cb;
  175. }
  176. .addTree {
  177. background: #fff;
  178. position: absolute;
  179. width: 100%;
  180. border: 1px solid darkgrey;
  181. right: 0;
  182. top: 29px;
  183. display: none;
  184. z-index: 222;
  185. }
  186. .xl {
  187. display: inline-block;
  188. background: url(../../img/dropDown.png) no-repeat;
  189. height: 100%;
  190. background-position: center center;
  191. width: 20px;
  192. position: absolute;
  193. right: 0;
  194. top: 0px;
  195. /* background-color: #f7bc8b; */
  196. cursor: pointer;
  197. }
  198. .ztree li span {
  199. border: none;
  200. padding: 0;
  201. }
  202. .inps {
  203. width: 217px;
  204. height: 29px;
  205. outline: none;
  206. border: 0;
  207. border-image-width: 0;
  208. padding: 0;
  209. padding-left: 3px;
  210. }
  211. .xl {
  212. display: inline-block;
  213. background: url(../img/dropDown.png) no-repeat;
  214. height: 100%;
  215. background-position: center center;
  216. width: 20px;
  217. position: absolute;
  218. right: 0;
  219. top: 0px;
  220. /* background-color: #f7bc8b; */
  221. cursor: pointer;
  222. }
  223. .Cleans {
  224. display: inline-block;
  225. width: 20px;
  226. position: absolute;
  227. right: 21px;
  228. top: 8px;
  229. display: none;
  230. }
  231. .Min-width {
  232. width: 150px;
  233. }
  234. .btn-default {
  235. background: #FFFFFF;
  236. color: #000000;
  237. }
  238. </style>
  239. </head>
  240. <body class="gray-bg">
  241. <div class="wrapper wrapper-content animated fadeInRight">
  242. <div class="daoHang clearfix">
  243. <div class="dhLeft">
  244. <sapn>
  245. <i class="syIcon"></i>位置:
  246. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  247. <a href="javaScript:;">工单处理</a>&gt;
  248. <a href="" class="nowPosition">新闻媒体查询</a>
  249. </sapn>
  250. </div>
  251. <div class="dhRight">
  252. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  253. </div>
  254. </div>
  255. <div style="padding: 10px;" class="tj_content clearFix">
  256. <div style="padding: 10px;" class="tj_content clearFix">
  257. <div>
  258. <span>【搜索信息】</span>
  259. <div class="box_content">
  260. <table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
  261. <tr>
  262. <th>关键字:</th>
  263. <td>
  264. <input type="text" placeholder="输入关键字" id="key" class="Min-width" />
  265. </td>
  266. <th>事项编号:</th>
  267. <td>
  268. <input type="text" placeholder="输入工单号" id="wids" class="Min-width" />
  269. </td>
  270. <th>时间:</th>
  271. <td>
  272. <input type="text" id="starttime" class="" placeholder="请选择时间"
  273. style="height: 32px;" />
  274. </td>
  275. <!-- <th>工单状态:</th>
  276. <td>
  277. <select name="" id="state" class="select">
  278. <option selected="selected" value="">请选择</option>
  279. <option value="0">新工单</option>
  280. <option value="1">待交办</option>
  281. <option value="10">待审核</option>
  282. <option value="2">待查收</option>
  283. <option value="3">退回审核中</option>
  284. <option value="4">办理中</option>
  285. <option value="5">延时审核中</option>
  286. <option value="6">已办理</option>
  287. <option value="7">已回访</option>
  288. <option value="11">重办待交办</option>
  289. <option value="13">重办驳回 </option>
  290. <option value="8">重办中</option>
  291. <option value="9">已结案</option>
  292. </select>
  293. </td> -->
  294. </tr>
  295. <tr>
  296. <th>工单来源:</th>
  297. <td>
  298. <select class="select_" id="source"></select>
  299. </td>
  300. <!-- <th>主题词:</th>
  301. <td>
  302. <select id="keyid" name="" class="select"></select>
  303. </td> -->
  304. <th>来电号码:</th>
  305. <td>
  306. <input type="text" id="tel" placeholder="请输入来电号码" />
  307. </td>
  308. <th>来电人:</th>
  309. <td>
  310. <input type="text" id="name" class="Min-width" autocomplete="off" />
  311. </td>
  312. </tr>
  313. <tr>
  314. <th>处理类型:</th>
  315. <td>
  316. <select class="select_" id="dealtype">
  317. <option value="">请选择</option>
  318. <option value="0">网络转派</option>
  319. <option value="1">当即办理</option>
  320. </select>
  321. </td>
  322. <th>类型:</th>
  323. <td>
  324. <select class="select_" id="type"></select>
  325. </td>
  326. <th>区域:</th>
  327. <td>
  328. <select class="select_" id="sourceAreas"></select>
  329. </td>
  330. <th>承办单位:</th>
  331. <td style="position: relative;">
  332. <div class="inpBox">
  333. <input type="text" class="inps" onkeyup="darptSearch()" />
  334. <i class="Cleans fa fa-close"></i>
  335. <i class="xl xl_one"></i>
  336. <div class="addTree xlAdd">
  337. <ul id="addTreeDemo" class="ztree"></ul>
  338. </div>
  339. </div>
  340. <div class="selDpart1">
  341. <ul id="sponsor">
  342. </ul>
  343. </div>
  344. </td>
  345. </tr>
  346. <tr>
  347. <td colspan="7"></td>
  348. <td style="text-align: center;">
  349. <botton class="btns Seach">搜索</botton>
  350. <botton class="btns Export">导出</botton>
  351. </td>
  352. </tr>
  353. </table>
  354. </div>
  355. </div>
  356. <div>
  357. <div style="width: 100%;padding: 10px;">
  358. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  359. data-pagination="true">
  360. <thead>
  361. <tr>
  362. <th data-formatter="serialNumber" data-align="center">
  363. 序号
  364. </th>
  365. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单单号</th>
  366. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
  367. <th data-field="DeptName" data-align="center">承办单位</th>
  368. <!-- <th data-field="OtherDeptName" data-align="center">协办单位</th> -->
  369. <th data-field="UserName" data-align="center">受理人</th>
  370. <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态</th>
  371. <th data-field="OverState" data-formatter="OverTime" data-align="center">时限</th>
  372. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">办理时限</th>
  373. <!--<th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>-->
  374. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
  375. </tr>
  376. </thead>
  377. <tbody class="list"></tbody>
  378. </table>
  379. </div>
  380. </div>
  381. </div>
  382. </div>
  383. <!--下载框-->
  384. <div class="t-shade lyxz">
  385. <div class="shade_k">
  386. <div class="shade_title">
  387. <span>录音播放与下载<srong class="cknum"></srong></span>
  388. <span class="setwin gbly"><a>x</a></span>
  389. </div>
  390. <div class="shade_content">
  391. <div class="Ly_box audiojs">
  392. </div>
  393. </div>
  394. </div>
  395. </div>
  396. <input type="hidden" id="PID" />
  397. <input type="hidden" id="Dpment" />
  398. </div>
  399. <script src="../js/bootstrap-select.js"></script>
  400. <script src="../js/laydate/laydate.js"></script>
  401. <script src="../My97DatePicker/WdatePicker.js"></script>
  402. <script src="../js/zTree/jquery.ztree.core.js"></script>
  403. <script src="../js/search/screen.js"></script>
  404. <script src="../js/WorkOrder/WorkOrderList.js"></script>
  405. <script>
  406. $(document).ready(function () {
  407. var wid = helper.request.queryString("wid");
  408. if (wid) {
  409. $('#tel').val(wid);
  410. load();
  411. }
  412. laydate.render({
  413. elem: '#starttime' //指定元素
  414. ,
  415. range: '~'
  416. });
  417. load();
  418. });
  419. //关闭录音弹出
  420. $(".gbly").click(function () {
  421. $(".lyxz").removeClass("cx");
  422. $('audio')[0].pause();
  423. });
  424. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  425. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  426. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  427. });
  428. //获取查询信息
  429. function load() {
  430. //先销毁表格
  431. $('#orderlist').bootstrapTable('destroy');
  432. //初始化表格,动态从服务器加载数据
  433. $("#orderlist").bootstrapTable({
  434. method: "get", //使用get请求到服务器获取数据
  435. url: huayi.config.callcenter_url + "WorkOrder/GetSelfList", //获取数据的Servlet地址
  436. contentType: "application/x-www-form-urlencoded",
  437. striped: true, //表格显示条纹
  438. pagination: true, //启动分页
  439. pageSize: 10, //每页显示的记录数
  440. pageNumber: 1, //当前第几页
  441. pageList: [10, 20, 50, 100], //记录数可选列表
  442. search: false, //是否启用查询
  443. showColumns: false, //显示下拉框勾选要显示的列
  444. showRefresh: false, //显示刷新按钮
  445. sidePagination: "server", //表示服务端请求
  446. queryParamsType: "undefined",
  447. queryParams: function queryParams(params) { //设置查询参数
  448. //alert(params.pageNumber)
  449. var param = {
  450. page: params.pageNumber,
  451. pagesize: params.pageSize,
  452. workid: $("#wids").val(),
  453. state: $("#state").val(), //=工单状态
  454. type: $("#type").val(), //=工单类型
  455. key: $("#key").val(), //=关键字
  456. tel: $("#tel").val(), //=客户电话
  457. name: $("#name").val(), //=客户名称
  458. keyid: $("#keyid").val(), //=关键词id
  459. source: $("#source").val(), //=来源&
  460. starttime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[
  461. 0], //=开始时间
  462. endtime: $('#starttime').val() && $('#starttime').val().split(' ~ ')[1], //=结束时间
  463. deptid: $("#PID").val(),
  464. type: $("#type").val(),
  465. dealtype: $("#dealtype").val(),
  466. sourcearea: $('#sourceAreas').val(), //区域
  467. token: $.cookie("token")
  468. };
  469. return param;
  470. },
  471. onLoadSuccess: function (data) { //加载成功时执行
  472. //layer.msg("加载成功");
  473. //console.log(data);
  474. },
  475. onLoadError: function () { //加载失败时执行
  476. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  477. }
  478. });
  479. }
  480. //状态
  481. function States(val, row) {
  482. var html = '';
  483. switch (val + '') {
  484. case '0':
  485. html = '新工单';
  486. if (row.F_IsReturn == 1) {
  487. html = '新工单(回退)';
  488. }
  489. break;
  490. case '1':
  491. html = '待交办';
  492. break;
  493. case '2':
  494. html = '待查收';
  495. break;
  496. case '3':
  497. html = '退回审核中';
  498. break;
  499. case '4':
  500. html = '办理中';
  501. break;
  502. case '5':
  503. html = '延时审核';
  504. break;
  505. case '6':
  506. html = '已办理';
  507. break;
  508. case '7':
  509. html = '已回访';
  510. break;
  511. case '8':
  512. html = '重办中';
  513. break;
  514. case '9':
  515. html = '已结案';
  516. break;
  517. case '10':
  518. html = '待审核';
  519. break;
  520. case '11':
  521. html = '重办待交办';
  522. break;
  523. // case '12':
  524. // html = '待审核';
  525. // break;
  526. case '13':
  527. html = '重办驳回';
  528. break;
  529. }
  530. return html;
  531. }
  532. //音频
  533. function setCode(val) {
  534. if (val) {
  535. return '<div class="imgs" style="cursor: pointer;">' +
  536. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
  537. '</div>';
  538. } else {
  539. return '';
  540. }
  541. }
  542. //编号
  543. function serialNumber(val, row, index) {
  544. return index + 1;
  545. }
  546. function GetCont(val) {
  547. if (val) {
  548. var str = '<div '
  549. if (val.length > 10) {
  550. str = str + ' title="' + val + '" ';
  551. val = val.substr(0, 10) + "...";
  552. }
  553. return str + '>' + val + '</div>';
  554. } else {
  555. return '';
  556. }
  557. }
  558. //操作
  559. function Dispose(val, row) {
  560. var Rows = row.Buttons;
  561. var html = '';
  562. for (var i = 0; i < Rows.length; i++) {
  563. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  564. if (html1) {
  565. html1 = html1.replace("data", val);
  566. html1 = html1.replace("isProtect", row.F_IsProtect);
  567. html1 = html1.replace("row", row.F_MainDeptId);
  568. }
  569. html += html1;
  570. }
  571. return html;
  572. }
  573. //查看详情
  574. function ckxq(str) {
  575. layer.open({
  576. type: 2,
  577. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  578. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  579. title: '工单详情',
  580. area: ['100%', '100%'], //宽高
  581. });
  582. }
  583. //时限
  584. function OverTime(val, row) {
  585. if (val == 1) {
  586. return '<div class="" style="cursor: pointer;">' +
  587. '<span class="Greens">' + row.GapTime + '</span>' +
  588. '</div>';
  589. } else if (val == 2) {
  590. return '<div class="" style="cursor: pointer;">' +
  591. '<span class="Yellows">' + row.GapTime + '</span>' +
  592. '</div>';
  593. } else if (val == 3) {
  594. return '<div class="" style="cursor: pointer;">' +
  595. '<span class="Reds">' + row.GapTime + '</span>' +
  596. '</div>';
  597. }
  598. }
  599. //办理时限
  600. function BanTime(val) {
  601. if (val) {
  602. var time = val.substring(0, val.indexOf(' '));
  603. return '<div class="" style="cursor: pointer;">' +
  604. '<span>' + time + '</span>' +
  605. '</div>';
  606. }
  607. }
  608. //上传文件
  609. function upload() {
  610. if (document.getElementById("upFile").files.length > 0) {
  611. var formData = new FormData();
  612. formData.append("upFile", document.getElementById("upFile").files[0]);
  613. formData.append("token", $.cookie("token"));
  614. $.ajax({
  615. url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
  616. type: "POST",
  617. data: formData,
  618. /**
  619. *必须false才会自动加上正确的Content-Type
  620. */
  621. contentType: false,
  622. /**
  623. * 必须false才会避开jQuery对 formdata 的默认处理
  624. * XMLHttpRequest会对 formdata 进行正确的处理
  625. */
  626. processData: false,
  627. success: function (result) {
  628. document.getElementById("upFile").outerHTML = document.getElementById("upFile")
  629. .outerHTML;
  630. $("#upFile").change(function () {
  631. upload();
  632. });
  633. var r = $.parseJSON(result);
  634. if (r.state.toLowerCase() == "success") {
  635. $(".fjnr").text(r.data);
  636. $("#scfj").show();
  637. }
  638. }
  639. });
  640. } else {
  641. layer.confirm('请上传文件!', {
  642. btn: ['确定']
  643. });
  644. }
  645. }
  646. //来源
  647. function LY(obj) {
  648. obj.empty();
  649. obj.append('<option selected="selected" value="">请选择</option>');
  650. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  651. "token": $.cookie("token"),
  652. id: 1
  653. }, function (data) {
  654. if (data.state.toLowerCase() == "success") {
  655. var content = data.data;
  656. $(content).each(function (i, n) {
  657. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  658. obj);
  659. })
  660. }
  661. })
  662. }
  663. //类别
  664. function LB(obj) {
  665. obj.empty();
  666. obj.append('<option selected="selected" value="">请选择</option>');
  667. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  668. "token": $.cookie("token"),
  669. id: 2
  670. }, function (data) {
  671. if (data.state.toLowerCase() == "success") {
  672. var content = data.data;
  673. $(content).each(function (i, n) {
  674. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  675. obj);
  676. })
  677. }
  678. })
  679. }
  680. // 主题
  681. function ZT(obj) {
  682. obj.empty();
  683. obj.append('<option selected="selected" value="">请选择</option>');
  684. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  685. "token": $.cookie("token"),
  686. id: 3
  687. }, function (data) {
  688. if (data.state.toLowerCase() == "success") {
  689. var content = data.data;
  690. $(content).each(function (i, n) {
  691. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  692. obj);
  693. })
  694. }
  695. })
  696. }
  697. function tree() {
  698. $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
  699. "token": $.cookie("token"),
  700. // "pid": pid
  701. }, function (result) {
  702. result = $.parseJSON(result);
  703. $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
  704. });
  705. }
  706. var setting1 = {
  707. data: {
  708. key: {
  709. name: "F_DeptName"
  710. },
  711. simpleData: {
  712. enable: true,
  713. idKey: "F_DeptId",
  714. pIdKey: "F_PartentId",
  715. rootPId: 0
  716. }
  717. },
  718. callback: {
  719. onClick: zTreeOnClick
  720. }
  721. };
  722. function zTreeOnClick(event, treeId, treeNode) {
  723. if (treeNode.level >= 1) {
  724. $('.inps').val(treeNode.F_DeptName);
  725. $("#PID").val(treeNode.F_DeptId);
  726. $("#Dpment").val(treeNode.F_DeptId);
  727. $(".Cleans").show();
  728. }
  729. };
  730. function Close() {
  731. $(".lyxz").removeClass("cx");
  732. if ($('audio').length > 0) {
  733. $('audio')[0].pause();
  734. }
  735. }
  736. </script>
  737. </body>
  738. </html>