Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Q
qualityTesting_adminHome
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
tobacco
qualityTesting_adminHome
Commits
11ef542e
提交
11ef542e
authored
7月 14, 2023
作者:
Yroc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
'图片下载'
上级
a6b6fc99
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
40 行增加
和
6 行删除
+40
-6
SelectLineChart.vue
src/components/AnalyseModule/components/SelectLineChart.vue
+21
-4
index.vue
src/components/AnalyseModule/index.vue
+14
-1
index.vue
src/views/student/examination_questions/comment/index.vue
+5
-1
没有找到文件。
src/components/AnalyseModule/components/SelectLineChart.vue
浏览文件 @
11ef542e
...
...
@@ -10,6 +10,7 @@ export default {
y_data
:
null
,
fake_data
:
'全部'
,
position_info
:
null
,
myChart
:
null
,
};
},
...
...
@@ -41,9 +42,9 @@ export default {
this
.
fake_data
=
item
.
label
;
}
});
let
_that
=
this
;
//
let _that = this;
let
dom
=
document
.
getElementById
(
`
${
this
.
chart_id
}
`
);
let
myChart
=
this
.
$echarts
.
init
(
dom
,
null
,
{
this
.
myChart
=
this
.
$echarts
.
init
(
dom
,
null
,
{
renderer
:
'canvas'
,
useDirtyRect
:
false
,
});
...
...
@@ -90,10 +91,25 @@ export default {
};
if
(
option
&&
typeof
option
===
'object'
)
{
myChart
.
setOption
(
option
);
this
.
myChart
.
setOption
(
option
);
}
window
.
addEventListener
(
'resize'
,
myChart
.
resize
);
window
.
addEventListener
(
'resize'
,
this
.
myChart
.
resize
);
},
savePieImg
(
name
=
'图片'
)
{
var
picInfo
=
this
.
myChart
.
getDataURL
({
type
:
'png'
,
pixelRatio
:
1
,
//放大两倍下载,之后压缩到同等大小展示。解决生成图片在移动端模糊问题
backgroundColor
:
'#fff'
,
});
//获取到的是一串base64信息
const
elink
=
document
.
createElement
(
'a'
);
elink
.
download
=
name
;
elink
.
style
.
display
=
'none'
;
elink
.
href
=
picInfo
;
document
.
body
.
appendChild
(
elink
);
elink
.
click
();
URL
.
revokeObjectURL
(
elink
.
href
);
// 释放URL 对象
document
.
body
.
removeChild
(
elink
);
},
},
};
...
...
@@ -104,3 +120,4 @@ export default {
height
:
90%
;
}
</
style
>
src/components/AnalyseModule/index.vue
浏览文件 @
11ef542e
...
...
@@ -18,7 +18,16 @@
@
click=
"print_()"
>
</el-button>
<el-button
v-if=
"original_data.image_id"
style=
"backgrount-color: #000; margin-right: 10px"
size=
"mini"
icon=
"el-icon-download"
circle
class=
"print_box"
@
click=
"downloadImg()"
>
</el-button>
<el-checkbox
v-if=
"original_data.is_show"
v-model=
"original_data.is_show.value"
...
...
@@ -91,6 +100,7 @@
@
selectChange=
"selectChange"
></SelectLineChartData>
<SelectLineChart
ref=
"SelectLineChart"
:chart_id=
"original_data.chart_id"
:labers=
"original_data.labers"
:keys=
"original_data.keys"
...
...
@@ -173,6 +183,9 @@ export default {
},
500
);
}
},
downloadImg
(
val
)
{
this
.
$refs
.
SelectLineChart
.
savePieImg
();
},
// titleSelectData(val) {
// console.log(val);
// this.original_data.topic = val;
...
...
src/views/student/examination_questions/comment/index.vue
浏览文件 @
11ef542e
...
...
@@ -485,7 +485,7 @@ export default {
chart_id
:
'holdtobacco_bar_chart'
,
title
:
'把烟'
,
color
:
'#39c183f0'
,
// print
_id: 'holdtobacco_bar_chart',
image
_id
:
'holdtobacco_bar_chart'
,
obj
,
labers
,
keys
,
...
...
@@ -531,6 +531,8 @@ export default {
chart_id
:
'flakeTobacco_bar_chart'
,
title
:
'片烟'
,
color
:
'#E6A23C'
,
image_id
:
'flakeTobacco_bar_chart'
,
// print_id: 'flakeTobacco_bar_chart',
obj
,
labers
,
...
...
@@ -579,6 +581,8 @@ export default {
title
:
'甩把'
,
color
:
'#39c183f0'
,
// print_id: 'holdtobacco_bar_chart',
image_id
:
'swingHandle_data_bar_chart'
,
obj
,
labers
,
keys
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论