cy
2022-06-28 2ba5c891b24d4d0cd6ce7ef833592e4f576ee5e8
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
82
83
84
85
86
87
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>服务台-创建事件</title>
 
 
[#include "/business/pages/include/static.html" /]
</head>
 
<body >
<div class="fs_main clearfix">
</div>
<div class="fs_navtitle have_margin" id="">
    <div class="fs_navtitle_con common_list">
        <h3 class="common_list_btn_title">配置修改</h3>
        <div class="fsnt_btn">
            <a class="operating_conmon" href="javascript:linkDevice();"><span>新增</span></a>
        </div>
    </div>
</div>
<div class="fs_main clearfix">
    <div id="changeDevice">
    </div>
</div>
 
<script type="text/javascript">
 
 
var projectId = '${projectId}';
var flowId = '${flowId}';
function linkDevice() {
    window.top.openDialog("0","新增修改配置",
                         {},
                         {"width":80,"height":80},
                         [{btnId:"btnSure", btnName:"选择", btnStyle:"bluebtn"}],
                         "${base}/business/pages/change/selectDevice.html?projectId="+projectId+"&flowId="+flowId);
}
 
 
 
//查询该变更流程下变更中的配置
function changeDevice() {
    loading($("#changeDevice"));
    $.post("${base}/business/pages/change/changeDevice.html",{"flowId":flowId},function(data,textStatus) {
        loaded($("#changeDevice"));
        $("#changeDevice").html(data);
    })
}
 
 
function updateCi(tempId,ci_Id) {
    window.top.openDialog("ConfigEditIndex","修改配置",
                         {},
                         {"width":70,"height":80},
                         [{btnId:"btnSure", btnName:"修改", btnStyle:"bluebtn"}],
                         "${base}/business/pages/change/changedevicemain.html?tempId="+tempId+"&ci_Id="+ci_Id+"&flowId="+flowId);
}
 
function changerecord(tempId,ci_Id,flowId) {
    window.top.openDialog("updateCi","配置修改记录",
                         {},
                         {"width":70,"height":80},
                         [],
                         "${base}/business/pages/change/viewchangerecord.html?tempId="+tempId+"&ci_Id="+ci_Id+"&flowId="+flowId);
}
 
function del(tempId) {
   window.top.confirmInfo('提示', '确定要删除吗?', function(){
       $.post("${base}/business/pages/cmdb/propform/delDevice.html",{"tempId":tempId},function(data,textStatus) {
                    if(data == 1) {
                         changeDevice();
                         window.top.popupTips("删除成功");
                    }else{
                         window.top.popupTips("删除失败");
                    }
        });
    })
}
 
$(function() {
    changeDevice();
})
</script>
 
</body>
</html>