Bläddra i källkod

提交

master
chengxuke 4 år sedan
förälder
incheckning
364e6bbb14

Binär
src/assets/img/key.png Visa fil


Binär
src/assets/img/user.png Visa fil


+ 57
- 48
src/components/login-form/login-form.vue Visa fil

@@ -1,29 +1,23 @@
1 1
 <template>
2 2
 <div>
3
-  <Form ref="loginForm" :model="form" :rules="rules" @keydown.enter.native="handleSubmit">
4
-    <FormItem prop="userName">
5
-      <Input v-model="form.userName" placeholder="用户名">
6
-        <span slot="prepend">
7
-          <img src="../../assets/img/user.png" style="width:20px" alt="">
8
-
9
-          <!-- <Icon :size="16" type="ios-person"></Icon> -->
10
-        </span>
11
-      </Input>
12
-    </FormItem>
13
-    <FormItem prop="password">
14
-      <Input width="200px" height='40px' type="password" v-model="form.password" placeholder="密码">
15
-        <span slot="prepend">
16
-          <img src="../../assets/img/key.png" style="width:20px" alt="">
17
-        </span>
18
-      </Input>
19
-    </FormItem>
20
-    <FormItem prop="password">
21
-      <Checkbox :checked.sync="single">记住密码</Checkbox>
22
-    </FormItem>
23
-    <FormItem>
24
-      <Button @click="handleSubmit" type="primary" long>登录</Button>
25
-    </FormItem>
26
-  </Form>
3
+  <div class="formLine">
4
+    <form ref="loginForm" :model="loginForm" :rules="rules">
5
+      <div class='formElement'>
6
+        <!-- <img width="15px" src="../../assets/img/User.png" alt="" /> -->
7
+        <input style="padding-left:50px;" id="userName" type="text" v-model="loginForm.userName" placeholder="用户名" autocomplete="off">
8
+      </div>
9
+      <div class="formElement">
10
+        <!-- <img src="../../assets/img/Key.png" alt="" /> -->
11
+        <input  style="padding-left:50px"  id="password" type="password" v-model="loginForm.password" placeholder="密码" autocomplete="off">
12
+      </div>
13
+      <div class="formOther">
14
+        <Checkbox v-model="single">记住密码</Checkbox>
15
+      </div>
16
+      <div class="formOther">
17
+       <Button @click="handleSubmit" type="primary" long>登录</Button>
18
+      </div>
19
+    </form>
20
+  </div>
27 21
    <div class="bottom">
28 22
             <a>注册</a>
29 23
             <a>忘记密码</a>
