|
@@ -17,13 +17,15 @@
|
|
$t("Dialog.cancel_btn")
|
|
$t("Dialog.cancel_btn")
|
|
}}</el-button>
|
|
}}</el-button>
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- style="color: #409eff; font-size: 16px; cursor: pointer"
|
|
|
|
- @click="showExplain = true"
|
|
|
|
- >
|
|
|
|
- <i class="el-icon-document" style="font-size: 22px"></i>
|
|
|
|
|
|
+ <!-- 操作说明 -->
|
|
|
|
+ <span @click="showExplain = true" style="color:#0052d9">
|
|
|
|
+ <img
|
|
|
|
+ style="width: 15px; height: 15px;position: relative;top:3px"
|
|
|
|
+ src="~@/assets/img/icons/formula-add.png"
|
|
|
|
+ alt=""
|
|
|
|
+ />
|
|
{{ $t("StatisticAnalysis.ChartRelevance.opt_tip_btn") }}
|
|
{{ $t("StatisticAnalysis.ChartRelevance.opt_tip_btn") }}
|
|
- </div>
|
|
|
|
|
|
+ </span>
|
|
</div>
|
|
</div>
|
|
<div class="left-content">
|
|
<div class="left-content">
|
|
<div class="type-box">
|
|
<div class="type-box">
|
|
@@ -293,6 +295,13 @@
|
|
source="interval_analysis"
|
|
source="interval_analysis"
|
|
:data="chartInfo"
|
|
:data="chartInfo"
|
|
/>
|
|
/>
|
|
|
|
+
|
|
|
|
+ <!-- 操作说明 -->
|
|
|
|
+ <ExplainDialog
|
|
|
|
+ :show-explain="showExplain"
|
|
|
|
+ :textArrName="'rangeAnalysisChart'"
|
|
|
|
+ @close="showExplain = false"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -310,6 +319,7 @@ import chartSetWrap from './components/chartSetWrap.vue'
|
|
import batchSelectEdb from './components/batchSelectEdb.vue';
|
|
import batchSelectEdb from './components/batchSelectEdb.vue';
|
|
import SaveChartOther from '@/views/dataEntry_manage/components/SaveChartOther';
|
|
import SaveChartOther from '@/views/dataEntry_manage/components/SaveChartOther';
|
|
import saveMultipleEdb from './components/saveMultipleEdb.vue';
|
|
import saveMultipleEdb from './components/saveMultipleEdb.vue';
|
|
|
|
+import ExplainDialog from '@/views/chartRelevance_manage/components/explainDialog.vue'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
edbComputedWrap,
|
|
edbComputedWrap,
|
|
@@ -321,7 +331,8 @@ export default {
|
|
chartSetWrap,
|
|
chartSetWrap,
|
|
batchSelectEdb,
|
|
batchSelectEdb,
|
|
SaveChartOther,
|
|
SaveChartOther,
|
|
- saveMultipleEdb
|
|
|
|
|
|
+ saveMultipleEdb,
|
|
|
|
+ ExplainDialog
|
|
},
|
|
},
|
|
directives: {
|
|
directives: {
|
|
drag(el, bindings) {
|
|
drag(el, bindings) {
|
|
@@ -349,7 +360,7 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- mixins: [chartSetMixin,addOrEditMixn],
|
|
|
|
|
|
+ mixins: [chartSetMixin, addOrEditMixn],
|
|
computed: {
|
|
computed: {
|
|
roleName() {
|
|
roleName() {
|
|
return localStorage.getItem('userName');
|
|
return localStorage.getItem('userName');
|
|
@@ -375,6 +386,8 @@ export default {
|
|
showBatchSelectEdb: false,//显示多指标选择
|
|
showBatchSelectEdb: false,//显示多指标选择
|
|
|
|
|
|
isShowSaveOther: false,//另存为
|
|
isShowSaveOther: false,//另存为
|
|
|
|
+
|
|
|
|
+ showExplain:false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -401,16 +414,16 @@ export default {
|
|
// 图表设置成功回调
|
|
// 图表设置成功回调
|
|
handleChartSetChange(e) {
|
|
handleChartSetChange(e) {
|
|
this.chartInfo.ChartThemeStyle = e.ChartThemeStyle
|
|
this.chartInfo.ChartThemeStyle = e.ChartThemeStyle
|
|
- this.chartInfo.ChartThemeId=e.formData.themeId
|
|
|
|
- let sourceObj=this.chartInfo.SourcesFrom?JSON.parse(this.chartInfo.SourcesFrom):''
|
|
|
|
- if(sourceObj){
|
|
|
|
- sourceObj={
|
|
|
|
|
|
+ this.chartInfo.ChartThemeId = e.formData.themeId
|
|
|
|
+ let sourceObj = this.chartInfo.SourcesFrom ? JSON.parse(this.chartInfo.SourcesFrom) : ''
|
|
|
|
+ if (sourceObj) {
|
|
|
|
+ sourceObj = {
|
|
...sourceObj,
|
|
...sourceObj,
|
|
- isShow:e.formData.showSource,
|
|
|
|
- text:e.formData.source
|
|
|
|
|
|
+ isShow: e.formData.showSource,
|
|
|
|
+ text: e.formData.source
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- this.chartInfo.SourcesFrom=JSON.stringify(sourceObj)
|
|
|
|
|
|
+ this.chartInfo.SourcesFrom = JSON.stringify(sourceObj)
|
|
this.tableData = e.edbList
|
|
this.tableData = e.edbList
|
|
this.$refs.edbComputedWrap.updateEdbListData(e.edbList)
|
|
this.$refs.edbComputedWrap.updateEdbListData(e.edbList)
|
|
// 重新渲染图表
|
|
// 重新渲染图表
|
|
@@ -459,8 +472,8 @@ export default {
|
|
Right2Min: rightTwoMin + '',
|
|
Right2Min: rightTwoMin + '',
|
|
Right2Max: rightTwoMax + '',
|
|
Right2Max: rightTwoMax + '',
|
|
MinMaxSave: Number(!this.getLimitInfo()),
|
|
MinMaxSave: Number(!this.getLimitInfo()),
|
|
- ChartThemeId:this.chartInfo.ChartThemeId,
|
|
|
|
- SourcesFrom:this.chartInfo.SourcesFrom
|
|
|
|
|
|
+ ChartThemeId: this.chartInfo.ChartThemeId,
|
|
|
|
+ SourcesFrom: this.chartInfo.SourcesFrom
|
|
|
|
|
|
}
|
|
}
|
|
apiIntervalAnalysis.chartEdit(params).then(res => {
|
|
apiIntervalAnalysis.chartEdit(params).then(res => {
|