cy
2022-06-23 b83c40548208609d0d6826be13d742c28a784806
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
<!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 label = GnConstants.TYSX]
[#include "/business/pages/include/gps.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('');"><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 linkId = '';
var groupId = '-1';
var nowPage = 1;
function query(groupId){
    var params = {"linkId":linkId,"groupId":groupId};
    pagination("${base}/business/pages/cfgcate/propData.html","${base}/business/pages/cfgcate/propCount.html","main","pagination",{cpage:nowPage,psize:10},params,function(data,page) {
        nowPage = page;
    });
}
 
$(function() {
    query(groupId);
})
 
function edit(id){
    var tip="新增";
    if(id) tip="修改";
       var url = "${base}/business/pages/cfgcate/editCommonProp.html?id="+id+"&groupId="+groupId;
       window.top.openDialog("0",tip,
         {},
         {"width":60,"height":70},
         [{btnId:"btnSure", btnName:"提交", btnStyle:"bluebtn"}],
         url);  
}
 
function sel(id,type) {
    var url = "${base}/business/pages/cfgcate/propSelList.html?id="+id+"&type="+type;
       window.top.openDialog("0","选择项",
                     {},
                     {"width":70,"height":90},
                     [],
                     url);  
}
 
function del(id,flag){
    var tip = "";
    if(flag==1) {
        tip = "确定要启用该分类吗?";
    } else {
        tip = "确定要禁止该分类吗?";
    }
    window.top.confirmInfo('提示', tip, function(){
        $.post("${base}/business/pages/cfgcate/delProp.html", {id:id,flag:flag},function(data){
              if(data == "1"){
                  window.top.popupTips("操作成功");
                  query(groupId);
              } else {
                  window.top.popupTips("操作失败");
              }
        },"json");
    })
}
</script>
[#include "/business/pages/include/footer.html" /]
</body>
</html>