9b7e125f
monkeyhouyi
属地页面
|
1
2
3
4
|
<template>
<div class="overview">
<el-row :gutter="20">
<el-col :span="16">
|
ce1de261
monkeyhouyi
专项行动
|
5
6
|
<div class="item-box todo">
<div class="item-title">事件中心</div>
|
9b7e125f
monkeyhouyi
属地页面
|
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<div class="item-body">
<template>
<el-table :data="todoTableData" style="width: 100%" stripe>
<el-table-column type="index" width="50"> </el-table-column>
<el-table-column
prop="teskName"
label="任务名称"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop="teskCode"
label="任务编号"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop="teskStatus"
label="状态"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop="teskUser"
label="分配者"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop="teskTime"
label="任务期限"
show-overflow-tooltip
>
</el-table-column>
<el-table-column label="操作">
<template>
<el-button type="primary" size="small">处理</el-button>
</template>
</el-table-column>
</el-table>
</template>
</div>
</div>
|
ce1de261
monkeyhouyi
专项行动
|
50
51
52
53
54
55
|
<!--<div
class="item-box earmarked"
:style="`height: calc(${
isSHILevel ? '50vh - 115px' : '100vh - 205px'
});`"
>
|
9b7e125f
monkeyhouyi
属地页面
|
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
<div class="item-title">专项行动</div>
<div class="item-body">
<el-row :gutter="6" class="item-one-list">
<el-col
:span="6"
v-for="(item, index) in aimList"
:key="index"
style="margin-bottom: 6px"
>
<div class="item-one-box">
<div class="one-title">关于xxxxxx的专项行动</div>
<template v-if="item.type == 1">
<div class="one-info">
<div>区县:8(已填7)</div>
<div>外协:无</div>
</div>
<div class="one-info">行动时间:2024-07-01至2024-07-31</div>
<el-button type="text" class="el-button-qu">管理</el-button>
<el-button type="text" class="el-button-qu">查看</el-button>
</template>
<template v-else>
<div class="one-info">行动时间:2024-07-01至2024-07-31</div>
<div class="btn-box">
<el-button type="success" size="small">填报</el-button>
<div class="err">即将超时</div>
</div>
</template>
</div>
</el-col>
</el-row>
</div>
|
ce1de261
monkeyhouyi
专项行动
|
87
|
</div>-->
|
9b7e125f
monkeyhouyi
属地页面
|
88
89
|
</el-col>
<el-col :span="8">
|
93186f57
monkeyhouyi
前端整改页面
|
90
|
<!-- <div class="item-box tip">
|
9b7e125f
monkeyhouyi
属地页面
|
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
<div class="item-title">工作提示</div>
<div class="item-body">
<template>
<el-table :data="todoTableData" style="width: 100%" stripe>
<el-table-column
prop="teskName"
label="内容"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop="teskCode"
label="事件"
show-overflow-tooltip
>
</el-table-column>
</el-table>
</template>
</div>
|
93186f57
monkeyhouyi
前端整改页面
|
110
|
</div> -->
|
9b7e125f
monkeyhouyi
属地页面
|
111
|
<div class="item-box msg">
|
ce1de261
monkeyhouyi
专项行动
|
112
113
114
115
116
117
118
119
120
121
|
<div class="item-title">
<div class="left">通知公告</div>
<el-tooltip effect="dark" content="刷新" placement="top">
<el-link
icon="icon-ym icon-ym-Refresh NCC-common-head-icon"
:underline="false"
@click="resetMsg()"
/>
</el-tooltip>
</div>
|
9b7e125f
monkeyhouyi
属地页面
|
122
123
|
<div class="item-body">
<template>
|
ce1de261
monkeyhouyi
专项行动
|
124
|
<el-table :data="msgList" style="width: 100%" stripe>
|
9b7e125f
monkeyhouyi
属地页面
|
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
|
<el-table-column
prop="teskName"
label="内容"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop="teskCode"
label="事件"
show-overflow-tooltip
>
</el-table-column>
</el-table>
</template>
</div>
</div>
</el-col>
</el-row>
</div>
</template>
<script>
import {
todoObj,
tipObj,
areaObj,
chObj,
} from "@/assets/mockdata/demodata.json";
|
ce1de261
monkeyhouyi
专项行动
|
153
|
import { computed } from "vue";
|
9b7e125f
monkeyhouyi
属地页面
|
154
155
156
157
|
export default {
name: "Overview",
data() {
return {
|
ecc43230
monkeyhouyi
优化首页,应用管理
|
158
|
todoTableData: [],
|
ce1de261
monkeyhouyi
专项行动
|
159
|
msgList: [],
|
9b7e125f
monkeyhouyi
属地页面
|
160
161
|
tipTableData: [],
aimList: [],
|
ce1de261
monkeyhouyi
专项行动
|
162
|
};
|
9b7e125f
monkeyhouyi
属地页面
|
163
164
|
},
created() {
|
ce1de261
monkeyhouyi
专项行动
|
165
|
this.getMsgList();
|
9b7e125f
monkeyhouyi
属地页面
|
166
167
168
|
this.getTipList();
this.getAimList();
},
|
ecc43230
monkeyhouyi
优化首页,应用管理
|
169
170
171
|
computed: {
isSHILevel() {
// 判断角色是否为‘市级办公室’
|
ce1de261
monkeyhouyi
专项行动
|
172
|
return this.$store.state.user.islader;
|
ecc43230
monkeyhouyi
优化首页,应用管理
|
173
174
|
},
},
|
9b7e125f
monkeyhouyi
属地页面
|
175
|
methods: {
|
ce1de261
monkeyhouyi
专项行动
|
176
|
getMsgList() {
|
9b7e125f
monkeyhouyi
属地页面
|
177
|
for (let index = 0; index < 10; index++) {
|
ce1de261
monkeyhouyi
专项行动
|
178
|
this.msgList.push(todoObj);
|
9b7e125f
monkeyhouyi
属地页面
|
179
180
181
|
this.todoTableData.push(todoObj);
}
},
|
ce1de261
monkeyhouyi
专项行动
|
182
183
184
185
|
resetMsg() {
this.msgList = [];
this.getMsgList();
},
|
9b7e125f
monkeyhouyi
属地页面
|
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
|
getTipList() {
for (let index = 0; index < 10; index++) {
this.tipTableData.push(tipObj);
}
},
getAimList() {
for (let index = 0; index < 12; index++) {
if (Math.random() > 0.5) {
this.aimList.push(areaObj);
} else {
this.aimList.push(chObj);
}
}
},
},
|
9b7e125f
monkeyhouyi
属地页面
|
201
202
203
204
205
206
207
208
209
210
|
};
</script>
<style scoped lang="scss">
.overview {
.item-box {
width: 100%;
border-radius: 10px;
background-color: rgba(244, 244, 245, 0.38);
margin-bottom: 15px;
&.todo {
|
ce1de261
monkeyhouyi
专项行动
|
211
|
height: calc(100vh - 210px);
|
9b7e125f
monkeyhouyi
属地页面
|
212
|
}
|
ce1de261
monkeyhouyi
专项行动
|
213
|
//&.earmarked {
|
ecc43230
monkeyhouyi
优化首页,应用管理
|
214
|
// height: calc(50vh - 115px);
|
ce1de261
monkeyhouyi
专项行动
|
215
216
|
//margin-bottom: 0;
//}
|
93186f57
monkeyhouyi
前端整改页面
|
217
218
219
|
// &.tip {
// height: calc(50vh - 60px);
// }
|
9b7e125f
monkeyhouyi
属地页面
|
220
|
&.msg {
|
93186f57
monkeyhouyi
前端整改页面
|
221
|
height: calc(100vh - 200px);
|
9b7e125f
monkeyhouyi
属地页面
|
222
223
224
|
margin-bottom: 0;
}
.item-title {
|
ce1de261
monkeyhouyi
专项行动
|
225
226
227
|
display: flex;
justify-content: space-between;
align-items: center;
|
9b7e125f
monkeyhouyi
属地页面
|
228
229
230
231
|
color: rgba(255, 255, 255, 1);
font-size: 16px;
line-height: 23px;
padding: 10px;
|
ce1de261
monkeyhouyi
专项行动
|
232
233
234
|
.el-link.el-link--default {
color: #fff !important;
}
|
9b7e125f
monkeyhouyi
属地页面
|
235
236
237
238
|
}
.item-body {
height: calc(100% - 68px);
margin: 0 13px;
|
ecc43230
monkeyhouyi
优化首页,应用管理
|
239
|
// padding-bottom: 28px;
|
9b7e125f
monkeyhouyi
属地页面
|
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
|
.el-table {
border-radius: 10px;
height: 100%;
:deep(.el-table__body-wrapper.is-scrolling-none) {
height: calc(100% - 47px);
overflow-y: scroll;
}
}
}
}
.earmarked {
.item-title {
margin-bottom: 0;
}
.item-one-list {
max-height: 100%;
overflow-y: scroll;
margin-bottom: -6px;
.item-one-box {
box-sizing: border-box;
background-color: #fff;
border-radius: 5px;
padding: 3px;
height: 90px;
.one-title {
color: rgba(0, 122, 255, 1);
font-size: 14px;
line-height: 20px;
}
.one-info {
display: flex;
font-size: 12px;
line-height: 20px;
}
.el-button-qu {
padding: 5px 0;
}
.btn-box {
margin-top: 10px;
display: flex;
align-items: flex-end;
.err {
margin-left: 10px;
color: rgba(236, 47, 47, 1);
font-size: 12px;
line-height: 17px;
}
}
}
}
}
}
</style>
|