Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Elements-SY
2023-10-20 15:42:16 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
59bacccdfb9c8e0670e3f81da47b58089798eecc
59bacccd
2 parents
79b2818f
eb740f25
Merge branch 'et86-black' into uat
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
119 deletions
package.json
src/assets/languages/echarts.js
src/components/YlEcharts/YlEchartsBar/index.vue
src/components/YlEcharts/YlEchartsBar/optionConfig.js
src/main.js
src/views/preMdeConfig/reportForm/index.vue
package.json
View file @
59baccc
...
...
@@ -38,7 +38,6 @@
"dependencies"
:
{
"axios"
:
"0.21.1"
,
"core-js"
:
"3.8.3"
,
"echarts"
:
"^5.4.3"
,
"element-ui"
:
"2.15.3"
,
"sortablejs"
:
"^1.15.0"
,
"vue"
:
"2.6.14"
,
...
...
src/assets/languages/echarts.js
deleted
100644 → 0
View file @
79b2818
// echarts按需引入
// 引入 echarts API
import
*
as
echarts
from
"echarts/core"
;
// 引入echarts图表类型
import
{
BarChart
}
from
"echarts/charts"
;
// 引入echarts图表配置项
import
{
GridComponent
,
PolarComponent
,
GeoComponent
,
SingleAxisComponent
,
ParallelComponent
,
CalendarComponent
,
GraphicComponent
,
ToolboxComponent
,
TooltipComponent
,
AxisPointerComponent
,
BrushComponent
,
TitleComponent
,
TimelineComponent
,
MarkPointComponent
,
MarkLineComponent
,
MarkAreaComponent
,
LegendComponent
,
DataZoomComponent
,
DataZoomInsideComponent
,
DataZoomSliderComponent
,
VisualMapComponent
,
VisualMapContinuousComponent
,
VisualMapPiecewiseComponent
,
AriaComponent
,
DatasetComponent
,
TransformComponent
,
}
from
"echarts/components"
;
// 引入 Canvas 渲染器渲染
import
{
CanvasRenderer
}
from
"echarts/renderers"
;
// 将以上引入的组件使用use()方法注册
echarts
.
use
([
BarChart
,
GridComponent
,
PolarComponent
,
GeoComponent
,
SingleAxisComponent
,
ParallelComponent
,
CalendarComponent
,
GraphicComponent
,
ToolboxComponent
,
TooltipComponent
,
AxisPointerComponent
,
BrushComponent
,
TitleComponent
,
TimelineComponent
,
MarkPointComponent
,
MarkLineComponent
,
MarkAreaComponent
,
LegendComponent
,
DataZoomComponent
,
DataZoomInsideComponent
,
DataZoomSliderComponent
,
VisualMapComponent
,
VisualMapContinuousComponent
,
VisualMapPiecewiseComponent
,
AriaComponent
,
DatasetComponent
,
TransformComponent
,
CanvasRenderer
,
]);
export
default
echarts
;
src/components/YlEcharts/YlEchartsBar/index.vue
deleted
100644 → 0
View file @
79b2818
<template>
<div ref="barEcharts" class="yl-echarts-container bar-echarts"></div>
</template>
<script>
import { optionBar } from "./optionConfig"
export default {
data() {
return {};
},
computed: {},
watch: {},
created() {},
mounted() {
// 初始化echarts实例
const myChart = this.$echarts.init(this.$refs.barEcharts);
console.log(myChart);
// 绘制图表
myChart.setOption(optionBar);
},
methods: {},
};
</script>
<style lang='scss'>
.yl-echarts-container{
// height: 200px;
}
</style>
src/components/YlEcharts/YlEchartsBar/optionConfig.js
deleted
100644 → 0
View file @
79b2818
export
const
optionBar
=
{
xAxis
:
{
type
:
"category"
,
data
:
[
"Mon"
,
"Tue"
,
"Wed"
,
"Thu"
,
"Fri"
,
"Sat"
,
"Sun"
],
},
yAxis
:
{
type
:
"value"
,
},
series
:
[
{
data
:
[
120
,
200
,
150
,
80
,
70
,
110
,
130
],
type
:
"bar"
,
showBackground
:
true
,
backgroundStyle
:
{
color
:
"rgba(180, 180, 180, 0.2)"
,
},
},
],
};
src/main.js
View file @
59baccc
...
...
@@ -27,7 +27,6 @@ import tableHeaders from '@/assets/languages/tableHeaders'
import
dictLabels
from
"@/assets/languages/dictLabels.js"
import
settings
from
'./settings.js'
import
*
as
filters
from
"./utils/filters.js"
;
import
echarts
from
"@/assets/languages/echarts"
;
// 全局方法挂载
Vue
.
prototype
.
parseTime
=
parseTime
...
...
@@ -44,7 +43,6 @@ Vue.prototype.isArray = isArray
Vue
.
prototype
.
tableHeaders
=
tableHeaders
Vue
.
prototype
.
dictLabels
=
dictLabels
Vue
.
prototype
.
settings
=
settings
Vue
.
prototype
.
$echarts
=
echarts
;
Vue
.
prototype
.
msgSuccess
=
function
(
msg
)
{
this
.
$message
({
showClose
:
true
,
message
:
msg
,
type
:
"success"
});
}
...
...
src/views/preMdeConfig/reportForm/index.vue
View file @
59baccc
...
...
@@ -74,11 +74,9 @@
<script>
import Chart from '@/components/echarts/echarts-series.vue'
import { findDmPreMdeCondition, findPreMdeReport } from "@/api/preMdeConfig";
// import YlEchartsBar from "@/components/YlEcharts/YlEchartsBar"
export default {
components: {
Chart,
// YlEchartsBar
},
data() {
return {
...
...
Please
register
or
login
to post a comment