|
@@ -1,5 +1,19 @@
|
|
|
<template>
|
|
|
<div class="chart-markers-section">
|
|
|
+ <!-- 季节性图升级-添加右轴指标-->
|
|
|
+ <div class="section-item" v-if="chartInfo.ChartType===2">
|
|
|
+ <div
|
|
|
+ class="add-cont"
|
|
|
+ @click="openMarkerDiaHandle('line')"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ src="~@/assets/img/set_m/add_ico.png"
|
|
|
+ alt=""
|
|
|
+ style="width: 16px; height: 16px; margin-right: 10px"
|
|
|
+ />
|
|
|
+ <span><!-- 添加右轴指标 -->{{`添加右轴指标`}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<!-- 雷达不要 -->
|
|
|
<template v-if="chartInfo.ChartType!==11">
|
|
|
<!-- 标示线 -->
|
|
@@ -55,6 +69,57 @@
|
|
|
|
|
|
</div>
|
|
|
</template>
|
|
|
+ <!-- 季节性图升级-同期上下限/均线/标准差-->
|
|
|
+ <template v-if="chartInfo.ChartType===2">
|
|
|
+ <div class="section-item">
|
|
|
+ <div class="marker-item" v-if="averageList[1].isAdd">
|
|
|
+ <span>{{item.axisName}}: {{item.value}}</span>
|
|
|
+ <div style="flex-shrink:0">
|
|
|
+ <i class="el-icon-view icon" :style="item.isShow?'color:#0052D9':'color:#999'" @click="item.isShow=!item.isShow;updateChartHandle()"/>
|
|
|
+ <i class="el-icon-edit icon" style="margin:0 6px" @click="openAverageDialog(averageList[1],1)"/>
|
|
|
+ <i class="el-icon-delete icon" @click="deleteAverage(1)"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="add-cont"
|
|
|
+ @click="openAverageDialog(averageList[1],1)"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ src="~@/assets/img/set_m/add_ico.png"
|
|
|
+ alt=""
|
|
|
+ style="width: 16px; height: 16px; margin-right: 10px"
|
|
|
+ />
|
|
|
+ <span><!-- 添加同期上下限 -->{{`添加同期上下限`}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="section-item">
|
|
|
+ <div
|
|
|
+ class="add-cont"
|
|
|
+ @click="openMarkerDiaHandle('line')"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ src="~@/assets/img/set_m/add_ico.png"
|
|
|
+ alt=""
|
|
|
+ style="width: 16px; height: 16px; margin-right: 10px"
|
|
|
+ />
|
|
|
+ <span><!-- 添加同期均线 -->{{`添加同期均线`}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="section-item">
|
|
|
+ <div
|
|
|
+ class="add-cont"
|
|
|
+ @click="openMarkerDiaHandle('line')"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ src="~@/assets/img/set_m/add_ico.png"
|
|
|
+ alt=""
|
|
|
+ style="width: 16px; height: 16px; margin-right: 10px"
|
|
|
+ />
|
|
|
+ <span><!-- 添加同期标准差 -->{{`添加同期标准差`}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+
|
|
|
|
|
|
<!-- 图表说明 -->
|
|
|
<div class="section-item">
|
|
@@ -138,14 +203,21 @@
|
|
|
<el-button @click="chartInductionDiaForm.show=false"><!-- 取消 -->{{$t('Dialog.cancel_btn')}}</el-button>
|
|
|
</div>
|
|
|
</m-dialog>
|
|
|
+ <!-- 同期上下限/均线/标准差弹窗 -->
|
|
|
+ <addAverageDialog
|
|
|
+ :isShow="isAddAverageDialogShow"
|
|
|
+ :averageType="averageType"
|
|
|
+ />
|
|
|
+ <!-- 右轴指标弹窗 -->
|
|
|
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import addMarkerDialog from './addMarkerDialog.vue'
|
|
|
import mDialog from '@/components/mDialog.vue'
|
|
|
+import addAverageDialog from './addAverageDialog.vue'
|
|
|
export default {
|
|
|
- components: { addMarkerDialog,mDialog },
|
|
|
+ components: { addMarkerDialog,mDialog, addAverageDialog },
|
|
|
props: {
|
|
|
chartInfo: {
|
|
|
type: Object
|
|
@@ -173,7 +245,21 @@ export default {
|
|
|
chartInductionDiaForm: {
|
|
|
show: false,
|
|
|
text: '',
|
|
|
- }
|
|
|
+ },
|
|
|
+
|
|
|
+ /* 同期上下限/均线/标准差弹窗 */
|
|
|
+ isAddAverageDialogShow:false,
|
|
|
+ averageType:1,//1同期上下限 2同期均线 3同期标准差
|
|
|
+ averageForm:{},//初始化和回显用
|
|
|
+ averageList:[
|
|
|
+ '',
|
|
|
+ {isAdd:false},//同期上下限
|
|
|
+ {isAdd:false},//同期均线
|
|
|
+ {isAdd:false}],//同期标准差
|
|
|
+
|
|
|
+ /* 右轴指标弹窗 */
|
|
|
+ isAddRightEdbDialogShow:false,
|
|
|
+ rightEdbForm:{},//初始化和回显用
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
@@ -259,6 +345,22 @@ export default {
|
|
|
color: this.chartInfo.ChartThemeStyle?JSON.parse(this.chartInfo.ChartThemeStyle).markerOptions.style.color:'#333',
|
|
|
fontSize: this.chartInfo.ChartThemeStyle?JSON.parse(this.chartInfo.ChartThemeStyle).markerOptions.style.fontSize:12
|
|
|
};
|
|
|
+ },
|
|
|
+ //打开同期弹窗
|
|
|
+ openAverageDialog(data,type){
|
|
|
+ if(data.isAdd) return
|
|
|
+ this.averageForm = data
|
|
|
+ this.averageType = type
|
|
|
+ this.isAddAverageDialogShow = true
|
|
|
+
|
|
|
+ },
|
|
|
+ addAverage(data,type){
|
|
|
+ this.averageList[type] = data
|
|
|
+ this.averageList[type].isAdd = true
|
|
|
+ },
|
|
|
+ deleteAverage(type){
|
|
|
+ this.averageList[type] = {}
|
|
|
+ this.averageList[type].isAdd = false
|
|
|
}
|
|
|
},
|
|
|
}
|