|
@@ -11,11 +11,11 @@
|
|
|
<div class="main-left left" id="left" v-show="!isSlideLeft">
|
|
|
<div class="datasheet_top">
|
|
|
<el-button v-permission="permissionBtn.predictEdbPermission.edbPreData_addEdb"
|
|
|
- type="primary" @click="addEdbHandle">添加指标</el-button>
|
|
|
+ type="primary" @click="addEdbHandle"><!-- 添加指标 -->{{$t('EtaBasePage.add_edb_btn')}}</el-button>
|
|
|
<el-button v-permission="permissionBtn.predictEdbPermission.edbPreData_calcuEdb"
|
|
|
- type="primary" @click="addComputedHandler" style="margin-right:10px;">计算指标</el-button>
|
|
|
- <change-lang v-permission="permissionBtn.predictEdbPermission.edbPreData_switchEn"
|
|
|
- :lang="currentLang" style="height: 32px;" @changeLang="changeLangHandle"/>
|
|
|
+ type="primary" @click="addComputedHandler" style="margin-right:10px;"><!-- 计算指标 -->{{$t('EtaBasePage.calculation_edb_btn')}}</el-button>
|
|
|
+ <!-- <change-lang v-permission="permissionBtn.predictEdbPermission.edbPreData_switchEn"
|
|
|
+ :lang="currentLang" style="height: 32px;" @changeLang="changeLangHandle"/> -->
|
|
|
</div>
|
|
|
<div class="search-cont" v-loading="searchLoading">
|
|
|
<el-select
|
|
@@ -24,7 +24,7 @@
|
|
|
:filterable="!search_txt"
|
|
|
remote
|
|
|
clearable
|
|
|
- placeholder="指标名称"
|
|
|
+ :placeholder="$t('Edb.InputHolderAll.input_name')"
|
|
|
style="width: 100%"
|
|
|
:remote-method="searchHandle"
|
|
|
@focus="searchHandle('')"
|
|
@@ -41,9 +41,9 @@
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<div style="margin:20px 0;padding:0 20px;display:flex;justify-content:space-between">
|
|
|
- <span>目录</span>
|
|
|
+ <span><!-- 目录 -->{{$t('Common.category')}}</span>
|
|
|
<el-checkbox v-model="isOnlyMe" v-permission="permissionBtn.predictEdbPermission.edbPreData_isOnlyMine"
|
|
|
- @change="onlyMeHandler">只看我的</el-checkbox>
|
|
|
+ @change="onlyMeHandler"><!-- 只看我的 -->{{$t('PredictEdbPage.only_see_mine')}}</el-checkbox>
|
|
|
</div>
|
|
|
<div class="tree-cont">
|
|
|
<div class="target_tree">
|
|
@@ -59,7 +59,7 @@
|
|
|
:draggable="isEdbBtnShow('edbPreData_classifyOpt_move')"
|
|
|
:expand-on-click-node="false"
|
|
|
check-strictly
|
|
|
- empty-text="暂无分类"
|
|
|
+ :empty-text="$t('Common.no_classify_msg')"
|
|
|
lazy
|
|
|
:load="getLazyTreeData"
|
|
|
@node-expand="handleNodeExpand"
|
|
@@ -158,7 +158,7 @@
|
|
|
alt=""
|
|
|
style="width: 16px; height: 16px; margin-right: 10px"
|
|
|
/>
|
|
|
- <span>添加一级目录</span>
|
|
|
+ <span><!-- 添加一级目录 -->{{$t('EtaBasePage.add_first_menu_btn')}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<span
|
|
@@ -180,39 +180,68 @@
|
|
|
<div class="edb-detail-wrapper main-min-width" v-if="select_id&&!showAssociateChart&&!showAssociateComputeData">
|
|
|
<div class="detail-header">
|
|
|
<el-tabs v-model="activeTab" @tab-click="changeShowType">
|
|
|
- <el-tab-pane label="走势图" name="Chart">
|
|
|
+ <el-tab-pane :label="$t('Edb.trend_chart_tab')" name="Chart">
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="数据详情" name="Data">
|
|
|
+ <el-tab-pane :label="$t('Edb.data_detail_tab')" name="Data">
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
<div class="edb-tool-icon edb-tool" style="align-items: center;">
|
|
|
- <el-button v-permission="permissionBtn.predictEdbPermission.edbPreData_update"
|
|
|
- type="text" @click="updateEdbPartHandle">刷新</el-button>
|
|
|
- <el-button type="text" @click="editEdbHandle('')"
|
|
|
- v-if="edbButton.OpButton&&isEdbBtnShow('edbPreData_edit')">编辑</el-button>
|
|
|
- <el-button type="text" @click="saveEdbHandle"
|
|
|
- v-if="detail_show_chart&&isEdbBtnShow('edbPreData_save')">保存</el-button>
|
|
|
- <el-button v-permission="permissionBtn.predictEdbPermission.edbPreData_edbSource"
|
|
|
- type="text" @click="toHistoryPage(select_id,$route.matched);lookEdbId=select_id">指标溯源</el-button>
|
|
|
- <el-popover v-if="showPopover"
|
|
|
+ <el-button
|
|
|
+ v-permission="permissionBtn.predictEdbPermission.edbPreData_update"
|
|
|
+ type="text"
|
|
|
+ @click="updateEdbPartHandle"
|
|
|
+ ><!-- 刷新 -->{{$t('Edb.detail_refresh_btn')}}</el-button>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="editEdbHandle('')"
|
|
|
+ v-if="edbButton.OpButton&&isEdbBtnShow('edbPreData_edit')"
|
|
|
+ ><!-- 编辑 -->{{$t('Edb.detail_edit_btn')}}</el-button>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="saveEdbHandle"
|
|
|
+ v-if="detail_show_chart&&isEdbBtnShow('edbPreData_save')"
|
|
|
+ ><!-- 保存 -->{{$t('Edb.detail_save_btn')}}</el-button>
|
|
|
+ <el-button
|
|
|
+ v-permission="permissionBtn.predictEdbPermission.edbPreData_edbSource"
|
|
|
+ type="text"
|
|
|
+ @click="toHistoryPage(select_id,$route.matched);lookEdbId=select_id"
|
|
|
+ ><!-- 指标溯源 -->{{$t('Edb.detail_trace_btn')}}</el-button>
|
|
|
+
|
|
|
+ <el-popover
|
|
|
+ v-if="showPopover"
|
|
|
placement="bottom-end"
|
|
|
trigger="hover"
|
|
|
popper-class="edb-tool-popover"
|
|
|
- width="300" style="display: inline-block;">
|
|
|
+ width="300" style="display: inline-block;"
|
|
|
+ >
|
|
|
<div class="edb-tool-wrap">
|
|
|
- <el-button v-permission="permissionBtn.predictEdbPermission.edbPreData_enNameSetting"
|
|
|
- type="text" @click="clickEdbNameHandle" v-if="currentLang==='ch'||!edb_nameEn">
|
|
|
- 设置英文名称
|
|
|
+ <el-button
|
|
|
+ v-permission="permissionBtn.predictEdbPermission.edbPreData_enNameSetting"
|
|
|
+ type="text"
|
|
|
+ @click="clickEdbNameHandle"
|
|
|
+ v-if="currentLang==='ch'||!edb_nameEn"
|
|
|
+ >
|
|
|
+ {{$t('Edb.detail_en_btn')}}<!-- 设置英文名称 -->
|
|
|
</el-button>
|
|
|
- <el-button v-permission="permissionBtn.predictEdbPermission.edbPreData_recalcu"
|
|
|
- type="text" @click="updateEdbHandle">重新计算</el-button>
|
|
|
- <el-button class="deletesty" @click="delEdbHandle" type="text"
|
|
|
- v-if="edbButton.DeleteButton&&isEdbBtnShow('edbPreData_del')">删除</el-button>
|
|
|
- <el-button v-permission="permissionBtn.predictEdbPermission.edbPreData_copyData"
|
|
|
- type="text" @click="copyData">复制数据</el-button>
|
|
|
+ <el-button
|
|
|
+ v-permission="permissionBtn.predictEdbPermission.edbPreData_recalcu"
|
|
|
+ type="text"
|
|
|
+ @click="updateEdbHandle"
|
|
|
+ >{{$t('Edb.detail_recalculate_btn')}}<!-- 重新计算 --></el-button>
|
|
|
+ <el-button
|
|
|
+ class="deletesty"
|
|
|
+ @click="delEdbHandle"
|
|
|
+ type="text"
|
|
|
+ v-if="edbButton.DeleteButton&&isEdbBtnShow('edbPreData_del')"
|
|
|
+ >{{$t('Edb.detail_del_btn')}}<!-- 删除 --></el-button>
|
|
|
+ <el-button
|
|
|
+ v-permission="permissionBtn.predictEdbPermission.edbPreData_copyData"
|
|
|
+ type="text"
|
|
|
+ @click="copyData"
|
|
|
+ >{{$t('Edb.detail_copydata_btn')}}<!-- 复制数据 --></el-button>
|
|
|
</div>
|
|
|
<div class="edb-btn" slot="reference">
|
|
|
- <el-button type="text">更多操作</el-button>
|
|
|
+ <el-button type="text">{{$t('Edb.detail_more_btn')}}<!-- 更多操作 --></el-button>
|
|
|
<i class="el-icon-more" style="font-size: 14px;transform: rotate(90deg);cursor: pointer;color: #3375e1;"/>
|
|
|
</div>
|
|
|
</el-popover>
|
|
@@ -240,7 +269,7 @@
|
|
|
<!-- 列表 -->
|
|
|
<div class="sheet-list-cont" v-else-if="!select_id">
|
|
|
<div class="list-top">
|
|
|
- <span>共{{ edb_total }}个预测指标</span>
|
|
|
+ <span>{{$t('PredictEdbPage.total_list_view',{limit: edb_total})}} </span>
|
|
|
</div>
|
|
|
<div
|
|
|
class="edbChartList-wrapper"
|
|
@@ -255,34 +284,14 @@
|
|
|
<div class="chart-img" @click="detailShowHandle(item)"
|
|
|
:style="item.ChartImage?{background: `no-repeat top/cover url('${item.ChartImage}')`}:{}"></div>
|
|
|
<div class="item-bottom">
|
|
|
- <span>创建时间: {{ item.CreateTime.slice(0,10) }}</span>
|
|
|
+ <span>{{$t('Common.create_time')}}: {{ item.CreateTime.slice(0,10) }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- <el-col
|
|
|
- :span="8"
|
|
|
- style="margin-bottom: 20px; padding-right: 20px"
|
|
|
- v-for="item in edbChartList"
|
|
|
- :key="item.EdbInfoId"
|
|
|
- >
|
|
|
- <el-card class="sheet-item">
|
|
|
- <div slot="header" class="item-top">
|
|
|
- <span class="text_oneLine">{{ currentLang === 'en' ? (item.EdbNameEn||item.EdbName) : item.EdbName }}</span>
|
|
|
- </div>
|
|
|
- <img
|
|
|
- :src="item.ChartImage"
|
|
|
- alt=""
|
|
|
- class="chart-img"
|
|
|
- @click="detailShowHandle(item)"
|
|
|
- />
|
|
|
- <div class="item-bottom">
|
|
|
- <span>创建时间: {{ item.CreateTime.slice(0,10) }}</span>
|
|
|
- </div>
|
|
|
- </el-card>
|
|
|
- </el-col> -->
|
|
|
+
|
|
|
</div>
|
|
|
<div v-if="!edb_total" class="nodata">
|
|
|
- <tableNoData text="暂无指标"/>
|
|
|
+ <tableNoData :text="$t('Table.no_edb_msg')"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -309,8 +318,8 @@
|
|
|
v-dialogDrag>
|
|
|
<div class="dialog-computed-header">
|
|
|
<el-radio-group v-model="computed_source" size="medium" @change="computed_type = 0">
|
|
|
- <el-radio-button :label="1">常规计算</el-radio-button>
|
|
|
- <el-radio-button :label="2">批量计算</el-radio-button>
|
|
|
+ <el-radio-button :label="1"><!-- 常规计算 -->{{$t('EtaBasePage.normal_calculate_tab')}}</el-radio-button>
|
|
|
+ <el-radio-button :label="2"><!-- 批量计算 -->{{$t('EtaBasePage.batch_calculate_tab')}}</el-radio-button>
|
|
|
</el-radio-group>
|
|
|
</div>
|
|
|
<ul class="computed-ul">
|
|
@@ -606,34 +615,34 @@ export default {
|
|
|
isBatchComputed: false,//批量计算弹窗
|
|
|
|
|
|
baseTypes: [
|
|
|
- { name: '指标运算',type: 31 },
|
|
|
- { name: '同比值',type: 32 },
|
|
|
- { name: '同差值',type: 33 },
|
|
|
- { name: 'N数值移动平均计算',type: 39 },
|
|
|
- { name: '累计值转月/季值',type: 'toMonthSeason' },
|
|
|
- { name: 'N数值环比值',type: 43 },
|
|
|
- { name: 'N数值环差值',type: 44 },
|
|
|
- { name: '升频',type: 45 },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.calculate')/* '指标运算' */,type: 31 },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.on_year')/* '同比值' */,type: 32 },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.differ')/* '同差值' */,type: 33 },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.n_move_average')/* 'N数值移动平均计算' */,type: 39 },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.to_month_quarter')/* '累计值转月/季值' */,type: 'toMonthSeason' },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.n_rate')/* 'N数值环比值' */,type: 43 },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.n_differ')/* 'N数值环差值' */,type: 44 },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.up_conver')/* '升频' */,type: 45 },
|
|
|
// { name: '指标拼接',type: 'joint' },
|
|
|
- { name: '时间移位',type: 46 },
|
|
|
- { name: '超季节性',type: 49 },
|
|
|
- { name: '拟合残差',type: 50 },
|
|
|
- { name: '年化',type: 55 },
|
|
|
- { name: '降频',type: 54 },
|
|
|
- { name: '扩散指数',type: 56 },
|
|
|
- { name: '累计值',type: 'accumulate' },
|
|
|
- { name: '指数修匀',type:'alpha'}
|
|
|
+ { name: this.$t('Edb.CalculatesAll.time_move')/* '时间移位' */,type: 46 },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.super_season')/* '超季节性' */,type: 49 },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.fit_residu')/* '拟合残差' */,type: 50 },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.annual')/* '年化' */,type: 55 },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.down_conver')/* '降频' */,type: 54 },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.diff_index')/* '扩散指数' */,type: 56 },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.cumulate')/* '累计值' */,type: 'accumulate' },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.ex_smooth')/* '指数修匀' */,type:'alpha'}
|
|
|
],
|
|
|
batchTypes: [
|
|
|
- { name: '同比值',type: 32 },
|
|
|
- { name: '同差值',type: 33 },
|
|
|
- { name: 'N数值移动平均计算',type: 39 },
|
|
|
- { name: 'N数值环比值',type: 43 },
|
|
|
- { name: 'N数值环差值',type: 44 },
|
|
|
- { name: '升频',type: 45 },
|
|
|
- { name: '累计值转月/季值',type: 'toMonthSeason' },
|
|
|
- { name: '累计值',type: 'accumulate' },
|
|
|
- { name: '指数修匀',type:'alpha'}
|
|
|
+ { name: this.$t('Edb.CalculatesAll.on_year')/* '同比值' */,type: 32 },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.differ')/* '同差值' */,type: 33 },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.n_move_average')/* 'N数值移动平均计算' */,type: 39 },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.n_rate')/* 'N数值环比值' */,type: 43 },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.n_differ')/* 'N数值环差值' */,type: 44 },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.up_conver')/* '升频' */,type: 45 },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.to_month_quarter')/* '累计值转月/季值' */,type: 'toMonthSeason' },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.cumulate')/* '累计值' */,type: 'accumulate' },
|
|
|
+ { name: this.$t('Edb.CalculatesAll.ex_smooth')/* '指数修匀' */,type:'alpha'}
|
|
|
],
|
|
|
isOnlyMe:false,//只看我的
|
|
|
|
|
@@ -846,7 +855,8 @@ export default {
|
|
|
MinValue: Number(this.$refs.detailComponentRef.$refs.chartInfo.tableData[0].MinData)
|
|
|
})
|
|
|
if(Ret !== 200) return
|
|
|
- this.$message.success('保存成功')
|
|
|
+ // this.$message.success('保存成功')
|
|
|
+ this.$message.success(this.$t('MsgPrompt.saved_msg'))
|
|
|
|
|
|
this.setChartImage()
|
|
|
},
|
|
@@ -1057,7 +1067,7 @@ export default {
|
|
|
this.loading = this.$loading({
|
|
|
lock: true,
|
|
|
target:'.edb-detail-wrapper',
|
|
|
- text: '刷新数据中...',
|
|
|
+ text: this.$t('Edb.MsgPrompt.refresh_ing_msg'),
|
|
|
spinner: 'el-icon-loading',
|
|
|
background: 'rgba(255, 255, 255, 0.8)'
|
|
|
});
|
|
@@ -1080,7 +1090,7 @@ export default {
|
|
|
this.loading = this.$loading({
|
|
|
lock: true,
|
|
|
target:'.edb-detail-wrapper',
|
|
|
- text: '刷新数据中...',
|
|
|
+ text: this.$t('Edb.MsgPrompt.refresh_ing_msg'),
|
|
|
spinner: 'el-icon-loading',
|
|
|
background: 'rgba(255, 255, 255, 0.8)'
|
|
|
});
|
|
@@ -1242,7 +1252,8 @@ export default {
|
|
|
total_data.forEach((item) => (str += `${item.DataTime}\t${item.Value}\n`));
|
|
|
this.$copyText(str).then(
|
|
|
(res) => {
|
|
|
- this.$message.success('已成功复制!');
|
|
|
+ // this.$message.success('已成功复制!');
|
|
|
+ this.$message.success(this.$t('MsgPrompt.copy_success_msg'))
|
|
|
},
|
|
|
(err) => {
|
|
|
this.$message.error('复制失败!');
|
|
@@ -1297,7 +1308,7 @@ export default {
|
|
|
/* 编辑英文 */
|
|
|
openEnNameDia(info){
|
|
|
this.formItemArray=[{
|
|
|
- label:'指标名称',
|
|
|
+ label:/* '指标名称' */ this.$t('Edb.Detail.e_name'),
|
|
|
value:info.EdbName,
|
|
|
key:'EdbName',
|
|
|
notEdit:true
|
|
@@ -1305,29 +1316,29 @@ export default {
|
|
|
// 中文单位有 才能编辑英文单位
|
|
|
if(info.Unit && info.Unit!='无'){
|
|
|
this.formItemArray.push({
|
|
|
- label:'单位',
|
|
|
+ label:this.$t('Edb.Detail.e_unit') /* '单位' */,
|
|
|
value:info.Unit,
|
|
|
key:'Unit',
|
|
|
notEdit:true
|
|
|
},
|
|
|
{
|
|
|
- label:'英文指标名称',
|
|
|
+ label:this.$t('Edb.Detail.e_en_name')/* '英文指标名称' */,
|
|
|
value:info.EdbNameEn,
|
|
|
key:'EdbNameEn',
|
|
|
- placeholder:'请输入英文指标名称'
|
|
|
+ placeholder: this.$t('Edb.InputHolderAll.input_common',{label:this.$t('Edb.Detail.e_en_name')}) /* '请输入英文指标名称' */
|
|
|
},
|
|
|
{
|
|
|
- label:'英文单位',
|
|
|
+ label:this.$t('Edb.Detail.e_en_unit') /* '英文单位' */,
|
|
|
value:info.UnitEn,
|
|
|
key:'UnitEn',
|
|
|
- placeholder:'请输入英文单位'
|
|
|
+ placeholder:this.$t('Edb.InputHolderAll.input_common',{label:this.$t('Edb.Detail.e_en_unit')}) /* '请输入英文单位' */
|
|
|
})
|
|
|
}else{
|
|
|
this.formItemArray.push({
|
|
|
- label:'英文指标名称',
|
|
|
+ label:this.$t('Edb.Detail.e_en_name') /* '英文指标名称' */,
|
|
|
value:info.EdbNameEn,
|
|
|
key:'EdbNameEn',
|
|
|
- placeholder:'请输入英文指标名称'
|
|
|
+ placeholder:this.$t('Edb.InputHolderAll.input_common',{label:this.$t('Edb.Detail.e_en_name')}) /* '请输入英文指标名称' */
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -1472,7 +1483,7 @@ export default {
|
|
|
position: relative;
|
|
|
height: 60px;
|
|
|
.el-tabs{
|
|
|
- width:200px;
|
|
|
+ width:210px;
|
|
|
.el-tabs__header{
|
|
|
margin-bottom: 0;
|
|
|
}
|