Commit 4fca02b1 authored by 刘殿昕's avatar 刘殿昕

fixed

parent e04a80c7
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<div class="main_container-left" v-if="data.cover"> <div class="main_container-left" v-if="data.cover">
<img :src="data.cover" width="100%" v-if="data.type !== 'workflow'" /> <img :src="data.cover" width="100%" v-if="data.type !== 'workflow'" />
<workflows-view <workflows-view
:zoom="0.6" :isShop="true"
:id="parseInt(data.workflows_id)" :id="parseInt(data.workflows_id)"
:hideDetail="true" :hideDetail="true"
v-if="data.type == 'workflow'" v-if="data.type == 'workflow'"
...@@ -381,8 +381,8 @@ export default { ...@@ -381,8 +381,8 @@ export default {
} }
.main_container-left > .map_view { .main_container-left > .map_view {
position: absolute; position: absolute;
right: 3px; right: 1px;
bottom: 3px; bottom: 2px;
} }
.main_container-right { .main_container-right {
width: 896px; width: 896px;
......
<template> <template>
<div class="workflows-view" ref="flowContainer" :style="{ zoom: zoom, height: Number(max_height + 180) + 'px' }"> <div class="workflows-view" ref="flowContainer" :style="{ zoom: isShop ? maxParentHeight / Number(max_height + 180) : zoom, height: Number(max_height + 180) + 'px' }">
<super-flow <super-flow
ref="superFlow" ref="superFlow"
:node-list="nodeList" :node-list="nodeList"
...@@ -80,6 +80,14 @@ export default { ...@@ -80,6 +80,14 @@ export default {
type: Number, type: Number,
default: 1, default: 1,
}, },
maxParentHeight: {
type: Number,
default: 200,
},
isShop: {
type: Boolean,
default: false,
}
}, },
data() { data() {
return { return {
......
...@@ -1628,7 +1628,7 @@ export default { ...@@ -1628,7 +1628,7 @@ export default {
} }
}; };
var data = []; var data = [];
var color = ["#515fe7", "#36a5ec", "#da9f2a", "#23b2a7", "#d46002"]; var color = ["#515fe7", "#36a5ec", "#da9f2a", "#23b2a7", "#d46002", "#44a072"];
var legendarr = []; var legendarr = [];
var temp2_data = 0; var temp2_data = 0;
data_val.forEach(e => { data_val.forEach(e => {
...@@ -1661,8 +1661,8 @@ export default { ...@@ -1661,8 +1661,8 @@ export default {
name: "", name: "",
type: "pie", type: "pie",
clockWise: false, clockWise: false,
radius: [52, 54], radius: [44, 46],
center: ["51%", "45%"], center: ["50%", "45%"],
z:5, z:5,
hoverAnimation: false, hoverAnimation: false,
itemStyle: { itemStyle: {
...@@ -1693,8 +1693,8 @@ export default { ...@@ -1693,8 +1693,8 @@ export default {
{ {
type:'pie', type:'pie',
z:4, z:4,
center:['51%','45%'], center:['50%','45%'],
radius:['43%','63%'], radius:['36%','54%'],
hoverAnimation:false, hoverAnimation:false,
avoidLabelOverlap: false, avoidLabelOverlap: false,
label: { label: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment