|
@@ -11,7 +11,7 @@
|
|
<div class="dialog-legend">
|
|
<div class="dialog-legend">
|
|
<div v-for="(item,index) in legendListCopy" :key="item.Name" class="legend-item">
|
|
<div v-for="(item,index) in legendListCopy" :key="item.Name" class="legend-item">
|
|
<div class="legend-item-color" :style="{backgroundColor:seasonColor[index]}"></div>
|
|
<div class="legend-item-color" :style="{backgroundColor:seasonColor[index]}"></div>
|
|
- <el-input v-model.trim="item.Value" placeholder="请输入图例名称" style="width: 295px;"></el-input>
|
|
|
|
|
|
+ <el-input v-model.trim="item.Value" :placeholder="this.$t('EtaChartAddPage.legend_placeholder')" style="width: 295px;"></el-input>
|
|
</div>
|
|
</div>
|
|
<div class="legend-box-hint" v-html="$t('EtaChartAddPage.legend_hint')"></div>
|
|
<div class="legend-box-hint" v-html="$t('EtaChartAddPage.legend_hint')"></div>
|
|
</div>
|
|
</div>
|
|
@@ -63,7 +63,7 @@ watch: {
|
|
methods: {
|
|
methods: {
|
|
saveHandle() {
|
|
saveHandle() {
|
|
if(this.legendListCopy.some(item=> !item.Value)){
|
|
if(this.legendListCopy.some(item=> !item.Value)){
|
|
- this.$message.error("所有图例名称都不能为空")
|
|
|
|
|
|
+ this.$message.error(/* "所有图例名称都不能为空" */this.$t('EtaChartAddPage.legend_check_hint'))
|
|
return
|
|
return
|
|
}
|
|
}
|
|
this.$emit('saveLegend',this.legendListCopy)
|
|
this.$emit('saveLegend',this.legendListCopy)
|