| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>专题编辑</title>
- <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" />
- <script src="../../js/laydate/laydate.js"></script>
- <style>
- th {
- padding: 5px 8px 5px 0;
- text-align: right;
- }
-
- input {
- background-color: #FFF;
- background-image: none;
- border: 1px solid #ccc;
- border-radius: 1px;
- color: inherit;
- padding: 6px 12px;
- width: 200px;
- }
-
- td {
- padding: 6px 0 5px 10px;
- }
-
- .addts {
- background: #1ab394;
- color: #fff;
- padding: 6px 10px;
- outline: none;
- font-size: 12px;
- margin-left: 15px;
- border: 0;
- border-radius: 3px;
- box-sizing: border-box;
- }
-
- .time-box {
- display: inline-block;
- position: relative;
- }
-
- .tub {
- position: absolute;
- right: 8px;
- top: 10px;
- font-size: 18px;
- color: #00a0ca;
- }
-
- #layui-laydate3 .layui-laydate-header {
- height: 31px;
- padding: 5px;
- }
-
- .laydate-theme-molv .layui-laydate-header i,
- .laydate-theme-molv .layui-laydate-header span {
- top: 2px;
- }
-
- .layui-laydate-header {
- padding: 0;
- }
-
- .laydate-theme-molv .layui-laydate-content {
- height: 195px;
- overflow: hidden;
- }
-
- .laydate-month-list>li {
- margin: 10px 0;
- }
-
- .laydate-footer-btns span:hover {
- color: #00a1cb;
- }
-
- .select {
- width: 200px;
- background-color: #FFF;
- background-image: none;
- border: 1px solid #ccc;
- border-radius: 1px;
- height: 36px;
- }
- </style>
- </head>
- <body>
- <div style="padding: 10px;">
- <div style="padding: 10px;" class="clearFix">
- <div>
- <div class="box_content">
- <table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <th>单位名称:</th>
- <td>
- <input type="text" disabled="disabled" id="F_DeptName" style="margin-top: 5px;" />
- </td>
- </tr>
- <tr>
- <th>排序:</th>
- <td>
- <input type="number" id="sort">
- </td>
- </tr>
- <tr>
- <th></th>
- <td>
- <div class="bton" style="text-align: left;">
- <input class="addts" type="button" value="保存" style="margin-left: 0px;" />
- </div>
- </td>
- </tr>
- </table>
- </div>
- </div>
-
- </div>
- </div>
- <script>
- var id = helper.request.queryString("id");
- var F_DeptName = decodeURIComponent(helper.request.queryString("F_DeptName"));
- $(document).ready(function() {
- if(id) {
- $("#F_DeptName").val(F_DeptName)
- // getDetail()
- }
- });
- $(".addts").click(function() {
- editThemSort()
- })
- function editThemSort() {
- if($("#sort").val()=='') {
- layer.confirm('请输入排序!', {
- btn: ['确定']
- });
- return;
- }
- $.ajax({
- type: "post",
- url: huayi.config.callcenter_url + "Theme/EditModel",
- async: true,
- dataType: 'json',
- data: {
- id:id,
- sort: $("#sort").val(),
- "token": $.cookie("token")
- },
- success: function(data) {
- if(data.state == "success") {
- layer.msg("操作成功");
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- }
- }
- });
-
- }
- function getDetail() {
- $.getJSON(huayi.config.callcenter_url + 'Theme/GetModel', {
- id: id,
- "token": $.cookie("token")
- }, function(result) {
- if(result.state.toLowerCase() == "success") {
- var content = result.data;
- info = content;
- $("#name").val(content.F_Name);
- // $("#types").val(content.F_TypesOf);
- $("#cycle").val(content.F_Cycle);
- $("#time").val(content.F_StatisticsBeginTime + ' - ' + content.F_StatisticsEndTime);
- if(content.F_IsDisplay) {
- $("#isdisplay").prop("checked", true)
- } else {
- $("#isdisplay").prop("checked", false)
- }
- }
- })
- }
- </script>
- </body>
- </html>
|