| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.http.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <link rel="stylesheet" href="../css/jquery-ui.css" />
- <link rel="stylesheet" href="../css/tpkerjqui.css" />
- <link rel="stylesheet" href="../css/timePicker.css" />
- <link rel="stylesheet" href="../css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css">
- <link rel="stylesheet" href="../css/stty.css" />
- <link rel="stylesheet" href="../css/init.css" />
- <title>修改任务</title>
- <style>
- .page-title {
- padding: 0px;
- font-size: 16px;
- font-weight: bold;
- letter-spacing: -1px;
- display: block;
- color: #1570A6;
- margin: 20px 0px 15px 0px;
- }
- hr {
- margin: 20px 0;
- border: 0;
- border-top: 1px solid #E0DFDF;
- border-bottom: 1px solid #FEFEFE;
- }
- .bj-title {
- color: #ffffff;
- background-color: #1ab394;
- padding: 8px 35px 8px 14px;
- text-shadow: 0 1px 0 rgba(179, 142, 142, 0.5);
- border: 1px solid #e5e5e5;
- }
- .bjCon table th {
- padding: 5px 8px 5px 0;
- text-align: right;
- width: 30%;
- }
- .bjCon table td {
- padding: 6px 0 5px 10px;
- text-align: left;
- color: #717171;
- line-height: 200%;
- position: relative;
- }
- .bjCon table td input {
- border: 1px solid #e5e5e5;
- width: 240px;
- outline: 0;
- margin-right: 5px;
- padding-left: 10px;
- }
- .bjCon table td select {
- width: 240px;
- background-color: #ffffff;
- background-image: none !important;
- filter: none !important;
- border: 1px solid #e5e5e5;
- outline: none;
- height: 34px !important;
- line-height: 30px;
- margin-right: 5px;
- padding-left: 10px;
- }
- .bjCon {
- padding-top: 20px;
- border: 1px solid #e5e5e5;
- border-top: 0;
- }
- .bjright table td input {
- padding-left: 30px;
- }
- .tub {
- position: absolute;
- left: 18px;
- top: 13px;
- font-size: 18px;
- color: #ccc;
- }
- .ui-datepicker.ui-widget-content {
- background: none !important;
- background-color: #eee !important;
- }
- .ui-widget-header .ui-icon {
- background-image: url(../img/ui-icons_444444_256x240.png) !important;
- }
- .box {
- width: 55%;
- margin: 0 auto;
- margin-top: 5%;
- }
- .box .btop {
- height: 35px;
- background: #1ab394;
- color: #fff;
- line-height: 35px;
- padding: 0 15px;
- /* margin-bottom: 15px; */
- }
- .btl {
- float: left;
- margin: 0;
- }
- .btr {
- float: right;
- margin: 0;
- cursor: pointer;
- }
- .boxCon {
- width: 100%;
- min-height: 400px;
- background: #fff;
- text-align: center;
- padding: 10px 15px;
- height: auto;
- overflow-y: auto;
- }
- .model {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- height: 100%;
- width: 100%;
- background: rgba(0, 0, 0, 0.48);
- z-index: 100;
- display: none;
- }
- .tab-content {
- text-align: left;
- height: 200px;
- }
- .checkbox label {
- padding-right: 15px;
- }
- .drfs {
- display: none;
- }
- </style>
- </head>
- <body>
- <form class="container-fluid" enctype="multipart/form-data">
- <div class="page-title">
- 修改
- </div>
- <hr />
- <div class="row-fluid clearfix">
- <div class="bjleft col-md-6">
- <div class="bj-title">
- <i class="fa fa-user"></i> 基本信息
- </div>
- <div class="bjCon">
- <table style="width: 100%;">
- <tr>
- <th>任务名称:</th>
- <td><input type="text" class="taskName" name="name" /><span>(必填)</span></td>
- </tr>
- <tr>
- <th>被叫号码:</th>
- <td>
- <span style="background-color:#fcb322;font-size: 12px;padding: 0 3px;color: #fff;">---不可更改---</span>
- </td>
- </tr>
- </table>
- <br />
- <br />
- </div>
- </div>
- </div>
- <p style="text-align: center; padding: 20px 0;">
- <button class="btns sureCun" type="button">保存</button>
- <button class="btns return" type="button">取消</button>
- </p>
- </form>
- <script src="../js/jquery-ui.js"></script>
- <script src="../js/timePicker.js"></script>
- <!--<script src="../js/ajaxfileupload.js"></script>-->
- <script src="../js/jquery.form.min.js"></script>
- <script>
- var token = $.cookie("token");
- var ImportType;//号码导入方式
- var haoma;
- var id = helper.request.queryString("id");
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "CallPlan/GetModel",
- async: true,
- dataType: 'json',
- data: {
- token: token,
- id: id
- },
- success: function (data) {
- var con = data.data;
- console.log(con);
- if (data.state.toLowerCase() == "success") {
- $('.taskName').val(con.name);//任务名称
- }
- }
- });
- $('.set_called').click(function () {
- $('.addCall').show()
- })
- $('.addcbtr').click(function () {
- $('.addCall').hide();
- })
- $('.sureCun').click(function () {
- if ($('.taskName').val() == '') {
- layer.confirm('请输入任务名称!', {
- btn: ['确定']
- });
- return;
- } else {
- $.ajax({
- type: "post",
- url: huayi.config.callcenter_url + "CallPlan/CreateOrUpdate",
- async: true,
- dataType: 'json',
- data: {
- token: token,
- id: id,
- name: $('.taskName').val(),//外呼任务名称
- type: 1
- },
- success: function (data) {
- if (data.state.toLowerCase() == "success") {
- top.$("iframe:visible")[0].src = "./clickcall/callplanlist.html";
- }
- }
- });
- }
- })
- $('.return').click(function () {
- top.$("iframe:visible")[0].src = "clickcall/callplanlist.html";
- })
- </script>
- </body>
- </html>
|