|  |  | 
 |  |  |     @RequestMapping(value = "/cstmr/followers/table/auth") | 
 |  |  |     @ManagerAuth | 
 |  |  |     public R cstmrFollowersTable(@RequestParam("cstmrId") Long cstmrId) { | 
 |  |  |         List<CstmrFoll> cstmrFolls = cstmrFollService.selectList(new EntityWrapper<CstmrFoll>().eq("cstmr_id", cstmrId)); | 
 |  |  |         List<CstmrFoll> cstmrFolls = cstmrFollService.selectList(new EntityWrapper<CstmrFoll>().eq("cstmr_id", cstmrId).orderBy("id", false)); | 
 |  |  |         List<CstmrFollowerTableVo> result = new ArrayList<>(); | 
 |  |  |         for (CstmrFoll cstmrFoll : cstmrFolls) { | 
 |  |  |             User user = userService.selectById(cstmrFoll.getUserId()); | 
 
 |  |  | 
 |  |  |  | 
 |  |  |     <div class="form-group-bottom text-right"> | 
 |  |  |         <button class="layui-btn" lay-filter="refresh" lay-submit><i class="layui-icon"></i> 刷新 </button> | 
 |  |  |         <button class="layui-btn layui-btn-normal" lay-filter="save" lay-submit><i class="layui-icon"></i> 保存 </button> | 
 |  |  |     </div> | 
 |  |  |  | 
 |  |  | </form> | 
 |  |  | 
 |  |  |                         var follTab = table.render({ | 
 |  |  |                             elem: '#followersTable', | 
 |  |  |                             data: res.data, | 
 |  |  |                             limit: 999, | 
 |  |  |                             height: 'full-418', | 
 |  |  |                             cols: [[ | 
 |  |  |                                 {field: 'userName', title: '工作人员'}, | 
 |  |  |                                 {fixed: 'right', title:'', align: 'center', toolbar: '#followerTabOperate', width: 70} | 
 |  |  | 
 |  |  |         /* 监听表单提交 */ | 
 |  |  |         form.on('submit(refresh)', function (data) { | 
 |  |  |             init(); | 
 |  |  |             return false; | 
 |  |  |         }); | 
 |  |  |         form.on('submit(save)', function (elem) { | 
 |  |  |             let data = elem.field; | 
 |  |  |             notice.msg('正在拼命修改数据......', {icon: 4, position: "topRight"}); | 
 |  |  |             $.ajax({ | 
 |  |  |                 url: baseUrl + "/issue/process/auth", | 
 |  |  |                 headers: {'token': localStorage.getItem('token')}, | 
 |  |  |                 contentType: 'application/json;charset=UTF-8', | 
 |  |  |                 method: 'POST', | 
 |  |  |                 data: JSON.stringify({ | 
 |  |  |                     id: Number(data.id), | 
 |  |  |                     uuid: data.uuid, | 
 |  |  |                     dealer: data.dealer, | 
 |  |  |                     settle: Number(data.settle), | 
 |  |  |                     endTime: top.strToDate(data.endTime$), | 
 |  |  |                     // lastTime: data.lastTime, | 
 |  |  |                     reason: data.reason, | 
 |  |  |                     deal: data.deal, | 
 |  |  |                 }), | 
 |  |  |                 success: function (res) { | 
 |  |  |                     notice.destroy(); | 
 |  |  |                     if (res.code === 200) { | 
 |  |  |                         notice.success({title: '消息通知', message: res.msg}); | 
 |  |  |                         $('.layui-layer-close').click(); | 
 |  |  |                     } else if (res.code === 403) { | 
 |  |  |                         top.location.href = baseUrl + "/"; | 
 |  |  |                     } else { | 
 |  |  |                         notice.error({title: '消息通知', message: res.msg}); | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |             }) | 
 |  |  |             return false; | 
 |  |  |         }); | 
 |  |  |  |