説明なし

inquireNews.html 28KB

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