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
<script setup>
import echartBarHoriz from "./portlet/echart-barHoriz.vue"
import echartLine from "./portlet/echart-line.vue"
import echartBarHorizScroll from "./portlet/echart-barHorizScroll.vue"
import echartGaugeTriple from "./portlet/echart-gaugeTriple.vue"
import echartSunburst from "./portlet/echart-sunburst.vue"
import counterGrid from "./portlet/counter-grid.vue"
import echartMap from "./portlet/echart-map.vue"
import mainNav from "@/common/mainNav.vue"
import externalLinks from "@/common/externalLinks.vue"
const comps={
echartBarHoriz,
echartLine,
echartBarHorizScroll,
echartGaugeTriple,
echartSunburst,
echartMap,
counterGrid,
}
const state=reactive({
systemTitleConfig:{
width:1000,
decoration:false,
backgroundColor:$c.cbA01,
decorationColor:[$c.cbA02,$c.bll5],
fontColor:[$c.bll7,$c.bll5]
},
panelTitleConfig:{
width:160,
color:$c.bk,
},
dialogConfig:{
show:false,
width:'60%',
height:'60%',
title:"DialogTitle",
titleWidth:350,
},
// panelTitleConfig:{
// width:180,
// theme:true
// },
areas:[
{name:"left",portlets:[
{id:"l2",title:"收支情況",component:"echartBarHoriz",border:"aYinTechBorderA1",hideTitle:true},
{id:"l3",title:"業務收益情況",component:"echartLine",border:"aYinTechBorderA1",hideTitle:true},
{id:"l1",title:"銷售任務",component:"echartBarHorizScroll",border:"aYinTechBorderA1",hideTitle:true},
]},
{name:"right",portlets:[
{id:"r1",title:"銷售情況",component:"counterGrid",border:"blank",hideTitle:true},
{id:"r2",title:"任務完成情況",component:"echartGaugeTriple",border:"aYinTechBorderA1",hideTitle:true},
{id:"r3",title:"業務利潤佔比",component:"echartSunburst",border:"aYinTechBorderA1"},
]},
]
})
const {systemTitleConfig,panelTitleConfig,dialogConfig,areas}=toRefs(state)
const getConfig=(item)=>{
const {id}=item
if(id=='r3'){
return {
directionAlt: true,
rotate: "z",
opacity: 0.8,
backgroundColor:$c.gyl1,
decorationColor:[$c.cyl3,$c.bll4],
borderColor:$c.gyl5,
titleColor:$c.bk
}
}else if(id.includes("l")){
return {
title:item.title,
titleWidth:120,
decoration:false,
decorationAlt: true,
rotate: "y",
opacity: 0.8,
backgroundColor:$c.gyl1,
decorationColor:[$c.cyl3,$c.bll4],
borderColor:$c.gyl5,
titleColor:$c.bk,
fontWeight:"bold"
}
}else{
return {
title:item.title,
titleWidth:120,
decoration:false,
opacity:.8,
backgroundColor:$c.gyl1,
decorationColor:[$c.cyl3,$c.bll4],
borderColor:$c.gyl5,
titleColor:$c.bk,
fontWeight:"bold"
}
}
}
onMounted(()=>{
})
</script>
<template>
<div class="screen1080D">
<mainNav></mainNav>
<externalLinks></externalLinks>
<div :class="`area-box area-${area.name}`" v-for="area in areas" :key="area.id">
<div class="portlet-wrapper" v-for="item in area.portlets" :key="item.id">
<component v-if="item.border" :is='item.border' :config="getConfig(item)">
<panelTitleA1 v-if="!item.hideTitle" :config="panelTitleConfig" >{{item.title}}</panelTitleA1>
<component :is='comps[item.component]' ></component>
</component>
<template v-else>
<component :is='item.component'></component>
<i>{{item.component}}</i>
</template>
</div>
</div>
<systemTitleA2 :config="systemTitleConfig">TechUI數據可視化成型工具</systemTitleA2>
<echartMap></echartMap>
</div>
</template>
<style lang="less">
.screen1080D{ z-index: 1;padding:60px 30px 30px 30px; height: 100%; //url(../common/images/bg.png)
.techButtonA2 {z-index: 10; .poa; bottom:20px; left:50%; .fixc("x");}
.i(){.poa; bottom:0; right:10px; font-size: 12px; opacity: .1; .fc(@wh); z-index: 10;}
display: grid; grid-template-columns: repeat(24,1fr); grid-template-rows:repeat(24,1fr); grid-gap: 30px;
.area-box{.bdr(5px); pointer-events: visible; position: relative; z-index: 10;
.board-3d-wrap{ .poa; .fullbox;
}
//<row-start> / <column-start> / <row-end> / <column-end>;
.blank,
.portlet-wrapper{.por;
>i{.i;}
}
.border-content{>i{.i;}}
&.area-left{ grid-area: 1 / 1 / 25 / 7; }
&.area-right{ grid-area: 1 / 19 / 25 / 25;
.portlet-wrapper{
&:nth-child(3){grid-area:3 / 1 /5/ 2}
}
}
&.area-left{ display: grid; grid-template-columns: repeat(1,1fr); grid-template-rows:repeat(3,1fr); grid-gap: 20px;}
&.area-right{ display: grid; grid-template-columns: repeat(1,1fr); grid-template-rows:repeat(4,1fr); grid-gap: 20px;}
}
.content-tabs{.poa; top:-40px; left:80px; right:80px; text-align: center; height: 40px;
&:before{content:" "; .bdb(var(--button-bd_hov));left:0; right:0; bottom:10px;.poa; z-index: 1;}
.tabs-item{display:inline-block; padding:0 10px; .ff("cn1"); .fc(var(--font-normal)); height: 30px;line-height: 30px; cursor: pointer; .ani; z-index: 2; .por;
&:before{content:" "; .bgc(var(--button-bd_hov)); .poa; .fullbox; opacity: 0;}
&:hover{&:before{opacity: .3;}}
&.active{ .bdb(var(--font-strong)); .fc(var(--font-strong));}
}
}
.nav-wrap{
.item{.fc(@gym5);
&:before{ .bgc(@cbl3);}
&:hover{.fc(@cbl5);}
&.active{.fc(@bk); }
}
}
}
</style>