Compare commits
No commits in common. "ee6c5bf8a5ace972e64d9a0ca7cb146d35a6b66d" and "f65264a2a6a3ebae73c62b6113b584fe0ede3f5c" have entirely different histories.
ee6c5bf8a5
...
f65264a2a6
|
|
@ -37,7 +37,7 @@
|
||||||
"dcmjs": "^0.29.8",
|
"dcmjs": "^0.29.8",
|
||||||
"dicom-parser": "^1.8.9",
|
"dicom-parser": "^1.8.9",
|
||||||
"dicomedit": "^0.1.0",
|
"dicomedit": "^0.1.0",
|
||||||
"echarts": "^6.0.0",
|
"echarts": "^4.8.0",
|
||||||
"element-ui": "^2.15.14",
|
"element-ui": "^2.15.14",
|
||||||
"exceljs": "^4.4.0",
|
"exceljs": "^4.4.0",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
|
|
|
||||||
|
|
@ -8,49 +8,20 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getReportsChartData } from "@/api/reading"
|
import { getReportsChartData } from "@/api/reading"
|
||||||
import * as echarts from 'echarts/core';
|
let echarts = require('echarts/lib/echarts');
|
||||||
import { LineChart } from 'echarts/charts';
|
|
||||||
import {
|
|
||||||
TitleComponent,
|
|
||||||
TooltipComponent,
|
|
||||||
GridComponent,
|
|
||||||
DataZoomComponent,
|
|
||||||
LegendComponent,
|
|
||||||
DatasetComponent,
|
|
||||||
// 内置数据转换器组件 (filter, sort)
|
|
||||||
TransformComponent
|
|
||||||
} from 'echarts/components';
|
|
||||||
// 标签自动布局、全局过渡动画等特性
|
|
||||||
import { LabelLayout, UniversalTransition } from 'echarts/features';
|
|
||||||
// 引入 Canvas 渲染器,注意引入 CanvasRenderer 或者 SVGRenderer 是必须的一步
|
|
||||||
import { CanvasRenderer } from 'echarts/renderers';
|
|
||||||
echarts.use([
|
|
||||||
TitleComponent,
|
|
||||||
TooltipComponent,
|
|
||||||
GridComponent,
|
|
||||||
DatasetComponent,
|
|
||||||
TransformComponent,
|
|
||||||
DataZoomComponent,
|
|
||||||
LegendComponent,
|
|
||||||
LineChart,
|
|
||||||
LabelLayout,
|
|
||||||
UniversalTransition,
|
|
||||||
CanvasRenderer
|
|
||||||
]);
|
|
||||||
// let echarts = require('echarts/lib/echarts');
|
|
||||||
|
|
||||||
// 按需引入图表
|
// 按需引入图表
|
||||||
// require('echarts/lib/chart/bar');
|
// require('echarts/lib/chart/bar');
|
||||||
// require('echarts/lib/chart/line');
|
require('echarts/lib/chart/line');
|
||||||
// require('echarts/lib/chart/pie');
|
// require('echarts/lib/chart/pie');
|
||||||
// require('echarts/lib/chart/scatter');
|
// require('echarts/lib/chart/scatter');
|
||||||
|
|
||||||
// 按需引入组件
|
// 按需引入组件
|
||||||
// require('echarts/lib/component/tooltip');
|
require('echarts/lib/component/tooltip');
|
||||||
// require('echarts/lib/component/title');
|
require('echarts/lib/component/title');
|
||||||
// require('echarts/lib/component/legend');
|
require('echarts/lib/component/legend');
|
||||||
// require('echarts/lib/component/grid');
|
require('echarts/lib/component/grid');
|
||||||
// require('echarts/lib/component/dataZoom');
|
require('echarts/lib/component/dataZoom');
|
||||||
export default {
|
export default {
|
||||||
name: "readingChart",
|
name: "readingChart",
|
||||||
props: {
|
props: {
|
||||||
|
|
@ -180,13 +151,7 @@ export default {
|
||||||
text: obj.title,
|
text: obj.title,
|
||||||
textStyle: {
|
textStyle: {
|
||||||
color: "#fff"
|
color: "#fff"
|
||||||
},
|
}
|
||||||
left: 0,
|
|
||||||
top: 0
|
|
||||||
},
|
|
||||||
grid: {
|
|
||||||
left: 50,
|
|
||||||
bottom: 30
|
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'axis',
|
trigger: 'axis',
|
||||||
|
|
@ -228,7 +193,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
axisLine: {
|
axisLine: {
|
||||||
show: true,
|
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
<div ref="mapbox" class="map-wrapper" />
|
<div ref="mapbox" class="map-wrapper" />
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import * as echarts from 'echarts'
|
import echarts from 'echarts'
|
||||||
// import 'modules/echarts/map/js/world.js'
|
import 'modules/echarts/map/js/world.js'
|
||||||
import { fontSize } from 'utils/fontsize'
|
import { fontSize } from 'utils/fontsize'
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
|
@ -14,7 +14,7 @@ export default {
|
||||||
watch: {
|
watch: {
|
||||||
area() {
|
area() {
|
||||||
const that = this
|
const that = this
|
||||||
this.$nextTick(function () {
|
this.$nextTick(function() {
|
||||||
that.myChart.resize()
|
that.myChart.resize()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -56,7 +56,7 @@ export default {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
var convertData = function (data) {
|
var convertData = function(data) {
|
||||||
var res = []
|
var res = []
|
||||||
for (var i = 0; i < data.length; i++) {
|
for (var i = 0; i < data.length; i++) {
|
||||||
var dataItem = data[i]
|
var dataItem = data[i]
|
||||||
|
|
@ -77,7 +77,7 @@ export default {
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
var series = []
|
var series = []
|
||||||
;[['Shanghai', BJData]].forEach(function (item, i) {
|
;[['Shanghai', BJData]].forEach(function(item, i) {
|
||||||
series.push(
|
series.push(
|
||||||
{
|
{
|
||||||
type: 'lines',
|
type: 'lines',
|
||||||
|
|
@ -125,11 +125,11 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
symbol: 'circle',
|
symbol: 'circle',
|
||||||
symbolSize: function (val) {
|
symbolSize: function(val) {
|
||||||
return fontSize(0.08) // 圆环大小
|
return fontSize(0.08) // 圆环大小
|
||||||
},
|
},
|
||||||
|
|
||||||
data: item[1].map(function (dataItem) {
|
data: item[1].map(function(dataItem) {
|
||||||
return {
|
return {
|
||||||
name: dataItem[0].name,
|
name: dataItem[0].name,
|
||||||
value: geoCoordMap[dataItem[0].name]
|
value: geoCoordMap[dataItem[0].name]
|
||||||
|
|
@ -161,7 +161,7 @@ export default {
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'item',
|
trigger: 'item',
|
||||||
fontSize: fontSize(0.16),
|
fontSize: fontSize(0.16),
|
||||||
formatter: function (params) {
|
formatter: function(params) {
|
||||||
if (typeof params.value === 'undefined') {
|
if (typeof params.value === 'undefined') {
|
||||||
return ''
|
return ''
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<div ref="trials_stats" style="width:100%;height:100%;" />
|
<div ref="trials_stats" style="width:100%;height:100%;" />
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import * as echarts from 'echarts'
|
import echarts from 'echarts'
|
||||||
import { getTrialCountRank } from '@/api/dashboard'
|
import { getTrialCountRank } from '@/api/dashboard'
|
||||||
import { fontSize } from 'utils/fontsize'
|
import { fontSize } from 'utils/fontsize'
|
||||||
const Count = 5
|
const Count = 5
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<div ref="enroll_stats" style="width:100%;height:100%;" />
|
<div ref="enroll_stats" style="width:100%;height:100%;" />
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import * as echarts from 'echarts'
|
import echarts from 'echarts'
|
||||||
import { getEnrollDataByQuarter } from '@/api/dashboard'
|
import { getEnrollDataByQuarter } from '@/api/dashboard'
|
||||||
import { fontSize } from 'utils/fontsize'
|
import { fontSize } from 'utils/fontsize'
|
||||||
const Count = 6
|
const Count = 6
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<div ref="reviewers_stats" style="width:100%;height:100%;padding:5px;" />
|
<div ref="reviewers_stats" style="width:100%;height:100%;padding:5px;" />
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import * as echarts from 'echarts'
|
import echarts from 'echarts'
|
||||||
import { getReviewersByRank } from '@/api/dashboard'
|
import { getReviewersByRank } from '@/api/dashboard'
|
||||||
import { fontSize } from 'utils/fontsize'
|
import { fontSize } from 'utils/fontsize'
|
||||||
export default {
|
export default {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<div ref="monthly_reading_stats" style="width:100%;height:100%;" />
|
<div ref="monthly_reading_stats" style="width:100%;height:100%;" />
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import * as echarts from 'echarts'
|
import echarts from 'echarts'
|
||||||
import { getReadingDataByMonth } from '@/api/dashboard'
|
import { getReadingDataByMonth } from '@/api/dashboard'
|
||||||
import { fontSize } from 'utils/fontsize'
|
import { fontSize } from 'utils/fontsize'
|
||||||
const Count = 6
|
const Count = 6
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<div ref="reading_rank" class="reading-rank" />
|
<div ref="reading_rank" class="reading-rank" />
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import * as echarts from 'echarts'
|
import echarts from 'echarts'
|
||||||
import { getReadingDataRank } from '@/api/dashboard'
|
import { getReadingDataRank } from '@/api/dashboard'
|
||||||
import { fontSize } from 'utils/fontsize'
|
import { fontSize } from 'utils/fontsize'
|
||||||
const Count = 5
|
const Count = 5
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<div ref="reading_stats" style="width:100%;height:100%;padding-top:5px;" />
|
<div ref="reading_stats" style="width:100%;height:100%;padding-top:5px;" />
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import * as echarts from 'echarts'
|
import echarts from 'echarts'
|
||||||
import { getReadingDataByType } from '@/api/dashboard'
|
import { getReadingDataByType } from '@/api/dashboard'
|
||||||
import { fontSize } from 'utils/fontsize'
|
import { fontSize } from 'utils/fontsize'
|
||||||
export default {
|
export default {
|
||||||
|
|
|
||||||
|
|
@ -165,11 +165,6 @@
|
||||||
v-if="(criterionType === 0 && readingTool === 0) || this.readingTool === 3">
|
v-if="(criterionType === 0 && readingTool === 0) || this.readingTool === 3">
|
||||||
<svg-icon icon-class="mpr" class="svg-icon" style="transform: rotate(180deg);" />
|
<svg-icon icon-class="mpr" class="svg-icon" style="transform: rotate(180deg);" />
|
||||||
</div>
|
</div>
|
||||||
<!-- 直方图 -->
|
|
||||||
<div class="tool-item" :title="`${$t('trials:reading:button:histogram')}`" @click.prevent="openHistogram"
|
|
||||||
v-if="this.readingTool === 3">
|
|
||||||
<svg-icon icon-class="histogram" class="svg-icon" />
|
|
||||||
</div>
|
|
||||||
<!-- 十字准星 -->
|
<!-- 十字准星 -->
|
||||||
<div :class="['tool-item', activeTool === 'Crosshairs' ? 'tool-item-active' : '']" v-if="isMPR"
|
<div :class="['tool-item', activeTool === 'Crosshairs' ? 'tool-item-active' : '']" v-if="isMPR"
|
||||||
:title="$t('trials:reading:button:crosshairs')" @click.prevent="setToolActive('Crosshairs')">
|
:title="$t('trials:reading:button:crosshairs')" @click.prevent="setToolActive('Crosshairs')">
|
||||||
|
|
@ -500,7 +495,6 @@
|
||||||
:subject-code="uploadSubjectCode" :criterion="uploadTrialCriterion" :task-id="taskId"
|
:subject-code="uploadSubjectCode" :criterion="uploadTrialCriterion" :task-id="taskId"
|
||||||
:visible.sync="downloadImageVisible" />
|
:visible.sync="downloadImageVisible" />
|
||||||
<readingChart ref="readingChart" />
|
<readingChart ref="readingChart" />
|
||||||
<histogram ref="histogram" />
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -532,7 +526,6 @@ import PetCtViewport from './PetCtViewport'
|
||||||
import MPRViewport from './MPRViewport'
|
import MPRViewport from './MPRViewport'
|
||||||
import VolumeViewport from './VolumeViewport'
|
import VolumeViewport from './VolumeViewport'
|
||||||
import Segmentations from './Segmentations'
|
import Segmentations from './Segmentations'
|
||||||
import histogram from "./histogram"
|
|
||||||
import mRecisit from './mRecist/QuestionList'
|
import mRecisit from './mRecist/QuestionList'
|
||||||
import recisit from './Recist/QuestionList'
|
import recisit from './Recist/QuestionList'
|
||||||
import customizeQuestionList from './customize/QuestionList'
|
import customizeQuestionList from './customize/QuestionList'
|
||||||
|
|
@ -624,7 +617,6 @@ export default {
|
||||||
MPRViewport,
|
MPRViewport,
|
||||||
VolumeViewport,
|
VolumeViewport,
|
||||||
Segmentations,
|
Segmentations,
|
||||||
histogram,
|
|
||||||
mRecisit,
|
mRecisit,
|
||||||
recisit,
|
recisit,
|
||||||
customizeQuestionList,
|
customizeQuestionList,
|
||||||
|
|
@ -914,10 +906,6 @@ export default {
|
||||||
this.getSystemInfoReading();
|
this.getSystemInfoReading();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async openHistogram() {
|
|
||||||
let res = await this.$refs.histogram.getCurrentSliceValuesFromVoxelManager(renderingEngineId, `${this.viewportKey}-${this.activeViewportIndex}`)
|
|
||||||
console.log(res, 'openHistogram')
|
|
||||||
},
|
|
||||||
handleSizeChange(e, viewportId) {
|
handleSizeChange(e, viewportId) {
|
||||||
// console.log('handleSizeChange', e)
|
// console.log('handleSizeChange', e)
|
||||||
this.resetRenderingEngine(viewportId)
|
this.resetRenderingEngine(viewportId)
|
||||||
|
|
|
||||||
|
|
@ -46,49 +46,20 @@ import {
|
||||||
getTrialCriterionList,
|
getTrialCriterionList,
|
||||||
getReportsChartSummary
|
getReportsChartSummary
|
||||||
} from '@/api/trials'
|
} from '@/api/trials'
|
||||||
import * as echarts from 'echarts/core';
|
let echarts = require('echarts/lib/echarts');
|
||||||
import { LineChart } from 'echarts/charts';
|
|
||||||
import {
|
|
||||||
TitleComponent,
|
|
||||||
TooltipComponent,
|
|
||||||
GridComponent,
|
|
||||||
DataZoomComponent,
|
|
||||||
LegendComponent,
|
|
||||||
DatasetComponent,
|
|
||||||
// 内置数据转换器组件 (filter, sort)
|
|
||||||
TransformComponent
|
|
||||||
} from 'echarts/components';
|
|
||||||
// 标签自动布局、全局过渡动画等特性
|
|
||||||
import { LabelLayout, UniversalTransition } from 'echarts/features';
|
|
||||||
// 引入 Canvas 渲染器,注意引入 CanvasRenderer 或者 SVGRenderer 是必须的一步
|
|
||||||
import { CanvasRenderer } from 'echarts/renderers';
|
|
||||||
echarts.use([
|
|
||||||
TitleComponent,
|
|
||||||
TooltipComponent,
|
|
||||||
GridComponent,
|
|
||||||
DatasetComponent,
|
|
||||||
TransformComponent,
|
|
||||||
DataZoomComponent,
|
|
||||||
LegendComponent,
|
|
||||||
LineChart,
|
|
||||||
LabelLayout,
|
|
||||||
UniversalTransition,
|
|
||||||
CanvasRenderer
|
|
||||||
]);
|
|
||||||
// let echarts = require('echarts/lib/echarts');
|
|
||||||
|
|
||||||
// 按需引入图表
|
// 按需引入图表
|
||||||
// require('echarts/lib/chart/bar');
|
// require('echarts/lib/chart/bar');
|
||||||
// require('echarts/lib/chart/line');
|
require('echarts/lib/chart/line');
|
||||||
// require('echarts/lib/chart/pie');
|
// require('echarts/lib/chart/pie');
|
||||||
// require('echarts/lib/chart/scatter');
|
// require('echarts/lib/chart/scatter');
|
||||||
|
|
||||||
// 按需引入组件
|
// 按需引入组件
|
||||||
// require('echarts/lib/component/tooltip');
|
require('echarts/lib/component/tooltip');
|
||||||
// require('echarts/lib/component/title');
|
require('echarts/lib/component/title');
|
||||||
// require('echarts/lib/component/legend');
|
require('echarts/lib/component/legend');
|
||||||
// require('echarts/lib/component/grid');
|
require('echarts/lib/component/grid');
|
||||||
// require('echarts/lib/component/dataZoom');
|
require('echarts/lib/component/dataZoom');
|
||||||
export default {
|
export default {
|
||||||
name: "SubjectChart",
|
name: "SubjectChart",
|
||||||
props: {
|
props: {
|
||||||
|
|
@ -288,19 +259,12 @@ export default {
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'axis',
|
trigger: 'axis',
|
||||||
},
|
},
|
||||||
grid: {
|
|
||||||
left: 30,
|
|
||||||
bottom: 30
|
|
||||||
},
|
|
||||||
xAxis: {
|
xAxis: {
|
||||||
data: obj.visitName,
|
data: obj.visitName,
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
name: obj.unit,
|
name: obj.unit,
|
||||||
type: 'value',
|
type: 'value',
|
||||||
axisLine: {
|
|
||||||
show: true
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
series: obj.series
|
series: obj.series
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -36,49 +36,17 @@
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import BaseContainer from '@/components/BaseContainer'
|
import BaseContainer from '@/components/BaseContainer'
|
||||||
import * as echarts from 'echarts/core';
|
let echarts = require('echarts/lib/echarts');
|
||||||
import { BarChart, FunnelChart } from 'echarts/charts';
|
|
||||||
import {
|
|
||||||
TitleComponent,
|
|
||||||
TooltipComponent,
|
|
||||||
GridComponent,
|
|
||||||
DataZoomComponent,
|
|
||||||
LegendComponent,
|
|
||||||
MarkLineComponent,
|
|
||||||
DatasetComponent,
|
|
||||||
// 内置数据转换器组件 (filter, sort)
|
|
||||||
TransformComponent
|
|
||||||
} from 'echarts/components';
|
|
||||||
// 标签自动布局、全局过渡动画等特性
|
|
||||||
import { LabelLayout, UniversalTransition } from 'echarts/features';
|
|
||||||
// 引入 Canvas 渲染器,注意引入 CanvasRenderer 或者 SVGRenderer 是必须的一步
|
|
||||||
import { CanvasRenderer } from 'echarts/renderers';
|
|
||||||
echarts.use([
|
|
||||||
TitleComponent,
|
|
||||||
TooltipComponent,
|
|
||||||
GridComponent,
|
|
||||||
DatasetComponent,
|
|
||||||
TransformComponent,
|
|
||||||
DataZoomComponent,
|
|
||||||
MarkLineComponent,
|
|
||||||
LegendComponent,
|
|
||||||
BarChart,
|
|
||||||
FunnelChart,
|
|
||||||
LabelLayout,
|
|
||||||
UniversalTransition,
|
|
||||||
CanvasRenderer
|
|
||||||
]);
|
|
||||||
// let echarts = require('echarts/lib/echarts');
|
|
||||||
|
|
||||||
// require('echarts/lib/component/markLine');
|
require('echarts/lib/component/markLine');
|
||||||
// require('echarts/lib/chart/funnel');
|
require('echarts/lib/chart/funnel');
|
||||||
// require('echarts/lib/chart/bar');
|
require('echarts/lib/chart/bar');
|
||||||
// 按需引入组件
|
// 按需引入组件
|
||||||
// require('echarts/lib/component/tooltip');
|
require('echarts/lib/component/tooltip');
|
||||||
// require('echarts/lib/component/title');
|
require('echarts/lib/component/title');
|
||||||
// require('echarts/lib/component/legend');
|
require('echarts/lib/component/legend');
|
||||||
// require('echarts/lib/component/grid');
|
require('echarts/lib/component/grid');
|
||||||
// require('echarts/lib/component/dataZoom');
|
require('echarts/lib/component/dataZoom');
|
||||||
import {
|
import {
|
||||||
getTrialCriterionList,
|
getTrialCriterionList,
|
||||||
getTrialVisitFinishedStatList,
|
getTrialVisitFinishedStatList,
|
||||||
|
|
@ -210,11 +178,8 @@ export default {
|
||||||
this.chart_left = echarts.init(this.$refs.chartContainer_left);
|
this.chart_left = echarts.init(this.$refs.chartContainer_left);
|
||||||
// ...图表配置
|
// ...图表配置
|
||||||
const option = {
|
const option = {
|
||||||
richInheritPlainLabel: false,
|
|
||||||
title: {
|
title: {
|
||||||
text: obj.titleText,
|
text: obj.titleText
|
||||||
left: 0,
|
|
||||||
top: 0
|
|
||||||
},
|
},
|
||||||
color: this.color,
|
color: this.color,
|
||||||
tooltip: {
|
tooltip: {
|
||||||
|
|
@ -351,13 +316,7 @@ export default {
|
||||||
// ...图表配置
|
// ...图表配置
|
||||||
const option = {
|
const option = {
|
||||||
title: {
|
title: {
|
||||||
text: obj.titleText,
|
text: obj.titleText
|
||||||
left: 0,
|
|
||||||
top: 0
|
|
||||||
},
|
|
||||||
grid: {
|
|
||||||
left: 80,
|
|
||||||
bottom: 50
|
|
||||||
},
|
},
|
||||||
toolbox: {
|
toolbox: {
|
||||||
show: false
|
show: false
|
||||||
|
|
@ -380,9 +339,6 @@ export default {
|
||||||
],
|
],
|
||||||
yAxis: [
|
yAxis: [
|
||||||
{
|
{
|
||||||
axisLine: {
|
|
||||||
show: true
|
|
||||||
},
|
|
||||||
name: obj.unit,
|
name: obj.unit,
|
||||||
type: 'value'
|
type: 'value'
|
||||||
}
|
}
|
||||||
|
|
@ -468,18 +424,12 @@ export default {
|
||||||
// ...图表配置
|
// ...图表配置
|
||||||
const option = {
|
const option = {
|
||||||
title: {
|
title: {
|
||||||
text: obj.titleText,
|
text: obj.titleText
|
||||||
left: 0,
|
|
||||||
top: 0
|
|
||||||
},
|
},
|
||||||
toolbox: {
|
toolbox: {
|
||||||
show: false
|
show: false
|
||||||
},
|
},
|
||||||
color: this.color,
|
color: this.color,
|
||||||
grid: {
|
|
||||||
left: 80,
|
|
||||||
bottom: 50
|
|
||||||
},
|
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'axis',
|
trigger: 'axis',
|
||||||
axisPointer: {
|
axisPointer: {
|
||||||
|
|
@ -491,9 +441,6 @@ export default {
|
||||||
data: obj.xAxisData
|
data: obj.xAxisData
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
axisLine: {
|
|
||||||
show: true
|
|
||||||
},
|
|
||||||
name: obj.unit,
|
name: obj.unit,
|
||||||
type: 'value',
|
type: 'value',
|
||||||
minInterval: 1
|
minInterval: 1
|
||||||
|
|
@ -527,17 +474,11 @@ export default {
|
||||||
// ...图表配置
|
// ...图表配置
|
||||||
const option = {
|
const option = {
|
||||||
title: {
|
title: {
|
||||||
text: obj.titleText,
|
text: obj.titleText
|
||||||
left: 0,
|
|
||||||
top: 0
|
|
||||||
},
|
},
|
||||||
toolbox: {
|
toolbox: {
|
||||||
show: false
|
show: false
|
||||||
},
|
},
|
||||||
grid: {
|
|
||||||
left: 80,
|
|
||||||
bottom: 50
|
|
||||||
},
|
|
||||||
color: this.color,
|
color: this.color,
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'item',
|
trigger: 'item',
|
||||||
|
|
@ -557,11 +498,8 @@ export default {
|
||||||
yAxis: {
|
yAxis: {
|
||||||
name: obj.unit,
|
name: obj.unit,
|
||||||
type: 'value',
|
type: 'value',
|
||||||
axisLine: {
|
|
||||||
show: true
|
|
||||||
},
|
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
formatter: '{value}%',
|
formatter: '{value}%'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
series: {
|
series: {
|
||||||
|
|
@ -593,13 +531,7 @@ export default {
|
||||||
// ...图表配置
|
// ...图表配置
|
||||||
const option = {
|
const option = {
|
||||||
title: {
|
title: {
|
||||||
text: obj.titleText,
|
text: obj.titleText
|
||||||
left: 0,
|
|
||||||
top: 0
|
|
||||||
},
|
|
||||||
grid: {
|
|
||||||
left: 80,
|
|
||||||
bottom: 50
|
|
||||||
},
|
},
|
||||||
toolbox: {
|
toolbox: {
|
||||||
show: false
|
show: false
|
||||||
|
|
@ -618,10 +550,7 @@ export default {
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
name: obj.unit,
|
name: obj.unit,
|
||||||
type: 'value',
|
type: 'value'
|
||||||
axisLine: {
|
|
||||||
show: true
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
series: {
|
series: {
|
||||||
markLine: {
|
markLine: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue