educode_sales 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/educode_sales/follow_ups_controller.rb +8 -8
  3. data/app/controllers/educode_sales/operation_plans_controller.rb +7 -7
  4. data/app/controllers/educode_sales/plans_controller.rb +8 -8
  5. data/app/controllers/educode_sales/sale_reports_controller.rb +3 -3
  6. data/app/controllers/educode_sales/sessions_controller.rb +1 -1
  7. data/app/controllers/educode_sales/teacher_follows_controller.rb +140 -0
  8. data/app/controllers/educode_sales/teachers_controller.rb +95 -5
  9. data/app/models/ability.rb +0 -4
  10. data/app/models/educode_sales/activity.rb +2 -1
  11. data/app/models/educode_sales/business.rb +0 -1
  12. data/app/models/educode_sales/course_subject.rb +1 -1
  13. data/app/models/educode_sales/staff.rb +3 -3
  14. data/app/models/educode_sales/teacher.rb +20 -1
  15. data/app/views/educode_sales/activities/edit.html.erb +4 -4
  16. data/app/views/educode_sales/activities/index.html.erb +6 -0
  17. data/app/views/educode_sales/activities/index.json.jbuilder +1 -1
  18. data/app/views/educode_sales/activities/new.html.erb +4 -3
  19. data/app/views/educode_sales/businesses/edit_plan.html.erb +3 -2
  20. data/app/views/educode_sales/businesses/index.json.jbuilder +1 -1
  21. data/app/views/educode_sales/businesses/new.html.erb +1 -1
  22. data/app/views/educode_sales/businesses/show_follow_record.html.erb +1 -1
  23. data/app/views/educode_sales/home/search_users.json.jbuilder +1 -1
  24. data/app/views/educode_sales/operation_plans/_monthPlan.html.erb +17 -8
  25. data/app/views/educode_sales/operation_plans/_monthly.html.erb +13 -5
  26. data/app/views/educode_sales/operation_plans/_weekPlan.html.erb +30 -21
  27. data/app/views/educode_sales/operation_plans/_weekly.html.erb +12 -4
  28. data/app/views/educode_sales/operation_plans/edit_month.html.erb +8 -1
  29. data/app/views/educode_sales/operation_plans/edit_monthly.html.erb +1 -1
  30. data/app/views/educode_sales/operation_plans/edit_week.html.erb +12 -3
  31. data/app/views/educode_sales/operation_plans/edit_weekly.html.erb +1 -1
  32. data/app/views/educode_sales/operation_plans/index.json.jbuilder +2 -2
  33. data/app/views/educode_sales/operation_plans/my_month.json.jbuilder +1 -1
  34. data/app/views/educode_sales/operation_plans/my_week.json.jbuilder +2 -2
  35. data/app/views/educode_sales/operation_plans/new_month.html.erb +7 -1
  36. data/app/views/educode_sales/operation_plans/new_monthly.html.erb +1 -1
  37. data/app/views/educode_sales/operation_plans/new_week.html.erb +8 -2
  38. data/app/views/educode_sales/operation_reports/audit.html.erb +9 -9
  39. data/app/views/educode_sales/operation_reports/edit.html.erb +14 -17
  40. data/app/views/educode_sales/operation_reports/plans.json.jbuilder +1 -1
  41. data/app/views/educode_sales/plans/edit_week.html.erb +8 -2
  42. data/app/views/educode_sales/plans/index.json.jbuilder +1 -1
  43. data/app/views/educode_sales/plans/my_week.json.jbuilder +1 -1
  44. data/app/views/educode_sales/plans/new_month.html.erb +7 -3
  45. data/app/views/educode_sales/plans/new_week.html.erb +8 -2
  46. data/app/views/educode_sales/sales/index.html.erb +2 -1
  47. data/app/views/educode_sales/sales/operations.html.erb +5 -2
  48. data/app/views/educode_sales/sessions/login.html.erb +1 -1
  49. data/app/views/educode_sales/staffs/edit.html.erb +1 -2
  50. data/app/views/educode_sales/staffs/index.html.erb +4 -4
  51. data/app/views/educode_sales/staffs/new.html.erb +1 -1
  52. data/app/views/educode_sales/teachers/add_courses.html.erb +100 -19
  53. data/app/views/educode_sales/teachers/course_subject.json.jbuilder +10 -0
  54. data/app/views/educode_sales/teachers/edit.html.erb +54 -18
  55. data/app/views/educode_sales/teachers/edit_follow_record.html.erb +49 -30
  56. data/app/views/educode_sales/teachers/index.html.erb +15 -4
  57. data/app/views/educode_sales/teachers/index.json.jbuilder +1 -0
  58. data/app/views/educode_sales/teachers/new.html.erb +8 -6
  59. data/app/views/educode_sales/teachers/new_follow_record.html.erb +52 -29
  60. data/app/views/educode_sales/teachers/show_follow.html.erb +150 -170
  61. data/app/views/educode_sales/teachers/show_follow.json.jbuilder +20 -0
  62. data/app/views/educode_sales/teachers/show_follow_record.html.erb +11 -42
  63. data/app/views/educode_sales/teachers/unfinish_plans.json.jbuilder +14 -0
  64. data/config/routes.rb +10 -0
  65. data/db/migrate/20210915061738_add_students_count_teacher_follow_ups.rb +9 -0
  66. data/lib/educode_sales/version.rb +1 -1
  67. metadata +6 -2
