educode_sales 0.9.48 → 0.9.50

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 (74) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/educode_sales/indexlogo.png +0 -0
  3. data/app/controllers/educode_sales/idea_recycles_controller.rb +100 -0
  4. data/app/controllers/educode_sales/ideas_controller.rb +130 -0
  5. data/app/controllers/educode_sales/logs_controller.rb +21 -0
  6. data/app/controllers/educode_sales/teacher_follows_controller.rb +82 -2
  7. data/app/controllers/educode_sales/teachers_controller.rb +18 -3
  8. data/app/models/educode_sales/common.rb +2 -0
  9. data/app/models/educode_sales/idea.rb +87 -0
  10. data/app/models/educode_sales/idea_history.rb +8 -0
  11. data/app/views/educode_sales/idea_recycles/activities.json.jbuilder +9 -0
  12. data/app/views/educode_sales/idea_recycles/add_courses.html.erb +133 -0
  13. data/app/views/educode_sales/idea_recycles/add_event.html.erb +49 -0
  14. data/app/views/educode_sales/idea_recycles/add_keys.html.erb +334 -0
  15. data/app/views/educode_sales/idea_recycles/course_list.json.jbuilder +23 -0
  16. data/app/views/educode_sales/idea_recycles/course_subject.json.jbuilder +10 -0
  17. data/app/views/educode_sales/idea_recycles/daily_paper.html.erb +68 -0
  18. data/app/views/educode_sales/idea_recycles/detail.html.erb +144 -0
  19. data/app/views/educode_sales/idea_recycles/edit.html.erb +193 -0
  20. data/app/views/educode_sales/idea_recycles/edit_follow_record.html.erb +87 -0
  21. data/app/views/educode_sales/idea_recycles/history.html.erb +41 -0
  22. data/app/views/educode_sales/idea_recycles/import.html.erb +41 -0
  23. data/app/views/educode_sales/idea_recycles/index.html.erb +321 -0
  24. data/app/views/educode_sales/idea_recycles/index.json.jbuilder +16 -0
  25. data/app/views/educode_sales/idea_recycles/new.html.erb +204 -0
  26. data/app/views/educode_sales/idea_recycles/new_follow_record.html.erb +93 -0
  27. data/app/views/educode_sales/idea_recycles/search_new.html.erb +138 -0
  28. data/app/views/educode_sales/idea_recycles/show_class.html.erb +107 -0
  29. data/app/views/educode_sales/idea_recycles/show_follow.html.erb +504 -0
  30. data/app/views/educode_sales/idea_recycles/show_follow.json.jbuilder +23 -0
  31. data/app/views/educode_sales/idea_recycles/show_follow_record.html.erb +36 -0
  32. data/app/views/educode_sales/idea_recycles/unfinish_plans.json.jbuilder +14 -0
  33. data/app/views/educode_sales/ideas/activities.json.jbuilder +9 -0
  34. data/app/views/educode_sales/ideas/add_courses.html.erb +133 -0
  35. data/app/views/educode_sales/ideas/add_event.html.erb +49 -0
  36. data/app/views/educode_sales/ideas/add_keys.html.erb +334 -0
  37. data/app/views/educode_sales/ideas/course_list.json.jbuilder +23 -0
  38. data/app/views/educode_sales/ideas/course_subject.json.jbuilder +10 -0
  39. data/app/views/educode_sales/ideas/daily_paper.html.erb +68 -0
  40. data/app/views/educode_sales/ideas/detail.html.erb +144 -0
  41. data/app/views/educode_sales/ideas/edit.html.erb +182 -0
  42. data/app/views/educode_sales/ideas/edit_follow_record.html.erb +87 -0
  43. data/app/views/educode_sales/ideas/history.html.erb +41 -0
  44. data/app/views/educode_sales/ideas/import.html.erb +41 -0
  45. data/app/views/educode_sales/ideas/index.html.erb +335 -0
  46. data/app/views/educode_sales/ideas/index.json.jbuilder +16 -0
  47. data/app/views/educode_sales/ideas/new.html.erb +182 -0
  48. data/app/views/educode_sales/ideas/new_follow_record.html.erb +93 -0
  49. data/app/views/educode_sales/ideas/search_new.html.erb +138 -0
  50. data/app/views/educode_sales/ideas/show_class.html.erb +107 -0
  51. data/app/views/educode_sales/ideas/show_follow.html.erb +504 -0
  52. data/app/views/educode_sales/ideas/show_follow.json.jbuilder +23 -0
  53. data/app/views/educode_sales/ideas/show_follow_record.html.erb +36 -0
  54. data/app/views/educode_sales/ideas/unfinish_plans.json.jbuilder +14 -0
  55. data/app/views/educode_sales/logs/index.html.erb +48 -0
  56. data/app/views/educode_sales/logs/index.json.jbuilder +16 -0
  57. data/app/views/educode_sales/staffs/edit.html.erb +0 -1
  58. data/app/views/educode_sales/teacher_follows/index.json.jbuilder +20 -0
  59. data/app/views/educode_sales/teachers/_follows.html.erb +256 -0
  60. data/app/views/educode_sales/teachers/_index.html.erb +677 -0
  61. data/app/views/educode_sales/teachers/daily_paper.html.erb +22 -22
  62. data/app/views/educode_sales/teachers/index.html.erb +11 -651
  63. data/app/views/educode_sales/teachers/index.json.jbuilder +10 -0
  64. data/app/views/educode_sales/teachers/new.html.erb +9 -3
  65. data/app/views/educode_sales/teachers/new_follow_record.html.erb +6 -0
  66. data/app/views/layouts/educode_sales/application.html.erb +40 -8
  67. data/config/routes.rb +19 -0
  68. data/db/migrate/20230227061043_create_educode_sales_ideas.rb +28 -0
  69. data/db/migrate/20230227070206_change_to_educode_sales_ideas.rb +5 -0
  70. data/db/migrate/20230227125936_add_follow_at_to_teachers.rb +6 -0
  71. data/db/migrate/20230228063555_create_educode_sales_idea_histories.rb +10 -0
  72. data/db/migrate/20230302074324_change_manager_for_ideas.rb +6 -0
  73. data/lib/educode_sales/version.rb +1 -1
  74. metadata +66 -6
