Nenhuma Descrição

edit.html 7.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <script src="../Script/Common/huayi.load.js"></script>
  6. <script src="../Script/Common/huayi.http.js"></script>
  7. <script src="../Script/Common/huayi.config.js"></script>
  8. <link rel="stylesheet" href="../css/jquery-ui.css" />
  9. <link rel="stylesheet" href="../css/tpkerjqui.css" />
  10. <link rel="stylesheet" href="../css/timePicker.css" />
  11. <link rel="stylesheet" href="../css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css">
  12. <link rel="stylesheet" href="../css/stty.css" />
  13. <link rel="stylesheet" href="../css/init.css" />
  14. <title>修改任务</title>
  15. <style>
  16. .page-title {
  17. padding: 0px;
  18. font-size: 16px;
  19. font-weight: bold;
  20. letter-spacing: -1px;
  21. display: block;
  22. color: #1570A6;
  23. margin: 20px 0px 15px 0px;
  24. }
  25. hr {
  26. margin: 20px 0;
  27. border: 0;
  28. border-top: 1px solid #E0DFDF;
  29. border-bottom: 1px solid #FEFEFE;
  30. }
  31. .bj-title {
  32. color: #ffffff;
  33. background-color: #1ab394;
  34. padding: 8px 35px 8px 14px;
  35. text-shadow: 0 1px 0 rgba(179, 142, 142, 0.5);
  36. border: 1px solid #e5e5e5;
  37. }
  38. .bjCon table th {
  39. padding: 5px 8px 5px 0;
  40. text-align: right;
  41. width: 30%;
  42. }
  43. .bjCon table td {
  44. padding: 6px 0 5px 10px;
  45. text-align: left;
  46. color: #717171;
  47. line-height: 200%;
  48. position: relative;
  49. }
  50. .bjCon table td input {
  51. border: 1px solid #e5e5e5;
  52. width: 240px;
  53. outline: 0;
  54. margin-right: 5px;
  55. padding-left: 10px;
  56. }
  57. .bjCon table td select {
  58. width: 240px;
  59. background-color: #ffffff;
  60. background-image: none !important;
  61. filter: none !important;
  62. border: 1px solid #e5e5e5;
  63. outline: none;
  64. height: 34px !important;
  65. line-height: 30px;
  66. margin-right: 5px;
  67. padding-left: 10px;
  68. }
  69. .bjCon {
  70. padding-top: 20px;
  71. border: 1px solid #e5e5e5;
  72. border-top: 0;
  73. }
  74. .bjright table td input {
  75. padding-left: 30px;
  76. }
  77. .tub {
  78. position: absolute;
  79. left: 18px;
  80. top: 13px;
  81. font-size: 18px;
  82. color: #ccc;
  83. }
  84. .ui-datepicker.ui-widget-content {
  85. background: none !important;
  86. background-color: #eee !important;
  87. }
  88. .ui-widget-header .ui-icon {
  89. background-image: url(../img/ui-icons_444444_256x240.png) !important;
  90. }
  91. .box {
  92. width: 55%;
  93. margin: 0 auto;
  94. margin-top: 5%;
  95. }
  96. .box .btop {
  97. height: 35px;
  98. background: #1ab394;
  99. color: #fff;
  100. line-height: 35px;
  101. padding: 0 15px;
  102. /* margin-bottom: 15px; */
  103. }
  104. .btl {
  105. float: left;
  106. margin: 0;
  107. }
  108. .btr {
  109. float: right;
  110. margin: 0;
  111. cursor: pointer;
  112. }
  113. .boxCon {
  114. width: 100%;
  115. min-height: 400px;
  116. background: #fff;
  117. text-align: center;
  118. padding: 10px 15px;
  119. height: auto;
  120. overflow-y: auto;
  121. }
  122. .model {
  123. position: fixed;
  124. top: 0;
  125. right: 0;
  126. bottom: 0;
  127. left: 0;
  128. height: 100%;
  129. width: 100%;
  130. background: rgba(0, 0, 0, 0.48);
  131. z-index: 100;
  132. display: none;
  133. }
  134. .tab-content {
  135. text-align: left;
  136. height: 200px;
  137. }
  138. .checkbox label {
  139. padding-right: 15px;
  140. }
  141. .drfs {
  142. display: none;
  143. }
  144. </style>
  145. </head>
  146. <body>
  147. <form class="container-fluid" enctype="multipart/form-data">
  148. <div class="page-title">
  149. 修改
  150. </div>
  151. <hr />
  152. <div class="row-fluid clearfix">
  153. <div class="bjleft col-md-6">
  154. <div class="bj-title">
  155. <i class="fa fa-user"></i> 基本信息
  156. </div>
  157. <div class="bjCon">
  158. <table style="width: 100%;">
  159. <tr>
  160. <th>任务名称:</th>
  161. <td><input type="text" class="taskName" name="name" /><span>(必填)</span></td>
  162. </tr>
  163. <tr>
  164. <th>被叫号码:</th>
  165. <td>
  166. <span style="background-color:#fcb322;font-size: 12px;padding: 0 3px;color: #fff;">---不可更改---</span>
  167. </td>
  168. </tr>
  169. </table>
  170. <br />
  171. <br />
  172. </div>
  173. </div>
  174. </div>
  175. <p style="text-align: center; padding: 20px 0;">
  176. <button class="btns sureCun" type="button">保存</button>
  177. <button class="btns return" type="button">取消</button>
  178. </p>
  179. </form>
  180. <script src="../js/jquery-ui.js"></script>
  181. <script src="../js/timePicker.js"></script>
  182. <!--<script src="../js/ajaxfileupload.js"></script>-->
  183. <script src="../js/jquery.form.min.js"></script>
  184. <script>
  185. var token = $.cookie("token");
  186. var ImportType;//号码导入方式
  187. var haoma;
  188. var id = helper.request.queryString("id");
  189. $.ajax({
  190. type: "get",
  191. url: huayi.config.callcenter_url + "CallPlan/GetModel",
  192. async: true,
  193. dataType: 'json',
  194. data: {
  195. token: token,
  196. id: id
  197. },
  198. success: function (data) {
  199. var con = data.data;
  200. console.log(con);
  201. if (data.state.toLowerCase() == "success") {
  202. $('.taskName').val(con.name);//任务名称
  203. }
  204. }
  205. });
  206. $('.set_called').click(function () {
  207. $('.addCall').show()
  208. })
  209. $('.addcbtr').click(function () {
  210. $('.addCall').hide();
  211. })
  212. $('.sureCun').click(function () {
  213. if ($('.taskName').val() == '') {
  214. layer.confirm('请输入任务名称!', {
  215. btn: ['确定']
  216. });
  217. return;
  218. } else {
  219. $.ajax({
  220. type: "post",
  221. url: huayi.config.callcenter_url + "CallPlan/CreateOrUpdate",
  222. async: true,
  223. dataType: 'json',
  224. data: {
  225. token: token,
  226. id: id,
  227. name: $('.taskName').val(),//外呼任务名称
  228. type: 1
  229. },
  230. success: function (data) {
  231. if (data.state.toLowerCase() == "success") {
  232. top.$("iframe:visible")[0].src = "./clickcall/callplanlist.html";
  233. }
  234. }
  235. });
  236. }
  237. })
  238. $('.return').click(function () {
  239. top.$("iframe:visible")[0].src = "clickcall/callplanlist.html";
  240. })
  241. </script>
  242. </body>
  243. </html>