|
@@ -22,19 +22,27 @@
|
|
|
<div class="main-left left" id="left" v-show="!isSlideLeft">
|
|
|
|
|
|
<div class="add-chart-cont">
|
|
|
- <el-button v-permission="permissionBtn.chartLibPermission.chartLib_add"
|
|
|
- @click="$router.push({path: '/addchart'})" type="primary">添加图表</el-button>
|
|
|
- <change-lang v-permission="permissionBtn.chartLibPermission.chartLib_switchEn"
|
|
|
- :lang="currentLang" @changeLang="changeLanguage" style="margin-left: 10px;"/>
|
|
|
+ <el-button
|
|
|
+ v-permission="permissionBtn.chartLibPermission.chartLib_add"
|
|
|
+ @click="$router.push({path: '/addchart'})" type="primary"
|
|
|
+ ><!-- 添加图表 -->{{$t('Chart.add_chart_btn')}}</el-button>
|
|
|
+
|
|
|
+ <!-- <change-lang v-permission="permissionBtn.chartLibPermission.chartLib_switchEn"
|
|
|
+ :lang="currentLang" @changeLang="changeLanguage" style="margin-left: 10px;"/> -->
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<ul class="left-tab">
|
|
|
- <li :class="['tab',{'act': leftShowLabel===tab}]" v-for="tab in ['目录']" :key="tab" @click="leftShowLabel=tab">{{tab}}</li>
|
|
|
+ <li
|
|
|
+ :class="['tab',{'act': leftShowLabel===tab.val}]"
|
|
|
+ v-for="tab in leftTabs"
|
|
|
+ :key="tab.val"
|
|
|
+ @click="leftShowLabel=tab.val"
|
|
|
+ >{{tab.label}}</li>
|
|
|
<li >
|
|
|
<el-checkbox v-model="isOnlyMe"
|
|
|
v-permission="permissionBtn.chartLibPermission.chartLib_isOnlyMine"
|
|
|
- @change="onlyMeHandler">只看我的</el-checkbox>
|
|
|
+ @change="onlyMeHandler"><!-- 只看我的 -->{{$t('Chart.only_see_mine')}}</el-checkbox>
|
|
|
</li>
|
|
|
</ul>
|
|
|
|
|
@@ -47,7 +55,7 @@
|
|
|
:filterable="!search_txt"
|
|
|
remote
|
|
|
clearable
|
|
|
- placeholder="请输入图表名称"
|
|
|
+ :placeholder="$t('Chart.search_chart_placeholder')"
|
|
|
style="width: 100%; margin-top: 20px"
|
|
|
:remote-method="searchHandle"
|
|
|
@click.native="inputFocusHandle"
|
|
@@ -76,7 +84,7 @@
|
|
|
draggable
|
|
|
:expand-on-click-node="false"
|
|
|
check-strictly
|
|
|
- empty-text="暂无分类"
|
|
|
+ :empty-text="$t('Common.no_classify_msg')"
|
|
|
lazy
|
|
|
:load="getLazyTreeData"
|
|
|
@node-expand="handleNodeExpand"
|
|
@@ -156,7 +164,7 @@
|
|
|
alt=""
|
|
|
style="width: 16px; height: 16px; margin-right: 10px"
|
|
|
/>
|
|
|
- <span>添加图表分类</span>
|
|
|
+ <span><!-- 添加图表分类 -->{{$t('EtaChartPage.add_classify_btn')}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -165,7 +173,7 @@
|
|
|
<!-- 仅用于散点图配置提出 -->
|
|
|
<div class="scatter-setting" v-if="chartInfo.ChartType === 5 && tableData.length">
|
|
|
<div style="display: flex;margin-right: 15px;">
|
|
|
- <span style="margin-right: 3px">线条颜色:</span>
|
|
|
+ <span style="margin-right: 3px"><!-- 线条颜色 -->{{$t('Chart.Detail.line_color')}}:</span>
|
|
|
<el-color-picker
|
|
|
v-model="tableData[0].ChartColor"
|
|
|
size="mini"
|
|
@@ -173,7 +181,7 @@
|
|
|
:predefine="predefineColors"
|
|
|
></el-color-picker>
|
|
|
</div>
|
|
|
- <el-checkbox v-model="tableData[0].IsOrder">逆序</el-checkbox>
|
|
|
+ <el-checkbox v-model="tableData[0].IsOrder"><!-- 逆序 -->{{$t('Chart.Detail.re_order')}}</el-checkbox>
|
|
|
</div>
|
|
|
|
|
|
<el-collapse v-model="activeNames" class="target-list" v-if="tableData.length">
|
|
@@ -185,12 +193,12 @@
|
|
|
<!-- 堆叠图 或组合图中的堆叠类型 非第一项隐藏配置 -->
|
|
|
<template v-if="showYOptionsHandle(item,index)">
|
|
|
<li>
|
|
|
- <el-checkbox v-model="item.IsOrder">逆序</el-checkbox>
|
|
|
+ <el-checkbox v-model="item.IsOrder"><!-- 逆序 -->{{$t('Chart.Detail.re_order')}}</el-checkbox>
|
|
|
</li>
|
|
|
<li>
|
|
|
<el-radio-group v-model="item.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)"
|
|
@@ -198,7 +206,7 @@
|
|
|
:disabled="(tableData.findIndex(_ => _.IsAxis===0) === -1)
|
|
|
|| (tableData.findIndex(_ => _.IsAxis===0) === index
|
|
|
&& tableData.filter(_ => _.IsAxis===0).length === 1)"
|
|
|
- >右2轴</el-radio-button>
|
|
|
+ ><!-- 右2轴 -->{{$t('Chart.Detail.rtwo_axis')}}</el-radio-button>
|
|
|
</el-radio-group>
|
|
|
</li>
|
|
|
</template>
|
|
@@ -207,18 +215,16 @@
|
|
|
v-model="item.EdbInfoType"
|
|
|
:label="1"
|
|
|
@change="getPreviewChartInfo"
|
|
|
- >标准指标</el-radio
|
|
|
- >
|
|
|
+ ><!-- 标准指标 -->{{$t('Chart.Detail.stand_lead')}}</el-radio>
|
|
|
<div style="margin-top: 15px">
|
|
|
<el-radio
|
|
|
v-model="item.EdbInfoType"
|
|
|
:label="0"
|
|
|
style="margin-right: 10px"
|
|
|
@change="getPreviewChartInfo"
|
|
|
- >领先指标</el-radio
|
|
|
- >
|
|
|
+ ><!-- 领先指标 -->{{$t('Chart.Detail.leading_lead')}}</el-radio>
|
|
|
<template v-if="item.EdbInfoType === 0">
|
|
|
- 领先
|
|
|
+ <!-- 领先 -->{{$t('EtaChartAddPage.label_lead')}}
|
|
|
<el-input
|
|
|
style="width: 60px"
|
|
|
size="mini"
|
|
@@ -248,7 +254,7 @@
|
|
|
</li>
|
|
|
<li>
|
|
|
<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="item.ChartColor"
|
|
|
size="mini"
|
|
@@ -257,7 +263,7 @@
|
|
|
></el-color-picker>
|
|
|
</div>
|
|
|
<div style="display: flex;margin-top: 12px" v-if="item.EdbInfoCategoryType === 1">
|
|
|
- <span style="margin-right: 3px">预测值颜色:</span>
|
|
|
+ <span style="margin-right: 3px"><!-- 预测值颜色 -->{{$t('Chart.Detail.predict_color')}}:</span>
|
|
|
<el-color-picker
|
|
|
v-model="item.PredictChartColor"
|
|
|
size="mini"
|
|
@@ -271,7 +277,7 @@
|
|
|
v-if="chartInfo.ChartType === 1
|
|
|
|| (chartInfo.ChartType === 6 && item.ChartStyle==='spline')"
|
|
|
>
|
|
|
- 线条粗细:
|
|
|
+ <!-- 线条粗细 -->{{$t('Chart.Detail.line_size')}}:
|
|
|
<el-input
|
|
|
style="width: 60px"
|
|
|
size="mini"
|
|
@@ -284,7 +290,7 @@
|
|
|
</li>
|
|
|
<li v-if="chartInfo.ChartType === 6">
|
|
|
<div style="display: flex">
|
|
|
- <span style="margin-right: 3px">生成样式:</span>
|
|
|
+ <span style="margin-right: 3px"><!-- 生成样式 -->{{$t('Chart.label_create_sty')}}:</span>
|
|
|
<el-select
|
|
|
v-model="item.ChartStyle"
|
|
|
placeholder="请选择生成样式"
|
|
@@ -305,7 +311,7 @@
|
|
|
</el-collapse-item>
|
|
|
</el-collapse>
|
|
|
<div v-else class="nodata">
|
|
|
- <tableNoData text="暂无信息"/>
|
|
|
+ <tableNoData :text="$t('Common.no_info_msg')"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -387,7 +393,7 @@
|
|
|
style="width: 60px; display: block"
|
|
|
size="mini"
|
|
|
type="number"
|
|
|
- placeholder="上限"
|
|
|
+ :placeholder="$t('Chart.up_limit')"
|
|
|
:disabled="!permissionBtn.isShowBtn('chartLibPermission','chartLib_editLimit')"
|
|
|
v-model="tableData[leftIndex].MaxData"
|
|
|
/>
|
|
@@ -395,7 +401,7 @@
|
|
|
class="min-data-input"
|
|
|
size="mini"
|
|
|
type="number"
|
|
|
- placeholder="下限"
|
|
|
+ :placeholder="$t('Chart.low_limit')"
|
|
|
:disabled="!permissionBtn.isShowBtn('chartLibPermission','chartLib_editLimit')"
|
|
|
v-model="tableData[leftIndex].MinData"
|
|
|
/>
|
|
@@ -408,7 +414,7 @@
|
|
|
style="width: 60px; display: block"
|
|
|
size="mini"
|
|
|
type="number"
|
|
|
- placeholder="上限"
|
|
|
+ :placeholder="$t('Chart.up_limit')"
|
|
|
:disabled="!permissionBtn.isShowBtn('chartLibPermission','chartLib_editLimit')"
|
|
|
v-model="tableData[rightIndex].MaxData"
|
|
|
/>
|
|
@@ -416,7 +422,7 @@
|
|
|
class="min-data-input"
|
|
|
size="mini"
|
|
|
type="number"
|
|
|
- placeholder="下限"
|
|
|
+ :placeholder="$t('Chart.low_limit')"
|
|
|
:disabled="!permissionBtn.isShowBtn('chartLibPermission','chartLib_editLimit')"
|
|
|
v-model="tableData[rightIndex].MinData"
|
|
|
/>
|
|
@@ -428,7 +434,7 @@
|
|
|
style="width: 60px; display: block"
|
|
|
size="mini"
|
|
|
type="number"
|
|
|
- placeholder="上限"
|
|
|
+ :placeholder="$t('Chart.up_limit')"
|
|
|
:disabled="!permissionBtn.isShowBtn('chartLibPermission','chartLib_editLimit')"
|
|
|
v-model="tableData[rightTwoIndex].MaxData"
|
|
|
/>
|
|
@@ -436,7 +442,7 @@
|
|
|
class="min-data-input"
|
|
|
size="mini"
|
|
|
type="number"
|
|
|
- placeholder="下限"
|
|
|
+ :placeholder="$t('Chart.low_limit')"
|
|
|
:disabled="!permissionBtn.isShowBtn('chartLibPermission','chartLib_editLimit')"
|
|
|
v-model="tableData[rightTwoIndex].MinData"
|
|
|
/>
|
|
@@ -449,7 +455,7 @@
|
|
|
style="width: 60px; display: block"
|
|
|
size="mini"
|
|
|
type="number"
|
|
|
- placeholder="上限"
|
|
|
+ :placeholder="$t('Chart.up_limit')"
|
|
|
:disabled="!permissionBtn.isShowBtn('chartLibPermission','chartLib_editLimit')"
|
|
|
v-model="chartLimit.max"
|
|
|
@change="changeLimit"
|
|
@@ -458,7 +464,7 @@
|
|
|
class="min-data-input"
|
|
|
size="mini"
|
|
|
type="number"
|
|
|
- placeholder="下限"
|
|
|
+ :placeholder="$t('Chart.low_limit')"
|
|
|
:disabled="!permissionBtn.isShowBtn('chartLibPermission','chartLib_editLimit')"
|
|
|
v-model="chartLimit.min"
|
|
|
@change="changeLimit"
|
|
@@ -470,7 +476,7 @@
|
|
|
class="left"
|
|
|
size="mini"
|
|
|
type="number"
|
|
|
- placeholder="下限"
|
|
|
+ :placeholder="$t('Chart.low_limit')"
|
|
|
:disabled="!permissionBtn.isShowBtn('chartLibPermission','chartLib_editLimit')"
|
|
|
v-model="chartLimit.x_min"
|
|
|
@change="changeLimit"
|
|
@@ -479,7 +485,7 @@
|
|
|
class="left"
|
|
|
size="mini"
|
|
|
type="number"
|
|
|
- placeholder="上限"
|
|
|
+ :placeholder="$t('Chart.up_limit')"
|
|
|
:disabled="!permissionBtn.isShowBtn('chartLibPermission','chartLib_editLimit')"
|
|
|
v-model="chartLimit.x_max"
|
|
|
@change="changeLimit"
|
|
@@ -488,7 +494,7 @@
|
|
|
</template>
|
|
|
</div>
|
|
|
<span class="chart-author"
|
|
|
- >作者:{{ chartInfo.SysUserRealName || '' }}</span
|
|
|
+ ><!-- 作者 -->{{$t('Chart.Detail.author')}}:{{ chartInfo.SysUserRealName || '' }}</span
|
|
|
>
|
|
|
|
|
|
<div class="chart-bottom-insruction-info">
|
|
@@ -500,7 +506,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>
|
|
|
|
|
|
<!-- 公历农历切换 只用于季节性图 -->
|
|
@@ -510,8 +516,8 @@
|
|
|
v-if="chartInfo.ChartType === 2"
|
|
|
@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>
|
|
|
|
|
|
<!-- 图表说明 -->
|
|
@@ -533,7 +539,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="3" style="position: absolute;height: 100%;right: 0;min-width: 115px;">
|
|
|
<ul class="right-actions">
|
|
|
- <li>操作</li>
|
|
|
+ <li><!-- 操作 -->{{$t('Table.column_operations')}}</li>
|
|
|
<li
|
|
|
v-permission="permissionBtn.chartLibPermission.chartLib_share"
|
|
|
class="span-item shareLink"
|
|
@@ -541,7 +547,8 @@
|
|
|
:data-clipboard-text="linkUrl"
|
|
|
v-if="!chartInfo.Disabled"
|
|
|
>
|
|
|
- <i class="el-icon-share"/> 分享
|
|
|
+ <i class="el-icon-share"/> <!-- 分享 -->
|
|
|
+ {{$t('Chart.chart_share_btn')}}
|
|
|
</li>
|
|
|
<li
|
|
|
v-permission="permissionBtn.chartLibPermission.chartLib_addMy"
|
|
@@ -552,27 +559,35 @@
|
|
|
:src="$icons.chart_join_ico"
|
|
|
alt=""
|
|
|
style="width: 13px; height: 12px; vertical-align: middle"
|
|
|
- />加入我的图库
|
|
|
+ /><!-- 加入我的图库 -->{{$t('Chart.chart_addmy_btn')}}
|
|
|
</li>
|
|
|
- <li v-permission="permissionBtn.chartLibPermission.chartLib_refresh"
|
|
|
- class="span-item" @click="refreshHandle">
|
|
|
- <span><i class="el-icon-refresh" style="margin-left:0"/> 刷新 </span>
|
|
|
+ <li
|
|
|
+ v-permission="permissionBtn.chartLibPermission.chartLib_refresh"
|
|
|
+ class="span-item"
|
|
|
+ @click="refreshHandle"
|
|
|
+ >
|
|
|
+ <span>
|
|
|
+ <i class="el-icon-refresh" style="margin-left:0"/> <!-- 刷新 -->{{$t('Edb.detail_refresh_btn')}}
|
|
|
+ </span>
|
|
|
</li>
|
|
|
- <li v-permission="permissionBtn.chartLibPermission.chartLib_save"
|
|
|
+ <li
|
|
|
+ v-permission="permissionBtn.chartLibPermission.chartLib_save"
|
|
|
class="span-item"
|
|
|
>
|
|
|
<span @click="saveChartHandle('')">
|
|
|
- <i class="el-icon-collection" /> 保存
|
|
|
+ <i class="el-icon-collection" /> <!-- 保存 -->{{$t('Chart.chart_save_btn')}}
|
|
|
</span>
|
|
|
</li>
|
|
|
- <li v-permission="permissionBtn.chartLibPermission.chartLib_otherSave"
|
|
|
+ <li
|
|
|
+ v-permission="permissionBtn.chartLibPermission.chartLib_otherSave"
|
|
|
class="span-item"
|
|
|
>
|
|
|
<span @click="saveChartOtherHandle">
|
|
|
- <i class="el-icon-document-add" /> 另存为
|
|
|
+ <i class="el-icon-document-add" /> <!-- 另存为 -->{{$t('Chart.chart_copy_btn')}}
|
|
|
</span>
|
|
|
</li>
|
|
|
- <li v-permission="permissionBtn.chartLibPermission.chartLib_edit"
|
|
|
+ <li
|
|
|
+ v-permission="permissionBtn.chartLibPermission.chartLib_edit"
|
|
|
class="span-item"
|
|
|
v-if="chartInfo.IsEdit"
|
|
|
@click="editChartHandle"
|
|
@@ -581,35 +596,39 @@
|
|
|
src="~@/assets/img/set_m/edit.png"
|
|
|
alt=""
|
|
|
style="width: 13px; height: 12px;"
|
|
|
- /> 编辑
|
|
|
+ /> <!-- 编辑 -->{{$t('Chart.chart_edit_btn')}}
|
|
|
</li>
|
|
|
- <li v-permission="permissionBtn.chartLibPermission.chartLib_copyOffice"
|
|
|
+ <li
|
|
|
+ v-permission="permissionBtn.chartLibPermission.chartLib_copyOffice"
|
|
|
class="span-item copy"
|
|
|
@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')}}
|
|
|
</li>
|
|
|
- <li v-permission="permissionBtn.chartLibPermission.chartLib_copyWechat"
|
|
|
+ <li
|
|
|
+ v-permission="permissionBtn.chartLibPermission.chartLib_copyWechat"
|
|
|
class="span-item copy"
|
|
|
@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')}}
|
|
|
</li>
|
|
|
- <li v-permission="permissionBtn.chartLibPermission.chartLib_enNameSetting"
|
|
|
+ <li
|
|
|
+ v-permission="permissionBtn.chartLibPermission.chartLib_enNameSetting"
|
|
|
class="span-item copy"
|
|
|
@click="openEnNameDia"
|
|
|
>
|
|
|
- <img style="width: 16px;vertical-align: middle" :src="$icons.to_en" /> 设置英文名称
|
|
|
+ <img style="width: 16px;vertical-align: middle" :src="$icons.to_en" /> <!-- 设置英文名称 -->{{$t('Edb.detail_en_btn')}}
|
|
|
</li>
|
|
|
- <li v-permission="permissionBtn.chartLibPermission.chartLib_del"
|
|
|
+ <li
|
|
|
+ v-permission="permissionBtn.chartLibPermission.chartLib_del"
|
|
|
class="span-item"
|
|
|
style="color: #ff4040"
|
|
|
@click="delChartHandle"
|
|
|
v-if="chartInfo.IsEdit"
|
|
|
>
|
|
|
- <i class="el-icon-delete" style="color: #ff4040" /> 删除
|
|
|
+ <i class="el-icon-delete" style="color: #ff4040" /> <!-- 删除 -->{{$t('Chart.chart_del_btn')}}
|
|
|
</li>
|
|
|
</ul>
|
|
|
</el-col>
|
|
@@ -642,31 +661,36 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- label="操作"
|
|
|
+ :label="$t('Table.column_operations')"
|
|
|
key="Copy"
|
|
|
align="center"
|
|
|
width="110"
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-permission="permissionBtn.chartLibPermission.chartLib_copyData"
|
|
|
- class="editsty" @click="copyCode(scope.row)">
|
|
|
- <i class="el-icon-document-copy" /> 复制数据</span
|
|
|
+ <span
|
|
|
+ v-permission="permissionBtn.chartLibPermission.chartLib_copyData"
|
|
|
+ class="editsty" @click="copyCode(scope.row)"
|
|
|
>
|
|
|
- <span v-permission="permissionBtn.chartLibPermission.chartLib_viewData"
|
|
|
+ <i class="el-icon-document-copy" /> <!-- 复制数据 -->{{$t('Edb.detail_copydata_btn')}}
|
|
|
+ </span>
|
|
|
+ <span
|
|
|
+ v-permission="permissionBtn.chartLibPermission.chartLib_viewData"
|
|
|
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>
|
|
|
</div>
|
|
|
<!-- ==============图表列表展示============= -->
|
|
|
<div class="chart-public-cont" v-else>
|
|
|
- <span>共{{ public_total }}张图表</span>
|
|
|
+ <span>{{$t('Chart.total_chart_show',{limit:public_total})}}</span>
|
|
|
<div
|
|
|
class="chart-public-list"
|
|
|
ref="listChartPage"
|
|
@@ -681,7 +705,7 @@
|
|
|
<div class="chart-item-img" @click="detailShowHandle(chart)"
|
|
|
:style="chart.ChartImage?{background: `no-repeat top/cover url('${chart.ChartImage}')`}:{}"></div>
|
|
|
<div class="chart-item-bottom">
|
|
|
- <span>创建时间: {{ chart.CreateTime.slice(0,10) }}</span>
|
|
|
+ <span><!-- 创建时间 -->{{$t('Chart.list_chart_time')}}: {{ chart.CreateTime.slice(0,10) }}</span>
|
|
|
<span v-permission="permissionBtn.chartLibPermission.chartLib_addMy"
|
|
|
class="join_txt"
|
|
|
@click="addMychartHandle(chart)"
|
|
@@ -691,48 +715,14 @@
|
|
|
alt=""
|
|
|
style="width: 13px; height: 12px; vertical-align: middle"
|
|
|
/>
|
|
|
- 加入我的图库
|
|
|
+ <!-- 加入我的图库 -->{{$t('Chart.chart_addmy_btn')}}
|
|
|
</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
- <!-- <el-col
|
|
|
- :span="6"
|
|
|
- style="margin-bottom: 20px; padding-right: 20px"
|
|
|
- v-for="chart in chartPublicList"
|
|
|
- :key="chart.ChartInfoId"
|
|
|
- >
|
|
|
- <el-card class="public-chart-item">
|
|
|
- <div slot="header" class="item-top" style="position: relative;">
|
|
|
- <div class="chartEn-mark" v-show="chart.IsEnChart" style="top: -10px;left:-10px;">En</div>
|
|
|
- <span class="text_oneLine" :style="{'padding-left':chart.IsEnChart?'24px':''}">{{ currentLang === 'en' ? (chart.ChartNameEn||chart.ChartName) : chart.ChartName }}</span>
|
|
|
- </div>
|
|
|
- <img
|
|
|
- :src="chart.ChartImage"
|
|
|
- alt=""
|
|
|
- class="chart-img"
|
|
|
- @click="detailShowHandle(chart)"
|
|
|
- />
|
|
|
- <div class="item-bottom">
|
|
|
- <span>创建时间: {{ chart.CreateTime.slice(0,10) }}</span>
|
|
|
- <span v-permission="permissionBtn.chartLibPermission.chartLib_addMy"
|
|
|
- class="join_txt"
|
|
|
- @click="addMychartHandle(chart)"
|
|
|
- >
|
|
|
- <img
|
|
|
- :src="$icons.chart_join_ico"
|
|
|
- alt=""
|
|
|
- style="width: 13px; height: 12px; vertical-align: middle"
|
|
|
- />
|
|
|
- 加入我的图库
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- </el-card>
|
|
|
- </el-col> -->
|
|
|
</div>
|
|
|
<div v-if="!public_total" class="nodata">
|
|
|
- <tableNoData text="暂无图表"/>
|
|
|
+ <tableNoData :text="$t('Common.no_chart_msg')"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1012,6 +1002,13 @@ export default {
|
|
|
linkUrl() {
|
|
|
const LINK_CHART_URL = this.$setting.dynamicOutLinks.ChartViewUrl+'/chartshow';
|
|
|
return `${LINK_CHART_URL}?code=${this.chartInfo.UniqueCode}&fromType=share&lang=${this.currentLang}`
|
|
|
+ },
|
|
|
+
|
|
|
+ leftTabs() {
|
|
|
+ return [
|
|
|
+ {label: this.$t('EtaChartPage.tab_classify'),val:'目录'},
|
|
|
+ {label: this.$t('EtaChartPage.tab_series'),val:'坐标轴'}
|
|
|
+ ]
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -1232,27 +1229,27 @@ export default {
|
|
|
* 2 有子目录无图表
|
|
|
*/
|
|
|
const deleteLabelMap = {
|
|
|
- 1: '该分类下关联图表不可删除',
|
|
|
- 2: '确认删除当前分类及包含的子分类吗?',
|
|
|
+ 1: /* '该分类下关联图表不可删除' */this.$t('Chart.OptMsg.classify_del_fail'),
|
|
|
+ 2: /* '确认删除当前分类及包含的子分类吗?' */this.$t('Chart.OptMsg.classify_delall_confirm'),
|
|
|
4: res.Data.TipsMsg
|
|
|
}
|
|
|
|
|
|
if([1,4].includes(res.Data.DeleteStatus)) this.$confirm(
|
|
|
deleteLabelMap[res.Data.DeleteStatus],
|
|
|
- '删除失败',
|
|
|
+ /* '删除失败' */this.$t('Chart.OptMsg.del_fail_tag'),
|
|
|
{
|
|
|
- confirmButtonText: '知道了',
|
|
|
+ confirmButtonText: /* '知道了' */this.$t('Dialog.known'),
|
|
|
showCancelButton:false,
|
|
|
type: 'error'
|
|
|
})
|
|
|
else if([0,2].includes(res.Data.DeleteStatus)) this.$confirm(
|
|
|
res.Data.DeleteStatus === 2
|
|
|
? deleteLabelMap[res.Data.DeleteStatus]
|
|
|
- : data.ChartInfoId?'删除后该图表将不能再引用,确认删除吗?':'确定删除当前分类吗?',
|
|
|
- '提示',
|
|
|
+ : data.ChartInfoId?this.$t('Chart.OptMsg.chart_del_confirm'):this.$t('Chart.OptMsg.classify_del_confirm'),
|
|
|
+ this.$t('Dialog.warn_tit'),
|
|
|
{
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
+ confirmButtonText: /* '确定' */this.$t('Dialog.confirm_btn'),
|
|
|
+ cancelButtonText: /* '取消' */this.$t('Dialog.cancel_btn'),
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
res.Data.DeleteStatus === 0 && data.ChartInfoId
|
|
@@ -1664,7 +1661,7 @@ export default {
|
|
|
? `${this.chartInfo.StartDate}~至今`
|
|
|
: this.chartInfo.DateType === 20
|
|
|
?`最近${this.chartInfo.StartYear}年`
|
|
|
- :'请选择时间段';
|
|
|
+ :/* '请选择时间段' */this.$t('Chart.choose_time');
|
|
|
|
|
|
},
|
|
|
// 设置默认预览配置项
|
|
@@ -1856,7 +1853,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('beforeOptions');
|
|
|
sessionStorage.setItem(
|
|
|
'defaultArr',
|
|
@@ -1901,7 +1899,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)
|
|
|
}
|
|
@@ -1979,9 +1978,9 @@ export default {
|
|
|
},
|
|
|
/* 点击删除图表 */
|
|
|
delChartHandle() {
|
|
|
- this.$confirm('删除后该图表将不能再引用,确认删除吗?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
+ this.$confirm(/* '删除后该图表将不能再引用,确认删除吗?' */this.$t('Chart.OptMsg.chart_del_confirm'), this.$t('Dialog.warn_tit'), {
|
|
|
+ confirmButtonText: /* '确定' */this.$t('Dialog.confirm_btn'),
|
|
|
+ cancelButtonText: /* '取消' */this.$t('Dialog.cancel_btn'),
|
|
|
type: 'warning',
|
|
|
})
|
|
|
.then(() => {
|
|
@@ -2025,7 +2024,7 @@ export default {
|
|
|
changeYear(item) {
|
|
|
this.year_select = item.value;
|
|
|
this.select_date = '';
|
|
|
- this.dateTip = '请选择时间段';
|
|
|
+ this.dateTip = /* '请选择时间段' */this.$t('Chart.choose_time');
|
|
|
// 图表已存在
|
|
|
this.selected_chartid && this.getPreviewChartInfo();
|
|
|
},
|
|
@@ -2202,7 +2201,7 @@ export default {
|
|
|
this.refreshLoading = this.$loading({
|
|
|
lock: true,
|
|
|
target: '.main-right',
|
|
|
- text: '刷新图表中...',
|
|
|
+ text: /* '刷新图表中...' */this.$t('Chart.OptMsg.refresh_ing_msg'),
|
|
|
spinner: 'el-icon-loading',
|
|
|
background: 'rgba(255, 255, 255, 0.8)',
|
|
|
});
|
|
@@ -2214,7 +2213,8 @@ export default {
|
|
|
this.refreshLoading.close();
|
|
|
if (res.Ret === 200) {
|
|
|
[7,10,11].includes(this.chartInfo.ChartType) ? this.getChartDetail() : this.getPreviewChartInfo();
|
|
|
- this.$message.success(res.Msg);
|
|
|
+ // this.$message.success('刷新成功');
|
|
|
+ this.$message.success(this.$t('MsgPrompt.refresh_success_msg'));
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -2262,13 +2262,15 @@ export default {
|
|
|
var clipboard = new this.Clipboard('.shareLink')
|
|
|
clipboard.on('success', e => {
|
|
|
console.log(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()
|
|
|
})
|