wzy
2021-04-01 d388e2788b7ef088d7cd40f901b0acdcec460bc3
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
 
 
<!doctype html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:matrix="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
 
<meta
    content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
    name="viewport" />
<title th:text="${session.userInfo.shopName }"></title>
 
<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">
 
 
 
 
<script type="text/javascript"
    th:src="@{/js/plugin/jquery-2.1.4.min.js}"></script>
<script type="text/javascript"
    th:src="@{/js/systools/DDMBase.js}"></script>
<link rel="stylesheet"
    th:href="@{/plugin/amazingUI/css/amazeui.min.css}">
<link rel="stylesheet"
    th:href="@{/plugin/amazingUI/css/app.css}">
<link rel="stylesheet" type="text/css"
    th:href="@{/css/dingCRMaccount-service.css}">
<!-- <style type="text/css">
    .divList{
        _height:200px; 
        min-height:100px; 
        border:1px solid #000; 
    }
 
</style> -->
 
</head>
<script>
    
</script>
 
 
<body>
    <!-- 商品列表页面 -->
    <div class="wrap">
        <!-- 头部开始 -->
        <header data-am-widget="header"
            class="am-header color-w back-m1 am-header-fixed">
            <div class="am-header-left am-header-nav">
                <a th:href="@{/admin/redirect/hive/mobile/CRM-account}" class=""> <i
                    class="am-header-icon am-icon-chevron-left"></i>
                </a>
            </div>
 
            <h1 class="am-header-title">
                <a href="#title-link" class="" th:text="${session.lookVipInfo.vipName}+'跟进记录'">  </a>
            </h1>
 
 
        </header>
        <!-- 头部结束 -->
 
        <!-- 订单内容 -->
        <div class="main main1">
 
            <div class="am-g">
                <div class="col-sm-12" style="text-align: right"><a th:href="@{/admin/redirect/hive/mobile/CRM-account-follow-add}"
                                               class="am-btn am-btn-primary">新增跟进记录</a></div>
            </div>
 
 
            <!-- 套餐表格 -->
            <div data-am-widget="list_news" 
                class="am-list-news am-list-news-default divList" style="margin-bottom: 60px">
                <!--列表标题-->
                <div class="am-list-news-hd am-cf am-g" id="ul_title">
                    <!--带更多链接-->
                    <div class="am-u-sm-4 ">
                        <h2 class="am-list-news-more am-fr">计划跟进时间</h2>
                    </div>
                    <div class="am-u-sm-6     ">
                        <h2 class="am-list-news-more am-fr">肌肤现状</h2>
                    </div>
                    <div class="am-u-sm-2 ">
                        <h2 class="am-list-news-more am-fr">操作</h2>
                    </div>
 
                </div>
                
                <div class="am-list-news-bd " >
                    <ul class="am-list" id="showdataBox">
                        
                    </ul>
                </div>
                <div id="pagingBox" align="center" style="margin-top: 10px;margin-bottom: 100px">
                          
                 </div>
            </div>
 
 
 
        </div>
    </div>
    <form class="am-form" method="post"
          id="dataform" onsubmit="javascripr:return false;">
    <input autocomplete="off"   type="hidden" name="offset" id="_offset"  value="0" />
    <input autocomplete="off"   type="hidden" id="limit" name="limit"   value="10" />
    </form>
    <script
        th:src="@{/plugin/amazingUI/js/amazeui.widgets.helper.js}"></script>
    <script th:src="@{/plugin/amazingUI/js/amazeui.min.js}"></script>
 
    <script>
        var delBtn="";
    </script>
 
    <script matrix:btn="servicefollow-dels"  >
        delBtn='<a class="am-list-item-hd" onClick="del(\'VALUE\')"  >删除</a>';
    </script>
 
 
    <script>
    
 
    
    
    /**
        加载数据
         **/
         $(function(){
             
            var pageSize=$("#limit").val();
            var flag = $.query.get("flag");
            if(flag){
                $("#order-select").val(flag);
            }
             Pagination.init({
                    url: basePath+"/admin/serviceRecord/showList",
                    pageSize : pageSize,
                    builderDate:function(loj){
                        var html='';
                        if(loj.getRowCount() >0){
                            for(var i=0 ; i<loj.getRowCount(); i++ ){
                                html+=' <li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left"> <div class="am-u-sm-4 "> <h3 class="am-list-item-hd">'
                                +loj.getDateYMH(i,"followTime")
                                +'</h3> </div> <div class="am-u-sm-6 "><h3 class="am-list-item-hd">'
                                +loj.getString(i,"info5")
                                +'</h3> </div> <div class="am-u-sm-2 ">'
                                +'<a class="am-list-item-hd" href="'+basePath+'/admin/serviceRecord/editForm?id='+loj.getString(i,"id")+'"  >编辑</a>&nbsp;&nbsp;'
                                +delBtn.replace("VALUE",loj.getString(i,"id"))+'</div></li>';
                            }
                        }else{
                            html ='<Div style="text-align: center;width:100%;">暂无跟进记录</div>'
                            $("#pagingBox").hide();
                        }
                        return html;
                    }    
                }).serchDate();
             })
                
 
        function del(id){
             layer.open({
                    content: '确认要删除这条记录吗?',
                    btn: ['确认', '取消'],
                    shadeClose: false,
                    yes: function(){
                        $.AjaxProxy({p:{keys:id}}).invoke( basePath+"/admin/serviceRecord/del",function(loj){
                            layer.open({content: '删除成功', time: 1});
                            Pagination.serchDate();
                        });
                        
                    }
                });
        }
    </script>
 
 
 
 
 
 
 
    <!-- index js -->
</body>
</html>