|
@@ -345,6 +345,7 @@
|
|
@saveChartOtherHandle="handleSaveOther(chartInfo)"
|
|
@saveChartOtherHandle="handleSaveOther(chartInfo)"
|
|
@editChartHandle="editChartHandle(chartInfo)"
|
|
@editChartHandle="editChartHandle(chartInfo)"
|
|
@delChartHandle="handleDeleteChart(chartInfo)"
|
|
@delChartHandle="handleDeleteChart(chartInfo)"
|
|
|
|
+ @saveChartHandle="handleChartSave(chartInfo)"
|
|
/>
|
|
/>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -413,6 +414,7 @@ import openDialog from '@/views/dataEntry_manage/databaseComponents/openDialog';
|
|
import addMyClassifyDia from '@/views/dataEntry_manage/components/addMyClassifyDia';
|
|
import addMyClassifyDia from '@/views/dataEntry_manage/components/addMyClassifyDia';
|
|
import SaveChartOther from '@/views/dataEntry_manage/components/SaveChartOther';
|
|
import SaveChartOther from '@/views/dataEntry_manage/components/SaveChartOther';
|
|
import { chartSetMixin } from '@/views/dataEntry_manage/mixins/chartPublic';
|
|
import { chartSetMixin } from '@/views/dataEntry_manage/mixins/chartPublic';
|
|
|
|
+import addOrEditMixn from '@/views/dataEntry_manage/mixins/addOreditMixin';
|
|
import { copyOtherOptions } from '@/utils/defaultOptions';
|
|
import { copyOtherOptions } from '@/utils/defaultOptions';
|
|
import DateChooseDia from '@/views/dataEntry_manage/components/DateChooseDia';
|
|
import DateChooseDia from '@/views/dataEntry_manage/components/DateChooseDia';
|
|
import edbTableSection from '@/views/chartRelevance_manage/crossVarietyAnalysis/components/edbTableSection.vue';
|
|
import edbTableSection from '@/views/chartRelevance_manage/crossVarietyAnalysis/components/edbTableSection.vue';
|
|
@@ -425,7 +427,7 @@ export default {
|
|
edbTableSection,
|
|
edbTableSection,
|
|
DateChooseDia
|
|
DateChooseDia
|
|
},
|
|
},
|
|
- mixins: [leftMixin, chartSetMixin],
|
|
|
|
|
|
+ mixins: [leftMixin, chartSetMixin,addOrEditMixn],
|
|
computed: {
|
|
computed: {
|
|
/* 分享地址 */
|
|
/* 分享地址 */
|
|
linkUrl() {
|
|
linkUrl() {
|
|
@@ -706,6 +708,35 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ //保存图表
|
|
|
|
+ handleChartSave(e){
|
|
|
|
+ const {
|
|
|
|
+ min, max, rightMin, rightMax, rightTwoMin, rightTwoMax
|
|
|
|
+ } = this.chartLimit
|
|
|
|
+ const params={
|
|
|
|
+ ChartInfoId:e.ChartInfoId,
|
|
|
|
+ DateType: this.year_select,
|
|
|
|
+ StartDate: [5, 6].includes(this.year_select)
|
|
|
|
+ ? this.select_date[0]
|
|
|
|
+ : '',
|
|
|
|
+ EndDate: this.year_select === 5 ? this.select_date[1] : '',
|
|
|
|
+ StartYear: this.count_year || 0,
|
|
|
|
+ LeftMin: min + '',
|
|
|
|
+ LeftMax: max + '',
|
|
|
|
+ RightMin: rightMin + '',
|
|
|
|
+ RightMax: rightMax + '',
|
|
|
|
+ Right2Min: rightTwoMin + '',
|
|
|
|
+ Right2Max: rightTwoMax + '',
|
|
|
|
+ MinMaxSave: Number(!this.getLimitInfo()),
|
|
|
|
+ }
|
|
|
|
+ console.log(params);
|
|
|
|
+ apiIntervalAnalysis.chartSave(params).then(res=>{
|
|
|
|
+ if(res.Ret===200){
|
|
|
|
+ this.$message.success(this.$t('MsgPrompt.saved_msg'));
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
// 显示另存为
|
|
// 显示另存为
|
|
handleSaveOther(e) {
|
|
handleSaveOther(e) {
|
|
this.saveOtherChartInfo = e
|
|
this.saveOtherChartInfo = e
|