index.vue
9.43 KB
1
2
3
4
5
6
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
50
51
52
53
54
55
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
<template>
<div class="main" style="padding: 18px!important;">
<div class="panel content_box">
<el-card class="panel_left">
<div slot="header" class="clearfix">
<span>工作箱</span>
</div>
<div class="enter_box">
<div
class="box"
v-for="(item, index) in workList"
:key="index"
@click="handleSelect(item)"
>
<el-badge :value="item.count" :max="99" class="item">
<img :src="item.img" alt="" />
</el-badge>
<span>{{ item.name }}</span>
</div>
</div>
</el-card>
<el-card class="panel_right">
<div slot="header" class="clearfix">
<span>快捷入口</span>
<span class="edit" @click="isEdit = true" v-show="!isEdit">编辑</span>
<span class="edit" @click="isEdit = false" v-show="isEdit">完成</span>
</div>
<div class="enter_box">
<div
class="box"
v-for="(item, index) in list"
:key="index"
@click="handleSelect(item)"
>
<div class="psr">
<img :src="item.img" alt="" />
<i class="fa fa-times-circle fa-2x" v-show="isEdit && index!=list.length-1" @click="edit(index)" aria-hidden="true"></i>
</div>
<span>{{ item.name }}</span>
</div>
</div>
</el-card>
</div>
<div class="notice" ref="notice">
<el-card class="news">
<div slot="header" class="clearfix">
<span>通知公告</span>
<span class="edit">查看全部 <i class="fa fa-angle-right " aria-hidden="true"></i></span>
</div>
<el-table
:data="tableData"
height="240"
:row-class-name="tableRowClassName"
>
<el-table-column prop="title" width="500" align="left" class="tr-title" label="标题">
</el-table-column>
<el-table-column
prop="date"
align="center"
label="发布时间"
>
</el-table-column>
</el-table>
</el-card>
<el-card class="download">
<div slot="header" class="clearfix">
<span>相关下载</span>
<span class="edit">查看全部 <i class="fa fa-angle-right " aria-hidden="true"></i></span>
</div>
<el-table
:data="downloadData"
height="240"
border
@row-click="download"
:row-class-name="tableRowClassName"
>
<el-table-column
type="index" align="center"
width="70" label="序号">
</el-table-column>
<el-table-column prop="name" align="center" label="下载文件">
</el-table-column>
</el-table>
</el-card>
</div>
<div class="tj">
<el-card class="panel_right">
<div slot="header" class="clearfix">
<span>成果类别占比</span>
</div>
<div class="enter_box" ref="enterBox">
<img src="../../assets/images/cglbzb.png" :style="{'height':imgHeight + 'px'}" alt="">
</div>
</el-card>
<el-card class="cghj">
<div slot="header" class="clearfix">
<span>成果汇交数量</span>
<img src="../../assets/images/cghjsllegend.png" style="float: right;" alt="">
</div>
<div class="enter_box">
<img src="../../assets/images/cghjsl.png" :style="{'height':imgHeight + 'px'}" alt="">
</div>
</el-card>
<el-card class="cghj-pie">
<div slot="header" class="clearfix">
<span>成果汇交数量</span>
</div>
<div class="enter_box">
<img src="../../assets/images/cghjsl-pie.png" :style="{'height':imgHeight + 'px'}" alt="">
</div>
</el-card>
</div>
</div>
</template>
<script>
import {getDbxList} from "@api/dbx";
export default {
components:{},
data() {
return {
workList: [
{ name: "待办箱", img: require("@assets/images/dbx.png"),count:0,path:'/dbx' },
{ name: "退件箱", img: require("@assets/images/tjx.png"),count:0 },
],
list: [
{ name: "宗地分割", img: require("@assets/images/zdfg.png"),path:'change',oLevel:'fg',tLevel:'zd'},
{
name: "宗地合并",
img: require("@assets/images/drlpbmb.png"),
path:'change',oLevel:'hb',tLevel:'zd'
},
{ name: "范围属性变更", img: require("@assets/images/xbfw.png"),path:'change',oLevel:'fwsxbg',tLevel:'' },
{ name: "重新落宗", img: require("@assets/images/cxlz.png"),path:'change',oLevel:'cxlz',tLevel:''},
{ name: "添加", img: require("@assets/images/tj.png") },
],
tableData: [
{
title:"明起部分不动产登记业务实行“网上不见面”办理",
date:"2020-12-30"
},
{
title:"【通知】关于暂停不动产交易缴税业务的通知",
date:"2020-12-30"
},
{
title:"我市不动产登记改革跨入新领域",
date:"2020-12-30"
},
// {
// title:"住建委发布白皮书 持续推进房地产市场平稳健康发展",
// date:"2020-12-30"
// },
// {
// title:"不动产登记与公证业务全面联办 中心城区下月起实行",
// date:"2020-12-30"
// },
// {
// title:"坚持以人民为中心发展思想 推进解决房地产历史遗留问题",
// date:"2020-12-30"
// }
],
downloadData:[
{
name:"宗地导入模板",
url:"api/tx/excelGeo/template?type=zd"
},{
name:"自然幢导入模板",
url:"api/tx/excelGeo/template?type=zrz"
}
],
tableHeight: 0,
total: 0,
isEdit:false,
imgHeight:200
};
},
mounted() {
this.$nextTick(() => {
// this.tableHeight = this.$refs.notice.offsetHeight - 54;
this.imgHeight = this.$refs.enterBox.offsetHeight - 10
});
this.getDbxCount();
},
methods: {
download(row,column,event){
window.open(row.url)
},
handleSelect(item) {
console.log(JSON.stringify(item)+":item")
//非编辑状态才可以点击
if (!this.isEdit) {
if(item.path){
let params = {};
if(item.oLevel!==''){
params.oLevel = item.oLevel;
}
if(item.tLevel!==''){
params.tLevel = item.tLevel;
}
this.$router.push({
path:item.path,
query:params
})
}
}
},
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 !== 0) {
return "even-row";
} else {
return "";
}
},
//快捷入口管理
edit(index){
this.$confirm('此操作删除该快捷入口, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.list.splice(index,1);
//调用删除接口 TO DO
this.$message({
type: 'success',
message: '删除成功!'
});
}).catch(() => {
});
},
getDbxCount(){
let data = {
pageSize:15,
pageNo:1
}
getDbxList(data).then((res)=>{
if(res.code === 200){
this.workList.forEach((item,index)=>{
if(item.name === '待办箱'){
item.count = res.result.total;
}
})
}
})
}
},
};
</script>
<style rel="stylesheet/less" scoped lang="less">
.main {
display: flex;
flex-direction: column;
overflow: scroll;
height: 100%;
.clearfix {
span {
color: #6d7278;
float: left;
}
.edit {
color: #9b9b9b;
float: right;
cursor: pointer;
.fa-angle-right{
font-size: 26px;
line-height: 7px;
position: relative;
top: 2px;
}
}
}
.panel {
@flex();
width: 100%;
padding: 0 0 18px!important;
.panel_left {
width: 33.333%;
margin-right: 20px;
flex: 1;
}
.panel_right {
width: 66.666%;
}
.enter_box {
@flex();
div {
cursor: pointer;
flex: 1;
img {
width: 68px;
height: 68px;
display: block;
margin: 0 auto;
}
span {
color: #6d7278;
display: block;
text-align: center;
margin-top: 10px;
}
.fa-times-circle {
color: #fa6400;
font-size: 24px;
position: absolute;
top: -4px;
right: -10px;
background: #fff;
border-radius: 10px;
box-sizing: border-box;
padding: 1px;
}
.el-badge{
width: 68px;
height: 68px;
display: block;
margin: 0 auto;
/deep/.el-badge__content{
top: 10px;
right: 14px;
background-color: #fa6400;
}
}
}
.psr {
width: 68px;
height: 68px;
display: block;
margin: 0 auto;
img {
width: 68px;
height: 68px;
}
}
}
/deep/ .el-card__body {
padding: 30px 20px;
}
}
.notice {
padding: 0;
height: 295px;
padding-bottom: 18px;
@flex();
.news {
float: left;
float: left;
margin-right: 20px;
flex: 1;
border: 1px solid #E6E6E6;
/deep/ .el-card__body{
padding: 0;
}
}
.download {
width: 50%;
border: 1px solid #E6E6E6;
/deep/ .el-card__body{
padding: 0;
}
}
.el-card__body {
padding: 0;
}
th.is-left {
text-align: center;
}
tr{
background-color: #FBFBFB;
}
}
.tj{
flex: 1;
width: 100%;
display: -webkit-box;
display: -moz-box;
display: box;
>div{
flex: 1;
-webkit-box-orient: vertical; /*属性值:[horizontal]横向/[vertical]纵向*/
-moz-box-orient: horizontal;
box-orient: horizontal;
height: 100%;
margin-right: 20px;
background: #fff;
border: 1px solid #E6E6E6;
box-shadow: 0 0 8px 0 rgba(232, 237, 250, 0.6), 0 2px 4px 0 rgba(232, 237, 250, 0.5);
/deep/ .el-card__body{
height: calc(100% - 93px);
overflow: hidden;
.enter_box{
height: 100%;
overflow: hidden;
img{
height: 200px;
display: block;
margin: 0 auto;
}
}
}
}
.cghj-pie{
margin-right: 0;
}
}
.pagination {
padding: 18px;
}
.el-table{
border: 0!important;
}
/deep/ .el-table .cell{
padding-left: 20px;
}
}
</style>