cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>健康检查指标计划</title>
[#include "/business/pages/include/static.html" /]
</head>
<body class="fullscreen">
[#include "/business/pages/include/header.html" /]
[#assign focusLabel = 'PZLB'/]
[#include "/business/pages/health/healthPlanHeader.html" /]
 
<div class="fs_navtitle" >
    <div class="fs_navtitle_con common_list" style="margin:0 15px;">
        <div class="fsnt_btn">
            <a class="operating_conmon"  href="javascript:edit('${RequestParameters.planId}','${RequestParameters.subId}');"><span>新增</span></a>
        </div>
    </div>
</div>
<div class="fs_main clearfix">    
    <div id="main"></div>
    <div class="paging clearfix" id="pagination"></div>
</div>
<script type="text/javascript">
var nowPage = 1;
var cusId = '${RequestParameters.cusId}';
var planId = '${RequestParameters.planId}';
function query(){
    var subCusId = $("#subCusId").val();
    var state = $("#state").val();
    var params = {'cusId':cusId,'planId':planId,'subCusId':subCusId,'state':state};
    pagination("${base}/business/pages/health/healthCfgData.html","${base}/business/pages/health/healthCfgCount.html","main","pagination",{cpage:nowPage,psize:10},params,function(data,page) {
        nowPage = page;
    });
}
 
$(function() {
    query();
})
 
function edit(planId,subId){
       var url = "${base}/business/pages/health/selCfgList.html?planId="+planId+"&subId="+subId;
       window.top.openDialog("0","新增",
         {},
         {"width":65,"height":50},
         [{btnId:"btnSure", btnName:"提交", btnStyle:"bluebtn"}],
         url);
}
 
function detail(id){
       var url = "${base}/business/pages/health/healthPlanDetail.html?id="+id;
       window.top.openDialog("0","详情",
         {},
         {"width":50,"height":60},
         [],
         url);
}
 
//删除设备
    function delDevice(ciId,type) {
        var msg;
        if(type == 1) {
            msg = "确定要启用该配置吗?";
        } else {
            msg = "确定要禁用该配置吗?";
        } 
        window.top.confirmInfo('信息确认', msg, function(){
           $.post("${base}/business/pages/health/delCi.html", {'ciId':ciId,"type":type},function(data,textStatus){
              if(data=="1"){
                  window.top.popupTips("操作成功");
                window.location.reload();
              } else {
                  window.top.popupTips("操作失败");
              }
          });
      });
    }
</script>
[#include "/business/pages/include/footer.html" /]
</body>
</html>