@@ -1,7 +1,9 @@
1
1
  <script type="text/html" id="weeklyToolbar">
2
2
  <div class="layui-btn-container">
3
3
  <span class="table-label">周报列表</span>
4
+ <% if can? :create, EducodeSales::OperationPlan %>
4
5
  <button class="layui-btn layui-btn-normal layui-btn-sm data-add-btn pull-right" lay-event="add"> 添加周报</button>
6
+ <% end %>
5
7
  </div>
6
8
  </script>
7
9
  <!--搜索-->
@@ -40,12 +42,18 @@
40
42
  <table class="layui-hide" id="weeklyTable" lay-filter="currentTableFilter2"></table>
41
43
  </div>
42
44
  <script type="text/html" id="currentWeekTableBar">
45
+ <% if can? :read, EducodeSales::OperationPlan %>
43
46
  <a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit" lay-event="show">查看</a>
47
+ <% end %>
48
+ <% if can? :update, EducodeSales::OperationPlan %>
44
49
  <a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit" lay-event="edit">编辑</a>
45
- <%# if can? :audit, EducodeSales::SaleReport %>
50
+ <% end %>
51
+ <% if can? :audit, EducodeSales::OperationReport %>
46
52
  <a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit" lay-event="audit">审查</a>
47
- <%# end %>
53
+ <% end %>
54
+ <% if can? :destroy, EducodeSales::OperationPlan %>
48
55
  <a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete" lay-event="delete">删除</a>
56
+ <% end %>
49
57
  </script>
50
58
 
51
59
  <script>
