feat:首页1
Showing
5 changed files
with
87 additions
and
25 deletions
... | @@ -7,6 +7,28 @@ | ... | @@ -7,6 +7,28 @@ |
7 | justify-content: space-between; | 7 | justify-content: space-between; |
8 | } | 8 | } |
9 | 9 | ||
10 | .workbench { | ||
11 | flex-wrap: wrap; | ||
12 | height: 100%; | ||
13 | |||
14 | li { | ||
15 | width: 32.5%; | ||
16 | height: 118px; | ||
17 | @include flex-center; | ||
18 | flex-direction: column; | ||
19 | color: #fff; | ||
20 | |||
21 | i { | ||
22 | color: #fff; | ||
23 | font-size: 30px; | ||
24 | } | ||
25 | } | ||
26 | |||
27 | li:nth-child(1) { | ||
28 | margin-bottom: 6px; | ||
29 | } | ||
30 | } | ||
31 | |||
10 | .marginZL15 { | 32 | .marginZL15 { |
11 | margin: 0 15px; | 33 | margin: 0 15px; |
12 | } | 34 | } |
... | @@ -36,7 +58,7 @@ | ... | @@ -36,7 +58,7 @@ |
36 | ul { | 58 | ul { |
37 | li { | 59 | li { |
38 | line-height: 36px; | 60 | line-height: 36px; |
39 | 61 | ||
40 | p { | 62 | p { |
41 | white-space: nowrap; | 63 | white-space: nowrap; |
42 | } | 64 | } | ... | ... |
... | @@ -3,8 +3,14 @@ | ... | @@ -3,8 +3,14 @@ |
3 | <div class="home-left"> | 3 | <div class="home-left"> |
4 | <el-row :gutter="8"> | 4 | <el-row :gutter="8"> |
5 | <el-col :span="12"> | 5 | <el-col :span="12"> |
6 | <el-card shadow="hover"> | 6 | <el-card shadow="hover" :body-style="{ padding: '0' }"> |
7 | 鼠标悬浮时显示 | 7 | <ul class="workbench flexst"> |
8 | <li v-for="(item, index) in newsListData" class="pointer" :key="index" | ||
9 | :style="{ backgroundColor: item.color }"> | ||
10 | <i class="el-icon-s-claim"></i> | ||
11 | {{ item.title }} | ||
12 | </li> | ||
13 | </ul> | ||
8 | </el-card> | 14 | </el-card> |
9 | </el-col> | 15 | </el-col> |
10 | <el-col :span="12"> | 16 | <el-col :span="12"> |
... | @@ -14,7 +20,7 @@ | ... | @@ -14,7 +20,7 @@ |
14 | <i class="el-icon-s-unfold pointer"></i> | 20 | <i class="el-icon-s-unfold pointer"></i> |
15 | </div> | 21 | </div> |
16 | <ul> | 22 | <ul> |
17 | <li v-for="(item, index) in notice" :key="index" class="flexst"> | 23 | <li v-for="(item, index) in notice" :key="index" class="flexst pointer"> |
18 | <p class="list-title">{{ item.title }}</p> | 24 | <p class="list-title">{{ item.title }}</p> |
19 | <p class="marginZL15">{{ item.date }}</p> | 25 | <p class="marginZL15">{{ item.date }}</p> |
20 | <p>{{ item.state }}</p> | 26 | <p>{{ item.state }}</p> |
... | @@ -41,11 +47,11 @@ | ... | @@ -41,11 +47,11 @@ |
41 | <el-col :span="12"> | 47 | <el-col :span="12"> |
42 | <el-card shadow="hover"> | 48 | <el-card shadow="hover"> |
43 | <div slot="header" class="flexst"> | 49 | <div slot="header" class="flexst"> |
44 | <h5 class="title">公司邮件</h5> | 50 | <h5 class="title">法律法规</h5> |
45 | <i class="el-icon-s-unfold pointer"></i> | 51 | <i class="el-icon-s-unfold pointer"></i> |
46 | </div> | 52 | </div> |
47 | <ul> | 53 | <ul> |
48 | <li v-for="(item, index) in mailList" :key="index" class="flexst"> | 54 | <li v-for="(item, index) in mailList" @click="handleView" :key="index" class="flexst pointer"> |
49 | <p class="right15">{{ item.date }}</p> | 55 | <p class="right15">{{ item.date }}</p> |
50 | <p class="list-title">{{ item.title }}</p> | 56 | <p class="list-title">{{ item.title }}</p> |
51 | </li> | 57 | </li> |
... | @@ -73,6 +79,38 @@ export default { | ... | @@ -73,6 +79,38 @@ export default { |
73 | components: { calendar }, | 79 | components: { calendar }, |
74 | data () { | 80 | data () { |
75 | return { | 81 | return { |
82 | newsListData: [ | ||
83 | { | ||
84 | icon: '', | ||
85 | title: '任务', | ||
86 | color: '#61AEFF' | ||
87 | }, | ||
88 | { | ||
89 | icon: '', | ||
90 | title: '邮件', | ||
91 | color: '#43DEB3' | ||
92 | }, | ||
93 | { | ||
94 | icon: '', | ||
95 | title: '消息', | ||
96 | color: '#F3C143' | ||
97 | }, | ||
98 | { | ||
99 | icon: '', | ||
100 | title: '日历', | ||
101 | color: '#F09936' | ||
102 | }, | ||
103 | { | ||
104 | icon: '', | ||
105 | title: '常用功能', | ||
106 | color: '#9C92FF' | ||
107 | }, | ||
108 | { | ||
109 | icon: '', | ||
110 | title: '申请', | ||
111 | color: '#589FFF' | ||
112 | } | ||
113 | ], | ||
76 | chartData: [{ | 114 | chartData: [{ |
77 | year: '1991', | 115 | year: '1991', |
78 | value: 15468 | 116 | value: 15468 |
... | @@ -92,14 +130,11 @@ export default { | ... | @@ -92,14 +130,11 @@ export default { |
92 | year: '1996', | 130 | year: '1996', |
93 | value: 31056 | 131 | value: 31056 |
94 | }, { | 132 | }, { |
95 | year: '1997', | 133 | year: '1995', |
96 | value: 31982 | 134 | value: 17000 |
97 | }, { | ||
98 | year: '1998', | ||
99 | value: 32040 | ||
100 | }, { | 135 | }, { |
101 | year: '1999', | 136 | year: '1996', |
102 | value: 33233 | 137 | value: 31056 |
103 | }], | 138 | }], |
104 | notice: [ | 139 | notice: [ |
105 | { | 140 | { |
... | @@ -168,6 +203,10 @@ export default { | ... | @@ -168,6 +203,10 @@ export default { |
168 | this.buildChart(); | 203 | this.buildChart(); |
169 | }, | 204 | }, |
170 | methods: { | 205 | methods: { |
206 | handleView () { | ||
207 | const href = 'http://storage.xuetangx.com/public_assets/xuetangx/PDF/PlayerAPI_v1.0.6.pdf' | ||
208 | window.open(href, '_blank'); | ||
209 | }, | ||
171 | buildChart () { | 210 | buildChart () { |
172 | var chart = new G2.Chart({ | 211 | var chart = new G2.Chart({ |
173 | container: 'mountNode', | 212 | container: 'mountNode', |
... | @@ -204,5 +243,6 @@ export default { | ... | @@ -204,5 +243,6 @@ export default { |
204 | } | 243 | } |
205 | </script> | 244 | </script> |
206 | <style scoped lang="scss"> | 245 | <style scoped lang="scss"> |
246 | @import "~@/styles/mixin.scss"; | ||
207 | @import "./index.scss"; | 247 | @import "./index.scss"; |
208 | </style> | 248 | </style> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -8,11 +8,6 @@ | ... | @@ -8,11 +8,6 @@ |
8 | <el-form :model="ruleForm" ref="ruleForm" label-width="100px"> | 8 | <el-form :model="ruleForm" ref="ruleForm" label-width="100px"> |
9 | <el-row> | 9 | <el-row> |
10 | <el-col :span="8"> | 10 | <el-col :span="8"> |
11 | <el-form-item label="业务来源" prop="ywlymc"> | ||
12 | <el-input v-model="ruleForm.ywlymc"></el-input> | ||
13 | </el-form-item> | ||
14 | </el-col> | ||
15 | <el-col :span="8"> | ||
16 | <el-form-item label="申请业务名称" prop="sqywmc"> | 11 | <el-form-item label="申请业务名称" prop="sqywmc"> |
17 | <el-input v-model="ruleForm.sqywmc"></el-input> | 12 | <el-input v-model="ruleForm.sqywmc"></el-input> |
18 | </el-form-item> | 13 | </el-form-item> |
... | @@ -22,13 +17,13 @@ | ... | @@ -22,13 +17,13 @@ |
22 | <el-input v-model="ruleForm.qlrmc"></el-input> | 17 | <el-input v-model="ruleForm.qlrmc"></el-input> |
23 | </el-form-item> | 18 | </el-form-item> |
24 | </el-col> | 19 | </el-col> |
25 | </el-row> | ||
26 | <el-row> | ||
27 | <el-col :span="8"> | 20 | <el-col :span="8"> |
28 | <el-form-item label="义务人" prop="ywrmc"> | 21 | <el-form-item label="义务人" prop="ywrmc"> |
29 | <el-input v-model="ruleForm.ywrmc"></el-input> | 22 | <el-input v-model="ruleForm.ywrmc"></el-input> |
30 | </el-form-item> | 23 | </el-form-item> |
31 | </el-col> | 24 | </el-col> |
25 | </el-row> | ||
26 | <el-row> | ||
32 | <el-col :span="8"> | 27 | <el-col :span="8"> |
33 | <el-form-item label="受理时间" prop="slsj"> | 28 | <el-form-item label="受理时间" prop="slsj"> |
34 | <el-date-picker v-model="ruleForm.slsj" value-format="yyyy-MM-dd" class="width100" type="date" | 29 | <el-date-picker v-model="ruleForm.slsj" value-format="yyyy-MM-dd" class="width100" type="date" |
... | @@ -55,7 +50,6 @@ export default { | ... | @@ -55,7 +50,6 @@ export default { |
55 | return { | 50 | return { |
56 | myValue: this.value, | 51 | myValue: this.value, |
57 | ruleForm: { | 52 | ruleForm: { |
58 | ywlymc: '', | ||
59 | sqywmc: '', | 53 | sqywmc: '', |
60 | qlrmc: '', | 54 | qlrmc: '', |
61 | ywrmc: '', | 55 | ywrmc: '', | ... | ... |
1 | <template> | 1 | <template> |
2 | <div class="from-clues"> | 2 | <div class="from-clues"> |
3 | <!-- 表单部分 --> | ||
4 | <div class="from-clues-header"> | 3 | <div class="from-clues-header"> |
5 | <el-form :model="queryForm" ref="queryForm" @submit.native.prevent label-width="80px"> | 4 | <el-form :model="queryForm" ref="queryForm" @submit.native.prevent label-width="80px"> |
6 | <el-row> | 5 | <el-row> |
... | @@ -57,7 +56,7 @@ | ... | @@ -57,7 +56,7 @@ |
57 | </div> | 56 | </div> |
58 | <div class="from-clues-content"> | 57 | <div class="from-clues-content"> |
59 | <lb-table :page-size="pageData.size" class="loadingtext" @sort-change="handleSort" | 58 | <lb-table :page-size="pageData.size" class="loadingtext" @sort-change="handleSort" |
60 | :current-page.sync="pageData.currentPage" :heightNum="300" :total="tableData.total" | 59 | :current-page.sync="pageData.currentPage" :heightNum="290" :total="tableData.total" |
61 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" | 60 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" |
62 | :data="tableData.data"> | 61 | :data="tableData.data"> |
63 | </lb-table> | 62 | </lb-table> |
... | @@ -98,6 +97,13 @@ export default { | ... | @@ -98,6 +97,13 @@ export default { |
98 | sendThis(this); | 97 | sendThis(this); |
99 | this.queryClick() | 98 | this.queryClick() |
100 | }, | 99 | }, |
100 | watch: { | ||
101 | queryForm: { | ||
102 | handler (newName, oldName) { | ||
103 | }, | ||
104 | immediate: true | ||
105 | } | ||
106 | }, | ||
101 | methods: { | 107 | methods: { |
102 | // 列表渲染接口 | 108 | // 列表渲染接口 |
103 | queryClick () { | 109 | queryClick () { | ... | ... |
-
Please register or sign in to post a comment