Merge branch 'master-500-dev-lushangqing' into 'master-500-dev'
树结构样式优化,系统汇总信息图片位置更改 See merge request !64
Showing
13 changed files
with
71 additions
and
17 deletions
@@ -5,10 +5,10 @@ const prodEnv = require('./prod.env') | @@ -5,10 +5,10 @@ const prodEnv = require('./prod.env') | ||
5 | module.exports = merge(prodEnv, { | 5 | module.exports = merge(prodEnv, { |
6 | NODE_ENV: '"development"', | 6 | NODE_ENV: '"development"', |
7 | BASE_API: '"http://192.168.0.59:9095"', | 7 | BASE_API: '"http://192.168.0.59:9095"', |
8 | - MONITOR_GATEWAY: '"http://192.168.0.59:8087"' | 8 | + MONITOR_GATEWAY: '"http://192.168.0.59:8080"' |
9 | /* BASE_API: '"http://192.168.0.75:9095"', | 9 | /* BASE_API: '"http://192.168.0.75:9095"', |
10 | MONITOR_GATEWAY: '"http://192.168.0.75:8080"'*/ | 10 | MONITOR_GATEWAY: '"http://192.168.0.75:8080"'*/ |
11 | - // BASE_API: '"http://192.168.1.50:9095"', | ||
12 | - // MONITOR_GATEWAY: '"http://192.168.1.50:8080"' | 11 | + /*BASE_API: '"http://192.168.1.52:8089"', |
12 | + MONITOR_GATEWAY: '"http://192.168.1.52:8080"'*/ | ||
13 | 13 | ||
14 | }) | 14 | }) |
@@ -94,3 +94,10 @@ input:-webkit-autofill { | @@ -94,3 +94,10 @@ input:-webkit-autofill { | ||
94 | font-size: 20px; | 94 | font-size: 20px; |
95 | visibility: hidden; | 95 | visibility: hidden; |
96 | } | 96 | } |
97 | +.tree-left .el-tree-node__label{ | ||
98 | + overflow: hidden; | ||
99 | + text-overflow: ellipsis; | ||
100 | + display: -webkit-box; | ||
101 | + -webkit-line-clamp: 1; | ||
102 | + -webkit-box-orient: vertical; | ||
103 | +} |
@@ -39,6 +39,22 @@ export const monitorTreeShape = { | @@ -39,6 +39,22 @@ export const monitorTreeShape = { | ||
39 | value: true | 39 | value: true |
40 | }, | 40 | }, |
41 | { | 41 | { |
42 | + type: 'el-input-text', | ||
43 | + label: '业务系统相关页面编码', | ||
44 | + name: 'serviceCode', | ||
45 | + required: false, | ||
46 | + placeholder: '', | ||
47 | + value: 'service_capacity_analysis,service_capacity_analysis_second,service_capacity_analysis_tertiary', | ||
48 | + }, | ||
49 | + { | ||
50 | + type: 'el-input-text', | ||
51 | + label: '资源系统相关页面编码', | ||
52 | + name: 'resourceCode', | ||
53 | + required: false, | ||
54 | + placeholder: '', | ||
55 | + value: 'resource_capacity_analysis', | ||
56 | + }, | ||
57 | + { | ||
42 | type: 'el-switch', | 58 | type: 'el-switch', |
43 | label: '加边框', | 59 | label: '加边框', |
44 | name: 'isBorder', | 60 | name: 'isBorder', |
@@ -256,7 +272,7 @@ export const monitorTreeShape = { | @@ -256,7 +272,7 @@ export const monitorTreeShape = { | ||
256 | name: 'width', | 272 | name: 'width', |
257 | required: false, | 273 | required: false, |
258 | placeholder: '该容器在1920px大屏中的宽度', | 274 | placeholder: '该容器在1920px大屏中的宽度', |
259 | - value: 420, | 275 | + value: 1920, |
260 | }, | 276 | }, |
261 | { | 277 | { |
262 | type: 'el-input-number', | 278 | type: 'el-input-number', |
@@ -264,7 +280,7 @@ export const monitorTreeShape = { | @@ -264,7 +280,7 @@ export const monitorTreeShape = { | ||
264 | name: 'height', | 280 | name: 'height', |
265 | required: false, | 281 | required: false, |
266 | placeholder: '该容器在1080px大屏中的高度', | 282 | placeholder: '该容器在1080px大屏中的高度', |
267 | - value: 630, | 283 | + value: 1080, |
268 | }, | 284 | }, |
269 | ], | 285 | ], |
270 | } | 286 | } |
@@ -447,7 +447,7 @@ export default { | @@ -447,7 +447,7 @@ export default { | ||
447 | if(nextRouter){ | 447 | if(nextRouter){ |
448 | this.$router.push({ | 448 | this.$router.push({ |
449 | path: `/bigscreen/viewer`, | 449 | path: `/bigscreen/viewer`, |
450 | - query: { reportCode: nextRouter,titleName:item.resName ,resId:item.resId,resType: item.resType}, | 450 | + query: { reportCode: nextRouter,titleName:item.resName ,resId:item.resId,resType: item.resType,access_token:locationUrl.access_token}, |
451 | }) | 451 | }) |
452 | } | 452 | } |
453 | 453 |
@@ -9,7 +9,11 @@ | @@ -9,7 +9,11 @@ | ||
9 | <img :src="imgStyle.infoImageAdress" alt=""> | 9 | <img :src="imgStyle.infoImageAdress" alt=""> |
10 | </div> | 10 | </div> |
11 | <div class="system-item" :style="itemStyle" v-for="(item,index) in systemData" :key="index"> | 11 | <div class="system-item" :style="itemStyle" v-for="(item,index) in systemData" :key="index"> |
12 | - <div class="system-img"><img :src="'/src/assets/images/monitor/capacityAnalysis/'+item.resType+'.png'" alt=""></div> | 12 | + <div class="system-img"> |
13 | +<!-- <img :src="'/src/assets/images/monitor/capacityAnalysis/'+item.resType+'.png'" alt="">--> | ||
14 | + <img :src="'/static/capacityAnalysis/'+item.resType+'.png'" alt=""> | ||
15 | + | ||
16 | + </div> | ||
13 | <div class="system-info" :style="titleProposalStyle"> | 17 | <div class="system-info" :style="titleProposalStyle"> |
14 | <span>{{item.resTypeName}}:</span> | 18 | <span>{{item.resTypeName}}:</span> |
15 | <span>{{item.total}}</span> | 19 | <span>{{item.total}}</span> |
1 | <template> | 1 | <template> |
2 | <div :style="styleObj" class="treeContainer"> | 2 | <div :style="styleObj" class="treeContainer"> |
3 | <div class="tree-left" :style="treeLeftStyle"> | 3 | <div class="tree-left" :style="treeLeftStyle"> |
4 | - <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick" v-if="optionsSetup.isType"> | ||
5 | - <el-tab-pane label="业务" name="first"></el-tab-pane> | ||
6 | - <el-tab-pane label="资源" name="second"></el-tab-pane> | 4 | + <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick" v-if="optionsSetup.isType" stretch> |
5 | + <el-tab-pane label="业务系统" name="first"></el-tab-pane> | ||
6 | + <el-tab-pane label="资源系统" name="second"></el-tab-pane> | ||
7 | </el-tabs> | 7 | </el-tabs> |
8 | <el-tree :style="textStyle" class="tree-div" ref="roleTree" :data="treeData" :props="defaultProps" @node-click="handleNodeClick" | 8 | <el-tree :style="textStyle" class="tree-div" ref="roleTree" :data="treeData" :props="defaultProps" @node-click="handleNodeClick" |
9 | node-key="id" :default-checked-keys="checkedKeys" | 9 | node-key="id" :default-checked-keys="checkedKeys" |
@@ -95,20 +95,41 @@ export default { | @@ -95,20 +95,41 @@ export default { | ||
95 | handleClick(tab,event){ | 95 | handleClick(tab,event){ |
96 | this.handleTableData(); | 96 | this.handleTableData(); |
97 | }, | 97 | }, |
98 | - handleNodeClick(data){ | ||
99 | - console.log(data); | ||
100 | - this.setSrc(data); | 98 | + handleNodeClick(data,node){ |
99 | + console.log("*(*(*(",node,data); | ||
100 | + if(this.optionsSetup.isFrame){ | ||
101 | + this.setSrc(data,node.level); | ||
102 | + } | ||
101 | this.$store.commit('CHANGE_TREE',data) | 103 | this.$store.commit('CHANGE_TREE',data) |
102 | }, | 104 | }, |
103 | - setSrc(data){ | 105 | + setSrc(data,level){ |
104 | let origin=window.location.origin;//当前域名 | 106 | let origin=window.location.origin;//当前域名 |
105 | let srcName=origin+'/#/bigscreen/viewer?reportCode='; | 107 | let srcName=origin+'/#/bigscreen/viewer?reportCode='; |
106 | - if(data.id==1){ | 108 | + // serviceCode,resourceCode |
109 | + let codeArr=[]; | ||
110 | + if(this.activeName=='first'){ | ||
111 | + codeArr=this.optionsSetup.serviceCode.split(','); | ||
112 | + }else{ | ||
113 | + codeArr=this.optionsSetup.resourceCode.split(','); | ||
114 | + } | ||
115 | + if(level>0){ | ||
116 | + srcName+=codeArr[level-1]; | ||
117 | + }else{ | ||
118 | + srcName+=codeArr[0]; | ||
119 | + } | ||
120 | + | ||
121 | + /*if(data.id==1){ | ||
107 | srcName+='service_capacity_analysis'; | 122 | srcName+='service_capacity_analysis'; |
108 | }else{ | 123 | }else{ |
109 | srcName+='capacity_analysis_second'; | 124 | srcName+='capacity_analysis_second'; |
125 | + }*/ | ||
126 | + let locationUrl=this.$route.query; | ||
127 | + let access_token=locationUrl.locationUrl; | ||
128 | + let tokenUrl=''; | ||
129 | + if(access_token){ | ||
130 | + tokenUrl='&access_token='+access_token | ||
110 | } | 131 | } |
111 | - this.iframeSrc=srcName; | 132 | + this.iframeSrc=srcName+tokenUrl; |
112 | }, | 133 | }, |
113 | editorOptions() { | 134 | editorOptions() { |
114 | this.setOptionsData(); | 135 | this.setOptionsData(); |
@@ -161,12 +182,13 @@ export default { | @@ -161,12 +182,13 @@ export default { | ||
161 | 182 | ||
162 | <style scoped lang="scss"> | 183 | <style scoped lang="scss"> |
163 | .treeContainer{ | 184 | .treeContainer{ |
164 | - padding:10px; | 185 | + //padding:10px; |
165 | display: flex; | 186 | display: flex; |
166 | } | 187 | } |
167 | .tree-left{ | 188 | .tree-left{ |
168 | width:20%; | 189 | width:20%; |
169 | padding:10px; | 190 | padding:10px; |
191 | + background: #ffffff; | ||
170 | } | 192 | } |
171 | .tree-content{ | 193 | .tree-content{ |
172 | flex:1; | 194 | flex:1; |
@@ -175,4 +197,9 @@ export default { | @@ -175,4 +197,9 @@ export default { | ||
175 | height:100%; | 197 | height:100%; |
176 | width:100%; | 198 | width:100%; |
177 | } | 199 | } |
200 | +::v-deep .el-tabs_nav-scroll{ | ||
201 | + width:50%!important; | ||
202 | + margin:0 auto!important; | ||
203 | +} | ||
204 | + | ||
178 | </style> | 205 | </style> |

4.18 KB

8.5 KB

4.73 KB

3.74 KB

3.17 KB

5.57 KB
report-ui/static/capacityAnalysis/oracle.png
0 → 100644

2.61 KB
-
Please register or login to post a comment