@@ -232,9 +240,9 @@
232
240
  table.on('tool(currentTableFilter2)', function (obj) {
233
241
  var data = obj.data;
234
242
  if (obj.event === 'edit') {
235
- var content = miniPage.getHrefContent('/educode_sales/operation_reports/' + data.id + "/edit")
243
+ var content = miniPage.getHrefContent('/educode_sales/operation_reports/' + data.id + '/edit')
236
244
  var openWH = miniPage.getOpenWidthHeight();
237
- var index = layer.open({
245
+ WeeklyIndex = layer.open({
238
246
  title: '编辑周报',
239
247
  type: 1,
240
248
  shade: 0.2,
@@ -3,7 +3,9 @@
3
3
  <div class="layui-inline">
4
4
  <label class="layui-form-label">月份</label>
5
5
  <div class="layui-input-inline">
6
- <%= select_tag "month", options_for_select(@months, @sale_plan.month.strftime("%Y-%m")), class: 'required' %>
6
+ <input type="text" class="layui-input" id="edit_month_plan" autocomplete="off" name="month" placeholder="请选择" value="<%=@sale_plan.month.strftime("%Y-%m") %>">
7
+
8
+ <%#= select_tag "month", options_for_select(@months, @sale_plan.month.strftime("%Y-%m")), class: 'required' %>
7
9
  </div>
8
10
  </div>
9
11
  <div class="layui-inline">
@@ -43,10 +45,15 @@
43
45
  layer = layui.layer,
44
46
  table = layui.table,
45
47
  request = layui.request,
48
+ laydate = layui.laydate,
46
49
  $ = layui.$;
47
50
 
48
51
  form.render();
49
52
 
53
+ laydate.render({
54
+ elem: '#edit_month_plan',
55
+ type: 'month'
56
+ });
50
57
  form.on('submit(update_sale_plan)', function (data) {
51
58
  console.log(data.field);
52
59
  request.authPut("educode_sales/operation_plans/"+ <%= @sale_plan.id %> , data.field, function (res) {
@@ -137,7 +137,7 @@
137
137
  },
138
138
  {
139
139
  field: 'updateTime',
140
- width: 150,
140
+ width: 190,
141
141
  title: '更新时间',
142
142
  sort: true,
143
143
  },
@@ -3,7 +3,8 @@
3
3
  <div class="layui-inline">
4
4
  <label class="layui-form-label">月份</label>
5
5
  <div class="layui-input-inline">
6
- <%= select_tag "month", options_for_select(@months, @sale_plan.month.strftime("%Y-%m")), class: 'required' %>
6
+ <input type="text" class="layui-input" id="edit_week_plan" autocomplete="off" name="month" placeholder="请选择" value="<%=@sale_plan.month.strftime("%Y-%m") %>">
7
+ <%#= select_tag "month", options_for_select(@months, @sale_plan.month.strftime("%Y-%m")), class: 'required' %>
7
8
  </div>
8
9
  </div>
9
10
  <% if @sale_plan.weekly.present? %>
@@ -52,19 +53,27 @@
52
53
  layer = layui.layer,
53
54
  table = layui.table,
54
55
  request = layui.request,
56
+ laydate = layui.laydate,
55
57
  $ = layui.$;
56
58
 
57
59
  form.render();
58
60
 
61
+ laydate.render({
62
+ elem: '#edit_week_plan',
63
+ type: 'month'
64
+ });
65
+
59
66
  form.on('submit(update_sale_plan)', function (data) {
60
67
  console.log(data.field);
61
68
  request.authPut("educode_sales/operation_plans/"+ <%= @sale_plan.id %> , data.field, function (res) {
62
69
  if (res.success == false) {
63
70
  layer.alert(res.msg)
64
71
  } else {
65
- layer.close(parent.sindex);
66
- table.reload('weekPlanTable')
72
+ layer.close(parent.index10)
73
+ layer.close(parent.editWeek_index)
74
+ table.reload('weekPlanTable1')
67
75
  table.reload('newWeeklyTable')
76
+ table.reload('unfinish_table')
68
77
  }
69
78
  })
70
79
  return false;
@@ -135,7 +135,7 @@
135
135
  },
136
136
  {
137
137
  field: 'updateTime',
138
- width: 150,
138
+ width: 190,
139
139
  title: '更新时间',
140
140
  sort: true,
141
141
  },
@@ -7,9 +7,9 @@ json.data do
7
7
  json.school d.teacher.department&.school&.name
8
8
  json.month d.month.strftime("%Y-%m")
9
9
  json.week d.weekly
10
- # json.teacher_id d.teacher_id
10
+ json.teacher_id d.teacher_id
11
11
  json.content d.content.truncate(30)
12
- # json.follow_ups_count d.teacher.follow_ups_count
12
+ json.count d.teacher.teacher_follows_count
13
13
  json.rate "#{d.finish_rate}%"
14
14
  json.updated_at d.updated_at.to_s
15
15
  end
@@ -6,7 +6,7 @@ json.data do
6
6
  json.department d.teacher.department&.name
7
7
  json.school d.teacher.department&.school&.name
8
8
  json.month d.month.strftime("%Y-%m")
9
- # json.teacher_id d.teacher_id
9
+ json.teacher_id d.teacher_id
10
10
  json.content d.content.truncate(30)
11
11
  # json.follow_ups_count d.teacher.follow_ups_count
12
12
  json.rate "#{d.finish_rate}%"
@@ -7,9 +7,9 @@ json.data do
7
7
  json.school d.teacher.department&.school&.name
8
8
  json.month d.month.strftime("%Y-%m")
9
9
  json.week d.weekly
10
- # json.teacher_id d.teacher_id
10
+ json.teacher_id d.teacher_id
11
11
  json.content d.content.truncate(30)
12
- # json.follow_ups_count d.teacher.follow_ups_count
12
+ json.count d.teacher.teacher_follows_count
13
13
  json.rate "#{d.finish_rate}%"
14
14
  json.updated_at d.updated_at.to_s
15
15
  end
@@ -3,7 +3,7 @@
3
3
  <div class="layui-inline">
4
4
  <label class="layui-form-label required">月份</label>
5
5
  <div class="layui-input-inline">
6
- <%= select_tag "month", options_for_select([Time.now.strftime("%Y-%m"), Time.now.months_ago(1).strftime("%Y-%m")]), class: 'required' %>
6
+ <input type="text" class="layui-input" id="new_month_plan" autocomplete="off" name="month" placeholder="请选择">
7
7
  </div>
8
8
  </div>
9
9
  <div class="layui-inline">
@@ -52,10 +52,16 @@
52
52
  layer = layui.layer,
53
53
  table = layui.table,
54
54
  request = layui.request,
55
+ laydate = layui.laydate,
55
56
  $ = layui.$;
56
57
 
57
58
  form.render();
58
59
 
60
+ laydate.render({
61
+ elem: '#new_month_plan',
62
+ type: 'month'
63
+ });
64
+
59
65
  var parentIndex = layer.index;
60
66
 
61
67
  form.on('submit(add_month_plan)', function (data) {
@@ -58,7 +58,7 @@
58
58
  if (res.success == false) {
59
59
  layer.alert(res.msg)
60
60
  } else {
61
- // layer.closeAll();
61
+ layer.closeAll();
62
62
  parent.table.reload('monthlyTable');
63
63
  layer.alert('添加成功')
64
64
  }
@@ -3,7 +3,7 @@
3
3
  <div class="layui-inline">
4
4
  <label class="layui-form-label required">月份</label>
5
5
  <div class="layui-input-inline">
6
- <%= select_tag "month", options_for_select([Time.now.strftime("%Y-%m"), Time.now.months_ago(1).strftime("%Y-%m")]), class: 'required' %>
6
+ <input type="text" class="layui-input" id="new_week_plan" autocomplete="off" name="month" placeholder="请选择">
7
7
  </div>
8
8
  </div>
9
9
  <div class="layui-inline">
@@ -60,10 +60,16 @@
60
60
  layer = layui.layer,
61
61
  table = layui.table,
62
62
  request = layui.request,
63
+ laydate = layui.laydate,
63
64
  $ = layui.$;
64
65
 
65
66
  form.render();
66
67
 
68
+ laydate.render({
69
+ elem: '#new_week_plan',
70
+ type: 'month'
71
+ });
72
+
67
73
 
68
74
  form.on('submit(add_week_plan)', function (data) {
69
75
  request.authPost("educode_sales/operation_plans", data.field, function (res) {
@@ -71,7 +77,7 @@
71
77
  layer.alert(res.msg)
72
78
  } else {
73
79
  layer.closeAll()
74
- table.reload('weekPlanTable')
80
+ table.reload('weekPlanTable1')
75
81
  }
76
82
  })
77
83
  return false;
@@ -54,8 +54,8 @@
54
54
 
55
55
  <!--表格-->
56
56
  <table class="layui-hide" id="showWeeklyTable" lay-filter="showWeeklyTable"></table>
57
- <script type="text/html" id="show_follow">
58
- <a href="javascript:void(0);" lay-event="show_follow" class="layui-table-link">{{ d.follow_ups_count }}</a>
57
+ <script type="text/html" id="show_follow_audit">
58
+ <a href="javascript:void(0);" lay-event="show_follow_audit" class="layui-table-link">{{ d.count }}</a>
59
59
  </script>
60
60
  <script>
61
61
  layui.use(['rate', 'table', 'miniPage', 'jquery', 'request', 'form'], function () {
@@ -123,12 +123,12 @@
123
123
 
124
124
  table.on('tool(showWeeklyTable)', function (obj) {
125
125
  var data = obj.data;
126
- if (obj.event === 'show_follow') {
127
- id = data.business_id
128
- content = miniPage.getHrefContent('/educode_sales/businesses/show_follow?id=' + data.business_id);
126
+ if (obj.event === 'show_follow_audit') {
127
+ id = data.teacher_id
128
+ content = miniPage.getHrefContent('/educode_sales/teachers/show_follow?id=' + data.teacher_id);
129
129
  openWH = miniPage.getOpenWidthHeight();
130
130
  index = layer.open({
131
- title: '商机列表/' + data.business_name + '的跟进记录',
131
+ title: '教师列表/' + data.business_name + '的跟进记录',
132
132
  type: 1,
133
133
  shade: 0.2,
134
134
  maxmin: true,
@@ -184,10 +184,10 @@
184
184
  title: '计划内容',
185
185
  },
186
186
  {
187
- field: 'follow',
187
+ field: 'count',
188
188
  width: 100,
189
189
  title: '跟进',
190
- templet: '#show_follow'
190
+ templet: '#show_follow_audit'
191
191
  },
192
192
  {
193
193
  field: 'rate',
@@ -196,7 +196,7 @@
196
196
  },
197
197
  {
198
198
  field: 'updated_at',
199
- width: 150,
199
+ width: 190,
200
200
  title: '更新时间',
201
201
  sort: true,
202
202
  },
@@ -35,9 +35,9 @@
35
35
 
36
36
  <!--表格-->
37
37
  <table class="layui-hide" id="newWeeklyTable" lay-filter="newWeeklyTable"></table>
38
- <!--<script type="text/html" id="show_follow">-->
39
- <!-- <a href="javascript:void(0);" lay-event="show_follow" class="layui-table-link">{{ d.follow_ups_count }}</a>-->
40
- <!--</script>-->
38
+ <script type="text/html" id="show_follow_edit">
39
+ <a href="javascript:void(0);" lay-event="show_follow_edit" class="layui-table-link">{{ d.count }}</a>
40
+ </script>
41
41
  <script type="text/html" id="currentWeekly">
42
42
  <a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit" lay-event="show">查看</a>
43
43
  <a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit" lay-event="edit">编辑</a>
@@ -59,15 +59,12 @@
59
59
  layer.alert(res.msg)
60
60
  } else {
61
61
  layer.close(parent.sindex);
62
+ layer.close(parent.WeeklyIndex);
63
+ layer.close(parent.MonthlyIndex);
62
64
  parent.layer.close(parent.layer.getFrameIndex(window.name))
63
- if (parent.from_edit_monthly) {
64
- parent.table.reload('monthlyTable');
65
- } else {
66
- parent.table.reload('weeklyTable');
67
65
  parent.table.reload('monthlyTable');
68
- }
69
-
70
- layer.alert('更改成功')
66
+ parent.table.reload('weeklyTable');
67
+ parent.table.reload('monthlyTable');
71
68
  }
72
69
  })
73
70
  return false;
@@ -115,10 +112,10 @@
115
112
  title: '计划内容',
116
113
  },
117
114
  {
118
- field: 'follow',
115
+ field: 'count',
119
116
  width: 100,
120
117
  title: '跟进',
121
- templet: '#show_follow'
118
+ templet: '#show_follow_edit'
122
119
  },
123
120
  {
124
121
  field: 'rate',
@@ -127,7 +124,7 @@
127
124
  },
128
125
  {
129
126
  field: 'updated_at',
130
- width: 150,
127
+ width: 190,
131
128
  title: '更新时间',
132
129
  sort: true,
133
130
  },
@@ -213,12 +210,12 @@
213
210
  layer.full(sindex);
214
211
  });
215
212
  return false;
216
- } else if (obj.event === 'show_follow') {
217
- id = data.business_id
218
- content = miniPage.getHrefContent('/educode_sales/teacher/show_follow?id=' + data.business_id);
213
+ } else if (obj.event === 'show_follow_edit') {
214
+ id = data.teacher_id
215
+ content = miniPage.getHrefContent('/educode_sales/teachers/show_follow?id=' + data.teacher_id);
219
216
  openWH = miniPage.getOpenWidthHeight();
220
217
  index = layer.open({
221
- title: '商机列表/' + data.business_name + '的跟进记录',
218
+ title: '教师列表/' + data.business_name + '的跟进记录',
222
219
  type: 1,
223
220
  shade: 0.2,
224
221
  maxmin: true,
@@ -9,7 +9,7 @@ json.data do
9
9
  json.week d.weekly
10
10
  json.teacher_id d.teacher_id
11
11
  json.content d.content.truncate(30)
12
- # json.follow_ups_count d.teacher.follow_ups_count
12
+ json.count d.teacher.teacher_follows_count
13
13
  json.rate "#{d.finish_rate}%"
14
14
  json.updated_at d.updated_at.to_s
15
15
  end
@@ -3,7 +3,7 @@
3
3
  <div class="layui-inline">
4
4
  <label class="layui-form-label">月份</label>
5
5
  <div class="layui-input-inline">
6
- <%= select_tag "month", options_for_select(@months, @sale_plan.month.strftime("%Y-%m")), class: 'required' %>
6
+ <input type="text" class="layui-input" id="edit_week_plan_month" autocomplete="off" name="month">
7
7
  </div>
8
8
  </div>
9
9
  <% if @sale_plan.weekly.present? %>
@@ -46,13 +46,19 @@
46
46
  </div>
47
47
 
48
48
  <script>
49
- layui.use(['form', 'table', 'laytpl', 'request'], function () {
49
+ layui.use(['form', 'table', 'laytpl', 'request', 'laydate'], function () {
50
50
  var form = layui.form,
51
51
  layer = layui.layer,
52
52
  table = layui.table,
53
53
  request = layui.request,
54
+ laydate = layui.laydate,
54
55
  $ = layui.$;
55
56
 
57
+ laydate.render({
58
+ elem: '#edit_week_plan_month',
59
+ value: "<%= @sale_plan.month.strftime('%Y-%m')%>",
60
+ type: 'month'
61
+ });
56
62
  form.render();
57
63
 
58
64
  form.on('submit(update_sale_plan)', function (data) {
@@ -8,7 +8,7 @@ json.data do
8
8
  json.month d.month.strftime("%Y-%m")
9
9
  json.weekly d.weekly
10
10
  json.business_id d.business_id
11
- json.content d.content.truncate(30)
11
+ json.content d.content.truncate(40)
12
12
  json.follow_ups_count d.business.follow_ups_count
13
13
  json.finish_rate "#{d.finish_rate}%"
14
14
  json.updated_at d.updated_at.to_s
@@ -8,7 +8,7 @@ json.data do
8
8
  json.month d.month.strftime("%Y-%m")
9
9
  json.weekly d.weekly
10
10
  json.business_id d.business_id
11
- json.content d.content.truncate(30)
11
+ json.content d.content.truncate(40)
12
12
  json.follow_ups_count d.business.follow_ups_count
13
13
  json.finish_rate "#{d.finish_rate}%"
14
14
  json.updated_at d.updated_at.to_s
@@ -3,7 +3,7 @@
3
3
  <div class="layui-inline">
4
4
  <label class="layui-form-label required">月份</label>
5
5
  <div class="layui-input-inline">
6
- <%= select_tag "month", options_for_select([Time.now.strftime("%Y-%m"), Time.now.months_ago(1).strftime("%Y-%m")]), class: 'required' %>
6
+ <input type="text" class="layui-input" id="new_month_month" autocomplete="off" name="month">
7
7
  </div>
8
8
  </div>
9
9
  <div class="layui-inline">
@@ -48,13 +48,17 @@
48
48
  </div>
49
49
 
50
50
  <script>
51
- layui.use(['form', 'table', 'laytpl', 'request'], function () {
51
+ layui.use(['form', 'table', 'laytpl', 'request', 'laydate'], function () {
52
52
  var form = layui.form,
53
53
  layer = layui.layer,
54
54
  table = layui.table,
55
55
  request = layui.request,
56
+ laydate = layui.laydate,
56
57
  $ = layui.$;
57
-
58
+ laydate.render({
59
+ elem: '#new_month_month',
60
+ type: 'month'
61
+ });
58
62
  form.render();
59
63
 
60
64
  var parentIndex = layer.index;