Nessuna descrizione

integratedQuery.html 33KB

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