| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
- <link rel="stylesheet" href="../css/init.css" />
- <link href="./css/buMenManger.css" rel="stylesheet" />
- <title>系统管理-->坐席授权设置</title>
- <style>
- .btn{padding:3px 6px!important;}
- .inps{padding:4px 6px!important; border:#ccc 1px solid; height:26px; border-radius:3px}
- </style>
- </head>
- <body>
- <div class="container-fluid">
- <div class="daoHang clearfix">
- <div class="dhLeft">
- <sapn><i class="syIcon"></i>位置:<a id="ReIndex" href="javaScript:;">首页</a>><a href="javaScript:;">系统管理</a>><a href="javaScript:;">权限管理</a>><a href="" style="color: #000;">坐席授权</a></sapn>
- </div>
- </div>
- <div class="toolBar">
- 坐席授权设置
- </div>
- <div>
- <input type="text" id="txtmaxseat" class="inps"/>
- <input type="hidden" id="hidSecurityKey" class="inps"/>
- <button class="btn updatechange">保存</button> <span id="hidtxt" style="color:#f00;"></span>
- </div>
- <div class="tree">
- <ul id="treeDemo" class="ztree">
- <!--类名为ztree是必须的-->
- </ul>
- </div>
- </div>
- <script>
- var token = $.cookie("token");
- $(function () {
- getinfo();
- //按钮
- $('.updatechange').click(function () {
- updateInfo();
- })
- })
- function getinfo() {
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "SysConfig/GetSeatPermissionInfo",
- dataType: 'json',
- async: true,
- data: { token: token },
- success: function (res) {
- var data = res.data;
- if (data != "{}") {
- $("#txtmaxseat").val(data.F_MaxSeat);
- $("#hidSecurityKey").val(data.F_SecurityKey);
- $("#hidtxt").text("");
- }
- }
- });
- };
- //修改的保存按钮功能
- function updateInfo() {
- var maxseat = $("#txtmaxseat").val();
- var SecurityKey = $("#hidSecurityKey").val();
- if (isNaN(maxseat)) {
- layer.msg("请填写正确的坐席数!");
- }
- $.ajax({
- type: "post",
- url: huayi.config.callcenter_url + "SysConfig/SaveSeatPermission",
- async: true,
- dataType: 'json',
- data: {
- F_MaxSeat: maxseat == "" ? 0 : maxseat,
- F_SecurityKey: SecurityKey,
- token: token
- },
- success: function (data) {
- if (data.state == "success") {
- getinfo();
- $("#hidtxt").text("");
- layer.msg("修改成功!");
- } else {
- $("#hidtxt").text("请填写坐席数");
- }
- }
- });
- };
- </script>
- </body>
- </html>
- <script src="../js/jquery.min.js?v=2.1.4"></script>
- <script src="../js/bootstrap.min.js"></script>
- <script src="../js/zTree/jquery.ztree.core.js"></script>
- <script src="../js/jquery.cookie.js"></script>
|