12345市长热线标准版-前端

ZXYTJs.html 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  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="../js/zTree/zTreeStyle.css" />
  9. <link rel="stylesheet" href="../css/init.css" />
  10. <style>
  11. #sqzx th {
  12. padding: 5px 8px 5px 0;
  13. text-align: right;
  14. }
  15. .select {
  16. width: 150px;
  17. background-color: #FFF;
  18. background-image: none;
  19. border: 1px solid #ccc;
  20. border-radius: 1px;
  21. color: inherit;
  22. padding: 6px 12px;
  23. }
  24. #sex {
  25. background-color: #FFF;
  26. background-image: none;
  27. border: 1px solid #ccc;
  28. border-radius: 1px;
  29. color: inherit;
  30. padding: 6px 12px;
  31. }
  32. input {
  33. background-color: #FFF;
  34. background-image: none;
  35. border: 1px solid #ccc;
  36. border-radius: 1px;
  37. color: inherit;
  38. padding: 6px 12px;
  39. }
  40. #sqzx td {
  41. padding: 6px 0 5px 10px;
  42. }
  43. .lxr ul li {
  44. float: left;
  45. list-style: none;
  46. width: 30%;
  47. margin-bottom: 5px;
  48. padding-top: 10px;
  49. }
  50. .clearFix:after {
  51. content: "";
  52. display: block;
  53. clear: both;
  54. }
  55. .form-group {
  56. padding-left: 40px;
  57. margin-bottom: 0;
  58. }
  59. textarea {
  60. height: 70px;
  61. border: 1px solid #ccc;
  62. border-radius: 1px;
  63. width: 50%;
  64. resize: none;
  65. }
  66. .textarea_box {
  67. margin-top: 10px;
  68. }
  69. .box_content {
  70. border-bottom: 1px solid #ccc;
  71. }
  72. .tj_content {
  73. border: 1px solid #e6e6e6;
  74. border-radius: 5px;
  75. }
  76. .t-shade {
  77. position: fixed;
  78. top: 0;
  79. left: 0;
  80. width: 100%;
  81. height: 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: 60%;
  89. margin: 10% auto;
  90. background-color: #fff;
  91. box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
  92. border-radius: 5px;
  93. }
  94. .shade_title {
  95. padding: 0 80px 0 20px;
  96. height: 42px;
  97. line-height: 42px;
  98. border-bottom: 1px solid #eee;
  99. font-size: 16px;
  100. color: #FFFFFF;
  101. overflow: hidden;
  102. background-color: #00a1cb;
  103. border-radius: 2px 2px 0 0;
  104. position: relative;
  105. border-top-left-radius: 5px;
  106. border-top-right-radius: 5px;
  107. }
  108. .cx {
  109. display: block;
  110. }
  111. .setwin {
  112. position: absolute;
  113. right: 15px;
  114. top: 5px;
  115. font-size: 0;
  116. line-height: initial;
  117. }
  118. .setwin a {
  119. position: relative;
  120. width: 16px;
  121. height: 16px;
  122. font-size: 20px;
  123. color: #fff;
  124. }
  125. .xg i {
  126. font-size: 16px;
  127. }
  128. .hidens {
  129. display: none;
  130. }
  131. </style>
  132. </head>
  133. <body class="gray-bg">
  134. <div class="wrapper wrapper-content animated fadeInRight">
  135. <div class="daoHang clearfix">
  136. <div class="dhLeft">
  137. <sapn>
  138. <i class="syIcon"></i>位置:
  139. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  140. <a href="javaScript:;">工作列表</a>&gt;
  141. <a class="nowPosition">已提交工单</a>
  142. </sapn>
  143. </div>
  144. <div class="dhRight">
  145. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  146. </div>
  147. </div>
  148. <div style="padding: 10px;" class="tj_content clearFix">
  149. <div style="padding: 10px;" class="tj_content clearFix">
  150. <div>
  151. <span>【搜索信息】</span>
  152. <div class="box_content">
  153. <table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
  154. <tr>
  155. <th>关键字:</th>
  156. <td>
  157. <input type="text" placeholder="输入关键字" id="key" />
  158. </td>
  159. <th>时间:</th>
  160. <td colspan="3">
  161. <input type="text" id="starttime" class="laydate-icon" style="height: 32px;" />&nbsp;——&nbsp;<input type="text" id="endtime" class="laydate-icon" style="height: 32px;" />
  162. </td>
  163. <th></th>
  164. <td>
  165. <botton class="btns Seach">搜索</botton>
  166. <botton class="btns ">导出</botton>
  167. </td>
  168. </tr>
  169. </table>
  170. </div>
  171. <div class="" style="line-height: 50px;">
  172. </div>
  173. </div>
  174. <div>
  175. <div style="width: 100%;padding: 10px;">
  176. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  177. <thead>
  178. <tr>
  179. <th data-checkbox="true"></th>
  180. <th data-field="F_WorkOrderId" data-align="center">工单单号</th>
  181. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
  182. <th data-field="UserName" data-align="center">受理人</th>
  183. <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态</th>
  184. <th data-field="e" data-formatter="setCode" data-align="center">录音</th>
  185. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
  186. </tr>
  187. </thead>
  188. <tbody class="list"></tbody>
  189. </table>
  190. </div>
  191. </div>
  192. </div>
  193. </div>
  194. <!--下载框-->
  195. <div class="t-shade lyxz">
  196. <div class="shade_k">
  197. <div class="shade_title">
  198. <span>录音播放与下载<srong class="cknum"></srong></span>
  199. <span class="setwin gbly"><a>x</a></span>
  200. </div>
  201. <div class="shade_content">
  202. <div class="Ly_box audiojs">
  203. </div>
  204. </div>
  205. </div>
  206. </div>
  207. </div>
  208. <script src="../css/laydate/laydate.js"></script>
  209. <script src="../My97DatePicker/WdatePicker.js"></script>
  210. <script>
  211. // return '<div class="imgs" >' +
  212. // '<a class="xg" title="查看" onclick="ckxq(' + val + ')"> <i class="fa fa-search"></i></a>' +
  213. // '<a class="xg" title="编辑" onclick="bj(' + val + ')"> <i class="fa fa-pencil-square-o"></i></a>' +
  214. // '<a class="xg" title="回访" onclick="back(' + val + ')"> <i class="fa fa-mail-reply"></i></a>' +
  215. // '<a class="xg" "title="强回"onclick="recycles(' + val + ')"> <i class="fa fa-exchange"></i></a>' +
  216. // '<a class="xg" title="结案" onclick="Lawsuit(' + val + ')"> <i class="fa fa-pie-chart"></i></a>' +
  217. // '<a class="xg" "title="交办"onclick="jb(' + val + ')"> <i class="fa fa-check-square-o"></i></a>' +
  218. // '<a class="xg" "title="回收"onclick="recycle(' + val + ')"> <i class="fa fa-retweet"></i></a>' +
  219. // '<a class="xg "title="督查" onclick="Supervision(' + val + ')"> <i class="fa fa-eye"></i></a>' +
  220. // '<a class="xg" "title="强制" onclick="StrongLawsuit(' + val + ')"> <i class="fa fa-check-circle"></i></a>' +
  221. // '<a class="xg" title="删除"onclick="move(' + val + ')"> <i class="fa fa-remove"></i></a>' +
  222. // '</div>';
  223. var arr = ["<a class='xg' onclick='ckxq(data)' title='查看'>查看</a>",
  224. "<a class='xg' onclick='bj(data)' title='编辑'>编辑</a>",
  225. "<a class='xg' onclick='move(data)' title='删除'>删除</a>",
  226. "<a class='xg' onclick='tj(data)' title='提交'>提交</a>",
  227. "<a class='xg' onclick='jb(data)' title='交办'>交办</a>", //交办
  228. "<a class='xg' onclick='lader(data)' title='领导'>领导批示</a>", //领导批示
  229. "<a class='xg' onclick='city(data)' title='市长'>市长批示</a>", //市长指示
  230. "<a class='xg' onclick='Supervision(data)' title='督办'>督办</a>", //督办
  231. "<a class='xg' onclick='Supervision_(data)' title='督察'>监察</a>", //督察
  232. "<a class='xg' onclick='sh(data)' title='收回'>收回</a>", //收回
  233. "<a class='xg' onclick='cs(data)' title='查收'>查收</a>", //查收
  234. "<a class='xg' onclick='th(data)' title='退回申请'>退回申请</a>", //退回申请
  235. "<a class='xg' onclick='bl(data)' title='办理'>办理</a>", //办理
  236. "<a class='xg' onclick='ys(data)' title='申请延时'>申请延时</a>", //延时申请
  237. "<a class='xg' onclick='shth(data)' title='退回审核'>退回审核</a>", //退回审核
  238. "<a class='xg' onclick='hf(data)' title='回访'>回访</a>", //回访
  239. "<a class='xg' onclick='shys(data)' title='延时审核'>延时审核</a>", //延时审核
  240. "<a class='xg' onclick='cb(data)' title='重办'>重办</a>", //重办
  241. "<a class='xg' onclick='Lawsuit(data)' title='结案'>结案</a>", //结案
  242. ];
  243. $(document).ready(function() {
  244. //返回首页
  245. $('#ReIndex').click(function() {
  246. top.home_index();
  247. })
  248. load();
  249. laydate.skin('blue');
  250. laydate({
  251. elem: '#starttime',
  252. event: 'focus'
  253. });
  254. laydate({
  255. elem: '#endtime',
  256. event: 'focus'
  257. });
  258. ///搜素
  259. $(".Seach").click(function() {
  260. load();
  261. })
  262. });
  263. //关闭录音弹出
  264. $(".gbly").click(function() {
  265. $(".lyxz").removeClass("cx");
  266. $('audio')[0].pause();
  267. });
  268. $("#orderlist").on("click-row.bs.table", function(e, row, ele) {
  269. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  270. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  271. });
  272. //获取查询信息
  273. function load() {
  274. //先销毁表格
  275. $('#orderlist').bootstrapTable('destroy');
  276. //初始化表格,动态从服务器加载数据
  277. $("#orderlist").bootstrapTable({
  278. method: "get", //使用get请求到服务器获取数据
  279. url: huayi.config.callcenter_url + "WorkOrder/GetZXDealList", //获取数据的Servlet地址
  280. contentType: "application/x-www-form-urlencoded",
  281. striped: true, //表格显示条纹
  282. pagination: true, //启动分页
  283. pageSize: 10, //每页显示的记录数
  284. pageNumber: 1, //当前第几页
  285. pageList: [10, 20, 50, 100], //记录数可选列表
  286. search: false, //是否启用查询
  287. showColumns: false, //显示下拉框勾选要显示的列
  288. showRefresh: false, //显示刷新按钮
  289. sidePagination: "server", //表示服务端请求
  290. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  291. //设置为limit可以获取limit, offset, search, sort, order
  292. queryParamsType: "undefined",
  293. queryParams: function queryParams(params) { //设置查询参数
  294. var param = {
  295. page: params.pageNumber,
  296. pagesize: params.pageSize,
  297. state: $("#state").val(), //=工单状态
  298. type: $("#type").val(), //=工单类型
  299. bigtype: $("#bigtype").val(), //=大类别
  300. smalltype: $("#smalltype").val(), //=小类别
  301. key: $("#key").val(), //=关键字
  302. tel: $("#tel").val(), //=客户电话
  303. name: $("#name").val(), //=客户名称
  304. code: $("#code").val(), //=坐席工号
  305. // keyid:2,//=关键词id
  306. tab: -1,//已提交
  307. source: $("#source").val(), //=来源&
  308. starttime: $("#starttime").val(), //=开始时间
  309. endtime: $("#endtime").val(), //=结束时间
  310. token: $.cookie("token")
  311. };
  312. return param;
  313. },
  314. onLoadSuccess: function(data) { //加载成功时执行
  315. // layer.msg("加载成功");
  316. //console.log(data);
  317. },
  318. onLoadError: function() { //加载失败时执行
  319. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  320. }
  321. });
  322. }
  323. //状态
  324. function States(val) {
  325. var html = '';
  326. switch(val + '') {
  327. case '0':
  328. html = '新工单';
  329. break;
  330. case '1':
  331. html = '待交办';
  332. break;
  333. case '2':
  334. html = '待查收';
  335. break;
  336. case '3':
  337. html = '退回审核中';
  338. break;
  339. case '4':
  340. html = '办理中';
  341. break;
  342. case '5':
  343. html = '延时审核';
  344. break;
  345. case '6':
  346. html = '已办理';
  347. break;
  348. case '7':
  349. html = '已回访';
  350. break;
  351. case '8':
  352. html = '重办中';
  353. break;
  354. case '9':
  355. html = '已结案';
  356. break;
  357. }
  358. return html;
  359. }
  360. //音频
  361. function setCode(val) {
  362. if(val) {
  363. return '<div class="imgs" style="cursor: pointer;">' +
  364. '<img src="../img/vice.png" alt="" onclick= ck(this) item="' + val + '" />' +
  365. '</div>';
  366. } else {
  367. return '';
  368. }
  369. }
  370. //录音
  371. function ck(val) {
  372. var path = $(val).attr("item");
  373. $(".lyxz").addClass("cx");
  374. $(".Ly_box").empty();
  375. $(".down").attr("href", path);
  376. $('<audio style="width: 100%;"class=" " src="' + path + '" loop="loop" controls="controls" ></audio>').appendTo(".Ly_box");
  377. $('.shade_k').css({
  378. 'top' : $(document).scrollTop() + ($(window).height() - $('.shade_k').height() - 289)/2,
  379. 'left' : ($(window).width()-$('.shade_k').width())/2,
  380. 'position' : 'absolute'
  381. });
  382. }
  383. function GetCont(val) {
  384. if(val) {
  385. var str = '<div '
  386. if(val.length > 10) {
  387. str = str + ' title="' + val + '" ';
  388. val = val.substr(0, 10) + "...";
  389. }
  390. return str + '>' + val + '</div>';
  391. } else {
  392. return '';
  393. }
  394. }
  395. //操作
  396. function Dispose(val, row) {
  397. var Rows = row.Buttons;
  398. var html = '';
  399. for(var i = 0; i < Rows.length; i++) {
  400. var html1 = arr[Rows[i].key * 1 - 1];
  401. if(html1) {
  402. html1 = html1.replace("data", val);
  403. }
  404. html += html1;
  405. }
  406. return html;
  407. }
  408. //查看详情
  409. function ckxq(str) {
  410. layer.open({
  411. type: 2,
  412. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  413. title: '工单详情',
  414. area: ['85%', '80%'], //宽高
  415. });
  416. }
  417. //编辑
  418. function bj(str) {
  419. layer.open({
  420. type: 2,
  421. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  422. title: '编辑工单',
  423. area: ['96%', '80%'], //宽高
  424. });
  425. }
  426. //删除
  427. function move(str) {
  428. layer.confirm('确定删除工单?', {
  429. btn: ['是', '否'] //按钮
  430. }, function() {
  431. $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
  432. ids: str,
  433. token: $.cookie("token")
  434. }, function(result) {
  435. result = JSON.parse(result);
  436. if(result.state.toLowerCase() == "success") {
  437. layer.msg("删除成功");
  438. load();
  439. }
  440. })
  441. });
  442. }
  443. //提交
  444. function tj(str) {
  445. layer.confirm('确定要提交工单么?', {
  446. btn: ['确定', '取消'] //按钮
  447. }, function() {
  448. //请求后台数据
  449. /*发送请求*/
  450. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  451. ids: str,
  452. token: $.cookie("token")
  453. }, function(result) {
  454. result = JSON.parse(result);
  455. if(result.state.toLowerCase() == "success") {
  456. layer.msg("提交成功");
  457. load();
  458. }
  459. })
  460. });
  461. }
  462. //交办
  463. function jb(str) {
  464. layer.open({
  465. type: 2,
  466. content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
  467. title: '工单交办',
  468. area: ['87%', '80%'], //宽高
  469. });
  470. }
  471. //领导批示
  472. function lader(str) {
  473. layer.open({
  474. type: 2,
  475. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  476. title: '领导批示',
  477. area: ['45%', '40%'], //宽高
  478. });
  479. }
  480. //市长批示
  481. function city(str) {
  482. layer.open({
  483. type: 2,
  484. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  485. title: '领导批示',
  486. area: ['45%', '40%'], //宽高
  487. });
  488. }
  489. //办理
  490. function bl(str) {
  491. layer.open({
  492. type: 2,
  493. content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
  494. title: '办理工单',
  495. area: ['45%', '40%'], //宽高
  496. });
  497. }
  498. //督办
  499. function Supervision(str) {
  500. layer.open({
  501. type: 2,
  502. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
  503. title: '督办',
  504. area: ['35%', '30%'], //宽高
  505. });
  506. }
  507. //督查
  508. function Supervision_(str) {
  509. layer.open({
  510. type: 2,
  511. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  512. title: '监察',
  513. area: ['35%', '30%'], //宽高
  514. });
  515. }
  516. //强制结案
  517. function StrongLawsuit(str) {
  518. layer.open({
  519. type: 2,
  520. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  521. title: '诉求单强制结案',
  522. area: ['35%', '30%'], //宽高
  523. });
  524. }
  525. //查收
  526. function cs(str) {
  527. layer.confirm('确定要查收?', {
  528. btn: ['是', '否'] //按钮
  529. }, function() {
  530. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  531. workorderid: str,
  532. token: $.cookie("token")
  533. }, function(result) {
  534. result = JSON.parse(result);
  535. if(result.state.toLowerCase() == "success") {
  536. layer.msg("查收成功");
  537. load();
  538. }
  539. })
  540. });
  541. }
  542. //收回
  543. function sh(str) {
  544. layer.confirm('确定要回收?', {
  545. btn: ['是', '否'] //按钮
  546. }, function() {
  547. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  548. workorderid: str,
  549. token: $.cookie("token")
  550. }, function(result) {
  551. result = JSON.parse(result);
  552. if(result.state.toLowerCase() == "success") {
  553. layer.msg("回收");
  554. load();
  555. }
  556. })
  557. });
  558. }
  559. //强制回收
  560. function recycles() {
  561. layer.confirm('确定要强制退回吗?', {
  562. btn: ['是', '否'] //按钮
  563. });
  564. }
  565. //退回申请
  566. function th(str) {
  567. layer.open({
  568. type: 2,
  569. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  570. title: '申请退回工单',
  571. area: ['35%', '30%'], //宽高
  572. });
  573. }
  574. //审核退回申请
  575. function shth(str) {
  576. layer.open({
  577. type: 2,
  578. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  579. title: '审核退回申请',
  580. area: ['35%', '30%'], //宽高
  581. });
  582. }
  583. //办理
  584. // function th(str) {
  585. // layer.open({
  586. // type: 2,
  587. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  588. // title: '办理工单',
  589. // area: ['35%', '30%'], //宽高
  590. // });
  591. // }
  592. //申请延时
  593. function ys(str) {
  594. layer.open({
  595. type: 2,
  596. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  597. title: '申请延时',
  598. area: ['45%', '40%'], //宽高
  599. });
  600. }
  601. //审核申请延时
  602. function shys(str) {
  603. layer.open({
  604. type: 2,
  605. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  606. title: '审核延时申请',
  607. area: ['45%', '40%'], //宽高
  608. });
  609. }
  610. //诉求回访
  611. function hf(str) {
  612. layer.open({
  613. type: 2,
  614. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  615. title: '工单回访',
  616. area: ['45%', '40%'], //宽高
  617. });
  618. }
  619. //重办工单
  620. function cb(str) {
  621. layer.open({
  622. type: 2,
  623. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  624. title: '重办工单',
  625. area: ['45%', '40%'], //宽高
  626. });
  627. }
  628. //结案
  629. function Lawsuit(str) {
  630. layer.open({
  631. type: 2,
  632. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  633. title: '诉求单结案',
  634. area: ['45%', '40%'], //宽高
  635. });
  636. }
  637. $('.Appeal').click(function() {
  638. layer.open({
  639. type: 2,
  640. content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
  641. title: '新增诉求',
  642. area: ['85%', '80%'], //宽高
  643. });
  644. })
  645. //上传文件
  646. function upload() {
  647. if(document.getElementById("upFile").files.length > 0) {
  648. var formData = new FormData();
  649. formData.append("upFile", document.getElementById("upFile").files[0]);
  650. formData.append("token", $.cookie("token"));
  651. $.ajax({
  652. url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
  653. type: "POST",
  654. data: formData,
  655. /**
  656. *必须false才会自动加上正确的Content-Type
  657. */
  658. contentType: false,
  659. /**
  660. * 必须false才会避开jQuery对 formdata 的默认处理
  661. * XMLHttpRequest会对 formdata 进行正确的处理
  662. */
  663. processData: false,
  664. success: function(result) {
  665. document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
  666. $("#upFile").change(function() {
  667. upload();
  668. });
  669. var r = $.parseJSON(result);
  670. if(r.state.toLowerCase() == "success") {
  671. $(".fjnr").text(r.data);
  672. $("#scfj").show();
  673. }
  674. }
  675. });
  676. } else {
  677. layer.confirm('请上传文件!', {
  678. btn: ['确定']
  679. });
  680. }
  681. }
  682. </script>
  683. </body>
  684. </html>