|
@@ -588,6 +588,7 @@ import DateChooseDia from '@/views/dataEntry_manage/components/DateChooseDia';
|
|
|
import changeLang from "@/views/dataEntry_manage/components/changeLang"
|
|
|
import setEnNameDia from "@/views/dataEntry_manage/components/setEnNameDia"
|
|
|
import { chartSetMixin } from '@/views/dataEntry_manage/mixins/chartPublic'
|
|
|
+import { copyFit } from '@/utils/svgToblob.js';
|
|
|
|
|
|
export default {
|
|
|
components: { Chart, DateChooseDia,SaveChartOther,changeLang,setEnNameDia },
|
|
@@ -1382,7 +1383,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
copyTitleText() {
|
|
|
- let clipboard = new this.Clipboard('.my-chart-title')
|
|
|
+ /* let clipboard = new this.Clipboard('.my-chart-title')
|
|
|
clipboard.on('success', e => {
|
|
|
this.$message.success('复制标题成功')
|
|
|
e.clearSelection() // 释放内存
|
|
@@ -1393,7 +1394,13 @@ export default {
|
|
|
this.$message.warning('浏览器暂不支持')
|
|
|
// 释放内存
|
|
|
clipboard.destroy()
|
|
|
- })
|
|
|
+ }) */
|
|
|
+ try{
|
|
|
+ copyFit(this.chartInfo.ChartName||'')
|
|
|
+ this.$message.success("复制标题成功")
|
|
|
+ }catch(e){
|
|
|
+ this.$message.warning("复制标题失败")
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
init() {
|