@@ -0,0 +1,138 @@
1
+ <div class="layui-form layuimini-form">
2
+ <div class="layui-form-item" style="padding-left: 25px;padding-top: 25px">
3
+ <div class="layui-inline">
4
+ <label class="layui-form-label ">名称</label>
5
+ <div class="layui-input-block">
6
+ <input type="text" name="name" autocomplete="off" lay-verify="required" class="layui-input">
7
+ </div>
8
+ </div>
9
+ <div class="layui-inline">
10
+ <label class="layui-form-label ">单位</label>
11
+ <div class="layui-input-block">
12
+ <input type="text" name="name" autocomplete="off" lay-verify="required" class="layui-input">
13
+ </div>
14
+ </div>
15
+ <div class="layui-inline">
16
+ <button class="layui-btn layui-btn-normal" lay-submit lay-filter="create_business">搜索</button>
17
+ </div>
18
+ </div>
19
+ </div>
20
+ <div style="padding-left: 40px">
21
+ <table class="layui-hide" id="keyTable"></table>
22
+ <div class="layui-inline">
23
+ <button class="layui-btn layui-btn-normal">提交</button>
24
+ <button class="layui-btn layui-btn-normal">取消</button>
25
+ </div>
26
+ </div>
27
+ <script>
28
+ layui.use(['form', 'table', 'upload', 'layer', 'laytpl', 'request', 'selectInput'], function () {
29
+ var form = layui.form,
30
+ layer = layui.layer,
31
+ table = layui.table,
32
+ laytpl = layui.laytpl,
33
+ request = layui.request,
34
+ $ = layui.$;
35
+ selectInput = layui.selectInput;
36
+
37
+ form.render();
38
+
39
+ // 当前弹出层,防止ID被覆盖
40
+ var parentIndex = layer.index;
41
+
42
+
43
+ table.render({
44
+ elem: '#keyTable',
45
+ defaultToolbar: [],
46
+ cols: [
47
+ [
48
+ {type: 'checkbox'},
49
+ {
50
+ field: 'id',
51
+ width: 80,
52
+ title: '姓名'
53
+ },
54
+ {
55
+ field: 'username',
56
+ width: 120,
57
+ title: '手机'
58
+ },
59
+ {
60
+ field: 'zhi',
61
+ width: 120,
62
+ title: '邮箱',
63
+ },
64
+ {
65
+ field: 'tai',
66
+ width: 120,
67
+ title: '学校/单位'
68
+ },
69
+ {
70
+ field: 'zhic',
71
+ width: 200,
72
+ title: '最后登录时间',
73
+ sort: true
74
+ },
75
+ {
76
+ field: 'sex',
77
+ width: 100,
78
+ title: '学院渗透率'
79
+ },
80
+ {
81
+ field: 'birthday',
82
+ width: 100,
83
+ title: '学生',
84
+ },
85
+ {
86
+ field: 'qi',
87
+ width: 100,
88
+ title: '课堂',
89
+ },
90
+ {
91
+ field: 'qi1',
92
+ width: 100,
93
+ title: '测评',
94
+ },
95
+ ]
96
+ ],
97
+ data: [{
98
+ "id": "样子龙",
99
+ "username": "157---784",
100
+ "zhi": "897@qq.com",
101
+ "tai": "湖南大学",
102
+ "zhic": "2021-07-27 10:50",
103
+ "sex": "12",
104
+ "birthday": "100",
105
+ "qi": "100",
106
+ "qi1": "20000",
107
+ }],
108
+ //
109
+ //
110
+ // page: true,
111
+ skin: 'line'
112
+ });
113
+
114
+
115
+ //监听搜索
116
+ // form.on('submit(create_business)', function (data) {
117
+ // if (add_department.getValue() == "") {
118
+ // return layer.alert("请选择单位部门")
119
+ // }
120
+ // request.authPost("missions/businesses", {
121
+ // department_id: add_department.getValue(),
122
+ // name: data.field.name
123
+ // }, function (res) {
124
+ // if (res.success == false) {
125
+ // layer.alert(res.msg)
126
+ // } else {
127
+ // layer.close(parent.index);
128
+ // parent.layer.close(parent.layer.getFrameIndex(window.name))
129
+ // parent.table.reload('businesses_table')
130
+ // }
131
+ // })
132
+ //
133
+ //
134
+ // return false;
135
+ // });
136
+
137
+ });
138
+ </script>
@@ -0,0 +1,107 @@
1
+
2
+ <script type="text/html" id="class_name">
3
+ <a href="<%= base_url %>/classrooms/{{d.id}}" class="layui-table-link" target="_blank">{{ d.name }}</a>
4
+ </script>
5
+
6
+ <table class="layui-hide" id="class_T" lay-filter="classFilter"></table>
7
+ <script>
8
+ layui.use(['form', 'table'], function () {
9
+ var $ = layui.jquery,
10
+ form = layui.form;
11
+
12
+ table.render({
13
+ elem: '#class_T',
14
+ url: '/missions/teachers/course_list?user_id=' + parent.user_id,
15
+ defaultToolbar: [],
16
+ cols: [
17
+ [
18
+ {
19
+ field: 'id',
20
+ width: 80,
21
+ title:'序号',type: 'numbers',
22
+ },
23
+ {
24
+ field: 'name',
25
+ width: 150,
26
+ title: '课堂名称',
27
+ templet: "#class_name"
28
+
29
+ },
30
+ {
31
+ field: 'teachers',
32
+ width: 80,
33
+ title: '老师',
34
+ },
35
+ {
36
+ field: 'students',
37
+ width: 80,
38
+ title: '学生'
39
+ },
40
+ {
41
+ field: 'informs',
42
+ width: 80,
43
+ title: '公告',
44
+ },
45
+ {
46
+ field: 'attachments',
47
+ width: 80,
48
+ title: '资源',
49
+ },
50
+ {
51
+ field: 'videos',
52
+ width: 80,
53
+ title: '视频',
54
+ },
55
+ {
56
+ field: 'practice',
57
+ width: 100,
58
+ title: '实训作业',
59
+ },
60
+ {
61
+ field: 'normal',
62
+ width: 100,
63
+ title: '普通作业',
64
+ },
65
+ {
66
+ field: 'group',
67
+ width: 100,
68
+ title: '分组作业',
69
+ },
70
+ {
71
+ field: 'exercises_count',
72
+ width: 80,
73
+ title: '试卷',
74
+ },
75
+ {
76
+ field: 'student_works_count',
77
+ width: 80,
78
+ title: '作品数',
79
+ },
80
+ {
81
+ field: 'evaluate_count',
82
+ width: 100,
83
+ title: '评测次数',
84
+ },
85
+ {
86
+ field: 'is_public',
87
+ width: 80,
88
+ title: '私有',
89
+ },
90
+ {
91
+ field: 'status',
92
+ width: 100,
93
+ title: '状态',
94
+ },
95
+ {
96
+ field: 'created_at',
97
+ width: 190,
98
+ title: '创建时间',
99
+ sort: true,
100
+ fixed: 'right'
101
+ }
102
+ ]
103
+ ],
104
+ page: true
105
+ });
106
+ });
107
+ </script>