|
@@ -19,7 +19,7 @@
|
|
|
}}</span>
|
|
|
</div>
|
|
|
<div class="nodata" v-if="isNoChart">
|
|
|
- <tableNoData text="暂无图表"/>
|
|
|
+ <tableNoData :text="$t('Common.no_chart_msg')"/>
|
|
|
</div>
|
|
|
<template v-else>
|
|
|
<div class="header">
|
|
@@ -57,7 +57,7 @@
|
|
|
<div class="top-right" v-if="chartInfo.Button">
|
|
|
<span v-permission="permissionBtn.myETAPermission.myChart_move"
|
|
|
class="collected" @click="removeMychart(chartInfo)" v-if="classifyUserId === roleId">
|
|
|
- <i class="el-icon-remove-outline"></i>移出
|
|
|
+ <i class="el-icon-remove-outline"></i><!-- 移出 -->{{$t('Chart.chart_remove_btn')}}
|
|
|
</span>
|
|
|
<el-popover
|
|
|
v-permission="permissionBtn.myETAPermission.myChart_share"
|
|
@@ -69,12 +69,12 @@
|
|
|
v-model="showPopConfirmMap['url']">
|
|
|
<p>{{hintText}}</p>
|
|
|
<div style="text-align: right; margin: 0">
|
|
|
- <el-button size="mini" type="text" @click="closePop('url')">取消</el-button>
|
|
|
- <el-button type="primary" size="mini" @click="copyChart('url')">确定</el-button>
|
|
|
+ <el-button size="mini" type="text" @click="closePop('url')"><!-- 取消 -->{{$t('Dialog.cancel_btn')}}</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="copyChart('url')"><!-- 确定 -->{{$t('Dialog.confirm_btn')}}</el-button>
|
|
|
</div>
|
|
|
<span class="span-item shareLink" style="margin-left: 7px;" slot="reference"
|
|
|
@click="copyChartConfirm('url')" :data-clipboard-text="linkUrl" v-if="!chartInfo.Disabled">
|
|
|
- <i class="el-icon-share"/> 分享
|
|
|
+ <i class="el-icon-share"/> <!-- 分享 -->{{$t('Chart.chart_share_btn')}}
|
|
|
</span>
|
|
|
</el-popover>
|
|
|
<span v-permission="permissionBtn.myETAPermission.myChart_copyTo"
|
|
@@ -89,11 +89,11 @@
|
|
|
vertical-align: middle;
|
|
|
"
|
|
|
/>
|
|
|
- 复制到
|
|
|
+ <!-- 复制到 -->{{$t('Chart.chart_copyto_btn')}}
|
|
|
</span>
|
|
|
<span v-permission="permissionBtn.myETAPermission.myChart_refresh"
|
|
|
class="span-item" @click="refreshHandle" style="margin-left: 7px;">
|
|
|
- <span><i class="el-icon-refresh" style="font-size: 15px;"/> 刷新 </span>
|
|
|
+ <span><i class="el-icon-refresh" style="font-size: 15px;"/> <!-- 刷新 -->{{$t('Edb.detail_refresh_btn')}} </span>
|
|
|
</span>
|
|
|
<span
|
|
|
class="span-item"
|
|
@@ -106,7 +106,7 @@
|
|
|
alt=""
|
|
|
style="width: 13px; height: 12px; vertical-align: middle"
|
|
|
/>
|
|
|
- 加入我的图库
|
|
|
+ <!-- 加入我的图库 -->{{$t('Chart.chart_addmy_btn')}}
|
|
|
</span>
|
|
|
<span
|
|
|
v-permission="permissionBtn.myETAPermission.myChart_edit"
|
|
@@ -115,7 +115,7 @@
|
|
|
v-if="chartInfo.Button.IsEdit"
|
|
|
@click="editChartHandle"
|
|
|
>
|
|
|
- <span> <i class="el-icon-edit" /> 编辑 </span>
|
|
|
+ <span> <i class="el-icon-edit" /> <!-- 编辑 -->{{$t('Chart.chart_edit_btn')}} </span>
|
|
|
</span>
|
|
|
<span
|
|
|
v-permission="permissionBtn.myETAPermission.myChart_save"
|
|
@@ -124,7 +124,7 @@
|
|
|
@click="saveChartMapHandle"
|
|
|
v-if="[1,2,5].includes(chartInfo.Source)"
|
|
|
>
|
|
|
- <span> <i class="el-icon-collection" /> 保存 </span>
|
|
|
+ <span> <i class="el-icon-collection" /> <!-- 保存 -->{{$t('Chart.chart_save_btn')}} </span>
|
|
|
</span>
|
|
|
<span
|
|
|
v-permission="permissionBtn.myETAPermission.myChart_otherSave"
|
|
@@ -133,7 +133,7 @@
|
|
|
v-if="chartInfo.Button.IsCopy"
|
|
|
@click="saveChartOtherHandle"
|
|
|
>
|
|
|
- <span> <i class="el-icon-document-add" /> 另存为 </span>
|
|
|
+ <span> <i class="el-icon-document-add" /> <!-- 另存为 -->{{$t('Chart.chart_copy_btn')}} </span>
|
|
|
</span>
|
|
|
<el-popover
|
|
|
v-permission="permissionBtn.myETAPermission.myChart_copyOffice"
|
|
@@ -145,8 +145,8 @@
|
|
|
v-model="showPopConfirmMap['office']">
|
|
|
<p>{{hintText}}</p>
|
|
|
<div style="text-align: right; margin: 0">
|
|
|
- <el-button size="mini" type="text" @click="closePop('office')">取消</el-button>
|
|
|
- <el-button type="primary" size="mini" @click="copyChart('office')">确定</el-button>
|
|
|
+ <el-button size="mini" type="text" @click="closePop('office')"><!-- 取消 -->{{$t('Dialog.cancel_btn')}}</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="copyChart('office')"><!-- 确定 -->{{$t('Dialog.confirm_btn')}}</el-button>
|
|
|
</div>
|
|
|
<span
|
|
|
slot="reference"
|
|
@@ -155,7 +155,7 @@
|
|
|
@click="copyChartConfirm('office')"
|
|
|
v-if="!chartInfo.Disabled"
|
|
|
>
|
|
|
- <i class="el-icon-document-copy" /> 复制至office
|
|
|
+ <i class="el-icon-document-copy" /> <!-- 复制至office -->{{$t('Chart.chart_copyoffice')}}
|
|
|
</span>
|
|
|
</el-popover>
|
|
|
<el-popover
|
|
@@ -168,8 +168,8 @@
|
|
|
v-model="showPopConfirmMap['微信']">
|
|
|
<p>{{hintText}}</p>
|
|
|
<div style="text-align: right; margin: 0">
|
|
|
- <el-button size="mini" type="text" @click="closePop('微信')">取消</el-button>
|
|
|
- <el-button type="primary" size="mini" @click="copyChart('微信')">确定</el-button>
|
|
|
+ <el-button size="mini" type="text" @click="closePop('微信')"><!-- 取消 -->{{$t('Dialog.cancel_btn')}}</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="copyChart('微信')"><!-- 确定 -->{{$t('Dialog.confirm_btn')}}</el-button>
|
|
|
</div>
|
|
|
<span
|
|
|
slot="reference"
|
|
@@ -178,7 +178,7 @@
|
|
|
@click="copyChartConfirm('微信')"
|
|
|
v-if="!chartInfo.Disabled"
|
|
|
>
|
|
|
- <img style="width: 13px; height: 12px;vertical-align: middle" src="~@/assets/img/chart_m/WeChat.jpg" /> 复制至微信
|
|
|
+ <img style="width: 13px; height: 12px;vertical-align: middle" src="~@/assets/img/chart_m/WeChat.jpg" /> <!-- 复制至微信 -->{{$t('Chart.chart_copywx')}}
|
|
|
</span>
|
|
|
</el-popover>
|
|
|
<span
|
|
@@ -187,11 +187,11 @@
|
|
|
style="margin-left: 7px"
|
|
|
@click="openEnNameDia"
|
|
|
>
|
|
|
- <span> <img style="width: 16px;vertical-align: middle" :src="$icons.to_en" /> 设置英文名称 </span>
|
|
|
+ <span> <img style="width: 16px;vertical-align: middle" :src="$icons.to_en" /> <!-- 设置英文名称 -->{{$t('Edb.detail_en_btn')}} </span>
|
|
|
</span>
|
|
|
<el-popconfirm
|
|
|
v-permission="permissionBtn.myETAPermission.myChart_del"
|
|
|
- title="删除后该图表将不能再引用,确认删除吗?"
|
|
|
+ :title="$t('Chart.OptMsg.chart_del_confirm')"
|
|
|
icon="el-icon-info"
|
|
|
@onConfirm="delChartHandle"
|
|
|
v-if="chartInfo.Button.IsEdit"
|
|
@@ -201,7 +201,7 @@
|
|
|
class="span-item"
|
|
|
style="color: #ff4040"
|
|
|
>
|
|
|
- <i class="el-icon-delete" style="color: #ff4040" /> 删除
|
|
|
+ <i class="el-icon-delete" style="color: #ff4040" /> <!-- 删除 -->{{$t('Chart.chart_del_btn')}}
|
|
|
</span>
|
|
|
</el-popconfirm>
|
|
|
</div>
|
|
@@ -336,7 +336,7 @@
|
|
|
color: ${ JSON.parse(chartInfo.SourcesFrom).color };
|
|
|
fontSize: ${ JSON.parse(chartInfo.SourcesFrom).fontSize }px;
|
|
|
`"
|
|
|
- >来源:{{JSON.parse(chartInfo.SourcesFrom).text}}</span>
|
|
|
+ ><!-- 来源 -->{{$t('Chart.Detail.source')}}:{{JSON.parse(chartInfo.SourcesFrom).text}}</span>
|
|
|
</div>
|
|
|
|
|
|
<!-- 公历农历切换 只用于季节性图 -->
|
|
@@ -346,8 +346,8 @@
|
|
|
class="calendar-cont"
|
|
|
@change="getPreviewChartInfo"
|
|
|
>
|
|
|
- <el-radio-button label="公历" />
|
|
|
- <el-radio-button label="农历" />
|
|
|
+ <el-radio-button label="公历">{{$t('Chart.calendar_gre')}}</el-radio-button>
|
|
|
+ <el-radio-button label="农历">{{$t('Chart.calendar_lunar')}}</el-radio-button>
|
|
|
</el-radio-group>
|
|
|
|
|
|
<!-- 图表说明 -->
|
|
@@ -379,10 +379,10 @@
|
|
|
<div class="options-cont">
|
|
|
<!-- 堆叠图 或组合图中的堆叠类型 非第一项隐藏配置 -->
|
|
|
<template v-if="showYOptionsHandle(props.row,props.$index)">
|
|
|
- <el-checkbox v-model="props.row.IsOrder">逆序</el-checkbox>
|
|
|
+ <el-checkbox v-model="props.row.IsOrder"><!-- 逆序 -->{{$t('Chart.Detail.re_order')}}</el-checkbox>
|
|
|
<el-radio-group v-model="props.row.IsAxis" size="mini">
|
|
|
- <el-radio-button :label="1">左轴</el-radio-button>
|
|
|
- <el-radio-button :label="0">右轴</el-radio-button>
|
|
|
+ <el-radio-button :label="1"><!-- 左轴 -->{{$t('Chart.Detail.l_axis')}}</el-radio-button>
|
|
|
+ <el-radio-button :label="0"><!-- 右轴 -->{{$t('Chart.Detail.r_axis')}}</el-radio-button>
|
|
|
<!-- 指标有右轴时才可以选右2轴 不然没有右2这个概念的意义 -->
|
|
|
<el-radio-button
|
|
|
v-if="[1,6].includes(chartInfo.ChartType)"
|
|
@@ -390,7 +390,7 @@
|
|
|
:disabled="(tableData.findIndex(_ => _.IsAxis===0) === -1)
|
|
|
|| (tableData.findIndex(_ => _.IsAxis===0) === props.$index
|
|
|
&& tableData.filter(_ => _.IsAxis===0).length === 1)"
|
|
|
- >右2轴</el-radio-button>
|
|
|
+ ><!-- 右2轴 -->{{$t('Chart.Detail.rtwo_axis')}}</el-radio-button>
|
|
|
</el-radio-group>
|
|
|
</template>
|
|
|
<div style="min-width: 250px">
|
|
@@ -398,7 +398,7 @@
|
|
|
v-model="props.row.EdbInfoType"
|
|
|
:label="1"
|
|
|
@change="getPreviewChartInfo"
|
|
|
- >标准指标</el-radio
|
|
|
+ ><!-- 标准指标 -->{{$t('Chart.Detail.stand_lead')}}</el-radio
|
|
|
>
|
|
|
<div style="margin-top: 22px">
|
|
|
<el-radio
|
|
@@ -406,10 +406,10 @@
|
|
|
:label="0"
|
|
|
style="margin-right: 10px"
|
|
|
@change="getPreviewChartInfo"
|
|
|
- >领先指标</el-radio
|
|
|
+ ><!-- 领先指标 -->{{$t('Chart.Detail.leading_lead')}}</el-radio
|
|
|
>
|
|
|
<template v-if="props.row.EdbInfoType === 0">
|
|
|
- 领先
|
|
|
+ <!-- 领先 -->{{$t('EtaChartAddPage.label_lead')}}
|
|
|
<el-input
|
|
|
style="width: 60px"
|
|
|
size="mini"
|
|
@@ -439,7 +439,7 @@
|
|
|
</div>
|
|
|
<div>
|
|
|
<div style="display: flex">
|
|
|
- <span style="margin-right: 3px">线条颜色:</span>
|
|
|
+ <span style="margin-right: 3px"><!-- 线条颜色 -->{{$t('Chart.Detail.line_color')}}:</span>
|
|
|
<el-color-picker
|
|
|
v-model="props.row.ChartColor"
|
|
|
size="mini"
|
|
@@ -452,7 +452,7 @@
|
|
|
v-if="chartInfo.ChartType === 1
|
|
|
|| (chartInfo.ChartType === 6 && props.row.ChartStyle==='spline')"
|
|
|
>
|
|
|
- 线条粗细:
|
|
|
+ <!-- 线条粗细 -->{{$t('Chart.Detail.line_size')}}:
|
|
|
<el-input
|
|
|
style="width: 60px"
|
|
|
size="mini"
|
|
@@ -463,7 +463,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="chartInfo.ChartType === 6">
|
|
|
- <span style="margin-right: 3px">生成样式:</span>
|
|
|
+ <span style="margin-right: 3px"><!-- 生成样式 -->{{$t('Chart.label_create_sty')}}:</span>
|
|
|
<el-select
|
|
|
v-model="props.row.ChartStyle"
|
|
|
placeholder="请选择生成样式"
|
|
@@ -481,13 +481,13 @@
|
|
|
</div>
|
|
|
<div class="copy-excel">
|
|
|
<span class="editsty" @click="copyCode(props.row)" v-if="isAllowCopyData">
|
|
|
- <i class="el-icon-document-copy" /> 复制数据</span
|
|
|
+ <i class="el-icon-document-copy" /> <!-- 复制数据 -->{{$t('Edb.detail_copydata_btn')}}</span
|
|
|
>
|
|
|
<span
|
|
|
class="editsty" v-if="isAllowCheckData"
|
|
|
@click="viewTarget(props.row)"
|
|
|
style="display:block;margin-top:15px;"
|
|
|
- > 查看数据</span>
|
|
|
+ > <!-- 查看数据 -->{{$t('Edb.detail_lookdata_btn')}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -514,7 +514,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- label="操作"
|
|
|
+ :label="$t('Table.column_operations')"
|
|
|
key="Copy"
|
|
|
align="center"
|
|
|
v-if="chartInfo.Source!==1 || ![1,4,6].includes(chartInfo.ChartType)"
|
|
@@ -522,16 +522,16 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<span class="editsty" @click="copyCode(scope.row)" v-if="isAllowCopyData">
|
|
|
- <i class="el-icon-document-copy" /> 复制数据</span
|
|
|
+ <i class="el-icon-document-copy" /> <!-- 复制数据 -->{{$t('Edb.detail_copydata_btn')}}</span
|
|
|
>
|
|
|
<span v-if="isAllowCheckData"
|
|
|
class="editsty"
|
|
|
@click="viewTarget(scope.row)"
|
|
|
- >查看数据</span>
|
|
|
+ ><!-- 查看数据 -->{{$t('Edb.detail_lookdata_btn')}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<div slot="empty">
|
|
|
- <tableNoData text="暂无指标" size="mini"/>
|
|
|
+ <tableNoData :text="$t('Table.no_edb_msg')" size="mini"/>
|
|
|
</div>
|
|
|
</el-table>
|
|
|
</div>
|
|
@@ -691,7 +691,7 @@ export default {
|
|
|
showChart: false,
|
|
|
chartInfo: {},
|
|
|
|
|
|
- dateTip: '请选择时间段',
|
|
|
+ dateTip: /* '请选择时间段' */ this.$t('Chart.choose_time'),
|
|
|
season_year: [], //季节图时间段
|
|
|
calendar_type: '', //公历农历选择项
|
|
|
drawImg: '', //用于复制后的图标图片存储
|
|
@@ -822,7 +822,7 @@ export default {
|
|
|
? `${this.chartInfo.StartDate}~至今`
|
|
|
: this.chartInfo.DateType === 20
|
|
|
?`最近${this.chartInfo.StartYear}年`
|
|
|
- :'请选择时间段';
|
|
|
+ :/* '请选择时间段' */ this.$t('Chart.choose_time');
|
|
|
|
|
|
},
|
|
|
|
|
@@ -921,7 +921,7 @@ export default {
|
|
|
changeYear(item) {
|
|
|
this.year_select = item.value;
|
|
|
this.select_date = '';
|
|
|
- this.dateTip = '请选择时间段';
|
|
|
+ this.dateTip = /* '请选择时间段' */ this.$t('Chart.choose_time');
|
|
|
|
|
|
this.getPreviewChartInfo();
|
|
|
},
|
|
@@ -1026,7 +1026,8 @@ export default {
|
|
|
input.select();
|
|
|
document.execCommand('copy');
|
|
|
document.body.removeChild(input);
|
|
|
- this.$message.success('复制链接成功')
|
|
|
+ // this.$message.success('复制链接成功')
|
|
|
+ this.$message.success(this.$t('Chart.OptMsg.copy_link_success'))
|
|
|
}else{
|
|
|
this.copyChartHandle(type)
|
|
|
}
|
|
@@ -1117,7 +1118,8 @@ export default {
|
|
|
})
|
|
|
|
|
|
if(Ret!==200) return
|
|
|
- this.$message.success('保存成功');
|
|
|
+ // this.$message.success('保存成功');
|
|
|
+ this.$message.success(this.$t('MsgPrompt.saved_msg'));
|
|
|
//关联图表和图片
|
|
|
this.setChartImage();
|
|
|
},300),
|
|
@@ -1198,7 +1200,8 @@ export default {
|
|
|
|
|
|
dataBaseInterface.chartSave(params).then((res) => {
|
|
|
if (res.Ret === 200) {
|
|
|
- this.$message.success('保存成功');
|
|
|
+ // this.$message.success('保存成功');
|
|
|
+ this.$message.success(this.$t('MsgPrompt.saved_msg'));
|
|
|
sessionStorage.removeItem('myChartbeforeOptions');
|
|
|
//关联图表和图片
|
|
|
this.setChartImage();
|
|
@@ -1379,13 +1382,15 @@ export default {
|
|
|
shareUrl() {
|
|
|
var clipboard = new this.Clipboard('.shareLink')
|
|
|
clipboard.on('success', e => {
|
|
|
- this.$message.success('复制链接成功')
|
|
|
+ // this.$message.success('复制链接成功')
|
|
|
+ this.$message.success(this.$t('Chart.OptMsg.copy_link_success'))
|
|
|
e.clearSelection() // 释放内存
|
|
|
clipboard.destroy()
|
|
|
})
|
|
|
// // 浏览器不支持
|
|
|
clipboard.on('error', e => {
|
|
|
- this.$message.warning('浏览器暂不支持')
|
|
|
+ // this.$message.warning('浏览器暂不支持')
|
|
|
+ this.$message.warning(this.$t('MsgPrompt.browser_not_support'))
|
|
|
// 释放内存
|
|
|
clipboard.destroy()
|
|
|
})
|
|
@@ -1406,14 +1411,16 @@ export default {
|
|
|
}) */
|
|
|
try{
|
|
|
copyFit(this.chartInfo.ChartName||'')
|
|
|
- this.$message.success("复制标题成功")
|
|
|
+ // this.$message.success("复制标题成功")
|
|
|
+ this.$message.success(this.$t('Chart.OptMsg.copy_tit_success'))
|
|
|
}catch(e){
|
|
|
- this.$message.warning("复制标题失败")
|
|
|
+ // this.$message.warning("复制标题失败")
|
|
|
+ this.$message.warning(this.$t('Chart.OptMsg.copy_tit_fail'))
|
|
|
}
|
|
|
},
|
|
|
|
|
|
init() {
|
|
|
- this.dateTip = '请选择时间段';
|
|
|
+ this.dateTip = /* '请选择时间段' */ this.$t('Chart.choose_time');
|
|
|
sessionStorage.removeItem('myChartbeforeOptions');
|
|
|
},
|
|
|
|