@@ -54,9 +48,9 @@ export default {
54 48
   data () {
55 49
     return {
56 50
       single: false,
57
-      form: {
51
+      loginForm: {
58 52
         userName: 'super_admin',
59
-        password: ''
53
+        password: '0000'
60 54
       }
61 55
     }
62 56
   },
@@ -70,36 +64,51 @@ export default {
70 64
   },
71 65
   methods: {
72 66
     handleSubmit () {
73
-      this.$refs.loginForm.validate((valid) => {
74
-        if (valid) {
75
-          this.$emit('on-success-valid', {
76
-            userName: this.form.userName,
77
-            password: this.form.password
78
-          })
79
-        }
67
+      console.log(this.$refs.loginForm)
68
+      // this.$router.push('home')
69
+      // this.$refs.loginForm.validate((valid) => {
70
+      //   if (valid) {
71
+      this.$emit('on-success-valid', {
72
+        userName: this.loginForm.userName,
73
+        password: this.loginForm.password
80 74
       })
75
+      //   }
76
+      // })
81 77
     }
82 78
   }
83 79
 }
84 80
 </script>
85 81
 <style lang='less' scoped>
86
-// .ivu-input{
87
-//   height: 40px;
88
-//   width: 300px;
89
-// }
90
-.ivu-form-item-content{
91
-  width: 270px;
92
-  height: 35px;
82
+#userName{
83
+  background: url(../../assets/img/User.png) no-repeat left center;
84
+  background-size: 20px 20px;
85
+  background-position: 15px;
86
+  height: 40px;
87
+}
88
+#password{
89
+  background: url(../../assets/img/Key.png) no-repeat left center;
90
+  background-size: 20px 20px;
91
+  background-position: 15px;
93 92
 }
94
-.ivu-form-item{
95
-  margin-bottom: 20px;
96
-  // .ivu-input-default{
97
-  //   height: 40px;
98
-  // }
99
-  // .ivu-input {
100
-  //   height: 40px;
101
-  // }
93
+.formLine{
94
+  .formElement{
95
+    border:1px solid rgba(223, 223, 223, 1);
96
+    width: 295px;
97
+    height: 40px;
98
+    display: flex;
99
+    align-items: center;
100
+    margin-bottom: 15px;
101
+    input{
102
+      border:none;
103
+      width: 100%;
104
+      height: 40px;
105
+    }
106
+  }
107
+  .formOther{
108
+    margin-bottom: 15px;
109
+  }
102 110
 }
111
+
103 112
 .bottom {
104 113
           display: flex;
105 114
           justify-content: space-between;

+ 1
- 1
src/components/main/components/navbar/index.vue Visa fil

@@ -29,7 +29,7 @@
29 29
                 </Dropdown-menu>
30 30
           </Dropdown>
31 31
         </div>
32
-        <a href="#">退出</a>
32
+        <a href="#"  name="logout">退出</a>
33 33
       </div>
34 34
     </div>
35 35
   </div>

+ 49
- 10
src/components/main/components/side-menu/side-menu.less Visa fil

@@ -1,18 +1,56 @@
1 1
 .side-menu-wrapper{
2 2
   user-select: none;
3
-  // width: 170px;
4
-  // margin-top: 50px;
3
+  // ---------------------------------------------------------------
5 4
 
6
-  .ivu-menu-dark{
7
-    background-color: white;
8
-    color: black;
5
+  padding:10px 30px;
6
+  // .ivu-menu-item{
7
+  //   padding-left: 10px!important;
8
+  // }
9
+  .ivu-menu-item-selected{
10
+    background: #3D8EFE;
11
+    border-radius: 10px;
12
+    height: 35px;
13
+    margin: 10px 0;
14
+    color: white;
15
+    padding-left: 5px;
16
+    border-left: 2px solid #3D8EFE;
9 17
   }
10
-  .ivu-menu-dark.ivu-menu-vertical .ivu-menu-item, .ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu-title {
11
-    color: black;
12
-}
18
+  .side-menu-wrapper .ivu-menu-light.ivu-menu-vertical .ivu-menu-item-active:not(.ivu-menu-submenu){
19
+    background: #3D8EFE;
20
+    border-radius: 10px;
21
+    color: white;
22
+  }
23
+  .ivu-menu-light.ivu-menu-vertical .ivu-menu-item-active:not(.ivu-menu-submenu){
24
+    background: #3D8EFE;
25
+    border-radius: 10px;
26
+    color: white;
27
+  }
28
+  .ivu-menu-vertical.ivu-menu-light:after{
29
+    background:none;
30
+  }
31
+  .ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item {
32
+    padding-left: 8px!important;
33
+    margin-left: 20px;
34
+  }
35
+  .ivu-menu-light.ivu-menu-vertical .ivu-menu-item-active:not(.ivu-menu-submenu):after{
36
+    background: none;
37
+  }
38
+  .ivu-menu-vertical .ivu-menu-item,.ivu-menu-vertical .ivu-menu-item, .ivu-menu-vertical .ivu-menu-submenu-title {
39
+    padding: 8px 13px;
40
+    margin: 10px 0;
41
+  }
42
+// .ivu-menu-submenu > .ivu-menu {
43
+//   padding: 10px!important;
44
+// }
45
+// .ivu-menu-submenu > .ivu-menu > .ivu-menu-item
46
+// .ivu-menu-light.ivu-menu-vertical .ivu-menu-item-active:not(.ivu-menu-submenu) {
47
+//   background: #3D8EFE;
48
+//   border-radius: 10px;
49
+// }
50
+// ---------------------------------------------------------------
13 51
   .menu-collapsed{
14 52
     padding-top: 10px;
15
-    
53
+
16 54
     .ivu-dropdown{
17 55
       width: 100%;
18 56
       .ivu-dropdown-rel a{
@@ -26,7 +64,8 @@
26 64
       }
27 65
       .ivu-tooltip-popper .ivu-tooltip-content{
28 66
         .ivu-tooltip-arrow{
29
-          border-right-color: #fff;
67
+          // border-right-color: #fff;
68
+          border-right-color:blue;
30 69
         }
31 70
         .ivu-tooltip-inner{
32 71
           background: #fff;

+ 1
- 1
src/components/main/components/side-menu/side-menu.vue Visa fil

@@ -51,7 +51,7 @@ export default {
51 51
     },
52 52
     theme: {
53 53
       type: String,
54
-      default: 'dark'
54
+      default: 'light'
55 55
     },
56 56
     rootIconSize: {
57 57
       type: Number,

+ 35
- 2
src/components/main/main.less Visa fil

@@ -4,6 +4,12 @@
4 4
     position: absolute;
5 5
     top: 0;
6 6
   }
7
+// ---------------------------------------------------------------------------------
8
+//  .ivu-menu-submenu-title {
9
+//   /* color: rgba(255, 255, 255, 0.7); */
10
+//   color: black;
11
+// }
12
+// ---------------------------------------------------------------------------------
7 13
   .ivu-layout-header {
8 14
     height: 50px;  
9 15
   }
@@ -43,22 +49,49 @@
43 49
     overflow: auto;
44 50
   }
45 51
   .left-sider{
52
+      // -----------------------------------------
46 53
     margin-top: 50px;
54
+    width: 210px;
47 55
     .ivu-layout-sider-children{
48
-      overflow-y: scroll;
49
-      margin-right: -18px;
56
+      width: 210px;
57
+      // overflow-y: scroll;
58
+      // margin-right: -18px;
50 59
     }
51 60
   }
61
+  // -------------------------------------------
62
+
52 63
   .ivu-layout{
53 64
     padding-top: 50px;
54 65
   }
55 66
 }
67
+// -----------------------------------
68
+// .ivu-menu-item-active .ivu-menu-item-selected{
69
+//   width: 150px;
70
+//   height: 40px;
71
+//   border-radius: 5px;
72
+//   margin: 0px auto;
73
+//   padding-top:10px ;
74
+//   display: flex;
75
+//   justify-content: center;
76
+//   align-items: center;
77
+// }
78
+// --------------------------------------------------------
56 79
 .ivu-menu-item > i{
57 80
   margin-right: 12px !important;
58 81
 }
59 82
 .ivu-menu-submenu > .ivu-menu > .ivu-menu-item > i {
60 83
   margin-right: 8px !important;
61 84
 }
85
+// ---------------------------------------------------------------
86
+// .ivu-menu-submenu > .ivu-menu {
87
+//   padding: 10px!important;
88
+// }
89
+// .ivu-menu-submenu > .ivu-menu > .ivu-menu-item
90
+// .ivu-menu-light.ivu-menu-vertical .ivu-menu-item-active:not(.ivu-menu-submenu) {
91
+//   background: #3D8EFE;
92
+//   border-radius: 10px;
93
+// }
94
+// ---------------------------------------------------------------
62 95
 .collased-menu-dropdown{
63 96
   width: 100%;
64 97
   margin: 0;

+ 1
- 1
src/components/main/main.vue Visa fil

@@ -3,7 +3,7 @@
3 3
     <div style="height:40px">
4 4
       <navbar></navbar>
5 5
     </div>
6
-  <Sider hide-trigger collapsible :width="256" :collapsed-width="64" v-model="collapsed" class="left-sider" :style="{overflow: 'hidden'}">
6
+  <Sider hide-trigger collapsible :width="210" :collapsed-width="64" v-model="collapsed" class="left-sider" :style="{overflow: 'hidden'}">
7 7
     <side-menu accordion ref="sideMenu" :active-name="$route.name" :collapsed="collapsed" @on-select="turnToPage" :menu-list="menuList">
8 8
       <!-- 需要放在菜单上面的内容,如Logo,写在side-menu标签内部,如下 -->
9 9
       <!-- <div class="logo-con">

+ 8
- 2
src/index.less Visa fil

@@ -1,5 +1,11 @@
1 1
 @import '~iview/src/styles/index.less';
2 2
 
3
-@menu-dark-title: #3D8EFE;
4
-@menu-dark-active-bg: white;
3
+@menu-dark-title: #001529;
4
+// @menu-dark-title: white;
5
+@menu-dark-active-bg: #000c17;
6
+// @menu-dark-active-bg: rgba(61,142,254,1);;
7
+
8
+// @layout-sider-background: #001529;
9
+// @layout-sider-background: rgba(61,142,254,1);
5 10
 @layout-sider-background: white;
11
+

+ 1
- 1
src/locale/lang/en-US.js Visa fil

@@ -11,7 +11,7 @@ export default {
11 11
   img_cropper_page: 'Image-editor',
12 12
   update: 'Update',
13 13
   doc: 'Document',
14
-  join_page: 'Basic Information',
14
+  BasicInfo: 'BasicInfo',
15 15
   Student_management: 'Student management',
16 16
   update_table_page: 'Update .CSV',
17 17
   update_paste_page: 'Paste Table Data',

+ 2
- 2
src/locale/lang/zh-CN.js Visa fil

@@ -2,7 +2,7 @@ export default {
2 2
   home: '首页',
3 3
   login: '登录',
4 4
   components: '组件',
5
-  count_to_page: '数字渐变',
5
+  count_to_page: '招生管理',
6 6
   tables_page: '多功能表格',
7 7
   split_pane_page: '分割窗口',
8 8
   markdown_page: 'Markdown编辑器',
@@ -10,7 +10,7 @@ export default {
10 10
   icons_page: '自定义图标',
11 11
   img_cropper_page: '图片编辑器',
12 12
   update: '上传数据',
13
-  join_page: '基本信息',
13
+  BasicInfo: '基本信息',
14 14
   Student_management: '学员管理',
15 15
   doc: '文档',
16 16
   update_table_page: '上传CSV文件',

+ 1
- 0
src/locale/lang/zh-TW.js Visa fil

@@ -11,6 +11,7 @@ export default {
11 11
   img_cropper_page: '圖片編輯器',
12 12
   update: '上傳數據',
13 13
   join_page: 'QQ群',
14
+  basicInfo: '基本信息',
14 15
   doc: '文檔',
15 16
   update_table_page: '上傳CSV文件',
16 17
   update_paste_page: '粘貼表格數據',

+ 128
- 128
src/router/routers.js Visa fil

@@ -50,26 +50,26 @@ export default [
50 50
       }
51 51
     ]
52 52
   },
53
-  {
54
-    path: '/join',
55
-    name: 'join',
56
-    meta: {
57
-      icon: 'logo-buffer',
58
-      title: '基本信息'
59
-    },
60
-    component: Main,
61
-    children: [
62
-      {
63
-        path: 'Student_management',
64
-        name: 'Student_management',
65
-        meta: {
66
-          icon: 'logo-buffer',
67
-          title: '学员管理'
68
-        },
69
-        component: () => import('@/view/manager/student.vue')
70
-      }
71
-    ]
72
-  },
53
+  // {
54
+  //   path: '/BasicInfo',
55
+  //   name: 'BasicInfo',
56
+  //   meta: {
57
+  //     icon: 'md-home',
58
+  //     title: '基本信息'
59
+  //   },
60
+  //   component: Main,
61
+  //   children: [
62
+  //     {
63
+  //       path: 'Student_management',
64
+  //       name: 'Student_management',
65
+  //       meta: {
66
+  //         icon: 'logo-buffer',
67
+  //         title: '学员管理'
68
+  //       },
69
+  //       component: () => import('@/view/manager/student.vue')
70
+  //     }
71
+  //   ]
72
+  // },
73 73
   {
74 74
     path: '/message',
75 75
     name: 'message',
@@ -91,131 +91,131 @@ export default [
91 91
     ]
92 92
   },
93 93
   {
94
-    path: '/components',
95
-    name: 'components',
94
+    path: '/BasicInfo',
95
+    name: 'BasicInfo',
96 96
     meta: {
97 97
       icon: 'logo-buffer',
98
-      title: '组件'
98
+      title: '基本信息'
99 99
     },
100 100
     component: Main,
101 101
     children: [
102
-      // {
103
-      //   path: 'Student_management',
104
-      //   name: 'Student_management',
105
-      //   meta: {
106
-      //     icon: '',
107
-      //     title: '学员管理'
108
-      //   },
109
-      //   component: () => import('@/view/manager/student.vue')
110
-      // },
111 102
       {
112
-        path: 'tree_select_page',
113
-        name: 'tree_select_page',
103
+        path: 'Student_management',
104
+        name: 'Student_management',
114 105
         meta: {
115
-          icon: 'md-arrow-dropdown-circle',
116
-          title: '树状下拉选择器'
106
+          icon: 'md-trending-up',
107
+          title: '学员管理'
117 108
         },
118
-        component: () => import('@/view/components/tree-select/index.vue')
109
+        component: () => import('@/view/manager/student.vue')
119 110
       },
111
+      // {
112
+      //   path: 'tree_select_page',
113
+      //   name: 'tree_select_page',
114
+      //   meta: {
115
+      //     icon: 'md-arrow-dropdown-circle',
116
+      //     title: '树状下拉选择器'
117
+      //   },
118
+      //   component: () => import('@/view/components/tree-select/index.vue')
119
+      // },
120 120
       {
121 121
         path: 'count_to_page',
122 122
         name: 'count_to_page',
123 123
         meta: {
124 124
           icon: 'md-trending-up',
125
-          title: '数字渐变'
125
+          title: '招生管理'
126 126
         },
127 127
         component: () => import('@/view/components/count-to/count-to.vue')
128
-      },
129
-      {
130
-        path: 'drag_list_page',
131
-        name: 'drag_list_page',
132
-        meta: {
133
-          icon: 'ios-infinite',
134
-          title: '拖拽列表'
135
-        },
136
-        component: () => import('@/view/components/drag-list/drag-list.vue')
137
-      },
138
-      {
139
-        path: 'drag_drawer_page',
140
-        name: 'drag_drawer_page',
141
-        meta: {
142
-          icon: 'md-list',
143
-          title: '可拖拽抽屉'
144
-        },
145
-        component: () => import('@/view/components/drag-drawer')
146
-      },
147
-      {
148
-        path: 'org_tree_page',
149
-        name: 'org_tree_page',
150
-        meta: {
151
-          icon: 'ios-people',
152
-          title: '组织结构树'
153
-        },
154
-        component: () => import('@/view/components/org-tree')
155
-      },
156
-      {
157
-        path: 'tree_table_page',
158
-        name: 'tree_table_page',
159
-        meta: {
160
-          icon: 'md-git-branch',
161
-          title: '树状表格'
162
-        },
163
-        component: () => import('@/view/components/tree-table/index.vue')
164
-      },
165
-      {
166
-        path: 'cropper_page',
167
-        name: 'cropper_page',
168
-        meta: {
169
-          icon: 'md-crop',
170
-          title: '图片裁剪'
171
-        },
172
-        component: () => import('@/view/components/cropper/cropper.vue')
173
-      },
174
-      {
175
-        path: 'tables_page',
176
-        name: 'tables_page',
177
-        meta: {
178
-          icon: 'md-grid',
179
-          title: '多功能表格'
180
-        },
181
-        component: () => import('@/view/components/tables/tables.vue')
182
-      },
183
-      {
184
-        path: 'split_pane_page',
185
-        name: 'split_pane_page',
186
-        meta: {
187
-          icon: 'md-pause',
188
-          title: '分割窗口'
189
-        },
190
-        component: () => import('@/view/components/split-pane/split-pane.vue')
191
-      },
192
-      {
193
-        path: 'markdown_page',
194
-        name: 'markdown_page',
195
-        meta: {
196
-          icon: 'logo-markdown',
197
-          title: 'Markdown编辑器'
198
-        },
199
-        component: () => import('@/view/components/markdown/markdown.vue')
200
-      },
201
-      {
202
-        path: 'editor_page',
203
-        name: 'editor_page',
204
-        meta: {
205
-          icon: 'ios-create',
206
-          title: '富文本编辑器'
207
-        },
208
-        component: () => import('@/view/components/editor/editor.vue')
209
-      },
210
-      {
211
-        path: 'icons_page',
212
-        name: 'icons_page',
213
-        meta: {
214
-          icon: '_bear',
215
-          title: '自定义图标'
216
-        },
217
-        component: () => import('@/view/components/icons/icons.vue')
218 128
       }
129
+      // {
130
+      //   path: 'drag_list_page',
131
+      //   name: 'drag_list_page',
132
+      //   meta: {
133
+      //     icon: 'ios-infinite',
134
+      //     title: '拖拽列表'
135
+      //   },
136
+      //   component: () => import('@/view/components/drag-list/drag-list.vue')
137
+      // },
138
+      // {
139
+      //   path: 'drag_drawer_page',
140
+      //   name: 'drag_drawer_page',
141
+      //   meta: {
142
+      //     icon: 'md-list',
143
+      //     title: '可拖拽抽屉'
144
+      //   },
145
+      //   component: () => import('@/view/components/drag-drawer')
146
+      // },
147
+      // {
148
+      //   path: 'org_tree_page',
149
+      //   name: 'org_tree_page',
150
+      //   meta: {
151
+      //     icon: 'ios-people',
152
+      //     title: '组织结构树'
153
+      //   },
154
+      //   component: () => import('@/view/components/org-tree')
155
+      // },
156
+      // {
157
+      //   path: 'tree_table_page',
158
+      //   name: 'tree_table_page',
159
+      //   meta: {
160
+      //     icon: 'md-git-branch',
161
+      //     title: '树状表格'
162
+      //   },
163
+      //   component: () => import('@/view/components/tree-table/index.vue')
164
+      // },
165
+      // {
166
+      //   path: 'cropper_page',
167
+      //   name: 'cropper_page',
168
+      //   meta: {
169
+      //     icon: 'md-crop',
170
+      //     title: '图片裁剪'
171
+      //   },
172
+      //   component: () => import('@/view/components/cropper/cropper.vue')
173
+      // },
174
+      // {
175
+      //   path: 'tables_page',
176
+      //   name: 'tables_page',
177
+      //   meta: {
178
+      //     icon: 'md-grid',
179
+      //     title: '多功能表格'
180
+      //   },
181
+      //   component: () => import('@/view/components/tables/tables.vue')
182
+      // },
183
+      // {
184
+      //   path: 'split_pane_page',
185
+      //   name: 'split_pane_page',
186
+      //   meta: {
187
+      //     icon: 'md-pause',
188
+      //     title: '分割窗口'
189
+      //   },
190
+      //   component: () => import('@/view/components/split-pane/split-pane.vue')
191
+      // },
192
+      // {
193
+      //   path: 'markdown_page',
194
+      //   name: 'markdown_page',
195
+      //   meta: {
196
+      //     icon: 'logo-markdown',
197
+      //     title: 'Markdown编辑器'
198
+      //   },
199
+      //   component: () => import('@/view/components/markdown/markdown.vue')
200
+      // },
201
+      // {
202
+      //   path: 'editor_page',
203
+      //   name: 'editor_page',
204
+      //   meta: {
205
+      //     icon: 'ios-create',
206
+      //     title: '富文本编辑器'
207
+      //   },
208
+      //   component: () => import('@/view/components/editor/editor.vue')
209
+      // },
210
+      // {
211
+      //   path: 'icons_page',
212
+      //   name: 'icons_page',
213
+      //   meta: {
214
+      //     icon: '_bear',
215
+      //     title: '自定义图标'
216
+      //   },
217
+      //   component: () => import('@/view/components/icons/icons.vue')
218
+      // }
219 219
     ]
220 220
   },
221 221
   {

+ 35
- 101
src/view/single-page/home/home.vue Visa fil

@@ -21,20 +21,21 @@
21 21
     </div>
22 22
     <!-- 内容上部 -->
23 23
     <div class="contentTop clearfix">
24
-          <div id="myChart" :style="{ width: '300px', height: '300px' }"></div>
24
+          <!-- <div id="myChart" :style="{ width: '300px', height: '300px' }"></div> -->
25 25
 
26
-           <!-- <i-circle :percent="80" stroke-linecap='square' stroke-width='30' size='130' trail-width='30'>
27
-              <span class="demo-circle-inner" style="font-size:24px">80%</span>
28
-          </i-circle> -->
26
+           <i-circle :percent="80" stroke-linecap='square' :stroke-width='15' :size='200' :trail-width='15'>
27
+              <span class="demo-circle-inner" style="font-weight:600">{{stuArrived+'%'}}</span><br />
28
+              <span class="demo-circle-inner" style="font-size:18px;color:black;">学生实到率</span>
29
+          </i-circle>
29 30
            <div class="ContentTopCenter" style="margin-right:50px">
30
-              <p>应到学生<span>{{num1}}</span></p><br />
31
-              <p>实到学生<span>{{num2}}</span></p>
31
+              <p>应到学生<span>{{shouldPerson}}</span></p><br />
32
+              <p>实到学生<span>{{reallyPerson}}</span></p>
32 33
             </div>
33 34
           <div id="ContentTopRight" style="padding:40px 0 0 0;margin-left:60px">
34 35
              <Row>
35 36
                   <i-col span="4" v-for="item in stuInfo" :key="item.id">
36 37
                       <div id="topRight">
37
-                        <p>{{item.title}}<span :class="{'red':item.red,'blue':item.blue}">{{item.num}}</span>
38
+                        <p>{{item.reason}}<span :class="{'red':item.red,'blue':item.blue}">{{item.num}}</span>
38 39
                         </p>
39 40
                       </div>
40 41
                   </i-col>
@@ -52,7 +53,7 @@
52 53
       <div class="teacher">
53 54
         <Row type="flex" justify="center" class="code-row-bg">
54 55
           <i-col span="12">
55
-            <i-circle :percent="40" stroke-color="#7DDFC9">
56
+            <i-circle :percent="40" stroke-color="#7DDFC9" :size='130'>
56 57
                <div class="demo-circle-custom">
57 58
                 <h1><span>40</span>人</h1>
58 59
                 </div>
@@ -60,7 +61,7 @@
60 61
             <h3>上课教师的数量</h3>
61 62
           </i-col>
62 63
           <i-col span="12">
63
-            <i-circle :percent="73" class="hour" stroke-color="#4A88F0">
64
+            <i-circle :percent="73"  :size='130' class="hour" stroke-color="#4A88F0">
64 65
                 <div class="demo-circle-custom">
65 66
                 <h1><span>73</span>节</h1>
66 67
                 </div>
@@ -80,7 +81,7 @@
80 81
       <div class="money">
81 82
          <Row type='flex' justify='center'>
82 83
             <i-col span="14">
83
-              <h1>¥<span>{{money+'.00'}}</span></h1>
84
+              <h1>¥<span>{{totalMoney+'.00'}}</span></h1>
84 85
               <h3>缴费总金额</h3>
85 86
               <div class="moneyBottom" >
86 87
                 <div class="moneyInfo">
@@ -96,14 +97,14 @@
96 97
                  <div class="submitNum"></div>
97 98
                   <img src="../../../assets/img/list.png" style="width:30px" alt="">
98 99
                  <div class="moneyNum">
99
-                   <span>{{submitNum}}</span>
100
+                   <span>{{submitPerson}}</span>
100 101
                    <h4>缴费学生人数</h4>
101 102
                  </div>
102 103
               </div>
103 104
               </div>
104 105
             </i-col>
105 106
             <i-col span="10">
106
-               <h1>¥<span>{{money+'.00'}}</span></h1>
107
+               <h1>¥<span>{{totalMoney+'.00'}}</span></h1>
107 108
               <h3>缴费总金额</h3>
108 109
               <div class="moneyInfo" style="margin-left:140px">
109 110
                 <img src="../../../assets/img/user2.png" style="width:30px" alt="">
@@ -128,25 +129,26 @@ export default {
128 129
   },
129 130
   data () {
130 131
     return {
131
-      num1: 45,
132
-      num2: 30,
133
-      money: 12360.00,
132
+      stuArrived: 86,
133
+      shouldPerson: 45,
134
+      reallyPerson: 30,
135
+      totalMoney: 12360.00,
134 136
       newStu: 38,
135
-      submitNum: 60,
137
+      submitPerson: 60,
136 138
       form: {
137 139
         date: ''
138 140
       },
139 141
       stuInfo: [
140 142
         {
141 143
           id: 1,
142
-          title: '请假',
144
+          reason: '请假',
143 145
           num: 2,
144 146
           red: false,
145 147
           blue: true
146 148
         },
147 149
         {
148 150
           id: 2,
149
-          title: '旷课',
151
+          reason: '旷课',
150 152
           num: 1,
151 153
           red: true,
152 154
           blue: false
@@ -154,7 +156,7 @@ export default {
154 156
         },
155 157
         {
156 158
           id: 3,
157
-          title: '停课',
159
+          reason: '停课',
158 160
           num: 2,
159 161
           red: false,
160 162
           blue: true
@@ -162,7 +164,7 @@ export default {
162 164
         },
163 165
         {
164 166
           id: 4,
165
-          title: '退费',
167
+          reason: '退费',
166 168
           num: 2,
167 169
           red: false,
168 170
           blue: true
@@ -170,7 +172,7 @@ export default {
170 172
         },
171 173
         {
172 174
           id: 5,
173
-          title: '转学',
175
+          reason: '转学',
174 176
           num: 2,
175 177
           red: false,
176 178
           blue: true
@@ -178,7 +180,7 @@ export default {
178 180
         },
179 181
         {
180 182
           id: 6,
181
-          title: '流失',
183
+          reason: '流失',
182 184
           num: 2,
183 185
           red: true,
184 186
           blue: false
@@ -188,82 +190,9 @@ export default {
188 190
     }
189 191
   },
190 192
   mounted () {
191
-    this.drawLine()
193
+    // this.drawLine()
192 194
   },
193 195
   methods: {
194
-    drawLine () {
195
-      let myChart = this.$echarts.init(document.getElementById('myChart'))
196
-      // 绘制图表
197
-      myChart.setOption({
198
-        title: {
199
-          show: true,
200
-          text: '',
201
-          x: 'left',
202
-          textStyle: {
203
-            fontSize: '15',
204
-            color: 'black',
205
-            fontWeight: 'bold'
206
-          }
207
-        },
208
-        // type: 'line',
209
-        tooltip: {
210
-          // 是否显示提示框组件,包括提示框浮层和 axisPointe
211
-          show: false,
212
-          // 触发类型: item:数据项触发,axis:坐标轴触发
213
-          trigger: 'item',
214
-          formatter: '{a} <br/>{b}: {c} ({d}%)'
215
-        },
216
-
217
-        series: [
218
-          {
219
-            // 系列名称,用于tooltip的显示,legend 的图例筛选,在 setOption 更新数据和配置项时用于指定对应的系列。
220
-            name: '任务进度',
221
-            type: 'pie',
222
-            // 饼图的半径,数组的第一项是内半径,第二项是外半径
223
-            radius: ['50%', '70%'],
224
-            // 是否启用防止标签重叠策略,默认开启
225
-            avoidLabelOverlap: false,
226
-            hoverAnimation: false,
227
-            // 标签的视觉引导线样式,在 label 位置 设置为'outside'的时候会显示视觉引导线
228
-            labelLine: {
229
-              normal: {
230
-                show: false
231
-              }
232
-            },
233
-            color: ['#498AF1', '#D9E8FE'],
234
-            data: [
235
-              {
236
-                // 数据值
237
-                value: 20,
238
-                // 数据项名称
239
-                name: '学生实到率',
240
-                // 该数据项是否被选中
241
-                selected: false,
242
-                // 单个扇区的标签配置
243
-                label: {
244
-                  normal: {
245
-                    // 是显示标签
246
-                    show: true,
247
-                    position: 'center',
248
-                    fontSize: 20,
249
-                    // 标签内容格式器,支持字符串模板和回调函数两种形式,字符串模板与回调函数返回的字符串均支持用 \n 换行
250
-                    formatter: '{b}\n{d}%'
251
-                  }
252
-                }
253
-              },
254
-              {
255
-                value: 100,
256
-                label: {
257
-                  normal: {
258
-                    show: false
259
-                  }
260
-                }
261
-              }
262
-            ]
263
-          }
264
-        ]
265
-      })
266
-    }
267 196
   }
268 197
 }
269 198
 </script>
@@ -316,22 +245,27 @@ export default {
316 245
   display: block;
317 246
   clear: both;
318 247
 }
248
+.demo-circle-inner{
249
+  font-size:30px;
250
+  font-family:'FZZhengHeiS-EB-GB';
251
+  color:rgba(75,204,238,1);
252
+  line-height:40px;
253
+}
319 254
 // 样式
320 255
    #contentTopRight{
321
-    //  float: right;
322 256
     padding-top: 40px;
323
-    //  width: 800px;
324 257
    }
325 258
 .wrap{
326 259
   background: white;
327 260
   padding: 10px;
328 261
 }
329 262
 .contentTop{
330
-  #myChart{
331
-    float: left;
332
-  }
263
+  // #myChart{
264
+  //   float: left;
265
+  // }
333 266
   .ivu-chart-circle{
334 267
     float: left;
268
+    margin:50px 40px 0  30px;
335 269
   }
336 270
   .ContentTopCenter{
337 271
     // flex:1;

Laddar…
Avbryt
Spara